JFIF ( %!1!%)+...383-7(-.+  -% &5/------------------------------------------------";!1AQ"aq2#3BRrb*!1"AQa2q#B ?yRd&vGlJwZvK)YrxB#j]ZAT^dpt{[wkWSԋ*QayBbm*&0<|0pfŷM`̬ ^.qR𽬷^EYTFíw<-.j)M-/s yqT'&FKz-([lև<G$wm2*e Z(Y-FVen櫧lҠDwүH4FX1 VsIOqSBۡNzJKzJξcX%vZcFSuMٖ%B ִ##\[%yYꉅ !VĂ1َRI-NsZJLTAPמQ:y״g_g= m֯Ye+Hyje!EcݸࢮSo{׬*h g<@KI$W+W'_> lUs1,o*ʺE.U"N&CTu7_0VyH,q ,)H㲣5<t ;rhnz%ݓz+4 i۸)P6+F>0Tв`&i}Shn?ik܀՟ȧ@mUSLFηh_er i_qt]MYhq 9LaJpPןߘvꀡ\"z[VƬ¤*aZMo=WkpSp \QhMb˒YH=ܒ m`CJt 8oFp]>pP1F>n8(*aڈ.Y݉[iTع JM!x]ԶaJSWҼܩ`yQ`*kE#nNkZKwA_7~ ΁JЍ;-2qRxYk=Uր>Z qThv@.w c{#&@#l;D$kGGvz/7[P+i3nIl`nrbmQi%}rAVPT*SF`{'6RX46PԮp(3W҅U\a*77lq^rT$vs2MU %*ŧ+\uQXVH !4t*Hg"Z챮 JX+RVU+ތ]PiJT XI= iPO=Ia3[ uؙ&2Z@.*SZ (")s8Y/-Fh Oc=@HRlPYp!wr?-dugNLpB1yWHyoP\ѕрiHִ,ِ0aUL.Yy`LSۜ,HZz!JQiVMb{( tژ <)^Qi_`: }8ٱ9_.)a[kSr> ;wWU#M^#ivT܎liH1Qm`cU+!2ɒIX%ֳNړ;ZI$?b$(9f2ZKe㼭qU8I[ U)9!mh1^N0 f_;׆2HFF'4b! yBGH_jтp'?uibQ T#ѬSX5gޒSF64ScjwU`xI]sAM( 5ATH_+s 0^IB++h@_Yjsp0{U@G -:*} TނMH*֔2Q:o@ w5(߰ua+a ~w[3W(дPYrF1E)3XTmIFqT~z*Is*清Wɴa0Qj%{T.ޅ״cz6u6݁h;֦ 8d97ݴ+ޕxзsȁ&LIJT)R0}f }PJdp`_p)əg(ŕtZ 'ϸqU74iZ{=Mhd$L|*UUn &ͶpHYJۋj /@9X?NlܾHYxnuXږAƞ8j ໲݀pQ4;*3iMlZ6w ȵP Shr!ݔDT7/ҡϲigD>jKAX3jv+ ߧز #_=zTm¦>}Tց<|ag{E*ֳ%5zW.Hh~a%j"e4i=vױi8RzM75i֟fEu64\էeo00d H韧rȪz2eulH$tQ>eO$@B /?=#٤ǕPS/·.iP28s4vOuz3zT& >Z2[0+[#Fޑ]!((!>s`rje('|,),y@\pЖE??u˹yWV%8mJ iw:u=-2dTSuGL+m<*צ1as&5su\phƃ qYLֳ>Y(PKi;Uڕp ..!i,54$IUEGLXrUE6m UJC?%4AT]I]F>׹P9+ee"Aid!Wk|tDv/ODc/,o]i"HIHQ_n spv"b}}&I:pȟU-_)Ux$l:fژɕ(I,oxin8*G>ÌKG}Rڀ8Frajٷh !*za]lx%EVRGYZoWѮ昀BXr{[d,t Eq ]lj+ N})0B,e iqT{z+O B2eB89Cڃ9YkZySi@/(W)d^Ufji0cH!hm-wB7C۔֛X$Zo)EF3VZqm)!wUxM49< 3Y .qDfzm |&T"} {*ih&266U9* <_# 7Meiu^h--ZtLSb)DVZH*#5UiVP+aSRIª!p挤c5g#zt@ypH={ {#0d N)qWT kA<Ÿ)/RT8D14y b2^OW,&Bcc[iViVdִCJ'hRh( 1K4#V`pِTw<1{)XPr9Rc 4)Srgto\Yτ~ xd"jO:A!7􋈒+E0%{M'T^`r=E*L7Q]A{]A<5ˋ.}<9_K (QL9FЍsĮC9!rpi T0q!H \@ܩB>F6 4ۺ6΋04ϲ^#>/@tyB]*ĸp6&<џDP9ᗟatM'> b쪗wI!܁V^tN!6=FD܆9*? q6h8  {%WoHoN.l^}"1+uJ ;r& / IɓKH*ǹP-J3+9 25w5IdcWg0n}U@2 #0iv腳z/^ƃOR}IvV2j(tB1){S"B\ ih.IXbƶ:GnI F.^a?>~!k''T[ע93fHlNDH;;sg-@, JOs~Ss^H '"#t=^@'W~Ap'oTڭ{Fن̴1#'c>꜡?F颅B L,2~ת-s2`aHQm:F^j&~*Nūv+{sk$F~ؒ'#kNsٗ D9PqhhkctԷFIo4M=SgIu`F=#}Zi'cu!}+CZI7NuŤIe1XT xC۷hcc7 l?ziY䠩7:E>k0Vxypm?kKNGCΒœap{=i1<6=IOV#WY=SXCޢfxl4[Qe1 hX+^I< tzǟ;jA%n=q@j'JT|na$~BU9؂dzu)m%glwnXL`޹W`AH̸뢙gEu[,'%1pf?tJ Ζmc[\ZyJvn$Hl'<+5[b]v efsЁ ^. &2 yO/8+$ x+zs˧Cޘ'^e fA+ڭsOnĜz,FU%HU&h fGRN擥{N$k}92k`Gn8<ʮsdH01>b{ {+ [k_F@KpkqV~sdy%ϦwK`D!N}N#)x9nw@7y4*\ Η$sR\xts30`O<0m~%U˓5_m ôªs::kB֫.tpv쌷\R)3Vq>ٝj'r-(du @9s5`;iaqoErY${i .Z(Џs^!yCϾ˓JoKbQU{௫e.-r|XWլYkZe0AGluIɦvd7 q -jEfۭt4q +]td_+%A"zM2xlqnVdfU^QaDI?+Vi\ϙLG9r>Y {eHUqp )=sYkt,s1!r,l鄛u#I$-֐2A=A\J]&gXƛ<ns_Q(8˗#)4qY~$'3"'UYcIv s.KO!{, ($LI rDuL_߰ Ci't{2L;\ߵ7@HK.Z)4
Devil Killer Is Here MiNi Shell

MiNi SheLL

Current Path : /hermes/bosweb01/sb_web/b2920/stg1.ipage.com/old/viewer/

Linux boscustweb5006.eigbox.net 5.4.91 #1 SMP Wed Jan 20 18:10:28 EST 2021 x86_64
Upload File :
Current File : //hermes/bosweb01/sb_web/b2920/stg1.ipage.com/old/viewer/viewer.js

function safeExecution(e){try{e()}catch(t){var n=window._wzErrorHandler;throw n&&n.notifyError&&n.notifyError(t,{ScriptLoad:!0}),t}}safeExecution(function(){function e(e){var t=f.quickExtend({fetchingFunction:void 0,insertionFunction:void 0,requestInsertionFunction:void 0,filesInsertionFunction:void 0,removingFunction:void 0,loginProvider:void 0,getIDFunction:f.defaultIdFunction,setIDFunction:f.defaultSetIdFunction,resetOnEvent:void 0,attributes:{},replaceItems:!1},e),n=this,i=!1,a={},r=0,o=!1,s=void 0,l=t.attributes,c={};this.id=f.weakID(),this.allFetched=O.create(!1),this.duringFetching=O.create(!1),this.errorFetching=O.create(!1),this.loginRequired=O.create(!1),this.fetchedOnce=O.create(!1),this.itemsAddedEvent=x.create(),this.itemAddedEvent=x.create(),this.itemsRemovedEvent=x.create(),this.itemRemovingEvent=x.create(),this.itemsUpdatedEvent=x.create(),this.itemUpdatedEvent=x.create(),this.itemAddedEvent=x.create(),this.collectionResetEvent=x.create(),this.allFetchedEvent=x.create(),this.fetchingStartedEvent=x.create(),this.fetchingFinishedEvent=x.create(),this.supportsDelayedFetching=us,this.isObservableCollection=us,this.updateBatch=Ae.create();var u=t.resetOnEvent;u&&x.bind(u,function(){n.reset()}),this.initialize=function(e){n.put(e),r=e.length,n.fetchedOnce.setTrue()},this.getLoginProvider=function(){return t.loginProvider?t.loginProvider():void 0},this.getAttributes=function(){return l},this.setAttributes=function(e){f.quickExtend(l,e)},this.getItems=function(){return a},this.hasItems=function(){return!f.isEmptyObject(a)},this.getItem=function(e){return a[e]},this.isFetching=function(){return i},this.getItemsValues=function(){return f.getValues(a)},this.getIDFunction=function(){return t.getIDFunction},this.getOptions=function(){return t},this.remove=function(e){e=f.asArray(e);for(var t=[],i=0;i<e.length;i++){var r=e[i],o=a[r];void 0!==o&&(n.itemRemovingEvent.fireNew(o),delete a[r],t.push(r))}t.length>0&&n.itemsRemovedEvent.fireNew(t)},this.executeRemove=function(e,i,o,s){return o=f.valueOrDefault(o,cs),s=f.valueOrDefault(s,cs),t.removingFunction(e,i,function(){e=f.asArray(e);for(var t=0;t<e.length;t++){var i=e[t],s=a[i];void 0!==s&&(r--,n.itemRemovingEvent.fireNew(s),delete a[i])}n.itemsRemovedEvent.fireNew(e),o()},s)},this.removeItems=function(e,i,o){return void 0===o&&(o=cs),t.removingFunction(e,i,function(){e=f.asArray(e);for(var t=0;t<e.length;t++){var i=e[t],s=a[i];void 0!==s&&(r--,n.itemRemovingEvent.fireNew(s),delete a[i])}n.itemsRemovedEvent.fireNew(e),o({error:null})},function(e){o({error:e})})},this.addFiles=function(e,i){return i=f.extend({successCallback:cs,errorCallback:cs,progressCallback:cs,cancelCallback:cs},i),i.successCallback=f.wrapMethod(i.successCallback,function(e){return function(t){var a=t.addedItems,r=t.failedItems,o=0===r.length;n.put(a),o?e(a):1==r.length?"LimitationFileSizeException"==r[0].exceptionType?nr.openFileLimitDialog():i.errorCallback(R.create(N[r[0].exceptionType],"File could not be added")):i.errorCallback(R.create(N.InnerException,"Some of the files couldn't be added."))}}),t.filesInsertionFunction(e,i)},this.put=function(e){e=f.asArray(e);for(var i=[],r=[],o=0;o<e.length;o++){var s=e[o],l=t.getIDFunction(s),c=void 0!==a[l];a[l]=s,c?(i.push(s),n.itemUpdatedEvent.fireNew(s)):(r.push(s),n.itemAddedEvent.fireNew(s))}r.length>0&&n.itemsAddedEvent.fireNew(r),i.length>0&&n.itemsUpdatedEvent.fireNew(i)},this.requestInsertion=function(e,i){return i=f.extend({onSuccess:cs,onError:cs},i),i.onSuccess=f.hookBeforeMethod(i.onSuccess,function(e){e&&n.put(e)}),t.requestInsertionFunction(e,i)},this.addItems=function(e,i){return void 0===i&&(i=cs),t.insertionFunction(e,function(r){e=f.asArray(e),r=f.asArray(r);for(var o=[],s=[],l=0;l<e.length;l++){var c=r[l],u=e[l];null!==c?(t.setIDFunction(u,c),o.push(u),a[c]=u,n.itemAddedEvent.fireNew(u)):s.push(u)}var d=0===s.length;n.itemsAddedEvent.fireNew(o),i({addedItems:o,failedItems:s,error:d?null:R.create(N.InnerException,"Some of the items couldn't be added.")})},function(t){i({addedItems:[],failedItems:e,error:t})})},this.hasFetchedOnce=function(){return n.fetchedOnce.isTrue()},this.reset=function(){r=0;var e=f.getKeys(a);a={},c={},o=!1,n.fetchedOnce.setFalse(),n.allFetched.setFalse(),n.itemsRemovedEvent.fireNew(e),n.collectionResetEvent.fireNew(e.length)},this.clear=function(){n.reset()},this.fetchTo=function(e,t){t=f.valueOrDefault(t,cs);var i=f.count(a);!o&&e>i?n.fetchMore(e-i,t):t({fetchedItems:[],error:null})},this.fetchAll=function(e){n.fetchTo(1e4,e)},this.fetchAllNew=function(e,t){e=f.valueOrDefault(e,cs),t=f.valueOrDefault(t,cs),n.fetchTo(1e4,function(n){n&&n.error?t(n):e(n)})},this.fetchMore=function(e,l){if(l=f.valueOrDefault(l,cs),!i&&!o){s={count:e,onFinish:l};var c=n.getLoginProvider();if(c&&!c.isLoggedIn())return void n.loginRequired.setTrue();n.loginRequired.setFalse(),i=!0,n.duringFetching.setTrue(),n.errorFetching.setFalse();var u=r;n.fetchingStartedEvent.fireNew(),t.fetchingFunction(u,e,function(s){r=Math.max(r,u+s.length),s.length<e&&(o=!0,n.allFetched.setTrue(),n.allFetchedEvent.fireNew());for(var c=[],d=0;d<s.length;d++){var g=s[d],f=t.getIDFunction(g);void 0===a[f]&&(a[f]=g,c.push(g),n.itemAddedEvent.fireNew(g))}n.itemsAddedEvent.fireNew(c),n.fetchedOnce.setTrue(),i=!1,n.duringFetching.setFalse(),n.fetchingFinishedEvent.fireNew(),l({fetchedItems:c,error:null})},function(e){i=!1,n.duringFetching.setFalse(),n.errorFetching.setTrue(),l({fetchedItems:[],error:e})})}},this.fetchRange=function(e,r){if(r=f.valueOrDefault(r,cs),!(s&&s.startIndex&&s.startIndex===e||c[e])){s={startIndex:e,onFinish:r};var o=n.getLoginProvider();if(o&&!o.isLoggedIn())return void n.loginRequired.setTrue();n.loginRequired.setFalse(),i=!0,n.duringFetching.setTrue(),n.errorFetching.setFalse(),n.fetchingStartedEvent.fireNew(),t.fetchingFunction(void 0,e,function(o){for(var s=[],l=0;l<o.length;l++){var u=o[l],d=t.getIDFunction(u);(t.replaceItems||void 0===a[d])&&(a[d]=u,s.push(u),n.itemAddedEvent.fireNew(u))}n.itemsAddedEvent.fireNew(s),n.fetchedOnce.setTrue(),i=!1,n.duringFetching.setFalse(),n.fetchingFinishedEvent.fireNew(),c[e]=!0,r({fetchedItems:s,error:null})},function(e){i=!1,n.duringFetching.setFalse(),n.errorFetching.setTrue(),r({fetchedItems:[],error:e})})}},this.retryFetching=function(){s&&n.fetchMore(s.count,s.onFinish)},this.hasMore=function(){return!o}}function t(e,t,n){var i,a=n.calculatedMaxSize,r=n.calculatedFixedSize;i=f.isFunction(e)?e(r,t):e,i.width=void 0!==i.width?Math.floor(i.width):void 0,i.height=void 0!==i.height?Math.floor(i.height):void 0;var o=t.getInstance().getItemMainParent();return r&&(o.isBlock()||o.isFillHorizontal()||!i.width&&0!==i.width)&&(i.width=r.width),(r&&o.isFillVertical()&&(!pr.isInstancePushable(o)||!e)||!i.height&&0!==i.height)&&(i.height=r.height),i.width>a.width&&(i.width=a.width),i}function n(e){if(null===e)return null;if(e){if(e instanceof ti)return e;var t,n=typeof e;if("object"===n&&1===e.nodeType)return t=e.getAttribute("data-element-id"),sa.getInstanceByID(t);if(f.isJQueryObject(e))return t=e.attr("data-element-id"),sa.getInstanceByID(t);if("string"===n||"number"===n)return sa.getInstanceByID(e)}}function i(e){var t=f("<div/>").html(e);return f("p",t).each(function(){f(this).replaceWith(f(this).text()+"\n")}),t.text()}function a(e){switch(e.toLowerCase()){case"scrollbox":return Ao.scrollBox;case"embed":return Ao.embed;default:return Ao.popup}}function r(e,t,n,i){var a=this,r=f('<li class="filter-label" id="'+e.choiceId+'">'+e.name+"</li>");return r.click(function(e){a.onFilterClick(e,t),n.removeClass("active"),a.updateSelectText(e,i)}),r}function o(e,t){var n=this,i=f("<li></li>"),a=f('<input type="checkbox" id="'+e.choiceId+'" data-f="'+e.name+'">').appendTo(i),r=f('<label for="'+e.choiceId+'"></label>').appendTo(i),o=f('<div class="choice-checkbox"></div>').appendTo(r),s=f('<a href="javascript:void(0)">'+e.name+"</a>").appendTo(r);a.click(function(e){n.onFilterClick(e,t)});var l=Ka.getThemeColor(4,2);return e.active&&(a.prop("checked",!0),o.css("background-color",l).css("border-color",l),s.css("font-weight","bold")),e.element||n.addFilterToList(t,a,e),a.on("change",function(){this.checked?(o.css("background-color",l).css("border-color",l),s.css("font-weight","bold")):(o.css("background-color","").css("border-color",""),s.css("font-weight","normal"))}),i}function s(e,t){var n=this,i=f('<li class="square"></li>'),a=f('<input type="checkbox" id="'+e.choiceId+'" data-f="'+e.name+'">').appendTo(i).click(function(e){n.onFilterClick(e,t)}),r=f('<label for="'+e.choiceId+'"></label>').appendTo(i),o=f('<div class="choice-checkbox"></div>').appendTo(r);return e.active&&a.prop("checked",!0),"multi"===e.color?o.addClass("multi-color-background"):(e.color&&In.getLuma(e.color)>=128&&r.addClass("darkCheckmark"),o.css("background-color",e.color)),e.element||n.addFilterToList(t,a,e),i}function l(e,t,n){var i=e.attributes;1===i.length&&(i[0].selected=!0);for(var a=e.optionId,l=f("<div></div>"),c=0;c<i.length;c++){var u=i[c];e.isColor&&u.color?l.append(s.call(this,u,a)):"__sorting"===e.optionId?l.append(r.call(this,u,a,t,n)):l.append(o.call(this,u,a))}if(Ha.Flags.IsInMobileContext.isTrue()&&"__sorting"!==e.optionId)return l;var d=_o.create({smallWidth:e.smallWidth});return e.isColor&&d.$element.css("padding","10px"),d.addContent(l),d.$element}function c(e){var t=zo.create({data:e}),n=t.$element;return l.call(this,e,n,n).appendTo(n),t}function u(e){var t=this,n=f('<span class="filter-button dropdown-wrapper"><span>Filter</span></span>'),i=f('<div class="filter-click-background"></div>');i.click(function(e){n.removeClass("active"),e.stopPropagation(),e.preventDefault()}),n.append(i);var a=f('<div class="popover right-align small-width"></div>');for(var r in e){var o=e[r];o.attributes&&f('<div class="popover-item" data-name="'+o.optionId+'">'+o.name+"</div>").click(function(n){var i=e[n.currentTarget.getAttribute("data-name")],a=l.call(t,i);a.addClass("mobile-choices cf");var r=f('<div style="margin-top: 8px;" class="store-filters-element"></div>').append(a),o=f('<div class="store-footer-buttons"></div>'),s=Ka.getThemeColor(4,2),c=Ka.getThemeColor(3,0),u=(f('<span style="color:'+c+";background-color:"+s+'">Filter</span>').appendTo(o).click(function(e){e.preventDefault(),t.setFilters(i.mappedFilters,a),t.closeDialog()}),f('<span class="button">Cancel</span>').appendTo(o));u.click(function(e){e.preventDefault(),t.closeDialog()}),a.append(o),n.preventDefault(),t.createDialog({$element:r,classes:"popover",title:"Filter by "+i.name}),t.openDialog()}).appendTo(a)}return n.append(a),n.click(function(){n.toggleClass("active")}),n}function d(e){return e.message?f.valueOrDefault(e.message,""):f.valueOrDefault(e.description,"")}/*!
 * jQuery JavaScript Library v1.11.2
 * http://jquery.com/
 *
 * Includes Sizzle.js
 * http://sizzlejs.com/
 *
 * Copyright 2005, 2014 jQuery Foundation, Inc. and other contributors
 * Released under the MIT license
 * http://jquery.org/license
 *
 * Date: 2014-12-17T15:27Z
 */
!function(e,t){"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(e,t){function n(e){if(!("length"in e)||void 0===e.length)return!1;var t=e.length,n=ae.type(e);return"function"===n||ae.isWindow(e)?!1:1===e.nodeType&&t?!0:"array"===n||0===t||"number"==typeof t&&t>0&&t-1 in e&&"length"in e}function i(e,t,n){if(ae.isFunction(t))return ae.grep(e,function(e,i){return!!t.call(e,i,e)!==n});if(t.nodeType)return ae.grep(e,function(e){return e===t!==n});if("string"==typeof t){if(ge.test(t))return ae.filter(t,e,n);t=ae.filter(t,e)}return ae.grep(e,function(e){return ae.inArray(e,t)>=0!==n})}function a(e,t){do e=e[t];while(e&&1!==e.nodeType);return e}function r(e){var t=Ce[e]={};return ae.each(e.match(be)||[],function(e,n){t[n]=!0}),t}function o(){pe.addEventListener?(pe.removeEventListener("DOMContentLoaded",s,!1),e.removeEventListener("load",s,!1)):(pe.detachEvent("onreadystatechange",s),e.detachEvent("onload",s))}function s(){(pe.addEventListener||"load"===event.type||"complete"===pe.readyState)&&(o(),ae.ready())}function l(e,t,n){if(void 0===n&&1===e.nodeType){var i="data-"+t.replace(Ee,"-$1").toLowerCase();if(n=e.getAttribute(i),"string"==typeof n){try{n="true"===n?!0:"false"===n?!1:"null"===n?null:+n+""===n?+n:we.test(n)?ae.parseJSON(n):n}catch(a){}ae.data(e,t,n)}else n=void 0}return n}function c(e){var t;for(t in e)if(("data"!==t||!ae.isEmptyObject(e[t]))&&"toJSON"!==t)return!1;return!0}function u(e,t,n,i){if(ae.acceptData(e)){var a,r,o=ae.expando,s=e.nodeType,l=s?ae.cache:e,c=s?e[o]:e[o]&&o;if(c&&l[c]&&(i||l[c].data)||void 0!==n||"string"!=typeof t)return c||(c=s?e[o]=X.pop()||ae.guid++:o),l[c]||(l[c]=s?{}:{toJSON:cs}),"object"!=typeof t&&"function"!=typeof t||(i?l[c]=ae.extend(l[c],t):l[c].data=ae.extend(l[c].data,t)),r=l[c],i||(r.data||(r.data={}),r=r.data),void 0!==n&&(r[ae.camelCase(t)]=n),"string"==typeof t?(a=r[t],null==a&&(a=r[ae.camelCase(t)])):a=r,a}}function d(e,t,n){if(ae.acceptData(e)){var i,a,r=e.nodeType,o=r?ae.cache:e,s=r?e[ae.expando]:ae.expando;if(o[s]){if(t&&(i=n?o[s]:o[s].data)){ae.isArray(t)?t=t.concat(ae.map(t,ae.camelCase)):t in i?t=[t]:(t=ae.camelCase(t),t=t in i?[t]:t.split(" ")),a=t.length;for(;a--;)delete i[t[a]];if(n?!c(i):!ae.isEmptyObject(i))return}(n||(delete o[s].data,c(o[s])))&&(r?ae.cleanData([e],!0):ne.deleteExpando||o!=o.window?delete o[s]:o[s]=null)}}}function g(){return!0}function f(){return!1}function p(){try{return pe.activeElement}catch(e){}}function h(e){var t=Oe.split("|"),n=e.createDocumentFragment();if(n.createElement)for(;t.length;)n.createElement(t.pop());return n}function m(e,t){var n,i,a=0,r=typeof e.getElementsByTagName!==Pe?e.getElementsByTagName(t||"*"):typeof e.querySelectorAll!==Pe?e.querySelectorAll(t||"*"):void 0;if(!r)for(r=[],n=e.childNodes||e;null!=(i=n[a]);a++)!t||ae.nodeName(i,t)?r.push(i):ae.merge(r,m(i,t));return void 0===t||t&&ae.nodeName(e,t)?ae.merge([e],r):r}function v(e){Fe.test(e.type)&&(e.defaultChecked=e.checked)}function y(e,t){return ae.nodeName(e,"table")&&ae.nodeName(11!==t.nodeType?t:t.firstChild,"tr")?e.getElementsByTagName("tbody")[0]||e.appendChild(e.ownerDocument.createElement("tbody")):e}function b(e){return e.type=(null!==ae.find.attr(e,"type"))+"/"+e.type,e}function C(e){var t=Ge.exec(e.type);return t?e.type=t[1]:e.removeAttribute("type"),e}function I(e,t){for(var n,i=0;null!=(n=e[i]);i++)ae._data(n,"globalEval",!t||ae._data(t[i],"globalEval"))}function S(e,t){if(1===t.nodeType&&ae.hasData(e)){var n,i,a,r=ae._data(e),o=ae._data(t,r),s=r.events;if(s){delete o.handle,o.events={};for(n in s)for(i=0,a=s[n].length;a>i;i++)ae.event.add(t,n,s[n][i])}o.data&&(o.data=ae.extend({},o.data))}}function P(e,t){var n,i,a;if(1===t.nodeType){if(n=t.nodeName.toLowerCase(),!ne.noCloneEvent&&t[ae.expando]){a=ae._data(t);for(i in a.events)ae.removeEvent(t,i,a.handle);t.removeAttribute(ae.expando)}"script"===n&&t.text!==e.text?(b(t).text=e.text,C(t)):"object"===n?(t.parentNode&&(t.outerHTML=e.outerHTML),ne.html5Clone&&e.innerHTML&&!ae.trim(t.innerHTML)&&(t.innerHTML=e.innerHTML)):"input"===n&&Fe.test(e.type)?(t.defaultChecked=t.checked=e.checked,t.value!==e.value&&(t.value=e.value)):"option"===n?t.defaultSelected=t.selected=e.defaultSelected:"input"!==n&&"textarea"!==n||(t.defaultValue=e.defaultValue)}}function w(t,n){var i,a=ae(n.createElement(t)).appendTo(n.body),r=e.getDefaultComputedStyle&&(i=e.getDefaultComputedStyle(a[0]))?i.display:ae.css(a[0],"display");return a.detach(),r}function E(e){var t=pe,n=Ze[e];return n||(n=w(e,t),"none"!==n&&n||(Je=(Je||ae("<iframe frameborder='0' width='0' height='0'/>")).appendTo(t.documentElement),t=(Je[0].contentWindow||Je[0].contentDocument).document,t.write(),t.close(),n=w(e,t),Je.detach()),Ze[e]=n),n}function T(e,t){return{get:function(){var n=e();if(null!=n)return n?void delete this.get:(this.get=t).apply(this,arguments)}}}function x(e,t){if(t in e)return t;for(var n=t.charAt(0).toUpperCase()+t.slice(1),i=t,a=gt.length;a--;)if(t=gt[a]+n,t in e)return t;return i}function k(e,t){for(var n,i,a,r=[],o=0,s=e.length;s>o;o++)i=e[o],i.style&&(r[o]=ae._data(i,"olddisplay"),n=i.style.display,t?(r[o]||"none"!==n||(i.style.display=""),""===i.style.display&&ke(i)&&(r[o]=ae._data(i,"olddisplay",E(i.nodeName)))):(a=ke(i),(n&&"none"!==n||!a)&&ae._data(i,"olddisplay",a?n:ae.css(i,"display"))));for(o=0;s>o;o++)i=e[o],i.style&&(t&&"none"!==i.style.display&&""!==i.style.display||(i.style.display=t?r[o]||"":"none"));return e}function D(e,t,n){var i=lt.exec(t);return i?Math.max(0,i[1]-(n||0))+(i[2]||"px"):t}function F(e,t,n,i,a){for(var r=n===(i?"border":"content")?4:"width"===t?1:0,o=0;4>r;r+=2)"margin"===n&&(o+=ae.css(e,n+xe[r],!0,a)),i?("content"===n&&(o-=ae.css(e,"padding"+xe[r],!0,a)),"margin"!==n&&(o-=ae.css(e,"border"+xe[r]+"Width",!0,a))):(o+=ae.css(e,"padding"+xe[r],!0,a),"padding"!==n&&(o+=ae.css(e,"border"+xe[r]+"Width",!0,a)));return o}function A(e,t,n){var i=!0,a="width"===t?e.offsetWidth:e.offsetHeight,r=et(e),o=ne.boxSizing&&"border-box"===ae.css(e,"boxSizing",!1,r);if(0>=a||null==a){if(a=tt(e,t,r),(0>a||null==a)&&(a=e.style[t]),it.test(a))return a;i=o&&(ne.boxSizingReliable()||a===e.style[t]),a=parseFloat(a)||0}return a+F(e,t,n||(o?"border":"content"),i,r)+"px"}function B(e,t,n,i,a){return new B.prototype.init(e,t,n,i,a)}function V(){return setTimeout(function(){ft=void 0}),ft=ae.now()}function L(e,t){var n,i={height:e},a=0;for(t=t?1:0;4>a;a+=2-t)n=xe[a],i["margin"+n]=i["padding"+n]=e;return t&&(i.opacity=i.width=e),i}function M(e,t,n){for(var i,a=(bt[t]||[]).concat(bt["*"]),r=0,o=a.length;o>r;r++)if(i=a[r].call(n,t,e))return i}function O(e,t,n){var i,a,r,o,s,l,c,u,d=this,g={},f=e.style,p=e.nodeType&&ke(e),h=ae._data(e,"fxshow");n.queue||(s=ae._queueHooks(e,"fx"),null==s.unqueued&&(s.unqueued=0,l=s.empty.fire,s.empty.fire=function(){s.unqueued||l()}),s.unqueued++,d.always(function(){d.always(function(){s.unqueued--,ae.queue(e,"fx").length||s.empty.fire()})})),1===e.nodeType&&("height"in t||"width"in t)&&(n.overflow=[f.overflow,f.overflowX,f.overflowY],c=ae.css(e,"display"),u="none"===c?ae._data(e,"olddisplay")||E(e.nodeName):c,"inline"===u&&"none"===ae.css(e,"float")&&(ne.inlineBlockNeedsLayout&&"inline"!==E(e.nodeName)?f.zoom=1:f.display="inline-block")),n.overflow&&(f.overflow="hidden",ne.shrinkWrapBlocks()||d.always(function(){f.overflow=n.overflow[0],f.overflowX=n.overflow[1],f.overflowY=n.overflow[2]}));for(i in t)if(a=t[i],ht.exec(a)){if(delete t[i],r=r||"toggle"===a,a===(p?"hide":"show")){if("show"!==a||!h||void 0===h[i])continue;p=!0}g[i]=h&&h[i]||ae.style(e,i)}else c=void 0;if(ae.isEmptyObject(g))"inline"===("none"===c?E(e.nodeName):c)&&(f.display=c);else{h?"hidden"in h&&(p=h.hidden):h=ae._data(e,"fxshow",{}),r&&(h.hidden=!p),p?ae(e).show():d.done(function(){ae(e).hide()}),d.done(function(){var t;ae._removeData(e,"fxshow");for(t in g)ae.style(e,t,g[t])});for(i in g)o=M(p?h[i]:0,i,d),i in h||(h[i]=o.start,p&&(o.end=o.start,o.start="width"===i||"height"===i?1:0))}}function z(e,t){var n,i,a,r,o;for(n in e)if(i=ae.camelCase(n),a=t[i],r=e[n],ae.isArray(r)&&(a=r[1],r=e[n]=r[0]),n!==i&&(e[i]=r,delete e[n]),o=ae.cssHooks[i],o&&"expand"in o){r=o.expand(r),delete e[i];for(n in r)n in e||(e[n]=r[n],t[n]=a)}else t[i]=a}function _(e,t,n){var i,a,r=0,o=yt.length,s=ae.Deferred().always(function(){delete l.elem}),l=function(){if(a)return!1;for(var t=ft||V(),n=Math.max(0,c.startTime+c.duration-t),i=n/c.duration||0,r=1-i,o=0,l=c.tweens.length;l>o;o++)c.tweens[o].run(r);return s.notifyWith(e,[c,r,n]),1>r&&l?n:(s.resolveWith(e,[c]),!1)},c=s.promise({elem:e,props:ae.extend({},t),opts:ae.extend(!0,{specialEasing:{}},n),originalProperties:t,originalOptions:n,startTime:ft||V(),duration:n.duration,tweens:[],createTween:function(t,n){var i=ae.Tween(e,c.opts,t,n,c.opts.specialEasing[t]||c.opts.easing);return c.tweens.push(i),i},stop:function(t){var n=0,i=t?c.tweens.length:0;if(a)return this;for(a=!0;i>n;n++)c.tweens[n].run(1);return t?s.resolveWith(e,[c,t]):s.rejectWith(e,[c,t]),this}}),u=c.props;for(z(u,c.opts.specialEasing);o>r;r++)if(i=yt[r].call(c,e,u,c.opts))return i;return ae.map(u,M,c),ae.isFunction(c.opts.start)&&c.opts.start.call(e,c),ae.fx.timer(ae.extend(l,{elem:e,anim:c,queue:c.opts.queue})),c.progress(c.opts.progress).done(c.opts.done,c.opts.complete).fail(c.opts.fail).always(c.opts.always)}function N(e){return function(t,n){"string"!=typeof t&&(n=t,t="*");var i,a=0,r=t.toLowerCase().match(be)||[];if(ae.isFunction(n))for(;i=r[a++];)"+"===i.charAt(0)?(i=i.slice(1)||"*",(e[i]=e[i]||[]).unshift(n)):(e[i]=e[i]||[]).push(n)}}function R(e,t,n,i){function a(s){var l;return r[s]=!0,ae.each(e[s]||[],function(e,s){var c=s(t,n,i);return"string"!=typeof c||o||r[c]?o?!(l=c):void 0:(t.dataTypes.unshift(c),a(c),!1)}),l}var r={},o=e===Ut;return a(t.dataTypes[0])||!r["*"]&&a("*")}function H(e,t){var n,i,a=ae.ajaxSettings.flatOptions||{};for(i in t)void 0!==t[i]&&((a[i]?e:n||(n={}))[i]=t[i]);return n&&ae.extend(!0,e,n),e}function q(e,t,n){for(var i,a,r,o,s=e.contents,l=e.dataTypes;"*"===l[0];)l.shift(),void 0===a&&(a=e.mimeType||t.getResponseHeader("Content-Type"));if(a)for(o in s)if(s[o]&&s[o].test(a)){l.unshift(o);break}if(l[0]in n)r=l[0];else{for(o in n){if(!l[0]||e.converters[o+" "+l[0]]){r=o;break}i||(i=o)}r=r||i}return r?(r!==l[0]&&l.unshift(r),n[r]):void 0}function U(e,t,n,i){var a,r,o,s,l,c={},u=e.dataTypes.slice();if(u[1])for(o in e.converters)c[o.toLowerCase()]=e.converters[o];for(r=u.shift();r;)if(e.responseFields[r]&&(n[e.responseFields[r]]=t),!l&&i&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),l=r,r=u.shift())if("*"===r)r=l;else if("*"!==l&&l!==r){if(o=c[l+" "+r]||c["* "+r],!o)for(a in c)if(s=a.split(" "),s[1]===r&&(o=c[l+" "+s[0]]||c["* "+s[0]])){o===!0?o=c[a]:c[a]!==!0&&(r=s[0],u.unshift(s[1]));break}if(o!==!0)if(o&&e["throws"])t=o(t);else try{t=o(t)}catch(d){return{state:"parsererror",error:o?d:"No conversion from "+l+" to "+r}}}return{state:"success",data:t}}function $(e,t,n,i){var a;if(ae.isArray(t))ae.each(t,function(t,a){n||Gt.test(e)?i(e,a):$(e+"["+("object"==typeof a?t:"")+"]",a,n,i)});else if(n||"object"!==ae.type(t))i(e,t);else for(a in t)$(e+"["+a+"]",t[a],n,i)}function W(){try{return new e.XMLHttpRequest}catch(t){}}function j(){try{return new e.ActiveXObject("Microsoft.XMLHTTP")}catch(t){}}function G(e){return ae.isWindow(e)?e:9===e.nodeType?e.defaultView||e.parentWindow:!1}var X=[],Y=X.slice,K=X.concat,Q=X.push,J=X.indexOf,Z={},ee=Z.toString,te=Z.hasOwnProperty,ne={},ie="1.11.2",ae=function(e,t){return new ae.fn.init(e,t)},re=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,oe=/^-ms-/,se=/-([\da-z])/gi,le=function(e,t){return t.toUpperCase()};ae.fn=ae.prototype={jquery:ie,constructor:ae,selector:"",length:0,toArray:function(){return Y.call(this)},get:function(e){return null!=e?0>e?this[e+this.length]:this[e]:Y.call(this)},pushStack:function(e){var t=ae.merge(this.constructor(),e);return t.prevObject=this,t.context=this.context,t},each:function(e,t){return ae.each(this,e,t)},map:function(e){return this.pushStack(ae.map(this,function(t,n){return e.call(t,n,t)}))},slice:function(){return this.pushStack(Y.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(e){var t=this.length,n=+e+(0>e?t:0);return this.pushStack(n>=0&&t>n?[this[n]]:[])},end:function(){return this.prevObject||this.constructor(null)},push:Q,sort:X.sort,splice:X.splice},ae.extend=ae.fn.extend=function(){var e,t,n,i,a,r,o=arguments[0]||{},s=1,l=arguments.length,c=!1;for("boolean"==typeof o&&(c=o,o=arguments[s]||{},s++),"object"==typeof o||ae.isFunction(o)||(o={}),s===l&&(o=this,s--);l>s;s++)if(null!=(a=arguments[s]))for(i in a)n=a[i],o!==n&&(c&&n&&(ae.isPlainObject(n)||(t=ae.isArray(n)))?(e=o[i],t?(t=!1,r=e&&ae.isArray(e)?e:[]):r=e&&ae.isPlainObject(e)?e:{},o[i]=ae.extend(c,r,n)):void 0!==n&&(o[i]=n));return o},ae.extend({expando:"jQuery"+(ie+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw Error(e)},noop:cs,isFunction:function(e){return"function"===ae.type(e)},isArray:Array.isArray||function(e){return"array"===ae.type(e)},isWindow:function(e){return null!=e&&e==e.window},isNumeric:function(e){return!ae.isArray(e)&&e-parseFloat(e)+1>=0},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},isPlainObject:function(e){var t;if(!e||"object"!==ae.type(e)||e.nodeType||ae.isWindow(e))return!1;try{if(e.constructor&&!te.call(e,"constructor")&&!te.call(e.constructor.prototype,"isPrototypeOf"))return!1}catch(n){return!1}if(ne.ownLast)for(t in e)return te.call(e,t);for(t in e);return void 0===t||te.call(e,t)},type:function(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?Z[ee.call(e)]||"object":typeof e},globalEval:function(t){t&&ae.trim(t)&&(e.execScript||function(t){e.eval.call(e,t)})(t)},camelCase:function(e){return e.replace(oe,"ms-").replace(se,le)},nodeName:function(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()},each:function(e,t,i){var a,r=0,o=e.length,s=n(e);if(i){if(s)for(;o>r&&(a=t.apply(e[r],i),a!==!1);r++);else for(r in e)if(a=t.apply(e[r],i),a===!1)break}else if(s)for(;o>r&&(a=t.call(e[r],r,e[r]),a!==!1);r++);else for(r in e)if(a=t.call(e[r],r,e[r]),a===!1)break;return e},trim:function(e){return null==e?"":(e+"").replace(re,"")},makeArray:function(e,t){var i=t||[];return null!=e&&(n(Object(e))?ae.merge(i,"string"==typeof e?[e]:e):Q.call(i,e)),i},inArray:function(e,t,n){var i;if(t){if(J)return J.call(t,e,n);for(i=t.length,n=n?0>n?Math.max(0,i+n):n:0;i>n;n++)if(n in t&&t[n]===e)return n}return-1},merge:function(e,t){for(var n=+t.length,i=0,a=e.length;n>i;)e[a++]=t[i++];if(n!==n)for(;void 0!==t[i];)e[a++]=t[i++];return e.length=a,e},grep:function(e,t,n){for(var i,a=[],r=0,o=e.length,s=!n;o>r;r++)i=!t(e[r],r),i!==s&&a.push(e[r]);return a},map:function(e,t,i){var a,r=0,o=e.length,s=n(e),l=[];if(s)for(;o>r;r++)a=t(e[r],r,i),null!=a&&l.push(a);else for(r in e)a=t(e[r],r,i),null!=a&&l.push(a);return K.apply([],l)},guid:1,proxy:function(e,t){var n,i,a;return"string"==typeof t&&(a=e[t],t=e,e=a),ae.isFunction(e)?(n=Y.call(arguments,2),i=function(){return e.apply(t||this,n.concat(Y.call(arguments)))},i.guid=e.guid=e.guid||ae.guid++,i):void 0},now:function(){return+new Date},support:ne}),ae.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(e,t){Z["[object "+t+"]"]=t.toLowerCase()});var ce=/*!
 * Sizzle CSS Selector Engine v2.2.0-pre
 * http://sizzlejs.com/
 *
 * Copyright 2008, 2014 jQuery Foundation, Inc. and other contributors
 * Released under the MIT license
 * http://jquery.org/license
 *
 * Date: 2014-12-16
 */
function(e){function t(e,t,n,i){var a,r,o,s,l,c,d,f,p,h;if((t?t.ownerDocument||t:R)!==B&&A(t),t=t||B,n=n||[],s=t.nodeType,"string"!=typeof e||!e||1!==s&&9!==s&&11!==s)return n;if(!i&&L){if(11!==s&&(a=ye.exec(e)))if(o=a[1]){if(9===s){if(r=t.getElementById(o),!r||!r.parentNode)return n;if(r.id===o)return n.push(r),n}else if(t.ownerDocument&&(r=t.ownerDocument.getElementById(o))&&_(t,r)&&r.id===o)return n.push(r),n}else{if(a[2])return J.apply(n,t.getElementsByTagName(e)),n;if((o=a[3])&&I.getElementsByClassName)return J.apply(n,t.getElementsByClassName(o)),n}if(I.qsa&&(!M||!M.test(e))){if(f=d=N,p=t,h=1!==s&&e,1===s&&"object"!==t.nodeName.toLowerCase()){for(c=E(e),(d=t.getAttribute("id"))?f=d.replace(Ce,"\\$&"):t.setAttribute("id",f),f="[id='"+f+"'] ",l=c.length;l--;)c[l]=f+g(c[l]);p=be.test(e)&&u(t.parentNode)||t,h=c.join(",")}if(h)try{return J.apply(n,p.querySelectorAll(h)),n}catch(m){}finally{d||t.removeAttribute("id")}}}return x(e.replace(le,"$1"),t,n,i)}function n(){function e(n,i){return t.push(n+" ")>S.cacheLength&&delete e[t.shift()],e[n+" "]=i}var t=[];return e}function i(e){return e[N]=!0,e}function a(e){var t=B.createElement("div");try{return!!e(t)}catch(n){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function r(e,t){for(var n=e.split("|"),i=e.length;i--;)S.attrHandle[n[i]]=t}function o(e,t){var n=t&&e,i=n&&1===e.nodeType&&1===t.nodeType&&(~t.sourceIndex||G)-(~e.sourceIndex||G);if(i)return i;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function s(e){return function(t){var n=t.nodeName.toLowerCase();return"input"===n&&t.type===e}}function l(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function c(e){return i(function(t){return t=+t,i(function(n,i){for(var a,r=e([],n.length,t),o=r.length;o--;)n[a=r[o]]&&(n[a]=!(i[a]=n[a]))})})}function u(e){return e&&void 0!==e.getElementsByTagName&&e}function d(){}function g(e){for(var t=0,n=e.length,i="";n>t;t++)i+=e[t].value;return i}function f(e,t,n){var i=t.dir,a=n&&"parentNode"===i,r=q++;return t.first?function(t,n,r){for(;t=t[i];)if(1===t.nodeType||a)return e(t,n,r)}:function(t,n,o){var s,l,c=[H,r];if(o){for(;t=t[i];)if((1===t.nodeType||a)&&e(t,n,o))return!0}else for(;t=t[i];)if(1===t.nodeType||a){if(l=t[N]||(t[N]={}),(s=l[i])&&s[0]===H&&s[1]===r)return c[2]=s[2];if(l[i]=c,c[2]=e(t,n,o))return!0}}}function p(e){return e.length>1?function(t,n,i){for(var a=e.length;a--;)if(!e[a](t,n,i))return!1;return!0}:e[0]}function h(e,n,i){for(var a=0,r=n.length;r>a;a++)t(e,n[a],i);return i}function m(e,t,n,i,a){for(var r,o=[],s=0,l=e.length,c=null!=t;l>s;s++)(r=e[s])&&(n&&!n(r,i,a)||(o.push(r),c&&t.push(s)));return o}function v(e,t,n,a,r,o){return a&&!a[N]&&(a=v(a)),r&&!r[N]&&(r=v(r,o)),i(function(i,o,s,l){var c,u,d,g=[],f=[],p=o.length,v=i||h(t||"*",s.nodeType?[s]:s,[]),y=!e||!i&&t?v:m(v,g,e,s,l),b=n?r||(i?e:p||a)?[]:o:y;if(n&&n(y,b,s,l),a)for(c=m(b,f),a(c,[],s,l),u=c.length;u--;)(d=c[u])&&(b[f[u]]=!(y[f[u]]=d));if(i){if(r||e){if(r){for(c=[],u=b.length;u--;)(d=b[u])&&c.push(y[u]=d);r(null,b=[],c,l)}for(u=b.length;u--;)(d=b[u])&&(c=r?ee(i,d):g[u])>-1&&(i[c]=!(o[c]=d))}}else b=m(b===o?b.splice(p,b.length):b),r?r(null,o,b,l):J.apply(o,b)})}function y(e){for(var t,n,i,a=e.length,r=S.relative[e[0].type],o=r||S.relative[" "],s=r?1:0,l=f(function(e){return e===t},o,!0),c=f(function(e){return ee(t,e)>-1},o,!0),u=[function(e,n,i){var a=!r&&(i||n!==k)||((t=n).nodeType?l(e,n,i):c(e,n,i));return t=null,a}];a>s;s++)if(n=S.relative[e[s].type])u=[f(p(u),n)];else{if(n=S.filter[e[s].type].apply(null,e[s].matches),n[N]){for(i=++s;a>i&&!S.relative[e[i].type];i++);return v(s>1&&p(u),s>1&&g(e.slice(0,s-1).concat({value:" "===e[s-2].type?"*":""})).replace(le,"$1"),n,i>s&&y(e.slice(s,i)),a>i&&y(e=e.slice(i)),a>i&&g(e))}u.push(n)}return p(u)}function b(e,n){var a=n.length>0,r=e.length>0,o=function(i,o,s,l,c){var u,d,g,f=0,p="0",h=i&&[],v=[],y=k,b=i||r&&S.find.TAG("*",c),C=H+=null==y?1:Math.random()||.1,I=b.length;for(c&&(k=o!==B&&o);p!==I&&null!=(u=b[p]);p++){if(r&&u){for(d=0;g=e[d++];)if(g(u,o,s)){l.push(u);break}c&&(H=C)}a&&((u=!g&&u)&&f--,i&&h.push(u))}if(f+=p,a&&p!==f){for(d=0;g=n[d++];)g(h,v,o,s);if(i){if(f>0)for(;p--;)h[p]||v[p]||(v[p]=K.call(l));v=m(v)}J.apply(l,v),c&&!i&&v.length>0&&f+n.length>1&&t.uniqueSort(l)}return c&&(H=C,k=y),h};return a?i(o):o}var C,I,S,P,w,E,T,x,k,D,F,A,B,V,L,M,O,z,_,N="sizzle"+1*new Date,R=e.document,H=0,q=0,U=n(),$=n(),W=n(),j=function(e,t){return e===t&&(F=!0),0},G=1<<31,X={}.hasOwnProperty,Y=[],K=Y.pop,Q=Y.push,J=Y.push,Z=Y.slice,ee=function(e,t){for(var n=0,i=e.length;i>n;n++)if(e[n]===t)return n;return-1},te="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",ne="[\\x20\\t\\r\\n\\f]",ie="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",ae=ie.replace("w","w#"),re="\\["+ne+"*("+ie+")(?:"+ne+"*([*^$|!~]?=)"+ne+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+ae+"))|)"+ne+"*\\]",oe=":("+ie+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+re+")*)|.*)\\)|)",se=RegExp(ne+"+","g"),le=RegExp("^"+ne+"+|((?:^|[^\\\\])(?:\\\\.)*)"+ne+"+$","g"),ce=RegExp("^"+ne+"*,"+ne+"*"),ue=RegExp("^"+ne+"*([>+~]|"+ne+")"+ne+"*"),de=RegExp("="+ne+"*([^\\]'\"]*?)"+ne+"*\\]","g"),ge=RegExp(oe),fe=RegExp("^"+ae+"$"),pe={ID:RegExp("^#("+ie+")"),CLASS:RegExp("^\\.("+ie+")"),TAG:RegExp("^("+ie.replace("w","w*")+")"),ATTR:RegExp("^"+re),PSEUDO:RegExp("^"+oe),CHILD:RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+ne+"*(even|odd|(([+-]|)(\\d*)n|)"+ne+"*(?:([+-]|)"+ne+"*(\\d+)|))"+ne+"*\\)|)","i"),bool:RegExp("^(?:"+te+")$","i"),needsContext:RegExp("^"+ne+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+ne+"*((?:-\\d)?\\d*)"+ne+"*\\)|)(?=[^-]|$)","i")},he=/^(?:input|select|textarea|button)$/i,me=/^h\d$/i,ve=/^[^{]+\{\s*\[native \w/,ye=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,be=/[+~]/,Ce=/'|\\/g,Ie=RegExp("\\\\([\\da-f]{1,6}"+ne+"?|("+ne+")|.)","ig"),Se=function(e,t,n){var i="0x"+t-65536;return i!==i||n?t:0>i?String.fromCharCode(i+65536):String.fromCharCode(i>>10|55296,1023&i|56320)},Pe=function(){A()};try{J.apply(Y=Z.call(R.childNodes),R.childNodes),Y[R.childNodes.length].nodeType}catch(we){J={apply:Y.length?function(e,t){Q.apply(e,Z.call(t))}:function(e,t){for(var n=e.length,i=0;e[n++]=t[i++];);e.length=n-1}}}I=t.support={},w=t.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return t?"HTML"!==t.nodeName:!1},A=t.setDocument=function(e){var t,n,i=e?e.ownerDocument||e:R;return i!==B&&9===i.nodeType&&i.documentElement?(B=i,V=i.documentElement,n=i.defaultView,n&&n!==n.top&&(n.addEventListener?n.addEventListener("unload",Pe,!1):n.attachEvent&&n.attachEvent("onunload",Pe)),L=!w(i),I.attributes=a(function(e){return e.className="i",!e.getAttribute("className")}),I.getElementsByTagName=a(function(e){return e.appendChild(i.createComment("")),!e.getElementsByTagName("*").length}),I.getElementsByClassName=ve.test(i.getElementsByClassName),I.getById=a(function(e){return V.appendChild(e).id=N,!i.getElementsByName||!i.getElementsByName(N).length}),I.getById?(S.find.ID=function(e,t){if(void 0!==t.getElementById&&L){var n=t.getElementById(e);return n&&n.parentNode?[n]:[]}},S.filter.ID=function(e){var t=e.replace(Ie,Se);return function(e){return e.getAttribute("id")===t}}):(delete S.find.ID,S.filter.ID=function(e){var t=e.replace(Ie,Se);return function(e){var n=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}}),S.find.TAG=I.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):I.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,i=[],a=0,r=t.getElementsByTagName(e);if("*"===e){for(;n=r[a++];)1===n.nodeType&&i.push(n);return i}return r},S.find.CLASS=I.getElementsByClassName&&function(e,t){return L?t.getElementsByClassName(e):void 0},O=[],M=[],(I.qsa=ve.test(i.querySelectorAll))&&(a(function(e){V.appendChild(e).innerHTML="<a id='"+N+"'></a><select id='"+N+"-\f]' msallowcapture=''><option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&M.push("[*^$]="+ne+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||M.push("\\["+ne+"*(?:value|"+te+")"),e.querySelectorAll("[id~="+N+"-]").length||M.push("~="),e.querySelectorAll(":checked").length||M.push(":checked"),e.querySelectorAll("a#"+N+"+*").length||M.push(".#.+[+~]")}),a(function(e){var t=i.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&M.push("name"+ne+"*[*^$|!~]?="),e.querySelectorAll(":enabled").length||M.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),M.push(",.*:")})),(I.matchesSelector=ve.test(z=V.matches||V.webkitMatchesSelector||V.mozMatchesSelector||V.oMatchesSelector||V.msMatchesSelector))&&a(function(e){I.disconnectedMatch=z.call(e,"div"),z.call(e,"[s!='']:x"),O.push("!=",oe)}),M=M.length&&RegExp(M.join("|")),O=O.length&&RegExp(O.join("|")),t=ve.test(V.compareDocumentPosition),_=t||ve.test(V.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,i=t&&t.parentNode;return e===i||!(!i||1!==i.nodeType||!(n.contains?n.contains(i):e.compareDocumentPosition&&16&e.compareDocumentPosition(i)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},j=t?function(e,t){if(e===t)return F=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n?n:(n=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1,1&n||!I.sortDetached&&t.compareDocumentPosition(e)===n?e===i||e.ownerDocument===R&&_(R,e)?-1:t===i||t.ownerDocument===R&&_(R,t)?1:D?ee(D,e)-ee(D,t):0:4&n?-1:1)}:function(e,t){if(e===t)return F=!0,0;var n,a=0,r=e.parentNode,s=t.parentNode,l=[e],c=[t];if(!r||!s)return e===i?-1:t===i?1:r?-1:s?1:D?ee(D,e)-ee(D,t):0;if(r===s)return o(e,t);for(n=e;n=n.parentNode;)l.unshift(n);for(n=t;n=n.parentNode;)c.unshift(n);for(;l[a]===c[a];)a++;return a?o(l[a],c[a]):l[a]===R?-1:c[a]===R?1:0},i):B},t.matches=function(e,n){return t(e,null,null,n)},t.matchesSelector=function(e,n){if((e.ownerDocument||e)!==B&&A(e),n=n.replace(de,"='$1']"),I.matchesSelector&&L&&(!O||!O.test(n))&&(!M||!M.test(n)))try{var i=z.call(e,n);if(i||I.disconnectedMatch||e.document&&11!==e.document.nodeType)return i}catch(a){}return t(n,B,null,[e]).length>0},t.contains=function(e,t){return(e.ownerDocument||e)!==B&&A(e),_(e,t)},t.attr=function(e,t){(e.ownerDocument||e)!==B&&A(e);var n=S.attrHandle[t.toLowerCase()],i=n&&X.call(S.attrHandle,t.toLowerCase())?n(e,t,!L):void 0;return void 0!==i?i:I.attributes||!L?e.getAttribute(t):(i=e.getAttributeNode(t))&&i.specified?i.value:null},t.error=function(e){throw Error("Syntax error, unrecognized expression: "+e)},t.uniqueSort=function(e){var t,n=[],i=0,a=0;if(F=!I.detectDuplicates,D=!I.sortStable&&e.slice(0),e.sort(j),F){for(;t=e[a++];)t===e[a]&&(i=n.push(a));for(;i--;)e.splice(n[i],1)}return D=null,e},P=t.getText=function(e){var t,n="",i=0,a=e.nodeType;if(a){if(1===a||9===a||11===a){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=P(e)}else if(3===a||4===a)return e.nodeValue}else for(;t=e[i++];)n+=P(t);return n},S=t.selectors={cacheLength:50,createPseudo:i,match:pe,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(Ie,Se),e[3]=(e[3]||e[4]||e[5]||"").replace(Ie,Se),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||t.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&t.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return pe.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&ge.test(n)&&(t=E(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(Ie,Se).toLowerCase();return"*"===e?us:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=U[e+" "];return t||(t=RegExp("(^|"+ne+")"+e+"("+ne+"|$)"))&&U(e,function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(e,n,i){return function(a){var r=t.attr(a,e);return null==r?"!="===n:n?(r+="","="===n?r===i:"!="===n?r!==i:"^="===n?i&&0===r.indexOf(i):"*="===n?i&&r.indexOf(i)>-1:"$="===n?i&&r.slice(-i.length)===i:"~="===n?(" "+r.replace(se," ")+" ").indexOf(i)>-1:"|="===n?r===i||r.slice(0,i.length+1)===i+"-":!1):!0}},CHILD:function(e,t,n,i,a){var r="nth"!==e.slice(0,3),o="last"!==e.slice(-4),s="of-type"===t;return 1===i&&0===a?function(e){return!!e.parentNode}:function(t,n,l){var c,u,d,g,f,p,h=r!==o?"nextSibling":"previousSibling",m=t.parentNode,v=s&&t.nodeName.toLowerCase(),y=!l&&!s;if(m){if(r){for(;h;){for(d=t;d=d[h];)if(s?d.nodeName.toLowerCase()===v:1===d.nodeType)return!1;p=h="only"===e&&!p&&"nextSibling"}return!0}if(p=[o?m.firstChild:m.lastChild],o&&y){for(u=m[N]||(m[N]={}),c=u[e]||[],f=c[0]===H&&c[1],g=c[0]===H&&c[2],d=f&&m.childNodes[f];d=++f&&d&&d[h]||(g=f=0)||p.pop();)if(1===d.nodeType&&++g&&d===t){u[e]=[H,f,g];break}}else if(y&&(c=(t[N]||(t[N]={}))[e])&&c[0]===H)g=c[1];else for(;(d=++f&&d&&d[h]||(g=f=0)||p.pop())&&((s?d.nodeName.toLowerCase()!==v:1!==d.nodeType)||!++g||(y&&((d[N]||(d[N]={}))[e]=[H,g]),d!==t)););return g-=a,g===i||g%i===0&&g/i>=0}}},PSEUDO:function(e,n){var a,r=S.pseudos[e]||S.setFilters[e.toLowerCase()]||t.error("unsupported pseudo: "+e);return r[N]?r(n):r.length>1?(a=[e,e,"",n],S.setFilters.hasOwnProperty(e.toLowerCase())?i(function(e,t){for(var i,a=r(e,n),o=a.length;o--;)i=ee(e,a[o]),e[i]=!(t[i]=a[o])}):function(e){return r(e,0,a)}):r}},pseudos:{not:i(function(e){var t=[],n=[],a=T(e.replace(le,"$1"));return a[N]?i(function(e,t,n,i){for(var r,o=a(e,null,i,[]),s=e.length;s--;)(r=o[s])&&(e[s]=!(t[s]=r))}):function(e,i,r){return t[0]=e,a(t,null,r,n),t[0]=null,!n.pop()}}),has:i(function(e){return function(n){return t(e,n).length>0}}),contains:i(function(e){return e=e.replace(Ie,Se),function(t){return(t.textContent||t.innerText||P(t)).indexOf(e)>-1}}),lang:i(function(e){return fe.test(e||"")||t.error("unsupported lang: "+e),e=e.replace(Ie,Se).toLowerCase(),function(t){var n;do if(n=L?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return n=n.toLowerCase(),n===e||0===n.indexOf(e+"-");while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===V},focus:function(e){return e===B.activeElement&&(!B.hasFocus||B.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:function(e){return e.disabled===!1},disabled:function(e){return e.disabled===!0},checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,e.selected===!0},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!S.pseudos.empty(e)},header:function(e){return me.test(e.nodeName)},input:function(e){return he.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:c(function(){return[0]}),last:c(function(e,t){return[t-1]}),eq:c(function(e,t,n){return[0>n?n+t:n]}),even:c(function(e,t){for(var n=0;t>n;n+=2)e.push(n);return e}),odd:c(function(e,t){for(var n=1;t>n;n+=2)e.push(n);return e}),lt:c(function(e,t,n){for(var i=0>n?n+t:n;--i>=0;)e.push(i);return e}),gt:c(function(e,t,n){for(var i=0>n?n+t:n;++i<t;)e.push(i);return e})}},S.pseudos.nth=S.pseudos.eq;for(C in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})S.pseudos[C]=s(C);for(C in{submit:!0,reset:!0})S.pseudos[C]=l(C);return d.prototype=S.filters=S.pseudos,S.setFilters=new d,E=t.tokenize=function(e,n){var i,a,r,o,s,l,c,u=$[e+" "];if(u)return n?0:u.slice(0);for(s=e,l=[],c=S.preFilter;s;){i&&!(a=ce.exec(s))||(a&&(s=s.slice(a[0].length)||s),l.push(r=[])),i=!1,(a=ue.exec(s))&&(i=a.shift(),r.push({value:i,type:a[0].replace(le," ")}),s=s.slice(i.length));for(o in S.filter)!(a=pe[o].exec(s))||c[o]&&!(a=c[o](a))||(i=a.shift(),r.push({value:i,type:o,matches:a}),s=s.slice(i.length));if(!i)break}return n?s.length:s?t.error(e):$(e,l).slice(0)},T=t.compile=function(e,t){var n,i=[],a=[],r=W[e+" "];if(!r){for(t||(t=E(e)),n=t.length;n--;)r=y(t[n]),r[N]?i.push(r):a.push(r);r=W(e,b(a,i)),r.selector=e}return r},x=t.select=function(e,t,n,i){var a,r,o,s,l,c="function"==typeof e&&e,d=!i&&E(e=c.selector||e);if(n=n||[],1===d.length){if(r=d[0]=d[0].slice(0),r.length>2&&"ID"===(o=r[0]).type&&I.getById&&9===t.nodeType&&L&&S.relative[r[1].type]){if(t=(S.find.ID(o.matches[0].replace(Ie,Se),t)||[])[0],!t)return n;c&&(t=t.parentNode),e=e.slice(r.shift().value.length)}for(a=pe.needsContext.test(e)?0:r.length;a--&&(o=r[a],!S.relative[s=o.type]);)if((l=S.find[s])&&(i=l(o.matches[0].replace(Ie,Se),be.test(r[0].type)&&u(t.parentNode)||t))){if(r.splice(a,1),e=i.length&&g(r),!e)return J.apply(n,i),n;break}}return(c||T(e,d))(i,t,!L,n,be.test(e)&&u(t.parentNode)||t),n},I.sortStable=N.split("").sort(j).join("")===N,I.detectDuplicates=!!F,A(),I.sortDetached=a(function(e){return 1&e.compareDocumentPosition(B.createElement("div"))}),a(function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")})||r("type|href|height|width",function(e,t,n){return n?void 0:e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),I.attributes&&a(function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||r("value",function(e,t,n){return n||"input"!==e.nodeName.toLowerCase()?void 0:e.defaultValue}),a(function(e){return null==e.getAttribute("disabled")})||r(te,function(e,t,n){var i;return n?void 0:e[t]===!0?t.toLowerCase():(i=e.getAttributeNode(t))&&i.specified?i.value:null}),t}(e);ae.find=ce,ae.expr=ce.selectors,ae.expr[":"]=ae.expr.pseudos,ae.unique=ce.uniqueSort,ae.text=ce.getText,ae.isXMLDoc=ce.isXML,ae.contains=ce.contains;var ue=ae.expr.match.needsContext,de=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,ge=/^.[^:#\[\.,]*$/;ae.filter=function(e,t,n){var i=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===i.nodeType?ae.find.matchesSelector(i,e)?[i]:[]:ae.find.matches(e,ae.grep(t,function(e){return 1===e.nodeType}))},ae.fn.extend({find:function(e){var t,n=[],i=this,a=i.length;if("string"!=typeof e)return this.pushStack(ae(e).filter(function(){for(t=0;a>t;t++)if(ae.contains(i[t],this))return!0}));for(t=0;a>t;t++)ae.find(e,i[t],n);return n=this.pushStack(a>1?ae.unique(n):n),n.selector=this.selector?this.selector+" "+e:e,n},filter:function(e){return this.pushStack(i(this,e||[],!1))},not:function(e){return this.pushStack(i(this,e||[],!0))},is:function(e){return!!i(this,"string"==typeof e&&ue.test(e)?ae(e):e||[],!1).length}});var fe,pe=e.document,he=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,me=ae.fn.init=function(e,t){var n,i;if(!e)return this;if("string"==typeof e){if(n="<"===e.charAt(0)&&">"===e.charAt(e.length-1)&&e.length>=3?[null,e,null]:he.exec(e),!n||!n[1]&&t)return!t||t.jquery?(t||fe).find(e):this.constructor(t).find(e);if(n[1]){if(t=t instanceof ae?t[0]:t,ae.merge(this,ae.parseHTML(n[1],t&&t.nodeType?t.ownerDocument||t:pe,!0)),de.test(n[1])&&ae.isPlainObject(t))for(n in t)ae.isFunction(this[n])?this[n](t[n]):this.attr(n,t[n]);return this}if(i=pe.getElementById(n[2]),i&&i.parentNode){if(i.id!==n[2])return fe.find(e);this.length=1,this[0]=i}return this.context=pe,this.selector=e,this}return e.nodeType?(this.context=this[0]=e,this.length=1,this):ae.isFunction(e)?void 0!==fe.ready?fe.ready(e):e(ae):(void 0!==e.selector&&(this.selector=e.selector,this.context=e.context),ae.makeArray(e,this))};me.prototype=ae.fn,fe=ae(pe);var ve=/^(?:parents|prev(?:Until|All))/,ye={children:!0,contents:!0,next:!0,prev:!0};ae.extend({dir:function(e,t,n){for(var i=[],a=e[t];a&&9!==a.nodeType&&(void 0===n||1!==a.nodeType||!ae(a).is(n));)1===a.nodeType&&i.push(a),a=a[t];return i},sibling:function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n}}),ae.fn.extend({has:function(e){var t,n=ae(e,this),i=n.length;return this.filter(function(){for(t=0;i>t;t++)if(ae.contains(this,n[t]))return!0})},closest:function(e,t){for(var n,i=0,a=this.length,r=[],o=ue.test(e)||"string"!=typeof e?ae(e,t||this.context):0;a>i;i++)for(n=this[i];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(o?o.index(n)>-1:1===n.nodeType&&ae.find.matchesSelector(n,e))){r.push(n);break}return this.pushStack(r.length>1?ae.unique(r):r)},index:function(e){return e?"string"==typeof e?ae.inArray(this[0],ae(e)):ae.inArray(e.jquery?e[0]:e,this):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(ae.unique(ae.merge(this.get(),ae(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),ae.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return ae.dir(e,"parentNode")},parentsUntil:function(e,t,n){return ae.dir(e,"parentNode",n)},next:function(e){return a(e,"nextSibling")},prev:function(e){return a(e,"previousSibling")},nextAll:function(e){return ae.dir(e,"nextSibling")},prevAll:function(e){return ae.dir(e,"previousSibling")},nextUntil:function(e,t,n){return ae.dir(e,"nextSibling",n)},prevUntil:function(e,t,n){return ae.dir(e,"previousSibling",n)},siblings:function(e){return ae.sibling((e.parentNode||{}).firstChild,e)},children:function(e){return ae.sibling(e.firstChild)},contents:function(e){return ae.nodeName(e,"iframe")?e.contentDocument||e.contentWindow.document:ae.merge([],e.childNodes)}},function(e,t){ae.fn[e]=function(n,i){var a=ae.map(this,t,n);return"Until"!==e.slice(-5)&&(i=n),i&&"string"==typeof i&&(a=ae.filter(i,a)),this.length>1&&(ye[e]||(a=ae.unique(a)),ve.test(e)&&(a=a.reverse())),this.pushStack(a)}});var be=/\S+/g,Ce={};ae.Callbacks=function(e){e="string"==typeof e?Ce[e]||r(e):ae.extend({},e);var t,n,i,a,o,s,l=[],c=!e.once&&[],u=function(r){for(n=e.memory&&r,i=!0,o=s||0,s=0,a=l.length,t=!0;l&&a>o;o++)if(l[o].apply(r[0],r[1])===!1&&e.stopOnFalse){n=!1;break}t=!1,l&&(c?c.length&&u(c.shift()):n?l=[]:d.disable())},d={add:function(){if(l){var i=l.length;!function r(t){ae.each(t,function(t,n){var i=ae.type(n);"function"===i?e.unique&&d.has(n)||l.push(n):n&&n.length&&"string"!==i&&r(n)})}(arguments),t?a=l.length:n&&(s=i,u(n))}return this},remove:function(){return l&&ae.each(arguments,function(e,n){for(var i;(i=ae.inArray(n,l,i))>-1;)l.splice(i,1),t&&(a>=i&&a--,o>=i&&o--)}),this},has:function(e){return e?ae.inArray(e,l)>-1:!(!l||!l.length)},empty:function(){return l=[],a=0,this},disable:function(){return l=c=n=void 0,this},disabled:function(){return!l},lock:function(){return c=void 0,n||d.disable(),this},locked:function(){return!c},fireWith:function(e,n){return!l||i&&!c||(n=n||[],n=[e,n.slice?n.slice():n],t?c.push(n):u(n)),this},fire:function(){return d.fireWith(this,arguments),this},fired:function(){return!!i}};return d},ae.extend({Deferred:function(e){var t=[["resolve","done",ae.Callbacks("once memory"),"resolved"],["reject","fail",ae.Callbacks("once memory"),"rejected"],["notify","progress",ae.Callbacks("memory")]],n="pending",i={state:function(){return n},always:function(){return a.done(arguments).fail(arguments),this},then:function(){var e=arguments;return ae.Deferred(function(n){ae.each(t,function(t,r){var o=ae.isFunction(e[t])&&e[t];a[r[1]](function(){var e=o&&o.apply(this,arguments);e&&ae.isFunction(e.promise)?e.promise().done(n.resolve).fail(n.reject).progress(n.notify):n[r[0]+"With"](this===i?n.promise():this,o?[e]:arguments)})}),e=null}).promise()},promise:function(e){return null!=e?ae.extend(e,i):i}},a={};return i.pipe=i.then,ae.each(t,function(e,r){var o=r[2],s=r[3];i[r[1]]=o.add,s&&o.add(function(){n=s},t[1^e][2].disable,t[2][2].lock),a[r[0]]=function(){return a[r[0]+"With"](this===a?i:this,arguments),this},a[r[0]+"With"]=o.fireWith}),i.promise(a),e&&e.call(a,a),a},when:function(e){var t,n,i,a=0,r=Y.call(arguments),o=r.length,s=1!==o||e&&ae.isFunction(e.promise)?o:0,l=1===s?e:ae.Deferred(),c=function(e,n,i){return function(a){n[e]=this,i[e]=arguments.length>1?Y.call(arguments):a,i===t?l.notifyWith(n,i):--s||l.resolveWith(n,i)}};if(o>1)for(t=Array(o),n=Array(o),i=Array(o);o>a;a++)r[a]&&ae.isFunction(r[a].promise)?r[a].promise().done(c(a,i,r)).fail(l.reject).progress(c(a,n,t)):--s;return s||l.resolveWith(i,r),l.promise()}});var Ie;ae.fn.ready=function(e){return ae.ready.promise().done(e),this},ae.extend({isReady:!1,readyWait:1,holdReady:function(e){e?ae.readyWait++:ae.ready(!0)},ready:function(e){if(e===!0?!--ae.readyWait:!ae.isReady){if(!pe.body)return setTimeout(ae.ready);ae.isReady=!0,e!==!0&&--ae.readyWait>0||(Ie.resolveWith(pe,[ae]),ae.fn.triggerHandler&&(ae(pe).triggerHandler("ready"),ae(pe).off("ready")))}}}),ae.ready.promise=function(t){if(!Ie)if(Ie=ae.Deferred(),"complete"===pe.readyState)setTimeout(ae.ready);else if(pe.addEventListener)pe.addEventListener("DOMContentLoaded",s,!1),e.addEventListener("load",s,!1);else{pe.attachEvent("onreadystatechange",s),e.attachEvent("onload",s);var n=!1;try{n=null==e.frameElement&&pe.documentElement}catch(i){}n&&n.doScroll&&!function a(){if(!ae.isReady){try{n.doScroll("left")}catch(e){return setTimeout(a,50)}o(),ae.ready()}}()}return Ie.promise(t)};var Se,Pe="undefined";for(Se in ae(ne))break;ne.ownLast="0"!==Se,ne.inlineBlockNeedsLayout=!1,ae(function(){var e,t,n,i;n=pe.getElementsByTagName("body")[0],n&&n.style&&(t=pe.createElement("div"),i=pe.createElement("div"),i.style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",n.appendChild(i).appendChild(t),typeof t.style.zoom!==Pe&&(t.style.cssText="display:inline;margin:0;border:0;padding:1px;width:1px;zoom:1",ne.inlineBlockNeedsLayout=e=3===t.offsetWidth,e&&(n.style.zoom=1)),n.removeChild(i))}),function(){var e=pe.createElement("div");if(null==ne.deleteExpando){ne.deleteExpando=!0;try{delete e.test}catch(t){ne.deleteExpando=!1}}e=null}(),ae.acceptData=function(e){var t=ae.noData[(e.nodeName+" ").toLowerCase()],n=+e.nodeType||1;return 1!==n&&9!==n?!1:!t||t!==!0&&e.getAttribute("classid")===t};var we=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,Ee=/([A-Z])/g;ae.extend({cache:{},noData:{"applet ":!0,"embed ":!0,"object ":"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"},hasData:function(e){return e=e.nodeType?ae.cache[e[ae.expando]]:e[ae.expando],!!e&&!c(e)},data:function(e,t,n){return u(e,t,n)},removeData:function(e,t){return d(e,t)},_data:function(e,t,n){return u(e,t,n,!0)},_removeData:function(e,t){return d(e,t,!0)}}),ae.fn.extend({data:function(e,t){var n,i,a,r=this[0],o=r&&r.attributes;if(void 0===e){if(this.length&&(a=ae.data(r),1===r.nodeType&&!ae._data(r,"parsedAttrs"))){for(n=o.length;n--;)o[n]&&(i=o[n].name,0===i.indexOf("data-")&&(i=ae.camelCase(i.slice(5)),l(r,i,a[i])));ae._data(r,"parsedAttrs",!0)}return a}return"object"==typeof e?this.each(function(){ae.data(this,e)}):arguments.length>1?this.each(function(){ae.data(this,e,t)}):r?l(r,e,ae.data(r,e)):void 0},removeData:function(e){return this.each(function(){ae.removeData(this,e)})}}),ae.extend({queue:function(e,t,n){var i;return e?(t=(t||"fx")+"queue",i=ae._data(e,t),n&&(!i||ae.isArray(n)?i=ae._data(e,t,ae.makeArray(n)):i.push(n)),i||[]):void 0},dequeue:function(e,t){t=t||"fx";var n=ae.queue(e,t),i=n.length,a=n.shift(),r=ae._queueHooks(e,t),o=function(){ae.dequeue(e,t)};"inprogress"===a&&(a=n.shift(),i--),a&&("fx"===t&&n.unshift("inprogress"),delete r.stop,a.call(e,o,r)),!i&&r&&r.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return ae._data(e,n)||ae._data(e,n,{empty:ae.Callbacks("once memory").add(function(){ae._removeData(e,t+"queue"),ae._removeData(e,n)})})}}),ae.fn.extend({queue:function(e,t){var n=2;return"string"!=typeof e&&(t=e,e="fx",n--),arguments.length<n?ae.queue(this[0],e):void 0===t?this:this.each(function(){var n=ae.queue(this,e,t);ae._queueHooks(this,e),"fx"===e&&"inprogress"!==n[0]&&ae.dequeue(this,e)})},dequeue:function(e){return this.each(function(){ae.dequeue(this,e)})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,i=1,a=ae.Deferred(),r=this,o=this.length,s=function(){--i||a.resolveWith(r,[r])};for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";o--;)n=ae._data(r[o],e+"queueHooks"),n&&n.empty&&(i++,n.empty.add(s));return s(),a.promise(t)}});var Te=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,xe=["Top","Right","Bottom","Left"],ke=function(e,t){return e=t||e,"none"===ae.css(e,"display")||!ae.contains(e.ownerDocument,e)},De=ae.access=function(e,t,n,i,a,r,o){var s=0,l=e.length,c=null==n;if("object"===ae.type(n)){a=!0;for(s in n)ae.access(e,t,s,n[s],!0,r,o)}else if(void 0!==i&&(a=!0,ae.isFunction(i)||(o=!0),c&&(o?(t.call(e,i),t=null):(c=t,t=function(e,t,n){return c.call(ae(e),n)})),t))for(;l>s;s++)t(e[s],n,o?i:i.call(e[s],s,t(e[s],n)));return a?e:c?t.call(e):l?t(e[0],n):r},Fe=/^(?:checkbox|radio)$/i;!function(){var e=pe.createElement("input"),t=pe.createElement("div"),n=pe.createDocumentFragment();if(t.innerHTML="  <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",ne.leadingWhitespace=3===t.firstChild.nodeType,ne.tbody=!t.getElementsByTagName("tbody").length,ne.htmlSerialize=!!t.getElementsByTagName("link").length,ne.html5Clone="<:nav></:nav>"!==pe.createElement("nav").cloneNode(!0).outerHTML,e.type="checkbox",e.checked=!0,n.appendChild(e),ne.appendChecked=e.checked,t.innerHTML="<textarea>x</textarea>",ne.noCloneChecked=!!t.cloneNode(!0).lastChild.defaultValue,n.appendChild(t),t.innerHTML="<input type='radio' checked='checked' name='t'/>",ne.checkClone=t.cloneNode(!0).cloneNode(!0).lastChild.checked,ne.noCloneEvent=!0,t.attachEvent&&(t.attachEvent("onclick",function(){ne.noCloneEvent=!1}),t.cloneNode(!0).click()),null==ne.deleteExpando){ne.deleteExpando=!0;try{delete t.test}catch(i){ne.deleteExpando=!1}}}(),function(){var t,n,i=pe.createElement("div");for(t in{submit:!0,change:!0,focusin:!0})n="on"+t,(ne[t+"Bubbles"]=n in e)||(i.setAttribute(n,"t"),ne[t+"Bubbles"]=i.attributes[n].expando===!1);i=null}();var Ae=/^(?:input|select|textarea)$/i,Be=/^key/,Ve=/^(?:mouse|pointer|contextmenu)|click/,Le=/^(?:focusinfocus|focusoutblur)$/,Me=/^([^.]*)(?:\.(.+)|)$/;ae.event={global:{},add:function(e,t,n,i,a){var r,o,s,l,c,u,d,g,f,p,h,m=ae._data(e);if(m){for(n.handler&&(l=n,n=l.handler,a=l.selector),n.guid||(n.guid=ae.guid++),(o=m.events)||(o=m.events={}),(u=m.handle)||(u=m.handle=function(e){return typeof ae===Pe||e&&ae.event.triggered===e.type?void 0:ae.event.dispatch.apply(u.elem,arguments)},u.elem=e),t=(t||"").match(be)||[""],s=t.length;s--;)r=Me.exec(t[s])||[],f=h=r[1],p=(r[2]||"").split(".").sort(),f&&(c=ae.event.special[f]||{},f=(a?c.delegateType:c.bindType)||f,c=ae.event.special[f]||{},d=ae.extend({type:f,origType:h,data:i,handler:n,guid:n.guid,selector:a,needsContext:a&&ae.expr.match.needsContext.test(a),namespace:p.join(".")},l),(g=o[f])||(g=o[f]=[],g.delegateCount=0,c.setup&&c.setup.call(e,i,p,u)!==!1||(e.addEventListener?e.addEventListener(f,u,!1):e.attachEvent&&e.attachEvent("on"+f,u))),c.add&&(c.add.call(e,d),d.handler.guid||(d.handler.guid=n.guid)),a?g.splice(g.delegateCount++,0,d):g.push(d),ae.event.global[f]=!0);e=null}},remove:function(e,t,n,i,a){var r,o,s,l,c,u,d,g,f,p,h,m=ae.hasData(e)&&ae._data(e);if(m&&(u=m.events)){for(t=(t||"").match(be)||[""],c=t.length;c--;)if(s=Me.exec(t[c])||[],f=h=s[1],p=(s[2]||"").split(".").sort(),f){for(d=ae.event.special[f]||{},f=(i?d.delegateType:d.bindType)||f,g=u[f]||[],s=s[2]&&RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"),l=r=g.length;r--;)o=g[r],!a&&h!==o.origType||n&&n.guid!==o.guid||s&&!s.test(o.namespace)||i&&i!==o.selector&&("**"!==i||!o.selector)||(g.splice(r,1),o.selector&&g.delegateCount--,
d.remove&&d.remove.call(e,o));l&&!g.length&&(d.teardown&&d.teardown.call(e,p,m.handle)!==!1||ae.removeEvent(e,f,m.handle),delete u[f])}else for(f in u)ae.event.remove(e,f+t[c],n,i,!0);ae.isEmptyObject(u)&&(delete m.handle,ae._removeData(e,"events"))}},trigger:function(t,n,i,a){var r,o,s,l,c,u,d,g=[i||pe],f=te.call(t,"type")?t.type:t,p=te.call(t,"namespace")?t.namespace.split("."):[];if(s=u=i=i||pe,3!==i.nodeType&&8!==i.nodeType&&!Le.test(f+ae.event.triggered)&&(f.indexOf(".")>=0&&(p=f.split("."),f=p.shift(),p.sort()),o=f.indexOf(":")<0&&"on"+f,t=t[ae.expando]?t:new ae.Event(f,"object"==typeof t&&t),t.isTrigger=a?2:3,t.namespace=p.join("."),t.namespace_re=t.namespace?RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=i),n=null==n?[t]:ae.makeArray(n,[t]),c=ae.event.special[f]||{},a||!c.trigger||c.trigger.apply(i,n)!==!1)){if(!a&&!c.noBubble&&!ae.isWindow(i)){for(l=c.delegateType||f,Le.test(l+f)||(s=s.parentNode);s;s=s.parentNode)g.push(s),u=s;u===(i.ownerDocument||pe)&&g.push(u.defaultView||u.parentWindow||e)}for(d=0;(s=g[d++])&&!t.isPropagationStopped();)t.type=d>1?l:c.bindType||f,r=(ae._data(s,"events")||{})[t.type]&&ae._data(s,"handle"),r&&r.apply(s,n),r=o&&s[o],r&&r.apply&&ae.acceptData(s)&&(t.result=r.apply(s,n),t.result===!1&&t.preventDefault());if(t.type=f,!a&&!t.isDefaultPrevented()&&(!c._default||c._default.apply(g.pop(),n)===!1)&&ae.acceptData(i)&&o&&i[f]&&!ae.isWindow(i)){u=i[o],u&&(i[o]=null),ae.event.triggered=f;try{i[f]()}catch(h){}ae.event.triggered=void 0,u&&(i[o]=u)}return t.result}},dispatch:function(e){e=ae.event.fix(e);var t,n,i,a,r,o=[],s=Y.call(arguments),l=(ae._data(this,"events")||{})[e.type]||[],c=ae.event.special[e.type]||{};if(s[0]=e,e.delegateTarget=this,!c.preDispatch||c.preDispatch.call(this,e)!==!1){for(o=ae.event.handlers.call(this,e,l),t=0;(a=o[t++])&&!e.isPropagationStopped();)for(e.currentTarget=a.elem,r=0;(i=a.handlers[r++])&&!e.isImmediatePropagationStopped();)e.namespace_re&&!e.namespace_re.test(i.namespace)||(e.handleObj=i,e.data=i.data,n=((ae.event.special[i.origType]||{}).handle||i.handler).apply(a.elem,s),void 0!==n&&(e.result=n)===!1&&(e.preventDefault(),e.stopPropagation()));return c.postDispatch&&c.postDispatch.call(this,e),e.result}},handlers:function(e,t){var n,i,a,r,o=[],s=t.delegateCount,l=e.target;if(s&&l.nodeType&&(!e.button||"click"!==e.type))for(;l!=this;l=l.parentNode||this)if(1===l.nodeType&&(l.disabled!==!0||"click"!==e.type)){for(a=[],r=0;s>r;r++)i=t[r],n=i.selector+" ",void 0===a[n]&&(a[n]=i.needsContext?ae(n,this).index(l)>=0:ae.find(n,this,null,[l]).length),a[n]&&a.push(i);a.length&&o.push({elem:l,handlers:a})}return s<t.length&&o.push({elem:this,handlers:t.slice(s)}),o},fix:function(e){if(e[ae.expando])return e;var t,n,i,a=e.type,r=e,o=this.fixHooks[a];for(o||(this.fixHooks[a]=o=Ve.test(a)?this.mouseHooks:Be.test(a)?this.keyHooks:{}),i=o.props?this.props.concat(o.props):this.props,e=new ae.Event(r),t=i.length;t--;)n=i[t],e[n]=r[n];return e.target||(e.target=r.srcElement||pe),3===e.target.nodeType&&(e.target=e.target.parentNode),e.metaKey=!!e.metaKey,o.filter?o.filter(e,r):e},props:"altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(e,t){return null==e.which&&(e.which=null!=t.charCode?t.charCode:t.keyCode),e}},mouseHooks:{props:"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(e,t){var n,i,a,r=t.button,o=t.fromElement;return null==e.pageX&&null!=t.clientX&&(i=e.target.ownerDocument||pe,a=i.documentElement,n=i.body,e.pageX=t.clientX+(a&&a.scrollLeft||n&&n.scrollLeft||0)-(a&&a.clientLeft||n&&n.clientLeft||0),e.pageY=t.clientY+(a&&a.scrollTop||n&&n.scrollTop||0)-(a&&a.clientTop||n&&n.clientTop||0)),!e.relatedTarget&&o&&(e.relatedTarget=o===e.target?t.toElement:o),e.which||void 0===r||(e.which=1&r?1:2&r?3:4&r?2:0),e}},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==p()&&this.focus)try{return this.focus(),!1}catch(e){}},delegateType:"focusin"},blur:{trigger:function(){return this===p()&&this.blur?(this.blur(),!1):void 0},delegateType:"focusout"},click:{trigger:function(){return ae.nodeName(this,"input")&&"checkbox"===this.type&&this.click?(this.click(),!1):void 0},_default:function(e){return ae.nodeName(e.target,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}},simulate:function(e,t,n,i){var a=ae.extend(new ae.Event,n,{type:e,isSimulated:!0,originalEvent:{}});i?ae.event.trigger(a,null,t):ae.event.dispatch.call(t,a),a.isDefaultPrevented()&&n.preventDefault()}},ae.removeEvent=pe.removeEventListener?function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n,!1)}:function(e,t,n){var i="on"+t;e.detachEvent&&(typeof e[i]===Pe&&(e[i]=null),e.detachEvent(i,n))},ae.Event=function(e,t){return this instanceof ae.Event?(e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&e.returnValue===!1?g:f):this.type=e,t&&ae.extend(this,t),this.timeStamp=e&&e.timeStamp||ae.now(),void(this[ae.expando]=!0)):new ae.Event(e,t)},ae.Event.prototype={isDefaultPrevented:f,isPropagationStopped:f,isImmediatePropagationStopped:f,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=g,e&&(e.preventDefault?e.preventDefault():e.returnValue=!1)},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=g,e&&(e.stopPropagation&&e.stopPropagation(),e.cancelBubble=!0)},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=g,e&&e.stopImmediatePropagation&&e.stopImmediatePropagation(),this.stopPropagation()}},ae.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(e,t){ae.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,i=this,a=e.relatedTarget,r=e.handleObj;return a&&(a===i||ae.contains(i,a))||(e.type=r.origType,n=r.handler.apply(this,arguments),e.type=t),n}}}),ne.submitBubbles||(ae.event.special.submit={setup:function(){return ae.nodeName(this,"form")?!1:void ae.event.add(this,"click._submit keypress._submit",function(e){var t=e.target,n=ae.nodeName(t,"input")||ae.nodeName(t,"button")?t.form:void 0;n&&!ae._data(n,"submitBubbles")&&(ae.event.add(n,"submit._submit",function(e){e._submit_bubble=!0}),ae._data(n,"submitBubbles",!0))})},postDispatch:function(e){e._submit_bubble&&(delete e._submit_bubble,this.parentNode&&!e.isTrigger&&ae.event.simulate("submit",this.parentNode,e,!0))},teardown:function(){return ae.nodeName(this,"form")?!1:void ae.event.remove(this,"._submit")}}),ne.changeBubbles||(ae.event.special.change={setup:function(){return Ae.test(this.nodeName)?("checkbox"!==this.type&&"radio"!==this.type||(ae.event.add(this,"propertychange._change",function(e){"checked"===e.originalEvent.propertyName&&(this._just_changed=!0)}),ae.event.add(this,"click._change",function(e){this._just_changed&&!e.isTrigger&&(this._just_changed=!1),ae.event.simulate("change",this,e,!0)})),!1):void ae.event.add(this,"beforeactivate._change",function(e){var t=e.target;Ae.test(t.nodeName)&&!ae._data(t,"changeBubbles")&&(ae.event.add(t,"change._change",function(e){!this.parentNode||e.isSimulated||e.isTrigger||ae.event.simulate("change",this.parentNode,e,!0)}),ae._data(t,"changeBubbles",!0))})},handle:function(e){var t=e.target;return this!==t||e.isSimulated||e.isTrigger||"radio"!==t.type&&"checkbox"!==t.type?e.handleObj.handler.apply(this,arguments):void 0},teardown:function(){return ae.event.remove(this,"._change"),!Ae.test(this.nodeName)}}),ne.focusinBubbles||ae.each({focus:"focusin",blur:"focusout"},function(e,t){var n=function(e){ae.event.simulate(t,e.target,ae.event.fix(e),!0)};ae.event.special[t]={setup:function(){var i=this.ownerDocument||this,a=ae._data(i,t);a||i.addEventListener(e,n,!0),ae._data(i,t,(a||0)+1)},teardown:function(){var i=this.ownerDocument||this,a=ae._data(i,t)-1;a?ae._data(i,t,a):(i.removeEventListener(e,n,!0),ae._removeData(i,t))}}}),ae.fn.extend({on:function(e,t,n,i,a){var r,o;if("object"==typeof e){"string"!=typeof t&&(n=n||t,t=void 0);for(r in e)this.on(r,t,n,e[r],a);return this}if(null==n&&null==i?(i=t,n=t=void 0):null==i&&("string"==typeof t?(i=n,n=void 0):(i=n,n=t,t=void 0)),i===!1)i=f;else if(!i)return this;return 1===a&&(o=i,i=function(e){return ae().off(e),o.apply(this,arguments)},i.guid=o.guid||(o.guid=ae.guid++)),this.each(function(){ae.event.add(this,e,i,n,t)})},one:function(e,t,n,i){return this.on(e,t,n,i,1)},off:function(e,t,n){var i,a;if(e&&e.preventDefault&&e.handleObj)return i=e.handleObj,ae(e.delegateTarget).off(i.namespace?i.origType+"."+i.namespace:i.origType,i.selector,i.handler),this;if("object"==typeof e){for(a in e)this.off(a,t,e[a]);return this}return t!==!1&&"function"!=typeof t||(n=t,t=void 0),n===!1&&(n=f),this.each(function(){ae.event.remove(this,e,n,t)})},trigger:function(e,t){return this.each(function(){ae.event.trigger(e,t,this)})},triggerHandler:function(e,t){var n=this[0];return n?ae.event.trigger(e,t,n,!0):void 0}});var Oe="abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",ze=/ jQuery\d+="(?:null|\d+)"/g,_e=RegExp("<(?:"+Oe+")[\\s/>]","i"),Ne=/^\s+/,Re=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,He=/<([\w:]+)/,qe=/<tbody/i,Ue=/<|&#?\w+;/,$e=/<(?:script|style|link)/i,We=/checked\s*(?:[^=]|=\s*.checked.)/i,je=/^$|\/(?:java|ecma)script/i,Ge=/^true\/(.*)/,Xe=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,Ye={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],area:[1,"<map>","</map>"],param:[1,"<object>","</object>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:ne.htmlSerialize?[0,"",""]:[1,"X<div>","</div>"]},Ke=h(pe),Qe=Ke.appendChild(pe.createElement("div"));Ye.optgroup=Ye.option,Ye.tbody=Ye.tfoot=Ye.colgroup=Ye.caption=Ye.thead,Ye.th=Ye.td,ae.extend({clone:function(e,t,n){var i,a,r,o,s,l=ae.contains(e.ownerDocument,e);if(ne.html5Clone||ae.isXMLDoc(e)||!_e.test("<"+e.nodeName+">")?r=e.cloneNode(!0):(Qe.innerHTML=e.outerHTML,Qe.removeChild(r=Qe.firstChild)),!(ne.noCloneEvent&&ne.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||ae.isXMLDoc(e)))for(i=m(r),s=m(e),o=0;null!=(a=s[o]);++o)i[o]&&P(a,i[o]);if(t)if(n)for(s=s||m(e),i=i||m(r),o=0;null!=(a=s[o]);o++)S(a,i[o]);else S(e,r);return i=m(r,"script"),i.length>0&&I(i,!l&&m(e,"script")),i=s=a=null,r},buildFragment:function(e,t,n,i){for(var a,r,o,s,l,c,u,d=e.length,g=h(t),f=[],p=0;d>p;p++)if(r=e[p],r||0===r)if("object"===ae.type(r))ae.merge(f,r.nodeType?[r]:r);else if(Ue.test(r)){for(s=s||g.appendChild(t.createElement("div")),l=(He.exec(r)||["",""])[1].toLowerCase(),u=Ye[l]||Ye._default,s.innerHTML=u[1]+r.replace(Re,"<$1></$2>")+u[2],a=u[0];a--;)s=s.lastChild;if(!ne.leadingWhitespace&&Ne.test(r)&&f.push(t.createTextNode(Ne.exec(r)[0])),!ne.tbody)for(r="table"!==l||qe.test(r)?"<table>"!==u[1]||qe.test(r)?0:s:s.firstChild,a=r&&r.childNodes.length;a--;)ae.nodeName(c=r.childNodes[a],"tbody")&&!c.childNodes.length&&r.removeChild(c);for(ae.merge(f,s.childNodes),s.textContent="";s.firstChild;)s.removeChild(s.firstChild);s=g.lastChild}else f.push(t.createTextNode(r));for(s&&g.removeChild(s),ne.appendChecked||ae.grep(m(f,"input"),v),p=0;r=f[p++];)if((!i||-1===ae.inArray(r,i))&&(o=ae.contains(r.ownerDocument,r),s=m(g.appendChild(r),"script"),o&&I(s),n))for(a=0;r=s[a++];)je.test(r.type||"")&&n.push(r);return s=null,g},cleanData:function(e,t){for(var n,i,a,r,o=0,s=ae.expando,l=ae.cache,c=ne.deleteExpando,u=ae.event.special;null!=(n=e[o]);o++)if((t||ae.acceptData(n))&&(a=n[s],r=a&&l[a])){if(r.events)for(i in r.events)u[i]?ae.event.remove(n,i):ae.removeEvent(n,i,r.handle);l[a]&&(delete l[a],c?delete n[s]:typeof n.removeAttribute!==Pe?n.removeAttribute(s):n[s]=null,X.push(a))}}}),ae.fn.extend({text:function(e){return De(this,function(e){return void 0===e?ae.text(this):this.empty().append((this[0]&&this[0].ownerDocument||pe).createTextNode(e))},null,e,arguments.length)},append:function(){return this.domManip(arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=y(this,e);t.appendChild(e)}})},prepend:function(){return this.domManip(arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=y(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return this.domManip(arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return this.domManip(arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},remove:function(e,t){for(var n,i=e?ae.filter(e,this):this,a=0;null!=(n=i[a]);a++)t||1!==n.nodeType||ae.cleanData(m(n)),n.parentNode&&(t&&ae.contains(n.ownerDocument,n)&&I(m(n,"script")),n.parentNode.removeChild(n));return this},empty:function(){for(var e,t=0;null!=(e=this[t]);t++){for(1===e.nodeType&&ae.cleanData(m(e,!1));e.firstChild;)e.removeChild(e.firstChild);e.options&&ae.nodeName(e,"select")&&(e.options.length=0)}return this},clone:function(e,t){return e=null==e?!1:e,t=null==t?e:t,this.map(function(){return ae.clone(this,e,t)})},html:function(e){return De(this,function(e){var t=this[0]||{},n=0,i=this.length;if(void 0===e)return 1===t.nodeType?t.innerHTML.replace(ze,""):void 0;if("string"==typeof e&&!$e.test(e)&&(ne.htmlSerialize||!_e.test(e))&&(ne.leadingWhitespace||!Ne.test(e))&&!Ye[(He.exec(e)||["",""])[1].toLowerCase()]){e=e.replace(Re,"<$1></$2>");try{for(;i>n;n++)t=this[n]||{},1===t.nodeType&&(ae.cleanData(m(t,!1)),t.innerHTML=e);t=0}catch(a){}}t&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var e=arguments[0];return this.domManip(arguments,function(t){e=this.parentNode,ae.cleanData(m(this)),e&&e.replaceChild(t,this)}),e&&(e.length||e.nodeType)?this:this.remove()},detach:function(e){return this.remove(e,!0)},domManip:function(e,t){e=K.apply([],e);var n,i,a,r,o,s,l=0,c=this.length,u=this,d=c-1,g=e[0],f=ae.isFunction(g);if(f||c>1&&"string"==typeof g&&!ne.checkClone&&We.test(g))return this.each(function(n){var i=u.eq(n);f&&(e[0]=g.call(this,n,i.html())),i.domManip(e,t)});if(c&&(s=ae.buildFragment(e,this[0].ownerDocument,!1,this),n=s.firstChild,1===s.childNodes.length&&(s=n),n)){for(r=ae.map(m(s,"script"),b),a=r.length;c>l;l++)i=s,l!==d&&(i=ae.clone(i,!0,!0),a&&ae.merge(r,m(i,"script"))),t.call(this[l],i,l);if(a)for(o=r[r.length-1].ownerDocument,ae.map(r,C),l=0;a>l;l++)i=r[l],je.test(i.type||"")&&!ae._data(i,"globalEval")&&ae.contains(o,i)&&(i.src?ae._evalUrl&&ae._evalUrl(i.src):ae.globalEval((i.text||i.textContent||i.innerHTML||"").replace(Xe,"")));s=n=null}return this}}),ae.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,t){ae.fn[e]=function(e){for(var n,i=0,a=[],r=ae(e),o=r.length-1;o>=i;i++)n=i===o?this:this.clone(!0),ae(r[i])[t](n),Q.apply(a,n.get());return this.pushStack(a)}});var Je,Ze={};!function(){var e;ne.shrinkWrapBlocks=function(){if(null!=e)return e;e=!1;var t,n,i;return n=pe.getElementsByTagName("body")[0],n&&n.style?(t=pe.createElement("div"),i=pe.createElement("div"),i.style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",n.appendChild(i).appendChild(t),typeof t.style.zoom!==Pe&&(t.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:1px;width:1px;zoom:1",t.appendChild(pe.createElement("div")).style.width="5px",e=3!==t.offsetWidth),n.removeChild(i),e):void 0}}();var et,tt,nt=/^margin/,it=RegExp("^("+Te+")(?!px)[a-z%]+$","i"),at=/^(top|right|bottom|left)$/;e.getComputedStyle?(et=function(t){return t.ownerDocument.defaultView.opener?t.ownerDocument.defaultView.getComputedStyle(t,null):e.getComputedStyle(t,null)},tt=function(e,t,n){var i,a,r,o,s=e.style;return n=n||et(e),o=n?n.getPropertyValue(t)||n[t]:void 0,n&&(""!==o||ae.contains(e.ownerDocument,e)||(o=ae.style(e,t)),it.test(o)&&nt.test(t)&&(i=s.width,a=s.minWidth,r=s.maxWidth,s.minWidth=s.maxWidth=s.width=o,o=n.width,s.width=i,s.minWidth=a,s.maxWidth=r)),void 0===o?o:o+""}):pe.documentElement.currentStyle&&(et=function(e){return e.currentStyle},tt=function(e,t,n){var i,a,r,o,s=e.style;return n=n||et(e),o=n?n[t]:void 0,null==o&&s&&s[t]&&(o=s[t]),it.test(o)&&!at.test(t)&&(i=s.left,a=e.runtimeStyle,r=a&&a.left,r&&(a.left=e.currentStyle.left),s.left="fontSize"===t?"1em":o,o=s.pixelLeft+"px",s.left=i,r&&(a.left=r)),void 0===o?o:o+""||"auto"}),function(){function t(){var t,n,i,a;n=pe.getElementsByTagName("body")[0],n&&n.style&&(t=pe.createElement("div"),i=pe.createElement("div"),i.style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",n.appendChild(i).appendChild(t),t.style.cssText="-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;display:block;margin-top:1%;top:1%;border:1px;padding:1px;width:4px;position:absolute",r=o=!1,l=!0,e.getComputedStyle&&(r="1%"!==(e.getComputedStyle(t,null)||{}).top,o="4px"===(e.getComputedStyle(t,null)||{width:"4px"}).width,a=t.appendChild(pe.createElement("div")),a.style.cssText=t.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0",a.style.marginRight=a.style.width="0",t.style.width="1px",l=!parseFloat((e.getComputedStyle(a,null)||{}).marginRight),t.removeChild(a)),t.innerHTML="<table><tr><td></td><td>t</td></tr></table>",a=t.getElementsByTagName("td"),a[0].style.cssText="margin:0;border:0;padding:0;display:none",s=0===a[0].offsetHeight,s&&(a[0].style.display="",a[1].style.display="none",s=0===a[0].offsetHeight),n.removeChild(i))}var n,i,a,r,o,s,l;n=pe.createElement("div"),n.innerHTML="  <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",a=n.getElementsByTagName("a")[0],i=a&&a.style,i&&(i.cssText="float:left;opacity:.5",ne.opacity="0.5"===i.opacity,ne.cssFloat=!!i.cssFloat,n.style.backgroundClip="content-box",n.cloneNode(!0).style.backgroundClip="",ne.clearCloneStyle="content-box"===n.style.backgroundClip,ne.boxSizing=!1,ae.extend(ne,{reliableHiddenOffsets:function(){return null==s&&t(),s},boxSizingReliable:function(){return null==o&&t(),o},pixelPosition:function(){return null==r&&t(),r},reliableMarginRight:function(){return null==l&&t(),l}}))}(),ae.swap=function(e,t,n,i){var a,r,o={};for(r in t)o[r]=e.style[r],e.style[r]=t[r];a=n.apply(e,i||[]);for(r in t)e.style[r]=o[r];return a};var rt=/alpha\([^)]*\)/i,ot=/opacity\s*=\s*([^)]*)/,st=/^(none|table(?!-c[ea]).+)/,lt=RegExp("^("+Te+")(.*)$","i"),ct=RegExp("^([+-])=("+Te+")","i"),ut={position:"absolute",visibility:"hidden",display:"block"},dt={letterSpacing:"0",fontWeight:"400"},gt=["Webkit","O","Moz","ms"];ae.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=tt(e,"opacity");return""===n?"1":n}}}},cssNumber:{columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":ne.cssFloat?"cssFloat":"styleFloat"},style:function(e,t,n,i){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var a,r,o,s=ae.camelCase(t),l=e.style;if(t=ae.cssProps[s]||(ae.cssProps[s]=x(l,s)),o=ae.cssHooks[t]||ae.cssHooks[s],void 0===n)return o&&"get"in o&&void 0!==(a=o.get(e,!1,i))?a:l[t];if(r=typeof n,"string"===r&&(a=ct.exec(n))&&(n=(a[1]+1)*a[2]+parseFloat(ae.css(e,t)),r="number"),null!=n&&n===n&&("number"!==r||ae.cssNumber[s]||(n+="px"),ne.clearCloneStyle||""!==n||0!==t.indexOf("background")||(l[t]="inherit"),!(o&&"set"in o&&void 0===(n=o.set(e,n,i)))))try{l[t]=n}catch(c){}}},css:function(e,t,n,i){var a,r,o,s=ae.camelCase(t);return t=ae.cssProps[s]||(ae.cssProps[s]=x(e.style,s)),o=ae.cssHooks[t]||ae.cssHooks[s],o&&"get"in o&&(r=o.get(e,!0,n)),void 0===r&&(r=tt(e,t,i)),"normal"===r&&t in dt&&(r=dt[t]),""===n||n?(a=parseFloat(r),n===!0||ae.isNumeric(a)?a||0:r):r}}),ae.each(["height","width"],function(e,t){ae.cssHooks[t]={get:function(e,n,i){return n?st.test(ae.css(e,"display"))&&0===e.offsetWidth?ae.swap(e,ut,function(){return A(e,t,i)}):A(e,t,i):void 0},set:function(e,n,i){var a=i&&et(e);return D(e,n,i?F(e,t,i,ne.boxSizing&&"border-box"===ae.css(e,"boxSizing",!1,a),a):0)}}}),ne.opacity||(ae.cssHooks.opacity={get:function(e,t){return ot.test((t&&e.currentStyle?e.currentStyle.filter:e.style.filter)||"")?.01*parseFloat(RegExp.$1)+"":t?"1":""},set:function(e,t){var n=e.style,i=e.currentStyle,a=ae.isNumeric(t)?"alpha(opacity="+100*t+")":"",r=i&&i.filter||n.filter||"";n.zoom=1,(t>=1||""===t)&&""===ae.trim(r.replace(rt,""))&&n.removeAttribute&&(n.removeAttribute("filter"),""===t||i&&!i.filter)||(n.filter=rt.test(r)?r.replace(rt,a):r+" "+a)}}),ae.cssHooks.marginRight=T(ne.reliableMarginRight,function(e,t){return t?ae.swap(e,{display:"inline-block"},tt,[e,"marginRight"]):void 0}),ae.each({margin:"",padding:"",border:"Width"},function(e,t){ae.cssHooks[e+t]={expand:function(n){for(var i=0,a={},r="string"==typeof n?n.split(" "):[n];4>i;i++)a[e+xe[i]+t]=r[i]||r[i-2]||r[0];return a}},nt.test(e)||(ae.cssHooks[e+t].set=D)}),ae.fn.extend({css:function(e,t){return De(this,function(e,t,n){var i,a,r={},o=0;if(ae.isArray(t)){for(i=et(e),a=t.length;a>o;o++)r[t[o]]=ae.css(e,t[o],!1,i);return r}return void 0!==n?ae.style(e,t,n):ae.css(e,t)},e,t,arguments.length>1)},show:function(){return k(this,!0)},hide:function(){return k(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){ke(this)?ae(this).show():ae(this).hide()})}}),ae.Tween=B,B.prototype={constructor:B,init:function(e,t,n,i,a,r){this.elem=e,this.prop=n,this.easing=a||"swing",this.options=t,this.start=this.now=this.cur(),this.end=i,this.unit=r||(ae.cssNumber[n]?"":"px")},cur:function(){var e=B.propHooks[this.prop];return e&&e.get?e.get(this):B.propHooks._default.get(this)},run:function(e){var t,n=B.propHooks[this.prop];return this.options.duration?this.pos=t=ae.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):B.propHooks._default.set(this),this}},B.prototype.init.prototype=B.prototype,B.propHooks={_default:{get:function(e){var t;return null==e.elem[e.prop]||e.elem.style&&null!=e.elem.style[e.prop]?(t=ae.css(e.elem,e.prop,""),t&&"auto"!==t?t:0):e.elem[e.prop]},set:function(e){ae.fx.step[e.prop]?ae.fx.step[e.prop](e):e.elem.style&&(null!=e.elem.style[ae.cssProps[e.prop]]||ae.cssHooks[e.prop])?ae.style(e.elem,e.prop,e.now+e.unit):e.elem[e.prop]=e.now}}},B.propHooks.scrollTop=B.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},ae.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2}},ae.fx=B.prototype.init,ae.fx.step={};var ft,pt,ht=/^(?:toggle|show|hide)$/,mt=RegExp("^(?:([+-])=|)("+Te+")([a-z%]*)$","i"),vt=/queueHooks$/,yt=[O],bt={"*":[function(e,t){var n=this.createTween(e,t),i=n.cur(),a=mt.exec(t),r=a&&a[3]||(ae.cssNumber[e]?"":"px"),o=(ae.cssNumber[e]||"px"!==r&&+i)&&mt.exec(ae.css(n.elem,e)),s=1,l=20;if(o&&o[3]!==r){r=r||o[3],a=a||[],o=+i||1;do s=s||".5",o/=s,ae.style(n.elem,e,o+r);while(s!==(s=n.cur()/i)&&1!==s&&--l)}return a&&(o=n.start=+o||+i||0,n.unit=r,n.end=a[1]?o+(a[1]+1)*a[2]:+a[2]),n}]};ae.Animation=ae.extend(_,{tweener:function(e,t){ae.isFunction(e)?(t=e,e=["*"]):e=e.split(" ");for(var n,i=0,a=e.length;a>i;i++)n=e[i],bt[n]=bt[n]||[],bt[n].unshift(t)},prefilter:function(e,t){t?yt.unshift(e):yt.push(e)}}),ae.speed=function(e,t,n){var i=e&&"object"==typeof e?ae.extend({},e):{complete:n||!n&&t||ae.isFunction(e)&&e,duration:e,easing:n&&t||t&&!ae.isFunction(t)&&t};return i.duration=ae.fx.off?0:"number"==typeof i.duration?i.duration:i.duration in ae.fx.speeds?ae.fx.speeds[i.duration]:ae.fx.speeds._default,null!=i.queue&&i.queue!==!0||(i.queue="fx"),i.old=i.complete,i.complete=function(){ae.isFunction(i.old)&&i.old.call(this),i.queue&&ae.dequeue(this,i.queue)},i},ae.fn.extend({fadeTo:function(e,t,n,i){return this.filter(ke).css("opacity",0).show().end().animate({opacity:t},e,n,i)},animate:function(e,t,n,i){var a=ae.isEmptyObject(e),r=ae.speed(t,n,i),o=function(){var t=_(this,ae.extend({},e),r);(a||ae._data(this,"finish"))&&t.stop(!0)};return o.finish=o,a||r.queue===!1?this.each(o):this.queue(r.queue,o)},stop:function(e,t,n){var i=function(e){var t=e.stop;delete e.stop,t(n)};return"string"!=typeof e&&(n=t,t=e,e=void 0),t&&e!==!1&&this.queue(e||"fx",[]),this.each(function(){var t=!0,a=null!=e&&e+"queueHooks",r=ae.timers,o=ae._data(this);if(a)o[a]&&o[a].stop&&i(o[a]);else for(a in o)o[a]&&o[a].stop&&vt.test(a)&&i(o[a]);for(a=r.length;a--;)r[a].elem!==this||null!=e&&r[a].queue!==e||(r[a].anim.stop(n),t=!1,r.splice(a,1));!t&&n||ae.dequeue(this,e)})},finish:function(e){return e!==!1&&(e=e||"fx"),this.each(function(){var t,n=ae._data(this),i=n[e+"queue"],a=n[e+"queueHooks"],r=ae.timers,o=i?i.length:0;for(n.finish=!0,ae.queue(this,e,[]),a&&a.stop&&a.stop.call(this,!0),t=r.length;t--;)r[t].elem===this&&r[t].queue===e&&(r[t].anim.stop(!0),r.splice(t,1));for(t=0;o>t;t++)i[t]&&i[t].finish&&i[t].finish.call(this);delete n.finish})}}),ae.each(["toggle","show","hide"],function(e,t){var n=ae.fn[t];ae.fn[t]=function(e,i,a){return null==e||"boolean"==typeof e?n.apply(this,arguments):this.animate(L(t,!0),e,i,a)}}),ae.each({slideDown:L("show"),slideUp:L("hide"),slideToggle:L("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,t){ae.fn[e]=function(e,n,i){return this.animate(t,e,n,i)}}),ae.timers=[],ae.fx.tick=function(){var e,t=ae.timers,n=0;for(ft=ae.now();n<t.length;n++)e=t[n],e()||t[n]!==e||t.splice(n--,1);t.length||ae.fx.stop(),ft=void 0},ae.fx.timer=function(e){ae.timers.push(e),e()?ae.fx.start():ae.timers.pop()},ae.fx.interval=13,ae.fx.start=function(){pt||(pt=setInterval(ae.fx.tick,ae.fx.interval))},ae.fx.stop=function(){clearInterval(pt),pt=null},ae.fx.speeds={slow:600,fast:200,_default:400},ae.fn.delay=function(e,t){return e=ae.fx?ae.fx.speeds[e]||e:e,t=t||"fx",this.queue(t,function(t,n){var i=setTimeout(t,e);n.stop=function(){clearTimeout(i)}})},function(){var e,t,n,i,a;t=pe.createElement("div"),t.setAttribute("className","t"),t.innerHTML="  <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",i=t.getElementsByTagName("a")[0],n=pe.createElement("select"),a=n.appendChild(pe.createElement("option")),e=t.getElementsByTagName("input")[0],i.style.cssText="top:1px",ne.getSetAttribute="t"!==t.className,ne.style=/top/.test(i.getAttribute("style")),ne.hrefNormalized="/a"===i.getAttribute("href"),ne.checkOn=!!e.value,ne.optSelected=a.selected,ne.enctype=!!pe.createElement("form").enctype,n.disabled=!0,ne.optDisabled=!a.disabled,e=pe.createElement("input"),e.setAttribute("value",""),ne.input=""===e.getAttribute("value"),e.value="t",e.setAttribute("type","radio"),ne.radioValue="t"===e.value}();var Ct=/\r/g;ae.fn.extend({val:function(e){var t,n,i,a=this[0];{if(arguments.length)return i=ae.isFunction(e),this.each(function(n){var a;1===this.nodeType&&(a=i?e.call(this,n,ae(this).val()):e,null==a?a="":"number"==typeof a?a+="":ae.isArray(a)&&(a=ae.map(a,function(e){return null==e?"":e+""})),t=ae.valHooks[this.type]||ae.valHooks[this.nodeName.toLowerCase()],t&&"set"in t&&void 0!==t.set(this,a,"value")||(this.value=a))});if(a)return t=ae.valHooks[a.type]||ae.valHooks[a.nodeName.toLowerCase()],t&&"get"in t&&void 0!==(n=t.get(a,"value"))?n:(n=a.value,"string"==typeof n?n.replace(Ct,""):null==n?"":n)}}}),ae.extend({valHooks:{option:{get:function(e){var t=ae.find.attr(e,"value");return null!=t?t:ae.trim(ae.text(e))}},select:{get:function(e){for(var t,n,i=e.options,a=e.selectedIndex,r="select-one"===e.type||0>a,o=r?null:[],s=r?a+1:i.length,l=0>a?s:r?a:0;s>l;l++)if(n=i[l],(n.selected||l===a)&&(ne.optDisabled?!n.disabled:null===n.getAttribute("disabled"))&&(!n.parentNode.disabled||!ae.nodeName(n.parentNode,"optgroup"))){if(t=ae(n).val(),r)return t;o.push(t)}return o},set:function(e,t){for(var n,i,a=e.options,r=ae.makeArray(t),o=a.length;o--;)if(i=a[o],ae.inArray(ae.valHooks.option.get(i),r)>=0)try{i.selected=n=!0}catch(s){i.scrollHeight}else i.selected=!1;return n||(e.selectedIndex=-1),a}}}}),ae.each(["radio","checkbox"],function(){ae.valHooks[this]={set:function(e,t){return ae.isArray(t)?e.checked=ae.inArray(ae(e).val(),t)>=0:void 0}},ne.checkOn||(ae.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})});var It,St,Pt=ae.expr.attrHandle,wt=/^(?:checked|selected)$/i,Et=ne.getSetAttribute,Tt=ne.input;ae.fn.extend({attr:function(e,t){return De(this,ae.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each(function(){ae.removeAttr(this,e)})}}),ae.extend({attr:function(e,t,n){var i,a,r=e.nodeType;if(e&&3!==r&&8!==r&&2!==r)return typeof e.getAttribute===Pe?ae.prop(e,t,n):(1===r&&ae.isXMLDoc(e)||(t=t.toLowerCase(),i=ae.attrHooks[t]||(ae.expr.match.bool.test(t)?St:It)),void 0===n?i&&"get"in i&&null!==(a=i.get(e,t))?a:(a=ae.find.attr(e,t),null==a?void 0:a):null!==n?i&&"set"in i&&void 0!==(a=i.set(e,n,t))?a:(e.setAttribute(t,n+""),n):void ae.removeAttr(e,t))},removeAttr:function(e,t){var n,i,a=0,r=t&&t.match(be);if(r&&1===e.nodeType)for(;n=r[a++];)i=ae.propFix[n]||n,ae.expr.match.bool.test(n)?Tt&&Et||!wt.test(n)?e[i]=!1:e[ae.camelCase("default-"+n)]=e[i]=!1:ae.attr(e,n,""),e.removeAttribute(Et?n:i)},attrHooks:{type:{set:function(e,t){if(!ne.radioValue&&"radio"===t&&ae.nodeName(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}}}),St={set:function(e,t,n){return t===!1?ae.removeAttr(e,n):Tt&&Et||!wt.test(n)?e.setAttribute(!Et&&ae.propFix[n]||n,n):e[ae.camelCase("default-"+n)]=e[n]=!0,n}},ae.each(ae.expr.match.bool.source.match(/\w+/g),function(e,t){var n=Pt[t]||ae.find.attr;Pt[t]=Tt&&Et||!wt.test(t)?function(e,t,i){var a,r;return i||(r=Pt[t],Pt[t]=a,a=null!=n(e,t,i)?t.toLowerCase():null,Pt[t]=r),a}:function(e,t,n){return n?void 0:e[ae.camelCase("default-"+t)]?t.toLowerCase():null}}),Tt&&Et||(ae.attrHooks.value={set:function(e,t,n){return ae.nodeName(e,"input")?void(e.defaultValue=t):It&&It.set(e,t,n)}}),Et||(It={set:function(e,t,n){var i=e.getAttributeNode(n);return i||e.setAttributeNode(i=e.ownerDocument.createAttribute(n)),i.value=t+="","value"===n||t===e.getAttribute(n)?t:void 0}},Pt.id=Pt.name=Pt.coords=function(e,t,n){var i;return n?void 0:(i=e.getAttributeNode(t))&&""!==i.value?i.value:null},ae.valHooks.button={get:function(e,t){var n=e.getAttributeNode(t);return n&&n.specified?n.value:void 0},set:It.set},ae.attrHooks.contenteditable={set:function(e,t,n){It.set(e,""===t?!1:t,n)}},ae.each(["width","height"],function(e,t){ae.attrHooks[t]={set:function(e,n){return""===n?(e.setAttribute(t,"auto"),n):void 0}}})),ne.style||(ae.attrHooks.style={get:function(e){return e.style.cssText||void 0},set:function(e,t){return e.style.cssText=t+""}});var xt=/^(?:input|select|textarea|button|object)$/i,kt=/^(?:a|area)$/i;ae.fn.extend({prop:function(e,t){return De(this,ae.prop,e,t,arguments.length>1)},removeProp:function(e){return e=ae.propFix[e]||e,this.each(function(){try{this[e]=void 0,delete this[e]}catch(t){}})}}),ae.extend({propFix:{"for":"htmlFor","class":"className"},prop:function(e,t,n){var i,a,r,o=e.nodeType;if(e&&3!==o&&8!==o&&2!==o)return r=1!==o||!ae.isXMLDoc(e),r&&(t=ae.propFix[t]||t,a=ae.propHooks[t]),void 0!==n?a&&"set"in a&&void 0!==(i=a.set(e,n,t))?i:e[t]=n:a&&"get"in a&&null!==(i=a.get(e,t))?i:e[t]},propHooks:{tabIndex:{get:function(e){var t=ae.find.attr(e,"tabindex");return t?parseInt(t,10):xt.test(e.nodeName)||kt.test(e.nodeName)&&e.href?0:-1}}}}),ne.hrefNormalized||ae.each(["href","src"],function(e,t){
ae.propHooks[t]={get:function(e){return e.getAttribute(t,4)}}}),ne.optSelected||(ae.propHooks.selected={get:function(e){var t=e.parentNode;return t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex),null}}),ae.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){ae.propFix[this.toLowerCase()]=this}),ne.enctype||(ae.propFix.enctype="encoding");var Dt=/[\t\r\n\f]/g;ae.fn.extend({addClass:function(e){var t,n,i,a,r,o,s=0,l=this.length,c="string"==typeof e&&e;if(ae.isFunction(e))return this.each(function(t){ae(this).addClass(e.call(this,t,this.className))});if(c)for(t=(e||"").match(be)||[];l>s;s++)if(n=this[s],i=1===n.nodeType&&(n.className?(" "+n.className+" ").replace(Dt," "):" ")){for(r=0;a=t[r++];)i.indexOf(" "+a+" ")<0&&(i+=a+" ");o=ae.trim(i),n.className!==o&&(n.className=o)}return this},removeClass:function(e){var t,n,i,a,r,o,s=0,l=this.length,c=0===arguments.length||"string"==typeof e&&e;if(ae.isFunction(e))return this.each(function(t){ae(this).removeClass(e.call(this,t,this.className))});if(c)for(t=(e||"").match(be)||[];l>s;s++)if(n=this[s],i=1===n.nodeType&&(n.className?(" "+n.className+" ").replace(Dt," "):"")){for(r=0;a=t[r++];)for(;i.indexOf(" "+a+" ")>=0;)i=i.replace(" "+a+" "," ");o=e?ae.trim(i):"",n.className!==o&&(n.className=o)}return this},toggleClass:function(e,t){var n=typeof e;return"boolean"==typeof t&&"string"===n?t?this.addClass(e):this.removeClass(e):ae.isFunction(e)?this.each(function(n){ae(this).toggleClass(e.call(this,n,this.className,t),t)}):this.each(function(){if("string"===n)for(var t,i=0,a=ae(this),r=e.match(be)||[];t=r[i++];)a.hasClass(t)?a.removeClass(t):a.addClass(t);else n!==Pe&&"boolean"!==n||(this.className&&ae._data(this,"__className__",this.className),this.className=this.className||e===!1?"":ae._data(this,"__className__")||"")})},hasClass:function(e){for(var t=" "+e+" ",n=0,i=this.length;i>n;n++)if(1===this[n].nodeType&&(" "+this[n].className+" ").replace(Dt," ").indexOf(t)>=0)return!0;return!1}}),ae.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(e,t){ae.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}}),ae.fn.extend({hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)},bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,i){return this.on(t,e,n,i)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)}});var Ft=ae.now(),At=/\?/,Bt=/(,)|(\[|{)|(}|])|"(?:[^"\\\r\n]|\\["\\\/bfnrt]|\\u[\da-fA-F]{4})*"\s*:?|true|false|null|-?(?!0\d)\d+(?:\.\d+|)(?:[eE][+-]?\d+|)/g;ae.parseJSON=function(t){if(e.JSON&&e.JSON.parse)return e.JSON.parse(t+"");var n,i=null,a=ae.trim(t+"");return a&&!ae.trim(a.replace(Bt,function(e,t,a,r){return n&&t&&(i=0),0===i?e:(n=a||t,i+=!r-!a,"")}))?Function("return "+a)():ae.error("Invalid JSON: "+t)},ae.parseXML=function(t){var n,i;if(!t||"string"!=typeof t)return null;try{e.DOMParser?(i=new DOMParser,n=i.parseFromString(t,"text/xml")):(n=new ActiveXObject("Microsoft.XMLDOM"),n.async="false",n.loadXML(t))}catch(a){n=void 0}return n&&n.documentElement&&!n.getElementsByTagName("parsererror").length||ae.error("Invalid XML: "+t),n};var Vt,Lt,Mt=/#.*$/,Ot=/([?&])_=[^&]*/,zt=/^(.*?):[ \t]*([^\r\n]*)\r?$/gm,_t=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,Nt=/^(?:GET|HEAD)$/,Rt=/^\/\//,Ht=/^([\w.+-]+:)(?:\/\/(?:[^\/?#]*@|)([^\/?#:]*)(?::(\d+)|)|)/,qt={},Ut={},$t="*/".concat("*");try{Lt=location.href}catch(Wt){Lt=pe.createElement("a"),Lt.href="",Lt=Lt.href}Vt=Ht.exec(Lt.toLowerCase())||[],ae.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Lt,type:"GET",isLocal:_t.test(Vt[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":$t,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":ae.parseJSON,"text xml":ae.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?H(H(e,ae.ajaxSettings),t):H(ae.ajaxSettings,e)},ajaxPrefilter:N(qt),ajaxTransport:N(Ut),ajax:function(e,t){function n(e,t,n,i){var a,u,v,y,C,S=t;2!==b&&(b=2,s&&clearTimeout(s),c=void 0,o=i||"",I.readyState=e>0?4:0,a=e>=200&&300>e||304===e,n&&(y=q(d,I,n)),y=U(d,y,I,a),a?(d.ifModified&&(C=I.getResponseHeader("Last-Modified"),C&&(ae.lastModified[r]=C),C=I.getResponseHeader("etag"),C&&(ae.etag[r]=C)),204===e||"HEAD"===d.type?S="nocontent":304===e?S="notmodified":(S=y.state,u=y.data,v=y.error,a=!v)):(v=S,!e&&S||(S="error",0>e&&(e=0))),I.status=e,I.statusText=(t||S)+"",a?p.resolveWith(g,[u,S,I]):p.rejectWith(g,[I,S,v]),I.statusCode(m),m=void 0,l&&f.trigger(a?"ajaxSuccess":"ajaxError",[I,d,a?u:v]),h.fireWith(g,[I,S]),l&&(f.trigger("ajaxComplete",[I,d]),--ae.active||ae.event.trigger("ajaxStop")))}"object"==typeof e&&(t=e,e=void 0),t=t||{};var i,a,r,o,s,l,c,u,d=ae.ajaxSetup({},t),g=d.context||d,f=d.context&&(g.nodeType||g.jquery)?ae(g):ae.event,p=ae.Deferred(),h=ae.Callbacks("once memory"),m=d.statusCode||{},v={},y={},b=0,C="canceled",I={readyState:0,getResponseHeader:function(e){var t;if(2===b){if(!u)for(u={};t=zt.exec(o);)u[t[1].toLowerCase()]=t[2];t=u[e.toLowerCase()]}return null==t?null:t},getAllResponseHeaders:function(){return 2===b?o:null},setRequestHeader:function(e,t){var n=e.toLowerCase();return b||(e=y[n]=y[n]||e,v[e]=t),this},overrideMimeType:function(e){return b||(d.mimeType=e),this},statusCode:function(e){var t;if(e)if(2>b)for(t in e)m[t]=[m[t],e[t]];else I.always(e[I.status]);return this},abort:function(e){var t=e||C;return c&&c.abort(t),n(0,t),this}};if(p.promise(I).complete=h.add,I.success=I.done,I.error=I.fail,d.url=((e||d.url||Lt)+"").replace(Mt,"").replace(Rt,Vt[1]+"//"),d.type=t.method||t.type||d.method||d.type,d.dataTypes=ae.trim(d.dataType||"*").toLowerCase().match(be)||[""],null==d.crossDomain&&(i=Ht.exec(d.url.toLowerCase()),d.crossDomain=!(!i||i[1]===Vt[1]&&i[2]===Vt[2]&&(i[3]||("http:"===i[1]?"80":"443"))===(Vt[3]||("http:"===Vt[1]?"80":"443")))),d.data&&d.processData&&"string"!=typeof d.data&&(d.data=ae.param(d.data,d.traditional)),R(qt,d,t,I),2===b)return I;l=ae.event&&d.global,l&&0===ae.active++&&ae.event.trigger("ajaxStart"),d.type=d.type.toUpperCase(),d.hasContent=!Nt.test(d.type),r=d.url,d.hasContent||(d.data&&(r=d.url+=(At.test(r)?"&":"?")+d.data,delete d.data),d.cache===!1&&(d.url=Ot.test(r)?r.replace(Ot,"$1_="+Ft++):r+(At.test(r)?"&":"?")+"_="+Ft++)),d.ifModified&&(ae.lastModified[r]&&I.setRequestHeader("If-Modified-Since",ae.lastModified[r]),ae.etag[r]&&I.setRequestHeader("If-None-Match",ae.etag[r])),(d.data&&d.hasContent&&d.contentType!==!1||t.contentType)&&I.setRequestHeader("Content-Type",d.contentType),I.setRequestHeader("Accept",d.dataTypes[0]&&d.accepts[d.dataTypes[0]]?d.accepts[d.dataTypes[0]]+("*"!==d.dataTypes[0]?", "+$t+"; q=0.01":""):d.accepts["*"]);for(a in d.headers)I.setRequestHeader(a,d.headers[a]);if(d.beforeSend&&(d.beforeSend.call(g,I,d)===!1||2===b))return I.abort();C="abort";for(a in{success:1,error:1,complete:1})I[a](d[a]);if(c=R(Ut,d,t,I)){I.readyState=1,l&&f.trigger("ajaxSend",[I,d]),d.async&&d.timeout>0&&(s=setTimeout(function(){I.abort("timeout")},d.timeout));try{b=1,c.send(v,n)}catch(S){if(!(2>b))throw S;n(-1,S)}}else n(-1,"No Transport");return I},getJSON:function(e,t,n){return ae.get(e,t,n,"json")},getScript:function(e,t){return ae.get(e,void 0,t,"script")}}),ae.each(["get","post"],function(e,t){ae[t]=function(e,n,i,a){return ae.isFunction(n)&&(a=a||i,i=n,n=void 0),ae.ajax({url:e,type:t,dataType:a,data:n,success:i})}}),ae._evalUrl=function(e){return ae.ajax({url:e,type:"GET",dataType:"script",async:!1,global:!1,"throws":!0})},ae.fn.extend({wrapAll:function(e){if(ae.isFunction(e))return this.each(function(t){ae(this).wrapAll(e.call(this,t))});if(this[0]){var t=ae(e,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){for(var e=this;e.firstChild&&1===e.firstChild.nodeType;)e=e.firstChild;return e}).append(this)}return this},wrapInner:function(e){return ae.isFunction(e)?this.each(function(t){ae(this).wrapInner(e.call(this,t))}):this.each(function(){var t=ae(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)})},wrap:function(e){var t=ae.isFunction(e);return this.each(function(n){ae(this).wrapAll(t?e.call(this,n):e)})},unwrap:function(){return this.parent().each(function(){ae.nodeName(this,"body")||ae(this).replaceWith(this.childNodes)}).end()}}),ae.expr.filters.hidden=function(e){return e.offsetWidth<=0&&e.offsetHeight<=0||!ne.reliableHiddenOffsets()&&"none"===(e.style&&e.style.display||ae.css(e,"display"))},ae.expr.filters.visible=function(e){return!ae.expr.filters.hidden(e)};var jt=/%20/g,Gt=/\[\]$/,Xt=/\r?\n/g,Yt=/^(?:submit|button|image|reset|file)$/i,Kt=/^(?:input|select|textarea|keygen)/i;ae.param=function(e,t){var n,i=[],a=function(e,t){t=ae.isFunction(t)?t():null==t?"":t,i[i.length]=encodeURIComponent(e)+"="+encodeURIComponent(t)};if(void 0===t&&(t=ae.ajaxSettings&&ae.ajaxSettings.traditional),ae.isArray(e)||e.jquery&&!ae.isPlainObject(e))ae.each(e,function(){a(this.name,this.value)});else for(n in e)$(n,e[n],t,a);return i.join("&").replace(jt,"+")},ae.fn.extend({serialize:function(){return ae.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=ae.prop(this,"elements");return e?ae.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!ae(this).is(":disabled")&&Kt.test(this.nodeName)&&!Yt.test(e)&&(this.checked||!Fe.test(e))}).map(function(e,t){var n=ae(this).val();return null==n?null:ae.isArray(n)?ae.map(n,function(e){return{name:t.name,value:e.replace(Xt,"\r\n")}}):{name:t.name,value:n.replace(Xt,"\r\n")}}).get()}}),ae.ajaxSettings.xhr=void 0!==e.ActiveXObject?function(){return!this.isLocal&&/^(get|post|head|put|delete|options)$/i.test(this.type)&&W()||j()}:W;var Qt=0,Jt={},Zt=ae.ajaxSettings.xhr();e.attachEvent&&e.attachEvent("onunload",function(){for(var e in Jt)Jt[e](void 0,!0)}),ne.cors=!!Zt&&"withCredentials"in Zt,Zt=ne.ajax=!!Zt,Zt&&ae.ajaxTransport(function(e){if(!e.crossDomain||ne.cors){var t;return{send:function(n,i){var a,r=e.xhr(),o=++Qt;if(r.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(a in e.xhrFields)r[a]=e.xhrFields[a];e.mimeType&&r.overrideMimeType&&r.overrideMimeType(e.mimeType),e.crossDomain||n["X-Requested-With"]||(n["X-Requested-With"]="XMLHttpRequest");for(a in n)void 0!==n[a]&&r.setRequestHeader(a,n[a]+"");r.send(e.hasContent&&e.data||null),t=function(n,a){var s,l,c;if(t&&(a||4===r.readyState))if(delete Jt[o],t=void 0,r.onreadystatechange=cs,a)4!==r.readyState&&r.abort();else{c={},s=r.status,"string"==typeof r.responseText&&(c.text=r.responseText);try{l=r.statusText}catch(u){l=""}s||!e.isLocal||e.crossDomain?1223===s&&(s=204):s=c.text?200:404}c&&i(s,l,c,r.getAllResponseHeaders())},e.async?4===r.readyState?setTimeout(t):r.onreadystatechange=Jt[o]=t:t()},abort:function(){t&&t(void 0,!0)}}}}),ae.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/(?:java|ecma)script/},converters:{"text script":function(e){return ae.globalEval(e),e}}}),ae.ajaxPrefilter("script",function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET",e.global=!1)}),ae.ajaxTransport("script",function(e){if(e.crossDomain){var t,n=pe.head||ae("head")[0]||pe.documentElement;return{send:function(i,a){t=pe.createElement("script"),t.async=!0,e.scriptCharset&&(t.charset=e.scriptCharset),t.src=e.url,t.onload=t.onreadystatechange=function(e,n){(n||!t.readyState||/loaded|complete/.test(t.readyState))&&(t.onload=t.onreadystatechange=null,t.parentNode&&t.parentNode.removeChild(t),t=null,n||a(200,"success"))},n.insertBefore(t,n.firstChild)},abort:function(){t&&t.onload(void 0,!0)}}}});var en=[],tn=/(=)\?(?=&|$)|\?\?/;ae.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=en.pop()||ae.expando+"_"+Ft++;return this[e]=!0,e}}),ae.ajaxPrefilter("json jsonp",function(t,n,i){var a,r,o,s=t.jsonp!==!1&&(tn.test(t.url)?"url":"string"==typeof t.data&&!(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&tn.test(t.data)&&"data");return s||"jsonp"===t.dataTypes[0]?(a=t.jsonpCallback=ae.isFunction(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,s?t[s]=t[s].replace(tn,"$1"+a):t.jsonp!==!1&&(t.url+=(At.test(t.url)?"&":"?")+t.jsonp+"="+a),t.converters["script json"]=function(){return o||ae.error(a+" was not called"),o[0]},t.dataTypes[0]="json",r=e[a],e[a]=function(){o=arguments},i.always(function(){e[a]=r,t[a]&&(t.jsonpCallback=n.jsonpCallback,en.push(a)),o&&ae.isFunction(r)&&r(o[0]),o=r=void 0}),"script"):void 0}),ae.parseHTML=function(e,t,n){if(!e||"string"!=typeof e)return null;"boolean"==typeof t&&(n=t,t=!1),t=t||pe;var i=de.exec(e),a=!n&&[];return i?[t.createElement(i[1])]:(i=ae.buildFragment([e],t,a),a&&a.length&&ae(a).remove(),ae.merge([],i.childNodes))};var nn=ae.fn.load;ae.fn.load=function(e,t,n){if("string"!=typeof e&&nn)return nn.apply(this,arguments);var i,a,r,o=this,s=e.indexOf(" ");return s>=0&&(i=ae.trim(e.slice(s,e.length)),e=e.slice(0,s)),ae.isFunction(t)?(n=t,t=void 0):t&&"object"==typeof t&&(r="POST"),o.length>0&&ae.ajax({url:e,type:r,dataType:"html",data:t}).done(function(e){a=arguments,o.html(i?ae("<div>").append(ae.parseHTML(e)).find(i):e)}).complete(n&&function(e,t){o.each(n,a||[e.responseText,t,e])}),this},ae.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){ae.fn[t]=function(e){return this.on(t,e)}}),ae.expr.filters.animated=function(e){return ae.grep(ae.timers,function(t){return e===t.elem}).length};var an=e.document.documentElement;ae.offset={setOffset:function(e,t,n){var i,a,r,o,s,l,c,u=ae.css(e,"position"),d=ae(e),g={};"static"===u&&(e.style.position="relative"),s=d.offset(),r=ae.css(e,"top"),l=ae.css(e,"left"),c=("absolute"===u||"fixed"===u)&&ae.inArray("auto",[r,l])>-1,c?(i=d.position(),o=i.top,a=i.left):(o=parseFloat(r)||0,a=parseFloat(l)||0),ae.isFunction(t)&&(t=t.call(e,n,s)),null!=t.top&&(g.top=t.top-s.top+o),null!=t.left&&(g.left=t.left-s.left+a),"using"in t?t.using.call(e,g):d.css(g)}},ae.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each(function(t){ae.offset.setOffset(this,e,t)});var t,n,i={top:0,left:0},a=this[0],r=a&&a.ownerDocument;if(r)return t=r.documentElement,ae.contains(t,a)?(typeof a.getBoundingClientRect!==Pe&&(i=a.getBoundingClientRect()),n=G(r),{top:i.top+(n.pageYOffset||t.scrollTop)-(t.clientTop||0),left:i.left+(n.pageXOffset||t.scrollLeft)-(t.clientLeft||0)}):i},position:function(){if(this[0]){var e,t,n={top:0,left:0},i=this[0];return"fixed"===ae.css(i,"position")?t=i.getBoundingClientRect():(e=this.offsetParent(),t=this.offset(),ae.nodeName(e[0],"html")||(n=e.offset()),n.top+=ae.css(e[0],"borderTopWidth",!0),n.left+=ae.css(e[0],"borderLeftWidth",!0)),{top:t.top-n.top-ae.css(i,"marginTop",!0),left:t.left-n.left-ae.css(i,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent||an;e&&!ae.nodeName(e,"html")&&"static"===ae.css(e,"position");)e=e.offsetParent;return e||an})}}),ae.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,t){ae.fn[e]=function(n){return De(this,function(e,n,i){var a=G(e);return void 0===i?a?t in a?a[t]:a.document.documentElement[n]:e[n]:void(a?(a.document.body[n]=i,a.document.documentElement[n]=i):e[n]=i)},e,n,arguments.length,null)}}),ae.each(["top","left"],function(e,t){ae.cssHooks[t]=T(ne.pixelPosition,function(e,n){return n?(n=tt(e,t),it.test(n)?ae(e).position()[t]+"px":n):void 0})}),ae.each({Height:"height",Width:"width"},function(e,t){ae.each({padding:"inner"+e,content:t,"":"outer"+e},function(n,i){ae.fn[i]=function(i,a){var r=arguments.length&&(n||"boolean"!=typeof i),o=n||(i===!0||a===!0?"margin":"border");return De(this,function(t,n,i){var a;return ae.isWindow(t)?t.document.documentElement["client"+e]:9===t.nodeType?(a=t.documentElement,Math.max(t.body["scroll"+e],a["scroll"+e],t.body["offset"+e],a["offset"+e],a["client"+e])):void 0===i?ae.css(t,n,o):ae.style(t,n,i,o)},t,r?i:void 0,r,null)}})}),ae.fn.size=function(){return this.length},ae.fn.andSelf=ae.fn.addBack,"function"==typeof define&&define.amd&&define("jquery",[],function(){return ae});var rn=e.jQuery,on=e.$;return ae.noConflict=function(t){return e.$===ae&&(e.$=on),t&&e.jQuery===ae&&(e.jQuery=rn),ae},typeof t===Pe&&(e.jQuery=e.$=ae),ae});var g=window.$,f=g,p=g;!function(e){"object"==typeof module&&"object"==typeof module.exports?module.exports=e():"function"==typeof define&&define.amd?define(e):e()}(function(){return function(e,t,n,i){function a(e){for(var t=-1,n=e?e.length:0,i=[];++t<n;){var a=e[t];a&&i.push(a)}return i}function r(e){return m.isWrapped(e)?e=[].slice.call(e):m.isNode(e)&&(e=[e]),e}function o(e){var t=g.data(e,"velocity");return null===t?i:t}function s(e){return function(t){return Math.round(t*e)*(1/e)}}function l(e,n,i,a){function r(e,t){return 1-3*t+3*e}function o(e,t){return 3*t-6*e}function s(e){return 3*e}function l(e,t,n){return((r(t,n)*e+o(t,n))*e+s(t))*e}function c(e,t,n){return 3*r(t,n)*e*e+2*o(t,n)*e+s(t)}function u(t,n){for(var a=0;h>a;++a){var r=c(n,e,i);if(0===r)return n;var o=l(n,e,i)-t;n-=o/r}return n}function d(){for(var t=0;b>t;++t)P[t]=l(t*C,e,i)}function g(t,n,a){var r,o,s=0;do o=n+(a-n)/2,r=l(o,e,i)-t,r>0?a=o:n=o;while(Math.abs(r)>v&&++s<y);return o}function f(t){for(var n=0,a=1,r=b-1;a!=r&&P[a]<=t;++a)n+=C;--a;var o=(t-P[a])/(P[a+1]-P[a]),s=n+o*C,l=c(s,e,i);return l>=m?u(t,s):0==l?s:g(t,n,n+C)}function p(){w=!0,e==n&&i==a||d()}var h=4,m=.001,v=1e-7,y=10,b=11,C=1/(b-1),I="Float32Array"in t;if(4!==arguments.length)return!1;for(var S=0;4>S;++S)if("number"!=typeof arguments[S]||isNaN(arguments[S])||!isFinite(arguments[S]))return!1;e=Math.min(e,1),i=Math.min(i,1),e=Math.max(e,0),i=Math.max(i,0);var P=I?new Float32Array(b):Array(b),w=!1,E=function(t){return w||p(),e===n&&i===a?t:0===t?0:1===t?1:l(f(t),n,a)};E.getControlPoints=function(){return[{x:e,y:n},{x:i,y:a}]};var T="generateBezier("+[e,n,i,a]+")";return E.toString=function(){return T},E}function c(e,t){var n=e;return m.isString(e)?C.Easings[e]||(n=!1):n=m.isArray(e)&&1===e.length?s.apply(null,e):m.isArray(e)&&2===e.length?I.apply(null,e.concat([t])):m.isArray(e)&&4===e.length?l.apply(null,e):!1,n===!1&&(n=C.Easings[C.defaults.easing]?C.defaults.easing:b),n}function u(e){if(e){var t=(new Date).getTime(),n=C.State.calls.length;n>1e4&&(C.State.calls=a(C.State.calls));for(var r=0;n>r;r++)if(C.State.calls[r]){var s=C.State.calls[r],l=s[0],c=s[2],f=s[3],p=!!f,h=null;f||(f=C.State.calls[r][3]=t-16);for(var v=Math.min((t-f)/c.duration,1),y=0,b=l.length;b>y;y++){var I=l[y],P=I.element;if(o(P)){var E=!1;if(c.display!==i&&null!==c.display&&"none"!==c.display){if("flex"===c.display){var T=["-webkit-box","-moz-box","-ms-flexbox","-webkit-flex"];g.each(T,function(e,t){S.setPropertyValue(P,"display",t)})}S.setPropertyValue(P,"display",c.display)}c.visibility!==i&&"hidden"!==c.visibility&&S.setPropertyValue(P,"visibility",c.visibility);for(var x in I)if("element"!==x){var k,D=I[x],F=m.isString(D.easing)?C.Easings[D.easing]:D.easing;if(1===v)k=D.endValue;else{var A=D.endValue-D.startValue;if(k=D.startValue+A*F(v,c,A),!p&&k===D.currentValue)continue}if(D.currentValue=k,"tween"===x)h=k;else{if(S.Hooks.registered[x]){var B=S.Hooks.getRoot(x),V=o(P).rootPropertyValueCache[B];V&&(D.rootPropertyValue=V)}var L=S.setPropertyValue(P,x,D.currentValue+(0===parseFloat(k)?"":D.unitType),D.rootPropertyValue,D.scrollData);S.Hooks.registered[x]&&(S.Normalizations.registered[B]?o(P).rootPropertyValueCache[B]=S.Normalizations.registered[B]("extract",null,L[1]):o(P).rootPropertyValueCache[B]=L[1]),"transform"===L[0]&&(E=!0)}}c.mobileHA&&o(P).transformCache.translate3d===i&&(o(P).transformCache.translate3d="(0px, 0px, 0px)",E=!0),E&&S.flushTransformCache(P)}}c.display!==i&&"none"!==c.display&&(C.State.calls[r][2].display=!1),c.visibility!==i&&"hidden"!==c.visibility&&(C.State.calls[r][2].visibility=!1),c.progress&&c.progress.call(s[1],s[1],v,Math.max(0,f+c.duration-t),f,h),1===v&&d(r)}}C.State.isTicking&&w(u)}function d(e,t){if(!C.State.calls[e])return!1;for(var n=C.State.calls[e][0],a=C.State.calls[e][1],r=C.State.calls[e][2],s=C.State.calls[e][4],l=!1,c=0,u=n.length;u>c;c++){var d=n[c].element;if(t||r.loop||("none"===r.display&&S.setPropertyValue(d,"display",r.display),"hidden"===r.visibility&&S.setPropertyValue(d,"visibility",r.visibility)),r.loop!==!0&&(g.queue(d)[1]===i||!/\.velocityQueueEntryFlag/i.test(g.queue(d)[1]))&&o(d)){o(d).isAnimating=!1,o(d).rootPropertyValueCache={};var f=!1;g.each(S.Lists.transforms3D,function(e,t){var n=/^scale/.test(t)?1:0,a=o(d).transformCache[t];o(d).transformCache[t]!==i&&RegExp("^\\("+n+"[^.]").test(a)&&(f=!0,delete o(d).transformCache[t])}),r.mobileHA&&(f=!0,delete o(d).transformCache.translate3d),f&&S.flushTransformCache(d),S.Values.removeClass(d,"velocity-animating")}if(!t&&r.complete&&!r.loop&&c===u-1)try{r.complete.call(a,a)}catch(p){setTimeout(function(){throw p},1)}s&&r.loop!==!0&&s(a),o(d)&&r.loop===!0&&!t&&(g.each(o(d).tweensContainer,function(e,t){/^rotate/.test(e)&&360===parseFloat(t.endValue)&&(t.endValue=0,t.startValue=360),/^backgroundPosition/.test(e)&&100===parseFloat(t.endValue)&&"%"===t.unitType&&(t.endValue=0,t.startValue=100)}),C(d,"reverse",{loop:!0,delay:r.delay})),r.queue!==!1&&g.dequeue(d,r.queue)}C.State.calls[e]=!1;for(var h=0,m=C.State.calls.length;m>h;h++)if(C.State.calls[h]!==!1){l=!0;break}l===!1&&(C.State.isTicking=!1,delete C.State.calls,C.State.calls=[])}var g,f=function(){if(n.documentMode)return n.documentMode;for(var e=7;e>4;e--){var t=n.createElement("div");if(t.innerHTML="<!--[if IE "+e+"]><span></span><![endif]-->",t.getElementsByTagName("span").length)return t=null,e}return i}(),h=function(){var e=0;return t.webkitRequestAnimationFrame||t.mozRequestAnimationFrame||function(t){var n,i=(new Date).getTime();return n=Math.max(0,16-(i-e)),e=i+n,setTimeout(function(){t(i+n)},n)}}(),m={isString:function(e){return"string"==typeof e},isArray:Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)},isFunction:function(e){return"[object Function]"===Object.prototype.toString.call(e)},isNode:function(e){return e&&e.nodeType},isNodeList:function(e){return"object"==typeof e&&/^\[object (HTMLCollection|NodeList|Object)\]$/.test(Object.prototype.toString.call(e))&&e.length!==i&&(0===e.length||"object"==typeof e[0]&&e[0].nodeType>0)},isWrapped:function(e){return e&&(e.jquery||t.Zepto&&t.Zepto.zepto.isZ(e))},isSVG:function(e){return t.SVGElement&&e instanceof t.SVGElement},isEmptyObject:function(e){for(var t in e)return!1;return!0}},v=!1;if(e.fn&&e.fn.jquery?(g=e,v=!0):g=t.Velocity.Utilities,8>=f&&!v)throw Error("Velocity: IE8 and below require jQuery to be loaded before Velocity.");if(7>=f)return p.fn.velocity=p.fn.animate,i;var y=400,b="swing",C={State:{isMobile:/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),isAndroid:/Android/i.test(navigator.userAgent),isGingerbread:/Android 2\.3\.[3-7]/i.test(navigator.userAgent),isChrome:t.chrome,isFirefox:/Firefox/i.test(navigator.userAgent),prefixElement:n.createElement("div"),prefixMatches:{},scrollAnchor:null,scrollPropertyLeft:null,scrollPropertyTop:null,isTicking:!1,calls:[]},CSS:{},Utilities:g,Redirects:{},Easings:{},Promise:t.Promise,defaults:{queue:"",duration:y,easing:b,begin:i,complete:i,progress:i,display:i,visibility:i,loop:!1,delay:!1,mobileHA:!0,_cacheValues:!0},init:function(e){g.data(e,"velocity",{isSVG:m.isSVG(e),isAnimating:!1,computedStyle:null,tweensContainer:null,rootPropertyValueCache:{},transformCache:{}})},hook:null,mock:!1,version:{major:1,minor:2,patch:2},debug:!1};t.pageYOffset!==i?(C.State.scrollAnchor=t,C.State.scrollPropertyLeft="pageXOffset",C.State.scrollPropertyTop="pageYOffset"):(C.State.scrollAnchor=n.documentElement||n.body.parentNode||n.body,C.State.scrollPropertyLeft="scrollLeft",C.State.scrollPropertyTop="scrollTop");var I=function(){function e(e){return-e.tension*e.x-e.friction*e.v}function t(t,n,i){var a={x:t.x+i.dx*n,v:t.v+i.dv*n,tension:t.tension,friction:t.friction};return{dx:a.v,dv:e(a)}}function n(n,i){var a={dx:n.v,dv:e(n)},r=t(n,.5*i,a),o=t(n,.5*i,r),s=t(n,i,o),l=1/6*(a.dx+2*(r.dx+o.dx)+s.dx),c=1/6*(a.dv+2*(r.dv+o.dv)+s.dv);return n.x=n.x+l*i,n.v=n.v+c*i,n}return function i(e,t,a){var r,o,s,l={x:-1,v:0,tension:null,friction:null},c=[0],u=0,d=1e-4,g=.016;for(e=parseFloat(e)||500,t=parseFloat(t)||20,a=a||null,l.tension=e,l.friction=t,r=null!==a,r?(u=i(e,t),o=u/a*g):o=g;;)if(s=n(s||l,o),c.push(1+s.x),u+=16,!(Math.abs(s.x)>d&&Math.abs(s.v)>d))break;return r?function(e){return c[e*(c.length-1)|0]}:u}}();C.Easings={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},spring:function(e){return 1-Math.cos(4.5*e*Math.PI)*Math.exp(6*-e)}},g.each([["ease",[.25,.1,.25,1]],["ease-in",[.42,0,1,1]],["ease-out",[0,0,.58,1]],["ease-in-out",[.42,0,.58,1]],["easeInSine",[.47,0,.745,.715]],["easeOutSine",[.39,.575,.565,1]],["easeInOutSine",[.445,.05,.55,.95]],["easeInQuad",[.55,.085,.68,.53]],["easeOutQuad",[.25,.46,.45,.94]],["easeInOutQuad",[.455,.03,.515,.955]],["easeInCubic",[.55,.055,.675,.19]],["easeOutCubic",[.215,.61,.355,1]],["easeInOutCubic",[.645,.045,.355,1]],["easeInQuart",[.895,.03,.685,.22]],["easeOutQuart",[.165,.84,.44,1]],["easeInOutQuart",[.77,0,.175,1]],["easeInQuint",[.755,.05,.855,.06]],["easeOutQuint",[.23,1,.32,1]],["easeInOutQuint",[.86,0,.07,1]],["easeInExpo",[.95,.05,.795,.035]],["easeOutExpo",[.19,1,.22,1]],["easeInOutExpo",[1,0,0,1]],["easeInCirc",[.6,.04,.98,.335]],["easeOutCirc",[.075,.82,.165,1]],["easeInOutCirc",[.785,.135,.15,.86]]],function(e,t){C.Easings[t[0]]=l.apply(null,t[1])});var S=C.CSS={RegEx:{isHex:/^#([A-f\d]{3}){1,2}$/i,valueUnwrap:/^[A-z]+\((.*)\)$/i,wrappedValueAlreadyExtracted:/[0-9.]+ [0-9.]+ [0-9.]+( [0-9.]+)?/,valueSplit:/([A-z]+\(.+\))|(([A-z0-9#-.]+?)(?=\s|$))/gi},Lists:{colors:["fill","stroke","stopColor","color","backgroundColor","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor","outlineColor"],transformsBase:["translateX","translateY","scale","scaleX","scaleY","skewX","skewY","rotateZ"],transforms3D:["transformPerspective","translateZ","scaleZ","rotateX","rotateY"]},Hooks:{templates:{textShadow:["Color X Y Blur","black 0px 0px 0px"],boxShadow:["Color X Y Blur Spread","black 0px 0px 0px 0px"],clip:["Top Right Bottom Left","0px 0px 0px 0px"],backgroundPosition:["X Y","0% 0%"],transformOrigin:["X Y Z","50% 50% 0px"],perspectiveOrigin:["X Y","50% 50%"]},registered:{},register:function(){for(var e=0;e<S.Lists.colors.length;e++){var t="color"===S.Lists.colors[e]?"0 0 0 1":"255 255 255 1";S.Hooks.templates[S.Lists.colors[e]]=["Red Green Blue Alpha",t]}var n,i,a;if(f)for(n in S.Hooks.templates){i=S.Hooks.templates[n],a=i[0].split(" ");var r=i[1].match(S.RegEx.valueSplit);"Color"===a[0]&&(a.push(a.shift()),r.push(r.shift()),S.Hooks.templates[n]=[a.join(" "),r.join(" ")])}for(n in S.Hooks.templates){i=S.Hooks.templates[n],a=i[0].split(" ");for(var e in a){var o=n+a[e],s=e;S.Hooks.registered[o]=[n,s]}}},getRoot:function(e){var t=S.Hooks.registered[e];return t?t[0]:e},cleanRootPropertyValue:function(e,t){return S.RegEx.valueUnwrap.test(t)&&(t=t.match(S.RegEx.valueUnwrap)[1]),S.Values.isCSSNullValue(t)&&(t=S.Hooks.templates[e][1]),t},extractValue:function(e,t){var n=S.Hooks.registered[e];if(n){var i=n[0],a=n[1];return t=S.Hooks.cleanRootPropertyValue(i,t),(""+t).match(S.RegEx.valueSplit)[a]}return t},injectValue:function(e,t,n){var i=S.Hooks.registered[e];if(i){var a,r,o=i[0],s=i[1];return n=S.Hooks.cleanRootPropertyValue(o,n),a=(""+n).match(S.RegEx.valueSplit),a[s]=t,r=a.join(" ")}return n}},Normalizations:{registered:{clip:function(e,t,n){switch(e){case"name":return"clip";case"extract":var i;return S.RegEx.wrappedValueAlreadyExtracted.test(n)?i=n:(i=(""+n).match(S.RegEx.valueUnwrap),i=i?i[1].replace(/,(\s+)?/g," "):n),i;case"inject":return"rect("+n+")"}},blur:function(e,t,n){switch(e){case"name":return C.State.isFirefox?"filter":"-webkit-filter";case"extract":var i=parseFloat(n);if(!i&&0!==i){var a=(""+n).match(/blur\(([0-9]+[A-z]+)\)/i);i=a?a[1]:0}return i;case"inject":return parseFloat(n)?"blur("+n+")":"none"}},opacity:function(e,t,n){if(8>=f)switch(e){case"name":return"filter";case"extract":var i=(""+n).match(/alpha\(opacity=(.*)\)/i);return n=i?i[1]/100:1;case"inject":return t.style.zoom=1,parseFloat(n)>=1?"":"alpha(opacity="+parseInt(100*parseFloat(n),10)+")"}else switch(e){case"name":return"opacity";case"extract":return n;case"inject":return n}}},register:function(){9>=f||C.State.isGingerbread||(S.Lists.transformsBase=S.Lists.transformsBase.concat(S.Lists.transforms3D));for(var e=0;e<S.Lists.transformsBase.length;e++)!function(){var t=S.Lists.transformsBase[e];S.Normalizations.registered[t]=function(e,n,a){switch(e){case"name":return"transform";case"extract":return o(n)===i||o(n).transformCache[t]===i?/^scale/i.test(t)?1:0:o(n).transformCache[t].replace(/[()]/g,"");case"inject":var r=!1;switch(t.substr(0,t.length-1)){case"translate":r=!/(%|px|em|rem|vw|vh|\d)$/i.test(a);break;case"scal":case"scale":C.State.isAndroid&&o(n).transformCache[t]===i&&1>a&&(a=1),r=!/(\d)$/i.test(a);break;case"skew":r=!/(deg|\d)$/i.test(a);break;case"rotate":r=!/(deg|\d)$/i.test(a)}return r||(o(n).transformCache[t]="("+a+")"),o(n).transformCache[t]}}}();for(var e=0;e<S.Lists.colors.length;e++)!function(){var t=S.Lists.colors[e];S.Normalizations.registered[t]=function(e,n,a){switch(e){case"name":return t;case"extract":var r;if(S.RegEx.wrappedValueAlreadyExtracted.test(a))r=a;else{var o,s={black:"rgb(0, 0, 0)",blue:"rgb(0, 0, 255)",gray:"rgb(128, 128, 128)",green:"rgb(0, 128, 0)",red:"rgb(255, 0, 0)",white:"rgb(255, 255, 255)"};/^[A-z]+$/i.test(a)?o=s[a]!==i?s[a]:s.black:S.RegEx.isHex.test(a)?o="rgb("+S.Values.hexToRgb(a).join(" ")+")":/^rgba?\(/i.test(a)||(o=s.black),r=(""+(o||a)).match(S.RegEx.valueUnwrap)[1].replace(/,(\s+)?/g," ")}return 8>=f||3!==r.split(" ").length||(r+=" 1"),r;case"inject":return 8>=f?4===a.split(" ").length&&(a=a.split(/\s+/).slice(0,3).join(" ")):3===a.split(" ").length&&(a+=" 1"),(8>=f?"rgb":"rgba")+"("+a.replace(/\s+/g,",").replace(/\.(\d)+(?=,)/g,"")+")"}}}()}},Names:{camelCase:function(e){return e.replace(/-(\w)/g,function(e,t){return t.toUpperCase()})},SVGAttribute:function(e){var t="width|height|x|y|cx|cy|r|rx|ry|x1|x2|y1|y2";return(f||C.State.isAndroid&&!C.State.isChrome)&&(t+="|transform"),RegExp("^("+t+")$","i").test(e)},prefixCheck:function(e){if(C.State.prefixMatches[e])return[C.State.prefixMatches[e],!0];for(var t=["","Webkit","Moz","ms","O"],n=0,i=t.length;i>n;n++){var a;if(a=0===n?e:t[n]+e.replace(/^\w/,function(e){return e.toUpperCase()}),m.isString(C.State.prefixElement.style[a]))return C.State.prefixMatches[e]=a,[a,!0]}return[e,!1]}},Values:{hexToRgb:function(e){var t,n=/^#?([a-f\d])([a-f\d])([a-f\d])$/i,i=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i;return e=e.replace(n,function(e,t,n,i){return t+t+n+n+i+i}),t=i.exec(e),t?[parseInt(t[1],16),parseInt(t[2],16),parseInt(t[3],16)]:[0,0,0]},isCSSNullValue:function(e){return 0==e||/^(none|auto|transparent|(rgba\(0, ?0, ?0, ?0\)))$/i.test(e)},getUnitType:function(e){return/^(rotate|skew)/i.test(e)?"deg":/(^(scale|scaleX|scaleY|scaleZ|alpha|flexGrow|flexHeight|zIndex|fontWeight)$)|((opacity|red|green|blue|alpha)$)/i.test(e)?"":"px"},getDisplayType:function(e){var t=e&&(""+e.tagName).toLowerCase();return/^(b|big|i|small|tt|abbr|acronym|cite|code|dfn|em|kbd|strong|samp|var|a|bdo|br|img|map|object|q|script|span|sub|sup|button|input|label|select|textarea)$/i.test(t)?"inline":/^(li)$/i.test(t)?"list-item":/^(tr)$/i.test(t)?"table-row":/^(table)$/i.test(t)?"table":/^(tbody)$/i.test(t)?"table-row-group":"block";
},addClass:function(e,t){e.classList?e.classList.add(t):e.className+=(e.className.length?" ":"")+t},removeClass:function(e,t){e.classList?e.classList.remove(t):e.className=(""+e.className).replace(RegExp("(^|\\s)"+t.split(" ").join("|")+"(\\s|$)","gi")," ")}},getPropertyValue:function(e,n,a,r){function s(e,n){function a(){c&&S.setPropertyValue(e,"display","none")}var l=0;if(8>=f)l=g.css(e,n);else{var c=!1;if(/^(width|height)$/.test(n)&&0===S.getPropertyValue(e,"display")&&(c=!0,S.setPropertyValue(e,"display",S.Values.getDisplayType(e))),!r){if("height"===n&&"border-box"!==(""+S.getPropertyValue(e,"boxSizing")).toLowerCase()){var u=e.offsetHeight-(parseFloat(S.getPropertyValue(e,"borderTopWidth"))||0)-(parseFloat(S.getPropertyValue(e,"borderBottomWidth"))||0)-(parseFloat(S.getPropertyValue(e,"paddingTop"))||0)-(parseFloat(S.getPropertyValue(e,"paddingBottom"))||0);return a(),u}if("width"===n&&"border-box"!==(""+S.getPropertyValue(e,"boxSizing")).toLowerCase()){var d=e.offsetWidth-(parseFloat(S.getPropertyValue(e,"borderLeftWidth"))||0)-(parseFloat(S.getPropertyValue(e,"borderRightWidth"))||0)-(parseFloat(S.getPropertyValue(e,"paddingLeft"))||0)-(parseFloat(S.getPropertyValue(e,"paddingRight"))||0);return a(),d}}var p;p=o(e)===i?t.getComputedStyle(e,null):o(e).computedStyle?o(e).computedStyle:o(e).computedStyle=t.getComputedStyle(e,null),"borderColor"===n&&(n="borderTopColor"),l=9===f&&"filter"===n?p.getPropertyValue(n):p[n],""!==l&&null!==l||(l=e.style[n]),a()}if("auto"===l&&/^(top|right|bottom|left)$/i.test(n)){var h=s(e,"position");("fixed"===h||"absolute"===h&&/top|left/i.test(n))&&(l=g(e).position()[n]+"px")}return l}var l;if(S.Hooks.registered[n]){var c=n,u=S.Hooks.getRoot(c);a===i&&(a=S.getPropertyValue(e,S.Names.prefixCheck(u)[0])),S.Normalizations.registered[u]&&(a=S.Normalizations.registered[u]("extract",e,a)),l=S.Hooks.extractValue(c,a)}else if(S.Normalizations.registered[n]){var d,p;d=S.Normalizations.registered[n]("name",e),"transform"!==d&&(p=s(e,S.Names.prefixCheck(d)[0]),S.Values.isCSSNullValue(p)&&S.Hooks.templates[n]&&(p=S.Hooks.templates[n][1])),l=S.Normalizations.registered[n]("extract",e,p)}if(!/^[\d-]/.test(l))if(o(e)&&o(e).isSVG&&S.Names.SVGAttribute(n))if(/^(height|width)$/i.test(n))try{l=e.getBBox()[n]}catch(h){l=0}else l=e.getAttribute(n);else l=s(e,S.Names.prefixCheck(n)[0]);return S.Values.isCSSNullValue(l)&&(l=0),C.debug>=2&&ee.log("Get "+n+": "+l),l},setPropertyValue:function(e,n,i,a,r){var s=n;if("scroll"===n)r.container?r.container["scroll"+r.direction]=i:"Left"===r.direction?t.scrollTo(i,r.alternateValue):t.scrollTo(r.alternateValue,i);else if(S.Normalizations.registered[n]&&"transform"===S.Normalizations.registered[n]("name",e))S.Normalizations.registered[n]("inject",e,i),s="transform",i=o(e).transformCache[n];else{if(S.Hooks.registered[n]){var l=n,c=S.Hooks.getRoot(n);a=a||S.getPropertyValue(e,c),i=S.Hooks.injectValue(l,i,a),n=c}if(S.Normalizations.registered[n]&&(i=S.Normalizations.registered[n]("inject",e,i),n=S.Normalizations.registered[n]("name",e)),s=S.Names.prefixCheck(n)[0],8>=f)try{e.style[s]=i}catch(u){C.debug&&ee.log("Browser does not support ["+i+"] for ["+s+"]")}else o(e)&&o(e).isSVG&&S.Names.SVGAttribute(n)?e.setAttribute(n,i):e.style[s]=i;C.debug>=2&&ee.log("Set "+n+" ("+s+"): "+i)}return[s,i]},flushTransformCache:function(e){function t(t){return parseFloat(S.getPropertyValue(e,t))}var n="";if((f||C.State.isAndroid&&!C.State.isChrome)&&o(e).isSVG){var a={translate:[t("translateX"),t("translateY")],skewX:[t("skewX")],skewY:[t("skewY")],scale:1!==t("scale")?[t("scale"),t("scale")]:[t("scaleX"),t("scaleY")],rotate:[t("rotateZ"),0,0]};g.each(o(e).transformCache,function(e){/^translate/i.test(e)?e="translate":/^scale/i.test(e)?e="scale":/^rotate/i.test(e)&&(e="rotate"),a[e]&&(n+=e+"("+a[e].join(" ")+") ",delete a[e])})}else{var r,s;g.each(o(e).transformCache,function(t){return r=o(e).transformCache[t],"transformPerspective"===t?(s=r,!0):(9===f&&"rotateZ"===t&&(t="rotate"),n+=t+r+" ",i)}),s&&(n="perspective"+s+" "+n)}S.setPropertyValue(e,"transform",n)}};S.Hooks.register(),S.Normalizations.register(),C.hook=function(e,t,n){var a=i;return e=r(e),g.each(e,function(e,r){if(o(r)===i&&C.init(r),n===i)a===i&&(a=C.CSS.getPropertyValue(r,t));else{var s=C.CSS.setPropertyValue(r,t,n);"transform"===s[0]&&C.CSS.flushTransformCache(r),a=s}}),a};var P=function(){function e(){return s?x.promise||null:l}function a(){function e(){function e(e,t){var n=i,a=i,o=i;return m.isArray(e)?(n=e[0],!m.isArray(e[1])&&/^[\d-]/.test(e[1])||m.isFunction(e[1])||S.RegEx.isHex.test(e[1])?o=e[1]:(m.isString(e[1])&&!S.RegEx.isHex.test(e[1])||m.isArray(e[1]))&&(a=t?e[1]:c(e[1],s.duration),e[2]!==i&&(o=e[2]))):n=e,t||(a=a||s.easing),m.isFunction(n)&&(n=n.call(r,w,I)),m.isFunction(o)&&(o=o.call(r,w,I)),[n||0,a,o]}function d(e,t){var n,i;return i=(""+(t||"0")).toLowerCase().replace(/[%A-z]+$/,function(e){return n=e,""}),n||(n=S.Values.getUnitType(e)),[i,n]}function f(){var e={myParent:r.parentNode||n.body,position:S.getPropertyValue(r,"position"),fontSize:S.getPropertyValue(r,"fontSize")},i=e.position===L.lastPosition&&e.myParent===L.lastParent,a=e.fontSize===L.lastFontSize;L.lastParent=e.myParent,L.lastPosition=e.position,L.lastFontSize=e.fontSize;var s=100,l={};if(a&&i)l.emToPx=L.lastEmToPx,l.percentToPxWidth=L.lastPercentToPxWidth,l.percentToPxHeight=L.lastPercentToPxHeight;else{var c=o(r).isSVG?n.createElementNS("http://www.w3.org/2000/svg","rect"):n.createElement("div");C.init(c),e.myParent.appendChild(c),g.each(["overflow","overflowX","overflowY"],function(e,t){C.CSS.setPropertyValue(c,t,"hidden")}),C.CSS.setPropertyValue(c,"position",e.position),C.CSS.setPropertyValue(c,"fontSize",e.fontSize),C.CSS.setPropertyValue(c,"boxSizing","content-box"),g.each(["minWidth","maxWidth","width","minHeight","maxHeight","height"],function(e,t){C.CSS.setPropertyValue(c,t,s+"%")}),C.CSS.setPropertyValue(c,"paddingLeft",s+"em"),l.percentToPxWidth=L.lastPercentToPxWidth=(parseFloat(S.getPropertyValue(c,"width",null,!0))||1)/s,l.percentToPxHeight=L.lastPercentToPxHeight=(parseFloat(S.getPropertyValue(c,"height",null,!0))||1)/s,l.emToPx=L.lastEmToPx=(parseFloat(S.getPropertyValue(c,"paddingLeft"))||1)/s,e.myParent.removeChild(c)}return null===L.remToPx&&(L.remToPx=parseFloat(S.getPropertyValue(n.body,"fontSize"))||16),null===L.vwToPx&&(L.vwToPx=parseFloat(t.innerWidth)/100,L.vhToPx=parseFloat(t.innerHeight)/100),l.remToPx=L.remToPx,l.vwToPx=L.vwToPx,l.vhToPx=L.vhToPx,C.debug>=1&&ee.log("Unit ratios: "+JSON.stringify(l),r),l}if(s.begin&&0===w)try{s.begin.call(p,p)}catch(y){setTimeout(function(){throw y},1)}if("scroll"===k){var b,P,E,T=/^x$/i.test(s.axis)?"Left":"Top",D=parseFloat(s.offset)||0;s.container?m.isWrapped(s.container)||m.isNode(s.container)?(s.container=s.container[0]||s.container,b=s.container["scroll"+T],E=b+g(r).position()[T.toLowerCase()]+D):s.container=null:(b=C.State.scrollAnchor[C.State["scrollProperty"+T]],P=C.State.scrollAnchor[C.State["scrollProperty"+("Left"===T?"Top":"Left")]],E=g(r).offset()[T.toLowerCase()]+D),l={scroll:{rootPropertyValue:!1,startValue:b,currentValue:b,endValue:E,unitType:"",easing:s.easing,scrollData:{container:s.container,direction:T,alternateValue:P}},element:r},C.debug&&ee.log("tweensContainer (scroll): ",l.scroll,r)}else if("reverse"===k){if(!o(r).tweensContainer)return g.dequeue(r,s.queue),i;"none"===o(r).opts.display&&(o(r).opts.display="auto"),"hidden"===o(r).opts.visibility&&(o(r).opts.visibility="visible"),o(r).opts.loop=!1,o(r).opts.begin=null,o(r).opts.complete=null,v.easing||delete s.easing,v.duration||delete s.duration,s=g.extend({},o(r).opts,s);var F=g.extend(!0,{},o(r).tweensContainer);for(var A in F)if("element"!==A){var B=F[A].startValue;F[A].startValue=F[A].currentValue=F[A].endValue,F[A].endValue=B,m.isEmptyObject(v)||(F[A].easing=s.easing),C.debug&&ee.log("reverse tweensContainer ("+A+"): "+JSON.stringify(F[A]),r)}l=F}else if("start"===k){var F;o(r).tweensContainer&&o(r).isAnimating===!0&&(F=o(r).tweensContainer),g.each(h,function(t,n){if(RegExp("^"+S.Lists.colors.join("$|^")+"$").test(t)){var a=e(n,!0),r=a[0],o=a[1],s=a[2];if(S.RegEx.isHex.test(r)){for(var l=["Red","Green","Blue"],c=S.Values.hexToRgb(r),u=s?S.Values.hexToRgb(s):i,d=0;d<l.length;d++){var g=[c[d]];o&&g.push(o),u!==i&&g.push(u[d]),h[t+l[d]]=g}delete h[t]}}});for(var V in h){var O=e(h[V]),z=O[0],_=O[1],N=O[2];V=S.Names.camelCase(V);var R=S.Hooks.getRoot(V),H=!1;if(o(r).isSVG||"tween"===R||S.Names.prefixCheck(R)[1]!==!1||S.Normalizations.registered[R]!==i){(s.display!==i&&null!==s.display&&"none"!==s.display||s.visibility!==i&&"hidden"!==s.visibility)&&/opacity|filter/.test(V)&&!N&&0!==z&&(N=0),s._cacheValues&&F&&F[V]?(N===i&&(N=F[V].endValue+F[V].unitType),H=o(r).rootPropertyValueCache[R]):S.Hooks.registered[V]?N===i?(H=S.getPropertyValue(r,R),N=S.getPropertyValue(r,V,H)):H=S.Hooks.templates[R][1]:N===i&&(N=S.getPropertyValue(r,V));var q,U,$,W=!1;if(q=d(V,N),N=q[0],$=q[1],q=d(V,z),z=q[0].replace(/^([+-\/*])=/,function(e,t){return W=t,""}),U=q[1],N=parseFloat(N)||0,z=parseFloat(z)||0,"%"===U&&(/^(fontSize|lineHeight)$/.test(V)?(z/=100,U="em"):/^scale/.test(V)?(z/=100,U=""):/(Red|Green|Blue)$/i.test(V)&&(z=z/100*255,U="")),/[\/*]/.test(W))U=$;else if($!==U&&0!==N)if(0===z)U=$;else{a=a||f();var j=/margin|padding|left|right|width|text|word|letter/i.test(V)||/X$/.test(V)||"x"===V?"x":"y";switch($){case"%":N*="x"===j?a.percentToPxWidth:a.percentToPxHeight;break;case"px":break;default:N*=a[$+"ToPx"]}switch(U){case"%":N*=1/("x"===j?a.percentToPxWidth:a.percentToPxHeight);break;case"px":break;default:N*=1/a[U+"ToPx"]}}switch(W){case"+":z=N+z;break;case"-":z=N-z;break;case"*":z=N*z;break;case"/":z=N/z}l[V]={rootPropertyValue:H,startValue:N,currentValue:N,endValue:z,unitType:U,easing:_},C.debug&&ee.log("tweensContainer ("+V+"): "+JSON.stringify(l[V]),r)}else C.debug&&ee.log("Skipping ["+R+"] due to a lack of browser support.")}l.element=r}l.element&&(S.Values.addClass(r,"velocity-animating"),M.push(l),""===s.queue&&(o(r).tweensContainer=l,o(r).opts=s),o(r).isAnimating=!0,w===I-1?(C.State.calls.push([M,p,s,null,x.resolver]),C.State.isTicking===!1&&(C.State.isTicking=!0,u())):w++)}var a,r=this,s=g.extend({},C.defaults,v),l={};switch(o(r)===i&&C.init(r),parseFloat(s.delay)&&s.queue!==!1&&g.queue(r,s.queue,function(e){C.velocityQueueEntryFlag=!0,o(r).delayTimer={setTimeout:setTimeout(e,parseFloat(s.delay)),next:e}}),(""+s.duration).toLowerCase()){case"fast":s.duration=200;break;case"normal":s.duration=y;break;case"slow":s.duration=600;break;default:s.duration=parseFloat(s.duration)||1}C.mock!==!1&&(C.mock===!0?s.duration=s.delay=1:(s.duration*=parseFloat(C.mock)||1,s.delay*=parseFloat(C.mock)||1)),s.easing=c(s.easing,s.duration),s.begin&&!m.isFunction(s.begin)&&(s.begin=null),s.progress&&!m.isFunction(s.progress)&&(s.progress=null),s.complete&&!m.isFunction(s.complete)&&(s.complete=null),s.display!==i&&null!==s.display&&(s.display=(""+s.display).toLowerCase(),"auto"===s.display&&(s.display=C.CSS.Values.getDisplayType(r))),s.visibility!==i&&null!==s.visibility&&(s.visibility=(""+s.visibility).toLowerCase()),s.mobileHA=s.mobileHA&&C.State.isMobile&&!C.State.isGingerbread,s.queue===!1?s.delay?setTimeout(e,s.delay):e():g.queue(r,s.queue,function(t,n){return n===!0?(x.promise&&x.resolver(p),!0):(C.velocityQueueEntryFlag=!0,e(t),i)}),""!==s.queue&&"fx"!==s.queue||"inprogress"===g.queue(r)[0]||g.dequeue(r)}var s,l,f,p,h,v,b=arguments[0]&&(arguments[0].p||g.isPlainObject(arguments[0].properties)&&!arguments[0].properties.names||m.isString(arguments[0].properties));if(m.isWrapped(this)?(s=!1,f=0,p=this,l=this):(s=!0,f=1,p=b?arguments[0].elements||arguments[0].e:arguments[0]),p=r(p)){b?(h=arguments[0].properties||arguments[0].p,v=arguments[0].options||arguments[0].o):(h=arguments[f],v=arguments[f+1]);var I=p.length,w=0;if(!/^(stop|finish)$/i.test(h)&&!g.isPlainObject(v)){var E=f+1;v={};for(var T=E;T<arguments.length;T++)m.isArray(arguments[T])||!/^(fast|normal|slow)$/i.test(arguments[T])&&!/^\d/.test(arguments[T])?m.isString(arguments[T])||m.isArray(arguments[T])?v.easing=arguments[T]:m.isFunction(arguments[T])&&(v.complete=arguments[T]):v.duration=arguments[T]}var x={promise:null,resolver:null,rejecter:null};s&&C.Promise&&(x.promise=new C.Promise(function(e,t){x.resolver=e,x.rejecter=t}));var k;switch(h){case"scroll":k="scroll";break;case"reverse":k="reverse";break;case"finish":case"stop":g.each(p,function(e,t){o(t)&&o(t).delayTimer&&(clearTimeout(o(t).delayTimer.setTimeout),o(t).delayTimer.next&&o(t).delayTimer.next(),delete o(t).delayTimer)});var D=[];return g.each(C.State.calls,function(e,t){t&&g.each(t[1],function(n,a){var r=v===i?"":v;return r===!0||t[2].queue===r||v===i&&t[2].queue===!1?(g.each(p,function(n,i){i===a&&((v===!0||m.isString(v))&&(g.each(g.queue(i,m.isString(v)?v:""),function(e,t){m.isFunction(t)&&t(null,!0)}),g.queue(i,m.isString(v)?v:"",[])),"stop"===h?(o(i)&&o(i).tweensContainer&&r!==!1&&g.each(o(i).tweensContainer,function(e,t){t.endValue=t.currentValue}),D.push(e)):"finish"===h&&(t[2].duration=1))}),i):!0})}),"stop"===h&&(g.each(D,function(e,t){d(t,!0)}),x.promise&&x.resolver(p)),e();default:if(!g.isPlainObject(h)||m.isEmptyObject(h)){if(m.isString(h)&&C.Redirects[h]){var F=g.extend({},v),A=F.duration,B=F.delay||0;return F.backwards===!0&&(p=g.extend(!0,[],p).reverse()),g.each(p,function(e,t){parseFloat(F.stagger)?F.delay=B+parseFloat(F.stagger)*e:m.isFunction(F.stagger)&&(F.delay=B+F.stagger.call(t,e,I)),F.drag&&(F.duration=parseFloat(A)||(/^(callout|transition)/.test(h)?1e3:y),F.duration=Math.max(F.duration*(F.backwards?1-e/I:(e+1)/I),.75*F.duration,200)),C.Redirects[h].call(t,t,F||{},e,I,p,x.promise?x:i)}),e()}var V="Velocity: First argument ("+h+") was not a property map, a known action, or a registered redirect. Aborting.";return x.promise?x.rejecter(Error(V)):ee.log(V),e()}k="start"}var L={lastParent:null,lastPosition:null,lastFontSize:null,lastPercentToPxWidth:null,lastPercentToPxHeight:null,lastEmToPx:null,remToPx:null,vwToPx:null,vhToPx:null},M=[];g.each(p,function(e,t){m.isNode(t)&&a.call(t)});var O,F=g.extend({},C.defaults,v);if(F.loop=parseInt(F.loop),O=2*F.loop-1,F.loop)for(var z=0;O>z;z++){var _={delay:F.delay,progress:F.progress};z===O-1&&(_.display=F.display,_.visibility=F.visibility,_.complete=F.complete),P(p,"reverse",_)}return e()}};C=g.extend(P,C),C.animate=P;var w=t.requestAnimationFrame||h;return C.State.isMobile||n.hidden===i||n.addEventListener("visibilitychange",function(){n.hidden?(w=function(e){return setTimeout(function(){e(!0)},16)},u()):w=t.requestAnimationFrame||h}),e.Velocity=C,e!==t&&(e.fn.velocity=P,e.fn.velocity.defaults=C.defaults),g.each(["Down","Up"],function(e,t){C.Redirects["slide"+t]=function(e,n,a,r,o,s){var l=g.extend({},n),c=l.begin,u=l.complete,d={height:"",marginTop:"",marginBottom:"",paddingTop:"",paddingBottom:""},f={};l.display===i&&(l.display="Down"===t?"inline"===C.CSS.Values.getDisplayType(e)?"inline-block":"block":"none"),l.begin=function(){c&&c.call(o,o);for(var n in d){f[n]=e.style[n];var i=C.CSS.getPropertyValue(e,n);d[n]="Down"===t?[i,0]:[0,i]}f.overflow=e.style.overflow,e.style.overflow="hidden"},l.complete=function(){for(var t in f)e.style[t]=f[t];u&&u.call(o,o),s&&s.resolver(o)},C(e,d,l)}}),g.each(["In","Out"],function(e,t){C.Redirects["fade"+t]=function(e,n,a,r,o,s){var l=g.extend({},n),c={opacity:"In"===t?1:0},u=l.complete;a!==r-1?l.complete=l.begin=null:l.complete=function(){u&&u.call(o,o),s&&s.resolver(o)},l.display===i&&(l.display="In"===t?"auto":"none"),C(this,c,l)}}),C}(window.jQuery||window.Zepto||window,window,document)}),function(e){e.valueOrDefault=function(e,t){return void 0===e||null===e?t:e},e.isJQueryObject=function(t){return t&&t instanceof e},e.asArray=function(t){return null===t||void 0===t?[]:e.isArray(t)?t:[t]},e.eachItem=function(e,t){for(var n=e.length,i=0;n>i&&t(i,e[i])!==!1;i++);return e},e.eachEntry=function(e,t){for(var n in e)if(t(n,e[n])===!1)break;return e},e.mapItem=function(e,t){for(var n,i=[],a=e.length,r=0;a>r;r++)n=t(e[r],r),void 0!==n&&i.push(n);return i},e.mapEntry=function(e,t){var n,i=[];for(var a in e)n=t(e[a],a),void 0!==n&&i.push(n);return i},e.quickExtend=function(e){var t=e;void 0===t&&(t={});for(var n=arguments.length,i=1;n>i;i++){var a,r,o=arguments[i];for(a in o)r=o[a],void 0!==r&&(t[a]=r)}return t};var t=/([^?=&]+)(=([^&]*))?/g;e.parseQueryString=function(e){e||(e=""),"#"===e.charAt(0)&&(e=e.substr(1)),"!"===e.charAt(0)&&(e=e.substr(1));var n={};return e.replace(t,function(e,t,i,a){n[t]=a}),n},e.isQueryParam=function(t){var n=e.getQueryStringParams();for(var i in n)if(i.toLowerCase()===t)return!0;return!1},e.getQueryStringParams=function(){return e.parseQueryString(window.location.search.substring(1))},e.trimPrefix=function(t,n,i,a){i=e.valueOrDefault(i,!1);var r=a?e.trim(t):t,o=r.substring(0,n.length);return o===n||i&&o.toLowerCase()===n.toLowerCase()?r.substring(n.length):t},e.trimBoth=function(e,t){var n=RegExp("^("+t+")+|("+t+")+$","g");return e.replace(n,"")},e.trimSuffix=function(e,t){var n=e.substring(e.length-t.length);return n===t?e.substring(0,e.length-t.length):e},e.modulo=function(e,t){if(e>=t)return e%t;if(0>e){var n=e%t;return t+n}return e},e.fn.pushElements=function(t,n){if(void 0===t)return this;for(var i=e(t,n),a=0;a<i.length;a++)this.push(i[a]);return this}}(p);var h=fs(function(){this.createTimeoutPolling=function(e,t){t=f.quickExtend({timeout:1e3,timeoutCallback:cs},t);var n,i=t.timeout,a=t.timeoutCallback,r=this.createPolling(e,t.defaultInterval);return r.start=f.hookBeforeMethod(r.start,function(){clearTimeout(n),n=setTimeout(function(){r.stop(),a()},i)}),r.stop=f.hookAfterMethod(r.stop,function(){clearTimeout(n)}),r},this.createPolling=function(e,t){t=f.valueOrDefault(t,0);var n={isActive:!1},i=function(){n.timeoutID=setTimeout(function(){e.call(n),n.isActive&&i()},n.interval)};return f.quickExtend(n,{setDefaultInterval:function(e){t=f.valueOrDefault(e,0)},start:function(e){return n.isActive=!0,n.interval=f.valueOrDefault(e,t),i(),n},stop:function(){return n.isActive=!1,clearTimeout(n.timeoutID),n},poll:function(){n.isActive&&(e.call(n),clearTimeout(n.timeoutID),i())}})}}),m={Short:2e3,Normal:4e3,Long:5e3,VeryLong:1e4},v=fs(function(){this.getScriptWithValidation=function(e,t,n){n=f.quickExtend({timeout:m.VeryLong,cache:!1,retryInterval:50,retryTimeout:1e3},n);var i=f.Deferred();return f.ajax({url:e,timeout:n.timeout?n.timeout:void 0,type:"get",cache:n.cache,dataType:"script"}).done(function(){if(t())i.resolve();else{var e=h.createTimeoutPolling(function(){t()&&(e.stop(),i.resolve())},{defaultInterval:n.retryInterval,timeout:n.retryTimeout,timeoutCallback:function(){t()?i.resolve():i.reject(!0)}});e.start()}}).fail(function(){i.reject(!1)}),i.promise()}});!function(e){var t=/^[\/]+/,n=/[\/]+$/;e.combinePaths=function(){for(var e=[],i=arguments.length,a=0;i>a;a++){var r=arguments[a];void 0!==r&&("number"==typeof r&&(r+=""),r=r.replace(n,""),a>0&&(r=r.replace(t,"")),""!==r&&e.push(r))}return e.join("/")},e.splitFileName=function(e){var t=e.lastIndexOf(".");return 0>t?{fileName:e,extension:void 0}:{fileName:e.substr(0,t),extension:e.substr(t)}},e.getFileName=function(e){var t=e.lastIndexOf("/");return t>=0?e.substring(t+1):e},e.getFileNameWithoutExtension=function(t){return e.splitFileName(e.getFileName(t)).fileName},e.getFileExtension=function(t){return e.splitFileName(e.getFileName(t)).extension}}(p),function(e){function t(e){if("string"!=typeof e){var t=e.getTemplateString;if(void 0!==t)return t();if(void 0!==e.id)return i[e.id];var n=a[e.group][e.name];if(void 0===n)throw Error("Missing template "+e.group+"->"+e.name);return n}return e}function n(n,i){var a=n._cached;if(a)return e(a.cloneNode(!0).childNodes);var o=n._templateStr;void 0===o&&(o=t(n),n._templateStr=o);var s=!1,l=!1,c=n._isSimple;void 0===c?(s=/\${[^}]+}/.test(o),l=/<script>[^<]+<\/script>/.test(o),c=!s&&!l,n._withDataParams=s,n._withVariableParams=l,n._isSimple=c):c||(s=n._withDataParams,l=n._withVariableParams);var u=e.valueOrDefault(n.cache,!0);c||(s&&(o=o.replace(/\${([^}]+)}/g,function(e,t){var n=i[t];return void 0!==n?n:""})),l&&(o=o.replace(/<script>([^<]+)<\/script>/g,function(e,t){for(var n=t.split("."),i=r,a=0;a<n.length;a++){if(!i)throw Error("Bad variable reference '{0}' in template '{1}'".format(t,o));i=i[n[a]]}if("string"!=typeof i)throw Error("Bad variable reference '{0}' in template '{1}'".format(t,o));return i})));var d=e.parseHTML(o),g=c&&u;if(g){for(var f=document.createDocumentFragment(),p=0;p<d.length;p++)f.appendChild(d[p]);return n._cached=f,e(f.cloneNode(!0).childNodes)}return e(d).detach()}var i,a,r;e.setTemplateContext=function(e){r=e},e.setTemplates=function(t){t&&(i?e.quickExtend(i,t):i=t)},e.setTemplatesGroups=function(t){a?e.quickExtend(a,t):a=t},e.includeTemplatesGroup=function(t,n){var i={};return e.eachEntry(n,function(e,n){i[e]={group:t,name:n}}),i},e.useSimpleTemplate=function(n,i){var a=t(n);if(!i)return e(a);var r=a.replace(/\${([^}]+)}/g,function(e,t){var n=i[t];return n?n:""});return e(r)},e.useTemplate=function(t,i){return"string"==typeof t?e.useSimpleTemplate(t,i):e.isJQueryObject(t)?t:t.useTemplate?t.useTemplate(i):n(t,i)}}(p),/*!
 * jQuery Migrate - v1.2.1 - 2013-05-08
 * https://github.com/jquery/jquery-migrate
 * Copyright 2005, 2013 jQuery Foundation, Inc. and other contributors; Licensed MIT
 */
function(e,t,n){function i(n){var i=t.console;r[n]||(r[n]=!0,e.migrateWarnings.push(n),i&&i.warn&&!e.migrateMute&&(i.warn("JQMIGRATE: "+n),e.migrateTrace&&i.trace&&i.trace()))}function a(t,a,r,o){if(Object.defineProperty)try{return Object.defineProperty(t,a,{configurable:!0,enumerable:!0,get:function(){return i(o),r},set:function(e){i(o),r=e}}),n}catch(s){}e._definePropertyBroken=!0,t[a]=r}var r={};e.migrateWarnings=[],e.migrateMute=!0,!e.migrateMute&&t.console&&t.console.log&&t.console.log("JQMIGRATE: Logging is active"),e.migrateTrace===n&&(e.migrateTrace=!0),e.migrateReset=function(){r={},e.migrateWarnings.length=0},"BackCompat"===document.compatMode&&i("jQuery is not compatible with Quirks Mode");var o=e("<input/>",{size:1}).attr("size")&&e.attrFn,s=e.attr,l=e.attrHooks.value&&e.attrHooks.value.get||gs,c=e.attrHooks.value&&e.attrHooks.value.set||cs,u=/^(?:input|button)$/i,d=/^[238]$/,g=/^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,f=/^(?:checked|selected)$/i;e.attr=function(t,a,r,l){var c=a.toLowerCase(),p=t&&t.nodeType;return l&&(s.length<4&&i("jQuery.fn.attr( props, pass ) is deprecated"),t&&!d.test(p)&&(o?a in o:e.isFunction(e.fn[a])))?e(t)[a](r):("type"===a&&r!==n&&u.test(t.nodeName)&&t.parentNode&&i("Can't change the 'type' of an input or button in IE 6/7/8"),!e.attrHooks[c]&&g.test(c)&&(e.attrHooks[c]={get:function(t,i){var a,r=e.prop(t,i);return r===!0||"boolean"!=typeof r&&(a=t.getAttributeNode(i))&&a.nodeValue!==!1?i.toLowerCase():n},set:function(t,n,i){var a;return n===!1?e.removeAttr(t,i):(a=e.propFix[i]||i,a in t&&(t[a]=!0),t.setAttribute(i,i.toLowerCase())),i}},f.test(c)&&i("jQuery.fn.attr('"+c+"') may use property instead of attribute")),s.call(e,t,a,r))},e.attrHooks.value={get:function(e,t){var n=(e.nodeName||"").toLowerCase();return"button"===n?l.apply(this,arguments):("input"!==n&&"option"!==n&&i("jQuery.fn.attr('value') no longer gets properties"),t in e?e.value:null)},set:function(e,t){var a=(e.nodeName||"").toLowerCase();return"button"===a?c.apply(this,arguments):("input"!==a&&"option"!==a&&i("jQuery.fn.attr('value', val) no longer sets properties"),e.value=t,n)}};var p,h,m=e.fn.init,v=e.parseJSON,y=/^([^<]*)(<[\w\W]+>)([^>]*)$/;e.fn.init=function(t,n,a){var r,o=n;return t&&"string"==typeof t&&!e.isPlainObject(o)&&(r=y.exec(e.trim(t)))&&r[0]&&("<"!==t.charAt(0)&&i("$(html) HTML strings must start with '<' character"),r[3]&&i("$(html) HTML text after last tag is ignored"),"#"===r[0].charAt(0)&&(i("HTML string cannot start with a '#' character"),e.error("JQMIGRATE: Invalid selector string (XSS)")),o&&o.context&&(o=o.context),e.parseHTML)?m.call(this,e.parseHTML(r[2],o,!0),o,a):m.apply(this,arguments)},e.fn.init.prototype=e.fn,e.parseJSON=function(e){return e||null===e?v.apply(this,arguments):(i("jQuery.parseJSON requires a valid JSON string"),null)},e.uaMatch=function(e){e=e.toLowerCase();var t=/(chrome)[ \/]([\w.]+)/.exec(e)||/(webkit)[ \/]([\w.]+)/.exec(e)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(e)||/(msie) ([\w.]+)/.exec(e)||e.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(e)||[];return{browser:t[1]||"",version:t[2]||"0"}},e.browser||(p=e.uaMatch(navigator.userAgent),h={},p.browser&&(h[p.browser]=!0,h.version=p.version),h.chrome?h.webkit=!0:h.webkit&&(h.safari=!0),e.browser=h),a(e,"browser",e.browser,"jQuery.browser is deprecated"),e.sub=function(){function t(e,n){return new t.fn.init(e,n)}e.extend(!0,t,this),t.superclass=this,t.fn=t.prototype=this(),t.fn.constructor=t,t.sub=this.sub,t.fn.init=function(i,a){return a&&a instanceof e&&!(a instanceof t)&&(a=t(a)),e.fn.init.call(this,i,a,n)},t.fn.init.prototype=t.fn;var n=t(document);return i("jQuery.sub() is deprecated"),t},e.ajaxSetup({converters:{"text json":e.parseJSON}});var b=/\/(java|ecma)script/i,C=e.fn.andSelf||e.fn.addBack;e.fn.andSelf=function(){return i("jQuery.fn.andSelf() replaced by jQuery.fn.addBack()"),C.apply(this,arguments)},e.clean||(e.clean=function(t,a,r,o){a=a||document,a=!a.nodeType&&a[0]||a,a=a.ownerDocument||a,i("jQuery.clean() is deprecated");var s,l,c,u,d=[];if(e.merge(d,e.buildFragment(t,a).childNodes),r)for(c=function(e){return!e.type||b.test(e.type)?o?o.push(e.parentNode?e.parentNode.removeChild(e):e):r.appendChild(e):n},s=0;null!=(l=d[s]);s++)e.nodeName(l,"script")&&c(l)||(r.appendChild(l),n!==l.getElementsByTagName&&(u=e.grep(e.merge([],l.getElementsByTagName("script")),c),d.splice.apply(d,[s+1,0].concat(u)),s+=u.length));return d});var I=e.event.add,S=e.event.remove,P=e.event.trigger,w=e.fn.toggle,E=e.fn.live,T=e.fn.die,x="ajaxStart|ajaxStop|ajaxSend|ajaxComplete|ajaxError|ajaxSuccess",k=RegExp("\\b(?:"+x+")\\b"),D=/(?:^|\s)hover(\.\S+|)\b/,F=function(t){return"string"!=typeof t||e.event.special.hover?t:(D.test(t)&&i("'hover' pseudo-event is deprecated, use 'mouseenter mouseleave'"),t&&t.replace(D,"mouseenter$1 mouseleave$1"))};e.event.props&&"attrChange"!==e.event.props[0]&&e.event.props.unshift("attrChange","attrName","relatedNode","srcElement"),e.event.dispatch&&a(e.event,"handle",e.event.dispatch,"jQuery.event.handle is undocumented and deprecated"),e.event.add=function(e,t,n,a,r){e!==document&&k.test(t)&&i("AJAX events should be attached to document: "+t),I.call(this,e,F(t||""),n,a,r)},e.event.remove=function(e,t,n,i,a){S.call(this,e,F(t)||"",n,i,a)},e.fn.error=function(){for(var e=arguments.length,t=Array(e),n=0;e>n;n++)t[n]=arguments[n];return i("jQuery.fn.error() is deprecated"),t.splice(0,0,"error"),e?this.bind.apply(this,t):(this.triggerHandler.apply(this,t),this)},e.fn.toggle=function(t,n){if(!e.isFunction(t)||!e.isFunction(n))return w.apply(this,arguments);i("jQuery.fn.toggle(handler, handler...) is deprecated");var a=arguments,r=t.guid||e.guid++,o=0,s=function(n){var i=(e._data(this,"lastToggle"+t.guid)||0)%o;return e._data(this,"lastToggle"+t.guid,i+1),n.preventDefault(),a[i].apply(this,arguments)||!1};for(s.guid=r;o<a.length;)a[o++].guid=r;return this.click(s)},e.fn.live=function(t,n,a){return i("jQuery.fn.live() is deprecated"),E?E.apply(this,arguments):(e(this.context).on(t,this.selector,n,a),this)},e.fn.die=function(t,n){return i("jQuery.fn.die() is deprecated"),T?T.apply(this,arguments):(e(this.context).off(t,this.selector||"**",n),this)},e.event.trigger=function(e,t,n,a){return n||k.test(e)||i("Global events are undocumented and deprecated"),P.call(this,e,t,n||document,a)},e.each(x.split("|"),function(t,n){e.event.special[n]={setup:function(){var t=this;return t!==document&&(e.event.add(document,n+"."+e.guid,function(){e.event.trigger(n,null,t,!0)}),e._data(this,n,e.guid++)),!1},teardown:function(){return this!==document&&e.event.remove(document,n+"."+e._data(this,n)),!1}}})}(p,window);var y=fs(function(){this.getArgumentNames=function(e){var t=(""+e).match(/^[\s\(]*function[^(]*\(([^)]*)\)/)[1].replace(/\/\/.*?[\r\n]|\/\*(?:.|[\r\n])*?\*\//g,"").replace(/\s+/g,"").split(",");return 1!=t.length||t[0]?t:[]},this.getArgumentsCount=function(e){return e.length},this.requiresSuperMethod=function(e){var t=e.length;if(t>0){var n=""+e,i=n.indexOf(")",9);if(i>=0)return n.lastIndexOf("$super",i)>=0}return!1}}),b=fs(function(){function e(e){return this[e]}function t(e){return this.hasOwnProperty(e)?this[e]:void 0}var n,i=function(){if(Object.defineProperty)try{var e={};Object.defineProperty(e,"sentinel",{});var t="sentinel"in e;if(t){n=function(){var e=Object.defineProperty,t=Object.create(null),n=Object.create(null);return n.configurable=!0,n.enumerable=!0,t.enumerable=!1,t.configurable=!1,function(i,a,r){t.get=function(){var t=this;if(t.hasOwnProperty(a))return t[a];var i=r.call(t);return n.value=i,e(t,a,n),i},e(i,a,t)}}();var i=function(){},a=void 0;n(i.prototype,"testValue",function(){if(void 0!==a)throw Error("Not supported");return a={}});var r,o=new i;if(void 0===a&&!o.hasOwnProperty("testValue")&&(r=o.testValue,r===a&&o.hasOwnProperty("testValue")))return r=o.testValue,r===a}}catch(s){}return!1}();this.isLazySupported=function(){return i},this.defineLazyProperties=function(e,t){for(var i in t)n(e,i,t[i])},this.addGetLazyProperty=function(n){i?n._getLazyProperty=t:n._getLazyProperty=e},this.createInitializerFunction=function(e,t){return t?function(n,i,a,r,o){var s=this;t.call(s,n,i,a,r,o);for(var l in e){var c=e[l];s[l]=c.call(s)}}:function(){var t=this;for(var n in e){var i=e[n];t[n]=i.call(t)}}}}),C=fs(function(){function e(n,a){function l(e,t,n,i,a){this._constructor(e,t,n,i,a)}var c,u=this;c=l;var d,g=u===r;if(g)d=c.prototype;else{var f=u.prototype;if(s)d=Object.create(f);else{var p=f._constructor;f._constructor=o,d=new u,f._constructor=p}c._superPrototype=f,c._super=u,c.prototype=d,d.constructor=c}return d._constructor=t,c._extendProperties=[a],c.extendPrototype=i,c.extend=e,c}function t(e,t,i,a,r){n(this.constructor),this._constructor(e,t,i,a,r)}function n(e){var t=e.prototype,i=e._superPrototype;if(i){var r=e._super;r._initialized||n(r)}var s,l=e._extendProperties;if(l)for(var c=l.length,u=0;c>u;u++){var d=l[u];"function"==typeof d&&(d=i?d(i.init,i):d()),0===u&&(s=d.lazyInitializationProperties,s&&delete d.lazyInitializationProperties),a(d,t)}var g=t.init;s&&(b.isLazySupported()?b.defineLazyProperties(t,s):(g=b.createInitializerFunction(s,g),t.init=g),b.addGetLazyProperty(t)),g||(t.init=g=o),t._constructor=g,e._initialized=!0}function i(e){var t=this;return t._extendProperties.push(e),t}function a(e,t){for(var n in e){var i=e[n];t[n]=i}}var r=this,o=function(){};this.extend=e;var s=function(){try{return Object.create(null),!0}catch(e){}return!1}()});"undefined"!=typeof global&&(global.Class=C,global.PrototypeUtils=y),function(e){function t(i){var a,r,o={};for(a in i)r=i[a],void 0!==r&&(null!==r&&"object"==typeof r?e.isArray(r)?o[a]=n(r):o[a]=t(r):o[a]=r);return o}function n(i){for(var a,r=i.length,o=Array(r),s=0;r>s;s++)a=i[s],void 0!==a&&(null!==a&&"object"==typeof a?e.isArray(a)?o[s]=n(a):o[s]=t(a):o[s]=a);return o}var i=0,a={},r=[];e.identity=function(e){return e},e.getRandom=function(e,t){return Math.floor(Math.random()*(t+1)+e)},e.parseHtmlAsJQuery=function(t){return e(e.parseHTML(t))},e.toCamelCase=function(e,t){return t=void 0!==t?t:!1,e=e.replace(/-\w/g,function(e){return e[1].toUpperCase()}),t&&(e=e.charAt(0).toUpperCase()+e.slice(1)),e},e.isRetinaDisplay=function(){if(window.matchMedia){var e=window.matchMedia("only screen and (min--moz-device-pixel-ratio: 1.3), only screen and (-o-min-device-pixel-ratio: 2.6/2), only screen and (-webkit-min-device-pixel-ratio: 1.3), only screen  and (min-device-pixel-ratio: 1.3), only screen and (min-resolution: 1.3dppx)");return e&&e.matches||window.devicePixelRatio>1}return!1},e.onVirtualClickHandled=function(e){e.preventDefault()},e.fn.onceAny=function(t,n){var i=e(this),a=e.weakID(".b");return t=e.map(e.trim(t).replace(/\s+/g," ").split(" "),function(e){return e+a}).join(" "),i.on(t,function(e){return i.off(a),n(e)}),this},e.repeatWithInterval=function(t,n,i){i=e.quickExtend({stepCallback:cs,completeCallback:cs,abortCallback:cs,finishCallback:cs},i);var a=i.stepCallback,r=i.completeCallback,o=i.abortCallback,s=i.finishCallback,l=t,c=!1,u=setInterval(function(){l--,a(l),0===l&&(clearInterval(u),r(),s(),c=!0)},n);return{abort:function(){c||(clearInterval(u),o(),s(),c=!0)}}},e.performLoop=function(e,t,n){for(var i=e;t>=i;i++)n(i,e,t)},e.tryParseJSON=function(e){try{return JSON.parse(e)}catch(t){return}},e.transformJSON=function(e,t){return t&&t(e),e},e.activationFunction=function(e){e.activate()},e.noopWithCallback=function(e){e()},e.contextIdentity=function(){return this},e.oppositeFunction=function(e){return function(){return!e.apply(this,arguments)}},e.undefinedFunction=function(e){return void 0===e},e.undefinedOrNullFunction=function(e){return void 0===e||null===e},e.returnTrue=us,e.returnFalse=ds,e.returnNull=gs,e.returnUndefined=cs,e.returnZero=function(){return 0},e.returnOne=function(){return 1},e.returnTransparent=function(){return"transparent"},e.returnZeroSize=function(){return{width:0,height:0}},e.returnEmptyBorderObject=function(){return{top:0,left:0,bottom:0,right:0}},e.returnEmptyRoundnessObject=function(){return{topLeft:0,bottomLeft:0,topRight:0,bottomRight:0}},e.returnBlackBorderObject=function(){return e.convertValueToObject("Black",["top","left","bottom","right"])},e.returnEmptyString=function(){return""},e.returnEmptyObject=function(){return{}},e.returnEmptyArray=function(){return[]},e.returnValue=function(e){return e},e.returnNotValue=function(e){return!e},e.returnFixedValue=function(e){return function(){return e}},e.defaultIdFunction=function(e){return e.id},e.defaultSetIdFunction=function(e,t){e.id=t},e.defaultIndexFunction=function(e){return e.index},e.defaultNameFunction=function(e){return e.name},e.defaultOffset=function(){return{left:0,top:0}},e.defaultSize=function(){return{width:0,height:0}},e.buildArray=function(e,t){for(var n=[],i=0;e>i;i++)n.push(t(i));return n},e.argsProxy=function(e,t){return function(n,i,a,r,o){return e.call(t,n,i,a,r,o)}},e.firstArgProxy=function(e,t){return function(n,i,a,r,o){return e(t,n,i,a,r,o)}},e.deepCloneObject=function(i){return void 0===i||null===i||"object"!=typeof i?i:e.isArray(i)?n(i):t(i)},e.getSign=function(t,n){return 0>t?-1:t>0?1:e.valueOrDefault(n,0)},e.parseFontFamilyFromStyleValue=function(e){var t=/^['"]?([^'"]+)['"]?$/i.exec(e);return t?t[1]:void 0},e.readWrite=function(e,t,n){var i,a,r=[],o=e.length;for(i=0;o>i;i++){var s=e[i];a=t(s),r.push({item:s,result:a})}for(o=r.length,i=0;o>i;i++)a=r[i],n(a.item,a.result)},e.fn.findUsedClasses=function(t){var n=e.map(t,function(e){return"."+e}).join(","),i={};return this.find(n).each(function(){for(var e=this.className.split(/\s+/),t=0;t<e.length;t++)i[e[t]]=!0}),e.grep(t,function(e){return!!i[e]})},e.fn.findUsedInlineStyles=function(t){var n={};return this.find("[style]").each(function(){var i=e(this).prop("style")[e.camelCase(t)];i&&(n[""+i]=!0)}),e.getKeys(n)},e.fn.onPartHover=function(e,t,n){this.on("mouseenter",e,t).on("mouseleave",e,n)},e.fn.quickHide=function(){return this.addClass("state-hidden")},e.fn.quickShow=function(){return this.removeClass("state-hidden")},e.fn.toggleDisplayedState=function(e){return e?this.removeClass("state-hidden").addClass("state-displayed"):this.removeClass("state-displayed").addClass("state-hidden")},e.fn.quickToggle=function(t,n){var i=this;return t=e.valueOrCalculate(t,function(){return i.hasClass("state-hidden")}),t?i.quickShow():i.quickHide(),t&&n&&n(i),i},e.fn.chooseClass=function(e,t,n){return this.toggleClass(t,e).toggleClass(n,!e)},e.fn.quickDisable=function(){return this.removeClass("state-enabled").addClass("state-disabled")},e.fn.quickEnable=function(){return this.removeClass("state-disabled").addClass("state-enabled")},e.fn.quickToggleEnabled=function(e){return e?this.quickEnable():this.quickDisable(),this},e.fn.selectInStructure=function(t){return this.is(t)?this:e(t,this)},e.fn.hasInlineStyle=function(t){return!!this.prop("style")[e.camelCase(t)]},e.fn.getInlineStyleText=function(t){if(this.hasInlineStyle(t)){var n=this[0].style.cssText,i=RegExp(t+"\\s*:\\s*([^;]*)\\s*;"),a=i.exec(n);return null===a?void 0:e.trim(a[1])}},e.fn.caret=function(){var t,n,i,a=e.browser.msie;if(a){var r=document.selection;if("textarea"!=this[0].tagName.toLowerCase()){var o=this.val();t=r.createRange().duplicate(),t.moveEnd("character",o.length),n=""==t.text?o.length:o.lastIndexOf(t.text),t=r.createRange().duplicate(),t.moveStart("character",-o.length),i=t.text.length}else{t=r.createRange();var s=t.duplicate();s.moveToElementText(this[0]),s.setEndPoint("EndToEnd",t),n=s.text.length-t.text.length,i=n+t.text.length}}else n=this[0].selectionStart,i=this[0].selectionEnd;return{start:n,end:i}},e.normalizeToRange=function(e,t,n){return Math.max(t,Math.min(n,e))},e.isBetween=function(e,t,n){return void 0===e?!1:e>=t&&n>=e},e.joinPaths=function(e,t){return e.lastIndexOf("/")===e.length-1&&(e=e.substr(0,e.length-1)),0===t.indexOf("/")&&(t=t.substr(1,e.length-1)),e+"/"+t},e.assertRange=function(e,t,n){if(t>e||e>n)throw Error("Value should be in range [{0},{1}]".format(t,n))},e.formatDate=function(t){return"{0}-{1}-{2} {3}:{4}".format(e.getFixedLengthInteger(t.getDate(),2),e.getFixedLengthInteger(t.getMonth(),2),e.getFixedLengthInteger((""+t.getFullYear()).substring(2),2),e.getFixedLengthInteger(t.getHours(),2),e.getFixedLengthInteger(t.getMinutes(),2))},e.getFixedLengthInteger=function(e,t){for(var n=""+e,i=[],a=0;a<t-n.length;a++)i.push("0");return i.join("")+n},e.wrapMethod=function(e,t){return t(e)},e.hookBeforeMethod=function(e,t){return function(){t.apply(this,arguments),e&&e.apply(this,arguments)}},e.hookAfterMethod=function(e,t){return function(){e&&e.apply(this,arguments),t.apply(this,arguments)}},e.arrayFuncToJquery=function(t){return function(){return e(t.apply(this,arguments))}},e.generateQueryString=function(t){var n=[];return e.eachEntry(t,function(e,t){void 0!==t&&n.push(e+"="+t)}),n.join("&")},e.valueOrDefaultArray=function(e,t){if(null===e||void 0===e)for(var n=0;n<t.length;n++){var i=t[n];if(null!==i&&void 0!==i)return i}return e},e.getModuloIndex=function(e,t){var n;return n=e>0?e%t:(t+e)%t},e.fieldValueOrDefault=function(t,n,i){var a=void 0;return t&&(a=t[n]),e.valueOrDefault(a,i)},e.executeIfValue=function(e,t,n){null!==e&&void 0!==e&&t(e,n)},e.valueOrCalculate=function(e,t){return null===e||void 0===e?t():e},e.isValue=function(e){return null!==e&&void 0!==e},e.NaNOrDefault=function(e,t){return isNaN(e)?t:e},e.weakID=function(t){t=e.valueOrDefault(t,"weak");var n=a[t];return void 0===n&&(n=0),a[t]=n+1,t+n},e.createWeakIdGenerator=function(){var e=-1;return{next:function(){return e++,"id"+e}}},e.getIndexClasses=function(e,t){var n=[];return 0===e?n.push("first"):n.push("not-first"),e===t?n.push("last"):n.push("not-last"),e%2===0?n.push("even"):n.push("odd"),n.join(" ")},e.fn.applyIndexesClasses=function(){var t=this.length-1;return this.each(function(n){e(this).removeClass("first not-first last not-last even odd").addClass(e.getIndexClasses(n,t))})},e.createRange=function(t,n,i){for(var a=[],r=t;n>=r;r++)a.push(r);return i?e.map(a,i):a},e.uniqueID=function(){return i++,e.now()+i},e.fn.assignElementID=function(){var t=e(this).attr("id");return t||(t=e.uniqueID(),e(this).attr("id",t)),t},e.filterKeys=function(t,n){return e.map(t,function(e){return e[n]})},e.beginInvoke=function(e){window.setTimeout(e,0)},e.beginInvokeWithTimeOut=function(t,n,i){n?t():(i=e.valueOrDefault(i,0),window.setTimeout(t,i))},e.fn.hasAncestor=function(t){return e(this).closest(t).length>0},e.fn.findAndSelf=function(e){return this.filter(e).add(this.find(e))},e.fn.onTextInputTriggered=function(e){return this.bind("input change",function(){e()}).bind("keydown paste",function(){setTimeout(function(){e()})})},e.unite=function(){for(var t=[],n=arguments.length,i=0;n>i;i++)for(var a=e(arguments[i]),r=a.length,o=0;r>o;o++)t.push(a[o]);return e(t)},e.uniteArrays=function(){for(var e=[],t=arguments.length,n=0;t>n;n++)for(var i=arguments[n],a=i.length,r=0;a>r;r++)e.push(i[r]);return e},e.quickIntersect=function(e,t){for(var n,i=[],a={},r=0;r<e.length;r++)for(var o=e[r],s=0;s<o.length;s++){var l,c=o[s];l=t?t(c):c,n=a[l],void 0===n?(n={item:c,count:1},a[l]=n):n.count++}for(var u in a)n=a[u],n.count===e.length&&i.push(n.item);return i},e.adjustFraction=function(e,t){var n=Math.pow(10,t),i=Math.pow(10,1);return Math.floor(e*(i*n)/i)/n},e.calculateMeanValue=function(e,t,n,i,a){var r=a-i,o=(e-t)/(n-t);return r*o+i},e.fn.pushToElementsCollection=function(e){return e.pushElements(this),this},e.fn.splice=[].splice,e.fn.preventBrowserBehaviour=function(t){t=e.valueOrDefault(t,us);var n=this,i={},a=!0,r=e.uniqueID();return n.bind("mousedown."+r,function(i){var r=i.target;a&&!e(r).is("html")&&!e(r).is(":input")&&t(r)&&(e.preventBrowserBehaviourCallback(i),n.bind("mousemove.preventBrowser",e.preventBrowserBehaviourCallback),e(document).one("mouseup",function(){n.unbind(".preventBrowser")}))}),e.quickExtend(i,{toggleEnable:function(e){a=e},clear:function(){n.unbind("mousedown."+r)}}),i},e.preventBrowserBehaviourCallback=function(e){e.preventDefault?e.preventDefault():e.returnValue=!1},e.sameElements=function(e,t){return void 0===e||void 0===t?e===t:e[0]===t[0]},e.addAjaxErrorHandler=function(e){void 0===e&&(e=ds),r.push(e)},e.handleAjaxError=function(e,t,n){for(var i=!1,a=0;a<r.length&&!i;a++){var o=r[a];i=o(e,t,function(){n(e)})}i||n(e)},e.fn.makeUnselectable=function(){(e.browser.msie||e.browser.opera)&&this.find(":not(:input)").andSelf().each(function(){this.unselectable="on"})},e.fn.markLastChild=function(t){return e(this).children().last().addClass(t),this},e.fn.markFirstChild=function(t){return e(this).children().first().addClass(t),this};var o={link:!0,meta:!0};e.getLocationOrigin=function(){return window.location.protocol+"//"+window.location.host},e.addHtmlCodeToTheHead=function(e){var t=[],n=document.getElementsByTagName("head")[0],i=document.createElement("div"),a=document.createElement("div");i.innerHTML=e;for(var r;r=i.firstChild;)r.tagName&&o[r.tagName.toLowerCase()]===!0?(n.appendChild(r),t.push(r)):a.appendChild(r);return t},e.isHtmlCodeToTheHeadValid=function(e){var t=document.createElement("div"),n=document.createElement("div");t.innerHTML=e.trim();for(var i;i=t.firstChild;){if(!i.tagName&&/[^\s]/.test(i.textContent)||i.tagName&&o[i.tagName.toLowerCase()]!==!0)return!1;n.appendChild(i)}return!0},e.addStyle=function(t){var n=document.createElement("style");n.type="text/css",document.getElementsByTagName("head")[0].appendChild(n);var i=document.createTextNode(t);return n.styleSheet?n.styleSheet.cssText=i.nodeValue:(n.innerHTML="",n.appendChild(i)),e(n)},e.ajaxJason=function(t,n,i,a,r,o){function s(){var s=e.ajax({type:"POST",contentType:"application/json; charset=utf-8",url:t+"/"+n,data:JSON.stringify(i),dataType:"json"});return f=e.Deferred(),s.done(function(t){e.isPlainObject(t)&&"asynchronous"==t.__protocol__&&100!==t.progress?(o(t.progress),f.notify(t.progress),l(t)):a?(t=e.isPlainObject(t)&&void 0!==t.d?t.d:t,a(t),f.resolve(t)):f.resolve(t)}).fail(function(t){var n;try{n=JSON.parse(t.responseText)}catch(i){}n||(n=R.create(N.UnknownError,t)),e.handleAjaxError(n,function(){e.ajaxJason.apply(g,u)},function(e){r(e),f.reject(e)})}),f.promise()}function l(t){setTimeout(function(){e.ajax({type:"POST",contentType:"application/json; charset=utf-8",url:"/"+t.services+"/"+t.action,data:JSON.stringify({id:t.id}),dataType:"json",success:function(e){o(e.progress),e.progress>0&&e.progress<100?(f.notify(e.progress),l(e)):100==e.progress?(f.notify(e.progress),setTimeout(function(){a(e),f.resolve(e)},1e3)):(f.reject(e.response),r(e))}})},1e3)}r=e.valueOrDefault(r,cs),a=e.valueOrDefault(a,cs),o=e.valueOrDefault(o,cs);for(var c=arguments.length,u=Array(c),d=0;c>d;d++)u[d]=arguments[d];var g=this,f={};return s()},e.ajaxJasonWithCredentials=function(t,n,i,a,r,o){function s(){var s=e.ajax({type:"POST",contentType:"application/json; charset=utf-8",url:t+"/"+n,data:JSON.stringify(i),xhrFields:{withCredentials:!0},dataType:"json"});return f=e.Deferred(),s.done(function(t){e.isPlainObject(t)&&"asynchronous"==t.__protocol__&&100!==t.progress?(o(t.progress),f.notify(t.progress),l(t)):a?(t=e.isPlainObject(t)&&void 0!==t.d?t.d:t,a(t),f.resolve(t)):f.resolve(t)}).fail(function(t){var n;try{n=JSON.parse(t.responseText)}catch(i){}n||(n=R.create(N.UnknownError,t)),e.handleAjaxError(n,function(){e.ajaxJason.apply(g,u)},function(e){r(e),f.reject(e)})}),f.promise()}function l(t){setTimeout(function(){e.ajax({type:"POST",contentType:"application/json; charset=utf-8",url:"/"+t.services+"/"+t.action,data:JSON.stringify({id:t.id}),xhrFields:{withCredentials:!0},dataType:"json",success:function(e){o(e.progress),e.progress>0&&e.progress<100?(f.notify(e.progress),l(e)):100==e.progress?(f.notify(e.progress),setTimeout(function(){a(e),f.resolve(e)},1e3)):(f.reject(e.response),r(e))}})},1e3)}r=e.valueOrDefault(r,cs),a=e.valueOrDefault(a,cs),o=e.valueOrDefault(o,cs);for(var c=arguments.length,u=Array(c),d=0;c>d;d++)u[d]=arguments[d];var g=this,f={};return s()},e.getFieldOrFunctionValue=function(t,n){return t&&n?e.isFunction(n)?n(t):t[n]:void 0},e.evaluateWhenFunction=function(t,n,i,a,r,o){return t&&e.isFunction(t)?t(n,i,a,a,r,o):t},e.use=function(){var e=arguments.length;if(e>=2)for(var t=arguments[e-1],n=0;e-1>n;n++)t(arguments[n])},e.divideNoReminder=function(e,t){var n=e/t;return n>0?Math.floor(n):Math.ceil(n)},e.isPrintableChar=function(e){return e>47&&58>e||32==e||13==e||e>64&&91>e||e>95&&112>e||e>185&&193>e||e>218&&223>e},e.whenResults=function(t){return e.when.apply(this,t)},e.formatString=function(t){var n=arguments.length;if(2===n&&e.isPlainObject(arguments[1])){var i=arguments[1];for(var a in i)t=t.replace(RegExp("{"+a+"}","g"),e.valueOrDefault(i[a],""));return t}for(var r=Array(n-1),o=1;n>o;o++)r[o-1]=arguments[o];return t.replace(/{(\d+)}/g,function(e,t){return void 0!==r[parseInt(t)]?r[t]:e})},e.generateGuid=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){var t=16*Math.random()|0,n="x"==e?t:3&t|8;return n.toString(16)})}}(p),function(e){e.fn.toggleLayerEventsCatching=function(e){this.toggleClass("catchLayerEvents",e)},e.fn.toggleLayerEventsForwarding=function(t,n){if(n=e.quickExtend({supportedEvents:["click","mousedown","mouseup"]},n),j.layerforwarding)if(j.pointerevents)this.toggleClass("forwardLayerEvents",t);else{var i=this;t?e.eachItem(n.supportedEvents,function(t,n){i.bind(n+".layerEvents",function(t){if(!e(t.target).hasAncestor(".catchLayerEvents",!0)){var n=e.getMouseOffset(t);i.addClass("testLayerForwarding");var a=document.elementFromPoint(n.left,n.top);i.removeClass("testLayerForwarding");var r=e.quickExtend({},t);r.target=a,e(a).trigger(r),t.stopPropagation()}})}):this.unbind(".layerEvents")}return this}}(p);var I=fs(function(){this.create=function(e){var t=!1;return{execute:function(){t||(t=!0,e.apply(this,arguments))}}}}),S=function(){var e=C.extend("EnumMetadata",{init:function(e){this._enumObj=e,this._metadata={},this._defaultValues=void 0,this._enumKeys=void 0,this._enumValues=void 0,this._metadataObjects={}},getEnumKeys:function(){var e=this._enumKeys;return e||(this._enumKeys=e=f.getKeys(this._enumObj)),e},getEnumKeyByValue:function(e){return this.getEnumValuesToKeys()[e]},getEnumValuesToKeys:function(){var e=this._enumValues;if(!e){e={};for(var t=this.getEnumKeys(),n=this._enumObj,i=t.length,a=0;i>a;a++){var r=t[a];e[n[r]]=r}}return e},extendDefaultValues:function(e){var t=this._defaultValues;return t||(t=this._defaultValues={}),f.quickExtend(t,e),this},extendValue:function(e,t){e=f.asArray(e);for(var n=0;n<e.length;n++){var i=e[n],a=this._metadata[i];a||(a={},this._metadata[i]=a),f.quickExtend(a,t)}return this},query:function(e){for(var t={},n=this.getEnumKeys(),i=this._enumObj,a=0;a<n.length;a++){var r=i[n[a]],o=this.getValue(r);e(o)&&(t[r]=o)}return t},map:function(e){var t=this,n=this.getEnumKeys(),i=this._enumObj;return f.mapItem(n,function(n){var a=i[n];return e(t.getValue(a),a)})},getValue:function(e){if(!this.getEnumKeyByValue(e))throw Error("The enum value '"+e+"' doesn't exist in the enum");var t=this._metadataObjects[e];if(!t){var n=this._defaultValues,i=this._metadata[e];t=n?f.quickExtend({},n,i):i,this._metadataObjects[e]=t}return t},queryAll:function(){return this.query(us)}});return e.create=function(t){return new e(t)},e}(),P=C.extend("ByRef",{init:function(e){this._value=e},setValue:function(e){this._value=e},getValue:function(){return this._value}});"undefined"!=typeof global&&(global.ByRef=P);var w=C.extend("DeferredObject",{init:function(e){this._callback=e},get:function(){var e=this._callback;if(e){var t=e();return this._value=t,delete this._callback,t}return this._value},getValue:function(){var e=this._callback;if(e){var t=e();return this._value=t,delete this._callback,t}return this._value}});w.create=function(e){return new w(e)},"undefined"!=typeof global&&(global.DeferredObject=w),function(e){function t(n,i,a){e.eachEntry(n,function(r,o){i.push(r),e.isPlainObject(o)?t(o,i,a):a(n,r,o,i),i.pop()})}e.traverseStructure=function(e,n){t(e,[],n)},e.getIndexOfElementInArray=function(t,n,i){var a;if(i=i?i:e.defaultEqualityComparer,n){a=n.length;for(var r=0;a>r;r++)if(i(n[r],t))return r}return-1},e.arraysEqual=function(t,n,i){i=e.quickExtend({valueFunction:e.identity,equalityComparer:e.referencesEqualityComparer},i);var a=i.valueFunction,r=i.equalityComparer;if(!t||!n)return t===n;if(t.length!==n.length)return!1;for(var o=0;o<t.length;o++)if(!r(a(t[o]),a(n[o])))return!1;return!0},e.reverseArray=function(t,n){n=e.valueOrDefault(n,e.identity);for(var i=[],a=t.length-1;a>=0;a--)i.push(n(t[a]));return i},e.flattenStructure=function(t,n){n=e.quickExtend({childrenGetter:function(e){return e.children}},n);var i,a,r=n.subTreeOpener,o=n.subTreeCloser,s=n.childrenGetter,l=[],c=[];for(i=t.length-1;i>=0;i--)l.push(t[i]);for(var u={},d={};l.length>0;)if(a=l.pop(),c.push(a),a!==d){var g=s(a);if(g&&g.length>0)for(void 0!==r&&c.push(u),void 0!==o&&l.push(d),i=g.length-1;i>=0;i--)l.push(g[i])}if(void 0!==r||void 0!==o)for(i=0;i<c.length;i++)a=c[i],a===u&&(c[i]=r),a===d&&(c[i]=o);return c},e.findDuplications=function(t,n){return e.grep(e.countItems(t,n),function(e){return e.count>1})},e.getInValidItems=function(t,n){var i=[];return n=n?n:us,e.each(t,function(e,t){var a=n(t);a||i.push(t)}),i},e.countItems=function(t,n){var i={};return e.each(t,function(e,t){var a=n(t),r=i[a];r?r.count++:(r={item:t,count:1,value:a},i[a]=r)}),e.getValues(i)},e.oneOfValues=function(t,n){return e.inArray(t,n)>=0},e.removeSortedArrayDuplicates=function(e){for(var t=[],n=0;n<e.length;n++){var i=e[n],a=e[n+1];i!==a&&t.push(i)}return t},e.binarySearch=function(e,t){for(var n,i,a=0,r=e.length-1;r>=a;)if(n=(a+r)/2|0,i=e[n],t>i)a=n+1;else{if(!(i>t))return n;r=n-1}return-1},e.binarySearchGreater=function(e,t){for(var n=0,i=e.length;n!==i;){var a=Math.floor((n+i)/2);e[a]<=t?n=a+1:i=a}return n>=e.length?-1:n},e.binarySearchLower=function(e,t){for(var n=0,i=e.length;n!==i;){var a=Math.ceil((n+i)/2);e[a]>=t?i=a-1:n=a}return 0>n?-1:n},e.binaryRangeSearch=function(t,n,i){var a=e.binarySearchGreater(t,n-1);if(-1!==a){var r=e.binarySearchLower(t,i+1);return-1!==r?t.slice(a,r+1):[]}return[]},e.binarySearchClosest=function(t,n,i){void 0===i&&(i=!1);var a=t[e.binarySearchGreater(t,n-1)],r=t[e.binarySearchLower(t,n+1)];if(void 0===a)return r;if(void 0===r)return a;var o=Math.abs(n-r),s=Math.abs(n-a);return o===s?i?r:a:s>o?r:a},e.groupBy=function(t,n){var i={};return e.eachItem(t,function(e,t){var a=n(t),r=i[a];void 0===r&&(r=[],i[a]=r),r.push(t)}),i},e.max=function(t,n,i){var a=-1,r=void 0;return n=e.valueOrDefault(n,e.identity),e.eachItem(t,function(e,t){var o,s=n(t,e);o=void 0===r?!0:i?i(s,a)>0:s>a,o&&(a=s,r=t)}),{value:a,item:r}},e.min=function(t,n,i){var a=-1,r=void 0;return n=e.valueOrDefault(n,e.identity),e.eachItem(t,function(e,t){var o,s=n(t,e);o=void 0===r?!0:i?i(s,a)<0:a>s,o&&(a=s,r=t)}),{value:a,item:r}},e.extractFieldValue=function(t,n){return e.map(t,function(e){return e[n]})},e.minItem=function(t,n,i){return e.min(t,n,i).item},e.maxItem=function(t,n,i){return e.max(t,n,i).item},e.minValue=function(t,n,i){return e.min(t,n,i).value},e.maxValue=function(t,n,i){return e.max(t,n,i).value},e.fn.min=function(t){var n=-1,i=void 0;return e(this).each(function(){var a=t(e(this));(!i||n>a)&&(n=a,i=e(this))}),{value:n,element:i}},e.fn.max=function(t){var n=-1,i=void 0;return e(this).each(function(){var a=t.call(e(this),e(this));(!i||a>n)&&(n=a,i=e(this))}),{value:n,element:i}},e.fn.all=function(t){var n=!0;return e(this).each(function(){return t.call(e(this))?void 0:(n=!1,!1)}),n},e.allTheSame=function(t,n){if(t.length<2)return!0;var i=n(t[0]);return e.all(t,function(e){return n(e)===i})},e.getIfAllTheSame=function(t,n){if(0!==t.length){var i=n(t[0]),a=e.all(t,function(e){return n(e)===i});return a?i:!1}},e.findFirst=function(t,n){n=e.valueOrDefault(n,us);var i=void 0;return e.each(t,function(e,t){return n.call(t,e,t)?(i=t,
!1):void 0}),i},e.mapFirstEntry=function(t,n){var i=void 0;return e.eachEntry(t,function(e,t){var a=n.call(t,t,e);return void 0!=a?(i=a,!1):void 0}),i},e.all=function(t,n){var i=!0;return e.eachItem(t,function(e,t){return n.call(t,t)?void 0:(i=!1,!1)}),i},e.inspectCollection=function(t,n,i){switch(n){case We.All:return e.all(t,i);case We.Any:return e.any(t,i);case We.None:return e.all(t,function(e){return!i(e)});case We.AnyNot:return e.any(t,function(e){return!i(e)});default:throw Error("Unsupported collection constraint.")}},e.common=function(e,t){for(var n=void 0,i=0;i<e.length;i++){var a=t(e[i]);if(void 0!==n&&a!==n)return;n=a}return n},e.fn.any=function(t){var n=!1;return e(this).each(function(){return t.call(e(this))?(n=!0,!1):void 0}),n},e.any=function(e,t,n){void 0===n&&(n=0);for(var i=n;i<e.length;i++){var a=e[i];if(t.call(a,a))return!0}return!1},e.generateRange=function(e,t){for(var n=[],i=e;t>=i;i++)n.push(i);return n},e.sum=function(t,n,i){n=e.valueOrDefault(n,e.identity);for(var a=e.valueOrDefault(i,0),r=0;r<t.length;r++){var o=t[r];a+=n.call(o,o)}return a},e.fn.sum=function(t,n){return e.sum(this,t,n)}}(p),function(){if(String.prototype.format=function(){var e=arguments.length;if(1===e&&f.isPlainObject(arguments[0])){var t=this,n=arguments[0];for(var i in n)t=t.replace(RegExp("{"+i+"}","g"),f.valueOrDefault(n[i],""));return t}for(var a=Array(e),r=0;e>r;r++)a[r]=arguments[r];return this.replace(/{(\d+)}/g,function(e,t){return void 0!==a[t]?a[t]:e})},!String.prototype.trim){var e=/^\s+|\s+$/g;String.prototype.trim=function(){return this.replace(e,"")}}String.prototype.endsWith||(String.prototype.endsWith=function(e,t){return(void 0===t||t>this.length)&&(t=this.length),this.substring(t-e.length,t)===e})}(),function(e){e.isEmptyOrWhitespace=function(t){return t?""===e.trim(t):!0},e.removeTags=function(t,n){return n=e.asArray(n),0===n.length?t:t.replace(RegExp("<[//]{0,1}("+n.join("|")+")[^><]*>","gi"),"")},e.toTitleCase=function(e){return e.replace(/\w\S*/g,function(e){return e.charAt(0).toUpperCase()+e.substr(1).toLowerCase()})},e.capitalizeFirstLetter=function(e){return e.replace(/^./,function(e){return e.toUpperCase()})},e.repeatStr=function(e,t){if(1>t)return"";for(var n="";t>0;)1&t&&(n+=e),t>>=1,e+=e;return n},e.getPrefix=function(e,t){var n=e.indexOf(t);return 0>n?e:e.substring(0,n)},e.substringFrom=function(e,t){var n=e.indexOf(t);return 0>n?"":e.substring(n)},e.substringAfter=function(e,t){var n=e.indexOf(t);return 0>n?"":e.substring(n+t.length)},e.substringAfterLast=function(e,t){var n=e.lastIndexOf(t);return 0>n?"":e.substring(n+t.length)},e.dictionaryToString=function(t,n,i){i=e.valueOrDefault(i," ");var a=new E(i);for(var r in t){var o=t[r];a.append(n,r,o)}return""+a},e.fn.formatHtml=function(t){for(var n=0;n<this.length;n++){var i=e(this[n]);i.html(i.html().format(t))}return this},e.shortenString=function(t,n,i){i=e.extend({ellipsis:"",trimSpacesWhenShortened:!0},i);var a=i.ellipsis,r=i.trimSpacesWhenShortened,o=t.length;if(n>=o)return t;n-=a.length;var s=t.substring(0,n);return/\s/.test(t[n])||(s=s.replace(/(\s)\S+$/,"$1")),r&&(s=s.replace(/\s+$/,"")),s+a},e.passwordStrength=function(e){var t=0;if(!e)return t;for(var n={},i=0;i<e.length;i++)n[e[i]]=(n[e[i]]||0)+1,t+=5/n[e[i]];var a={digits:/\d/.test(e),lower:/[a-z]/.test(e),upper:/[A-Z]/.test(e),nonWords:/\W/.test(e)},r=0;for(var o in a)r+=1==a[o]?1:0;return t+=10*(r-1),parseInt(t)}}(p);var E=C.extend("StringBuilder",{init:function(e,t){this._indentation=0,this._strArr=[],this._indentationString=t?t.indentationString:!1,this._separator=void 0!==e?e:""},conditionalAppend:function(e,t,n){return e?this.append(t):n&&this.append(n),this},append:function(e){var t=this._strArr;if(void 0!==e){var n=arguments.length;if(n>1){n--;for(var i=Array(n),a=0;n>a;a++)i[a]=arguments[a+1];t.push(e.format.apply(e,i))}else t.push(e)}return this},appendLine:function(){var e=this,t=e._indentation;return t&&e.append(f.repeatStr(e._indentationString,t)),e.append.apply(e,arguments).append("\n")},appendTo:function(e){e.append(this)},toString:function(){return this._strArr.join(this._separator)},increaseIndentation:function(){return this._indentationString&&this._indentation++,this},decreaseIndentation:function(){return this._indentationString&&(this._indentation=Math.max(0,this._indentation-1)),this}});"undefined"!=typeof global&&(global.StringBuilder=E);var T=function(){return C.extend("SimpleEventBinding",{init:function(e,t){this.bindingName=e,this.event=t},unbind:function(){this.event.unbind(this.bindingName)},addToCollection:function(e){e.add(this)}})}(),x=function(){function e(e,n,i,a){return n=""+n,t(e,n,i,a),new T(n,e)}function t(e,t,n,i){var a=e._callbacks;if(void 0===a)e._callbacks=a={},e._counter=1;else if(i)e._counter++;else{var r=e._counter;0!==r&&void 0!==a[t]||(e._counter=r+1)}a[t]=n}function n(e,n,i,a,r){var s=e._eventsMap[n];void 0===s&&(s=o.create(),e._eventsMap[n]=s),t(s,a,i,r),e._callbacksMap[a]=s}var i=1,a=1,r=!1,o={},s=C.extend("SimpleEventController",{init:function(){this.id=i++},_callbacks:void 0,_counter:0,bind:function(t,n){var i=!1;return void 0===n&&(n=a++,i=!0),e(this,n,t,i)},bindAndExecute:function(e,t){var n=this.bind(e,t);return e(),n},one:function(e,t){var n=this.bind(function(t,i,a,r,o){n.unbind(),e.call(this,t,i,a,r,o)},t);return n},bindUntil:function(e,t){var n=this.bind(t);return o.one(e,function(){n.unbind()}),n},namedBind:function(t,n){return e(this,t,n,!1)},createEventListener:function(e,t){return o.createEventListener(this,e,t)},createPostponedEventListener:function(e,t){return o.createPostponedEventListener(this,e,t)},hasNameBinding:function(e){var t=this._callbacks;return!!t&&!!t[e]},hasBindings:function(){return this._counter>0},fire:function(e,t,n,i,a){if(0!==this._counter){var o,s=this._callbacks;o=r?f.quickExtend({},s):s;var l=this;f.eachEntry(o,function(o,c){if(!r||s[o]){var u=c.call(e,t,n,i,a);u===!0&&l.unbind(o)}})}},fireNew:function(e,t,n,i,a){if(0!==this._counter){var o,s=this._callbacks;o=r?f.quickExtend({},s):s;var l=this;f.eachEntry(o,function(o,c){if(!r||s[o]){var u=c(e,t,n,i,a);u===!0&&l.unbind(o)}})}},unbind:function(e){if(void 0!==e)if("object"==typeof e)e.unbind();else{var t=this._callbacks;if(t){var n=t[e];n&&(delete t[e],this._counter--)}}}});r=function(){var e,t=new s,n=0,i=function(){if(n++,e.unbind(),n>1)throw Error();e=t.bind(i)};e=t.bind(i);try{return t.fireNew(),!1}catch(a){return!0}}(),o.create=function(){return new s};var l=C.extend("SimpleNamedEvents",{init:function(){this._eventsMap={},this._callbacksMap={}},fire:function(e,t,n,i,a){var r=this._eventsMap[e];void 0!==r&&r.fire(t,n,i,a)},fireNew:function(e,t,n,i,a){var r=this._eventsMap[e];void 0!==r&&r.fireNew(t,n,i,a)},bind:function(e,t,i){var r=!1;return void 0===i&&(i=""+a++,r=!0),n(this,e,t,i,r),new T(i,this)},one:function(e,t){var n=this.bind(e,function(e,i,a,r,o){n.unbind(),t.call(this,e,i,a,r,o)})},unbind:function(e){e&&e.bindingName&&(e=e.bindingName);var t=this._callbacksMap[e];void 0!==t&&(t.unbind(e),delete this._callbacksMap[e])},bindAndExecute:function(e,t,n){var i=this.bind(e,t,n);return t(),i},createEventListener:function(e,t,n){e=f.asArray(e);var i=this,a=f.mapItem(e,function(e){return{name:e,event:i}});return o.createEventListener(a,t,n)}});o.createNamedEvents=function(){return new l};var c=C.extend("SimpleEventListenersGroup",{init:function(){this._eventListeners=[]},add:function(e){return this._eventListeners.push(e),this},clear:function(){return this.deactivateAll(),this._eventListeners=[],this},activateAll:function(){for(var e=this._eventListeners,t=0;t<e.length;t++)e[t].activate()},activateAndExecuteAll:function(){for(var e=this._eventListeners,t=0;t<e.length;t++)e[t].activateAndExecute();return this},deactivateAll:function(){for(var e=this._eventListeners,t=0;t<e.length;t++)e[t].deactivate();return this},disposeAll:function(){for(var e=this._eventListeners,t=0;t<e.length;t++)e[t].dispose();return this}});o.createEventListenersGroup=function(){return new c};var u=c.extend("SimpleEventPostponedListenersGroup",{postponeAll:function(){for(var e=this._eventListeners,t=0;t<e.length;t++)e[t].postponeEvents()},unPostponeAll:function(){for(var e=this._eventListeners,t=0;t<e.length;t++)e[t].unPostponeEvents()}});o.createPostponedEventListenersGroup=function(){return new u};var d=C.extend("SimpleEventBindingUtil",{init:function(e,t){this._eventSelectors=f.asArray(e),this._isActive=!1,this._callback=t},setEventSource:function(e,t){return this.removeCurrentSource(),e&&(this._currentEventSource=e,this._currentEventListener=o.createEventListener(f.map(this._eventSelectors,function(t){return f.isFunction(t)?t(e):e[t]}),this._callback),this._isActive&&(this._currentEventListener.activate(),t&&this._callback())),this},getEventSource:function(){return this._currentEventSource},removeCurrentSource:function(){this._currentEventListener&&this._currentEventListener.deactivate(),delete this._currentEventListener,delete this._currentEventSource},activate:function(){this._isActive=!0,this._currentEventListener&&this._currentEventListener.activate()},activateAndExecute:function(){this._isActive=!0,this._currentEventListener&&(this._currentEventListener.activate(),this._callback())},deactivate:function(){this._isActive=!1,this._currentEventListener&&this._currentEventListener.deactivate()}});o.createEventBinding=function(e,t){return new d(e,t)};var g=C.extend("SimpleEventListener",{init:function(e,t,n){n=f.quickExtend({activationCallback:cs,deactivationCallback:cs},n),this._options=n,this._callback=t,this._simpleEvents=f.asArray(e)},_isDisposed:!1,_bindings:void 0,activate:function(){if(this._isDisposed)throw Error("Trying activate a disposed event listener");if(!this._bindings){this._options.activationCallback();for(var e=this._simpleEvents,i=this._bindings=[],r=this._callback,o=0;o<e.length;o++){var l=e[o],c=""+a++;l instanceof s?t(l,c,r,!0):n(l.event,l.name,r,c,!0),i.push(c)}}return this},activateAndExecuteNew:function(){return this._bindings||this.activate(),this._callback(),this},activateAndExecute:function(){return this._bindings||(this.activate(),this._callback()),this},dispose:function(){this.deactivate(),this._isDisposed=!0},deactivate:function(){var e=this._bindings;if(e){for(var t=this._simpleEvents,n=0;n<t.length;n++){var i=t[n],a=e[n];i instanceof s?i.unbind(a):i.event.unbind(a)}delete this._bindings,this._options.deactivationCallback()}},toggleActivation:function(e,t){t=f.valueOrDefault(t,!1),e?t?this.activateAndExecute():this.activate():this.deactivate()},addToGroup:function(e){return e.add(this),this},pushTo:function(e){return e.push(this),this}});o.createEventListener=function(e,t,n){return new g(e,t,n)};var p=g.extend("SimplePostponedEventListener",function(e){return{init:function(t,n,i){var a=this;e.call(a,t,function(){a._isPostponed?a._firedWhenDeactivated=!0:n()},i),a._actualCallback=n,a._firedWhenDeactivated=!1,a._isPostponed=!1},postponeEvents:function(){this._isPostponed=!0},unPostponeEvents:function(){this._isPostponed=!1,this._firedWhenDeactivated&&(this._actualCallback(),this._firedWhenDeactivated=!1)}}});o.createPostponedEventListener=function(e,t,n){return new p(e,t,n)};var h=C.extend("SimpleBindingsCollection",{init:function(){this._bindings=[]},add:function(e){this._bindings.push(e)},unbindAll:function(){for(var e=this._bindings,t=0;t<e.length;t++)e[t].unbind();this._bindings=[]}});return o.createBindingsCollection=function(){return new h},o.bind=function(e,t,n){e=f.asArray(e);for(var i=[],a=0;a<e.length;a++){var r,o=e[a];if(o instanceof s)r=o.bind(t,n);else{var l=o.event,c=o.name;if(!l||!c)throw Error("Bad event selector.");r=l.bind(c,t,n)}i.push({bindingID:r,eventSelector:o})}return i},o.bindAndExecute=function(e,t,n){var i=o.bind(e,t,n);return t(),i},o.unbind=function(e){if(e)for(var t=0;t<e.length;t++){var n=e[t],i=n.bindingID,a=n.eventSelector;a.unbind(i)}},o.one=function(e,t){var n=o.bind(e,function(e,i,a,r,s){o.unbind(n),t.call(this,e,i,a,r,s)});return n},o.fireLazyEvent=function(e,t,n,i,a){var r=e._getLazyProperty(t);return r&&r.fireNew(n,i,a),r},o}(),k=function(){function e(e,t){return e._cloned&&(t=f.quickExtend({},t),e._map=t,e._cloned=!1),t}function t(e,t){f.eachEntry(e,function(e,i){return t(e,i===n?void 0:i)})}var n={},i=C.extend("Dictionary",{init:function(e,t,n,i){i=f.quickExtend({},i),this._map=f.valueOrDefault(e,{}),this._counter=f.valueOrDefault(t,0),this._cloned=f.valueOrDefault(n,!1),this._valueChangeCallback=i.valueChangeCallback},getField:function(e){var t=this._map[e];return t===n?void 0:t},getFieldOrInit:function(e,t){var i=this._map,a=i[e];return void 0===a?(a=t,void 0===a&&(a=n),this._counter++,i[e]=a,t):a===n?void 0:a},hasField:function(e){return void 0!==this._map[e]},isEmpty:function(){return 0===this._counter},count:function(){return this._counter},each:function(e){t(this._map,e)},getEntries:function(){var e=[];return t(this._map,function(t,n){e.push({key:t,value:n})}),e},getMap:function(){var e={};return t(this._map,function(t,n){e[t]=n}),e},getValues:function(){var e=[];return t(this._map,function(t,n){e.push(n)}),e},getKeys:function(){return f.getKeys(this._map)},setFields:function(t){var i=this._map,a=0,r=this,o=this._valueChangeCallback;f.eachEntry(t,function(t,s){void 0===s&&(s=n);var l=i[t];void 0===l&&a++,i=e(r,i),i[t]=s,o&&o(t,s,l)}),this._counter+=a},setField:function(t,i){void 0===i&&(i=n);var a=this._map,r=a[t];void 0===r?this._counter++:r=r===n?void 0:r,a=e(this,a),a[t]=i;var o=this._valueChangeCallback;return o&&o(t,i,r),r},setAndReturnFieldIfAbsent:function(e,t){var n=this._setFieldIfAbsent(e,t);return void 0===n?t:n},_setFieldIfAbsent:function(t,i){var a=this._map,r=a[t];if(void 0===r){void 0===i&&(i=n),this._counter++,a=e(this,a),a[t]=i;var o=this._valueChangeCallback;o&&o(t,i,void 0)}return r},setFieldIfAbsent:function(e,t){var i=this._setFieldIfAbsent(e,t);return i===n?void 0:i},setFieldIfPresent:function(t,i){var a=this._map,r=a[t];if(void 0!==r){void 0===i&&(i=n),a=e(this,a),a[t]=i;var o=this._valueChangeCallback;o&&o(t,i,void 0)}return r===n?void 0:r},removeField:function(t){var i=this._map,a=i[t];if(void 0!==a){i=e(this,i),delete i[t],this._counter--;var r=this._valueChangeCallback;return r&&r(t,void 0,a),a===n?void 0:a}},clear:function(){var e,t=this._valueChangeCallback;t&&(e=this._map),this._cloned=!1,this._map={},this._counter=0,t&&f.eachEntry(e,function(e,n){return t(e,void 0,n)})},clone:function(){return this._cloned=!0,new i(this._map,this._counter,!0)}});return i.create=function(e){var t=new i;return void 0!==e&&t.setFields(e),t},i.Undefined=n,i}(),D=function(){function e(e,n,i,a){i=i===t?void 0:i,a=a===t?void 0:a,e._comparerFunction(i,a)||(e.valueChangedEvent.fireNew(n,i,a),e.namedValueChangedEvent.fireNew(n,i,a))}var t=k.Undefined,n=k.extend("ObservableDictionary",function(t){return{init:function(n){n=f.quickExtend({comparerFunction:f.referencesEqualityComparer},n),t.call(this,{},0,!1,{valueChangeCallback:f.firstArgProxy(e,this)}),this._comparerFunction=n.comparerFunction,this.valueChangedEvent=x.create(),this.namedValueChangedEvent=x.createNamedEvents()},bind:function(e){return this.valueChangedEvent.bind(e)},bindAndExecute:function(e){return this.each(function(t,n){e(t,n)}),this.bind(e)},nameBind:function(e,t){return this.namedValueChangedEvent.bind(e,t)},createEventListener:function(e,t){return this.valueChangedEvent.createEventListener(e,t)},createNamedEventListener:function(e,t,n){return this.namedValueChangedEvent.createEventListener(e,t,n)}}});return n.create=function(e,t){var i=new n(e);return void 0!==t&&i.setFields(t),i},n}(),F={AllTrue:1,AllFalse:2,SomeTrue:3,SomeFalse:4,AllTrueNonEmpty:5,AllFalseNonEmpty:6,SomeTrueNonEmpty:7,SomeFalseNonEmpty:8},A={ConditionalPositive:1,ConditionalNegative:2},B=C.extend("AbstractObservableFlag",{init:function(e,t){var n=f.weakID(),i=e+n;this.options=t,this.id=n,this.name=i},lazyInitializationProperties:{valueChangedEvent:x.create},createValueListener:function(e){return this.valueChangedEvent.createEventListener(e)},unbindElementState:function(e){var t=this,n=e.data("boundFlags");if(n){var i=n[t.id];void 0!==i&&(i(),delete n[t.id])}},bindElementState:function(e,t){var n=this;t=f.quickExtend({stateToggledValue:n._defaultStateToggledValue(),stateType:vt.Enabling,stateChangeCallback:cs,withBinding:f.activationFunction},t);var i=t.stateChangeCallback,a=e.data("boundFlags");void 0===a&&(a={},e.data("boundFlags",a));var r=n.valueChangedEvent.bindAndExecute(function(){var a=n.isValue(t.stateToggledValue),r=i(a,n.name);if(r!==!1)if(t.className)e.toggleClass(t.className,a);else switch(t.stateType){case vt.Displaying:e.addDisplayingStates().toggleDisplayed(a,n.name);break;case vt.Enabling:e.addDisablingStates().toggleEnable(a,n.name);break;case vt.Visibility:e.addVisibilityStates().toggleVisibility(a,n.name)}});a[n.id]=function(){switch(n.valueChangedEvent.unbind(r),t.stateType){case vt.Displaying:e.addDisplayingStates().toggleDisplayed(!0,n.name);break;case vt.Enabling:e.addDisablingStates().toggleEnable(!0,n.name);break;case vt.Visibility:e.addVisibilityStates().toggleVisibility(!0,n.name)}}},bindToggleButton:function(e,t){function n(){var n=i.isValue(t.stateToggledValue);a=!0,e.toggleToggled(n),a=!1}t=f.quickExtend({valueWhenToggled:!0},t);var i=this,a=!1;e.toggled(function(){a||(t.valueSettingFunction?t.valueSettingFunction.call(i,e.isToggled(),t.reason):i.setValue(e.isToggled()?t.valueWhenToggled:!t.valueWhenToggled,t.reason))}),i.valueChangedEvent.bindAndExecute(n)}}),V=B.extend("BasicObservableFlag",function(e){return{init:function(t,n){n=f.quickExtend({beforeValueChangeCallback:cs,valueChangeCallback:cs},n),e.call(this,"Flag",n),this._currentValue=t,this._beforeValueChangeCallback=n.beforeValueChangeCallback,this._valueChangeCallback=n.valueChangeCallback},getValue:function(){return this._currentValue},setValue:function(e){this._currentValue!==e&&(this._currentValue=e,this.notifyValueChanged(e))},toggle:function(e){void 0===e?this.setValue(!this.getValue()):this.setValue(e)},notifyValueChanged:function(e,t){var n=this;n._beforeValueChangeCallback(e,t),x.fireLazyEvent(n,"valueChangedEvent",e,t),n._valueChangeCallback(e,t)},createValueListener:function(e){return x.createEventListener(this.valueChangedEvent,e)},setTrue:function(){this.setValue(!0)},set:function(){this.setValue(!0)},setFalse:function(){this.setValue(!1)},reset:function(){this.setValue(!1)},isTrue:function(){return this.getValue()===!0},isFalse:function(){return!this.isTrue()},isValue:function(e){return this.getValue()===e},bindToFlag:function(e,t){t=f.quickExtend({when:!0,set:!0},t);var n=this;return e.valueChangedEvent.bindAndExecute(function(){n.setValue(e.getValue()===t.when?t.set:!t.set,e.id)}),n},bindToFlagsObserver:function(e,t){t=f.quickExtend({when:mt.AllTrue,set:!0},t);var n=this;e.valueChangedEvent.bindAndExecute(function(){n.setValue(e.isValue(t.when)?t.set:!t.set,e.id)})},once:function(e,t,n){return this.getValue()===e?(t(),{unbind:cs}):this.valueChangedEvent.one(t,n)},onceTrue:function(e,t){return this.once(!0,e,t)},onceFalse:function(e,t){return this.once(!1,e,t)},_defaultStateToggledValue:us}}),L=V.extend("ConditionalObservableFlag",function(e){return{init:function(t,n){e.call(this,!!t,n),this._isConditionalPositive=t},lazyInitializationProperties:{_conditions:k.create},resetConditions:function(e,t){this._conditions.clear();var n=this._currentValue!==this._isConditionalPositive;this._currentValue=this._isConditionalPositive,e&&n&&(t=f.valueOrDefault(t,"Reset"),this.notifyValueChanged(this._isConditionalPositive,t))},getConditionalFlagType:function(){return this._isConditionalPositive?A.ConditionalPositive:A.ConditionalNegative},setValue:function(e,t){var n=this,i=n._conditions;t=f.valueOrDefault(t,"Default");var a=n._isConditionalPositive;e?a?i.removeField(t):i.setField(t,!0):a?i.setField(t,!0):i.removeField(t);var r;r=i.isEmpty()?a:!a,n._currentValue!==r&&(n._currentValue=r,n.notifyValueChanged(r,t))},setTrue:function(e){this.setValue(!0,e)},set:function(e){this.setValue(!0,e)},setFalse:function(e){this.setValue(!1,e)},reset:function(e){this.setValue(!1,e)}}}),M=B.extend("FlagsObserver",function(e){function t(e){var t=e.notSetFlags.isEmpty(),n=e.setFlags.isEmpty();e.allSet===t&&e.allNotSet===n||(e.allNotSet=n,e.allSet=t,x.fireLazyEvent(e,"valueChangedEvent"),e._stateChangeCallback.call(e))}return{init:function(t){t=f.quickExtend({stateChangeCallback:cs},t);var n=t.stateChangeCallback;e.call(this,"FlagsObs",t),this.observedFlagsInfo=[],this.setFlags=k.create(),this.notSetFlags=k.create(),this.allSet=void 0,this.allNotSet=void 0,this._stateChangeCallback=n,void 0!==t.observedFlags&&this.setObservedFlags(t.observedFlags)},setObservedFlags:function(e,t){for(var n=this,i=0;i<n.observedFlagsInfo.length;i++){var a=n.observedFlagsInfo[i],r=a.observableFlag,o=a.bindingID;r.valueChangedEvent.unbind(o)}n.observedFlagsInfo=[],n.setFlags.clear(),n.notSetFlags.clear(),n.addObservedFlags(e,t)},addObservedFlags:function(e,n){n=f.quickExtend({value:!0},n);var i=n.value;e=f.asArray(e);var a=this,r=a.setFlags,o=a.notSetFlags;f.eachItem(e,function(e,n){n.isValue(i)?r.setField(n.id,!0):o.setField(n.id,!0),a.observedFlagsInfo.push({observableFlag:n,bindingID:n.valueChangedEvent.bind(function(e){e===i?(o.removeField(n.id),r.setField(n.id,!0)):(r.removeField(n.id),o.setField(n.id,!0)),t(a)})})}),t(a)},allTrue:function(){return this.allSet},allFalse:function(){return this.allNotSet},someTrue:function(){return!this.allNotSet},someFalse:function(){return!this.allSet},someOfValue:function(e){return e?this.someTrue():this.someFalse()},allOfValue:function(e){return e?this.allTrue():this.allFalse()},hasSetFlags:function(){return!this.allNotSet},isValue:function(e){switch(e){case F.AllTrue:return this.allTrue();case F.AllFalse:return this.allFalse();case F.SomeFalse:return this.someFalse();case F.SomeTrue:return this.someTrue();case F.AllTrueNonEmpty:return this.allTrue()&&this.observedFlagsInfo.length>0;case F.AllFalseNonEmpty:return this.allFalse()&&this.observedFlagsInfo.length>0;case F.SomeFalseNonEmpty:return this.someFalse()&&this.observedFlagsInfo.length>0;case F.SomeTrueNonEmpty:return this.someTrue()&&this.observedFlagsInfo.length>0}},setValue:function(e,t){for(var n=this.observedFlagsInfo,i=0;i<n.length;i++)n[i].observableFlag.setValue(e,t)},_defaultStateToggledValue:function(){return F.AllTrue}}}),O={createConditionalPositive:function(e){return new L(!0,e)},createConditionalNegative:function(e){return new L(!1,e)},createConditional:function(e,t){switch(e){case A.ConditionalNegative:return O.createConditionalNegative(t);case A.ConditionalPositive:return O.createConditionalPositive(t);default:return void ee.warn("Unknown conditional flag was requested for creation.")}},create:function(e,t){return new V(e,t)},createFalse:function(e){return new V(!1,e)},createTrue:function(e){return new V(!0,e)},createFlagsObserver:function(e){return new M(e)}};!function(e){e.fn.bindStateToFlag=function(t,n){return t.bindElementState(e(this),n),this},e.fn.unbindStateFromFlag=function(t){return t.unbindElementState(e(this)),this},e.fn.bindButtonToFlag=function(t,n){return t.bindToggleButton(e(this),n),this},e.fn.bindClassToFlag=function(t,n){n=e.quickExtend({when:!0,valueChangeCallback:cs},n);var i=n.className,a=n.alternativeClass,r=n.when,o=n.partsSelector,s=n.valueChangeCallback,l=e(this),c=Ie.createContextClass({getTarget:function(){if(o){var t=e([]);return t.pushElements(l),t.pushElements(e(o,l)),t}return l}});return t.valueChangedEvent.bindAndExecute(function(){t.getValue()===r?(c.setValue(i),s(i)):(c.setValue(a),s(a))})}}(p),function(e){e.defaultIdComparer=function(e,t){return void 0!==e&&void 0!==t&&e.id==t.id},e.createArrayEqualityComparer=function(e){return function(t,n){if(void 0===t||void 0===n)return t===n;if(null===t||null===n)return t===n;if(t.length!==n.length)return!1;for(var i=0;i<t.length;i++)if(!e(t[i],n[i]))return!1;return!0}},e.diffObjectKeys=function(t,n,i){if(t===n)return{};if(!t)return i&&i.setValue(!0),e.quickExtend({},n);if(!n)return i&&i.setValue(!0),e.quickExtend({},t);var a,r={},o=!1,s={};for(a in t)n.hasOwnProperty(a)&&e.defaultEqualityComparer(t[a],n[a])||(r[a]=n[a],o=!0),s[a]=!0;for(a in n)s[a]||t.hasOwnProperty(a)&&e.defaultEqualityComparer(t[a],n[a])||(r[a]=n[a],o=!0);return o&&i&&i.setValue(!0),r},e.defaultEqualityComparer=function(t,n){var i=typeof t,a=typeof n;if(i!==a)return!1;if(e.isArray(t)&&e.isArray(n)){if(t.length!==n.length)return!1;for(var r=0;r<t.length;r++)if(!e.defaultEqualityComparer(t[r],n[r]))return!1;return!0}if("object"===i&&e.isPlainObject(t)){var o=e.getKeys(t),s=e.getKeys(n);if(o.length!==s.length)return!1;for(var r=0;r<o.length;r++){var l=o[r];if(!e.defaultEqualityComparer(t[l],n[l]))return!1}return!0}return t===n},e.createFieldsEqualityComparer=function(e,t){return function(n,i){if(void 0===n||void 0===i)return n===i;if(null===n||null===i)return n===i;for(var a=0;a<e.length;a++){var r=e[a];if(t&&t[r]&&!t[r](n[r],i[r]))return!1;if(n[r]!==i[r])return!1}return!0}},e.referencesEqualityComparer=function(e,t){return e===t},e.nullLastComparer=function(e,t){return null===e||void 0===e?1:null===t||void 0===t?-1:e-t},e.nullFirstComparer=function(e,t){return null===e||void 0===e?-1:null===t||void 0===t?1:e-t},e.alphaNumericCompare=function(e,t){for(var n=e.split(/(\d+)/),i=t.split(/(\d+)/),a=Math.min(n.length,i.length),r=0;a>r;r++)if(n[r]!==i[r]){var o=+n[r],s=+i[r];return o==n[r]&&s==i[r]?o-s:n[r]>i[r]?1:-1}return n.length-i.length},e.createArraySetsEqualityComparer=function(t){return t=e.valueOrDefault(t,e.identity),function(e,n){if(e&&n){if(e.length!==n.length)return!1;var i,a={};for(i=0;i<e.length;i++)a[t(e[i])]=!0;for(i=0;i<n.length;i++)if(!a[t(n[i])])return!1;return!0}return e===n}},e.defaultArrayEqualityComparer=e.createArrayEqualityComparer(e.referencesEqualityComparer),e.defaultArraySetsEqualityComparer=e.createArraySetsEqualityComparer(e.identity)}(p);var z={SizeEqualityComparer:f.createFieldsEqualityComparer(["width","height"])},_=function(){var e=C.extend("ObservableObject",{init:function(e,t){t=f.quickExtend({valueConverter:f.identity,equalityComparer:f.defaultEqualityComparer,valueChangeCallback:cs},t),this._currentValue=e,this._tag=t.tag,this._equalityComparer=t.equalityComparer,this._valueChangeCallback=t.valueChangeCallback,this._valueConverter=t.valueConverter},lazyInitializationProperties:{valueChangedEvent:x.create},adjustValue:function(e,t){this.setValue(e(this._currentValue),t)},getValue:function(){return this._currentValue},setValue:function(e,t){var n=this,i=n._currentValue;return e=n._valueConverter(e),n._equalityComparer(i,e)?!1:(n._currentValue=e,x.fireLazyEvent(n,"valueChangedEvent",e,i,t),n._valueChangeCallback(e,i,t),!0)},getTag:function(){return this._tag},isEqual:function(e){return this._equalityComparer(this._currentValue,e)},onValueChanged:function(e,t){var n=this.valueChangedEvent.bind(e);return t&&e(this._currentValue),n},createValueListener:function(e){return x.createEventListener(this.valueChangedEvent,e)},trackCurrentValue:function(e){var t=x.createEventListener(this.valueChangedEvent,e);return e(this.getValue(),void 0),t},trackValues:function(e,t){t=f.quickExtend({setCallback:cs,unsetCallback:cs,statusChangeCallback:cs},t);var n=this._currentValue;e=f.asArray(e);var i=f.inArray(n,e)>=0;return i&&t.setCallback(),this.valueChangedEvent.bind(function(){f.inArray(n,e)>=0&&!i?(i=!0,t.setCallback(),t.statusChangeCallback(!0)):f.inArray(n,e)<0&&i&&(i=!1,t.unsetCallback(),t.statusChangeCallback(!1))})},bind:function(e,t){var n=this._currentValue;return t=this.valueChangedEvent.bind(e,t),e(n),t},unbind:function(e){this.valueChangedEvent.unbind(e)},assignMarkingClass:function(e,t){t=f.valueOrDefault(t,f.identity),this.valueChangedEvent.bind(function(n,i){i&&f(t(i)).removeClass(e),n&&f(t(n)).addClass(e)});var n=this.getValue();return n&&f(t(n)).addClass(e),this}});return e.create=function(t,n){return new e(t,n)},e.createNumerical=function(t,n){return e.create(t,f.quickExtend({},n,{equalityComparer:f.referencesEqualityComparer}))},e.createTextual=function(t,n){return e.create(f.valueOrDefault(t,""),f.quickExtend({},n,{equalityComparer:f.referencesEqualityComparer}))},e.createReferenceObject=function(t){return e.create(void 0,f.quickExtend({},t,{equalityComparer:f.referencesEqualityComparer}))},e.createJqueryObject=function(t){return e.create(void 0,f.quickExtend({},t,{equalityComparer:function(e,t){return e&&t?e.length!==t.length?!1:0===e.not(t).length:e===t}}))},e.isObservableObject=function(t){return t instanceof e},e.createValueBinding=function(e,t){function n(e){if(!l)if(s){e=t.valueConverter(e),c=!0;var n=o;o=e,t.notifiedValuesFilter(e,n)&&(t.valueChangeCallback(e),i.valueChangedEvent.fireNew(e)),c=!1}else r=e,a=void 0}t=f.quickExtend({notifiedValuesFilter:us,valueConverter:f.identity,valueChangeCallback:cs,synchronizeToCurrentValue:!1,autoActivate:!1},t);var i={},a=void 0,r=void 0,o=void 0,s=!1,l=!1,c=!1,u=e.valueChangedEvent.bind(n);return f.quickExtend(i,{valueChangedEvent:x.create(),adjustValue:function(t){c||i.setValue(t(e.getValue()))},setValue:function(t){c||(s?(l=!0,o=t,e.setValue(t),l=!1):(a=t,r=void 0))},activate:function(){s||(s=!0,void 0!==a&&i.setValue(a),r&&n(r))},deactivate:function(){s&&(a=void 0,s=!1)},toggleActive:function(e){e?i.activate():i.deactivate()},destroy:function(){u.unbind()}}),t.autoActivate&&i.activate(),t.synchronizeToCurrentValue&&n(e.getValue()),i},e}();!function(e){function t(t,i,a,r){r=e.quickExtend({valueConverter:e.identity,executeOnStart:!0,textOnly:!1,whenUndefined:""},r);var o=r.valueConverter,s=r.executeOnStart;if(i=e.valueOrDefault(e.evaluateWhenFunction(i),r.whenUndefined),"string"==typeof i)return a?t.text(i):t.html(i),n;var l=i.createValueListener(function(){var e=o(i.getValue());a?t.text(e):t.html(e)});return s?l.activateAndExecute():l.activate(),l}var n={activate:cs,deactivate:cs,dispose:cs,activateAndExecute:cs};e.fn.bindContent=function(e,n){return t(this,e,!1,n)},e.fn.bindTextContent=function(e,n){return t(this,e,!0,n)},e.fn.bindClassName=function(t,i){i=e.quickExtend({valueConverter:e.identity,whenUndefined:"",executeOnStart:!0},i);var a=i.valueConverter,r=i.executeOnStart;t=e.valueOrDefault(e.evaluateWhenFunction(t),i.whenUndefined);var o=this;if("string"==typeof t)return o.addClass(t),n;var s=Ie.createContextClass(o),l=t.createValueListener(function(){var e=a(t.getValue());s.set(e)});return r?l.activateAndExecute():l.activate(),l}}(p);var N={UserNotLoggedIn:"UserNotLoggedInException",DownForMaintenanceException:"DownForMaintenanceException",GroupAlreadyExists:"GroupAlreadyExistsException",SiteAlreadyExists:"SiteAlreadyExistsException",PartialOperationFailure:"PartialOperationFailureException",UnknownError:"UnknownErrorException",EmailAlreadyExistsException:"EmailAlreadyExistsException",UserAlreadyExistsException:"UserAlreadyExistsException",UserNotFound:"UserNotFoundException",EmailNotFound:"EmailNotFoundException",IncorrectPassword:"IncorrectPasswordException",PasswordRequired:"PasswordRequiredException",EmailRequired:"EmailRequiredException",NameRequired:"NameRequiredException",InvalidSubdomainException:"InvalidSubdomainException",SiteNameTooLong:"SiteNameTooLongException",SubdomainAlreadyExistsException:"SubdomainAlreadyExistsException",SubdomainTooShortException:"SubdomainTooShortException",InvalidEmailException:"InvalidEmailException",SiteDoesNotExistsException:"SiteDoesNotExistsException",SiteDeletedException:"SiteDeletedException",NotAuthorizedException:"NotAuthorizedException",AuthorizationException:"AuthorizationException",AlbumAlreadyExistsException:"AlbumAlreadyExistsException",ValidationException:"ValidationException",ResourceAlreadyExistsException:"ResourceAlreadyExistsException",DifferentDomainOwnerException:"DifferentDomainOwnerException",UserAlreadyConnectedToSiteException:"UserAlreadyConnectedToSiteException",StudioAlreadyExists:"StudioAlreadyExistsException",InnerException:"InnerException",DuplicateUserStudio:"DuplicateUserStudioException",
InvalidFileTypeException:"InvalidFileTypeException",FileSizeException:"FileSizeException",UrlAliasAlreadyExistsException:"UrlAliasAlreadyExistsException",InvalidUrlAliasException:"InvalidUrlAliasException",EntityNotExistsException:"EntityNotExistsException",EmailPasswordCombinationUnknownException:"EmailPasswordCombinationUnknownException"},R=fs(function(){this.create=function(e,t){return{ExceptionType:e,Message:t}},this.getExceptionType=function(e){if(f.isPlainObject(e)){var t=e.ExceptionType;if(t)return t.substring(t.lastIndexOf(".")+1)}return N.UnknownError}});!function(e,t){function n(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function i(e){return t===e}if(e){var a={},r=e.TraceKit,o=[].slice,s="?";a.noConflict=function(){return e.TraceKit=r,a},a.wrap=function(e){function t(){try{return e.apply(this,arguments)}catch(t){throw a.report(t),t}}return t},a.report=function(){function t(e){s(),g.push(e)}function n(e){for(var t=g.length-1;t>=0;--t)g[t]===e&&g.splice(t,1)}function i(e,t){var n=null;if(!t||a.collectWindowErrors){for(var i=g.length,r=0;i>r;r++){var s=g[r];if(s)try{s.apply(null,[e].concat(o.call(arguments,2)))}catch(l){n=l}}if(n)throw n}}function r(e,t,n,r,o){var s=null;if(h)a.computeStackTrace.augmentStackTraceWithInitialElement(h,t,n,e),l();else if(o)s=a.computeStackTrace(o),i(s,!0);else{var c={url:t,line:n,column:r};c.func=a.computeStackTrace.guessFunctionName(c.url,c.line),c.context=a.computeStackTrace.gatherContext(c.url,c.line),s={mode:"onerror",message:e,stack:[c]},i(s,!0)}return u?u.apply(this,arguments):!1}function s(){d!==!0&&(u=e.onerror,e.onerror=r,d=!0)}function l(){var e=h,t=f;f=null,h=null,p=null,i.apply(null,[e,!1].concat(t))}function c(t){if(h){if(p===t)return;l()}var n=a.computeStackTrace(t);throw h=n,p=t,f=o.call(arguments,1),e.setTimeout(function(){p===t&&l()},n.incomplete?2e3:0),t}var u,d,g=[],f=null,p=null,h=null;return c.subscribe=t,c.unsubscribe=n,c}(),a.computeStackTrace=function(){function r(t){if(!a.remoteFetching)return"";try{var n=function(){try{return new e.XMLHttpRequest}catch(t){return new e.ActiveXObject("Microsoft.XMLHTTP")}},i=n();return i.open("GET",t,!1),i.send(""),i.responseText}catch(r){return""}}function o(e){if("string"!=typeof e)return[];if(!n(P,e)){var t="",i="";try{i=document.domain}catch(a){}-1!==e.indexOf(i)&&(t=r(e)),P[e]=t?t.split("\n"):[]}return P[e]}function l(e,t){var n,a=/function ([^(]*)\(([^)]*)\)/,r=/['"]?([0-9A-Za-z$_]+)['"]?\s*[:=]\s*(function|eval|new Function)/,l="",c=10,u=o(e);if(!u.length)return s;for(var d=0;c>d;++d)if(l=u[t-d]+l,!i(l)){if(n=r.exec(l))return n[1];if(n=a.exec(l))return n[1]}return s}function c(e,t){var n=o(e);if(!n.length)return null;var r=[],s=Math.floor(a.linesOfContext/2),l=s+a.linesOfContext%2,c=Math.max(0,t-s-1),u=Math.min(n.length,t+l-1);t-=1;for(var d=c;u>d;++d)i(n[d])||r.push(n[d]);return r.length>0?r:null}function u(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#]/g,"\\$&")}function d(e){return u(e).replace("<","(?:<|&lt;)").replace(">","(?:>|&gt;)").replace("&","(?:&|&amp;)").replace('"','(?:"|&quot;)').replace(/\s+/g,"\\s+")}function g(e,t){for(var n,i,a=0,r=t.length;r>a;++a)if((n=o(t[a])).length&&(n=n.join("\n"),i=e.exec(n)))return{url:t[a],line:n.substring(0,i.index).split("\n").length,column:i.index-n.lastIndexOf("\n",i.index)-1};return null}function f(e,t,n){var i,a=o(t),r=RegExp("\\b"+u(e)+"\\b");return n-=1,a&&a.length>n&&(i=r.exec(a[n]))?i.index:null}function p(t){if(!i(document)){for(var n,a,r,o,s=[e.location.href],l=document.getElementsByTagName("script"),c=""+t,f=/^function(?:\s+([\w$]+))?\s*\(([\w\s,]*)\)\s*\{\s*(\S[\s\S]*\S)\s*\}\s*$/,p=/^function on([\w$]+)\s*\(event\)\s*\{\s*(\S[\s\S]*\S)\s*\}\s*$/,h=0;h<l.length;++h){var m=l[h];m.src&&s.push(m.src)}if(r=f.exec(c)){var v=r[1]?"\\s+"+r[1]:"",y=r[2].split(",").join("\\s*,\\s*");n=u(r[3]).replace(/;$/,";?"),a=RegExp("function"+v+"\\s*\\(\\s*"+y+"\\s*\\)\\s*{\\s*"+n+"\\s*}")}else a=RegExp(u(c).replace(/\s+/g,"\\s+"));if(o=g(a,s))return o;if(r=p.exec(c)){var b=r[1];if(n=d(r[2]),a=RegExp("on"+b+"=[\\'\"]\\s*"+n+"\\s*[\\'\"]","i"),o=g(a,s[0]))return o;if(a=RegExp(n),o=g(a,s))return o}return null}}function h(e){if(!e.stack)return null;for(var t,n,a=/^\s*at (.*?) ?\(((?:file|https?|blob|chrome-extension|native|eval).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,r=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)((?:file|https?|blob|chrome|\[).*?)(?::(\d+))?(?::(\d+))?\s*$/i,o=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:ms-appx|https?|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,u=e.stack.split("\n"),d=[],g=/^(.*) is undefined$/.exec(e.message),p=0,h=u.length;h>p;++p){if(t=a.exec(u[p])){var m=t[2]&&-1!==t[2].indexOf("native");n={url:m?null:t[2],func:t[1]||s,args:m?[t[2]]:[],line:t[3]?+t[3]:null,column:t[4]?+t[4]:null}}else if(t=o.exec(u[p]))n={url:t[2],func:t[1]||s,args:[],line:+t[3],column:t[4]?+t[4]:null};else{if(!(t=r.exec(u[p])))continue;n={url:t[3],func:t[1]||s,args:t[2]?t[2].split(","):[],line:t[4]?+t[4]:null,column:t[5]?+t[5]:null}}!n.func&&n.line&&(n.func=l(n.url,n.line)),n.line&&(n.context=c(n.url,n.line)),d.push(n)}return d.length?(d[0]&&d[0].line&&!d[0].column&&g?d[0].column=f(g[1],d[0].url,d[0].line):d[0].column||i(e.columnNumber)||(d[0].column=e.columnNumber+1),{mode:"stack",name:e.name,message:e.message,stack:d}):null}function m(e){var t=e.stacktrace;if(t){for(var n,i=/ line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i,a=/ line (\d+), column (\d+)\s*(?:in (?:<anonymous function: ([^>]+)>|([^\)]+))\((.*)\))? in (.*):\s*$/i,r=t.split("\n"),o=[],s=0;s<r.length;s+=2){var u=null;if((n=i.exec(r[s]))?u={url:n[2],line:+n[1],column:null,func:n[3],args:[]}:(n=a.exec(r[s]))&&(u={url:n[6],line:+n[1],column:+n[2],func:n[3]||n[4],args:n[5]?n[5].split(","):[]}),u){if(!u.func&&u.line&&(u.func=l(u.url,u.line)),u.line)try{u.context=c(u.url,u.line)}catch(d){}u.context||(u.context=[r[s+1]]),o.push(u)}}return o.length?{mode:"stacktrace",name:e.name,message:e.message,stack:o}:null}}function v(t){var i=t.message.split("\n");if(i.length<4)return null;var a,r=/^\s*Line (\d+) of linked script ((?:file|https?|blob)\S+)(?:: in function (\S+))?\s*$/i,s=/^\s*Line (\d+) of inline#(\d+) script in ((?:file|https?|blob)\S+)(?:: in function (\S+))?\s*$/i,u=/^\s*Line (\d+) of function script\s*$/i,f=[],p=document.getElementsByTagName("script"),h=[];for(var m in p)n(p,m)&&!p[m].src&&h.push(p[m]);for(var v=2;v<i.length;v+=2){var y=null;if(a=r.exec(i[v]))y={url:a[2],func:a[3],args:[],line:+a[1],column:null};else if(a=s.exec(i[v])){y={url:a[3],func:a[4],args:[],line:+a[1],column:null};var b=+a[1],C=h[a[2]-1];if(C){var I=o(y.url);if(I){I=I.join("\n");var S=I.indexOf(C.innerText);S>=0&&(y.line=b+I.substring(0,S).split("\n").length)}}}else if(a=u.exec(i[v])){var P=e.location.href.replace(/#.*$/,""),w=RegExp(d(i[v+1])),E=g(w,[P]);y={url:P,func:"",args:[],line:E?E.line:a[1],column:null}}if(y){y.func||(y.func=l(y.url,y.line));var T=c(y.url,y.line),x=T?T[Math.floor(T.length/2)]:null;T&&x.replace(/^\s*/,"")===i[v+1].replace(/^\s*/,"")?y.context=T:y.context=[i[v+1]],f.push(y)}}return f.length?{mode:"multiline",name:t.name,message:i[0],stack:f}:null}function y(e,t,n,i){var a={url:t,line:n};if(a.url&&a.line){e.incomplete=!1,a.func||(a.func=l(a.url,a.line)),a.context||(a.context=c(a.url,a.line));var r=/ '([^']+)' /.exec(i);if(r&&(a.column=f(r[1],a.url,a.line)),e.stack.length>0&&e.stack[0].url===a.url){if(e.stack[0].line===a.line)return!1;if(!e.stack[0].line&&e.stack[0].func===a.func)return e.stack[0].line=a.line,e.stack[0].context=a.context,!1}return e.stack.unshift(a),e.partial=!0,!0}return e.incomplete=!0,!1}function b(e,n){for(var i,r,o,c=/function\s+([_$a-zA-Z\xA0-\uFFFF][_$a-zA-Z0-9\xA0-\uFFFF]*)?\s*\(/i,u=[],d={},g=!1,h=b.caller;h&&!g;h=h.caller)if(h!==C&&h!==a.report){if(r={url:null,func:s,args:[],line:null,column:null},h.name?r.func=h.name:(i=c.exec(""+h))&&(r.func=i[1]),t===r.func)try{r.func=i.input.substring(0,i.input.indexOf("{"))}catch(m){}if(o=p(h)){r.url=o.url,r.line=o.line,r.func===s&&(r.func=l(r.url,r.line));var v=/ '([^']+)' /.exec(e.message||e.description);v&&(r.column=f(v[1],o.url,o.line))}d[""+h]?g=!0:d[""+h]=!0,u.push(r)}n&&u.splice(0,n);var I={mode:"callers",name:e.name,message:e.message,stack:u};return y(I,e.sourceURL||e.fileName,e.line||e.lineNumber,e.message||e.description),I}function C(e,t){var n=null;t=null==t?0:+t;try{if(n=m(e))return n}catch(i){if(S)throw i}try{if(n=h(e))return n}catch(i){if(S)throw i}try{if(n=v(e))return n}catch(i){if(S)throw i}try{if(n=b(e,t+1))return n}catch(i){if(S)throw i}return{mode:"failed"}}function I(e){e=(null==e?0:+e)+1;try{throw Error()}catch(t){return C(t,e+1)}}var S=!1,P={};return C.augmentStackTraceWithInitialElement=y,C.guessFunctionName=l,C.gatherContext=c,C.ofCaller=I,C.getSource=o,C}(),a.extendToAsynchronousCallbacks=function(){var t=function(t){var n=e[t];e[t]=function(){var e=o.call(arguments),t=e[0];return"function"==typeof t&&(e[0]=a.wrap(t)),n.apply?n.apply(this,e):n(e[0],e[1])}};t("setTimeout"),t("setInterval")},a.remoteFetching||(a.remoteFetching=!0),a.collectWindowErrors||(a.collectWindowErrors=!0),(!a.linesOfContext||a.linesOfContext<1)&&(a.linesOfContext=11),e.TraceKit=a}}("undefined"!=typeof window?window:global);var H=function(e,t,n){function i(e){var t=e,n=e.split("//")[1];if(n){var i=n.indexOf("?"),a=(""+n).substring(0,i),r=a.split("/").slice(0,4).join("/"),o=a.substring(0,48);t=r.length<o.length?r:o,t!==a&&(t+="..")}return t}function a(e,t,a,r){var o="AJAX Error: "+(t.statusText||"unknown")+" "+(a.type||"unknown")+" "+(i(a.url)||"unknown");L&&!t.getAllResponseHeaders()||K.send(r||e.type,{status:t.status,statusText:t.statusText,type:a.type,url:a.url,ajaxErrorMessage:o,contentType:a.contentType,requestData:a.data&&a.data.slice?a.data.slice(0,10240):n,responseData:t.responseText&&t.responseText.slice?t.responseText.slice(0,10240):n,activeTarget:e.target&&e.target.activeElement&&e.target.activeElement.outerHTML&&e.target.activeElement.outerHTML.slice?e.target.activeElement.outerHTML.slice(0,10240):n})}function r(){return P&&""!==P?!0:(Q.log("Raygun API key has not been configured, make sure you call Raygun.init(yourApiKey)"),!1)}function o(e,t){var n,i={};for(n in e)i[n]=e[n];for(n in t)i[n]=t[n];return i}function s(e){return"function"==typeof e?e():e}function l(e,t){return null!=t?e.concat(t):e}function c(e,t){for(var n=0;n<e.length;n++)t.call(null,n,e[n])}function u(e){for(var t in e)if(e.hasOwnProperty(t))return!1;return!0}function d(){return Math.floor(9007199254740992*Math.random())}function g(){var t=document.documentElement,n=document.getElementsByTagName("body")[0],i=e.innerWidth||t.clientWidth||n.clientWidth,a=e.innerHeight||t.clientHeight||n.clientHeight;return{width:i,height:a}}function f(e,t){var i=(new Date).toJSON();try{var a="raygunjs="+i+"="+d();n===localStorage[a]&&(localStorage[a]=JSON.stringify({url:e,data:t}))}catch(r){Q.log("Raygun4JS: LocalStorage full, cannot save exception")}}function p(){try{return"localStorage"in e&&null!==e.localStorage}catch(t){return!1}}function h(){if(p()&&localStorage&&localStorage.length>0)for(var e in localStorage)if("raygunjs="===e.substring(0,9))try{var t=JSON.parse(localStorage[e]);S(t.url,t.data),localStorage.removeItem(e)}catch(n){Q.log("Raygun4JS: Unable to send saved error")}}function m(){if(!w&&!_){var e,t="raygun4js-userid",n=Q.readCookie(t);n?e=n:(e=Q.getUuid(),Q.createCookie(t,e,744)),K.setUser(e,!0,null,null,null,e)}}function v(e,t){if(T)for(var n=0;n<T.length;n++)if("object"==typeof T[n]&&"function"==typeof T[n].exec){if(null!==T[n].exec(e))return"[removed by filter]"}else if(T[n]===e)return"[removed by filter]";return t}function y(e,t){if(null==e)return e;if("[object Object]"!==Object.prototype.toString.call(e))return e;var i={};for(var a in e){var r=e[a];null!=r&&("[object Object]"===Object.prototype.toString.call(r)?"Details"!==t||"Client"!==a?i[a]=y(v(a,r),a):i[a]=r:"[object Function]"!==Object.prototype.toString.call(r)&&(n!==t?i[a]=v(a,r):"OccurredOn"===a&&(i[a]=r)))}return i}function b(t,i){var a=[],r={};if(i===n&&(i={}),z){if(!t.stack||!t.stack.length)return Q.log("Raygun4JS: Cancelling send due to null stacktrace"),n;var o=Q.parseUrl("domain"),l="Script error",d=t.message||i.status||l;if(d.substring(0,l.length)===l&&null!==t.stack[0].url&&-1===t.stack[0].url.indexOf(o)&&(0===t.stack[0].line||"?"===t.stack[0].func))return Q.log("Raygun4JS: cancelling send due to third-party script error with no stacktrace and message"),n;if(null!==t.stack[0].url&&-1===t.stack[0].url.indexOf(o)){var f=!1;for(var p in $)t.stack[0].url.indexOf($[p])>-1&&(f=!0);if(!f)return Q.log("Raygun4JS: cancelling send due to error on non-origin, non-whitelisted domain"),n}}if(j instanceof Array)for(var h in j)if(j.hasOwnProperty(h)&&e.location.hostname&&e.location.hostname.match(j[h]))return Q.log("Raygun4JS: cancelling send as error originates from an excluded hostname"),n;if(G instanceof Array)for(var m in G)if(G.hasOwnProperty(m)&&navigator.userAgent.match(G[m]))return Q.log("Raygun4JS: cancelling send as error originates from an excluded user agent"),n;t.stack&&t.stack.length&&c(t.stack,function(e,t){a.push({LineNumber:t.line,ColumnNumber:t.column,ClassName:"line "+t.line+", column "+t.column,FileName:t.url,MethodName:t.func||"[anonymous]"})});var b=Q.parseUrl("?");b.length>0&&c(b.split("&"),function(e,t){var n=t.split("=");if(n&&2===n.length){var i=decodeURIComponent(n[0]),a=v(i,n[1]);r[i]=a}}),u(i.customData)&&(i.customData=s(q)),u(i.tags)&&(i.tags=s(U));var I,S=e.screen||{width:g().width,height:g().height,colorDepth:8},P=i.customData&&i.customData.ajaxErrorMessage;I="customData"===X?y(i.customData,"UserCustomData"):i.customData;try{JSON.stringify(I)}catch(T){var d="Cannot add custom data; may contain circular reference";I={error:d},Q.log("Raygun4JS: "+d)}var D=P||t.message||i.status||"Script error";D&&(D=D.substring(0,512));var F={OccurredOn:new Date,Details:{Error:{ClassName:t.name,Message:D,StackTrace:a},Environment:{UtcOffset:(new Date).getTimezoneOffset()/-60,"User-Language":navigator.userLanguage,"Document-Mode":document.documentMode,"Browser-Width":g().width,"Browser-Height":g().height,"Screen-Width":S.width,"Screen-Height":S.height,"Color-Depth":S.colorDepth,Browser:navigator.appCodeName,"Browser-Name":navigator.appName,"Browser-Version":navigator.appVersion,Platform:navigator.platform},Client:{Name:"raygun-js",Version:"2.1.1"},UserCustomData:I,Tags:i.tags,Request:{Url:location.protocol+"//"+location.host+location.pathname+location.hash,QueryString:r,Headers:{"User-Agent":navigator.userAgent,Referer:document.referrer,Host:document.domain}},Version:E||"Not supplied"}};if(F.Details.User=w,"all"===X&&(F=y(F)),"function"==typeof k&&(Q.log("Raygun4JS: calling custom grouping key"),F.Details.GroupingKey=k(F,t,i)),"function"==typeof x){var A=x(F);A&&C(A)}else C(F)}function C(e){if(r()){Q.log("Sending exception data to Raygun:",e);var t=W+"/entries?apikey="+encodeURIComponent(P);S(t,JSON.stringify(e))}}function I(t,n){var i;return i=new e.XMLHttpRequest,"withCredentials"in i?i.open(t,n,!0):e.XDomainRequest&&(V&&(n=n.slice(6)),i=new e.XDomainRequest,i.open(t,n)),i.timeout=1e4,i}function S(t,i){var a=I("POST",t,i);return"withCredentials"in a?(a.onreadystatechange=function(){4===a.readyState&&(202===a.status?h():O&&403!==a.status&&400!==a.status&&429!==a.status&&f(t,i))},a.onload=function(){Q.log("posted to Raygun")}):e.XDomainRequest&&(a.ontimeout=function(){O&&(Q.log("Raygun: saved locally"),f(t,i))},a.onload=function(){Q.log("posted to Raygun"),h()}),a.onerror=function(){Q.log("failed to post to Raygun")},a?(a.send(i),n):(Q.log("CORS not supported"),n)}var P,w,E,T,x,k,D,F=TraceKit,A=e.Raygun,B=!1,V=!1,L=!1,M=!1,O=!1,z=!1,_=!1,N=!1,R=!0,H=!1,q={},U=[],$=[],W="https://api.raygun.io",j=null,G=null,X="customData",Y=null,K={noConflict:function(){return e.Raygun=A,K},constructNewRaygun:function(){var t=e.raygunFactory(e,e.jQuery);return e.raygunJsUrlFactory(e,t),t},init:function(i,a,r){if(P=i,F.remoteFetching=!1,r&&(q=r),t&&(D=t(document)),a&&(V=a.allowInsecureSubmissions||!1,L=a.ignoreAjaxAbort||!1,M=a.ignoreAjaxError||!1,_=a.disableAnonymousUserTracking||!1,N=a.disableErrorTracking||!1,R=a.disablePulse===n?!0:a.disablePulse,j=a.excludedHostnames||!1,G=a.excludedUserAgents||!1,a.apiUrl&&(W=a.apiUrl),n!==a.wrapAsynchronousCallbacks&&(H=a.wrapAsynchronousCallbacks),a.debugMode&&(B=a.debugMode),a.ignore3rdPartyErrors&&(z=!0),a.apiEndpoint&&(W=a.apiEndpoint)),m(),K.RealUserMonitoring!==n&&!R){var o=function(){Y=new K.RealUserMonitoring(P,W,S,w,E,j,G,B),Y.attach()};a&&"onLoad"===a.from?o():e.addEventListener?e.addEventListener("load",o):e.attachEvent("onload",o)}return h(),K},withCustomData:function(e){return q=e,K},withTags:function(e){return U=e,K},attach:function(){return!r()||N?K:(e.RaygunObject&&e[e.RaygunObject]&&e[e.RaygunObject].q&&(e.onerror=null),F.report.subscribe(b),H&&F.extendToAsynchronousCallbacks(),D&&D.ajaxError&&!M&&D.ajaxError(a),K)},detach:function(){return F.report.unsubscribe(b),D&&D.unbind("ajaxError",a),K},send:function(e,t,n){if(N)return Q.log("Error not sent due to disabled error tracking"),K;try{b(F.computeStackTrace(e),{customData:o(s(q),t),tags:l(s(U),n)})}catch(i){if(e!==i)throw i}return K},sendStacktrace:function(e,t,n){return N?(Q.log("Error not sent due to disabled error tracking"),K):(b(e,{customData:o(s(q),t),tags:l(s(U),n)}),K)},setUser:function(e,t,i,a,r,o){return w={Identifier:e},"boolean"==typeof t&&(w.IsAnonymous=t),i&&(w.Email=i),a&&(w.FullName=a),r&&(w.FirstName=r),o&&(w.UUID=o),Y!==n&&null!==Y&&Y.setUser(w),K},resetAnonymousUser:function(){Q.clearCookie("raygun4js-userid")},setVersion:function(e){return E=e,K},saveIfOffline:function(e){return n!==e&&"boolean"==typeof e&&(O=e),K},filterSensitiveData:function(e){return T=e,K},setFilterScope:function(e){return"customData"!==e&&"all"!==e||(X=e),K},whitelistCrossOriginDomains:function(e){return $=e,K},onBeforeSend:function(e){return x=e,K},groupingKey:function(e){return k=e,K},endSession:function(){K.RealUserMonitoring!==n&&Y!==n&&Y.endSession()}},Q=K._private=K._private||{},J=K._seal=K._seal||function(){delete K._private,delete K._seal,delete K._unseal},Z=K._unseal=K._unseal||function(){K._private=Q,K._seal=J,K._unseal=Z};return Q.getUuid=function(){function e(e){var t=(Math.random().toString(16)+"000000000").substr(2,8);return e?"-"+t.substr(0,4)+"-"+t.substr(4,4):t}return e()+e(!0)+e(!0)+e()},Q.createCookie=function(e,t,n){var i;if(n){var a=new Date;a.setTime(a.getTime()+60*n*60*1e3),i="; expires="+a.toGMTString()}else i="";document.cookie=e+"="+t+i+"; path=/"},Q.readCookie=function(e){for(var t=e+"=",n=document.cookie.split(";"),i=0;i<n.length;i++){for(var a=n[i];" "===a.charAt(0);)a=a.substring(1,a.length);if(0===a.indexOf(t))return a.substring(t.length,a.length)}return null},Q.clearCookie=function(e){Q.createCookie(e,"",-1)},Q.log=function(t,n){e.console&&e.console.log&&B&&(e.console.log(t),n&&e.console.log(n))},e.Raygun||(e.Raygun=K),Date.prototype.toISOString||!function(){function e(e){var t=e+"";return 1===t.length&&(t="0"+t),t}Date.prototype.toISOString=function(){return this.getUTCFullYear()+"-"+e(this.getUTCMonth()+1)+"-"+e(this.getUTCDate())+"T"+e(this.getUTCHours())+":"+e(this.getUTCMinutes())+":"+e(this.getUTCSeconds())+"."+((this.getUTCMilliseconds()/1e3).toFixed(3)+"").slice(2,5)+"Z"}}(),Function.prototype.bind||(Function.prototype.bind=function(e){if("function"!=typeof this)throw new TypeError("Function.prototype.bind - what is trying to be bound is not callable");var t=Array.prototype.slice.call(arguments,1),n=this,i=function(){},a=function(){return n.apply(this instanceof i&&e?this:e,t.concat(Array.prototype.slice.call(arguments)))};return i.prototype=this.prototype,a.prototype=new i,a}),K};H(window,window.jQuery);var q=function(e,t){t._private.parseUrl=function(t,n){function i(e){return!isNaN(parseFloat(e))&&isFinite(e)}return function(t,n){var a=n||""+e.location;if(!t)return a;t=""+t,"//"===a.substring(0,2)?a="http:"+a:1===a.split("://").length&&(a="http://"+a),n=a.split("/");var r={auth:""},o=n[2].split("@");1===o.length?o=o[0].split(":"):(r.auth=o[0],o=o[1].split(":")),r.protocol=n[0],r.hostname=o[0],r.port=o[1]||("https"===r.protocol.split(":")[0].toLowerCase()?"443":"80"),r.pathname=(n.length>3?"/":"")+n.slice(3,n.length).join("/").split("?")[0].split("#")[0];var s=r.pathname;"/"===s.charAt(s.length-1)&&(s=s.substring(0,s.length-1));var l=r.hostname,c=l.split("."),u=s.split("/");if("hostname"===t)return l;if("domain"===t)return/^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$/.test(l)?l:c.slice(-2).join(".");if("sub"===t)return c.slice(0,c.length-2).join(".");if("port"===t)return r.port;if("protocol"===t)return r.protocol.split(":")[0];if("auth"===t)return r.auth;if("user"===t)return r.auth.split(":")[0];if("pass"===t)return r.auth.split(":")[1]||"";if("path"===t)return r.pathname;if("."===t.charAt(0)){if(t=t.substring(1),i(t))return t=parseInt(t,10),c[0>t?c.length+t:t-1]||""}else{if(i(t))return t=parseInt(t,10),u[0>t?u.length+t:t]||"";if("file"===t)return u.slice(-1)[0];if("filename"===t)return u.slice(-1)[0].split(".")[0];if("fileext"===t)return u.slice(-1)[0].split(".")[1]||"";if("?"===t.charAt(0)||"#"===t.charAt(0)){var d=a,g=null;if("?"===t.charAt(0)?d=(d.split("?")[1]||"").split("#")[0]:"#"===t.charAt(0)&&(d=d.split("#")[1]||""),!t.charAt(1))return d;t=t.substring(1),d=d.split("&");for(var f=0,p=d.length;p>f;f++)if(g=d[f].split("="),g[0]===t)return g[1]||"";return null}}return""}(t,n)}};q(window,window.Raygun),window.Raygun._seal();var U=fs(function(){function e(e,a){return e._errorWrapped||(e._errorWrapped=function(){if(!o)return e.apply(this,arguments);try{return e.apply(this,arguments)}catch(r){if(n!==r&&(n=r,i={}),a){for(var s=arguments.length,l=Array(s),c=0;s>c;c++)l[c]=arguments[c];var u=a(r,l);f.quickExtend(i,u)}throw t(r,i,!0),r}}),e._errorWrapped}function t(e,t,n){if(r)try{a.report(e,t,n)}catch(i){}}var n,i,a,r=!1,o=!0;window.TraceKit&&(a=window.TraceKit.noConflict()),this.enableWrappedError=function(){o=!0},this.disableWrappedError=function(){o=!1},this.isEnabledWrappedError=function(){return o},this.activate=function(t){r=!0,a.wrap=e,a.remoteFetching=!1,a.extendToAsynchronousCallbacks(),a.report.subscribe(t)},this.computeStackTrace=function(e){return a.computeStackTrace(e)},this.wrapWithNotify=function(t,n){return r&&t?e(t,n):t},this.safeCallWithNotify=function(e,n,i,a,r,s){if(o)try{e(n,i,a,r,s)}catch(l){t(l,void 0,!0)}else e(n,i,a,r,s)},this.notifyError=function(e,n,i){t(e,n,i)},window._wzErrorHandler=this}),$={Internal:1,External:2,Ajax:4,CKEditor:8,Stabilization:16,Voodo:32,Empty:64,RaygunSend:128},W=fs(function(e){function t(t,n,a){if(g[n]++,!(n===$.Empty&&g[$.Empty]>1)&&!(g[n]>10)&&u)try{var r={},o=0;e.eachEntry($,function(e,t){o+=r[e.toLowerCase()]=g[t]}),r.total=o,a=e.quickExtend({ErrorsCounts:r},a);var s=d+"-"+f[n].toLowerCase();u.sendStacktrace(t,a,s)}catch(l){var p="No message";t&&t.message&&(p=t.message),i(l,$.RaygunSend,{originalStack:c(t),originalMessage:p})}}function n(e,n,i){t(U.computeStackTrace(e),n,i)}function i(e,t,i){setTimeout(function(){n(e,t,i)},1e3)}function a(e,n,i){t(e,n,i)}function r(t,n){var i={};return e.eachEntry(t,function(e,a){if(n(t,e,a)){var r=s(a);void 0!==r&&(i[e]=r)}}),i}function o(e){var t=[];return e.parents().addBack().each(function(e,n){if(n){var i="<"+n.nodeName;if(n.attributes&&n.attributes.length)for(var a=0,r=n.attributes,o=r.length;o>a;a++){var s=r[a];i+=" "+s.nodeName+'="'+s.nodeValue+'"'}i+="/>",t.push(i)}}),t}function s(e){switch(typeof e){case"string":case"number":case"boolean":return e;case"null":case"object":if(e){if(e instanceof V)return e.getValue();if(e instanceof _)return s(e.getValue())}}}function l(){function t(t){var n={};try{var a=t.target;n.EventData={event:r(t,us),eventTarget:e.isWindow(a)?"window":o(e(a))}}catch(s){n.EventDataError=s.message,i(s,$.Voodo,{customDataError:"Event data error"})}return n}function a(e){var t=e,n=e.split("//")[1];if(n){var i=n.indexOf("?"),a=(""+n).substring(0,i),r=a.split("/").slice(0,4).join("/"),o=a.substring(0,48);t=r.length<o.length?r:o,t!==a&&(t+="..")}return t}function s(e,t,i,r){var o="AJAX Error: "+(t.statusText||"unknown")+" "+(i.type||"unknown")+" "+(a(i.url)||"unknown");r instanceof Error||(r=Error(o)),n(r,$.Ajax,{status:t.status,statusText:t.statusText,type:i.type,url:i.url,ajaxErrorMessage:o,contentType:i.contentType,requestData:i.data&&i.data.slice?i.data.slice(0,10240):void 0,responseData:t.responseText&&t.responseText.slice?t.responseText.slice(0,10240):void 0,activeTarget:e.target&&e.target.activeElement&&e.target.activeElement.outerHTML&&e.target.activeElement.outerHTML.slice?e.target.activeElement.outerHTML.slice(0,10240):void 0})}e.event.dispatch=U.wrapWithNotify(e.event.dispatch,function(n,i){var a,r=i[0];return r instanceof Event&&(r=e.event.fix(r)),r instanceof e.Event&&(a=t(r),r.preventDefault()),a});var l=e.fn.ready;e.fn.ready=function(e){return l.call(this,U.wrapWithNotify(e))};var c=e.ajax,u=["complete","error","success"];e.ajax=function(t,n){"object"==typeof t&&(n=t,t=void 0),n=n||{};for(var i=u.length,a=0;i>a;a++){var r=u[a];e.isFunction(n[r])&&(n[r]=U.wrapWithNotify(n[r]))}try{var o=c.call(this,t,n);return e.isFunction(o.complete)&&(o.complete=U.wrapWithNotify(o.complete)),o}catch(s){throw U.notifyError(s,void 0,!0),s}};var d=e.Deferred,g=["resolve","reject","notify","resolveWith","rejectWith","notifyWith"];e.Deferred=function(t){return d?d(function(n){for(var i=g.length,a=0;i>a;a++){var r=g[a];e.isFunction(n[r])&&(n[r]=U.wrapWithNotify(n[r]))}t&&t.call(n,n)}):null},e(document).ajaxError(s)}function c(t){var n="unknown error";try{t&&t.message&&(n=t.name?t.name+": "+t.message:t.message,t.stack&&e.eachItem(t.stack,function(e,t){if(t){var i="FileName: "+t.url+":"+t.line+(void 0!==t.column?":"+t.column:"")+" MethodName: "+(t.func||"[anonymous]");n+="\n"+i}}))}catch(i){}return n}var u,d,g={},f={};this.initialize=function(t){e.eachEntry($,function(e,t){g[t]=0,f[t]=e}),U.activate(function(n,a,r){try{e.eachItem(t,function(e,t){var i=t(n,a,r);return i?!1:void 0})}catch(o){i(o,$.Voodo,{Error:"This error should not be happen"})}finally{try{ee.error(c(n))}catch(o){}}}),l()},this.initializeRaygun=function(t,n,i){if(d=i,u=window.Raygun.noConflict(),t&&t.key){if(n&&"local"!==n)try{n=n.replace(/^g-/,"");var a=parseInt(n);!isNaN(a)&&n.length>=16&&(n=n.substr(0,4)+"."+n.substr(4,2)+"."+n.substr(6,2)+"."+n.substr(8))}catch(r){}u.init(t.key,{allowInsecureSubmissions:!!(e.browser.msie&&parseInt(e.browser.version)<=9),debugMode:!1}).withTags(["js",d]).setVersion(n||"unknown")}},this.setRaygunUser=function(e,t,n,i,a,r){u.setUser(e,t,n,i,a,r)},this.reportStacktrace=function(e,t,n){a(e,t,n)},this.reportErrorDelay=function(e,t,n){i(e,t,n)},this._findFirstNotEmptyStack=function(t){return e.findFirst(t,function(e,t){return!!t.url})},this._checkIfInternal=function(e){var t="//storage.googleapis.com/wzcomponents/";"undefined"!=typeof Settings&&(t=Settings.ApplicationRoot||t);var n=e.url;return!!(n&&(n=n.toLowerCase(),n.indexOf(t)>=0))},this._extractMetaData=function(e,t){return r(e,t)},this._createBaseCustomData=function(t){var n={};try{try{if(void 0!==Ia&&Ia.getSiteConfiguration()){var a=Ia.getBaseVersion();e.isNumeric(a)||(a="is not numeric: "+a),n.SiteInformation={siteId:Ia.getSiteID(),siteName:Ia.getSiteName(),isPublished:Ia.isPublished(),isPremium:Ia.isPremium(),isSaved:Ia.isSavedSite(),isTemplate:Ia.isTemplate(),siteType:Ia.getSiteType(),baseVersion:a}}}catch(r){n.SiteInformationError=r.message,i(r,$.Voodo,{customDataError:t.message||"No message"})}try{"undefined"!=typeof Settings&&(n.Brand=""+Settings.Brand)}catch(r){n.CurrentPageInformationError=r.message,i(r,$.Voodo,{customDataError:t.message||"No message"})}try{if(void 0!==va){var o=va.getCurrentPageId();if(o){var s=n.CurrentPageInformation={pageId:o,isHomePage:va.getMainPageId()==o},l=va.getPageData(o);l&&(s.pageName=l.title)}}}catch(r){n.CurrentPageInformationError=r.message,i(r,$.Voodo,{customDataError:t.message||"No message"})}try{void 0!==Ha&&(n.IsInMobileContext=Ha.Flags.IsInMobileContext.getValue())}catch(r){n.IsInMobileContextError=r.message,i(r,$.Voodo,{customDataError:t.message||"No message"})}try{void 0!==Z&&(n.IsMobileView=Z.IsMobileView,n.IsMobileClient=Z.IsMobileClient)}catch(r){n.IsInMobileContextError=r.message,i(r,$.Voodo,{customDataError:t.message||"No message"})}try{if(void 0!==Cr){var c=Cr.getListByName(mr.LocalBlog),u=n.BlogInformation={HasBlog:!!c};c&&(u.ListId=c.getListInfo().listId)}}catch(r){n.BlogInformationError=r.message,i(r,$.Voodo,{customDataError:t.message||"No message"})}try{var d=new Date;n.Time={tick:d.getTime&&d.getTime(),time:d.toUTCString&&d.toUTCString()}}catch(r){}}catch(r){n.ErrorCustomData=r.message,i(r,$.Voodo,{customDataError:t.message||"No message"})}return n}},p);!function(e,t){function n(t){return e._createBaseCustomData(t)}var i=[function(i,a){if(!i||!i.stack||0===i.stack.length)return!0;var r=e._findFirstNotEmptyStack(i.stack);return r?!1:(e.reportStacktrace(i,$.Empty,t.quickExtend({},n(i),a)),!0)},function(i,a){var r=e._findFirstNotEmptyStack(i.stack);return r&&!e._checkIfInternal(r)?(e.reportStacktrace(i,$.External,t.quickExtend({},n(i),a)),!0):!1},function(i,a){var r=e._findFirstNotEmptyStack(i.stack);return r&&e._checkIfInternal(r)?(e.reportStacktrace(i,$.Internal,t.quickExtend({},n(i),a)),!0):!1}];e.initialize(i),"undefined"!=typeof Settings&&e.initializeRaygun(Settings.RaygunSettings,Settings.AppVersion,"viewer")}(W,p),function(e,t,n){"function"==typeof define&&define.amd?define(["../../jquery"],function(i){return n(i,e,t),i.mobile}):n(e.jQuery,e,t)}(this,document,function(e,t,n){!function(e,t,n,i){function a(e){for(;e&&i!==e.originalEvent;)e=e.originalEvent;return e}function r(t,n){var r,o,s,l,c,u,d,g,f,p=t.type;if(t=e.Event(t),t.type=n,r=t.originalEvent,o=e.event.props,p.search(/^(mouse|click)/)>-1&&(o=F),r)for(d=o.length,l;d;)l=o[--d],t[l]=r[l];if(p.search(/mouse(down|up)|click/)>-1&&!t.which&&(t.which=1),-1!==p.search(/^touch/)&&(s=a(r),p=s.touches,c=s.changedTouches,u=p&&p.length?p[0]:c&&c.length?c[0]:i))for(g=0,f=k.length;f>g;g++)l=k[g],t[l]=u[l];return t}function o(t){for(var n,i,a={};t;){n=e.data(t,E);for(i in n)n[i]&&(a[i]=a.hasVirtualBinding=!0);t=t.parentNode}return a}function s(t,n){for(var i;t;){if(i=e.data(t,E),i&&(!n||i[n]))return t;t=t.parentNode}return null}function l(){_=!1}function c(){_=!0}function u(){q=0,O.length=0,z=!1,c()}function d(){l()}function g(){f(),B=setTimeout(function(){B=0,u()},e.vmouse.resetTimerDuration)}function f(){B&&(clearTimeout(B),B=0)}function p(t,n,i){var a;return(i&&i[t]||!i&&s(n.target,t))&&(a=r(n,t),e(n.target).trigger(a)),a}function h(t){var n,i=e.data(t.target,T);z||q&&q===i||(n=p("v"+t.type,t),n&&(n.isDefaultPrevented()&&t.preventDefault(),n.isPropagationStopped()&&t.stopPropagation(),n.isImmediatePropagationStopped()&&t.stopImmediatePropagation()))}function m(t){var n,i,r,s=a(t).touches;s&&1===s.length&&(n=t.target,i=o(n),i.hasVirtualBinding&&(q=H++,e.data(n,T,q),f(),d(),M=!1,r=a(t).touches[0],V=r.pageX,L=r.pageY,p("vmouseover",t,i),p("vmousedown",t,i)))}function v(e){_||(M||p("vmousecancel",e,o(e.target)),M=!0,g())}function y(t){if(!_){var n=a(t).touches[0],i=M,r=e.vmouse.moveDistanceThreshold,s=o(t.target);M=M||Math.abs(n.pageX-V)>r||Math.abs(n.pageY-L)>r,M&&!i&&p("vmousecancel",t,s),p("vmousemove",t,s),g()}}function b(e){if(!_){c();var t,n,i=o(e.target);p("vmouseup",e,i),M||(t=p("vclick",e,i),t&&t.isDefaultPrevented()&&(n=a(e).changedTouches[0],O.push({touchID:q,x:n.clientX,y:n.clientY}),z=!0)),p("vmouseout",e,i),M=!1,g()}}function C(t){var n,i=e.data(t,E);if(i)for(n in i)if(i[n])return!0;return!1}function I(){}function S(t){var n=t.substr(1);return{setup:function(){C(this)||e.data(this,E,{});var i=e.data(this,E);i[t]=!0,A[t]=(A[t]||0)+1,1===A[t]&&R.bind(n,h),e(this).bind(n,I),N&&(A.touchstart=(A.touchstart||0)+1,1===A.touchstart&&R.bind("touchstart",m).bind("touchend",b).bind("touchmove",y).bind("scroll",v))},teardown:function(){--A[t],
A[t]||R.unbind(n,h),N&&(--A.touchstart,A.touchstart||R.unbind("touchstart",m).unbind("touchmove",y).unbind("touchend",b).unbind("scroll",v));var i=e(this),a=e.data(this,E);a&&(a[t]=!1),i.unbind(n,I),C(this)||i.removeData(E)}}}var P,w,E="virtualMouseBindings",T="virtualTouchID",x="vmouseover vmousedown vmousemove vmouseup vclick vmouseout vmousecancel".split(" "),k="clientX clientY pageX pageY screenX screenY".split(" "),D=e.event.mouseHooks?e.event.mouseHooks.props:[],F=e.event.props.concat(D),A={},B=0,V=0,L=0,M=!1,O=[],z=!1,_=!1,N="addEventListener"in n,R=e(n),H=1,q=0;for(e.vmouse={moveDistanceThreshold:10,clickDistanceThreshold:10,resetTimerDuration:1500},w=0;w<x.length;w++)e.event.special[x[w]]=S(x[w]);N&&n.addEventListener("click",function(t){var n,a,r,o,s,l,c=O.length,u=t.target;if(c)for(n=t.clientX,a=t.clientY,P=e.vmouse.clickDistanceThreshold,r=u;r;){for(o=0;c>o;o++)if(s=O[o],l=0,r===u&&Math.abs(s.x-n)<P&&Math.abs(s.y-a)<P||e.data(r,T)===s.touchID)return t.preventDefault(),t.stopPropagation(),i;r=r.parentNode}},!0)}(e,t,n),function(e){e.mobile={}}(e),function(e){var t={touch:"ontouchend"in n};e.mobile.support=e.mobile.support||{},e.extend(e.support,t),e.extend(e.mobile.support,t)}(e),function(e,t,i){function a(t,n,a,r){var o=a.type;a.type=n,r?e.event.trigger(a,i,t):e.event.dispatch.call(t,a),a.type=o}var r=e(n),o=e.mobile.support.touch,s="touchmove scroll",l=o?"touchstart":"mousedown",c=o?"touchend":"mouseup",u=o?"touchmove":"mousemove";e.each("touchstart touchmove touchend tap taphold swipe swipeleft swiperight scrollstart scrollstop".split(" "),function(t,n){e.fn[n]=function(e){return e?this.bind(n,e):this.trigger(n)},e.attrFn&&(e.attrFn[n]=!0)}),e.event.special.scrollstart={enabled:!0,setup:function(){function t(e,t){n=t,a(r,n?"scrollstart":"scrollstop",e)}var n,i,r=this,o=e(r);o.bind(s,function(a){e.event.special.scrollstart.enabled&&(n||t(a,!0),clearTimeout(i),i=setTimeout(function(){t(a,!1)},50))})},teardown:function(){e(this).unbind(s)}},e.event.special.tap={tapholdThreshold:750,emitTapOnTaphold:!0,setup:function(){var t=this,n=e(t),i=!1;n.bind("vmousedown",function(o){function s(){clearTimeout(u)}function l(){s(),n.unbind("vclick",c).unbind("vmouseup",s),r.unbind("vmousecancel",l)}function c(e){l(),i||d!==e.target?i&&e.preventDefault():a(t,"tap",e)}if(i=!1,o.which&&1!==o.which)return!1;var u,d=o.target;n.bind("vmouseup",s).bind("vclick",c),r.bind("vmousecancel",l),u=setTimeout(function(){e.event.special.tap.emitTapOnTaphold||(i=!0),a(t,"taphold",e.Event("taphold",{target:d}))},e.event.special.tap.tapholdThreshold)})},teardown:function(){e(this).unbind("vmousedown").unbind("vclick").unbind("vmouseup"),r.unbind("vmousecancel")}},e.event.special.swipe={scrollSupressionThreshold:30,durationThreshold:1e3,horizontalDistanceThreshold:30,verticalDistanceThreshold:30,getLocation:function(e){var n=t.pageXOffset,i=t.pageYOffset,a=e.clientX,r=e.clientY;return 0===e.pageY&&Math.floor(r)>Math.floor(e.pageY)||0===e.pageX&&Math.floor(a)>Math.floor(e.pageX)?(a-=n,r-=i):(r<e.pageY-i||a<e.pageX-n)&&(a=e.pageX-n,r=e.pageY-i),{x:a,y:r}},start:function(t){var n=t.originalEvent.touches?t.originalEvent.touches[0]:t,i=e.event.special.swipe.getLocation(n);return{time:(new Date).getTime(),coords:[i.x,i.y],origin:e(t.target)}},stop:function(t){var n=t.originalEvent.touches?t.originalEvent.touches[0]:t,i=e.event.special.swipe.getLocation(n);return{time:(new Date).getTime(),coords:[i.x,i.y]}},handleSwipe:function(t,n,i,r){if(n.time-t.time<e.event.special.swipe.durationThreshold&&Math.abs(t.coords[0]-n.coords[0])>e.event.special.swipe.horizontalDistanceThreshold&&Math.abs(t.coords[1]-n.coords[1])<e.event.special.swipe.verticalDistanceThreshold){var o=t.coords[0]>n.coords[0]?"swipeleft":"swiperight";return a(i,"swipe",e.Event("swipe",{target:r,swipestart:t,swipestop:n}),!0),a(i,o,e.Event(o,{target:r,swipestart:t,swipestop:n}),!0),!0}return!1},eventInProgress:!1,setup:function(){var t,n=this,i=e(n),a={};t=e.data(this,"mobile-events"),t||(t={length:0},e.data(this,"mobile-events",t)),t.length++,t.swipe=a,a.start=function(t){if(!e.event.special.swipe.eventInProgress){e.event.special.swipe.eventInProgress=!0;var i,o=e.event.special.swipe.start(t),s=t.target,l=!1;a.move=function(t){o&&!t.isDefaultPrevented()&&(i=e.event.special.swipe.stop(t),l||(l=e.event.special.swipe.handleSwipe(o,i,n,s),l&&(e.event.special.swipe.eventInProgress=!1)),Math.abs(o.coords[0]-i.coords[0])>e.event.special.swipe.scrollSupressionThreshold&&t.preventDefault())},a.stop=function(){l=!0,e.event.special.swipe.eventInProgress=!1,r.off(u,a.move),a.move=null},r.on(u,a.move).one(c,a.stop)}},i.on(l,a.start)},teardown:function(){var t,n;t=e.data(this,"mobile-events"),t&&(n=t.swipe,delete t.swipe,t.length--,0===t.length&&e.removeData(this,"mobile-events")),n&&(n.start&&e(this).off(l,n.start),n.move&&r.off(u,n.move),n.stop&&r.off(c,n.stop))}},e.each({scrollstop:"scrollstart",taphold:"tap",swipeleft:"swipe.left",swiperight:"swipe.right"},function(t,n){e.event.special[t]={setup:function(){e(this).bind(n,cs)},teardown:function(){e(this).unbind(n)}}})}(e,this)}),function(e){for(var t=["mousedown","mouseup","mousemove","click"],n=p.event.special,i=t.length,a=0;i>a;a++){var r=t[a],o="v"+r;e(document).on(o,cs),n[r]={delegateType:o,bindType:o}}e.eachEntry({mouseenter:"vmouseover",mouseleave:"vmouseout"},function(e,t){var i=n[e];n[e]={delegateType:t,bindType:t,handle:i.handle}})}(p);var j=function(e,t,n){function i(e){b.cssText=e}function a(e,t){return i(S.join(e+";")+(t||""))}function r(e,t){return typeof e===t}function o(e,t){return!!~(""+e).indexOf(t)}function s(e,t){for(var i in e){var a=e[i];if(!o(a,"-")&&b[a]!==n)return"pfx"==t?a:!0}return!1}function l(e,t,i){for(var a in e){var o=t[e[a]];if(o!==n)return i===!1?e[a]:r(o,"function")?o.bind(i||t):o}return!1}function c(e,t,n){var i=e.charAt(0).toUpperCase()+e.slice(1),a=(e+" "+w.join(i+" ")+i).split(" ");return r(t,"string")||r(t,"undefined")?s(a,t):(a=(e+" "+E.join(i+" ")+i).split(" "),l(a,t,n))}function u(){p.input=function(n){for(var i=0,a=n.length;a>i;i++)D[n[i]]=!!(n[i]in C);return D.list&&(D.list=!(!t.createElement("datalist")||!e.HTMLDataListElement)),D}("autocomplete autofocus list placeholder max min multiple pattern required step".split(" ")),p.inputtypes=function(e){for(var i,a,r,o=0,s=e.length;s>o;o++)C.setAttribute("type",a=e[o]),i="text"!==C.type,i&&(C.value=I,C.style.cssText="position:absolute;visibility:hidden;",/^range$/.test(a)&&C.style.WebkitAppearance!==n?(m.appendChild(C),r=t.defaultView,i=r.getComputedStyle&&"textfield"!==r.getComputedStyle(C,null).WebkitAppearance&&0!==C.offsetHeight,m.removeChild(C)):/^(search|tel)$/.test(a)||(i=/^(url|email)$/.test(a)?C.checkValidity&&C.checkValidity()===!1:C.value!=I)),k[e[o]]=!!i;return k}("search tel url email datetime date month week time datetime-local number range color".split(" "))}var d,g,f="2.8.3",p={},h=!0,m=t.documentElement,v="modernizr",y=t.createElement(v),b=y.style,C=t.createElement("input"),I=":)",S=({}.toString," -webkit- -moz- -o- -ms- ".split(" ")),P="Webkit Moz O ms",w=P.split(" "),E=P.toLowerCase().split(" "),T={svg:"http://www.w3.org/2000/svg"},x={},k={},D={},F=[],A=F.slice,B=function(e,n,i,a){var r,o,s,l,c=t.createElement("div"),u=t.body,d=u||t.createElement("body");if(parseInt(i,10))for(;i--;)s=t.createElement("div"),s.id=a?a[i]:v+(i+1),c.appendChild(s);return r='&#173;<style id="s'+v+'">'+e+"</style>",c.id=v,(u?c:d).innerHTML+=r,d.appendChild(c),u||(d.style.background="",d.style.overflow="hidden",l=m.style.overflow,m.style.overflow="hidden",m.appendChild(d)),o=n(c,e),u?c.parentNode.removeChild(c):(d.parentNode.removeChild(d),m.style.overflow=l),!!o},V=function(){function e(e,a){a=a||t.createElement(i[e]||"div"),e="on"+e;var o=e in a;return o||(a.setAttribute||(a=t.createElement("div")),a.setAttribute&&a.removeAttribute&&(a.setAttribute(e,""),o=r(a[e],"function"),r(a[e],"undefined")||(a[e]=n),a.removeAttribute(e))),a=null,o}var i={select:"input",change:"input",submit:"form",reset:"form",error:"img",load:"img",abort:"img"};return e}(),L={}.hasOwnProperty;g=r(L,"undefined")||r(L.call,"undefined")?function(e,t){return t in e&&r(e.constructor.prototype[t],"undefined")}:function(e,t){return L.call(e,t)},Function.prototype.bind||(Function.prototype.bind=function(e){var t=this;if("function"!=typeof t)throw new TypeError;var n=A.call(arguments,1),i=function(){if(this instanceof i){var a=function(){};a.prototype=t.prototype;var r=new a,o=t.apply(r,n.concat(A.call(arguments)));return Object(o)===o?o:r}return t.apply(e,n.concat(A.call(arguments)))};return i}),x.canvas=function(){var e=t.createElement("canvas");return!(!e.getContext||!e.getContext("2d"))},x.postmessage=function(){return!!e.postMessage},x.hashchange=function(){return V("hashchange",e)&&(t.documentMode===n||t.documentMode>7)},x.history=function(){return!(!e.history||!history.pushState)},x.rgba=function(){return i("background-color:rgba(150,255,150,.5)"),o(b.backgroundColor,"rgba")},x.backgroundsize=function(){return c("backgroundSize")},x.borderradius=function(){return c("borderRadius")},x.boxshadow=function(){return c("boxShadow")},x.textshadow=function(){return""===t.createElement("div").style.textShadow},x.opacity=function(){return a("opacity:.55"),/^0.55$/.test(b.opacity)},x.cssanimations=function(){return c("animationName")},x.cssgradients=function(){var e="background-image:",t="gradient(linear,left top,right bottom,from(#9f9),to(white));",n="linear-gradient(left top,#9f9, white);";return i((e+"-webkit- ".split(" ").join(t+e)+S.join(n+e)).slice(0,-e.length)),o(b.backgroundImage,"gradient")},x.csstransforms=function(){return!!c("transform")},x.csstransforms3d=function(){var e=!!c("perspective");return e&&"webkitPerspective"in m.style&&B("@media (transform-3d),(-webkit-transform-3d){#modernizr{left:9px;position:absolute;height:3px;}}",function(t){e=9===t.offsetLeft&&3===t.offsetHeight}),e},x.csstransitions=function(){return c("transition")},x.svg=function(){return!!t.createElementNS&&!!t.createElementNS(T.svg,"svg").createSVGRect},x.inlinesvg=function(){var e=t.createElement("div");return e.innerHTML="<svg/>",(e.firstChild&&e.firstChild.namespaceURI)==T.svg};for(var M in x)g(x,M)&&(d=M.toLowerCase(),p[d]=x[M](),F.push((p[d]?"":"no-")+d));return p.input||u(),p.addTest=function(e,t){if("object"==typeof e)for(var i in e)g(e,i)&&p.addTest(i,e[i]);else{if(e=e.toLowerCase(),p[e]!==n)return p;t="function"==typeof t?t():t,n!==h&&h&&(m.className+=" wz-"+(t?"":"no-")+e),p[e]=t}return p},i(""),y=C=null,p._version=f,p._prefixes=S,p._domPrefixes=E,p._cssomPrefixes=w,p.hasEvent=V,p.testProp=function(e){return s([e])},p.testAllProps=c,p.testStyles=B,p.prefixed=function(e,t,n){return t?c(e,t,n):c(e,"pfx")},m.className=m.className.replace(/(^|\s)no-js(\s|$)/,"$1$2")+(h?" wz-js wz-"+F.join(" wz-"):""),p}(this,this.document);!function(e){function t(e){e=e.toLowerCase();var t=/(chrome)[ \/]([\w.]+)/.exec(e)||/(webkit)[ \/]([\w.]+)/.exec(e)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(e)||/(msie) ([\w.]+)/.exec(e)||e.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(e)||[];return{browser:t[1]||"",version:t[2]||"0"}}var n={},i=t(navigator.userAgent);i.browser&&(n[i.browser]=!0,n.version=i.version),n.chrome?n.webkit=!0:n.webkit&&(n.safari=!0),e.addTest("pointerevents",function(){var e=document.createElement("div"),t=e.style;return t.cssText="pointer-events:auto",(!n.msie||parseInt(n.version)>10)&&"auto"===t.pointerEvents}),e.addTest("layerforwarding",function(){var t=document.createElement("div"),n=t.style;return n.cssText="pointer-events:auto",e.pointerevents||void 0!==document.elementFromPoint}),e.addTest("linkdownload",function(){var e=document.createElement("a");return void 0!==e.download})}(j),function(e,t){function n(e,t){var n=e.createElement("p"),i=e.getElementsByTagName("head")[0]||e.documentElement;return n.innerHTML="x<style>"+t+"</style>",i.insertBefore(n.lastChild,i.firstChild)}function i(){var e=y.elements;return"string"==typeof e?e.split(" "):e}function a(e){var t=v[e[h]];return t||(t={},m++,e[h]=m,v[m]=t),t}function r(e,n,i){if(n||(n=t),u)return n.createElement(e);i||(i=a(n));var r;return r=i.cache[e]?i.cache[e].cloneNode():p.test(e)?(i.cache[e]=i.createElem(e)).cloneNode():i.createElem(e),!r.canHaveChildren||f.test(e)||r.tagUrn?r:i.frag.appendChild(r)}function o(e,n){if(e||(e=t),u)return e.createDocumentFragment();n=n||a(e);for(var r=n.frag.cloneNode(),o=0,s=i(),l=s.length;l>o;o++)r.createElement(s[o]);return r}function s(e,t){t.cache||(t.cache={},t.createElem=e.createElement,t.createFrag=e.createDocumentFragment,t.frag=t.createFrag()),e.createElement=function(n){return y.shivMethods?r(n,e,t):t.createElem(n)},e.createDocumentFragment=Function("h,f","return function(){var n=f.cloneNode(),c=n.createElement;h.shivMethods&&("+i().join().replace(/[\w\-]+/g,function(e){return t.createElem(e),t.frag.createElement(e),'c("'+e+'")'})+");return n}")(y,t.frag)}function l(e){e||(e=t);var i=a(e);return!y.shivCSS||c||i.hasCSS||(i.hasCSS=!!n(e,"article,aside,dialog,figcaption,figure,footer,header,hgroup,main,nav,section{display:block}mark{background:#FF0;color:#000}template{display:none}")),u||s(e,i),e}var c,u,d="3.7.0",g=e.html5||{},f=/^<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/i,p=/^(?:a|b|code|div|fieldset|h1|h2|h3|h4|h5|h6|i|label|li|ol|p|q|span|strong|style|table|tbody|td|th|tr|ul)$/i,h="_html5shiv",m=0,v={};!function(){try{var e=t.createElement("a");e.innerHTML="<xyz></xyz>",c="hidden"in e,u=1==e.childNodes.length||function(){t.createElement("a");var e=t.createDocumentFragment();return void 0===e.cloneNode||void 0===e.createDocumentFragment||void 0===e.createElement}()}catch(n){c=!0,u=!0}}();var y={elements:g.elements||"abbr article aside audio bdi canvas data datalist details dialog figcaption figure footer header hgroup main mark meter nav output progress section summary template time video",version:d,shivCSS:g.shivCSS!==!1,supportsUnknownElements:u,shivMethods:g.shivMethods!==!1,type:"default",shivDocument:l,createElement:r,createDocumentFragment:o};e.html5=y,l(t)}(this,document);var G=fs(function(){this.createCancelableQueue=function(e){function t(t,a,r){var o={startCallback:a,errorCallback:r,runWhenFinished:function(e){o.startCallback=e.asyncOperation,o.errorCallback=e.asyncOperation},asyncOperation:function(){i.pendingOperation=o,e.startOperationCallback(),t(function(){delete i.pendingOperation,n||(o.startCallback.apply(this,arguments),e.finishOperationCallback())},function(){delete i.pendingOperation,n||(o.errorCallback.apply(this,arguments),e.finishOperationCallback())})}};return o}e=f.extend({startOperationCallback:cs,finishOperationCallback:cs},e);var n=!1,i={executeOperation:function(e,n,a){var r=t(e,n,a);i.pendingOperation?i.pendingOperation.runWhenFinished(r):r.asyncOperation()},dispose:function(){n=!0}};return i}}),X={Inline:"layer-inline",BeneathDialogs:"layer-beneath-dialogs",AboveAll:"layer-above-all",AboveDesignerPane:"layer-above-designer-pane"},Y=function(){var e=f.includeTemplatesGroup("loading-animations",{Element:"element"}),t=C.extend("LoadingAnimations",{init:function(t){t=f.quickExtend({isFixed:!1,overlayLayer:X.Inline},t);var n=t.className,i=t.isFixed,a=t.targetAreaCoordinates,r=t.areaUpdateEvents,o=t.overlayLayer;this._isFixed=i,this._targetAreaCoordinates=a,this._areaUpdateEvents=r;var s=f.useTemplate(e.Element).addClass(o).addClass(n);f(".loading-overlay",s),f(".loading-animation",s);i&&s.addClass("fixed-positioned"),this._$element=s},start:function(e){var t=this,n=(this._targetAreaCoordinates,this._$element),i=(this._isFixed,this._areaUpdateEvents);return n.appendTo(e),i?this._targetAreaListener=x.createEventListener(i,function(){t._updateAreaCoordinates()}).activateAndExecute():t._updateAreaCoordinates(),t},stop:function(){return this._$element.detach(),this._targetAreaListener&&(this._targetAreaListener.dispose(),delete this._targetAreaListener),this},_updateAreaCoordinates:function(){var e=f.evaluateWhenFunction(this._targetAreaCoordinates),t=this._$element;e?t.css({left:e.left,right:e.right,top:e.top,bottom:e.bottom}):t.css({left:"",top:"",right:"",bottom:""})}});return t.create=function(e){return new t(e)},t}();!function(e){e.fn.loading=function(t){return this.each(function(){var n=e(this),i=n.data("loading-animations");i&&(n.removeData("loading-animations"),i.stop()),t!==!1&&(i=Y.create(t),i.start(n),n.data("loading-animations",i))})}}(p);var K={Inline:"layer-inline",BeneathDialogs:"layer-beneath-dialogs",AboveAll:"layer-above-all",AboveDesignerPane:"layer-above-designer-pane"},Q=function(){var e=f.includeTemplatesGroup("element-overlay",{Element:"element"}),t=C.extend("ElementOverlay",{init:function(t){t=f.quickExtend({isFixed:!1,overlayLayer:K.AboveAll,destroyOnClick:!1},t);var n=this,i=t.className,a=t.isFixed,r=t.targetAreaCoordinates,o=t.areaUpdateEvents,s=t.overlayLayer,l=t.iconReference,c=t.message,u=t.closeText,d=t.textColor,g=t.backgroundColor,p=t.destroyOnClick;this._isFixed=a,this._targetAreaCoordinates=r,this._areaUpdateEvents=o;var h=f.useTemplate(e.Element).addClass(s).addClass(i),m=f(".element-overlay",h),v=f(".overlay-content",h),y=f(".overlay-icon",h),b=f(".overlay-message",h),C=f(".overlay-close",h);l&&Ir.applyIcon(y,l),c&&b.html(c),u&&(C.text(u),C.on("click",function(e){n.destroy(),e.stopPropagation()})),d&&v.css("color",d),g&&m.css("background",g),p&&h.on("click",function(e){n.destroy(),e.stopPropagation()}),a&&h.addClass("fixed-positioned"),this._$element=h},show:function(e){var t=this,n=(this._targetAreaCoordinates,this._$element),i=(this._isFixed,this._areaUpdateEvents);return n.appendTo(e),i?this._targetAreaListener=x.createEventListener(i,function(){t._updateAreaCoordinates()}).activateAndExecute():t._updateAreaCoordinates(),t},destroy:function(){return this._$element.detach(),this._targetAreaListener&&(this._targetAreaListener.dispose(),delete this._targetAreaListener),this},_updateAreaCoordinates:function(){var e=f.evaluateWhenFunction(this._targetAreaCoordinates),t=this._$element;e?t.css({left:e.left,right:e.right,top:e.top,bottom:e.bottom}):t.css({left:"",top:"",right:"",bottom:""})}});return t.create=function(e){return new t(e)},t}();!function(e){e.fn.elementOverlay=function(t){return this.each(function(){var n=e(this),i=n.data("element-overlay");i&&(n.removeData("element-overlay"),i.destroy()),t!==!1&&(i=Q.create(t),i.show(n),n.data("element-overlay",i))})}}(p);var J=window.Global,Z={AutoSaveTime:9e5,IsMobileClient:!1,AnimationDirections:{Left:"left",Right:"right",Up:"up",Down:"down"},MinPropertyZindex:2e3,MinExternalAppPropertyZindex:3e3,Flags:{IsDuringResizing:O.create(!1)},Events:{NavigableTabChanged:x.create(),NavigationFinished:x.create(),LastEventOnInitiailizatGlobal:x.create(),ElementRemoving:x.create(),ChildElementRemoved:x.create(),ElementsAdded:x.create(),ElementsAdding:x.create(),ContainerChanged:x.create(),DuplicateFinished:x.create(),DuplicateStarted:x.create(),HieararchyChanged:x.create(),CustomStyleChanged:x.create(),ConnectionAdded:x.create(),ConnectionRemoved:x.create(),ConnectionUpdated:x.create(),ConnectionRemoving:x.create(),ConnectionAdding:x.create(),BeforeElementDraggingStart:x.create(),ElementDraggingStart:x.create(),ElementDraggingStoped:x.create(),ElementResizingStart:x.create(),ElementResizingStop:x.create(),ElementResizingHappend:x.create(),VideoAdded:x.create(),NewVideoAdded:x.create(),SectionSizeChanged:x.create()},Priorities:{ImportantElementsEndAction:1010,ImportantElementsStartAction:990,ImportantElementsMiddleAction:1e3,MediumElementsEndAction:1010,MediumElementsStartAction:990,MediumElementsMiddleAction:1e3,RegularElementsEndAction:1010,RegularElementsStartAction:990,RegularElementsMiddleAction:1e3,ChangePageAction:2e3,OpenPopupAction:3e3,ClosePopupAction:3010},Keys:{ESC:27,Enter:13,Ctrl:17,Shift:16,Delete:46,Left:37,Up:38,Right:39,Down:40,Plus:107,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118}};!function(e){var t;for(t=65;90>=t;t++)e[String.fromCharCode(t)]=t;for(t=0;9>=t;t++)e["NUM"+t]=48+t}(Z.Keys),f.quickExtend(Z,J);var ee=window.console||{};ee.log=ee.log||cs,ee.warn=ee.warn||cs,ee.error=ee.error||cs,ee.info=ee.info||cs,ee.assert=ee.assert||cs,ee.time=ee.time||cs,ee.timeEnd=ee.timeEnd||cs;var te=window.PageData,ne=f.quickExtend({},te),ie={},ae={Remote:0,Local:1,AzureBlob:2,Application:3,Amazon:4,Service:5,Google:6},re={StockImages:1,Textures:2,Icons:3,AdminImages:4,UserFlash:21,UserSound:22,UserDocuments:23,UserImages:100,UserSVG:50,AdminSVG:51,PublicLogoSymbols:52,FacebookImages:5,LinkedImages:6,BackgroundImages:7,SiteImages:8,UnsplashImages:85,UserLibrary:12},oe={Image:1,Video:2,Flash:3,Sound:4,Document:5,Font:6,App:7,Site:8,Svg:50,Structure:12},se=fs(function(){function e(e){var t=window.devicePixelRatio||1;return e*=t,n/.75>e?n:e>=360?r:e>=270?a:i}function t(e){switch(e){case oe.Image:return"images";case oe.Video:return"video";case oe.Flash:return"flash";case oe.Sound:return"sound";case oe.Document:return"documents";case oe.Font:return"fonts";case oe.App:return"apps";case oe.Site:return"sites";case oe.Structure:return"structures";case oe.Svg:return"svg";default:return""}}this.getUserAssetsFolder=function(e,n,i){return Settings.UserStorageUrlsMap[n].format(i)+t(e)+"/"},this.getPublicAssetsFolder=function(e,n){return Settings.WebzaiStorageUrlsMap[n]+t(e)+"/"},this.isImagesAssetsCategory=function(e){switch(e){case re.StockImages:case re.UnsplashImages:case re.Textures:case re.BackgroundImages:case re.Icons:case re.AdminImages:case re.UserImages:case re.FacebookImages:case re.LinkedImages:case re.SiteImages:case re.UserLibrary:return!0;default:return!1}},this.isPublicLogoSymbol=function(e){return e===re.PublicLogoSymbols},this.isSvgAssetsCategory=function(e){return e===re.UserSVG},this.isSvgPublicAssetsCategory=function(e){return e===re.AdminSVG},this.isUserAssetsCategory=function(e){switch(e){case re.UserFlash:case re.UserDocuments:case re.UserImages:case re.UserSound:case re.LinkedImages:case re.SiteImages:case re.UserSVG:case re.UserLibrary:return!0;default:return!1}},this.isExternalAssetsCategory=function(e){switch(e){case re.FacebookImages:case re.UnsplashImages:return!0;default:return!1}},this.resolveImageUrlBasedOnLayout=function(e,t,n,i,a){return e&&"string"!=typeof e?(i=f.valueOrCalculate(i,function(){return void 0!==e.imageWidth&&void 0!==e.imageHeight?{width:e.imageWidth,height:e.imageHeight}:void 0}),se.resolveImageUrl(e,function(){switch(n){case cn.Original:case cn.Tile:case cn.TileHorizontally:case cn.TileVertically:return!1}return i?gn.calculateImageSizeInLayout(i,n,t):t},a)):e};var n=120,i=180,a=320,r=600;this.resolveImageUrl=function(t,n,i){i=f.quickExtend({forceRatioLocking:!0},i);var a=i.forceRatioLocking;if(t&&"string"!=typeof t){if(void 0===t.imagePath)return;"undefined"!=typeof TemporaryImages&&TemporaryImages[t.id]&&(t=TemporaryImages[t.id]);var r=t.imagePath,o=t.scaledVersions;if(t.storageServer==ae.Local&&void 0===o&&(t.scaledVersions=[{size:200,suffix:"_200"},{size:400,suffix:"_400"},{size:600,suffix:"_600"},{size:800,suffix:"_800"},{size:1e3,suffix:"_1000"}]),!a){var s=t.differentRatioScaledVersions;s&&(o=f.merge(f.merge([],s),f.valueOrDefault(o,[])))}if(n&&o&&(f.isFunction(n)&&(n=n()),n)){var l=f.grep(o,function(e){return e.size>=Math.max(n.width,n.height)});if(l.length>0){var c=f.minItem(l,function(e){return e.size});if(void 0!==c.imageUrl)return Ui.isCloudFlareImageRewriteActive()?Ui.modifyImageUrl(c.imageUrl):c.imageUrl;var u=f.splitFileName(r);r=u.fileName+c.suffix+u.extension}else if(!a){var d=f.grep(o,function(e){return e.size>Math.max(t.imageWidth,t.imageHeight)});if(d.length>0){var g=f.minItem(d,function(e){return e.size});if(void 0!==g.imageUrl)return Ui.isCloudFlareImageRewriteActive()?Ui.modifyImageUrl(g.imageUrl):g.imageUrl;var p=f.splitFileName(r);r=p.fileName+g.suffix+p.extension}}}var h=se.resolveAssetUrl({storageServer:f.valueOrDefault(t.storageServer,ae.Remote),ownerID:t.ownerID,fileName:r,assetType:oe.Image,title:t.title});if(Ui.isCloudFlareImageRewriteActive())return r=Ui.modifyImageUrl(h);if(t.useImageProxy){if(r=qi.createRequest(h),n&&!o){var m;if(m="function"==typeof n?n():n,m.width&&m.height){var v=Math.max(m.width,m.height);if(t.resizeOnImageProxy){var y=e(v);r=r.replace("/s/","/resizenp/"+y+"x"+y+"/fo1/")}else t.preferredSizeFunction&&(r=t.preferredSizeFunction(v))}}return r}return h}return t},this.getImageInfoForSaving=function(e){return e=f.extractKeys(e,["id","imagePath","thumbPath","ownerID","storageServer","preferedLayout","scaledVersions","differentRatioScaledVersions","imageWidth","imageHeight","isTemporary"]),e.thumbPath===e.imagePath&&(e.thumbPath=void 0),e},this.resolveFontUrl=function(e){return se.resolveAssetUrl({storageServer:e.storageServer,ownerID:e.ownerID,assetType:oe.Font,fileName:e.fileNamePrefix})},this.resolveAssetUrl=function(e){var n="",i=e.fileName;if(e.storageServer==ae.Amazon){var a=t(e.assetType);a=f.capitalizeFirstLetter(a),n="//s3.amazonaws.com/Webzai_"+a+"/"}else if(e.storageServer==ae.Service)n=Settings.ServiceAddress+t(e.assetType)+"/";else if(e.storageServer==ae.Application)n=f.combinePaths(Settings.ApplicationRoot,"assets",t(e.assetType));else if(e.storageServer!=ae.Remote)n=se.getAssetsFolder(e.ownerID,e.storageServer,e.assetType),i=f.mapItem(i.split("/"),function(e){return encodeURIComponent(e)}).join("/");else if(e.storageServer==ae.Remote)return i;return f.combinePaths(n,i)},this.getAssetsFolder=function(e,t,n){return null!==e?se.getUserAssetsFolder(n,t,e):se.getPublicAssetsFolder(n,t)},this.createApplicationAsset=function(e,t){return e===oe.Image?{imagePath:t,ownerID:null,storageServer:ae.Application}:{assetType:e,fileName:t,ownerID:null,storageServer:ae.Application}}}),le=fs(function(){function e(e){var n=t.get();return n?"all"===n||e.toLowerCase()===n.toLowerCase():!1}var t=w.create(function(){return f.getQueryStringParams().log});this.createLoggerFor=function(t,n){var i={debug:cs,info:cs,warn:cs,error:cs};return e(t)&&(n=f.valueOrDefault(n,t),i=f.extend(i,{debug:function(e){ee.log(n+" - "+(f.isFunction(e)?e():e))},info:function(e){ee.info(n+" - "+(f.isFunction(e)?e():e))},warn:function(e){ee.warn(n+" - "+(f.isFunction(e)?e():e))},error:function(e){ee.error(n+" - "+(f.isFunction(e)?e():e))}})),i}}),ce=window.JSONPController=fs(function(){var e=x.createNamedEvents();this.handle=function(t,n){e.fireNew(t,n)},this.on=function(t,n){return e.bind(t,n)}}),ue={profile:cs,count:cs,time:cs,timeEnd:cs,resetReadWriteTimer:cs,profileEnd:cs,informOnReadOperation:cs,informOnWriteOperation:cs,isEnable:ds},de={beginAtomicBatch:cs,endAtomicBatch:cs,disable:cs,disableOperationsRecording:cs,enableOperationsRecording:cs,disableUndo:cs,enableUndo:cs,isInUndoRedoState:ds,finishPrevBatch:cs,trackObservableObject:f.returnFixedValue({stopTracking:cs})},ge=fs(function(){function e(){var e=n();ue.profile("Viewer Initialization"),ra.initialize(ne.siteSettings),Qn.initialize(ne.ServicesBasePath),Vn.initialize(Er),Wi.initialize(),pr.initialize(),Ja.initialize(),ai.initialize(),Ia.initialize(SiteInformation),xr.initialize(),Gi.initialize(e.fonts),Pa.initialize(e.masterPages),va.initialize(e.pagesStructure),Ia.setSiteSettings(e.siteSettings),Mr.initialize(e.dataBindings),_r.initialize(e.dataRequests),Ka.initialize(),er.initialize(),Xa.initialize(),pa.initialize(ne.defaultAjaxPageID);var a=Ia.getStoreInformation();a.hasAppMarketStore&&Or.initializeAppMarketStoreFromStoreInformation(a),Cr.initialize(ne.defaultLists,e.listsInformation),wr.initialize(),Nr.initialize(),ue.profileEnd(),f(document).ready(function(){var n=f("body").addClass("preview-mode site-viewer");n.addClass("pc"),Z.IsMobileClient?n.addClass("mobile-client"):n.addClass("pc-client"),i(e),t()})}function t(){f.callRootFunction("onViewerReady"),Z.IsMobileClient?(f("body").removeClass("state-loading-mobile-viewer"),f("#mobile-loading-screen").remove()):(f("body").removeClass("state-loading-desktop-viewer"),f("#desktop-loading-screen").remove())}function n(){var e;e="string"==typeof SiteStructure?JSON.parse(SiteStructure):SiteStructure;var t="undefined"==typeof DBSiteMetaData?{}:DBSiteMetaData;return e=f.extend({masterPages:void 0,listsInformation:{}},e,t.siteStructureInformation),e.pagesStructure=f.extend({pagesData:void 0,pagesHierarchies:void 0},e.pagesStructure,t.pagesStructureInformation),e.pagesStructure.pages=e.pagesStructure.pages?e.pagesStructure.pages:{},f.extend(e.pagesStructure.pages,PagesStructures),f.each(PagesStructures,function(t,n){"string"==typeof n?e.pagesStructure.pages[t]=JSON.parse(n):e.pagesStructure.pages[t]=n}),f.each(MasterPagesStructures,function(t,n){"string"==typeof n?f.extend(e.masterPages[t],JSON.parse(n)):f.extend(e.masterPages[t],n)}),e}function i(e){a=f.extend({themes:void 0,pagesStructure:void 0,dataSources:void 0,masterPages:void 0},e);var t=f("#body-element");t.empty(),Z.OffsetAncestor=f('<div id="offset-anchor"></div>').appendTo(t),ue.profile("Viewer Initialization 2"),fi.initialize(),nr.initialize(),na.initialize(),va.initializeMinPageHeightRule(),fa.initialize(),ba.initialize(),Ha.initialize(),Ha.initializeState(),va.constructPagesHierarchy(a.pagesStructure),aa.initialize(),Yi.initialize(),Fa.initialize(),Ir.initialize(),ba.enableMouseOver(),as.initialize(),(Z.IsMobileView||Z.IsTabletView)&&Ha.initializeMobileForViewer(),ue.profileEnd(),pa.handleUrlChange(!0);t.scroll(function(){ba.invalidatePositioningRootOffset()}),Z.Events.LastEventOnInitiailizatGlobal.fireNew()}var a;this.initialize=function(){e()}});p.effects||function(e,t){function n(t,n){var i;do{if(i=(e.curCSS||e.css)(t,n),""!=i&&"transparent"!=i||e.nodeName(t,"body"))break;n="backgroundColor"}while(t=t.parentNode);return e.color.parse(i)}function i(){if(e.support.rgba===t){var n=document.getElementsByTagName("script")[0],i=n.style.color;try{n.style.color="rgba(1,5,13,0.44)"}catch(a){}var r=n.style.color!=i;n.style.color=i,e.support.rgba=r}return e.support.rgba}function a(t,n,i,a){return"object"==typeof t&&(a=n,i=null,n=t,t=n.effect),e.isFunction(n)&&(a=n,i=null,n={}),("number"==typeof n||e.fx.speeds[n])&&(a=i,i=n,n={}),e.isFunction(i)&&(a=i,i=null),n=n||{},i=i||n.duration,i=e.fx.off?0:"number"==typeof i?i:i in e.fx.speeds?e.fx.speeds[i]:e.fx.speeds._default,a=a||n.complete,[t,n,i,a]}function r(t){return!t||"number"==typeof t||e.fx.speeds[t]?!0:"string"==typeof t&&!e.effects[t]}e.effects={},e.eachItem(["backgroundColor","borderBottomColor","borderLeftColor","borderRightColor","borderTopColor","borderColor","color","outlineColor"],function(t,a){e.fx.step[a]=function(t){t.colorInit||(t.start=n(t.elem,a),t.end=e.color.parse(t.end),t.colorInit=!0),i()?t.elem.style[a]="rgba("+Math.max(Math.min(parseInt(t.pos*(t.end[0]-t.start[0])+t.start[0],10),255),0)+","+Math.max(Math.min(parseInt(t.pos*(t.end[1]-t.start[1])+t.start[1],10),255),0)+","+Math.max(Math.min(parseInt(t.pos*(t.end[2]-t.start[2])+t.start[2],10),255),0)+","+Math.max(Math.min(parseFloat(t.pos*(t.end[3]-t.start[3])+t.start[3]),1),0)+")":t.elem.style[a]="rgb("+Math.max(Math.min(parseInt(t.pos*(t.end[0]-t.start[0])+t.start[0],10),255),0)+","+Math.max(Math.min(parseInt(t.pos*(t.end[1]-t.start[1])+t.start[1],10),255),0)+","+Math.max(Math.min(parseInt(t.pos*(t.end[2]-t.start[2])+t.start[2],10),255),0)+")"}}),e.extend(e.effects,{version:"1.8.22",save:function(e,t){for(var n=0;n<t.length;n++)null!==t[n]&&e.data("ec.storage."+t[n],e[0].style[t[n]])},restore:function(e,t){for(var n=0;n<t.length;n++)null!==t[n]&&e.css(t[n],e.data("ec.storage."+t[n]))},setMode:function(e,t){return"toggle"==t&&(t=e.is(":hidden")?"show":"hide"),t},getBaseline:function(e,t){var n,i;switch(e[0]){case"top":n=0;break;case"middle":n=.5;break;case"bottom":n=1;break;default:n=e[0]/t.height}switch(e[1]){case"left":i=0;break;case"center":i=.5;break;case"right":i=1;break;default:i=e[1]/t.width}return{x:i,y:n}},createWrapper:function(t){if(t.parent().is(".ui-effects-wrapper"))return t.parent();var n={width:t.outerWidth(!0),height:t.outerHeight(!0),"float":t.css("float")},i=e("<div></div>").addClass("ui-effects-wrapper").css({
fontSize:"100%",background:"transparent",border:"none",margin:0,padding:0}),a=document.activeElement;try{a.id}catch(r){a=document.body}return t.wrap(i),(t[0]===a||e.contains(t[0],a))&&e(a).focus(),i=t.parent(),"static"==t.css("position")?(i.css({position:"relative"}),t.css({position:"relative"})):(e.extend(n,{position:t.css("position"),zIndex:t.css("z-index")}),e.eachItem(["top","left","bottom","right"],function(e,i){n[i]=t.css(i),isNaN(parseInt(n[i],10))&&(n[i]="auto")}),t.css({position:"relative",top:0,left:0,right:"auto",bottom:"auto"})),i.css(n).show()},removeWrapper:function(t){var n,i=document.activeElement;return t.parent().is(".ui-effects-wrapper")?(n=t.parent().replaceWith(t),(t[0]===i||e.contains(t[0],i))&&e(i).focus(),n):t},setTransition:function(t,n,i,a){return a=a||{},e.each(n,function(e,n){var r=t.cssUnit(n);r[0]>0&&(a[n]=r[0]*i+r[1])}),a}}),e.fn.extend({effect:function(t){var n=a.apply(this,arguments),i={options:n[1],duration:n[2],callback:n[3]},r=i.options.mode,o=e.effects[t];return e.fx.off||!o?r?this[r](i.duration,i.callback):this.each(function(){i.callback&&i.callback.call(this)}):o.call(this,i)},_show:e.fn.show,show:function(e){if(r(e))return this._show.apply(this,arguments);var t=a.apply(this,arguments);return t[1].mode="show",this.effect.apply(this,t)},_hide:e.fn.hide,hide:function(e){if(r(e))return this._hide.apply(this,arguments);var t=a.apply(this,arguments);return t[1].mode="hide",this.effect.apply(this,t)},__toggle:e.fn.toggle,toggle:function(t){if(r(t)||"boolean"==typeof t||e.isFunction(t))return this.__toggle.apply(this,arguments);var n=a.apply(this,arguments);return n[1].mode="toggle",this.effect.apply(this,n)},cssUnit:function(t){var n=this.css(t),i=[];return e.eachItem(["em","px","%","pt"],function(e,t){n.indexOf(t)>0&&(i=[parseFloat(n),t])}),i}}),e.easing.jswing=e.easing.swing,e.extend(e.easing,{def:"easeOutQuad",linear:function(e,t,n,i,a){return t/a*i+n},swing:function(t,n,i,a,r){return e.easing[e.easing.def](t,n,i,a,r)},easeInQuad:function(e,t,n,i,a){return i*(t/=a)*t+n},easeOutQuad:function(e,t,n,i,a){return-i*(t/=a)*(t-2)+n},easeInOutQuad:function(e,t,n,i,a){return(t/=a/2)<1?i/2*t*t+n:-i/2*(--t*(t-2)-1)+n},easeInCubic:function(e,t,n,i,a){return i*(t/=a)*t*t+n},easeOutCubic:function(e,t,n,i,a){return i*((t=t/a-1)*t*t+1)+n},easeInOutCubic:function(e,t,n,i,a){return(t/=a/2)<1?i/2*t*t*t+n:i/2*((t-=2)*t*t+2)+n},easeInQuart:function(e,t,n,i,a){return i*(t/=a)*t*t*t+n},easeOutQuart:function(e,t,n,i,a){return-i*((t=t/a-1)*t*t*t-1)+n},easeInOutQuart:function(e,t,n,i,a){return(t/=a/2)<1?i/2*t*t*t*t+n:-i/2*((t-=2)*t*t*t-2)+n},easeInQuint:function(e,t,n,i,a){return i*(t/=a)*t*t*t*t+n},easeOutQuint:function(e,t,n,i,a){return i*((t=t/a-1)*t*t*t*t+1)+n},easeInOutQuint:function(e,t,n,i,a){return(t/=a/2)<1?i/2*t*t*t*t*t+n:i/2*((t-=2)*t*t*t*t+2)+n},easeInSine:function(e,t,n,i,a){return-i*Math.cos(t/a*(Math.PI/2))+i+n},easeOutSine:function(e,t,n,i,a){return i*Math.sin(t/a*(Math.PI/2))+n},easeInOutSine:function(e,t,n,i,a){return-i/2*(Math.cos(Math.PI*t/a)-1)+n},easeInExpo:function(e,t,n,i,a){return 0==t?n:i*Math.pow(2,10*(t/a-1))+n},easeOutExpo:function(e,t,n,i,a){return t==a?n+i:i*(-Math.pow(2,-10*t/a)+1)+n},easeInOutExpo:function(e,t,n,i,a){return 0==t?n:t==a?n+i:(t/=a/2)<1?i/2*Math.pow(2,10*(t-1))+n:i/2*(-Math.pow(2,-10*--t)+2)+n},easeInCirc:function(e,t,n,i,a){return-i*(Math.sqrt(1-(t/=a)*t)-1)+n},easeOutCirc:function(e,t,n,i,a){return i*Math.sqrt(1-(t=t/a-1)*t)+n},easeInOutCirc:function(e,t,n,i,a){return(t/=a/2)<1?-i/2*(Math.sqrt(1-t*t)-1)+n:i/2*(Math.sqrt(1-(t-=2)*t)+1)+n},easeInElastic:function(e,t,n,i,a){var r=1.70158,o=0,s=i;if(0==t)return n;if(1==(t/=a))return n+i;if(o||(o=.3*a),s<Math.abs(i)){s=i;var r=o/4}else var r=o/(2*Math.PI)*Math.asin(i/s);return-(s*Math.pow(2,10*(t-=1))*Math.sin((t*a-r)*(2*Math.PI)/o))+n},easeOutElastic:function(e,t,n,i,a){var r=1.70158,o=0,s=i;if(0==t)return n;if(1==(t/=a))return n+i;if(o||(o=.3*a),s<Math.abs(i)){s=i;var r=o/4}else var r=o/(2*Math.PI)*Math.asin(i/s);return s*Math.pow(2,-10*t)*Math.sin((t*a-r)*(2*Math.PI)/o)+i+n},easeInOutElastic:function(e,t,n,i,a){var r=1.70158,o=0,s=i;if(0==t)return n;if(2==(t/=a/2))return n+i;if(o||(o=a*(.3*1.5)),s<Math.abs(i)){s=i;var r=o/4}else var r=o/(2*Math.PI)*Math.asin(i/s);return 1>t?-.5*(s*Math.pow(2,10*(t-=1))*Math.sin((t*a-r)*(2*Math.PI)/o))+n:s*Math.pow(2,-10*(t-=1))*Math.sin((t*a-r)*(2*Math.PI)/o)*.5+i+n},easeInBack:function(e,n,i,a,r,o){return o==t&&(o=1.70158),a*(n/=r)*n*((o+1)*n-o)+i},easeOutBack:function(e,n,i,a,r,o){return o==t&&(o=1.70158),a*((n=n/r-1)*n*((o+1)*n+o)+1)+i},easeInOutBack:function(e,n,i,a,r,o){return o==t&&(o=1.70158),(n/=r/2)<1?a/2*(n*n*(((o*=1.525)+1)*n-o))+i:a/2*((n-=2)*n*(((o*=1.525)+1)*n+o)+2)+i},easeInBounce:function(t,n,i,a,r){return a-e.easing.easeOutBounce(t,r-n,0,a,r)+i},easeOutBounce:function(e,t,n,i,a){return(t/=a)<1/2.75?i*(7.5625*t*t)+n:2/2.75>t?i*(7.5625*(t-=1.5/2.75)*t+.75)+n:2.5/2.75>t?i*(7.5625*(t-=2.25/2.75)*t+.9375)+n:i*(7.5625*(t-=2.625/2.75)*t+.984375)+n},easeInOutBounce:function(t,n,i,a,r){return r/2>n?.5*e.easing.easeInBounce(t,2*n,0,a,r)+i:.5*e.easing.easeOutBounce(t,2*n-r,0,a,r)+.5*a+i}})}(p),/*!
 * jQuery UI Effects Drop 1.8.22
 *
 * Copyright 2012, AUTHORS.txt (http://jqueryui.com/about)
 * Dual licensed under the MIT or GPL Version 2 licenses.
 * http://jquery.org/license
 *
 * http://docs.jquery.com/UI/Effects/Drop
 *
 * Depends:
 *	jquery.effects.core.js
 */
function(e){e.effects.drop=function(t){return this.queue(function(){var n=e(this),i=["position","top","bottom","left","right","opacity"],a=e.effects.setMode(n,t.options.mode||"hide"),r=t.options.direction||"left";e.effects.save(n,i),n.show();var o=e.effects.createWrapper(n),s="up"==r||"down"==r?"top":"left",l="up"==r||"left"==r?"pos":"neg",c=t.options.distance||("top"==s?n.outerHeight(!0)/2:n.outerWidth(!0)/2);"show"==a&&n.css("opacity",0).css(s,"pos"==l?-c:c);var u={opacity:"show"==a?1:0};u[s]=("show"==a?"pos"==l?"+=":"-=":"pos"==l?"-=":"+=")+c,n.animate(u,{queue:!1,duration:t.duration,easing:t.options.easing,always:function(){"hide"==a&&n.hide(),e.effects.restore(n,i),e.effects.removeWrapper(n),o.remove(),t.callback&&t.callback.apply(this,arguments),n.dequeue()}})})}}(p),/*!
 * jQuery UI Effects Fade 1.8.22
 *
 * Copyright 2012, AUTHORS.txt (http://jqueryui.com/about)
 * Dual licensed under the MIT or GPL Version 2 licenses.
 * http://jquery.org/license
 *
 * http://docs.jquery.com/UI/Effects/Fade
 *
 * Depends:
 *	jquery.effects.core.js
 */
function(e){e.effects.fade=function(t){return this.queue(function(){var n=e(this),i=e.effects.setMode(n,t.options.mode||"hide");n.animate({opacity:i},{queue:!1,duration:t.duration,easing:t.options.easing,complete:function(){t.callback&&t.callback.apply(this,arguments),n.dequeue()}})})}}(p),/*!
 * jQuery UI Effects Highlight 1.8.22
 *
 * Copyright 2012, AUTHORS.txt (http://jqueryui.com/about)
 * Dual licensed under the MIT or GPL Version 2 licenses.
 * http://jquery.org/license
 *
 * http://docs.jquery.com/UI/Effects/Highlight
 *
 * Depends:
 *	jquery.effects.core.js
 */
function(e){e.effects.highlight=function(t){return this.queue(function(){var n=e(this),i=["backgroundImage","backgroundColor","opacity"],a=e.effects.setMode(n,t.options.mode||"show"),r={backgroundColor:n.css("backgroundColor")};"hide"==a&&(r.opacity=0),e.effects.save(n,i),n.show().css({backgroundImage:"none",backgroundColor:t.options.color||"#ffff99"}).animate(r,{queue:!1,duration:t.duration,easing:t.options.easing,complete:function(){"hide"==a&&n.hide(),e.effects.restore(n,i),"show"==a&&!e.support.opacity&&this.style.removeAttribute("filter"),t.callback&&t.callback.apply(this,arguments),n.dequeue()}})})}}(p),/*!
 * jQuery UI Effects Scale 1.8.22
 *
 * Copyright 2012, AUTHORS.txt (http://jqueryui.com/about)
 * Dual licensed under the MIT or GPL Version 2 licenses.
 * http://jquery.org/license
 *
 * http://docs.jquery.com/UI/Effects/Scale
 *
 * Depends:
 *	jquery.effects.core.js
 */
function(e){e.effects.scale=function(t){return this.queue(function(){var n=e(this),i=e.extend(!0,{},t.options),a=e.effects.setMode(n,t.options.mode||"effect"),r=parseInt(t.options.percent,10)||(0==parseInt(t.options.percent,10)?0:"hide"==a?0:100),o=t.options.direction||"both",s=t.options.origin;"effect"!=a&&(i.origin=s||["middle","center"],i.restore=!0);var l={height:n.height(),width:n.width()};n.from=t.options.from||("show"==a?{height:0,width:0}:l);var c={y:"horizontal"!=o?r/100:1,x:"vertical"!=o?r/100:1};n.to={height:l.height*c.y,width:l.width*c.x},t.options.fade&&("show"==a&&(n.from.opacity=0,n.to.opacity=1),"hide"==a&&(n.from.opacity=1,n.to.opacity=0)),i.from=n.from,i.to=n.to,i.mode=a,n.effect("size",i,t.duration,t.callback),n.dequeue()})},e.effects.size=function(t){return this.queue(function(){var n=e(this),i=["position","top","bottom","left","right","width","height","overflow","opacity"],a=["position","top","bottom","left","right","overflow","opacity"],r=["width","height","overflow"],o=["fontSize"],s=["borderTopWidth","borderBottomWidth","paddingTop","paddingBottom"],l=["borderLeftWidth","borderRightWidth","paddingLeft","paddingRight"],c=e.effects.setMode(n,t.options.mode||"effect"),u=t.options.restore||!1,d=t.options.scale||"both",g=t.options.origin,f={height:n.height(),width:n.width()};if(n.from=t.options.from||f,n.to=t.options.to||f,g){var p=e.effects.getBaseline(g,f);n.from.top=(f.height-n.from.height)*p.y,n.from.left=(f.width-n.from.width)*p.x,n.to.top=(f.height-n.to.height)*p.y,n.to.left=(f.width-n.to.width)*p.x}var h={from:{y:n.from.height/f.height,x:n.from.width/f.width},to:{y:n.to.height/f.height,x:n.to.width/f.width}};"box"!=d&&"both"!=d||(h.from.y!=h.to.y&&(i=i.concat(s),n.from=e.effects.setTransition(n,s,h.from.y,n.from),n.to=e.effects.setTransition(n,s,h.to.y,n.to)),h.from.x!=h.to.x&&(i=i.concat(l),n.from=e.effects.setTransition(n,l,h.from.x,n.from),n.to=e.effects.setTransition(n,l,h.to.x,n.to))),"content"!=d&&"both"!=d||h.from.y!=h.to.y&&(i=i.concat(o),n.from=e.effects.setTransition(n,o,h.from.y,n.from),n.to=e.effects.setTransition(n,o,h.to.y,n.to)),e.effects.save(n,u?i:a),n.show(),e.effects.createWrapper(n),n.css("overflow","hidden").css(n.from),"content"!=d&&"both"!=d||(s=s.concat(["marginTop","marginBottom"]).concat(o),l=l.concat(["marginLeft","marginRight"]),r=i.concat(s).concat(l),n.find("*[width]").each(function(){var n=e(this);u&&e.effects.save(n,r);var i={height:n.height(),width:n.width()};n.from={height:i.height*h.from.y,width:i.width*h.from.x},n.to={height:i.height*h.to.y,width:i.width*h.to.x},h.from.y!=h.to.y&&(n.from=e.effects.setTransition(n,s,h.from.y,n.from),n.to=e.effects.setTransition(n,s,h.to.y,n.to)),h.from.x!=h.to.x&&(n.from=e.effects.setTransition(n,l,h.from.x,n.from),n.to=e.effects.setTransition(n,l,h.to.x,n.to)),n.css(n.from),n.animate(n.to,t.duration,t.options.easing,function(){u&&e.effects.restore(n,r)})})),n.animate(n.to,{queue:!1,duration:t.duration,easing:t.options.easing,complete:function(){0===n.to.opacity&&n.css("opacity",n.from.opacity),"hide"==c&&n.hide(),e.effects.restore(n,u?i:a),e.effects.removeWrapper(n),t.callback&&t.callback.apply(this,arguments),n.dequeue()}})})}}(p),/*!
 * jQuery UI Effects Slide 1.8.22
 *
 * Copyright 2012, AUTHORS.txt (http://jqueryui.com/about)
 * Dual licensed under the MIT or GPL Version 2 licenses.
 * http://jquery.org/license
 *
 * http://docs.jquery.com/UI/Effects/Slide
 *
 * Depends:
 *	jquery.effects.core.js
 */
function(e){e.effects.slide=function(t){return this.queue(function(){var n=e(this),i=["position","top","bottom","left","right"],a=e.effects.setMode(n,t.options.mode||"show"),r=t.options.direction||"left";e.effects.save(n,i),n.show(),e.effects.createWrapper(n).css({overflow:"hidden"});var o="up"==r||"down"==r?"top":"left",s="up"==r||"left"==r?"pos":"neg",l=t.options.distance||("top"==o?n.outerHeight(!0):n.outerWidth(!0));"show"==a&&n.css(o,"pos"==s?isNaN(l)?"-"+l:-l:l);var c={};c[o]=("show"==a?"pos"==s?"+=":"-=":"pos"==s?"-=":"+=")+l,n.animate(c,{queue:!1,duration:t.duration,easing:t.options.easing,complete:function(){"hide"==a&&n.hide(),e.effects.restore(n,i),e.effects.removeWrapper(n),t.callback&&t.callback.apply(this,arguments),n.dequeue()}})})}}(p),/*!
 * jQuery UI Effects Transfer 1.8.22
 *
 * Copyright 2012, AUTHORS.txt (http://jqueryui.com/about)
 * Dual licensed under the MIT or GPL Version 2 licenses.
 * http://jquery.org/license
 *
 * http://docs.jquery.com/UI/Effects/Transfer
 *
 * Depends:
 *	jquery.effects.core.js
 */
function(e){e.effects.transfer=function(t){return this.queue(function(){var n=e(this),i=e(t.options.to),a=i.offset(),r={top:a.top,left:a.left,height:i.innerHeight(),width:i.innerWidth()},o=n.offset(),s=e('<div class="ui-effects-transfer"></div>').appendTo(document.body).addClass(t.options.className).css({top:o.top,left:o.left,height:n.innerHeight(),width:n.innerWidth(),position:"absolute"}).animate(r,t.duration,t.options.easing,function(){s.remove(),t.callback&&t.callback.apply(n[0],arguments),n.dequeue()})})}}(p),WzPublicIcons={name:"public-font-icons",fontClass:"public-icons",icons:{"@-18273612831":{code:"e900"},set255:{code:"e901"},set2552:{code:"e902"},set2553:{code:"e903"},set2554:{code:"e904"},"address-book_1":{code:"e905"},"address-book_2":{code:"e906"},"airplane-125161651":{code:"e907"},"airplane-128612983":{code:"e908"},"alarm-clock":{code:"e909"},"alarm-clock-235":{code:"e90a"},"alarm-clock-19284691264":{code:"e90b"},anchor:{code:"e90c"},android:{code:"e90d"},"angle-double-down":{code:"e90e"},"angle-double-left":{code:"e90f"},"angle-double-right":{code:"e910"},"angle-double-up":{code:"e911"},"angle-down":{code:"e912"},"angle-left":{code:"e913"},"angle-right":{code:"e914"},"angle-up":{code:"e915"},"antena-2847239":{code:"e916"},apple:{code:"e917"},archive:{code:"e918"},"arrow-234523":{code:"e919"},"arrow-19824371924":{code:"e91a"},"arrow-chart-192834612":{code:"e91b"},"arrow-chart-1928346127":{code:"e91c"},"arrow-circle-down":{code:"e91d"},"arrow-circle-left":{code:"e91e"},"arrow-circle-o-down":{code:"e91f"},"arrow-circle-o-left":{code:"e920"},"arrow-circle-o-right":{code:"e921"},"arrow-circle-o-up":{code:"e922"},"arrow-circle-right":{code:"e923"},"arrow-circle-up":{code:"e924"},"arrow-down":{code:"e925"},"arrow-left":{code:"e926"},"arrow-right":{code:"e927"},"arrows-87644":{code:"e928"},"arrows-298479283":{code:"e929"},"arrows-2397462394":{code:"e92a"},"arrows-293784623946":{code:"e92b"},"arrows-81978461976491241":{code:"e92c"},"arrow-up":{code:"e92d"},asterisk:{code:"e92e"},automobile:{code:"e92f"},avatar_1:{code:"e930"},avatar_2:{code:"e931"},"axe-hatchet-23423":{code:"e932"},backward:{code:"e933"},ball:{code:"e934"},"ball-2937856":{code:"e935"},ballbath:{code:"e936"},"ball-disc-123512512":{code:"e937"},"bandaid-83274532":{code:"e938"},bank_2:{code:"e939"},"bank-193847129":{code:"e93a"},"basket-1213123":{code:"e93b"},"battery-23525":{code:"e93c"},"battery-21354151":{code:"e93d"},"beach-3245":{code:"e93e"},"beach-chair-9183719283":{code:"e93f"},"bed-0986":{code:"e940"},"bed-9887934879":{code:"e941"},beer:{code:"e942"},behance:{code:"e943"},"behance-square":{code:"e944"},bell:{code:"e945"},bell_1:{code:"e946"},"bell-235":{code:"e947"},"bell-1414":{code:"e948"},"bell-7246":{code:"e949"},"bell-92184y91846":{code:"e94a"},"bell-o":{code:"e94b"},bicycle:{code:"e94c"},bicycle_chain:{code:"e94d"},bicycle_chair:{code:"e94e"},binders:{code:"e94f"},"binders-folders-23423":{code:"e950"},binoculars:{code:"e951"},"binoculars-723645812354":{code:"e952"},"bird-128368976512":{code:"e953"},birds_1:{code:"e954"},birds_2:{code:"e955"},birds_3:{code:"e956"},birds_4:{code:"e957"},birds_5:{code:"e958"},birds_6:{code:"e959"},bitbucket:{code:"e95a"},"boat-2346":{code:"e95b"},"boat-234213414":{code:"e95c"},"boat-sail-128371923":{code:"e95d"},"boat-sea":{code:"e95e"},"boat-sea-1":{code:"e95f"},"boat-sea-1-287345":{code:"e960"},"boat-sea-8273648":{code:"e961"},"boat-ship-21978461289734612879":{code:"e962"},bomb:{code:"e963"},book:{code:"e964"},book_1:{code:"e965"},book_2:{code:"e966"},"book-19283y192":{code:"e967"},"book-162347":{code:"e968"},"book-88267637":{code:"e969"},"book-2837453278":{code:"e96a"},"book-19874612946":{code:"e96b"},bookmark:{code:"e96c"},"bookmark-o":{code:"e96d"},"bridge-1928346":{code:"e96e"},briefcase:{code:"e96f"},briefcase_2:{code:"e970"},bug:{code:"e971"},building:{code:"e972"},building_2:{code:"e973"},"building-2452":{code:"e974"},"building-19843619":{code:"e975"},"building-123819238":{code:"e976"},"building-139846192":{code:"e977"},"building-120387687612":{code:"e978"},"building-o":{code:"e979"},bullhorn:{code:"e97a"},bullseye:{code:"e97b"},"business-12938y1923":{code:"e97c"},"business-2234141":{code:"e97d"},"business-1341241241":{code:"e97e"},cab:{code:"e97f"},calander:{code:"e980"},"calander-2362":{code:"e981"},"calander-21352":{code:"e982"},"calander-2984692":{code:"e983"},"calander-123415151":{code:"e984"},"calander-1923869761":{code:"e985"},"calander-19283619823":{code:"e986"},"calander-21048176491":{code:"e987"},calculator:{code:"e988"},"calculator-187361983":{code:"e989"},"calculator-234876129":{code:"e98a"},"calculator-10982698213":{code:"e98b"},"calculator-1928347198736912":{code:"e98c"},calendar:{code:"e98d"},calendar_1:{code:"e98e"},calendar_2:{code:"e98f"},"calendar-o":{code:"e990"},camera:{code:"e991"},camera_1:{code:"e992"},"camera-37432":{code:"e993"},"camera-235236":{code:"e994"},"camera-25236272":{code:"e995"},"camera-1412414141":{code:"e996"},"camera-1983719873":{code:"e997"},"camera-1093481094710":{code:"e998"},"camera-23904876213946":{code:"e999"},"camera-2948762394867239":{code:"e99a"},"camera-2047231904723984792":{code:"e99b"},"camera-retro":{code:"e99c"},"car-8798792387":{code:"e99d"},"car-87987923876":{code:"e99e"},"car-879782378872387":{code:"e99f"},"car-bus-23512521":{code:"e9a0"},"car-bus-van-1983719031":{code:"e9a1"},"card-28470242":{code:"e9a2"},"card-989823489":{code:"e9a3"},"card-2938467293845":{code:"e9a4"},"card-2398472946792342":{code:"e9a5"},"cart-183yu19381":{code:"e9a6"},"cart-2394862934":{code:"e9a7"},"car-taxi":{code:"e9a8"},"car-taxi-23746239846":{code:"e9a9"},"car-truck-197846129":{code:"e9aa"},"cart-shopping-12984691":{code:"e9ab"},"case-91824y9184791":{code:"e9ac"},"case-19726412":{code:"e9ad"},"case-235235621":{code:"e9ae"},"case-901286978y4":{code:"e9af"},"case-12938719023":{code:"e9b0"},"case-9889348799874":{code:"e9b1"},"case-12394876194619":{code:"e9b2"},"case-018741284791284":{code:"e9b3"},"cell-phone-9187369128":{code:"e9b4"},certificate:{code:"e9b5"},certificate_2:{code:"e9b6"},chain:{code:"e9b7"},"chair-1234123":{code:"e9b8"},"chart-1928371":{code:"e9b9"},"chart-graph-123869`1":{code:"e9ba"},"chart-graph-9861298756":{code:"e9bb"},check:{code:"e9bc"},"check-circle":{code:"e9bd"},"check-circle-o":{code:"e9be"},"check-square-o":{code:"e9bf"},"chef-cook-239846":{code:"e9c0"},"chevron-circle-down":{code:"e9c1"},"chevron-circle-left":{code:"e9c2"},"chevron-circle-right":{code:"e9c3"},"chevron-circle-up":{code:"e9c4"},"chevron-down":{code:"e9c5"},"chevron-left":{code:"e9c6"},"chevron-right":{code:"e9c7"},"chevron-up":{code:"e9c8"},chicken1242:{code:"e9c9"},child:{code:"e9ca"},"clip-187451":{code:"e9cb"},"clip-1289746128":{code:"e9cc"},"clip-29384692334":{code:"e9cd"},"clipboard-194381y6397860":{code:"e9ce"},"clipboard-14141241":{code:"e9cf"},"clipboard-19836791":{code:"e9d0"},"clipboard-102869865":{code:"e9d1"},clock_1:{code:"e9d2"},clock_2:{code:"e9d3"},"clock-12974619":{code:"e9d4"},"clock-20387209":{code:"e9d5"},"clock-123879086124":{code:"e9d6"},"clock-912846912641":{code:"e9d7"},"clock-o":{code:"e9d8"},"clock-time-154151":{code:"e9d9"},cloud:{code:"e9da"},"cloud-125":{code:"e9db"},"cloud-219834612":{code:"e9dc"},"cloud-893877347":{code:"e9dd"},"cloud-2198346127":{code:"e9de"},"cloud-237562387562":{code:"e9df"},"cloud-download":{code:"e9e0"},"cloud-download-12412":{code:"e9e1"},"cloud-upload-12412":{code:"e9e2"},"clubs-1273461289":{code:"e9e3"},cny:{code:"e9e4"},codex:{code:"e9e5"},"codex-235":{code:"e9e6"},"codex-2348y2395678293":{code:"e9e7"},"codex-12273417253":{code:"e9e8"},coffee:{code:"e9e9"},"coffee-tea-drink-hot-878723788732":{code:"e9ea"},cog:{code:"e9eb"},cog_1:{code:"e9ec"},comment:{code:"e9ed"},"comment-252":{code:"e9ee"},"comment-28345245":{code:"e9ef"},"comment-215662151":{code:"e9f0"},"comment-89236496234":{code:"e9f1"},"comment-23048721047210":{code:"e9f2"},"comment-o":{code:"e9f3"},comments:{code:"e9f4"},"comments-2362462":{code:"e9f5"},"comments-28375275":{code:"e9f6"},"comments-92186491264":{code:"e9f7"},"comments-2038471086901":{code:"e9f8"},"comments-2038472946792":{code:"e9f9"},"comments-o":{code:"e9fa"},compass:{code:"e9fb"},compass_1:{code:"e9fc"},"compass-12425":{code:"e9fd"},"compass-28645265":{code:"e9fe"},"compass-82345823":{code:"e9ff"},"compass-237861298":{code:"ea00"},compress:{code:"ea01"},computer_1:{code:"ea02"},"computer-125`15`5`1651651":{code:"ea03"},"computer-1983y12936129":{code:"ea04"},"computer-2135421":{code:"ea05"},"computer-123816931":{code:"ea06"},"computer-12843719834":{code:"ea07"},"computer-192387461936":{code:"ea08"},"computer-money-19286987512":{code:"ea09"},"contact-125235235":{code:"ea0a"},"contact-7672354234":{code:"ea0b"},"contact-71264817254":{code:"ea0c"},"conversation-bubbles_1":{code:"ea0d"},copy:{code:"ea0e"},"copyrights-8776545":{code:"ea0f"},"copyrights-233452517":{code:"ea10"},"credit-card":{code:"ea11"},"crossed-eye-1241":{code:"ea12"},crosshairs:{code:"ea13"},"crosshairs-24652":{code:"ea14"},cube:{code:"ea15"},cubes:{code:"ea16"},"cup-128735":{code:"ea17"},"currency-19836911":{code:"ea18"},"currency-money-dollar19836911":{code:"ea19"},cutlery:{code:"ea1a"},dashboard:{code:"ea1b"},database:{code:"ea1c"},desktop:{code:"ea1d"},digg:{code:"ea1e"},disc:{code:"ea1f"},disc_1:{code:"ea20"},"disc-23523w":{code:"ea21"},"disc-98567":{code:"ea22"},"dish-food-2346":{code:"ea23"},"disk-13861931":{code:"ea24"},"disk-1928367129":{code:"ea25"},dollar:{code:"ea26"},"dollar-8764":{code:"ea27"},download:{code:"ea28"},"download-arrow-11297836":{code:"ea29"},dribbble:{code:"ea2a"},"drill-tools":{code:"ea2b"},"drink-1":{code:"ea2c"},"drink-cup-234241":{code:"ea2d"},"drink-cup-2147512841":{code:"ea2e"},dropbox:{code:"ea2f"},"earth-globe-15165161":{code:"ea30"},"earth-globe-151651618":{code:"ea31"},edit:{code:"ea32"},"ellipsis-h":{code:"ea33"},"ellipsis-v":{code:"ea34"},employee_2:{code:"ea35"},employees_2:{code:"ea36"},envelope:{code:"ea37"},envelope_1:{code:"ea38"},"envelope-o":{code:"ea39"},etsy:{code:"ea3a"},euro:{code:"ea3b"},"euro-858":{code:"ea3c"},"euro-66253427":{code:"ea3d"},"exclamation-circle":{code:"ea3e"},expand:{code:"ea3f"},eye:{code:"ea40"},"eye-214":{code:"ea41"},"eye-38756387":{code:"ea42"},"eye-crossed-23453245":{code:"ea43"},"eye-slash":{code:"ea44"},facebook:{code:"ea45"},"facebook-square":{code:"ea46"},"fast-backward":{code:"ea47"},"fast-backward-2356235123":{code:"ea48"},"fast-backward-23562351234574":{code:"ea49"},"fast-forward":{code:"ea4a"},"fast-forward-2356235123":{code:"ea4b"},"fast-forward-2356235123868":{code:"ea4c"},fax:{code:"ea4d"},female:{code:"ea4e"},file:{code:"ea4f"},"file-9978367363":{code:"ea50"},"file-997836736367":{code:"ea51"},"file-code-o":{code:"ea52"},"file-excel-o":{code:"ea53"},"file-movie-o":{code:"ea54"},"file-o":{code:"ea55"},"file-page-2352352352":{code:"ea56"},"file-pdf-o":{code:"ea57"},"file-photo-o":{code:"ea58"},"file-powerpoint-o":{code:"ea59"},"files-29846723":{code:"ea5a"},"files-274627451":{code:"ea5b"},"files-8273564821":{code:"ea5c"},"files-9837649586":{code:"ea5d"},"file-sound-o":{code:"ea5e"},"file-text":{code:"ea5f"},"file-text-o":{code:"ea60"},"file-word-o":{code:"ea61"},"file-zip-o":{code:"ea62"},film:{code:"ea63"},film_1:{code:"ea64"},"film-12423":{code:"ea65"},"film-910283710":{code:"ea66"},"film-192843612946":{code:"ea67"},"film-198736917633":{code:"ea68"},"fins-123y129":{code:"ea69"},"fins-184619284691":{code:"ea6a"},fire:{code:"ea6b"},"fire-flame-1297346128273":{code:"ea6c"},flag:{code:"ea6d"},"flag-14124":{code:"ea6e"},"flag-726424652":{code:"ea6f"},"flag-18946194691":{code:"ea70"},"flag-91276389712653":{code:"ea71"},"flag-checkered":{code:"ea72"},"flag-o":{code:"ea73"},flash:{code:"ea74"},flask:{code:"ea75"},flickr:{code:"ea76"},flip_flop:{code:"ea77"},"flip_flop-286354832":{code:"ea78"},folder:{code:"ea79"},"folder-235":{code:"ea7a"},"folder-7647":{code:"ea7b"},"folder-23862386":{code:"ea7c"},"folder-open":{code:"ea7d"},"folders-2414":{code:"ea7e"},"folders-198236y192346912":{code:"ea7f"},"folders-1928746192":{code:"ea80"},"folders-1234124512541":{code:"ea81"},"folders-129847198476912":{code:"ea82"},"folders-1984712928734912":{code:"ea83"},"fork-knife":{code:"ea84"},"fork-knife-spoon-187236":{code:"ea85"},"fork-spoon-13123123":{code:"ea86"},forward:{code:"ea87"},"frame-128437194":{code:"ea88"},"frown-o":{code:"ea89"},"gas-297384y92146y":{code:"ea8a"},gbp:{code:"ea8b"},gear:{code:"ea8c"},"gear-23423":{code:"ea8d"},"gear-766474":{code:"ea8e"},"gear-298462914":{code:"ea8f"},gears:{code:"ea90"},"gears-82742":{code:"ea91"},"gears-88367636":{code:"ea92"},"gears-129387192391":{code:"ea93"},gift:{code:"ea94"},git:{code:"ea95"},github:{code:"ea96"},"github-square":{code:"ea97"},"git-square":{code:"ea98"},gittip:{code:"ea99"},glass:{code:"ea9a"},"glasses-128371283":{code:"ea9b"},"glassess-12983169":{code:"ea9c"},globe:{code:"ea9d"},globe_1:{code:"ea9e"},globe_2:{code:"ea9f"},globe_3:{code:"eaa0"},"globe-1927436":{code:"eaa1"},"globe-237562338":{code:"eaa2"},"globe-187721877823":{code:"eaa3"},"globe-98892187978123":{code:"eaa4"},"globe-921649146914619":{code:"eaa5"},"globe-wireframe_1":{code:"eaa6"},"google-plus":{code:"eaa7"},"google-plus-square":{code:"eaa8"},"google-share-298364":{code:"eaa9"},gps_1:{code:"eaaa"},"graph-19823619723":{code:"eaab"},"graph-129846129846":{code:"eaac"},"graph-chart-123412341":{code:"eaad"},"graph-chart-2938476923":{code:"eaae"},"graph-chart-2938476923767":{code:"eaaf"},group:{code:"eab0"},hair_8:{code:"eab1"},"hair-14141":{code:"eab2"},"hair-beard-14912746":{code:"eab3"},"hair-beard-14912746254":{code:"eab4"},"hair-dryer-325225":{code:"eab5"},"Hammer-27352325":{code:"eab6"},"Hammer-234567898":{code:"eab7"},"hand-1023871923":{code:"eab8"},"hand-o-down":{code:"eab9"},"hand-o-left":{code:"eaba"},"hand-o-right":{code:"eabb"},"hand-o-up":{code:"eabc"},"hands-145141":{code:"eabd"},handshake:{code:"eabe"},"handshake-1283761923":{code:"eabf"},"hat-874t2745":{code:"eac0"},"hat-8328754862":{code:"eac1"},headphones:{code:"eac2"},"headphones-123":{code:"eac3"},"headphones-1283719038":{code:"eac4"},"headphones-1293461293691":{code:"eac5"},heart:{code:"eac6"},heart_1:{code:"eac7"},"heart-2347":{code:"eac8"},"heart-2355":{code:"eac9"},"heart-2374823":{code:"eaca"},"heart-o":{code:"eacb"},"hexagon-192741":{code:"eacc"},home:{code:"eacd"},"hourglass-287452":{code:"eace"},"hourglass-6546546":{code:"eacf"},house_1:{code:"ead0"},"house-27432784":{code:"ead1"},"house-92746184":{code:"ead2"},"house-123712683":{code:"ead3"},"house-1948671946":{code:"ead4"},"house-19286976512":{code:"ead5"},"house-991028394710":{code:"ead6"},"house-8293746189412":{code:"ead7"},html5:{code:"ead8"},"icecream-2352":{code:"ead9"},"ice-cream-28347752":{code:"eada"},info_1:{code:"eadb"},"info-2342":{code:"eadc"},"info-circle":{code:"eadd"},"information-234715":{code:"eade"},instagram:{code:"eadf"},institution:{code:"eae0"},key:{code:"eae1"},"key-124124":{code:"eae2"},"lamp-127361":{code:"eae3"},laptop:{code:"eae4"},laptop_2:{code:"eae5"},leaf:{code:"eae6"},legal:{code:"eae7"},"lemon-o":{code:"eae8"},"life-bouy":{code:"eae9"},"light-bolb-23542":{code:"eaea"},"light-bolb-235215":{code:"eaeb"},"light-bolb-2937846":{code:"eaec"},lightbulb_2:{code:"eaed"},"lightbulb-o":{code:"eaee"},"lightning-1978236912":{code:"eaef"},line_thin_11:{code:"eaf0"},link_1:{code:"eaf1"},"link-21525":{code:"eaf2"},"link-28374525":{code:"eaf3"},"link-1864918264":{code:"eaf4"},linkedin:{code:"eaf5"},"linkedin-square":{code:"eaf6"},"links-9238471948":{code:"eaf7"},linux:{code:"eaf8"},"list-ul":{code:"eaf9"},lock:{code:"eafa"},"lock-12412":{code:"eafb"},"lock-8984774":{code:"eafc"},"lock-198736912":{code:"eafd"},"lock-92816491264":{code:"eafe"},"lock-2984692836492":{code:"eaff"},magic:{code:"eb00"},magnet:{code:"eb01"},"magnifiying-glass-124134":{code:"eb02"},"magnifiying-glass-19487198461924":{code:"eb03"},"magnifying-glass_1":{code:"eb04"},"magnifying-glass-12487":{code:"eb05"},"magnifying-glass-1212341":{code:"eb06"},"magnifying-glass-zoom-237864982":{code:"eb07"},"mail-1264":{code:"eb08"},"mail-23423":{code:"eb09"},"mail-8847646":{code:"eb0a"},"mail-14512412":{code:"eb0b"},"mail-29384762":{code:"eb0c"},"mail-298461239":{code:"eb0d"},"mail-9233865729":{code:"eb0e"},"mail-9999988766":{code:"eb0f"},"mail-28374562384":{code:"eb10"},"mail-210384792345":{code:"eb11"},"mail-29184691246912":{code:"eb12"},"mail-forward":{code:"eb13"},male:{code:"eb14"},"man-23472094":{code:"eb15"},"man-238472934":{code:"eb16"},"man-835629568":{code:"eb17"},"man-2975629756":{code:"eb18"},"man-98843877347":{code:"eb19"},"man-21984671946912":{code:"eb1a"},"man-money-128391283":{code:"eb1b"},"man-woman-86576":{code:"eb1c"},map_1:{code:"eb1d"},"map-marker":{code:"eb1e"},"map-marker-214214":{code:"eb1f"},"map-marker-2345235":{code:"eb20"},"map-marker-21421541":{code:"eb21"},marker_1:{code:"eb22"},medal_2:{code:"eb23"},"medal-prize-reward-83746823":{code:"eb24"},"meh-o":{code:"eb25"},microphone:{code:"eb26"},microphone_1:{code:"eb27"},"microphone-1243":{code:"eb28"},"microphone-19283691":{code:"eb29"},"microphone-19182643916":{code:"eb2a"},"microphone-192837198367":{code:"eb2b"},microscope_2:{code:"eb2c"},minus:{code:"eb2d"},"minus-12486129":{code:"eb2e"},"minus-circle":{code:"eb2f"},"mobile-phone":{code:"eb30"},"mobile-phone-1234`2515":{code:"eb31"},"mobile-phone-cell-197361931":{code:"eb32"},money:{code:"eb33"},"money-1983461":{code:"eb34"},"money-123812931":{code:"eb35"},"money-1923861923":{code:"eb36"},"money-2649234242":{code:"eb37"},"money-12387619831":{code:"eb38"},"money-18741934691243":{code:"eb39"},"money-exchange-64754":{code:"eb3a"},"money-phone-12836913":{code:"eb3b"},"moon-o":{code:"eb3c"},"mortar-board":{code:"eb3d"},music:{code:"eb3e"},music_1:{code:"eb3f"},"music-player-298429":{code:"eb40"},"music-player-1398127693123":{code:"eb41"},"mute-sound-213847619":{code:"eb42"},navicon:{code:"eb43"},navigation2:{code:"eb44"},"next-prev-9187634912":{code:"eb45"},"next-prev-91876349127":{code:"eb46"},"no-smoking-877367636773":{code:"eb47"},"no-swimming-19283791":{code:"eb48"},"note-87":{code:"eb49"},"note-2352":{code:"eb4a"},"note-8787":{code:"eb4b"},"note-9564":{code:"eb4c"},"note-986454":{code:"eb4d"},"note-book_2":{code:"eb4e"},openid:{code:"eb4f"},"orange-2374y29":{code:"eb50"},"page-1028761993":{code:"eb51"},"page-1283649163912":{code:"eb52"},"page-1286947874929":{code:"eb53"},"page-17346128345612":{code:"eb54"},"page-1286947874929346":{code:"eb55"},pagelines:{code:"eb56"},"pages-2342":{code:"eb57"},palette_2:{code:"eb58"},"palm-tree":{code:"eb59"},"palm-tree-2346923764":{code:"eb5a"},paperclip:{code:"eb5b"},"pasta-275623":{code:"eb5c"},pause:{code:"eb5d"},paw:{code:"eb5e"},pen_paper:{code:"eb5f"},"pen-19836912":{code:"eb60"},"pen-91786417924":{code:"eb61"},"pen-19837198371903":{code:"eb62"},"pen-97127668712768":{code:"eb63"},"pen-1097107340912341":{code:"eb64"},pencil:{code:"eb65"},pencil_2:{code:"eb66"},people_1:{code:"eb67"},people_2:{code:"eb68"},people_3:{code:"eb69"},people_4:{code:"eb6a"},people_5:{code:"eb6b"},people_6:{code:"eb6c"},people_8:{code:"eb6d"},people_16:{code:"eb6e"},people_17:{code:"eb6f"},people_18:{code:"eb70"},people_19:{code:"eb71"},people_20:{code:"eb72"},people_21:{code:"eb73"},people_22:{code:"eb74"},people_23:{code:"eb75"},people_24:{code:"eb76"},people_25:{code:"eb77"},people_26:{code:"eb78"},people_27:{code:"eb79"},people_28:{code:"eb7a"},people_29:{code:"eb7b"},people_30:{code:"eb7c"},people_31:{code:"eb7d"},people_32:{code:"eb7e"},people_33:{code:"eb7f"},people_34:{code:"eb80"},"people-1241515":{code:"eb81"},"people-12836912":{code:"eb82"},"people-123123123":{code:"eb83"},"people-123876129":{code:"eb84"},"people-1028679861":{code:"eb85"},"people-12938719231":{code:"eb86"},"person-23423542":{code:"eb87"},"person-28126931":{code:"eb88"},"person-123981273":{code:"eb89"},"person-231412414":{code:"eb8a"},"person-1028369875612":{code:"eb8b"},phone:{code:"eb8c"},phone_1:{code:"eb8d"},"phone-12315":{code:"eb8e"},"phone-234214":{code:"eb8f"},"phone-192386912312":{code:"eb90"},"phone-192836196384":{code:"eb91"},"phone-986189776523":{code:"eb92"},"phone-78872376876823":{code:"eb93"},"phone-book_2":{code:"eb94"},"phone-sms-998877":{code:"eb95"},"phone-square":{code:"eb96"},photo:{code:"eb97"},picasa:{code:"eb98"},"picture-photo-frame-129873461":{code:"eb99"},"pie-chart-1927y193":{code:"eb9a"},"pie-chart-2341414124":{code:"eb9b"},"piggi-bank-1983619":{code:"eb9c"},"piggie-bank-12938169":{code:"eb9d"},"pin-1631793":{code:"eb9e"},"pin-928376492":{code:"eb9f"},"pin-948612941":{code:"eba0"},pinterest:{code:"eba1"},"pinterest-square":{code:"eba2"},plane:{code:"eba3"},play:{code:"eba4"},"play-1983712983":{code:"eba5"},"play-circle-o":{code:"eba6"},"plug-129834719834":{code:"eba7"},plumber_1:{code:"eba8"},plumber_2:{code:"eba9"},plumber_3:{code:"ebaa"},plumber_5:{code:"ebab"},plumber_6:{code:"ebac"},plus:{code:"ebad"},"plus-12847129":{code:"ebae"},"plus-circle":{code:"ebaf"},"plus-square":{code:"ebb0"},"pool-827346":{code:"ebb1"},power:{code:"ebb2"},"power-1":{code:"ebb3"},"power-23423414":{code:"ebb4"},"power-82735482":{code:"ebb5"},"power-on-off-24525":{code:"ebb6"},"present-1238176931":{code:"ebb7"},"price-tag-4871047019":{code:"ebb8"},"price-tag-21938467129":{code:"ebb9"},print:{code:"ebba"},"printer-234215":{code:"ebbb"},"printer-12948671294":{code:"ebbc"},"printer-981273461298":{code:"ebbd"},profile_2:{code:"ebbe"},"puzzle-piece":{code:"ebbf"},"pyramid-12419":{code:"ebc0"},"question-circle":{code:"ebc1"},"question-mark12414":{code:"ebc2"},"quote-left":{code:"ebc3"},"quote-right":{code:"ebc4"},"rain-124817":{code:"ebc5"},"rain-clouds-10943710":{code:"ebc6"},"recycle-cycle-arrows-8765":{code:"ebc7"},reddit:{code:"ebc8"},"reddit-square":{code:"ebc9"},renren:{code:"ebca"},"restaurant-menu":{code:"ebcb"},"restriction-not-allowed-883478747":{code:"ebcc"},"reward-prize-19283719":{code:"ebcd"},"rings-wedding":{code:"ebce"},"rings-wedding-34567":{code:"ebcf"},rocket:{code:"ebd0"},rss:{code:"ebd1"},"rss-square":{code:"ebd2"},"rzor-234214":{code:"ebd3"},"satellite-875334567":{code:"ebd4"},"scale-1487109":{code:"ebd5"},school_1:{code:"ebd6"},school_2:{code:"ebd7"},school_3:{code:"ebd8"},school_4:{code:"ebd9"},"school_5-microscope":{code:"ebda"},"school_6-light-bolb":{code:"ebdb"},"school_7-house":{code:"ebdc"},"school_8-book":{code:"ebdd"},"school_9-computer":{code:"ebde"},"school_10-book":{code:"ebdf"},"school_11-bus":{code:"ebe0"},"school_13-paint-pallete":{code:"ebe1"},school_14:{code:"ebe2"},"school_15-scissors":{code:"ebe3"},"school_16-football":{code:"ebe4"},"school_17-apple":{code:"ebe5"},"school_18-board":{code:"ebe6"},"school_19-books":{code:"ebe7"},"school_20-book":{code:"ebe8"},"school_21-calculator":{code:"ebe9"},"school_22-notebook":{code:"ebea"},"school_23-globe":{code:"ebeb"},"school_24-diploma":{code:"ebec"},"school_25-ruler":{code:"ebed"},"school_26-hat-graduation":{code:"ebee"},"school_27-book-library":{code:"ebef"},"school_28-book":{code:"ebf0"},"school_29-book":{code:"ebf1"},"school_30-case":{code:"ebf2"},"school_31-book":{code:"ebf3"},"school_112-tablet":{code:"ebf4"},"scissors-1412":{code:"ebf5"},"scissors-1412521":{code:"ebf6"},"scissors-23412342":{code:"ebf7"},"scissors-2364923462":{code:"ebf8"},"scooba-29384623194":{code:"ebf9"},"screen-2533":{code:"ebfa"},"screen-8756235":{code:"ebfb"},"screen-298461941":{code:"ebfc"},"screen-3163971623":{code:"ebfd"},search:{code:"ebfe"},"search-minus":{code:"ebff"},"search-plus":{code:"ec00"},send:{code:"ec01"},"send-o":{code:"ec02"},"share-alt":{code:"ec03"},"share-alt-square":{code:"ec04"},shield:{code:"ec05"},"ship-boat-23525":{code:"ec06"},"shop-197836192":{code:"ec07"},"shopping-bag-1":{code:"ec08"},"shopping-cart":{code:"ec09"},"shopping-cart-2":{code:"ec0a"},"shopping-cart-1928346129":{code:"ec0b"},"shovel-1i7461":{code:"ec0c"},"shrimp-seafood":{code:"ec0d"},sign:{code:"ec0e"},signal:{code:"ec0f"},"sign-arrows-25256235":{code:"ec10"},"sign-in":{code:"ec11"},"sign-post-938346914691":{code:"ec12"},"sina-weibo":{code:"ec13"},sitemap:{code:"ec14"},skype:{code:"ec15"},slack:{code:"ec16"},"smile-o":{code:"ec17"},"smoking-254213523523":{code:"ec18"},"smoking-cigarette-2421421":{code:"ec19"},"smoking-cigarette-24214213":{code:"ec1a"},"snorkel-198346193":{code:"ec1b"},"snow-clouds-21938476129":{code:"ec1c"},soundcloud:{code:"ec1d"},"sound-mute":{code:"ec1e"},"sound-mute-2374682374":{code:"ec1f"},"sound-waves-12381":{code:"ec20"},"soup-283745":{code:"ec21"},"space-shuttle":{code:"ec22"},"spade-23845238645":{code:"ec23"},"speaker-1208698075":{code:"ec24"},"speaker-1923691236":{code:"ec25"},"speech-bubbles_2":{code:"ec26"},spoon:{code:"ec27"},star:{code:"ec28"},"star-o":{code:"ec29"},"stars-235235":{code:"ec2a"},"stars-129846194":{code:"ec2b"},steak:{code:"ec2c"},"steak-2645232":{code:"ec2d"},stethoscope:{code:"ec2e"},stop:{code:"ec2f"},"student-123639813":{code:"ec30"},stumbleupon:{code:"ec31"},suitcase:{code:"ec32"},"suit-case-235235235":{code:"ec33"},"sun-2736483":{code:"ec34"},"sun-8746646":{code:"ec35"},"sun-28745254":{code:"ec36"},"sun-98189237":{code:"ec37"},"sun-clouds-18347y12":{code:"ec38"},"sun-o":{code:"ec39"},"swimming-19283791":{code:"ec3a"},tablet:{code:"ec3b"},tablet_2:{code:"ec3c"},"tablet-21417451":{code:"ec3d"},"tablet-1234812739":{code:"ec3e"},"tablet-1827364182973":{code:"ec3f"},tag:{code:"ec40"},"tag-230472034":{code:"ec41"},"tag-2987462468274":{code:"ec42"},tags:{code:"ec43"},"target-97129874691":{code:"ec44"},"target-190286398612":{code:"ec45"},team_2:{code:"ec46"},tennis:{code:"ec47"},tennis_1:{code:"ec48"},"tent-273525":{code:"ec49"},"tent-8736482":{code:"ec4a"},"text-bubble_1":{code:"ec4b"},th:{code:"ec4c"},"th-large":{code:"ec4d"},"th-list":{code:"ec4e"},"thumbs-o-down":{code:"ec4f"},"thumbs-o-up":{code:"ec50"},"thumb-tack":{code:"ec51"},ticket:{code:"ec52"},"tie-1928376129":{code:"ec53"},times:{code:"ec54"},"times-circle":{code:"ec55"},"times-circle-o":{code:"ec56"},"tool-2523523":{code:"ec57"},"tool-24141414":{code:"ec58"},"toolbox-18276346":{code:"ec59"},"Tools_1-screwdriver-wranch":{code:"ec5a"},Tools_2:{code:"ec5b"},Tools_3:{code:"ec5c"},"Tools_4-drill":{code:"ec5d"},"Tools_5-paint-brush":{code:"ec5e"},"Tools_6-brush-paint":{code:"ec5f"},"Tools_7-hammer-23498":{code:"ec60"},Tools_8:{code:"ec61"},Tools_9:{code:"ec62"},"Tools_10-shovel":{code:"ec63"},"Tools_11-wranch":{code:"ec64"},"Tools_12-screwdriver":{code:"ec65"},"Tools_13-scissors":{code:"ec66"},"Tools_14-knife":{code:"ec67"},"Tools_15-pencil":{code:"ec68"},Tools_16:{code:"ec69"},Tools_17:{code:"ec6a"},Tools_18:{code:"ec6b"},"Tools_19-plunger":{code:"ec6c"},"Tools_20-leak":{code:"ec6d"},"Tools_21-saw":{code:"ec6e"},"Tools_22-hose":{code:"ec6f"},Tools_23:{code:"ec70"},"Tools_24-sink":{code:"ec71"},"Tools_25-shower":{code:"ec72"},Tools_26:{code:"ec73"},"Tools_27-tub-bath":{code:"ec74"},"Tools_28-car-van":{code:"ec75"},"Tools_30-plunger-toilet":{code:"ec76"},"Tools_31-toolbox":{code:"ec77"},"Tools_32-plunger":{code:"ec78"},Tools_33:{code:"ec79"},"Tools_34-screw":{code:"ec7a"},"Tools_35-saw":{code:"ec7b"},"Tools_36-wranch":{code:"ec7c"},"Tools_37-hammer":{code:"ec7d"},"Tools_38-hammer":{code:"ec7e"},Tools_39:{code:"ec7f"},Tools_40:{code:"ec80"},Tools_41:{code:"ec81"},Tools_42:{code:"ec82"},Tools_45:{code:"ec83"},tooth_1:{code:"ec84"},tooth_2:{code:"ec85"},tooth_3:{code:"ec86"},tooth_4:{code:"ec87"},tooth_5:{code:"ec88"},tooth_6:{code:"ec89"},tooth_7:{code:"ec8a"},tooth_8:{code:"ec8b"},tooth_9:{code:"ec8c"},tooth_10:{code:"ec8d"},tooth_11:{code:"ec8e"},tooth_12:{code:"ec8f"},tooth_13:{code:"ec90"},tooth_14:{code:"ec91"},tooth_15:{code:"ec92"},tooth_16:{code:"ec93"},"trash-bin-12412":{code:"ec94"},"trash-bin-25251":{code:"ec95"},"trash-bin-8823787349":{code:"ec96"},tree:{code:"ec97"},"tree-23252352":{code:"ec98"},"trees-12412":{code:"ec99"},"trees-99887554":{code:"ec9a"},tripadvisor:{code:"ec9b"},"trolly-764545":{code:"ec9c"},trophy:{code:"ec9d"},truck:{code:"ec9e"},"truck-19872369128":{code:"ec9f"},"truck-car-2362":{code:"eca0"},truphy:{code:"eca1"},tumblr:{code:"eca2"},"tumblr-square":{code:"eca3"},"tv-204585":{code:"eca4"},"tv-2138474":{code:"eca5"},twitter:{code:"eca6"},twitter2:{code:"eca7"},"twitter-square":{code:"eca8"},umbrella:{code:"eca9"},"umbrella-8758":{code:"ecaa"},"umbrella-274621874821":{code:"ecab"},unlock:{code:"ecac"},upload:{code:"ecad"},user:{code:"ecae"},"user-md":{code:"ecaf"},"via-@-contact-19283671923":{code:"ecb0"},"video-camera":{code:"ecb1"},"video-camera-234986":{code:"ecb2"},"video-camera-3246262":{code:"ecb3"},"video-camera-21412412":{code:"ecb4"},"video-camera-1028371093":{code:"ecb5"},"vimeo-2342":{code:"ecb6"},"vimeo-square":{code:"ecb7"},vine:{code:"ecb8"},vk:{code:"ecb9"},"volume-12312312":{code:"ecba"},"volume-down":{code:"ecbb"},"volume-off":{code:"ecbc"},"volume-up":{code:"ecbd"},"warning-sign-1927846192":{code:"ecbe"},wechat:{code:"ecbf"},weibo:{code:"ecc0"},wheelchair:{code:"ecc1"},"wifi-signal-124514`124":{code:"ecc2"},"wifi-signal-1283464192":{code:"ecc3"},windows:{code:"ecc4"},"wine-8377328":{code:"ecc5"},"wine-glass":{code:"ecc6"},"wine-glasses":{code:"ecc7"},"woman-128371209":{code:"ecc8"},"wranch-821451":{code:"ecc9"},"wranch-283748723":{code:"ecca"},wrench:{code:"eccb"},wrench_1:{code:"eccc"},"yen-234":{code:"eccd"},youtube:{code:"ecce"},"youtube-square":{code:"eccf"},"zoom-magnifying-glass":{code:"ecd0"},"zoom-spying-glass-1827358172":{code:"ecd1"}}},function(e){function t(t,n){if(!e(n.target).hasAncestor(t.$handle)){var i=e.getMouseOffset(n),a=t.$slideArea.offset();"vertical"===t.options.orientation?t.$handle.css("top",i.top-a.top):t.$handle.css("left",i.left-a.left),l(t),o(t)}}function n(t,n){e(n.target).parents().andSelf().hasClass("attached-widget")||mn.Draggable.startDragging({$element:e(this),event:n,onDrag:function(e,n){l(t,s(t)?n.position.top:n.position.left)},onStart:function(){t.$element.addClass("state-active"),t.$handle.addClass("state-active"),t.isActive=!0},onEnd:function(){t.$element.removeClass("state-active"),t.$handle.removeClass("state-active"),t.isActive=!1},behaviourOptions:{axis:s(t)?"y":"x",containment:"parent"}})}function i(t){var n="vertical"===t.options.orientation,i=t.options.showScrollButtons,a=e([]);a.pushElements(t.$element),i&&a.pushElements(t.$scrollDown).pushElements(t.$scrollUp),a.toggleClass("horizontal",!n),a.toggleClass("vertical",n),n&&i&&t.$body.css({top:t.$scrollUp.outerHeight(),bottom:t.$scrollDown.outerHeight()}),!n&&i&&t.$body.css({left:t.$scrollUp.outerWidth(),right:t.$scrollDown.outerWidth()}),i&&(t.$scrollUp.css({left:0,right:n?0:"",top:0,bottom:n?"":0}),t.$scrollDown.css({left:n?0:"",right:0,top:n?"":0,bottom:0}))}function a(e){var t="vertical"===e.options.orientation;e.range=e.options.max-e.options.min;var n=!e.options.autoHide||e.range>0;e.isVisible.setValue(n,"AutoHide"),e.isVisible.isTrue()&&(e.$handle.toggleDisplayed(e.range>0),e.size=t?e.$slideArea.height():e.$slideArea.width(),e.handleSize=Math.min(Math.max(e.size-e.range,e.options.handleMinSize),e.size),e.handleRange=e.size-e.handleSize,e.handleStep=e.range/e.handleRange,o(e))}function r(t,n){return n=e.valueOrDefault(n,t.options.value),n=Math.max(Math.min(n,t.options.max),t.options.min),t.options.value!==n?(t.options.value=n,t.valueChangedEvent.fireNew(),!0):!1}function o(e){var t=e.range>0;t&&Vn.requestIndpendentWriteOperation(function(){var t="vertical"===e.options.orientation;t?(e.$handle.css({width:""}),e.$handle.outerHeight(e.handleSize)):(e.$handle.css({height:""}),e.$handle.outerWidth(e.handleSize)),e.$handle.css({top:t?e.options.value/e.handleStep:"",left:t?"":e.options.value/e.handleStep})},"refreshHandle")}function s(e){return"vertical"===e.options.orientation}function l(e,t){void 0===t&&(t=s(e)?e.$handle.css("top"):e.$handle.css("left")),r(e,parseFloat(t)*e.handleStep)}var c=C.extend("ScrollBarController",{init:function(o,s){s=e.extend({reactToSlideAreaClick:!1,showScrollButtons:!1,autoHide:!0,orientation:"vertical",min:0,max:100,handleMinSize:20,value:0,hideWhenTouchScrollingMode:!0},s);var l=s.hideWhenTouchScrollingMode,c=this;this.id=e.weakID(),this.$element=o,this.valueChangedEvent=x.create(),
this.isVisible=O.createConditionalPositive({beforeValueChangeCallback:function(e,t){c.$element.toggleDisplayed(e,t)}}),this.range=void 0,this.size=void 0,this.handleSize=void 0,this.handleStep=void 0,this.options=s,o.addClass("scrollbar widget positioned").addDisplayingStates().addClass(c.options.scrollBarClass),s.showScrollButtons&&(c.$scrollUp=e("<div class='scroll-up scroll-button'></div>").css("position","absolute").appendTo(o).makeSimpleButton().addClass(c.options.scrollUpClass).mouseHold(function(){r(c,c.options.value-1,!0)}),c.$scrollDown=e("<div class='scroll-down scroll-button'></div>").css("position","absolute").appendTo(o).makeSimpleButton().addClass(c.options.scrollDownClass).mouseHold(function(){r(c,c.options.value+1,!0)})),c.$body=e("<div class='scrollbar-body'></div>").css("position","absolute").appendTo(o),c.$slideArea=e("<div class='slide-area'></div>").css("position","absolute").appendTo(c.$body),s.reactToSlideAreaClick&&c.$slideArea.mousedown(function(e){t.call(this,c,e)}),c.$handle=e("<div class='scrollbar-handle' style='position: absolute'></div>").makeSimpleButton().addDisplayingStates().on("vmousedown",function(e){n.call(this,c,e)}).appendTo(c.$slideArea),i(this),a(this),l&&void 0!==It&&It.ScrollingMode.valueChangedEvent.bindAndExecute(function(){var e=It.ScrollingMode.getValue();c.isVisible.setValue(e!==Ct.Touch,"ScrollingMode")})},setValue:function(e){var t=r(this,e);t&&o(this)},getValue:function(){return this.options.value},attachWidget:function(e,t,n){e.addClass("attached-widget").appendTo(this.$handle).positionHorizontally(t).positionVertically(n)},connectToScrollable:function(t){var n=this;e.isPlainObject(t)||t instanceof It||(t=e(t).getScrollableController());var i=n.connectedScrollable;return i&&(i.refreshedEvent.unbind(n.id),i.scrollingEvent.unbind(n.id),n.valueChangedEvent.unbind("scrollableConnection")),n.connectedScrollable=t,x.bind([t.refreshedEvent,t.scrollingEvent],function(){n.isActive||n.refresh()},n.id),n.valueChangedEvent.bind(function(){n.updatingScrollBarValue||t.scrollToOffset(n.getValue(),!1,cs,n.options.orientation)},"scrollableConnection"),n.refresh(),n},refresh:function(){var t=this,n=t.connectedScrollable;if(n){t.updatingScrollBarValue=!0;var i=t.options.orientation;e.quickExtend(t.options,{min:0,max:n.getMaxScrollOffset(i)}),r(t,n.getScrollOffset(i)),t.updatingScrollBarValue=!1}a(t)}});e.fn.scrollBar=function(t){var n=e(this).data("widget-scrollbar");return void 0===n&&(n=new c(e(this),t),e(this).data("widget-scrollbar",n)),n}}(p);var fe=C.extend("CallbacksHandler",{init:cs,add:function(e){var t=this._callbacks;return t||(t=this._callbacks=[]),t.push(e),this},execute:function(e,t,n,i,a){var r=this._callbacks;return r&&f.eachItem(r,function(r,o){o(e,t,n,i,a)}),this}});fe.create=function(){return new fe};var pe=function(){function e(e,t){var n=e._stateBinding,i=n._comparisonCondition,a=e._id;if(i===We.Any||i===We.None){var r=n._conditionsDictionary;t?r.setField(a,!0):r.removeField(a);var o=r.isEmpty();n._isSatisfied.setValue(i===We.Any?!o:o)}else{var s=n._conditionsDictionary;t?s.removeField(a):s.setField(a,!0);var l=s.isEmpty();n._isSatisfied.setValue(i===We.All?l:!l)}}var t=0,n=C.extend("BindingCondition",{init:function(e,n){this._id=t++,this._stateBinding=e,this._stateListeners=[],this._stateUpdateCallback=f.valueOrDefault(n,cs)},getId:function(){return this._id},associateStateListener:function(e,t){t=f.quickExtend({eventFilteringFunction:us},t);var n=this,i=t.eventFilteringFunction;n._stateListeners.push(x.createEventListener(e,function(e,t,a,r,o){i(e,t,a,r,o)&&n._stateUpdateCallback(n)}))},toggleActivated:function(e){var t=this,n=t._stateListeners;e?(f.eachItem(n,function(e,t){t.activate()}),t._stateUpdateCallback(t)):f.eachItem(n,function(e,t){t.deactivate()})},reportState:function(t){e(this,t)}}),i=C.extend("StateBindingFlag",{init:function(e){var t=this;t._id=f.weakID("sbf"),t._conditions=[],t._slaveStateBindingFlags=[],t._comparisonCondition=e},lazyInitializationProperties:{_isSatisfied:O.createFalse,_isActivatedFlag:function(){var e=this;return O.createConditionalNegative({valueChangeCallback:function(t){f.eachItem(e._slaveStateBindingFlags,function(n,i){i._isActivatedFlag.toggle(t,e._id)}),f.eachItem(e._conditions,function(e,n){n.toggleActivated(t)})}})},_conditionsDictionary:k.create},_addCondition:function(e){var t=new n(this,e);return this._conditions.push(t),t}});return i.extendConditionMethods=function(e){i.extendPrototype(e),f.eachEntry(e,function(e){ve[e]=function(t,n,i,a,r){return ve.whenAny()[e](t,n,i,a,r)}})},i}(),he=function(){var e=C.extend("StateBindingsGroup",{init:function(){this._stateBindings={}},lazyInitializationProperties:{_isActivatedFlag:function(){var e=this;return O.create(!1,{valueChangeCallback:function(t){f.eachEntry(e._stateBindings,function(e,n){n.toggleActivated(t)})}})}},_createStateBinding:function(e,t){var n=this,i=new me(e,t,function(e){delete n._stateBindings[e._id]});return this._stateBindings[i._id]=i,this._isActivatedFlag.isTrue()&&i.activate(),i},on:function(e){return this._createStateBinding(e,!0)},onNot:function(e){return this._createStateBinding(e,!1)},clear:function(){return f.eachEntry(this._stateBindings,function(e,t){t.dispose()}),this._stateBindings={},this},activate:function(){return this._isActivatedFlag.setTrue(),this},deactivate:function(){return this._isActivatedFlag.setFalse(),this}});return e.create=function(){return new e},e}(),me=function(){var e=C.extend("StateBinding",{init:function(e,t,n){if(!e)throw Error("Cannot create state binding without a state binding flag.");var i=this;i._id=f.weakID("sb"),i._isSatisfiedTargetValue=f.valueOrDefault(t,!0),i._stateBindingFlag=e,n&&i._onDisposeCallbacks.add(n)},lazyInitializationProperties:{_onDisposeCallbacks:fe.create,_isActivatedFlag:O.createFalse,_stateChangeListenersGroup:x.createEventListenersGroup},_isDisposed:!1,toggleActivated:function(e){if(this._isDisposed)throw Error("The state binding is disposed.");return e!==this._isActivatedFlag.getValue()&&(e?(this._stateBindingFlag._isActivatedFlag.setTrue(this._id),this._stateChangeListenersGroup.activateAndExecuteAll()):(this._stateBindingFlag._isActivatedFlag.setFalse(this._id),this._stateChangeListenersGroup.deactivateAll()),this._isActivatedFlag.setValue(e)),this},activate:function(){return this.toggleActivated(!0)},deactivate:function(){return this.toggleActivated(!1)},dispose:function(){var e=this;e.deactivate();var t=e._getLazyProperty("_onDisposeCallbacks");t&&t.execute(e),e._isDisposed=!0,e._stateChangeListenersGroup.disposeAll()},addBindingBehaviour:function(e,t){var n=this,i=this._stateBindingFlag._isSatisfied,a=x.createEventListener(i.valueChangedEvent,function(){e(i.getValue()===n._isSatisfiedTargetValue)}).addToGroup(this._stateChangeListenersGroup);if(t){if(!f.isFunction(t))throw Error("Unknown disposing behaviour");this._onDisposeCallbacks.add(t)}return this._isActivatedFlag.isTrue()&&a.activateAndExecute(),this},execute:function(e,t){var n=this._id;return this.addBindingBehaviour(function(t){e(t,n)},function(){t&&t(n)})},setObjectValue:function(e,t,n){return this.addBindingBehaviour(function(i){e.setValue(i?t:n)})},activateListener:function(e){this._id;return this.addBindingBehaviour(function(t){t?e.activate():e.deactivate()},function(){e.deactivate()})},setFlagValue:function(e,t){var n=this._id;return this.addBindingBehaviour(function(i){e.setValue(i?t:!t,n)},function(){e instanceof L&&(e.getConditionalFlagType()===A.ConditionalPositive?e.setTrue(n):e.setFalse(n))})},toggleElementsState:function(e,t,n){switch(n){case vt.Displaying:return this.toggleElementsDisplayed(e,t);case vt.Enabling:return this.toggleElementsEnabled(e,t);case vt.Visibility:return this.toggleElementsVisibility(e,t)}},toggleElementsVisibility:function(e,t){var n=this._id;return e=f.asArray(e),f.eachItem(e,function(e,t){t.addDisplayingStates()}),this.addBindingBehaviour(function(i){f.eachItem(e,function(e,a){a.toggleVisibility(i?t:!t,n)})},function(){f.eachItem(e,function(e,t){t.toggleVisibility(!0,n)})})},toggleElementsDisplayed:function(e,t){var n=this._id;return e=f.asArray(e),f.eachItem(e,function(e,t){t.addDisplayingStates()}),this.addBindingBehaviour(function(i){f.eachItem(e,function(e,a){a.toggleDisplayed(i?t:!t,n)})},function(){f.eachItem(e,function(e,t){t.toggleDisplayed(!0,n)})})},hideElements:function(){return this.toggleElementsDisplayed(f.merge([],arguments),!1)},showElements:function(){return this.toggleElementsDisplayed(f.merge([],arguments),!0)},toggleElementsEnabled:function(e,t){var n=this._id;return e=f.asArray(e),f.eachItem(e,function(e,t){t.addDisablingStates()}),this.addBindingBehaviour(function(i){f.eachItem(e,function(e,a){a.toggleEnable(i?t:!t,n)})},function(){f.eachItem(e,function(e,t){t.toggleEnable(!0,n)})})},disableElements:function(){return this.toggleElementsEnabled(f.merge([],arguments),!1)},enableElements:function(){return this.toggleElementsEnabled(f.merge([],arguments),!0)},setClass:function(e,t,n){return this.addBindingBehaviour(function(i){t&&e.toggleClass(t,i),n&&e.toggleClass(n,!i)})}});return e.createStateBindingsGroup=function(){return new he},e}(),ve=fs(function(){this.whenAll=function(){return new pe(We.All)},this.whenAny=function(){return new pe(We.Any)},this.whenNone=function(){return new pe(We.None)},this.whenAnyNot=function(){return new pe(We.AnyNot)},this.on=function(e){return new me(e,!0)},this.onNot=function(e){return new me(e,!1)},this.createStateBindingsGroup=function(){return new he}});!function(){pe.extendConditionMethods({whenIs:function(e,t){this._slaveStateBindingFlags.push(e);var n=e._isSatisfied,i=this._addCondition(function(e){e.reportState(n.getValue()===t)});return i.associateStateListener(n.valueChangedEvent),this},when:function(e){return this.whenIs(e,!0)},whenNot:function(e){return this.whenIs(e,!1)},whenObjectIs:function(e,t){var n=this._addCondition(function(n){n.reportState(t(e.getValue()))});return n.associateStateListener(e.valueChangedEvent),this},whenObjectEquals:function(e,t){var n=this._addCondition(function(n){n.reportState(e.isEqual(t))});return n.associateStateListener(e.valueChangedEvent),this},whenObjectNotEquals:function(e,t){var n=this._addCondition(function(n){n.reportState(!e.isEqual(t))});return n.associateStateListener(e.valueChangedEvent),this},whenAllObservedFlagsAre:function(e,t){var n=this._addCondition(function(n){n.reportState(e.allOfValue(t))});return n.associateStateListener(e.valueChangedEvent),this},whenAnyObservedFlagIs:function(e,t){var n=this._addCondition(function(n){n.reportState(e.someOfValue(t))});return n.associateStateListener(e.valueChangedEvent),this},whenFlagIs:function(e,t){var n=this._addCondition(function(n){n.reportState(e.getValue()===t)});return n.associateStateListener(e.valueChangedEvent),this},whenFlagIsTrue:function(e){return this.whenFlagIs(e,!0)},whenFlagIsFalse:function(e){return this.whenFlagIs(e,!1)}})}();var ye=fs(function(){function e(){t||(t=requestAnimationFrame(function(){for(;i.length>0||n.length>0;){for(;n.length>0;){var e=f.merge([],n);n=[],f.eachItem(e,function(e,t){t()})}for(;i.length>0;){var a=f.merge([],i);i=[],f.eachItem(a,function(e,t){t()})}}t=void 0}))}var t,n=[],i=[];this.requestReadOperation=function(t){n.push(t),e()},this.requestWriteOperation=function(t){i.push(t),e()}}),be={Top:0,Bottom:1,Center:2,Visibility:3},Ce=function(){function e(e){var n;e._options.measureDistanceType===be.Top?n=e._topOffset-t(e):e._options.measureDistanceType===be.Bottom?n=t(e)+e._getWindowHeight()-e._topOffset:e._options.measureDistanceType===be.Center&&(n=e._topOffset-e._getWindowHeight()/2-t(e)),e._scrollingDistance.setValue(n)}function t(e){var t,n=e._$scrollablePane;if(n[0]===window){var i=document.compatMode&&"BackCompat"!=document.compatMode?document.documentElement:document.body;t=document.all?i.scrollTop:window.pageYOffset}else t=n[0].scrollTop;return t}var n=C.extend("ScrollingTracker",{init:function(e){var t=this;e=f.quickExtend({scrollingDistanceChangeCallback:cs,measureDistanceType:be.Top},e),this._options=e,this._$scrollablePane=f.valueOrDefault(e.$scrollablePane,f(window)),this._getWindowHeight=f.valueOrDefault(e.getWindowHeight,function(){return f.getWindowSize().height}),this._id=f.valueOrDefault(e.id,f.weakID()),this._scrollingDistance=_.create(),this._scrollingDistanceChangeCallback=e.scrollingDistanceChangeCallback,this._getTopOffset=e.getTopOffset,this._scrollingDistanceEventListener=x.createEventListener(this._scrollingDistance.valueChangedEvent,function(e,n){t._scrollingDistanceChangeCallback(e,n)})},activate:function(){var t=this,n=t._$scrollablePane;this._topOffset=this._getTopOffset(),n.bind("scroll."+t._id,function(){e(t)}),this._scrollingDistanceEventListener.activate(),e(t),t.isActive=!0},deactivate:function(){var e=this;e.isActive&&(e.isActive=!1,e._$scrollablePane.unbind("scroll."+e._id),e._scrollingDistanceEventListener.deactivate())}});return n.create=function(e){return new n(e)},n}(),Ie=fs(function(){var e=C.extend("ContextValueController",{init:function(e){this._valueChangeCallback=f.valueOrDefault(e,cs)},setValue:function(e){if(e!==this._currentValue){var t=this._currentValue;return this._currentValue=e,this._valueChanged(this._currentValue,t),this._valueChangeCallback(this._currentValue,t),!0}return!1},_valueChanged:cs,getValue:function(){return this._currentValue},set:function(e){return this.setValue(e)},get:function(){return this.getValue()},clear:function(){this.setValue(void 0)},toggle:function(e,t){t?this.setValue(e):this._currentValue===e&&this.clear()}});this.create=function(t){return new e(t)};var t=e.extend("ContextClassController",function(e){return{init:function(t,n){e.call(this,n),this._getTarget=t},_valueChanged:function(e,t){var n=f.evaluateWhenFunction(this._getTarget);void 0!==t&&n.removeClass(t),void 0!==e&&n.addClass(e)}}});this.createContextClass=function(e){return f.isPlainObject(e)||(e={getTarget:e}),e=f.quickExtend({valueChangeCallback:cs},e),new t(e.getTarget,e.valueChangeCallback)};var n=C.extend("ClassesFlagsController",{init:function(e){this._getTarget=e,this._currentFlags={}},clear:function(){this.set(f.mapDictionary(this._currentFlags,ds))},getActiveClasses:function(){var e=[];return f.eachEntry(this._currentFlags,function(t,n){n&&e.push(t)}),e},get:function(e){return this._currentFlags[e]},set:function(e){var t=[],n=[];for(var i in e){var a=e[i],r=!!this._currentFlags[i];a&&!r&&n.push(i),!a&&r&&t.push(i),this._currentFlags[i]=a}if(n.length>0||t.length>0){var o;o=f.isFunction(this._getTarget)?this._getTarget():this._getTarget,n.length>0&&o.addClass(n.join(" ")),t.length>0&&o.removeClass(t.join(" "))}}});this.createClassesFlags=function(e){return new n(e)};var i=C.extend("SingleTargetClassController",{init:function(e){this._className=e},setTarget:function(e){var t=this._$currentTarget;t&&!t.is(e)&&t.removeClass(this._className),this._$currentTarget=t=e,t&&t.addClass(this._className)},getTarget:function(){return this._$currentTarget},clear:function(){this.setTarget(void 0)}});this.createSingleTargetClass=function(e){return new i(e)}}),Se={Normal:"user-interaction-normal",Touch:"user-interaction-touch",Hybrid:"user-interaction-hybrid"},Pe=fs(function(){var e=this,t=Ie.createContextClass(function(){return f("body")});this.InteractionMode=_.create(Se.Normal),this.isTouch=function(){return e.InteractionMode.getValue()===Se.Touch},this.isNormal=function(){return e.InteractionMode.getValue()===Se.Normal},this.isHybrid=function(){return e.InteractionMode.getValue()===Se.Hybrid},this.isHoverSupported=function(){return!e.isTouch()},f(document).ready(function(){e.InteractionMode.valueChangedEvent.bindAndExecute(function(){t.setValue(e.InteractionMode.getValue()),f("body").chooseClass(e.isHoverSupported(),"hover-supported","hover-not-supported")})})});!function(e){var t;e.fn.mouseHold=function(t){var n=100,i=e(this);return e(this).hover(function(){e(this).addClass("state-hover")},function(){e(this).removeClass("state-hover")}),t&&"function"==typeof t?this.each(function(){e(this).on("vmousedown",function(a){var r=1,o=0,s=this,l=setInterval(function(){Pe.isHoverSupported()&&!i.hasClass("state-hover")||(o++,t.call(s,a,o),r=2)},n);return e(document).one("vmouseup",function(){clearInterval(l),1==r&&t.call(this,1),r=0}),!1}),e(this).click(ds)}):void 0},e.preventClick=function(){void 0===t&&(t=e("<div class='events-catcher'></div>").addDisplayingStates().toggleDisplayed(!1).appendTo("body")),t.toggleDisplayed(!0),e(document).one("mouseup",function(){t.toggleDisplayed(!1)})},e.whenMouseFocused=function(t){t=e.extend({sensitivity:7,interval:100,callback:cs},t);var n,i,a=t.sensitivity,r=t.interval,o=t.triggeringEvent,s=t.callback,l=e.weakID(".mousefocused");o&&(n=e.getMouseOffset(o),i=n);var c={};e(document).bind("mousemove"+l,function(t){i=e.getMouseOffset(t),n||(n=i)});var u=setInterval(function(){!i||Math.abs(i.top-n.top)<=a&&Math.abs(i.left-n.left)<=a?(c.stop(),s()):n=i},r);return e.extend(c,{stop:function(){e(document).unbind("mousemove"+l),clearInterval(u)}})},e.onDistanceMove=function(t,n,i,a){a=e.quickExtend({cancelOn:!1,cancelationCallback:cs},a);var r=a.cancelOn,o=a.cancelationCallback,s=e.weakID(".distancemove");isFinite(n)&&0!==n&&(n={horizontal:n,vertical:n});var l=e.getMouseOffset(t);if(0===n)return i(t,t),cs;e(document).bind("vmousemove"+s,function(t){var a=e.getMouseOffset(t),r=!1;if(void 0!==n.horizontal){var o=Math.abs(a.left-l.left);o>=n.horizontal&&(r=!0)}if(!r&&void 0!==n.vertical){var c=Math.abs(a.top-l.top);c>=n.vertical&&(r=!0)}r&&(e(document).unbind(s),i(t,a))});var c=function(){e(document).unbind(s),o()};return r&&e(document).on(r+s,c),c},e.onceMouseUpInArea=function(t,n,i){isFinite(n)&&(n={horizontal:n,vertical:n});var a=e.getMouseOffset(t);e(document).one("mouseup",function(t){var r=e.getMouseOffset(t),o=!1;if(void 0!==n.horizontal){var s=Math.abs(r.left-a.left);s>n.horizontal&&(o=!0)}if(!o&&void 0!==n.vertical){var l=Math.abs(r.top-a.top);l>n.vertical&&(o=!0)}o||i(t,r)})},e.onClickOutside=function(t,n){n=e.quickExtend({predicate:us,mouseButton:!1,callback:cs},n),t=e.asArray(t);var i=n.mouseButton,a=n.callback,r=n.predicate;Pe.isTouch()&&(i=!1);var o=e.weakID();return e(document).bind("mousedown."+o,function(n){if(i===!1||n.which===i){var o=e(n.target);if(r(o)){var s=o.parents().andSelf();e.all(t,function(e){return 0===s.filter(e).length})&&a()}}}),{dispose:function(){e(document).unbind("mousedown."+o)}}}}(p);var we=function(){var e=C.extend("Scope",{init:function(e){e=f.quickExtend({beforeFinishingCallback:cs,finishCallback:cs,startCallback:cs},e),this._beforeFinishingCallback=e.beforeFinishingCallback,this._startCallback=e.startCallback,this._finishCallback=e.finishCallback},_count:0,getCounter:function(){return this._count},setCounter:function(e){this._count=e},start:function(){0===this._count&&this._startCallback(),this._count++},finish:function(){this._count>0&&(1===this._count&&this._beforeFinishingCallback(),this._count--,0===this._count&&this._finishCallback())},isActive:function(){return this._count>0}});return e.create=function(t){return new e(t)},e}(),Ee=function(){function e(){if(!U){try{var e=O.getElementsByTagName("body")[0].appendChild(m("span"));e.parentNode.removeChild(e)}catch(t){return}U=!0;for(var n=N.length,i=0;n>i;i++)N[i]()}}function t(e){U?e():N[N.length]=e}function n(e){if(typeof M.addEventListener!=k)M.addEventListener("load",e,!1);else if(typeof O.addEventListener!=k)O.addEventListener("load",e,!1);else if(typeof M.attachEvent!=k)v(M,"onload",e);else if("function"==typeof M.onload){var t=M.onload;M.onload=function(){t(),e()}}else M.onload=e}function i(){_?a():r()}function a(){var e=O.getElementsByTagName("body")[0],t=m(D);t.setAttribute("type",B);var n=e.appendChild(t);if(n){var i=0;!function(){if(typeof n.GetVariable!=k){var a=n.GetVariable("$version");a&&(a=a.split(" ")[1].split(","),j.pv=[parseInt(a[0],10),parseInt(a[1],10),parseInt(a[2],10)])}else if(10>i)return i++,void setTimeout(arguments.callee,10);e.removeChild(t),n=null,r()}()}else r()}function r(){var e=R.length;if(e>0)for(var t=0;e>t;t++){var n=R[t].id,i=R[t].callbackFn,a={success:!1,id:n};if(j.pv[0]>0){var r=h(n);if(r)if(!y(R[t].swfVersion)||j.wk&&j.wk<312)if(R[t].expressInstall&&s()){var u={};u.data=R[t].expressInstall,u.width=r.getAttribute("width")||"0",u.height=r.getAttribute("height")||"0",r.getAttribute("class")&&(u.styleclass=r.getAttribute("class")),r.getAttribute("align")&&(u.align=r.getAttribute("align"));for(var d={},g=r.getElementsByTagName("param"),f=g.length,p=0;f>p;p++)"movie"!=g[p].getAttribute("name").toLowerCase()&&(d[g[p].getAttribute("name")]=g[p].getAttribute("value"));l(u,d,n,i)}else c(r),i&&i(a);else C(n,!0),i&&(a.success=!0,a.ref=o(n),i(a))}else if(C(n,!0),i){var m=o(n);m&&typeof m.SetVariable!=k&&(a.success=!0,a.ref=m),i(a)}}}function o(e){var t=null,n=h(e);if(n&&"OBJECT"==n.nodeName)if(typeof n.SetVariable!=k)t=n;else{var i=n.getElementsByTagName(D)[0];i&&(t=i)}return t}function s(){return!$&&y("6.0.65")&&(j.win||j.mac)&&!(j.wk&&j.wk<312)}function l(e,t,n,i){$=!0,w=i||null,E={success:!1,id:n};var a=h(n);if(a){"OBJECT"==a.nodeName?(S=u(a),P=null):(S=a,P=n),e.id=V,(typeof e.width==k||!/%$/.test(e.width)&&parseInt(e.width,10)<310)&&(e.width="310"),(typeof e.height==k||!/%$/.test(e.height)&&parseInt(e.height,10)<137)&&(e.height="137"),O.title=O.title.slice(0,47)+" - Flash Player Installation";var r=j.ie&&j.win?"ActiveX":"PlugIn",o="MMredirectURL="+(""+M.location).replace(/&/g,"%26")+"&MMplayerType="+r+"&MMdoctitle="+O.title;if(typeof t.flashvars!=k?t.flashvars+="&"+o:t.flashvars=o,j.ie&&j.win&&4!=a.readyState){var s=m("div");n+="SWFObjectNew",s.setAttribute("id",n),a.parentNode.insertBefore(s,a),a.style.display="none",function(){4==a.readyState?a.parentNode.removeChild(a):setTimeout(arguments.callee,10)}()}d(e,t,n)}}function c(e){if(j.ie&&j.win&&4!=e.readyState){var t=m("div");e.parentNode.insertBefore(t,e),t.parentNode.replaceChild(u(e),t),e.style.display="none",function(){4==e.readyState?e.parentNode.removeChild(e):setTimeout(arguments.callee,10)}()}else e.parentNode.replaceChild(u(e),e)}function u(e){var t=m("div");if(j.win&&j.ie)t.innerHTML=e.innerHTML;else{var n=e.getElementsByTagName(D)[0];if(n){var i=n.childNodes;if(i)for(var a=i.length,r=0;a>r;r++)1==i[r].nodeType&&"PARAM"==i[r].nodeName||8==i[r].nodeType||t.appendChild(i[r].cloneNode(!0))}}return t}function d(e,t,n){var i,a=h(n);if(j.wk&&j.wk<312)return i;if(a)if(typeof e.id==k&&(e.id=n),j.ie&&j.win){var r="";for(var o in e)e[o]!=Object.prototype[o]&&("data"==o.toLowerCase()?t.movie=e[o]:"styleclass"==o.toLowerCase()?r+=' class="'+e[o]+'"':"classid"!=o.toLowerCase()&&(r+=" "+o+'="'+e[o]+'"'));var s="";for(var l in t)t[l]!=Object.prototype[l]&&(s+='<param name="'+l+'" value="'+t[l]+'" />');a.outerHTML='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'+r+">"+s+"</object>",H[H.length]=e.id,i=h(e.id)}else{var c=m(D);c.setAttribute("type",B);for(var u in e)e[u]!=Object.prototype[u]&&("styleclass"==u.toLowerCase()?c.setAttribute("class",e[u]):"classid"!=u.toLowerCase()&&c.setAttribute(u,e[u]));for(var d in t)t[d]!=Object.prototype[d]&&"movie"!=d.toLowerCase()&&g(c,d,t[d]);a.parentNode.replaceChild(c,a),i=c}return i}function g(e,t,n){var i=m("param");i.setAttribute("name",t),i.setAttribute("value",n),e.appendChild(i)}function f(e){var t=h(e);t&&"OBJECT"==t.nodeName&&(j.ie&&j.win?(t.style.display="none",function(){4==t.readyState?p(e):setTimeout(arguments.callee,10)}()):t.parentNode.removeChild(t))}function p(e){var t=h(e);if(t){for(var n in t)"function"==typeof t[n]&&(t[n]=null);t.parentNode.removeChild(t)}}function h(e){var t=null;try{t=O.getElementById(e)}catch(n){}return t}function m(e){return O.createElement(e)}function v(e,t,n){e.attachEvent(t,n),q[q.length]=[e,t,n]}function y(e){var t=j.pv,n=e.split(".");return n[0]=parseInt(n[0],10),n[1]=parseInt(n[1],10)||0,n[2]=parseInt(n[2],10)||0,t[0]>n[0]||t[0]==n[0]&&t[1]>n[1]||t[0]==n[0]&&t[1]==n[1]&&t[2]>=n[2]}function b(e,t,n,i){if(!j.ie||!j.mac){var a=O.getElementsByTagName("head")[0];if(a){var r=n&&"string"==typeof n?n:"screen";if(i&&(T=null,x=null),!T||x!=r){var o=m("style");o.setAttribute("type","text/css"),o.setAttribute("media",r),T=a.appendChild(o),j.ie&&j.win&&typeof O.styleSheets!=k&&O.styleSheets.length>0&&(T=O.styleSheets[O.styleSheets.length-1]),x=r}j.ie&&j.win?T&&typeof T.addRule==D&&T.addRule(e,t):T&&typeof O.createTextNode!=k&&T.appendChild(O.createTextNode(e+" {"+t+"}"))}}}function C(e,t){if(W){var n=t?"visible":"hidden";U&&h(e)?h(e).style.visibility=n:b("#"+e,"visibility:"+n)}}function I(e){var t=/[\\\"<>\.;]/,n=null!=t.exec(e);return n&&typeof encodeURIComponent!=k?encodeURIComponent(e):e}var S,P,w,E,T,x,k="undefined",D="object",F="Shockwave Flash",A="ShockwaveFlash.ShockwaveFlash",B="application/x-shockwave-flash",V="SWFObjectExprInst",L="onreadystatechange",M=window,O=document,z=navigator,_=!1,N=[i],R=[],H=[],q=[],U=!1,$=!1,W=!0,j=function(){var e=typeof O.getElementById!=k&&typeof O.getElementsByTagName!=k&&typeof O.createElement!=k,t=z.userAgent.toLowerCase(),n=z.platform.toLowerCase(),i=n?/win/.test(n):/win/.test(t),a=n?/mac/.test(n):/mac/.test(t),r=/webkit/.test(t)?parseFloat(t.replace(/^.*webkit\/(\d+(\.\d+)?).*$/,"$1")):!1,o=!1,s=[0,0,0],l=null;if(typeof z.plugins!=k&&typeof z.plugins[F]==D)l=z.plugins[F].description,!l||typeof z.mimeTypes!=k&&z.mimeTypes[B]&&!z.mimeTypes[B].enabledPlugin||(_=!0,o=!1,l=l.replace(/^.*\s+(\S+\s+\S+$)/,"$1"),s[0]=parseInt(l.replace(/^(.*)\..*$/,"$1"),10),s[1]=parseInt(l.replace(/^.*\.(.*)\s.*$/,"$1"),10),s[2]=/[a-zA-Z]/.test(l)?parseInt(l.replace(/^.*[a-zA-Z]+(.*)$/,"$1"),10):0);else if(typeof M.ActiveXObject!=k)try{var c=new ActiveXObject(A);c&&(l=c.GetVariable("$version"),l&&(o=!0,l=l.split(" ")[1].split(","),s=[parseInt(l[0],10),parseInt(l[1],10),parseInt(l[2],10)]))}catch(u){}return{w3:e,pv:s,wk:r,ie:o,win:i,mac:a}}();(function(){j.w3&&((typeof O.readyState!=k&&"complete"==O.readyState||typeof O.readyState==k&&(O.getElementsByTagName("body")[0]||O.body))&&e(),U||(typeof O.addEventListener!=k&&O.addEventListener("DOMContentLoaded",e,!1),j.ie&&j.win&&(O.attachEvent(L,function(){"complete"==O.readyState&&(O.detachEvent(L,arguments.callee),e())}),M==top&&!function(){if(!U){try{O.documentElement.doScroll("left")}catch(t){return void setTimeout(arguments.callee,0)}e()}}()),j.wk&&!function(){return U?void 0:/loaded|complete/.test(O.readyState)?void e():void setTimeout(arguments.callee,0)}(),n(e)))})(),function(){j.ie&&j.win&&window.attachEvent("onunload",function(){for(var e=q.length,t=0;e>t;t++)q[t][0].detachEvent(q[t][1],q[t][2]);for(var n=H.length,i=0;n>i;i++)f(H[i]);for(var a in j)j[a]=null;j=null;for(var r in Ee)Ee[r]=null;Ee=null})}();return{registerObject:function(e,t,n,i){if(j.w3&&e&&t){var a={};a.id=e,a.swfVersion=t,a.expressInstall=n,a.callbackFn=i,R[R.length]=a,C(e,!1)}else i&&i({success:!1,id:e})},getObjectById:function(e){return j.w3?o(e):void 0},embedSWF:function(e,n,i,a,r,o,c,u,g,f){var p={success:!1,id:n};j.w3&&!(j.wk&&j.wk<312)&&e&&n&&i&&a&&r?(C(n,!1),t(function(){i+="",a+="";var t={};if(g&&typeof g===D)for(var h in g)t[h]=g[h];t.data=e,t.width=i,t.height=a;var m={};if(u&&typeof u===D)for(var v in u)m[v]=u[v];if(c&&typeof c===D)for(var b in c)typeof m.flashvars!=k?m.flashvars+="&"+b+"="+c[b]:m.flashvars=b+"="+c[b];if(y(r)){var I=d(t,m,n);t.id==n&&C(n,!0),p.success=!0,p.ref=I}else{if(o&&s())return t.data=o,void l(t,m,n,f);C(n,!0)}f&&f(p)})):f&&f(p)},switchOffAutoHideShow:function(){W=!1},ua:j,getFlashPlayerVersion:function(){return{major:j.pv[0],minor:j.pv[1],release:j.pv[2]}},hasFlashPlayerVersion:y,createSWF:function(e,t,n){return j.w3?d(e,t,n):void 0},showExpressInstall:function(e,t,n,i){j.w3&&s()&&l(e,t,n,i)},removeSWF:function(e){j.w3&&f(e)},createCSS:function(e,t,n,i){j.w3&&b(e,t,n,i)},addDomLoadEvent:t,addLoadEvent:n,getQueryParamValue:function(e){var t=O.location.search||O.location.hash;if(t){if(/\?/.test(t)&&(t=t.split("?")[1]),null==e)return I(t);for(var n=t.split("&"),i=0;i<n.length;i++)if(n[i].substring(0,n[i].indexOf("="))==e)return I(n[i].substring(n[i].indexOf("=")+1))}return""},expressInstallCallback:function(){if($){var e=h(V);e&&S&&(e.parentNode.replaceChild(S,e),P&&(C(P,!0),j.ie&&j.win&&(S.style.display="block")),w&&w(E)),$=!1}}}}();!function(){function e(t){return new e.fn.init(t)}function t(e,t,n){if(!n.contentWindow||!n.contentWindow.postMessage)return!1;var i=JSON.stringify({method:e,value:t});n.contentWindow.postMessage(i,"*")}function n(e){var t,n;try{t=JSON.parse(e.data),n=t.event||t.method}catch(i){}if(!/^https?:\/\/player.vimeo.com/.test(e.origin))return!1;"*"===l&&(l=e.origin);var r=t.value,o=t.data,s=""===s?null:t.player_id,c=document.getElementById(s),u=a(n,s),d=[];return c&&"ready"==n&&!c.instanceIsReady&&(c.instanceIsReady=!0),u?(void 0!==r&&d.push(r),o&&d.push(o),s&&d.push(s),d.length>0?u.apply(null,d):u.call()):!1}function i(e,t,n){n?(s[n]||(s[n]={}),s[n][e]=t):s[e]=t}function a(e,t){return t?s[t][e]:s[e]}function r(e,t){if(t&&s[t]){if(!s[t][e])return!1;s[t][e]=null}else{if(!s[e])return!1;s[e]=null}return!0}function o(e){return!!(e&&e.constructor&&e.call&&e.apply)}var s={},l=(Array.prototype.slice,"*");e.fn=e.prototype={element:null,init:function(e){return"string"==typeof e&&(e=document.getElementById(e)),this.element=e,this.element.instanceIsReady=!1,this},api:function(e,n){if(!this.element||!e)return!1;var a=this,r=a.element,s=""!==r.id?r.id:null,l=o(n)?null:n,c=o(n)?n:null;return c&&i(e,c,s),t(e,l,r),a},addEvent:function(e,n){if(!this.element)return!1;var a=this,r=a.element,o=""!==r.id?r.id:null;return i(e,n,o),"ready"!=e?t("addEventListener",e,r):"ready"==e&&r.instanceIsReady&&n.call(null,o),a},removeEvent:function(e){if(!this.element)return!1;var n=this,i=n.element,a=""!==i.id?i.id:null,o=r(e,a);"ready"!=e&&o&&t("removeEventListener",e,i)}},e.fn.init.prototype=e.fn,window.addEventListener?window.addEventListener("message",n,!1):window.attachEvent("onmessage",n),window.Froogaloop=window.$f=e}();var Te=fs(function(){function e(){c||(c=!0,i())}function t(e){e=f.quickExtend({},e);var t=e.videoID,n=e.isHtml5;delete e.videoID,delete e.isHtml5;var i=document.location,a=i.protocol,r=i.port;r&&(r=":"+r);var o=f.generateQueryString(f.quickExtend(e,{enablejsapi:1,html5:n?1:void 0,origin:encodeURIComponent(a+"//"+document.domain+r)}));return"https://www.youtube.com/embed/{0}?{1}".format(t,o)}function n(e){var t=e.$iframe;e.player=new YT.Player(t[0],{events:{onReady:function(t){t.target===e.player&&void 0!==e.player.getPlayerState&&(e.isReady=!0,e.playerReadyEvent.fireNew())},onStateChange:function(t){var n=e.options.videoPlayerStateObservable;e.isPlaying=1==t.data,e.isPaused=2==t.data,n&&n.setValue(t.data)}}})}function i(){var e=document.createElement("script");e.src="https://www.youtube.com/iframe_api";var t=document.getElementsByTagName("script")[0];t.parentNode.insertBefore(e,t)}function a(e){try{e.player&&(e.isReady=!1,e.player.destroy(),delete e.player)}catch(t){ee.warn("youtube unload error - ")}}function r(e){return{isHtml5:e.isHtml5,controls:e.controls,loop:e.loop,playlist:e.playlist,wmode:e.wmode,enablejsapi:e.enablejsapi,origin:e.origin,videoID:e.videoID}}function o(){return Settings.YoutubeApiKey}function s(e){f.eachItem(e,function(t,n){e[t]={imageUrl:n.url,size:n.height}})}var l,c=!1,u=!1,d=[],g=this;window.onYouTubeIframeAPIReady=function(){u=!0;for(var e=0;e<d.length;e++)n(d[e]);d=[]},this.supportsHTML5=function(){return void 0===l&&(l=!!document.createElement("video").canPlayType),l},this.getHelper=function(){return g},this.createPlayer=function(i){i=f.quickExtend({isHtml5:Te.supportsHTML5(),createIframe:cs,shouldLoad:!1},i);var o=!1,s=i.$container,l=i.createIframe,c=[],g={type:"youtube",options:i,playerReadyEvent:x.create(),isReady:!1,isPlaying:!1,isPaused:!1,$iframe:void 0,load:function(){return o||(g.isReady=!1,o=!0,e(),u?n(g):d.push(g)),g},whenReady:function(e,t){g.isReady?e.call(g.player,g):g.playerReadyEvent.one(function(){e.call(g.player,g)},t)},call:function(e){
for(var t=arguments.length-1,n=Array(t),i=0;t>i;i++)n[i]=arguments[i+1];return c.push({apiFuncName:e,args:n}),g.callRequested||(g.callRequested=!0,g.whenReady(function(){window.setTimeout(function(){f.eachItem(c,function(e,t){g.player[t.apiFuncName].apply(g.player,t.args)}),c=[],g.callRequested=!1},0)})),g},setOptions:function(e){g.options=f.quickExtend({},g.options,e),e.shouldLoad&&g.reload()},toggleInitilized:function(e){o=e},isInitialized:function(){return o},reload:function(){try{var e=g.$iframe;e&&e.remove();var n=r(g.options);e=l().attr("src",t(n)),e.appendTo(s),g.$iframe=e,g.isReady&&g.player.destroy(),o&&(o=!1,g.load())}catch(i){ee.warn("video reload error - ")}},appendTo:function(e){return g.$iframe.appendTo(e),g},detach:function(){return g.$iframe.detach(),g},setLoop:function(e){g.call("setLoop",e)},play:function(){Z.IsMobileClient||g.call("playVideo")},pause:function(){Z.IsMobileClient&&!this.isPlaying||g.call("pauseVideo")},seekToBeginning:function(){var e;(!Z.IsMobileClient||this.isPlaying||this.isPaused)&&(e=g.player.getDuration(),g.player.seekTo(e-e,!0))},stopVideo:function(){g.seekToBeginning(),g.pause()},increaseVolume:function(e){var t=g.player.getVolume();e=e||10,g.player.setVolume(Math.min(t+e,100))},decreaseVolume:function(e){var t=g.player.getVolume();e=e||10,g.player.setVolume(Math.max(t-e,0))},getPlayerState:function(){return g.player?g.player.getPlayerState():void 0},unloadPlayer:function(){c=[],a(g)},removePlayerIFrame:function(){g.$iframe&&g.$iframe.remove()}};return g.setOptions(i),g},this.checkVideoExists=function(e,t){var n=o();f.ajax({type:"GET",timeout:1e4,statusCode:{404:function(){ee.log("getJSON request failed! Page not found"),t("error")}},url:"https://www.googleapis.com/youtube/v3/videos?id="+e+"&key="+n+"&part=snippet,contentDetails&callback=?",dataType:"jsonp",success:function(n){if(n&&n.items&&n.items[0]){var i,a=[],r=[];f.eachEntry(n.items[0].snippet.thumbnails,function(e,t){var n=Math.floor(t.width/t.height*100);133!==n?r.push(t):a.push(t)}),i=a[a.length-1],a.splice(a.length-1,1),s(a),s(r);var o={imagePath:i.url,storageServer:0,imageHeight:i.height,imageWidth:i.width,scaledVersions:a,differentRatioScaledVersions:r},l=!1;if(n.items[0].contentDetails&&n.items[0].contentDetails.definition&&"hd"===n.items[0].contentDetails.definition)var l=!0;t({status:!0,imageUrl:o,videoUrl:"https://youtu.be/"+e,hightDefinition:l})}else t(n&&n.error?{status:!0}:{status:void 0})},error:function(e,n,i){ee.log("getJSON request failed! "+n+": "+i),t(void 0)}})},this.getVideoImageUrl=function(e,t){g.checkVideoExists(e,function(e){t(e.imageUrl)})},this.getVideoThumbUrl=function(e){return se.resolveImageUrl(e,{height:90,width:90})},this.getVideoUrl=function(e){return"https://youtu.be/"+e},this.getVideoEmbeddingUrl=function(e,n){return n=f.quickExtend({isHtml5:Te.supportsHTML5(),controls:1,loop:0,playlist:"",wmode:"transparent"},n),t(f.quickExtend(n,{videoID:e}))}}),xe={Unstarted:-1,Ended:0,Playing:1,Paused:2,Buffering:3,Cued:5},ke=fs(function(){function e(){if(!s){s=!0,l=!0;for(var e=0;e<c.length;e++)n(c[e]);c=[]}}function t(e,t){e=f.quickExtend({},e);var n=e.videoID;delete e.videoID;var i=f.generateQueryString({api:1,player_id:t});return"//player.vimeo.com/video/{0}?{1}".format(n,i)}function n(e){var t=e.$iframe,n=!1;f.browser.msie&&"11.0"!==f.browser.version&&(n=!0),e.player=$f(t[0]),e.removeEvent("pause"),e.removeEvent("play"),e.removeEvent("finish"),e.player.addEvent("ready",function(){n?(0!==e.ie8Counter&&e.ie8Counter%2!==0||r(e,n),e.ie8Counter+=1):r(e,n)})}function i(e){var t=e.player;t&&(o(e,xe.Unstarted),t.removeEvent("ready"),t.removeEvent("pause"),t.removeEvent("play"),t.removeEvent("finish"),e.isReady=!1,f(t.element).remove(),delete e.player,s=!1,l=!1)}function a(e){e.isLoop&&(e.seekToBeginning(),setTimeout(function(){e.play()},1e3))}function r(e){e.isReady=!0,e.playerReadyEvent.fire()}function o(e,t){var n=e.options.videoPlayerStateObservable;e.playerState=t,e.isPlaying=1==t,e.isPaused=2==t,n&&n.setValue(t)}var s=!1,l=!1,c=[],u=this;this.createPlayer=function(r){r=f.quickExtend({createIframe:cs,playerId:f.uniqueID()},r);var s=!1,u=r.$container,d=r.createIframe,g=[],p={type:"vimeo",options:r,$iframe:void 0,playerState:xe.Unstarted,playerReadyEvent:x.create(),isReady:!1,isLoop:!1,isPlaying:!1,isPaused:!1,ie8Counter:0,playerId:"vimeo-id-"+r.instanceId,thumbnailUrl:"",load:function(){return s||(p.isReady=!1,s=!0,e(),l?n(p):c.push(p)),p},whenReady:function(e){p.isReady?e.call(p.player,p):p.playerReadyEvent.one(function(){e.call(p.player,p)})},call:function(e){for(var t=arguments.length-1,n=Array(t),i=0;t>i;i++)n[i]=arguments[i+1];return g.unshift({apiFuncName:e,args:n}),p.callRequested||(p.callRequested=!0,p.whenReady(function(){window.setTimeout(function(){var e=!1;f.browser.msie&&"11.0"!==f.browser.version&&(e=!0),f.eachItem(g,function(e,t){var n=void 0;void 0!=t.args[0]&&(n=t.args[0]),p.player.api(t.apiFuncName,n)}),g=[],p.callRequested=!1,p.player&&(p.player.addEvent("pause",function(){p.player&&p.player.api("getDuration",function(t){var n=t;p.player.api("getCurrentTime",function(t){n-t===0?(o(p,xe.Ended),e&&a(p)):o(p,xe.Paused)})})}),p.player.addEvent("finish",function(){o(p,xe.Ended),e&&a(p)}),p.player.addEvent("play",function(){o(p,xe.Playing)}))},0)})),p},setOptions:function(e){p.options=f.quickExtend({},p.options,e),e.shouldLoad&&p.reload()},toggleInitilized:function(e){s=e},reload:function(){try{var e=p.$iframe;e&&e.remove();var n=r.playerId;e=d().attr("src",t(p.options,n)),e.data("elementId",p.options.elementId),e.attr("id",n),e.appendTo(u),p.$iframe=e,p.isReady&&i(p),s&&(s=!1,p.load())}catch(a){ee.warn("video reload error - ")}},play:function(){Z.IsMobileClient||p.call("play")},pause:function(){Z.IsMobileClient&&!this.isPlaying||p.call("pause")},setLoop:function(e){p.isLoop=e,(!f.browser.msie||parseInt(f.browser.version)>10)&&p.call("setLoop",e)},seekToBeginning:function(){(!Z.IsMobileClient||this.isPlaying||this.isPaused)&&p.call("seekTo",0)},stopVideo:function(){p.seekToBeginning(),p.pause()},increaseVolume:function(e){p.player.api("getVolume",function(t){e=(e||10)/100,p.call("setVolume",Math.min(t+e,1))})},decreaseVolume:function(e){p.player.api("getVolume",function(t){e=(e||10)/100,p.call("setVolume",Math.max(t-e,0))})},removeEvent:function(e){p.call("removeEvent",e)},getPlayerState:function(){return p.playerState},unloadPlayer:function(){g=[],i(p)},removePlayerIFrame:function(){p.$iframe&&p.$iframe.remove()}};return p.setOptions(r),p},this.checkVideoExists=function(e,t){!f.browser.msie||parseInt(f.browser.version)>10?f.getJSON("https://vimeo.com/api/v2/video/{0}.json&callback=getImageCallback".format(e),null,function(n){if(n){var i=n[0].thumbnail_large;i=i.substring(0,i.lastIndexOf("_")+1);var a={imagePath:i+"940x540.jpg",storageServer:0,imageHeight:540,imageWidth:960,scaledVersions:[{size:75,imageUrl:i+"100x75.jpg"},{size:150,imageUrl:i+"200x150.jpg"},{size:360,imageUrl:i+"640x360.jpg"},{size:576,imageUrl:i+"1024x576.jpg"}]},r=!1;(Math.max(n[0].width,n[0].height)>=1216||Math.min(n[0].width,n[0].height)>=684)&&(r=!0),t({status:!0,imageUrl:a,videoUrl:"https://vimeo.com/"+e,hightDefinition:r})}}).fail(function(e,n,i){ee.log("getJSON request failed! "+n+": "+i),t({status:void 0})}):f.ajax({type:"GET",timeout:1e4,statusCode:{404:function(){ee.log("getJSON request failed! Page not found"),t({status:void 0})}},url:"https://vimeo.com/api/oembed.json?url=https%3A//vimeo.com/"+e+"&callback=checkVideoCallback(false)",dataType:"jsonp",success:function(n){if(n){var i=n[0]&&n[0].thumbnail_large||n.thumbnail_url;i=i.substring(0,i.lastIndexOf("_")+1);var a={imagePath:i+"640x360.jpg",storageServer:0,imageHeight:360,imageWidth:640,scaledVersions:[{size:75,imageUrl:i+"100x75.jpg"},{size:150,imageUrl:i+"200x150.jpg"},{size:360,imageUrl:i+"640x360.jpg"},{size:576,imageUrl:i+"1024x576.jpg"}]};t({status:!0,imageUrl:a,videoUrl:"https://vimeo.com/"+e})}else t({status:void 0})},error:function(e,n,i){ee.log("getJSON request failed! "+n+": "+i),t({status:void 0})}})},this.getVideoImageUrl=function(e,t){u.checkVideoExists(e,function(e){t(e.imageUrl)})},this.getVideoThumbUrl=function(e){return se.resolveImageUrl(e,{height:90,width:90})},this.getVideoUrl=function(e){return"https://vimeo.com/"+e},this.getHelper=function(){return u},this.getVideoEmbeddingUrl=function(e){return"//player.vimeo.com/video/{0}".format(e)}}),De={Hybrid:"hybrid",Roadmap:"roadmap",Satellite:"satellite",Terrain:"terrain"},Fe=fs(function(){function e(t){if(!o&&!l){o=!0;var n="https://maps.googleapis.com/maps/api/js?callback=onGoogleMapAPIReady";t&&(n+="&key="+t),v.getScriptWithValidation(n,function(){return!!l},{}).fail(function(){o=!1,e(t)})}}function t(){var e=this;clearTimeout(e.refreshTimer),e.refreshTimer=setTimeout(function(){var t=e.getQueryString(),n=e.getZoom(),i=e.getCenter(),a=e.getMapTypeId(),r=e.getWidth(),o=e.getHeight();a!==De.Hybrid&&a!==De.Terrain||(a=De.Roadmap);var s="embed-place.html";Settings.IsApiPartner&&(s="embed-place-hosted.html");var l='<iframe height="{height}" width="{width}" frameborder="0" style="border:0" src="https://components.mywebsitebuilder.com/extern/maps-app/{fileName}?q={query}&zoom={zoom}&center={center}&maptype={mapType}" allowfullscreen></iframe>'.format({width:r,height:o,zoom:n,center:i,mapType:a,query:encodeURI(t),fileName:s});e.getImageSource()&&e.getImageSource()===l||(e.setImageSource(l),e.element.children().remove(),e.element.append(f(l)))},250)}function n(e){var t=""+e;return"object"==typeof e&&e.lat&&(t="({0},{1})".format(e.lat,e.lng)),t}function i(e){if(e=f.quickExtend({},e)){var t=e.center;f.isArray(t)&&(e.center={lat:t[0],lng:t[1]})}return e}function a(e){return f.isArray(e)?{lat:e[0],lng:e[1]}:e}var r,o=!1,s=[],l=!1;window.onGoogleMapAPIReady=function(){l=!0;var e=s;s=[],f.eachItem(e,function(e,t){t()})},this.Geocoder=w.create(function(){var e={"(41.1876338,-74.08288390000001)":"21-51 Diltz Rd, Pomona, NY 10970, United States","(40.7481829,-73.98506350000002)":"350 5th Ave, New York, NY 10118, United States","(40.7130794,-74.0056932)":"52 Chambers St, New York, NY 10007, United States"},t={withGeocoder:function(e){t.geocoder?e(t.geocoder):Fe.useGoogleMapAPI(function(){t.geocoder=new google.maps.Geocoder,e(t.geocoder)})},geocode:function(e,n,i){n=f.valueOrDefault(n,cs),i=f.valueOrDefault(i,cs),t.withGeocoder(function(t){t.geocode({address:e},function(e,t){t==google.maps.GeocoderStatus.OK?n(e):i(t)})})},addAddressToCache:function(t,i){e[n(t)]=i},reverseGeocoding:function(i,r,o){if(r=f.valueOrDefault(r,cs),o=f.valueOrDefault(o,cs),i=a(i),0===i.lat&&0===i.lng)return void r("");var s=e[""+i];s?r(s):t.withGeocoder(function(t){t.geocode({latLng:i},function(t,a){if(a==google.maps.GeocoderStatus.OK){var s=t[0];s=s?s.formatted_address:n(i),e[n(i)]=s,r(s)}else o(a)})})}};return t}),this.latLngToArray=function(e){return e?"function"==typeof e.lat?[e.lat(),e.lng()]:[e.lat,e.lng]:[0,0]},this.getMapAddress=function(e,t){t("")},this.setCurrentAddress=function(e){r=e},this.getCurrentAddress=function(){return r},this.buildContentString=function(e,t){return'<div id="content"><div id="siteNotice"></div>'+'<h1 id="firstHeading" class="firstHeading">{0}</h1>'.format(e)+'<div id="bodyContent">'+t+"</div></div>"},this.useGoogleMapAPI=function(t,n){l?t():(e(n),s.push(t))},this.loadApi=function(e,t,n){n.hasLoaded=!0;var a=new google.maps.Map(e[0],i(n.mapOptions));n.map=a;var r=n.pendingMapOperations;n.pendingMapOperations=[],f.eachItem(r,function(e,t){t(a)}),google.maps.event.addListener(a,"center_changed",function(){n.currentCenter.setValue(a.getCenter())}),n.currentCenter.setValue(a.getCenter()),google.maps.event.addListener(a,"zoom_changed",function(){n.currentZoom.setValue(a.getZoom())}),google.maps.event.addListener(a,"maptypeid_changed",function(){n.mapTypeId.setValue(a.getMapTypeId())}),google.maps.event.addListener(a.getStreetView(),"visible_changed",function(){n.isStreetView.setValue(this.getVisible())}),n.currentZoom.setValue(a.getZoom())},this.loadBasicMap=function(e,n,i,a){var r={element:e,instance:a,mapOptions:n,imageSource:null,refreshTimer:null,setCenter:function(e){t.call(this)},setZoom:function(){t.call(this)},setOptions:function(){t.call(this)},getMapTypeId:function(){return this.instance.getPropertyValue("mapType")||De.Roadmap},getCenter:function(){return(this.instance.getPropertyValue("mapPosition")||this.mapOptions.center).join(",")},getStreetView:ds,getZoom:function(){return this.instance.getPropertyValue("zooming")||this.mapOptions.zoom||2},getQueryString:function(){var e=this.instance.getPropertyValue("markers"),t=this.getCenter(),n="near";if(e){var i={};return f.each(e,function(t){i[e[t].position.join(",")]=e[t].title}),i.hasOwnProperty(t)?i[t]:Object.keys(i).length>0?i[Object.keys(i)[0]]:e[Object.keys(e)[0]].title}return n},getImageSource:function(){return this.imageSource},setImageSource:function(e){this.imageSource=e},getWidth:function(){return Math.round(this.element.width())},getHeight:function(){return Math.round(this.element.height())},getScale:function(){return 1}};i.map=r;var o=i.pendingMapOperations;i.pendingMapOperations=[],f.eachItem(o,function(e,t){t(r)})},this.createMap=function(e,t){function r(){f.each(d.getItems(),function(e,t){t.setMap(null)}),g={},d.clear()}function o(e,t){e&&(d.updateItemFields(e.name,{icon:t}),y.fireNew())}function s(e,t){Fe.Geocoder.get().reverseGeocoding(t,function(t){e.title=t,y.fireNew()},function(){e.title=t,y.fireNew()})}function l(e,t){e=f.extend({position:void 0,name:void 0,title:void 0,customIconUrl:void 0,icon:void 0},e),t=f.valueOrDefault(t,cs),c.withMap(function(i){var r=a(f.valueOrCalculate(e.position,function(){return i.getCenter()})),o=n(r);if(g[o])t(void 0);else{var s=e.name,l=e.title,c=(e.icon,function(){void 0===s&&(s=f.uniqueID()),"https:"===window.location.protocol&&e&&e.indexOf&&e.indexOf("http:")>-1&&(e=e.replace("http:","https:"));var e=void 0===e?"":e,n={name:s,position:r,title:l,map:i,draggable:!1,clickable:!0,icon:e,setMap:function(e){this.map=e},getPosition:function(){return r},setPosition:function(e){this.position=e},setOptions:function(e){"boolean"==typeof e.draggable&&(this.draggable=e.draggable),"boolean"==typeof e.clickable&&(this.clickable=e.clickable),void 0!==e.center&&(this.position=e.center)}};if("undefined"!=typeof google&&void 0!==google.maps.Marker){n=new google.maps.Marker({name:s,position:r,map:i,title:l,icon:e})}d.put(n),g[o]=n,t(n),y.fireNew()});void 0===l,c()}})}t=f.extend({center:[46.578498,2.457275],zoom:8},t);var c={},u=[],d=new $t({idFunction:function(e){return e.name}}),g={},p=_.create(void 0,{equalityComparer:function(e,t){return void 0===e||void 0===t?e===t:null===e||null===t?e===t:""+e==""+t}}),h=_.createNumerical(),m=_.create(),v=_.create(),y=x.create();return f.quickExtend(c,{$element:e,markers:d,markersChangedEvent:y,currentCenter:p,currentZoom:h,mapTypeId:m,isStreetView:v,pendingMapOperations:u,mapOptions:t,withMap:function(e){c.map?e(c.map):u.push(e)},setOptions:function(e){c.withMap(function(t){t.setOptions(i(e))})},setZoom:function(e){c.withMap(function(t){t.setZoom(e)})},setStreetView:function(e,t){e?c.withMap(function(n){var i=n.getStreetView();i&&(i.setVisible(e),i.setPov(t.pov),i.setPosition(t.position))}):c.withMap(function(e){var t=e.getStreetView();t&&t.setVisible(!1)})},getStreetViewData:function(e){c.withMap(function(t){var n=t.getStreetView();e({pov:n.getPov(),position:n.getPosition()})})},setCenter:function(e){c.withMap(function(t){t.setCenter(a(e))})},getCenter:function(e){c.withMap(function(t){e(t.getCenter())})},getMapTypeId:function(e){c.withMap(function(t){e(t.getMapTypeId())})},panTo:function(e){c.withMap(function(t){t.panTo(e)})},updateMarkerPosition:function(e,t){s(e,t)},setMarkerIcon:function(e,t){o(e,t)},addMarker:function(e,t){t=f.valueOrDefault(t,cs),l(e,function(e){t(e),e&&y.fireNew()})},removeMarker:function(e){"string"==typeof e&&(e=d.getItem(e)),e&&(e.setMap(null),d.remove(e.name),delete g["({0},{1})".format(e.position.lat,e.position.lng)],y.fireNew())},clearMarkers:function(){r(),y.fireNew()},getMarkersInfo:function(){var e={};return f.each(d.getItems(),function(t,n){var i=n.position;e[t]={name:n.name,title:n.title,icon:n.icon,position:[i.lat,i.lng]}}),e},setMarkers:function(e,t){t=f.valueOrDefault(t,cs),c.withMap(function(){r(),f.each(e,function(e,t){l(t)}),t(),y.fireNew()})},refreshSize:function(){c.withMap(function(){"undefined"!=typeof google&&void 0!==google.maps.event&&google.maps.event.trigger(c.map,"resize")})}}),c}});!function(e){e.fn.scrollToFixed=function(t){function n(){g.setValue(i()>f-t.distance)}function i(){var e;if(l[0]===window){var t=document.compatMode&&"BackCompat"!=document.compatMode?document.documentElement:document.body;e=document.all?t.scrollTop:window.pageYOffset}else e=l[0].scrollTop;return e}var a=e.uniqueID();t=e.quickExtend({fixedClass:"scroll-fixed",unfixedClass:"scroll-unfixed",fixedCallback:cs,unfixedCallback:cs,distance:0,$scrollablePane:e(window),getScrollingSize:function(){return s.offset().top},getTopPositionWhenFixed:function(){return 0}},t);var r,o={},s=this,l=t.$scrollablePane,c=t.getScrollingSize,u=t.getTopPositionWhenFixed,d=!1,g=O.create(void 0,{valueChangeCallback:function(n){if(!d){if(d=!0,n){var i=s.outerHeight(),a=s.css("top");r=t.startPosition?t.startPosition:a;var o=e("<div></div>").css("height",i);s.wrap(o),s.css("top",u()+t.distance),t.fixedCallback(),s.addClass(t.fixedClass),s.removeClass(t.unfixedClass)}else s.removeClass(t.fixedClass),s.addClass(t.unfixedClass),t.unfixedCallback(),void 0!==r&&(s.unwrap(),s.css("top",r),r=void 0);d=!1}}}),f=c();return e.quickExtend(o,{$element:s,isFixed:g,unbind:function(){o.deactivate()},deactivate:function(){l.unbind("scroll."+a),g.setValue(!1)},activate:function(){return l.bind("scroll."+a,function(){n()}),n(),o},refresh:function(){f=c()+i(),n()},pushTo:function(e){return e.push(o),o}}),o}}(p);var Ae=function(){function e(){this.scope.start()}function t(){this.scope.finish()}function n(e,t){t.batchFinishingStartedCallback(),t.batchFinishCallback(),s(e),x.fireLazyEvent(e,"finishedEvent"),t.batchFinishingCompletedCallback(),x.fireLazyEvent(e,"afterFinishedEvent")}function i(e){void 0===c[e.name]&&(c[e.name]={controller:e,index:l},l++)}function a(e){void 0!==c[e.name]&&(delete c[e.name],l--)}function r(e,t,n,i){e.pendingEvents[t.id]={event:t,isLazy:!1,args:i,condition:n}}function o(e,t,n,i,a,r,o){e.pendingEvents[t]={object:n,eventPropertyName:i,callback:a,isLazy:!0,args:o,condition:r}}function s(e){var t,n,i,a=e.pendingEvents,r=[];for(var o in a)t=a[o],r.push(t),delete e.pendingEvents[o];var s=e._operations;for(e._operationNames={},e._operations=[],i=r.length,n=0;i>n;n++){t=r[n];var l=t.condition;if(!l||l()){var c=t.args;t.isLazy?(x.fireLazyEvent(t.object,t.eventPropertyName,c),t.callback(c)):t.event.fireNew(c)}}for(i=s.length,n=0;i>n;n++){var u=s[n];void 0===u?ee.log("Skipping scheduled operation since its missing in the array"):u.call(e)}}var l=0,c={},u=C.extend("OperationsBatch",{init:function(e){e=f.quickExtend({batchStartCallback:cs,batchFinishCallback:cs,beforeFinishingCallback:cs,batchFinishingStartedCallback:cs,batchFinishingCompletedCallback:cs},e);var t=e.name,r=e.batchStartCallback,o=e.beforeFinishingCallback;void 0===t&&(t=f.weakID());var s=this,l=we.create({startCallback:function(){i(s),x.fireLazyEvent(s,"startedEvent"),r()},beforeFinishingCallback:o,finishCallback:function(){n(s,e),a(s)}});this.name=t,this.scope=l,this.pendingEvents={},this._operationNames={},this._operations=[]},lazyInitializationProperties:{startedEvent:x.create,finishedEvent:x.create,afterFinishedEvent:x.create},whenNotActive:function(e){this.isActive()||e()},executeWithActivation:function(e){this.start(),e(),this.finish()},begin:e,end:t,start:e,finish:t,getCounter:function(){return this.scope.getCounter()},release:function(){this.scope.setCounter(1),this.finish()},isActive:function(){return this.scope.isActive()},fireWhenFinished:function(e,t){t=f.quickExtend({fireOnce:!0,customName:""},t);var n=t.fireOnce,i=t.args,a=t.customName,r=void 0!==e.name,o=r?e.event:e,s=r?e.name:"",l=n?o.id+s+a:void 0;this.whenFinished(function(){r?o.fireNew(s,i):o.fireNew(i)},l)},fireEvent:function(e,t,n){this.isActive()||n&&!n()?r(this,e,n,t):e.fireNew(t)},fireLazyEvent:function(e,t,n,i,a){a=f.quickExtend({callback:cs},a);var r=a.callback;if(this.isActive()||i&&!i()){var s=a.eventId;s||(s=e.id+t),o(this,s,e,t,r,i,n)}else x.fireLazyEvent(e,t,n),r(n)},whenFinished:function(e,t){this.performOperation(e,t)},performInstanceOperation:function(e,t,n){void 0!==n&&null!==n||(n="op"+f.uniqueID()+"_"),this.performOperation(e,n+t.id)},performOperation:function(e,t){var n=this;if(n.isActive()){void 0!==t&&null!==t||(t="op"+f.uniqueID());var i=n._operations,a=n._operationNames,r=a[t];void 0===r&&(r=i.length,a[t]=r),i[r]=e}else e.call(n)},performOperationWhenBatchStart:function(e,t){var n=this;n.isActive()?n.performOperation(e,t):n.startedEvent.one(function(){n.performOperation(e,t)})},executeOnBatchStart:function(e){var t=this;t.isActive()?e():t.startedEvent.one(function(){e()})},executeAfterBatchFinished:function(e){var t=this;t.isActive()?e():t.finishedEvent.one(function(){e()})},hasOperation:function(e){return void 0!==this._operationNames[e]},bind:function(e,t){var n=this.startedEvent.bind(e),i=this.finishedEvent.bind(t);return{unbind:function(){n.unbind(),i.unbind()},addToCollection:function(e){e.add(this)}}},bindToBatch:function(e){var t=this;e.bind(function(){t.start()},function(){t.finish()})}});return u.releaseAllActiveBatches=function(){var e=f.getValues(c).orderBy(function(e){return-e.index});f.eachItem(e,function(e,t){t.controller.release(),delete c[t.name]})},u.create=function(e){return new u(e)},u.whenAllFinished=function(e,t,n){for(var i=e.length,a=0;a<e.length;a++)e[a].whenFinished(function(){i--,0===i&&t()},n)},u}(),Be=function(){function e(t){for(var n=f.minValue([t.pendingOperations.length,t.options.concurentRequests-t.currentActivateRequests]),i=[],a=0;n>a;a++){var r=t.pendingOperations.shift();if(r){var o=r.fetch(),s=r.id;s&&!t.activeOperationsMap[s]?(t.activeOperationsMap[s]=!0,i.push({requestData:r,promise:o,id:s})):a--}}var l=!0,c=!1;f.eachItem(i,function(n,i){t.currentActivateRequests++,i.promise.done(function(e){t.activeOperationsMap[i.id]&&t.successDeferredMap[i.id].resolve(e)}).fail(function(){t.activeOperationsMap[i.id]&&(t.failedOperations.push(i.requestData),t.options.reExecuteFailedOperationsAutomaticly&&t.reExecuteFailedOperations())}).always(function(){t.activeOperationsMap[i.id]&&(delete t.activeOperationsMap[i.id],t.currentActivateRequests--,l?c=!0:e(t))})}),l=!1,c&&e(t)}var t=C.extend("OperationsHandler",{init:function(e){e=f.quickExtend({concurentRequests:5,reExecuteFailedOperationsAutomaticly:!1},e),this.options=e,this.pendingOperations=[],this.failedOperations=[],this.activeOperationsMap={},this.currentActivateRequests=0,this.successPromiseMap={}},requestExecution:function(t){t=f.asArray(t),this.pendingOperations=f.merge(this.pendingOperations,t);var n=f.mapToDictionary(t,function(){return f.Deferred()},f.defaultIdFunction),i=f.mapToDictionary(t,function(e){return n[e.id].promise()},f.defaultIdFunction);return this.successDeferredMap=f.quickExtend({},n,this.successDeferredMap),this.successPromiseMap=f.quickExtend({},i,this.successPromiseMap),0===this.currentActivateRequests&&e(this),this.successPromiseMap},reExecuteFailedOperations:function(){var e=this.failedOperations;this.failedOperations=[],this.requestExecution(e)},cancel:function(){return this.pendingOperations=[],this.currentActivateRequests=0,this.activeOperationsMap={},this.failedOperations=[],this}});return t.create=function(e){return new t(e)},t}(),Ve={IE:1,Other:0},Le={IE6:{browser:Ve.IE,version:6},IE7:{browser:Ve.IE,version:7},IE8:{browser:Ve.IE,version:8},IE9:{browser:Ve.IE,version:9},Other:{browser:Ve.Other,version:0}};!function(e){e.extendValueWithDefaultValue=function(t,n){if(e.isPlainObject(t)&&(void 0===n||e.isPlainObject(n))){var i=e.quickExtend({},n);return e.quickExtend(i,t)}return void 0!==t&&null!==t?t:n},e.extendIfObject=function(t){return e.isPlainObject(t)?e.quickExtend({},t):t},e.cloneObject=function(t){return e.quickExtend({},t)},e.convertValueToObject=function(e,t){for(var n={},i=0;i<t.length;i++)n[t[i]]=e;return n},e.createArrayWithValue=function(e,t){for(var n=[],i=0;t>i;i++)n[i]=e;return n},e.findAvailableName=function(t,n,i){i&&(n=e.map(n,function(e){return e.toLowerCase()}));var a,r,o=e.makeDictionaryFromKeys(n,!0),s=e.isFunction(t),l=1;do r=a=s?t(l):t.format(l),i&&(a=a.toLowerCase()),l++;while(o[a]);return r},e.fn.setStyleAttr=function(e){return e?this.attr("style",e):this.removeAttr("style"),this},e.fn.htmlOrHide=function(t){return void 0===t||null===t?e(this).hide():e(this).show().html(t),this},e.objectSetIfUndefined=function(e,t,n){var i;if(!(t instanceof Array))return i=e[t],void 0===i?e[t]=n():i;for(var a=0;a<t.length;a++){var r=t[a];if(a===t.length-1)return i=e[r],void 0===i?e[r]=n():i;var o=e[r];void 0===o&&(o={},e[r]=o),e=o}},e.objectSet=function(e,t,n){if(t instanceof Array)for(var i=0;i<t.length;i++){var a=t[i];if(i===t.length-1)e[a]=n;else{var r=e[a];void 0===r&&(r={},e[a]=r),e=r}}else e[t]=n},e.objectRemove=function(e,t){if(t instanceof Array)for(var n=0;n<t.length;n++){var i=t[n];if(n===t.length-1)delete e[i];else{var a=e[i];void 0===a&&(a={},e[i]=a),e=a}}else delete e[t]},e.objectSetAndClone=function(t,n,i){var a=e.quickExtend({},t),r=a;n=e.asArray(n);for(var o=0;o<n.length;o++){var s=n[o];o===n.length-1?r[s]=i:(r[s]=e.quickExtend({},r[s]),r=r[s])}return a},e.objectGetAndClone=function(t,n,i){if(i=e.valueOrDefault(i,e.undefinedFunction),!i(t)){var a=e.quickExtend({},t),r=a;n=e.asArray(n);for(var o=0;o<n.length;o++){var s=n[o],l=r[s];if(i(l))return;r[s]=e.quickExtend({},l),r=r[s]}return a}},e.objectGet=function(t,n,i){if(i=e.valueOrDefault(i,e.undefinedOrNullFunction),!i(t)){if(!(n instanceof Array))return t[n];for(var a=0;a<n.length;a++){var r=n[a];if(a===n.length-1)return t[r];var o=t[r];if(i(o))return;t=o}}},e.getObjectIfUndefined=function(e){return e?e:{}},e.extendFunction=function(e,t){return function(){var n=arguments.length,i=Array(n+1);i[0]=e;for(var a=0;n>a;a++)i[a+1]=arguments[a];t.apply(this,i)}},e.extendMissing=function(t,n){return e.eachEntry(n,function(e,n){void 0===t[e]&&(t[e]=n)}),t},e.quickUnique=function(t,n){if(n=e.valueOrDefault(n,e.identity),t.length<2)return t.clone();var i=!0;for(r=0;r<t.length;r++){var a=typeof n(t[r]);if("string"!==a&&"number"!==a&&"boolean"!==a){i=!1;break}}if(!i)return e.unique(t);var r,o,s=[],l=[];for(r=0;r<t.length;r++)o="_"+n(t[r]),void 0===s[o]&&(s[o]=!0,l.push(t[r]));return l},e.keyToString=function(e){if(e>=65&&90>=e||e>=48&&57>=e)return String.fromCharCode(e);switch(e){case bt.ESC:return"Esc";case bt.Delete:return"Del"}return""},e.isCtrlPressed=function(e){return e.ctrlKey||e.metaKey},e.isShiftPressed=function(e){return e.shiftKey},e.isKey=function(e,t,n,i,a){null!==t&&void 0!==t&&"string"==typeof t&&(t=t.charCodeAt(0));var r=!1;return null!==t&&void 0!==t&&e.which!==t||(r=!0),n!==!0||e.ctrlKey||e.metaKey?n===!1&&(e.ctrlKey||e.metaKey)&&(r=!1):r=!1,i!==!0||e.shiftKey?i===!1&&e.shiftKey&&(r=!1):r=!1,a!==!0||e.altKey?a===!1&&e.altKey&&(r=!1):r=!1,r},e.isOneOfKeys=function(t,n,i,a,r){return n=e.asArray(n),e.any(n,function(n){return e.isKey(t,n,i,a,r)})},e.getOrInit=function(e,t,n){var i=e[t];return void 0===i&&(i=n,e[t]=i),i},e.getOrCreateArray=function(t,n){return e.getOrInit(t,n,[])},e.getOrCreateMap=function(t,n){return e.getOrInit(t,n,{})},e.getOrInitDeferred=function(e,t,n){var i=e[t];return void 0===i&&(i=n(),e[t]=i),i},e.getWindowCenter=function(){return{top:e(document).scrollTop()+e(window).height()/2,left:e(document).scrollLeft()+e(window).width()/2}},e.fn.makeNumericInput=function(t){t=e.quickExtend({allowDecimalPoint:!0,allowNegativeNumbers:!0},t);var n="[0-9]";t.allowNegativeNumbers&&(n="-|"+n),t.allowDecimalPoint&&(n+="|\\.");var i=RegExp(n);return e(this).keypress(function(e){var t=e||window.event,n=t.keyCode||t.which;n=String.fromCharCode(n),i.test(n)||(t.returnValue=!1,t.preventDefault&&t.preventDefault())})},e.getMouseOffset=function(t,n){n=e.valueOrDefault(n,!1);var i=0,a=0,r=!1;if(t||(t=window.event),t){if(t.pageX||t.pageY)i=t.pageX,a=t.pageY,n&&(r=!0);else{var o=t.originalEvent;o||(o=t);var s=o.changedTouches;s&&s[0]&&(i=s[0].pageX,a=s[0].pageY,n&&(r=!0))}if(r){var l=void 0!==window.pageXOffset?window.pageXOffset:(document.documentElement||document.body.parentNode||document.body).scrollLeft,c=void 0!==window.pageYOffset?window.pageYOffset:(document.documentElement||document.body.parentNode||document.body).scrollTop;i-=l,a-=c}return{left:i,top:a}}},e.extendJqueryUi=function(t,n,i){e.extend(e.ui[t].prototype,function(){var e={};return e[n]=i,e}(e.ui[t].prototype[n]))},e.fixColor=function(t){if("transparent"===t.toLowerCase())return t;if(t=t.trim(),t=e.trimBoth(t,"#"),3===t.length&&(t+=t),t="#"+t,7==t.length){var n=e.Color(t);if(n.space)return n.toCSS()}return null},e.getUrlVars=function(e){for(var t,n=[],i=e.slice(e.indexOf("?")+1).split("&"),a=0;a<i.length;a++)t=i[a].split("="),n.push(t[0]),n[t[0]]=t[1];return n},e.withObject=function(e,t){t(e)};var t;e.browserVersion=function(){return t||(-1!=navigator.appVersion.indexOf("MSIE 6.")&&(t=Le.IE6),-1!=navigator.appVersion.indexOf("MSIE 7.")&&(t=Le.IE7),-1!=navigator.appVersion.indexOf("MSIE 8.")&&(t=Le.IE8),-1!=navigator.appVersion.indexOf("MSIE 9.")&&(t=Le.IE9),t=Le.Other),t},function(){var t,n;e.escapeHTML=function(e){return t||(t=document.createElement("div"),n=document.createTextNode(e),t.appendChild(n)),n.nodeValue=e,t.innerHTML}}()}(p),p.extend(p.expr[":"],{focus:function(e){return e==document.activeElement}}),function(){function e(t,i){var a;switch(typeof t){case"string":i.push(JSON.stringify(t));break;case"number":i.push(isFinite(t)?t+"":"null");break;case"boolean":case"null":i.push(t+"");break;case"object":if(t)if(n(t)){i.push("[");for(var r=0;r<t.length;r++)a=t[r],void 0!==a?e(a,i):i.push("null"),r<t.length-1&&i.push(",");i.push("]")}else{i.push("{");var o=!0;for(var s in t)if(t.hasOwnProperty(s)&&(a=t[s],void 0!==a)){o||i.push(",");var l=!isNaN(s)||s.indexOf(" ")>=0||s.indexOf("-")>=0;l&&i.push('"'),i.push(s),l&&i.push('"'),i.push(":"),e(a,i),o=!1}i.push("}")}else i.push("null")}}function t(t,n){return n=n||[],e(t,n),n}var n=Array.isArray||f.isArray;"undefined"!=typeof module&&module.exports?module.exports=t:f.minimalStringifyJson=t}();var Me={},Oe={};!function(){function e(e,t,n,i){if(t&&e)for(var a=0;a<e.length;a++)e[a]=t(e[a],n,i)}function t(t,n,i,a){var r,o,s,l=a.filterFunction,c=a.mapItem,u=a.mapItemData,d=a.normalizeCollection,g=t.addedItems,p=t.removedItems,h=t.updatedItems;if(l){if(g&&(r=f.grep(g,l)),p&&(o=p.clone()),h){var m=ze.filterItems(h,l,{notPassedIdFunction:i.getIDFunction()});s=m.passed,o?f.merge(o,m.notPassed):m.notPassed.length>0&&(o=m.notPassed)}}else r=c?Oe.clone(g):g,s=c?Oe.clone(h):h,o=p;e(r,c,n,u),e(s,c,n,u),n.beginUpdate(),o&&n.remove(o),r&&n.put(r),s&&n.put(s),d(n),n.endUpdate()}Oe.contains=function(e,t){return f.oneOfValues(e,t)},Oe.clone=function(e){return e?e.slice(0):e},Oe.shortenArray=function(e,t){return e.length>t&&(e.length=t),e},Oe.getRandomItem=function(e){if(e){var t=e.length;if(t>0){var n=f.getRandom(0,t-1);return e[n]}}},Array.prototype.contains=function(e){return Oe.contains(e,this)},Array.prototype.clone=function(){return Oe.clone(this)},Array.prototype.isLastIndex=function(e){return e===this.length-1},Array.prototype.isSingleValue=function(e){return 1!==this.length?!1:f.isFunction(e)?e(this[0]):e===this[0]},Array.prototype.equals=function(e){if(e.length!=this.length)return!1;for(var t=0;t<this.length;t++)if(this[t]!=e[t])return!1;return!0},Array.prototype.removeItem=function(e){var t=f.inArray(e,this);return t>=0?(this.splice(t,1),!0):!1},Me.isObservableCollection=function(e){return!!(e&&e.isObservableCollection&&e.isObservableCollection())},Me.connectObservableCollection=function(e,n,i){
function a(a){t(a,e,n,i)}if(i=f.quickExtend({normalizeCollection:cs},i),e.connectionController)throw Error("Already connected");if(e.hasItems())throw Error("Invalid use - Collection should be empty");var r,o;return e.connectionController={disconnect:function(){r&&r.unbind(),o&&o.unbind()}},n.updateBatch.isActive()?o=n.updateBatch.afterFinishedEvent.one(function(){r=n.itemsChangedEvent.bind(a),t({addedItems:n.getItemsValues()},e,n,i)}):(r=n.itemsChangedEvent.bind(a),t({addedItems:n.getItemsValues()},e,n,i)),e},Me.disconnectObservableCollection=function(e){e.connectionController&&(e.connectionController.disconnect(),delete e.connectionController),e.clear()},Me.createSortedArray=function(e){e=f.extend({orderByDesc:!1},e);var t=e.valueSelector,n=e.comparer,i=e.orderByDesc,a=!0,r=[];return{addItem:function(e){r.push(e),a=!1},getItems:function(){return a||(i?r.orderByDesc(t,n):r.orderBy(t,n),a=!0),r}}}}();var ze=fs(function(){this.Filters={DateFilter:function(e){return{serverFilters:{fieldName:e.fieldName,type:"between",from:e.from,to:e.to},filterFunction:function(t){var n=t[e.fieldName];return n&&n>e.from&&n<e.to}}},EqualFilter:function(e){return{serverFilters:{fieldName:e.fieldName,type:"eq",value:e.value,isBinded:void 0===e.value?!0:void 0},filterFunction:function(t){return e.value===t[e.fieldName]}}},IntFilter:function(e){return{serverFilters:{fieldName:e.fieldName,type:"between",from:e.from,to:e.to},filterFunction:function(t){var n=t[e.fieldName];return n&&n>e.from&&n<e.to}}},ListFilter:function(e){return{serverFilters:{fieldName:e.fieldName,type:"eq",value:e.value},filterFunction:function(t){return Oe.contains(e.value,t[e.fieldName])}}},ContainsFilter:function(e){return{serverFilters:{fieldName:e.fieldName,type:"like",value:e.value},filterFunction:function(t){return t[e.fieldName].toLowerCase().indexOf(e.value.toLowerCase())>=0}}},NotFilter:function(e){return{serverFilters:{fieldName:e.fieldName,type:"neq",value:e.value,isBinded:void 0===e.value?!0:void 0},filterFunction:function(t){return e.value!==t[e.fieldName]}}}},this.filterItems=function(e,t,n){n=f.quickExtend({passedIdFunction:f.identity,notPassedIdFunction:f.identity},n);var i=[],a=[];return f.each(e,function(e,r){if(t(r)){var o=n.passedIdFunction(r);i.push(o)}else{var s=n.notPassedIdFunction(r);a.push(s)}}),{passed:i,notPassed:a}},this.getFiltersCompositeFunction=function(e,t){t=f.valueOrDefault(t,"filterFunction");var n=us;return f.eachItem(e,function(e,i){n=f.wrapMethod(n,function(e){return function(n){return i[t](n)&&e(n)}})}),n}}),_e=fs(function(){this.getListNameFromInstance=function(e){return e.getPropertyValue(ui.dataInfo.name).listName},this.getListControllerFromInstance=function(e){return e.elementType===ri.StoreFront&&e.getCurrentListController?e.getCurrentListController():Cr.getListByName(_e.getListNameFromInstance(e))},this.isDynamicPage=function(e){return!!e.pageListName},this.isMasterListPage=function(e){return"Store"===e.masterPageListName?!1:!!e.masterPageListName},this.isListPage=function(e){return this.isMasterListPage(e)||this.isDynamicPage(e)},this.getListForCurrentDynamicPage=function(){var e=f.objectGet(va.CurrentPageData.getValue(),"pageListName");return e&&Cr.getListByName(e)},this.getListName=function(e){return e.masterPageListName||e.pageListName},this.getIconForListPage=function(e){var t=e.masterPageType,n=e.masterPageListName;return t?br[t][0]:n?br[n][0]:br[e.pageListName][1]}}),Ne=fs(function(){this.isPositive=function(e){return f.isNumeric(e)&&+e>0}}),Re=fs(function(){this.handleAjaxException=function(e){Re.handleGeneralException(R.getExceptionType(e))},this.handleGeneralException=function(e){ee.error("Error: "+e)}});!function(e){function t(e,t){void 0===e.width&&(e.width=t.outerWidth())}function n(e,t){void 0===e.height&&(e.height=t.outerHeight())}function i(t){return isFinite(t)?{left:t,top:t,right:t,bottom:t}:e.quickExtend({left:0,top:0,right:0,bottom:0},t)}e.fn.scrollParent=function(){var t;return t=e.browser.msie&&/(static|relative)/.test(this.css("position"))||/absolute/.test(this.css("position"))?this.parents().filter(function(){return/(relative|absolute|fixed)/.test(e(this).css("position"))&&/(auto|scroll|hidden)/.test(e(this).css("overflow")+e(this).css("overflow-x")+e(this).css("overflow-y"))}).eq(0):this.parents().filter(function(){return/(auto|scroll|hidden)/.test(e(this).css("overflow")+e(this).css("overflow-x")+e(this).css("overflow-y"))}).eq(0),/fixed/.test(this.css("position"))||!t.length?e(document):t},e.fn.hasFixedAncestor=function(){return"fixed"===e(this).css("position")?!0:this.parents().filter(function(){return"fixed"===e(this).css("position")}).length>0},e.absoluteToFixedOffset=function(e){var t=void 0!==window.pageXOffset?window.pageXOffset:(document.documentElement||document.body.parentNode||document.body).scrollLeft,n=void 0!==window.pageYOffset?window.pageYOffset:(document.documentElement||document.body.parentNode||document.body).scrollTop;return{left:e.left-t,top:e.top-n}},e.translateOffset=function(e,t){return{left:e.left+(t.left?t.left:0),top:e.top+(t.top?t.top:0)}},e.splitArea=function(t,n){n=e.quickExtend({orientation:ct.Vertical,parts:2},n);var i,a=n.orientation,r=n.parts,o=[];if(a===ct.Vertical){var s=Math.floor(t.height/r);for(i=0;r>i;i++){var l=t.top+i*s;o.push(e.calculateAreaInfo({left:t.left,right:t.right,top:l,bottom:i===r-1?t.bottom:l+s}))}}else{var c=Math.floor(t.width/r);for(i=0;r>i;i++){var u=t.left+i*c;o.push(e.calculateAreaInfo({top:t.top,bottom:t.bottom,left:u,right:i===r-1?t.right:u+c}))}}return o},e.translateArea=function(t,n){return e.extendedAreaInfo({left:t.left+e.valueOrDefault(n.left,0),top:t.top+e.valueOrDefault(n.top,0),width:t.width,height:t.height})},e.getOffsetDelta=function(e,t){return{left:e.left-t.left,top:e.top-t.top}},e.resolveAxis=function(e){var t={north:"n"===e||"ne"===e||"nw"===e,south:"s"===e||"se"===e||"sw"===e,east:"e"===e||"se"===e||"ne"===e,west:"w"===e||"sw"===e||"nw"===e};return t.horizontal=t.east||t.west,t.vertical=t.north||t.south,t},e.normalizeToMinSize=function(e,t){return{width:Math.max(e.width,t.width),height:Math.max(e.height,t.height)}},e.calculateWindowSize=function(){return{width:document.documentElement.clientWidth,height:e.isIOS()?e.getIOSWindowHeight():window.innerHeight||document.documentElement.clientHeight}},e.getWindowArea=function(t){t=e.extend({left:0,top:0,right:0,bottom:0},t);var n=e.calculateWindowSize(),i=n.width,a=n.height,r=e(document).scrollTop(),o=e(document).scrollLeft(),s=r+a,l=o+i;return e.extendedAreaInfo({left:o+t.left,top:r+t.top,bottom:s-t.bottom,right:l-t.right})},e.fn.positionInWindow=function(t){t=e.extend({vertically:!1,horizontally:!1,horizontalPadding:0,verticalPadding:0,horizontalAnchor:"left",verticalAnchor:"top"},t);var n=e.getWindowArea();return n.left+=t.horizontalPadding,n.right-=t.horizontalPadding,n.top+=t.horizontalPadding,n.bottom-=t.horizontalPadding,e(this).positionInArea(n,t)},e.fn.moveToArea=function(t,n){n=e.extend({horizontalAnchor:!1,verticalAnchor:!1},n);var i=n.horizontalAnchor,a=n.verticalAnchor,r=this,o=r.getArea(),s=0,l=0;o.left<t.left?s=t.left-o.left:o.left>t.right&&(s=t.right-o.right),o.top<t.top?l=t.top-o.top:o.top>t.bottom&&(l=t.bottom-o.bottom);var c=parseInt(r.css("left")),u=parseInt(r.css("right")),d=parseInt(r.css("top")),g=parseInt(r.css("bottom"));return"left"===i?r.css("left",c+s):"right"===i&&r.css("right",u-s),"top"===a?r.css("top",d+l):"bottom"===a&&r.css("bottom",g-l),r},e.fn.positionInArea=function(t,n){n=e.extend({vertically:!1,horizontally:!1,horizontalAnchor:"left",verticalAnchor:"top"},n);var i,a=n.horizontalAnchor,r=n.verticalAnchor,o=e(this),s="fixed"===o.css("position");i=s?{left:parseInt(o.css("left")),top:parseInt(o.css("top"))}:o.offset();var l=e.getArea(i,o.outerSize()),c={},u=!0;return n.horizontally&&(l.left<t.left?(c.left=t.left,u=!1):l.right>t.right&&(c.right=t.right,u=!1)),n.vertically&&(l.top<t.top?(c.top=t.top,u=!1):l.bottom>t.bottom&&(c.bottom=t.bottom,u=!1)),u||o.setOffset(c,{horizontalAnchor:a,verticalAnchor:r}),this},e.fn.positionToFit=function(t,n,i,a){a=e.extend({fallbackPositioning:0,positionInTargetArea:!0,padding:0},a);var r=e(this);t=e.shrinkArea(t,a.padding);var o=void 0;if(void 0!==i&&(o=e.getArea(i.offset(),i.outerSize())),a.functionsOrder){for(var s=a.functionsOrder,l=[],c=0;c<s.length;c++)l.push(n[s[c]]);n=l}for(var u=!1,c=0;c<n.length;c++){n[c].call(r,o);var d=e.getArea(r.offset(),r.outerSize());if(!t||e.containsArea(t,d)){u=!0;break}}if(!u&&a.fallbackPositioning!==n.length-1){var g=a.fallbackPositioning;e.isFunction(g)?g.call(r,o):n[g].call(r,o)}return!u&&a.positionInTargetArea&&r.positionInArea(t,{vertically:!0,horizontally:!0}),this},e.fn.setOffset=function(t,n){n=e.extend({horizontalAnchor:"left",verticalAnchor:"top"},n);for(var i=n.horizontalAnchor,a=n.verticalAnchor,r=void 0!==t.left||void 0!==t.right||void 0!==t.horizontalCenter,o=void 0!==t.bottom||void 0!==t.top||void 0!==t.verticalCenter,s=0;s<this.length;s++){var l=e(this[s]),c="fixed"===l.css("position"),u={left:void 0,top:void 0},d=void 0,g={};r&&("right"!==i?void 0!==t.left?(u.left=t.left,g.right=""):void 0!==t.right?(u.left=t.right-l.getOuterWidth(),g.right=""):void 0!==t.horizontalCenter&&(u.left=t.horizontalCenter-l.getOuterWidth()/2,g.right=""):(void 0===d&&(d=l.offsetParent()),void 0!==t.right?(g.right=d.right()-t.right,g.left=""):void 0!==t.left?(g.right=d.right()-t.left-l.getOuterWidth(),g.left=""):void 0!==t.horizontalCenter&&(g.right=d.right()-t.horizontalCenter-l.getOuterWidth()/2,g.left=""))),o&&("bottom"!==a?void 0!==t.top?(u.top=t.top,g.bottom=""):void 0!==t.bottom?(u.top=t.bottom-l.getOuterHeight(),g.bottom=""):void 0!==t.verticalCenter&&(u.top=t.verticalCenter-l.getOuterHeight()/2,g.bottom=""):(void 0===d&&(d=l.offsetParent()),void 0!==t.bottom?(g.bottom=d.bottom()-t.bottom,g.top=""):void 0!==t.top?(g.bottom=d.bottom()-t.top-l.getOuterHeight(),g.top=""):void 0!==t.verticalCenter&&(g.bottom=d.bottom()-t.verticalCenter-l.getOuterHeight()/2,g.top=""))),c?l.css(u):l.offset(u),l.css(g),r&&l.toggleClass("anchor-right","right"===i),o&&l.toggleClass("anchor-bottom","bottom"===a)}return this},e.fn.setPosition=function(i,a){return a=e.extend({width:void 0,height:void 0},a),void 0!==i.left&&e(this).css("left",i.left),void 0!==i.top&&e(this).css("top",i.top),void 0!==i.right&&(void 0!==i.left?e(this).outerWidth(i.right-i.left):(t(a,e(this)),e(this).css("left",i.right-a.width))),void 0!==i.bottom&&(void 0!==i.top?e(this).outerHeight(i.bottom-i.top):(n(a,e(this)),e(this).css("top",i.bottom-a.height))),i.horizontalCenter&&(t(a,e(this)),e(this).css("left",i.horizontalCenter-a.width/2)),i.verticalCenter&&(n(a,e(this)),e(this).css("top",i.verticalCenter-a.height/2)),e(this)},e.fn.centerInArea=function(t,n){if(n=e.extend({horizontally:!0,vertically:!0},n),n.horizontally){var i=n.calculatedSize&&n.calculatedSize.width?n.calculatedSize.width:e(this).outerWidth();e(this).css("left",t.left+(t.right-t.left)/2-i/2)}if(n.vertically){var a=n.calculatedSize&&n.calculatedSize.height?n.calculatedSize.height:e(this).outerHeight();e(this).css("top",t.top+(t.bottom-t.top)/2-a/2)}return e(this)},e.fn.right=function(t){return void 0!=t?this.each(function(){e(this).offset({left:t-e(this).outerWidth(),top:e(this).offset().top})}):e(this[0]).offset().left+e(this[0]).outerWidth()},e.fn.stretch=function(t){var n=e(this).width(),i=e(this).height(),a=t.width/n,r=t.height/i,o=Math.min(a,r),s=Math.floor(n*o),l=Math.floor(i*o);return e(this).width(s).height(l)},e.stretch=function(t,n,i,a){if(a=e.quickExtend({stretchWhenSmaller:!0,ceilFractions:!1},a),!a.stretchWhenSmaller&&n.width>=t.width&&n.height>=t.height)return{width:t.width,height:t.height,ratio:1};var r,o=n.width/t.width,s=n.height/t.height;r=i?Math.max(o,s):Math.min(o,s);var l=a.ceilFractions?"ceil":"floor";return{width:Math[l](t.width*r),height:Math[l](t.height*r),ratio:r}},e.fn.left=function(t){return void 0!=t?this.each(function(){e(this).offset({left:t,top:e(this).offset().top})}):e(this[0]).offset().left},e.fn.bottom=function(t){return void 0!=t?this.each(function(){e(this).offset({left:e(this).offset().left,top:t-e(this).outerHeight()})}):e(this[0]).offset().top+e(this[0]).outerHeight()},e.fn.top=function(t){return void 0!=t?this.each(function(){e(this).offset({left:e(this).offset().left,top:t})}):e(this[0]).offset().top},e.fn.centerInParent=function(t){t=e.quickExtend({centerHorizontally:!0,centerVertically:!0,isContentCenter:!1},t),e(this).each(function(){var n=e(this).offsetParent(),i=n.getCenter(t.isContentCenter);e(this).center(i,t)})},e.fn.getCenter=function(t){void 0===t&&(t=!1);var n=e(this[0]);if(t){var i=e.relativePosition(n.offset(),parseInt(n.css("paddingLeft")),parseInt(n.css("paddingTop")));return e.relativePosition(i,n.width()/2,n.height()/2)}return e.relativePosition(e(this[0]).offset(),e(this[0]).outerWidth()/2,e(this[0]).outerHeight()/2)},e.fn.center=function(t,n){if(n=e.quickExtend({centerHorizontally:!0,centerVertically:!0},n),t){for(var i=0;i<this.length;i++){var a=e(this[i]),r={};n.centerHorizontally&&(r.horizontalCenter=t.left),n.centerVertically&&(r.verticalCenter=t.top),a.setOffset(r)}return this}return e(this).getCenter()},e.fn.integerOffset=function(){var t=e(this).offset();return{left:Math.floor(t.left),top:Math.floor(t.top)}},e.getAbsoluteOffset=function(e,t){return t?e?{left:e.left+t.left,top:e.top+t.top}:null:e},e.getAbsoluteArea=function(t,n){return n?t?e.extendedAreaInfo({left:t.left+n.left,top:t.top+n.top,right:t.right+n.left,bottom:t.bottom+n.top}):null:t},e.relativeOffset=function(e,t){return t?e?{left:e.left-t.left,top:e.top-t.top}:null:e},e.relativeArea=function(e,t){if(!t)return e;if(!e)return null;var n={left:e.left-t.left,top:e.top-t.top,right:e.right-t.left,bottom:e.bottom-t.top};return n.width=n.right-n.left,n.height=n.bottom-n.top,n.center={left:n.left+n.width/2,top:n.top+n.height/2},n},e.offsetsEqual=function(e,t){return e&&t?e.top===t.top&&e.left===t.left:e===t},e.sizesEqual=function(e,t){return e&&t?e.width===t.width&&e.height===t.height:e===t},e.areasEqual=function(e,t){return void 0===e||void 0===t?e===t:null===e||null===t?e===t:e.left===t.left&&e.top===t.top&&e.right===t.right&&e.bottom===t.bottom},e.normalizeToArea=function(e,t){return{left:Math.min(t.right,Math.max(t.left,e.left)),top:Math.min(t.bottom,Math.max(t.top,e.top))}},e.getAreaCenter=function(e){return{left:e.left+e.width/2,top:e.top+e.height/2}},e.fn.calculateContentOffset=function(){var e=this,t=parseInt(e.css("border-left-width")),n=parseInt(e.css("border-top-width")),i=parseInt(e.css("padding-left")),a=parseInt(e.css("padding-top")),r=e.offset();return{left:r.left+t+i,top:r.top+n+a}},e.fn.calculateScrollingPosition=function(t){t=e.extend({calculateLeft:!1,calculateTop:!1,includeMargin:!1},t);var n=t.calculateLeft,i=t.calculateTop,a=t.$scrollParent,r=t.scrollParentContentOffset,o=t.scrollParentScrollLeft,s=t.scrollParentScrollTop,l=t.includeMargin,c=this,u=n&&void 0===o,d=i&&void 0===s;void 0===a&&(void 0===r||u||d)&&(a=c.scrollParent()),void 0===r&&(r=a.calculateContentOffset()),u&&(o=a.scrollLeft()),d&&(s=a.scrollTop());var g=c.offset();return l&&(n&&(g.left-=parseInt(c.css("margin-left"))),i&&(g.top-=parseInt(c.css("margin-top")))),{left:g.left-r.left+o,top:g.top-r.top+s}},e.fn.getArea=function(t){return e.getArea(e(this).offset(),e(this).elementSize(),t)},e.fn.setArea=function(t,n){n=e.quickExtend({isFixed:!1},n);var i=n.isFixed,a=e(this);return i===Ue.AutoDetect&&(i="fixed"===a.css("position")),i?a.css({left:t.left,top:t.top}):a.offset({left:t.left,top:t.top}),a.css({width:t.width,height:t.height})},e.fn.getOuterAreaNew=function(t){return e.getArea(this.offset(),{width:this.getOuterWidth(),height:this.getOuterHeight()},t)},e.fn.getOuterArea=function(t){return e.getArea(e(this).offset(),e(this).outerSize(),t)},e.punchAreas=function(t,n){var i={};return n.top>t.top&&(i[gt.Top]=e.calculateAreaInfo({top:t.top,left:t.left,width:t.width,bottom:Math.min(n.top,t.bottom)})),n.bottom<t.bottom&&(i[gt.Bottom]=e.calculateAreaInfo({top:Math.max(n.bottom,t.top),left:t.left,width:t.width,bottom:t.bottom})),n.top<t.bottom&&t.top<n.bottom&&n.left>t.left&&(i[gt.Left]=e.calculateAreaInfo({top:Math.max(t.top,n.top),left:t.left,right:Math.min(t.right,n.left),bottom:Math.min(t.bottom,n.bottom)})),n.top<t.bottom&&t.top<n.bottom&&n.right<t.right&&(i[gt.Right]=e.calculateAreaInfo({top:Math.max(t.top,n.top),left:Math.max(n.right,t.left),right:t.right,bottom:Math.min(t.bottom,n.bottom)})),i},e.getRelativeOffset=function(e,t){return{left:e.left-t.left,top:e.top-t.top}},e.getRelativeArea=function(t,n){return e.extendedAreaInfo({left:t.left-n.left,right:t.right-n.left,top:t.top-n.top,bottom:t.bottom-n.top})},e.getArea=function(t,n,i){t=e.quickExtend({top:0,left:0},t),n=e.quickExtend({width:0,height:0},n),i&&(i=isFinite(i)?{left:i,top:i,right:i,bottom:i}:e.quickExtend({left:0,top:0,right:0,bottom:0},i),t.top-=i.top,t.left-=i.left,n.width+=i.left+i.right,n.height+=i.top+i.bottom);var a={left:t.left,top:t.top,right:t.left+n.width,bottom:t.top+n.height};return a.width=a.right-a.left,a.height=a.bottom-a.top,a.center={left:a.left+a.width/2,top:a.top+a.height/2},a},e.getSurroundingArea=function(t){var n=e.minValue(t,function(e){return e.left}),i=e.maxValue(t,function(e){return e.right}),a=e.minValue(t,function(e){return e.top}),r=e.maxValue(t,function(e){return e.bottom});return e.calculateAreaInfo({left:n,right:i,top:a,bottom:r})},e.normalizeAreaCoordinates=function(t,n){return e.calculateAreaInfo({left:e.adjustFraction(t.left,n),top:e.adjustFraction(t.top,n),right:e.adjustFraction(t.right,n),bottom:e.adjustFraction(t.bottom,n)})},e.expandArea=function(t,n){return n=i(n),e.extendedAreaInfo({left:t.left-n.left,right:t.right+n.right,top:t.top-n.top,bottom:t.bottom+n.bottom})},e.shrinkArea=function(t,n){return n=i(n),e.extendedAreaInfo({left:t.left+n.left,right:t.right-n.right,top:t.top+n.top,bottom:t.bottom-n.bottom})},e.shrinkStretching=function(t,n){return n=i(n),e.extendedAreaInfo({left:t.left+n.left,right:t.right+n.right,top:t.top+n.top,bottom:t.bottom+n.bottom})},e.areasOverlap=function(t,n){return null!==e.getAreasOverlap(t,n)},e.getAreasOverlap=function(e,t){if(!e||!t)return null;var n={left:Math.max(e.left,t.left),top:Math.max(e.top,t.top),right:Math.min(e.right,t.right),bottom:Math.min(e.bottom,t.bottom)};return n.left>n.right||n.top>n.bottom?null:n},e.containsArea=function(t,n){return e.isInsideArea(t,{top:n.top,left:n.left})&&e.isInsideArea(t,{top:n.bottom,left:n.right})},e.isInsideArea=function(t,n,i){return t=e.getAbsoluteArea(t,i),t.left<=n.left&&t.right>=n.left&&t.top<=n.top&&t.bottom>=n.top},e.unionAreas=function(t){var n=e.minValue(t,function(e){return e.left}),i=e.minValue(t,function(e){return e.top}),a=e.maxValue(t,function(e){return e.right}),r=e.maxValue(t,function(e){return e.bottom});return e.extendedAreaInfo({left:n,top:i,right:a,bottom:r})},e.areasIntersects=function(t,n){return e.areasIntersectsHorizontal(t,n)&&e.areasIntersectsVertical(t,n)},e.areasIntersectsHorizontal=function(t,n,i){return i=e.valueOrDefault(i,{left:0,right:0}),!(t.right-i.right<n.left||t.left+i.left>n.right)},e.areasIntersectsVertical=function(e,t){return!(e.bottom<t.top||e.top>t.bottom)},e.intersectAreas=function(t){var n=e.maxValue(t,function(e){return e.left}),i=e.maxValue(t,function(e){return e.top}),a=e.minValue(t,function(e){return e.right}),r=e.minValue(t,function(e){return e.bottom});return e.extendedAreaInfo({left:n,top:i,right:a,bottom:r})},e.adjustArea=function(t,n){t=e.quickExtend({},t),n=e.asArray(n);for(var i=0;i<n.length;i++){var a=n[i];switch(a.side){case gt.Top:t.top+=a.value;break;case gt.Bottom:t.bottom+=a.value;break;case gt.Left:t.left+=a.value;break;case gt.Right:t.right+=a.value}}return e.extendedAreaInfo(t)},e.calculateAreaInfo=function(t){return e.extendedAreaInfo(e.quickExtend({},t))},e.extendedAreaInfo=function(e){return e?(void 0!==e.left&&void 0!==e.right?e.width=e.right-e.left:void 0===e.right?e.right=e.width===1/0?1/0:e.left+e.width:e.left=e.right-e.width,void 0!==e.top&&void 0!==e.bottom?e.height=e.bottom-e.top:void 0===e.bottom?e.bottom=e.height===1/0?1/0:e.top+e.height:e.top=e.bottom-e.height,e.center={left:e.left+e.width/2,top:e.top+e.height/2},e):e},e.cloneSize=function(e){return e?{width:e.width,height:e.height}:e},e.clonePosition=function(e){return e?{top:e.top,left:e.left}:e},e.getDistance=function(e,t){return Math.sqrt(Math.pow(e.left-t.left,2)+Math.pow(e.top-t.top,2))},e.fn.distance=function(t){var n=e(this[0]).center(),i=e(t).center();return Math.sqrt(Math.pow(n.x-i.x,2)+Math.pow(n.y-i.y,2))},e.fn.elementSize=function(t){return void 0!==t?e(this).width(t.width).height(t.height):{width:e(this[0]).width(),height:e(this[0]).height()}},e.fn.elementContentSize=function(){return{width:parseFloat(this.css("width")),height:parseFloat(this.css("height"))}},e.fn.innerSize=function(){return{width:e(this[0]).innerWidth(),height:e(this[0]).innerHeight()}},e.fn.outerSize=function(t){return void 0!==t?e(this).outerWidth(t.width).outerHeight(t.height):{width:e(this[0]).outerWidth(),height:e(this[0]).outerHeight()}},e.fn.getOuterSize=function(){var e=this[0];return{width:e.offsetWidth,height:e.offsetHeight}},e.fn.getOuterWidth=function(){var e=this[0];return e.offsetWidth},e.fn.getOuterHeight=function(){var e=this[0];return e.offsetHeight},e.fn.sumOuterHeights=function(){return this.sum(function(){return e(this).getOuterHeight()})},e.fn.forEachOffset=function(e){var t=document.documentElement,n=(window.pageYOffset||t.scrollTop)-(t.clientTop||0),i=(window.pageXOffset||t.scrollLeft)-(t.clientLeft||0);return this.each(function(){var t=this.getBoundingClientRect();e(this,{top:t.top+n,left:t.left+i})})},e.fn.positionHorizontally=function(t,n,i){return i=e.extend({skipPositionCheck:!1},i),void 0===t?e(this):e(this).each(function(){e(this).css({left:"",right:"","margin-left":""}),isFinite(t)?e(this).css({left:t}):t==ot.Left?e(this).css({left:0}):t==ot.Right?e(this).css({right:0}):e(this).makeCentered({horizontally:!0,vertically:!1,preComputedSize:n,skipPositionCheck:i.skipPositionCheck})})},e.fn.positionVertically=function(t,n,i){return i=e.extend({skipPositionCheck:!1},i),void 0===t?e(this):e(this).each(function(){e(this).css({top:"",bottom:"","margin-top":""}),isFinite(t)?e(this).css({top:t}):t==at.Top?e(this).css({top:0}):t==at.Bottom?e(this).css({bottom:0}):e(this).makeCentered({horizontally:!1,vertically:!0,preComputedSize:n,skipPositionCheck:i.skipPositionCheck})})},e.fn.clearCentering=function(){return e(this).css({left:0,top:0,"margin-left":0,"margin-top":0})},e.fn.clearFill=function(){return e(this).css({width:"",height:""})},e.fn.makeFill=function(){return e(this).css({width:"100%",height:"100%",top:0,left:0,position:"absolute"})},e.fn.shiftHalfVertically=function(){return e(this).each(function(){var t=e(this).outerHeight()/2;e(this).css({"margin-top":0-t+"px"})})},e.fn.shiftHalfHorizontally=function(){return e(this).each(function(){var t=e(this).outerWidth()/2;e(this).css({"margin-left":0-t+"px"})})},e.fn.makeCentered=function(t){return t=e.extend({horizontally:!0,vertically:!0,skipPositionCheck:!1},t),e(this).each(function(){var n,i,a=e(this);t.skipPositionCheck||"fixed"!==a.css("position")&&a.css({position:"absolute"});var r=t.preComputedSize;r?(n=r.width,i=r.height):(n=a.outerWidth(),i=a.outerHeight()),t.horizontally&&a.css({left:"50%","margin-left":0-n/2+"px"}),t.vertically&&a.css({top:"50%","margin-top":0-i/2+"px"})})},e.fn.makeCenteredVertically=function(t){return t=e.extend({bottom:!0,top:!1,margin:0},t),e(this).each(function(){e(this).css({position:"absolute"}),t.top?e(this).css({top:"50%","margin-top":0+t.margin}):t.bottom&&e(this).css({top:"50%","margin-top":0-e(this).outerHeight()-t.margin+"px"})})},e.fn.makePositioned=function(){var e=this.css("position");return"absolute"!=e&&"fixed"!=e&&this.css("position","relative"),this},e.relativePosition=function(e,t,n){return{left:e.left+t,top:e.top+n}};var a=0;e.calculateInnerBorderRadius=function(e,t,n){var i=Math.max(0,n-e-a),r=Math.max(0,n-t-a);return i===r?i+"px":"{0}px {1}px".format(i,r)},e.updateInnerBorderRadius=function(t,n,i){n=e.extend({topLeft:0,topRight:0,bottomLeft:0,bottomRight:0},n),i=e.extend({left:0,right:0,top:0,bottom:0},i),t&&t.css({borderRadiusTopLeft:e.calculateInnerBorderRadius(i.left,i.top,n.topLeft),borderRadiusTopRight:e.calculateInnerBorderRadius(i.right,i.top,n.topRight),borderRadiusBottomLeft:e.calculateInnerBorderRadius(i.left,i.bottom,n.bottomLeft),borderRadiusBottomRight:e.calculateInnerBorderRadius(i.right,i.bottom,n.bottomRight)})},e.borderRadiusEqualityComparer=e.createFieldsEqualityComparer(["bottomRight","topRight","topLeft","bottomLeft"]),e.borderWidthEqualityComparer=e.createFieldsEqualityComparer(["top","right","left","bottom"])}(p),function(e){function t(t,n){for(var i=0;i<t.length;i++){var a=t[i],r=a.relativeTo;r?(e.isFunction(r)&&(r=r()),e.isJQueryObject(r)&&(r=r.getOuterArea()),a.relativeArea=r):a.relativeArea=n}}function n(e,t){return t?e.clone().orderByDesc(function(e){var n=t(e.side,e.alignTo);return n===!0?1:n===!1?0:n}):e}function i(t,n,i,a){i=i.clone(),i.length>1&&i.push(i[0]);for(var r,o=!1,s=void 0,l=0;l<i.length&&!o;l++){r=i[l];var c=r.usageCallback;if(n===ct.Horizontal?(t.alignHorizontally(r.relativeArea,r),s=r?r.horizontalAnchor:void 0):(t.alignVertically(r.relativeArea,r),s=r?r.verticalAnchor:void 0),a){var u=e.extend({},a);n===ct.Horizontal?(u.top=-(1/0),u.bottom=1/0):(u.left=-(1/0),u.right=1/0),e.containsArea(u,t.getOuterArea())&&(o=!0,c({$element:t,isPositioned:o,positioningArea:a,relativeArea:r.relativeArea}))}else o=!0,c({$element:t,isPositioned:o,positioningArea:a,relativeArea:r.relativeArea})}return o||r.usageCallback({$element:t,isPositioned:o,positioningArea:a,relativeArea:r.relativeArea}),a&&t.positionInArea(a,{horizontally:n===ct.Horizontal,vertically:n===ct.Vertical,horizontalAnchor:n===ct.Horizontal?s:void 0,verticalAnchor:n===ct.Vertical?s:void 0}),r}function a(e){switch(e){case gt.Bottom:return gt.Top;case gt.Top:return gt.Bottom;case gt.Left:return gt.Right;case gt.Right:return gt.Left;default:return e}}var r=C.extend("PositioningFunction",{init:function(e){this._horizontalAlignments=[],this._verticalAlignments=[],this._beforePositioning=[],this._afterPositioning=[],this._positioningArea=e},position:function(a,r,o){var s;this._allRelativeTo&&(r=this._allRelativeTo),e.isFunction(r)&&(r=r()),e.isJQueryObject(r)&&(r=r.getOuterArea());var l=this._positioningArea;for(e.isFunction(l)&&(l=l()),s=0;s<this._beforePositioning.length;s++)this._beforePositioning[s].call(a,r,l);t(this._horizontalAlignments,r),t(this._verticalAlignments,r);var c,u;this._horizontalAlignments.length>0&&(c=i(a,ct.Horizontal,n(this._horizontalAlignments,this._preferHorizontally),l)),this._verticalAlignments.length>0&&(u=i(a,ct.Vertical,n(this._verticalAlignments,this._preferVertically),l));var d={horizontalAlignment:c,verticalAlignment:u};for(s=0;s<this._afterPositioning.length;s++)this._afterPositioning[s].call(a,o,d,r);return d},alignHorizontally:function(t,n,i){return i=e.quickExtend({distance:0,usageCallback:cs,mirrorOnOverflow:!1,horizontalAnchor:"left"},i),this._horizontalAlignments.push({side:t,alignTo:n,distance:i.distance,usageCallback:i.usageCallback,relativeTo:i.relativeTo,horizontalAnchor:i.horizontalAnchor}),i.mirrorOnOverflow&&this._horizontalAlignments.push({side:a(t),alignTo:a(n),distance:i.distance,relativeTo:i.relativeTo,usageCallback:i.usageCallback,horizontalAnchor:i.horizontalAnchor}),this},alignVertically:function(t,n,i){return i=e.quickExtend({distance:0,usageCallback:cs,mirrorOnOverflow:!1,verticalAnchor:"top"},i),this._verticalAlignments.push({side:t,alignTo:n,distance:i.distance,usageCallback:i.usageCallback,relativeTo:i.relativeTo,verticalAnchor:i.verticalAnchor}),i.mirrorOnOverflow&&this._verticalAlignments.push({side:a(t),alignTo:a(n),distance:i.distance,relativeTo:i.relativeTo,usageCallback:i.usageCallback,verticalAnchor:i.verticalAnchor}),this},allRelativeTo:function(e){return this._allRelativeTo=e,this},afterPositioning:function(t){return e.merge(this._afterPositioning,e.asArray(t)),this},beforePositioning:function(t){return e.merge(this._beforePositioning,e.asArray(t)),this},preferHorizontally:function(e){return this._preferHorizontally=e,this},preferVertically:function(e){return this._preferVertically=e,this}});e.mirrorSide=a,e.usePositioningFunction=function(e,t,n,i){return e instanceof r?e.position(t,n,i):e(t,n,i)},e.buildPositioningFunction=function(t){return"window"===t&&(t=e.getWindowArea),new r(t)},e.fn.alignHorizontally=function(t,n){n=e.extend({side:gt.Left,alignTo:gt.Right,distance:0,horizontalAnchor:"left",verticalAnchor:"top"},n);var i,a=n.side,r=n.distance,o=n.alignTo,s=n.horizontalAnchor,l=n.verticalAnchor,c=this;switch(o){case gt.Left:i=t.left;break;case gt.Right:i=t.right;break;case gt.Center:i=t.center.left}var u={};switch(a){case gt.Left:u.left=i+r;break;case gt.Right:u.right=i-r;break;case gt.Center:u.horizontalCenter=i+r}return c.setOffset(u,{horizontalAnchor:s,verticalAnchor:l}),c},e.fn.alignVertically=function(t,n){n=e.extend({side:gt.Top,alignTo:gt.Bottom,distance:0,horizontalAnchor:"left",verticalAnchor:"top"},n);var i,a=n.side,r=n.distance,o=n.alignTo,s=n.horizontalAnchor,l=n.verticalAnchor,c=this;switch(o){case gt.Top:i=t.top;break;case gt.Bottom:i=t.bottom;break;case gt.Center:i=t.center.top}var u={};switch(a){case gt.Top:u.top=i+r;break;case gt.Bottom:u.bottom=i-r;break;case gt.Center:u.verticalCenter=i+r}return c.setOffset(u,{horizontalAnchor:s,verticalAnchor:l}),c}}(p);var He=fs(function(){this.equalByKeys=function(e,t){var n;for(n in e)if(void 0===t[n])return!1;for(n in t)if(void 0===e[n])return!1;return!0},this.diffByKeys=function(e,t){var n,i=[],a=[],r=[];for(n in e)void 0===t[n]?i.push(e[n]):r.push({leftValue:e[n],rightValue:t[n]});for(n in t)void 0===e[n]&&a.push(t[n]);return{leftOnly:i,rightOnly:a,both:r,equalByKeys:0===i.length&&0===a.length}},this.addKeyAsField=function(e,t){return f.eachEntry(e,function(e,n){n[t]=e}),e}});!function(e){function t(n,i,a){for(var r in n){var o=n[r],s=a[r];void 0!==s&&(r=s),e.isPlainObject(o)?t(o,i[r]={},a):i[r]=o}}function n(t,i,a,r){if(t.hasOwnProperty(a)){var o=r[t[a]];o&&(i[a]=o)}for(var s in t)if(s!==a){var l=t[s];e.isPlainObject(l)&&n(l,i[s],a,r)}}function i(t,n,a,r){if(t.hasOwnProperty(n)){var o=t[n],s=a[o];s?t[n]=s:a[o]=t[n]=r(n,o)}for(var l in t)if(l!==n){var c=t[l];e.isPlainObject(c)&&i(c,n,a,r)}}var a=!!Object.keys;e.mapToDictionary=function(t,n,i){n=e.valueOrDefault(n,e.identity),i=e.valueOrDefault(i,e.identity);for(var a={},r=0;r<t.length;r++){var o=t[r];a[i(o)]=n(o,r)}return a},e.makeDictionary=function(t,n,i){n=e.valueOrDefault(n,"key"),i=e.valueOrDefault(i,"value");for(var a={},r=0;r<t.length;r++){var o=t[r];a[o[n]]=o[i]}return a},e.lookupAdd=function(e,t,n){var i=e[t];return void 0===i&&(i=[],e[t]=i),i.push(n),e},e.lookupAddRange=function(t,n,i){var a=t[n];return void 0===a&&(a=[],t[n]=a),e.isArray(i)?e.merge(a,i):a.push(i),t},e.extractKeys=function(e,t){for(var n={},i=0;i<t.length;i++){var a=t[i];n[a]=e[a]}return n},e.anyValue=function(e,t){for(var n in e){var i=e[n];if(t.call(i,i))return!0}return!1},e.allValues=function(e,t){for(var n in e){var i=e[n];if(!t.call(i,i))return!1}return!0},e.makeDictionaryFromKeys=function(e,t){for(var n={},i=0;i<e.length;i++)n[e[i]]=t;return n},e.revertDictionary=function(e){var t={};for(var n in e)t[e[n]]=n;return t},e.getEntries=function(e){var t=[];for(var n in e)t.push({key:n,value:e[n]});return t},e.findKey=function(t,n,i){i=e.valueOrDefault(i,e.referencesEqualityComparer);for(var a in t)if(t.hasOwnProperty(a)){var r=t[a];if(i(r,n))return a}},e.getKeys=function(e){if(a)return e?Object.keys(e):[];var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push(n);return t},e.getValues=function(t,n){n=e.valueOrDefault(n,us);var i=[];for(var a in t)t.hasOwnProperty(a)&&n(t[a],a)&&i.push(t[a]);return i},e.count=function(e){if(a)return e?Object.keys(e).length:0;var t=0;for(var n in e)t++;
return t},e.sortValues=function(t,n){for(var i={},a=0;a<n.length;a++)i[n[a]]=a;for(var r=e.getEntries(t).orderBy(function(e){return i[e.key]}),o=e.getValues(t).orderBy(e.identity),s={},a=0;a<r.length;a++)s[r[a].key]=o[a];return s},e.replaceKeys=function(e,n){if(!e)return e;var i={};return t(e,i,n),i},e.replaceValuesKey=function(e,t,i,a){return n(e,t,i,a),t},e.replaceValuesKeyByFunction=function(e,t,n,a){e&&i(e,t,n,a)},e.mapArray=function(e,t,n){for(var i={},a=0;a<e.length;a++){var r=e[a];i[n(r,a)]=t(r)}return i},e.mapDictionary=function(e,t){var n={};for(var i in e)n[i]=t(i,e[i]);return n},e.mapDictionaryKeys=function(e,t){var n={};for(var i in e)n[t(i)]=e[i];return n},e.dictionaryFilter=function(e,t){var n={};for(var i in e){var a=e[i];t(a,i)&&(n[i]=a)}return n},e.toDictionary=function(){for(var e=arguments.length,t=arguments[e-1],n={},i=0;e-1>i;i++)for(var a=arguments[i],r=0;r<a.length;r++){var o=a[r],s=t(o);n[s]=o}return n},e.hasMoreThanOneKey=function(t){return e.hasNumberOfKeys(t,2)},e.hasNumberOfKeys=function(e,t){var n=0;for(var i in e)if(n++,n>=t)return!0;return!1},e.containsOneOfKeys=function(t){for(var n=arguments.length,i=1;n>i;i++){var a=arguments[i];if(e.isArray(a)){var r=a;for(i=0;i<r.length;i++)if(void 0!==t[r[i]])return!0}else if(void 0!==t[a])return!0}return!1},e.copyDictionaryValue=function(e,t,n){t[n]=e[n]},e.duplicateDitionary=function(t){var n={};for(var i in t){var a=t[i];e.isPlainObject(a)?n[i]=e.quickExtend({},a):n[i]=a}return n},e.mergeDictionary=function(e,t){for(var n in t)e[n]=t[n];return e},e.subtractDictionary=function(e,t){var n={};for(var i in e)void 0===t[i]&&(n[i]=e[i]);return n},e.intersectDictionaries=function(e,t){var n={};for(var i in t)void 0!==e[i]&&(n[i]=t[i]);return n},e.makeSet=function(t,n){var i={};n=e.valueOrDefault(n,e.identity);for(var a=0;a<t.length;a++){var r=t[a];i[n(r)]=r}return i},e.subtractSets=function(t,n,i){return t instanceof Array&&(t=e.makeSet(t,i)),n instanceof Array&&(n=e.makeSet(n,i)),e.getValues(e.subtractDictionary(t,n))},e.intersectSets=function(t,n,i){return t instanceof Array&&(t=e.makeSet(t,i)),n instanceof Array&&(n=e.makeSet(n,i)),e.getValues(e.intersectDictionaries(t,n))},e.mergeInnerFields=function(t,n){var i={};for(var a in t)i[a]=e.quickExtend({},t[a],n[a]);return i}}(p);var qe={None:0,Left:-1,Right:2,Top:-3,Bottom:4},Ue={Auto:"auto",Inherit:"inherit",Unknown:"unknown",AutoDetect:"detect",All:"all",Any:"any"},$e={None:"none",Uppercase:"uppercase",Capitalize:"capitalize"},We={All:1,Any:2,None:3,AnyNot:4},je=320,Ge=640,Xe={Below:"below",Above:"above",BeyondLeft:"beyond-left",BeyondRight:"beyond-right"},Ye={HomePage:"home"},Ke="-",Qe={Pixels:"px",Percentages:"percentages",Normal:"normal",Inherit:"inherit"},Je={ActionButton:"actionButton",ToggleButton:"toggleButton"},Ze={Youtube:0,Vimeo:1},et={DIV:"DIV",SECTION:"SECTION",NAV:"NAV",ARTICLE:"ARTICLE",ASIDE:"ASIDE",HEADER:"HEADER",FOOTER:"FOOTER",HGROUP:"HGROUP",H1:"H1",H2:"H2",H3:"H3",H4:"H4",H5:"H5",H6:"H6"},tt={None:{value:"div",title:"Normal"},H1:{value:"H1",title:"Heading 1"},H2:{value:"H2",title:"Heading 2"},H3:{value:"H3",title:"Heading 3"},H4:{value:"H4",title:"Heading 4"},H5:{value:"H5",title:"Heading 5"},H6:{value:"H6",title:"Heading 6"}},nt={Web:"Web",Email:"Email",Pages:"Pages",Cell:"Cell",Asset:"Asset",RSS:"Rss",None:"None"},it={RightToLeft:1,LeftToRight:2},at={Top:"top",Centered:"center",Bottom:"bottom",None:"none"},rt={Block:"block",Fixed:"fixed"},ot={Left:"left",Centered:"center",Right:"right",None:"none"},st={Top:"top",Middle:"middle",Bottom:"bottom",None:"none"},lt={Left:"left",Center:"center",Right:"right",None:"none"},ct={Vertical:"vertical",Horizontal:"horizontal",Both:"both"},ut={Left:1,Right:2,Stretched:3,Centered:4,None:5},dt={Top:1,Bottom:2,Stretched:3,Centered:4,None:5},gt={Top:1,Bottom:2,Left:3,Right:4,Center:5},ft={RGB:1,HSL:2},pt={R:1,G:2,B:3,H:4,S:5,L:6},ht={None:0,VerySlow:4e3,Slow:2400,Normal:1500,Fast:900,VeryFast:400},mt={AllTrue:1,AllFalse:2,SomeTrue:3,SomeFalse:4},vt={Enabling:0,Displaying:1,Visibility:2,Custom:3},yt={BackgroundImages:"BackgroundImages",BackgroundTextures:"BackgroundTextures",DefaultImage:"DefaultImage",DefaultStoreImage:"DefaultStoreImage",DefaultVideo:"DefaultVideo",GalleryImages:"GalleryImages",GalleryVideos:"GalleryVideos",BlogPageImage:"BlogPageImage",PostPageImage:"PostPageImage"},bt={ESC:27,Enter:13,Ctrl:17,Shift:16,Space:32,Delete:46,Left:37,Up:38,Right:39,Down:40,Insert:45,Tab:9,BackSpace:8,Comma:188};!function(){var e;for(e=65;90>=e;e++)bt[String.fromCharCode(e)]=e;for(e=0;9>=e;e++)bt["NUM"+e]=48+e;for(e=1;12>=e;e++)bt["F"+e]=111+e}(),function(e){var t={};e.unScheduleOperation=function(e){void 0!==e&&window.clearInterval(e)},e.scheduleOperation=function(e,t){var n=window.setInterval(function(){e(),window.clearInterval(n)},t);return n},e.scheduleNamedOperation=function(n,i,a){t[n]=e.scheduleOperation(i,a)},e.unScheduleNamedOperation=function(n){var i=t[n];void 0!==i&&(e.unScheduleOperation(i),delete t[n])},e.enqueueOperation=function(t,n,i){e(document).enqueueOperation(t,n,i)},e.fn.enqueueOperation=function(t,n,i){void 0==e(this).data("enqueued-operations")&&e(this).data("enqueued-operations",[]);var a=e(this).data("enqueued-operations");void 0===a[t]&&e.beginInvoke(function(){a[t].operation.call(a[t].args),a[t]=void 0}),a[t]={operation:n,args:i}},e.createDelayedFunction=function(e){var t={original:e,delayedCall:null,delayedFunction:function(){t.delayedCall={self:this,arguments:arguments},window.setTimeout(function(){t.invokeDelayed()},0)},invokeDelayed:function(){if(t.delayedCall){var e=t.delayedCall;t.delayedCall=null,t.original.apply(e.self,e.arguments)}}};return t},e.delayEventHandler=function(e){var t=null;return function(n){var i=this;t=n,window.setTimeout(function(){if(t){var n=t;t=null,e.call(i,n)}},0)}}}(p);var Ct={Normal:"scrolling-mode-normal",Touch:"scrolling-mode-touch",Hybrid:"scrolling-mode-hybrid"},It=function(e){function t(t){return 9===t.nodeType?t:e.isWindow(t)?t.document:!1}var n=Ie.createContextClass(function(){return e("body")}),i=C.extend("ScrollingController",{init:function(t,n){n=e.quickExtend({scrollableContainer:t,useMouseScrolling:!0,orientation:"vertical",sensitivity:50},n);var i=this;this._scrollTrackingEnabled=!0;var a=w.create(function(){return bn.create(t,{properties:["scrollHeight","scrollWidth","height","width"],minInterval:100,callback:function(){i.refresh()}})});this._autoRefresh=O.create(!1,{valueChangeCallback:function(e){var t=a.getValue();if(e){t.activate();var n=t.checkForChanges();n||i.refresh()}else t.deactivate(),i.refresh()}}),this._data={mouseMoveScrollingActive:!1},this.id=e.uniqueID(),this.$element=t,this.isEnabled=!0,this.isEnabledFlag=O.create(!0),this.refreshedEvent=x.create(),this.scrollingEvent=x.create(),this.scrollingStartEvent=x.create(),this.scrollingStopEvent=x.create(),this.viewportChangedEvent=x.create(),this.scrollingAnimations=0,this.options=n},toggleScrollTracking:function(e){this._scrollTrackingEnabled=e},setOptions:function(t){e.quickExtend(this.options,t),this.refresh()},toggleAutoRefresh:function(e){return this._autoRefresh.setValue(e),this},refresh:function(){return this.refreshedEvent.fireNew(),this},scroll:function(e,t,n,i){void 0===t&&(t=!0),t?this.scrollToOffset(this.getScrollOffset()+e,n,void 0,i):this.scrollToOffset(e,n,void 0,i)},getScrollOffset:function(t){t=e.valueOrDefault(t,this.options.orientation);var n=this.$element;return n.is("iframe")&&(n=e(n[0].contentWindow)),"vertical"===t?n.scrollTop():n.scrollLeft()},scrollToOffset:function(t,n,i,a){var r=this;void 0===n&&(n=!1);var o=r.$element,s=!1;o.is("iframe")&&(n=!1,s=!0);var l="vertical"===e.valueOrDefault(a,r.options.orientation),c=r.getMaxScrollOffset(a),u=Math.min(c,t);if(r.animationTarget=u,r.$element.stop("scrolling",!0),n){r.scrollingAnimations++;var d=l?{scrollTop:u}:{scrollLeft:u};r.scrollingStartEvent.fireNew(),r.$element.animate(d,{duration:"fast",queue:"scrolling",complete:function(){r.scrollingAnimations--,r.animationTarget=void 0,void 0!==i&&i(),0===r.scrollingAnimations&&r.scrollingStopEvent.fireNew(),r.viewportChangedEvent.fireNew(),r.scrollingEvent.fireNew()},step:function(){r.viewportChangedEvent.fireNew()}}).dequeue("scrolling")}else l?s?o[0].contentWindow.scrollTo(e(o[0].contentWindow).scrollLeft(),u):o.scrollTop(u):s?o[0].contentWindow.scrollTo(u,e(o[0].contentWindow).scrollTop()):o.scrollLeft(u),r.viewportChangedEvent.fireNew(),void 0!==i&&i(),r.scrollingStopEvent.fireNew()},canScrollVertically:function(){return this.getMaxScrollOffset(ct.Vertical)>0},getMaxScrollOffset:function(t){var n=this;return t=e.valueOrDefault(t,n.options.orientation),"vertical"===t?n.$element.getMaxScrollTop():n.$element.getMaxScrollLeft()},disable:function(){var e=this.$element;e.is("iframe")||e.removeClass("scrollable-pane"),this._mouseWheelController&&this._mouseWheelController.disable(),this.isEnabled=!1,this.isEnabledFlag.setFalse()},enable:function(){var e=this.$element;e.is("iframe")||e.addClass("scrollable-pane"),this._mouseWheelController&&this._mouseWheelController.enable(),this.isEnabled=!0,this.isEnabledFlag.setTrue()},toggleEnabled:function(e){e?this.enable():this.disable()},bringToViewport:function(e){var t=this.$element;if(e.parents().filter(t)){var n=t.getArea(),i=e.getOuterArea(),a=this.options.orientation;a===ct.Vertical&&(i.top<n.top?t.scrollTop(t.scrollTop()+(i.top-n.top)):i.bottom>n.bottom&&t.scrollTop(t.scrollTop()+(i.bottom-n.bottom)),this.refresh())}},_trackScrolling:function(e){var t=this;e.bind("scroll",function(){t._scrollTrackingEnabled&&t.scrollingEvent.fireNew()})}});return i.ScrollingMode=_.create(Ct.Normal),e(document).ready(function(){i.ScrollingMode.valueChangedEvent.bindAndExecute(function(){n.setValue(i.ScrollingMode.getValue())})}),e.fn.getScrollableController=function(){return e(this).data("widget-scrollable")},e.fn.scrollable=function(t){var n=this.data("widget-scrollable");return void 0===n&&(n=new i(e(this),t),this.data("widget-scrollable",n),n.$element.addClass("scrollable-pane"),n._trackScrolling(n.$element),n.options.useMouseScrolling&&(n._mouseWheelController=n.options.scrollableContainer.setMouseWheelScrolling(n))),e.isPlainObject(t)&&e.extend(n.options,t),n},e.fn.getMaxScrollTop=function(){if(this.is("iframe"))return e(this[0].contentWindow.document.body)[0].scrollHeight-e(this).height();if(this.is("body"))return this[0].scrollHeight-e(window).height();var n=t(this[0]);return n?n.body.scrollHeight-n.documentElement.clientHeight:e(this)[0].scrollHeight-e(this).height()},e.fn.getMaxScrollLeft=function(){if(this.is("iframe"))return e(this[0].contentWindow.document.body)[0].scrollWidth-e(this).height();var n=t(this[0]);return n?n.body.scrollWidth-n.documentElement.clientWidth:this.getScrollWidth()-this.width()},e.fn.getMaxScrollHeight=function(){return this.getMaxScrollTop()},e.fn.getMaxScrollWidth=function(){return this.getMaxScrollLeft()},e.fn.getScrollWidth=function(){var t=e(this).data("customScrollWidth");return void 0!==t?e.evaluateWhenFunction(t):e(this)[0].scrollWidth},e.fn.getScrollHeight=function(){return e(this)[0].scrollHeight},e.fn.setCustomScrollWidth=function(t){return e(this).data("customScrollWidth",t)},e.fn.setMoveScrolling=function(t,n){n=e.extend({enableVerticalScrolling:!0,enableHorizontalScrolling:!0,sensitivity:1},n);var i=this,a=i.preventBrowserBehaviour(),r=i.data("moveScrolling");r&&r.clear(),i.bind("mousedown.initmovescrolling touchstart.initmovescrolling",function(i){var a=e.getMouseOffset(i),r=t.getScrollOffset(ct.Vertical),o=t.getScrollOffset(ct.Horizontal);e(document).bind("mousemove.movescrolling touchmove.movescrolling",function(i){var s=e.getMouseOffset(i),l=s.left-a.left,c=s.top-a.top;n.enableHorizontalScrolling&&t.scrollToOffset(o-l*n.sensitivity,!1,void 0,ct.Horizontal),n.enableVerticalScrolling&&t.scrollToOffset(r-c*n.sensitivity,!1,void 0,ct.Vertical)}).one("mouseup.movescrolling touchend.movescrolling",function(){e(document).unbind(".movescrolling")})});var o={clear:function(){i.unbind(".initmovescrolling"),e(document).unbind(".movescrolling"),a.clear()}};return i.data("moveScrolling",o),o},e.fn.setMouseWheelScrolling=function(t){function n(e,t){if(r){var n="vertical"===r.options.orientation&&r.$element.getMaxScrollTop()>0||"horizontal"===r.options.orientation&&r.$element.getMaxScrollWidth()>0;return n?(r.scroll(0-t*r.options.sensitivity,!0,!1),e.preventDefault(),e.returnValue=!1,!1):void 0}}var i=e(this),a={},r=t,o=!1;return e.extend(a,{setTarget:function(e){r=e},disable:function(){o&&(o=!1,i.unbind("mousewheel.scrolling"))},enable:function(){o||(o=!0,i.bind("mousewheel.scrolling",function(t,i){var a="vertical"===r.options.orientation;if(!(a&&e(t.target).closest(".vertically-scrollable").length>0||e(t.target).closest(".horizontally-scrollable").length>0))return n(t,i)}))},toggleEnable:function(e){e?a.enable():a.disable()}}),a.enable(),a},i}(p);!function(e){function t(e,t,n,i){var a="scroll"+t,r=a+"prop",o={},s={};return o[r]=e[a](),s[r]=n,Nn.create(o,{onPropertiesChanged:function(t){requestAnimationFrame(function(){e[a](t[r])})}}).animate(s,i)}e.fn.animateScrollTop=function(e,n){t(this,"Top",e,n)},e.fn.animateScrollLeft=function(e,n){t(this,"Left",e,n)},e.fn.setScrollingViewport=function(e){var t=e.left,n=e.top;"center"===t&&(t=this.getMaxScrollLeft()/2),"center"===n&&(n=this.getMaxScrollLeft()/2),void 0!==t&&this.scrollLeft(t),void 0!==n&&this.scrollTop(n)}}(p),function(e){function t(t){var n={width:e(t).css("width"),"font-size":e(t).css("font-size"),"font-family":e(t).css("font-family"),"font-weight":e(t).css("font-weight"),"white-space":e(t).css("white-space"),position:"absolute"};return e("<div></div>").css(n).appendTo("body").wrapText()}e.fn.copyTextStyle=function(t){var n={"font-size":t.css("font-size"),"font-family":t.css("font-family"),"font-weight":t.css("font-weight"),"white-space":t.css("white-space"),"word-spacing":t.css("word-spacing"),"line-height":t.css("line-height")};return e(this).css(n)},e.fn.measureText=function(t,n){void 0===n&&(n=!0);var i={width:n?e(this).css("width"):"auto","font-size":e(this).css("font-size"),"font-family":e(this).css("font-family"),"font-weight":e(this).css("font-weight"),"white-space":e(this).css("white-space"),"word-spacing":e(this).css("word-spacing"),"word-wrap":e(this).css("word-wrap"),"line-height":e(this).css("line-height"),position:"absolute"},a=e("<div></div>").css(i).html(t).appendTo(e(this).parent()).wrapText(),r=a.height(),o=a.width();return a.remove(),{height:r,width:o}},e.fn.trimText=function(n,i){i=e.quickExtend({formattingFunction:function(e){return e}},i);var a=e(this).height(),r=t(this).css({height:a,overflow:"hidden"});if(r.html(i.formattingFunction(n)),r[0].scrollHeight<=a)e(this).html(i.formattingFunction(n));else{r.html("");for(var o="",s="",l=0;l<n.length&&r[0].scrollHeight<=a;l++)o=s,s+=n[l],r.html(i.formattingFunction(s+"..."));e(this).html(i.formattingFunction(o+"..."))}return r.remove(),e(this)},e.fn.trimMiddle=function(t,n){n=e.valueOrDefault(n,25);var i=e.valueOrDefault(i,n-8),a=n-i-3;return t.length>n?t.substr(0,i)+"..."+t.substr(t.length-a,t.length):t},e.fn.wrapText=function(){return e(this).css("word-wrap","break-word")},e.fn.selectRange=function(t,n){if(e.isPlainObject(t)){var i=e.quickExtend({},t);t=i.start,n=i.end}return this.each(function(){if(this.setSelectionRange)this.focus(),this.setSelectionRange(t,n);else if(this.createTextRange){var e=this.createTextRange();e&&(e.collapse(!0),e.moveEnd("character",n),e.moveStart("character",t),e.select())}})},e.fn.getSelectionRange=function(){var e=this[0];if(e.setSelectionRange)return{start:e.selectionStart,end:e.selectionEnd};e.focus();var t=document.selection.createRange(),n=t.text.length;t.moveStart("character",-e.value.length);var i=t.text.length,a=i-n,r=a+n;return{start:a,end:r}};var n={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'","&#96;":"`"},i=RegExp(/(&amp;|&lt;|&gt;|&quot;|&#39;|&#96;)/g);e.fn.unescape=function(e){if(null==e)return"";var t=(""+e).replace(i,function(e){return n[e]});return t.replace(/&#(\d+);/g,function(e,t){return String.fromCharCode(t)})}}(p),/*! Build-0.6: color.core.js color.rgb.js color.huebased.js color.hsv.js color.hsl.js color.object.js color.parse.js color.related.js color.palette.css3.js color.css.js */
/*!
 * jQuery Colour 0.6
 *
 * Copyright (c) 2009 Adaptavist.com
 * Dual licensed under the MIT (MIT-LICENSE.txt)
 * and GPL (GPL-LICENSE.txt) licenses.
 *
 * Author: Mark Gibson (jollytoad at gmail dot com)
 *
 * http://www.adaptavist.com/display/jQuery/Colour+Library
 */
p.color||function(e){e.color={isEqual:function(e,t){if(e.length!==t.length)return!1;for(var n=e.length;n--;)if(e[n]!==t[n])return!1;return!0},fix:function(e,t){for(var n=t.length;n--;)if("number"==typeof e[n])switch(t.charAt(n)){case"i":e[n]=Math.round(e[n]);break;case"o":e[n]=Math.min(255,Math.max(0,Math.round(e[n])));break;case"1":e[n]=Math.min(1,Math.max(0,e[n]))}return e},self:function(e){return e},alpha:function(e){return void 0===e?1:e},palette:{},fns:[]}}(p),p.color&&function(e){e.color.RGB={fix:function(t){return t=e.color.fix(t,"ooo1")},toRGB:e.color.self,toHEX:function(e){return"#"+(16777216+65536*e[0]+256*e[1]+e[2]).toString(16).slice(-6)},toCSS:function(t,n){return n||0!==e.color.alpha(t[3])?e.color.alpha(t[3])<1?"rgba("+t.join(",")+")":"rgb("+Array.prototype.slice.call(t,0,3).join(",")+")":"transparent"},red:function(e){return e[0]},green:function(e){return e[1]},blue:function(e){return e[2]},alpha:function(t){return e.color.alpha(t[3])}},e.color.RGB.toString=e.color.RGB.toHEX,e.color.fns.push("RGB.toRGB","RGB.toHEX","RGB.toCSS","RGB.red","RGB.green","RGB.blue","RGB.alpha")}(p),p.color&&function(e){e.color.HueBased={fix:function(t){return t[0]=(t[0]+1)%1,e.color.fix(t,"1111")},complementary:function(e,t){return[(e[0]+.5+(t||0))%1,e[1],e[2],e[3]]},analogous:function(e,t){return[(e[0]+1+(t||0))%1,e[1],e[2],e[3]]},hue:function(e){return e[0]},alpha:function(t){return e.color.alpha(t[3])}}}(p),p.color&&function(e){e.color.HSV=e.extend({toHSV:e.color.self,toRGB:function(e){var t=6*e[0],n=Math.floor(t),i=t-n,a=e[1],r=255*e[2],o=e[3],s=Math.round(r*(1-a)),l=Math.round(r*(1-i*a)),c=Math.round(r*(1-(1-i)*a));switch(r=Math.round(r),n%6){case 0:return[r,c,s,o];case 1:return[l,r,s,o];case 2:return[s,r,c,o];case 3:return[s,l,r,o];case 4:return[c,s,r,o];case 5:return[r,s,l,o]}},saturationV:function(e){return e[1]},value:function(e){return e[2]}},e.color.HueBased),e.color.RGB.toHSV=function(e){var t=e[0]/255,n=e[1]/255,i=e[2]/255,a=Math.min(t,n,i),r=Math.max(t,n,i),o=r-a;return[0===o?0:(n===r?(i-t)/o/6+1/3:i===r?(t-n)/o/6+2/3:(n-i)/o/6+1)%1,0===o?0:o/r,r,e[3]]},e.color.fns.push("HSV.toHSV","HSV.toRGB","RGB.toHSV","HSV.complementary","HSV.analogous","HSV.hue","HSV.saturationV","HSV.value","HSV.alpha")}(p),p.color&&function(e){e.color.HSL=e.extend({toHSL:e.color.self,toRGB:function(e){function t(e){var t=0>e?e+1:e>1?e-1:e;return 1/6>t?o+6*(r-o)*t:.5>t?r:2/3>t?o+6*(r-o)*(2/3-t):o}var n=e[0],i=e[1],a=e[2],r=.5>a?a*(1+i):a+i-a*i,o=2*a-r;return[Math.round(255*t(n+1/3)),Math.round(255*t(n)),Math.round(255*t(n-1/3)),e[3]]},saturationL:function(e){return e[1]},lightness:function(e){return e[2]}},e.color.HueBased),e.color.RGB.toHSL=function(e){var t=e[0]/255,n=e[1]/255,i=e[2]/255,a=Math.min(t,n,i),r=Math.max(t,n,i),o=r-a,s=r+a;return[0===o?0:(n===r?(i-t)/o/6+1/3:i===r?(t-n)/o/6+2/3:(n-i)/o/6+1)%1,0===o?0:s>1?o/(2-r-a):o/s,s/2,e[3]]},e.color.fns.push("HSL.toHSL","HSL.toRGB","RGB.toHSL","HSL.complementary","HSL.analogous","HSL.hue","HSL.saturationL","HSL.lightness","HSL.alpha")}(p),p.color&&p.Color||function(e){function t(t,n){for(var i=e.Color.isInstance(t)&&t.space!==this.space?this.to(t.space):new e.Color(this),a=i.length,r=!1;a--;)if("number"==typeof t[a]){var o=n?i[a]+t[a]:t[a];o!==i[a]&&(i[a]=o,r=!0)}return r?i.setName():this}function n(t,n,i,a,r){return function(){var o=[t];Array.prototype.push.apply(o,arguments);var s=i.apply(n,o);return e.isArray(s)?new e.Color(s,a,r?t.name:void 0):s}}function i(t,i){var a=/^to/.test(i)?i.substring(2):!1;return function(){var t=this,r=t.util();r[i]||(t=t.to(e.Color.fnspace[i]),r=t.util());var o=n(t,r,r[i],a||t.space,!!a),s=o.apply(t,arguments);return a?(this[i]=function(){return s},e.Color.isInstance(s)&&(t=this,s["to"+this.space]=function(){return t})):this[i]=o,s}}function a(){var t=this.split("."),n=t[1],a=t[0];e.Color.fnspace[n]||n==="to"+a||(e.Color.fnspace[n]=a),e.Color.fn[n]||(e.Color.fn[n]=i(this,n))}e.Color=function(t,n,i){if("function"==typeof this)return new e.Color(t,n,i);if("string"==typeof t&&e.color.parse&&(i||(i=t),t=e.color.parse(t)),t&&t.length){var a;for(a=this.length=t.length;a--;)this[a]=t[a]}t&&(this.space=n||t.space||"RGB",this.name=i||t.name)},e.Color.fn=e.Color.prototype={color:"0.6",util:function(){return e.color[this.space]},setAlpha:function(e){return this.length<4&&this.push(1),void 0!==e&&(this[3]=e),this},getAlpha:function(){return void 0===this[3]?1:this[3]},to:function(e){return this["to"+e]()},fix:function(){return this.util().fix(this)},modify:function(e){return t.call(this,e)},adjust:function(e){return t.call(this,e,!0)},setName:function(e){return this.name=e,this},toString:function(){if(!this.space)return"";var e=this.util();return e.hasOwnProperty("toString")?e.toString(this):""+this.to("RGB")},join:[].join,push:[].push},e.Color.isInstance=function(t){return t&&"object"==typeof t&&t.color===e.Color.fn.color&&t.space},e.Color.fnspace={},e.each(e.color.fns,a),e.color.fns.push=function(){for(var e=arguments.length,t=0;e>t;t++)a.call(arguments[t]);return Array.prototype.push.apply(this,arguments)}}(p),p.color&&function(e){e.extend(e.color,{parse:function(t){var n;return"string"==typeof t?(n=/^\s*rgb(a)?\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*(?:,\s*([0-9]+(?:\.[0-9]+)?)\s*)?\)\s*$/.exec(t))&&!n[1]==!n[5]?[parseInt(n[2],10),parseInt(n[3],10),parseInt(n[4],10),n[5]?parseFloat(n[5]):1]:(n=/^\s*rgb(a)?\(\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*(?:,\s*([0-9]+(?:\.[0-9]+)?)\s*)?\)\s*$/.exec(t))&&!n[1]==!n[5]?[255*parseFloat(n[2])/100,255*parseFloat(n[3])/100,255*parseFloat(n[4])/100,n[5]?parseFloat(n[5]):1]:(n=/^\s*#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})\s*$/.exec(t))?[parseInt(n[1],16),parseInt(n[2],16),parseInt(n[3],16),1]:(n=/^\s*#([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])\s*$/.exec(t))?[parseInt(n[1]+n[1],16),parseInt(n[2]+n[2],16),parseInt(n[3]+n[3],16),1]:(n=/^\s*hsl(a)?\(\s*([0-9]{1,3})\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*(?:,\s*([0-9]+(?:\.[0-9]+)?)\s*)?\)\s*$/.exec(t))&&!n[1]==!n[5]?[parseInt(n[2],10)/360,parseFloat(n[3])/100,parseFloat(n[4])/100,n[5]?parseFloat(n[5]):1]:e.color.named(t):!t||3!==t.length&&4!==t.length?void 0:(3===t.length&&t.push(1),t)},named:function(t){var n;return t=e.trim(t.toLowerCase()),"transparent"===t?[0,0,0,0]:(e.each(e.color.palette,function(i,a){return a[t]?(n=e.merge([],a[t]),n.push(1),!1):void 0}),n)}})}(p),p.Color&&function(e){e.Color.fn.related=function(t){var n=e.Color.fn.related.i18n,i=t||e.Color.fn.related.offset,a=Math.round(360*i)+n.deg;return{"anal-":this.analogous(-i).setName(n.anal+" -"+a),anal0:this.analogous().setName(n.orig),"anal+":this.analogous(i).setName(n.anal+" +"+a),"comp-":this.complementary(-i).setName(n.split+" -"+a),comp0:this.complementary().setName(n.comp),"comp+":this.complementary(i).setName(n.split+" +"+a),"triad-":this.analogous(-1/3).setName(n.triad+" -120"+n.deg),triad0:this.analogous().setName(n.orig),"triad+":this.analogous(1/3).setName(n.triad+" +120"+n.deg)}},e.Color.fn.related.offset=30/360,e.Color.fn.related.i18n={deg:"\xb0",anal:"Analogous",orig:"Original",split:"Split Complementary",comp:"Complementary",triad:"Triadic"}}(p),p.color&&function(e){e.color.palette.css3={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],grey:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}}(p),function(e){e.fn.cssColor=function(t){return e.Color(this.css(t))},e.Color.fn.applyCSS=function(t,n){return e(t).css(n,this.toCSS()),this}}(p);var St=fs(function(){function e(e,t){var n=f.valueOrDefault(t.stop,cs);return f.quickExtend(t,{stop:function(){n(),e.removeData("effect-controller")}}),e.data("effect-controller",t),t}function t(e){var t=e.data("effect-controller");t&&t.stop()}function n(e,t){t=f.quickExtend({mode:"show",direction:"left",easing:"linear",complete:cs},t),e.queue(function(){var n=e,i=["position","top","bottom","left","right"],a=t.mode,r=t.direction;f.effects.save(n,i),n.quickShow();var o=f.effects.createWrapper(n).css({overflow:"hidden"}),s="up"==r||"down"==r?"top":"left",l="up"==r||"left"==r?"pos":"neg",c=t.distance||("top"==s?n.outerHeight(!0):n.outerWidth(!0));"show"==a&&n.css(s,"pos"==l?isNaN(c)?"-"+c:-c:c);var u={};u[s]=("show"==a?"pos"==l?"+=":"-=":"pos"==l?"-=":"+=")+c,n.animate(u,{queue:!1,duration:t.duration,easing:t.easing,always:function(){"hide"==a&&n.quickHide(),f.effects.restore(n,i),f.effects.removeWrapper(n),o.remove(),t.complete&&t.complete.apply(this,arguments),n.dequeue()}})})}function i(e,t){function n(){d||(d=!0,i&&i())}t=f.quickExtend({enableCssTransition:!1,easing:"linear",duration:200,flyDirection:{vertical:Z.AnimationDirections.Up,horizontal:Z.AnimationDirections.Left}},t);var i=t.complete,a=t.flyDirection;e.quickShow();var r,o=f.getWindowArea(),s=e.offset(),l=e.elementSize(),c={marginTop:0,marginLeft:0},u=document.compatMode&&"BackCompat"!=document.compatMode?document.documentElement:document.body;r=document.all?u.scrollTop:window.pageYOffset,"top"===a.vertical?c.marginTop=-s.top-l.height:"bottom"===a.vertical?c.marginTop=o.bottom+r-s.top>0?o.bottom+r-s.top:o.bottom:c.marginTop=-(s.top-o.center.top),"left"===a.horizontal?c.marginLeft=-s.left-l.width:"right"===a.horizontal?c.marginLeft=o.right-s.left:c.marginLeft=-(s.left-o.center.left),e.stopCssAnimation({enableCssTransition:t.enableCssTransition}),e.css(c);var d=!1;c={marginTop:0,marginLeft:0},e.cssAnimate(c,{enableCssTransition:t.enableCssTransition,duration:t.duration,complete:function(){n()}})}function a(e,t){function n(){c||(c=!0,e.removeClass("fly-out-animation"),e.quickHide(),i&&i())}t=f.extend({enableCssTransition:!1,easing:"linear",duration:200,flyDirection:{vertical:Z.AnimationDirections.Up,horizontal:Z.AnimationDirections.Left}},t);var i=t.complete,a=t.flyDirection;e.quickShow(),e.css({marginTop:0,marginLeft:0});var r=f.getWindowArea(),o=e.offset(),s=e.elementSize(),l={marginTop:0,marginLeft:0};"top"===a.vertical?l.marginTop=-o.top-s.height:"bottom"===a.vertical?l.marginTop=r.bottom-o.top:l.marginTop=-(o.top-r.center.top),"left"===a.horizontal?l.marginLeft=-o.left-s.width:"right"===a.horizontal?l.marginLeft=r.right-o.left:l.marginLeft=-(o.left-r.center.left),e.stopCssAnimation({enableCssTransition:t.enableCssTransition});var c=!1;e.addClass("fly-out-animation"),e.cssAnimate(l,{enableCssTransition:t.enableCssTransition,duration:t.duration,complete:function(){n(),e.css({marginTop:0,marginLeft:0})}})}function r(e,t){function n(){r||(r=!0,e.removeClass("fading-animation"),"hide"===a&&(e.quickHide(),e.css("opacity",1)),i&&i())}t=f.quickExtend({effect:"show",enableCssTransition:!1,easing:"linear",duration:200},t);var i=t.complete,a=t.effect;e.stopCssAnimation({enableCssTransition:t.enableCssTransition}),"show"===a&&e.quickShow();var r=!1;e.addClass("fading-animation"),"show"===a&&e.css("opacity",0);var o={opacity:"show"===a?1:0};e.cssAnimate(o,{enableCssTransition:t.enableCssTransition,duration:t.duration,complete:function(){n()}})}function o(e,t){t=f.quickExtend({ignoreOffset:!1,getSize:function(){return e.elementSize()}},t);var n=t.ignoreOffset?!1:e.offset(),i=t.getSize(),a=(f.valueOrDefault(t.setElementSize,cs),e.attr("style")),r=e.css("position"),o=e.css("display");o&&"none"!==o||(o=l(e[0].tagName)?"inline-block":"block");var c=f.oneOfValues(r,["relative","static"]),u="absolute"===r?"absolute":"relative",d={position:u,display:o,"margin-left":e.css("marginLeft"),"margin-top":e.css("marginTop"),"margin-right":e.css("marginRight"),"margin-bottom":e.css("marginBottom"),"float":e.css("float"),"z-index":e.css("zIndex")},g=[];for(var p in d)g.push(p+":"+d[p]+";");var h=f("<div style='{0}'></>".format(g.join(" "))).addClass(t.className);e.wrap(h),e.css({position:"relative",left:0,top:0,bottom:"",right:"",marginLeft:0,marginTop:0,marginBottom:0,marginRight:0}).addClass("has-effect-wrapper");var h=e.parent();return c||(s(e,i,n),n&&h.offset(n)),{$element:h,remove:function(){e.removeClass("has-effect-wrapper"),a?e.attr("style",a):e.removeAttr("style"),f(h.children()[0]).unwrap()}}}function s(e,t){e.css({width:t.width+"px",height:t.height+"px"})}function l(e){return u||(u=f.makeDictionaryFromKeys(c,!0)),!!c[e.toLowerCase()]}var c=["b","i","big","small","tt","abbr","acronym","cite","code","dfn","em","kbd","strong","samp","var","u","a","bdo","br","img","map","object","q","script","span","sub","sup","button","input","label","select","textarea"],u={};this.shake=function(n,i){function a(){y||(y=!0,m=f([]),f.eachItem(v,function(e,t){t.remove()}),d&&d())}t(n),i=f.quickExtend({direction:"left",times:1,distance:20,easing:"linear",duration:200},i);var r=i.distance,s=i.duration,l=i.easing,c=i.direction,u=i.times,d=i.complete,g="up"==c||"down"==c?"top":"left",p="up"==c||"left"==c?"pos":"neg",h=f.weakID("queue"),m=f([]),v=[];n.each(function(){var e=o(f(this));m.pushElements(e.$element),v.push(e)});for(var y=!1,b=0;u+1>b;b++){var C={};b%2===0?C[g]=("pos"==p?"-=":"+=")+(0===b||b===u?r:2*r):C[g]=("pos"==p?"+=":"-=")+(b===u?r:2*r),m.animate(C,{duration:s,easing:l,queue:h})}return m.queue(h,a).dequeue(h),e(n,{stop:function(){m.stop(h,!0,!0),a()}})},this.slideIn=function(e,t){t||(t={}),t.mode="show",e.each(function(){n(f(this),t)})},this.slideOut=function(e,t){t||(t={}),t.mode="hide",e.each(function(){n(f(this),t)})},this.flyIn=function(e,t){t||(t={}),e.each(function(){i(f(this),t)})},this.flyOut=function(e,t){t||(t={}),e.each(function(){a(f(this),t)})},this.fadeIn=function(e,t){t||(t={}),t.effect="show",e.each(function(){r(f(this),t)})},this.fadeOut=function(e,t){t||(t={}),t.effect="hide",e.each(function(){r(f(this),t)})},this.createEffectPlaceHolder=o}),Pt=fs(function(){function e(e,t,n,i,a){n?e.velocity(t,{duration:i,complete:a}):(e.css(t),a&&a())}function t(e){e.velocity("stop")}var n,i,a,r=I.create(function(){n=f('<div class="slide-effect-placeholder"></div>'),i=f('<div class="slide-effect-element-wrapper"></div>'),a=f('<div class="slide-effect-events-catcher-layer events-catcher"></div>')});this.animate=function(o,s){s=f.quickExtend({direction:"up",animationCallback:cs,animate:!0},s),r.execute();var l=s.direction,c=s.duration,u=s.pushContent,d=s.scrollingOffset,g="up"==l||"down"==l,p=s.distance||(g?o.outerHeight(!0):o.outerWidth(!0));n.outerSize(s.placeHolderSize);var h=na.getBodyElementContainer(),m=na.getBodyElementWrapper(),v=m.attr("style"),y=na.getBodyElement(),b=y.attr("style");m.addClass("slide-effect-body-wrapper"),h.addClass("slide-effect-body-container"),y.addClass("slide-effect"),y.css({top:-d.top});var C,I,S,P=m;u?(P=m,g?P.css({height:s.placeHolderSize.height}):P.css({width:s.placeHolderSize.width}),"up"==l?(I={top:p},S={top:0},C={top:"auto",bottom:"100%"}):"down"==l?(I={top:-p},S={top:0},C={top:"100%",bottom:"auto"}):"left"==l?(I={left:p},S={left:0},C={left:"auto",right:"100%"}):"right"==l&&(I={left:-p},S={left:0},C={left:"100%",right:"auto"})):(P=i,"up"==l?(I={top:0},S={top:-p},C={top:-p,bottom:"auto"}):"down"==l?(I={bottom:0},S={bottom:-p},C={top:"auto",bottom:-p}):"left"==l?(I={left:0},S={left:-p},C={left:-p,right:"auto"}):"right"==l&&(I={right:0},S={right:-p},C={left:"auto",right:-p})),i.css(C),P.addClass("slide-effect-animation"),o.appendTo(i),n.appendTo(h),a.appendTo(m),i.appendTo(m),e(P,I,s.animate,c,s.animationCallback);var w={};return f.quickExtend(w,{isClosed:!1,close:function(r){if(!w.isClosed){r=f.quickExtend({animate:!0,closeCallback:cs,closingCallback:cs},r),w.isClosed=!0;var s=function(){r.closingCallback(),n.detach(),o.detach(),i.detach(),a.detach(),y.setStyleAttr(b),y.removeClass("slide-effect"),P.removeClass("slide-effect-animation"),h.removeClass("slide-effect-body-container"),m.removeClass("slide-effect-body-wrapper"),m.setStyleAttr(v),i.setStyleAttr(),r.closeCallback()};t(P),e(P,S,r.animate,c,s)}}}),w}}),wt={NoAnimation:{name:"NoAnimation",show:function(e,t){e.quickShow(),t.complete()},hide:function(e,t){e.quickHide(),t.complete()}},Fade:{name:"Fade",show:function(e,t){St.fadeIn(e,t)},hide:function(e,t){St.fadeOut(e,t)}},Slide:{name:"Slide",show:function(e,t){St.slideIn(e,t)},hide:function(e,t){St.slideOut(e,t)}},Fly:{name:"Fly",show:function(e,t){St.flyIn(e,t)},hide:function(e,t){St.flyOut(e,t)}},DropDown:{show:function(e,t){e.slideDown(t.duration,t.complete)},hide:function(e,t){e.slideUp(t.duration,t.complete)}}};!function(e){e.fn.stopAnimations=function(){return this.hasClass("during-animation")&&this.stopCssAnimation(),this},e.fn.animateShow=function(t,n,i){n=e.quickExtend({complete:cs,duration:0},n);var a=this;return"string"==typeof t&&(t=wt[t]),void 0===t.show&&(t=wt.NoAnimation),a.stopAnimations(),a.addClass("during-animation"),t.show(a,e.extend(n,{complete:function(){a.removeClass("during-animation"),i()}})),this},e.fn.animateHide=function(t,n,i){var a=this;return n=e.quickExtend({duration:0},n),"string"==typeof t&&(t=wt[t]),void 0===t.hide&&(t=wt.NoAnimation),a.stopAnimations(),a.addClass("during-animation"),t.hide(a,e.quickExtend(n,{complete:function(){a.removeClass("during-animation"),i()}})),this},e.fn.showOnHover=function(t,n){var i=e(this);n=e.quickExtend({showingFunction:function(){e(this).show()},hidingFunction:function(){e(this).hide()}},n),e(t).hover(function(){n.showingFunction.call(i)},function(){n.hidingFunction.call(i)}),i.hide()},e.fn.animateVerticalOffset=function(e,t){return this.animateOffset({top:e},t,{moveHorizontally:!1,moveVertically:!0})},e.fn.animateHorizontalOffset=function(e,t){return this.animateOffset({left:e},t,{moveHorizontally:!0,moveVertically:!1})},e.fn.animateOffset=function(t,n,i){i=e.quickExtend({moveHorizontally:!0,moveVertically:!0},i);var a=this.offset(),r=i.moveHorizontally?t.left-a.left:0,o=i.moveVertically?t.top-a.top:0;if(0!==r||0!==o){var s={};0!==r&&(s.left=parseInt(this.css("left"))+r+"px"),0!==o&&(s.top=parseInt(this.css("top"))+o+"px"),this.animate(s,n)}},e.animateObject=function(t,n,i){return e.animateValue(t,n,e.extend({},i,{valueToProperties:function(e){var t={};for(var n in e)t["custom"+n]=e[n];return t},propertiesToValue:function(e){var t={};for(var n in e)t[n.substring(6)]=e[n];return t}}))},e.animateValue=function(t,n,i){function a(){return 0>=l?(u=!0,void i.complete()):(l--,r=e(e.quickExtend({},o)),void r.animate(s,{duration:i.duration,easing:i.easing,step:function(e,t){c[t.prop]=e,i.step(i.propertiesToValue(c))},complete:function(){a()}}))}i=e.extend({valueToProperties:function(e){return{value:e}},propertiesToValue:function(e){return e.value},times:1,duration:400,easing:"linear",step:cs,complete:cs},i);var r,o=i.valueToProperties(t),s=i.valueToProperties(n),l=i.times,c=e.quickExtend({},o),u=!1;return a(),{stop:function(e){l=0,r.stop(!0,e),e||a()}}},e.fn.stepAnimate=function(t,n,i,a,r){var o=e(this),s=void 0;e.isArray(n)&&(s=n[1],n=n[0]),r=e.quickExtend({maxDuration:!1,distance:0},r);var l=r.distance,c=r.maxDuration;if(void 0===s)switch(t){case"scrollTop":s=o.scrollTop();break;case"scrollLeft":s=o.scrollLeft();break;default:s=parseInt(o.css(t))}var u=Math.ceil(Math.abs(n-s)/i),d={};d[t]=n-l;var g=u*a;return o.stop(!0,!0),o.animate(d,e.quickExtend({},r,{duration:c?e.minValue([g,c]):g}))}}(p);var Et={Hover:"hovering",Toggle:"toggle-button-state-group",Disabling:"disable-state-group"};!function(e){function t(e,t,n,i,a,r){if(void 0!==i){if(null!==a&&void 0!==a&&!i.statesMap[a])throw Error("Unknown state");if(i.currentState!=a){var o=i.currentState;null!==o&&void 0!==o&&e.removeClass(i.currentState),null!==a&&void 0!==a&&e.addClass(a),i.currentState=a;var s=i.stateChangedEvent,l=t.stateChangedEvent;s&&s.fire(e,a,r),l&&l.fire(n,e,a,r)}}}var n=C.extend("ElementBooleanStateTracker",{init:function(e,t,n,i){this._disablingReasons=void 0,this._stateChangedEvent=void 0,this._$element=e,this._trueClass=t,this._falseClass=n,this._inState=!0,i&&e.addClass(t)},isInState:function(){return this._inState},onStateChanged:function(e){var t=this._stateChangedEvent;t||(t=x.create(),this._stateChangedEvent=t),t.bind(e)},toggleInState:function(e,t){t=void 0!==t?t:"default";var n=this._inState,i=this._$element,a=this._trueClass,r=this._falseClass,o=this._disablingReasons;e?o&&o.removeField(t):(o||(o=k.create(),this._disablingReasons=o),o.setField(t,!0));var s=!o||o.isEmpty(),l=n!==s;if(s?i.removeClass(r).addClass(a):i.removeClass(a).addClass(r),l){this._inState=s;var c=this._stateChangedEvent;c&&c.fireNew(s)}}}),i=C.extend("ElementBooleanState",{init:function(e,t,n){this._trackerDataField=e,this._trueClass=t,this._falseClass=n},_getTracker:function(e,t){return e[0][t]},_setTracker:function(e,t,n){e[0][t]=n},toggleState:function(e,t,i){var a=this._trackerDataField,r=this._getTracker(e,a);r||(r=new n(e,this._trueClass,this._falseClass,!1),this._setTracker(e,a,r)),r.toggleInState(t,i)},initializeState:function(e,t){var i=this._trackerDataField,a=this._getTracker(e,i);return a||(a=new n(e,this._trueClass,this._falseClass,!0),this._setTracker(e,i,a)),t&&a.onStateChanged(t),a},onStateChanged:function(e,t){var n=this.initializeState(e);n.onStateChanged(t)}}),a=new i("displayingStateTracker","state-displayed","state-hidden"),r=new i("visibilityStateTracker","state-visible","state-invisible"),o=new i("disablingStateTracker","state-enabled","state-disabled");e.fn.addStatesGroupsSupport=function(){var t=e(this),n=t.data("states-groups");return void 0===n&&(n={},t.data("states-groups",n)),n},e.fn.getStatesGroupData=function(t){var n=e(this).data("states-groups");return void 0===n?void 0:n[t]},e.fn.addStatesGroup=function(n,i,a){i=e.quickExtend({groupName:"default",elementPartsSelector:null},i);var r=e(this),o=i.groupName;void 0===a&&(a=r.addStatesGroupsSupport());var s;n instanceof Array?s=n:(s=[],e.eachEntry(n,function(e,t){s.push(t)}));var l=a[o];return void 0===l&&(l={states:s,statesMap:e.makeDictionaryFromKeys(s,!0),options:i,currentState:void 0},a[o]=l),i.stateChangeCallback&&(l.stateChangedEvent=x.create(),l.stateChangedEvent.bind(i.stateChangeCallback)),t(r,a,o,l,i.defaultState),this},e.fn.inState=function(t){return e(this).hasClass(t)},e.fn.bindStateChange=function(t,n,i){return e(this).each(function(){var a=e(this).getStatesGroupData(t),r=a.stateChangedEvent;r||(r=x.create(),a.stateChangedEvent=r),r.bind(n,i)})},e.fn.setState=function(n,i,a){i=e.valueOrDefault(i,"default");for(var r=0;r<this.length;r++){var o=e(this[r]),s=o.data("states-groups");void 0===s?ee.warn("Setting state to an element with no states groups. ({0} {1})".format(n,i)):t(o,s,i,s[i],n,a)}return this},e.fn.toggleBooleanState=function(t,n,i,a,r,o){for(var s=0;s<this.length;s++){var l=e(this[s]);void 0===r?l.inState(n)?l.setState(i,t,o):l.setState(n,t,o):r===!0?l.setState(n,t,o):r===!1?l.setState(i,t,o):a?l.setState(a,t,o):l.setState(n,t,o)}return this},e.fn.addDisablingStates=function(t){return this.each(function(){o.initializeState(e(this),t)})},e.fn.toggleEnable=function(t,n){return this.each(function(){o.toggleState(e(this),t,n)})},e.fn.addVisibilityStates=function(){return this.each(function(){r.initializeState(e(this))})},e.fn.toggleVisibility=function(t,n){return this.each(function(){r.toggleState(e(this),t,n)})},e.fn.cssHide=function(e){return this.toggleDisplayed(!1,e)},e.fn.cssShow=function(e){return this.toggleDisplayed(!0,e)},e.fn.addDisplayingStates=function(){return this.each(function(){a.initializeState(e(this))})},e.fn.toggleDisplayed=function(t,n){return this.each(function(){a.toggleState(e(this),t,n)})},e.fn.displayChanged=function(t){return a.onStateChanged(e(this),t),this},e.fn.bindToStatesGroupEvent=function(e,t){var n=this.addStatesGroupsSupport(),i=n.stateChangedEvent;return i||(i=x.createNamedEvents(),n.stateChangedEvent=i),i.bind(e,t),this},e.fn.isEnabled=function(){return e(this).inState("state-enabled")},e.fn.isDisabled=function(){return e(this).inState("state-disabled")},e.fn.isDisplayed=function(){return e(this).inState("state-displayed")},e.fn.isHidden=function(){return e(this).inState("state-hidden")},e.fn.trackFocus=function(t,n){return e(this).each(function(){var i=e(this),a=e.getFocusedElement();i.addStatesGroup(["state-focused","state-unfocused"],e.quickExtend({},t,{defaultState:a&&a.hasAncestor(e(this))?"state-focused":"state-unfocused",groupName:"focus-state-group"}),n),i.focusin(function(){i.setState("state-focused","focus-state-group")}),i.focusout(function(){e.beginInvoke(function(){var t=e.getFocusedElement();t&&t.hasAncestor(i)?i.setState("state-focused","focus-state-group"):i.setState("state-unfocused","focus-state-group")})})}),e(this)},e.fn.isFocused=function(){return e(this).inState("state-focused")}}(p);var Tt=fs(function(){this.createDisplayController=function(e){var t=Ie.createContextClass({getTarget:e}),n=O.createConditionalPositive({valueChangeCallback:function(e){t.set(e?"state-displayed":"state-hidden")}});return t.setValue("state-displayed"),n}}),xt={Toggled:"state-toggled",UnToggled:"state-untoggled",Indeterminate:"state-toggle-indeterminate"};f(document).ready(function(){f(document).on("touchstart",".button",function(){var e=f(this);e.addClass("state-tapped"),f(document).one("touchend",function(){e.removeClass("state-tapped")})})}),function(e){function t(e,t){var n=e.data("toggle-group-data");n&&n.oneAlwaysToggled&&e.is(n.currentToggled)||e.toggleToggled(void 0,t)}e.fn.makeToggleButton=function(t){return t=e.extend({},t),t.isToggleButton=!0,e(this).makeButton(t)},e.fn.makeSimpleButton=function(t){if(t=e.quickExtend({displayCustomCursor:!0},t),this.addClass("button state-enabled state-displayed"),t.displayCustomCursor&&this.addClass("custom-cursor"),e.browser.msie){var n=this;n.mousedown(function(){n.addClass("state-pressed"),e(document).one("mouseup",function(){n.removeClass("state-pressed")})})}return this},e.fn.makeButton=function(n){return n=e.quickExtend({isToggleButton:!1,isToggled:!1,enableClientToggleToFalse:!0,enableClientToggleToTrue:!0,toggleOnClick:!0,displayCustomCursor:!0,trackFocus:!0,addToggledStates:!1,supportHiding:!0,supportDisabling:!0,elementPartsSelector:null},n),e(this).each(function(){var i=e(this),a=i.data("button-data");void 0===a&&(a={options:{}},i.data("button-data",a).addClass("button"),n.supportDisabling?i.addDisablingStates():i.addClass("state-enabled"),n.supportHiding&&i.addDisplayingStates(),n.addToggledStates&&i.addToggledStates(n.isToggled),i.is("a")&&n.trackFocus&&i.trackFocus()),e.extend(a.options,n),i.toggleClass("custom-cursor",n.displayCustomCursor).toggleClass("toggle-button",n.isToggleButton),n.isToggleButton&&!a.isToggleButton&&(a.isToggleButton=!0,i.addToggledStates(n.isToggled),n.toggleOnClick&&i.buttonClick(function(e){(i.isToggled()&&n.enableClientToggleToFalse||!i.isToggled()&&n.enableClientToggleToTrue)&&t(i,e)}))})},e.fn.buttonClick=function(t,n,i){return void 0===n&&(n=!0),this.bind("click"+(i?"."+i:""),function(i){var a,r=e(this),o=!r.hasClass("state-disabled");return o&&(a=t.call(r,i)),i.stopPropagation(),o&&!n||i.preventDefault(),a})},e.fn.buttonDown=function(t){return e(this).each(function(){var n=e(this);e(this).mousedown(function(e){n.inState("state-disabled")||t.call(this,e)})})},e.fn.buttonUp=function(t){return e(this).each(function(){var n=e(this);e(this).mouseup(function(e){n.inState("state-disabled")||t.call(this,e)})})},e.fn.buttonPress=function(t){return e(this).each(function(){var n=e(this);e(this).mouseHold(function(e){n.inState("state-disabled")||t.call(this,e)})})},e.fn.addToggledStates=function(t,n,i){return e(this).addStatesGroup(["state-toggled","state-untoggled","state-toggle-indeterminate"],e.extend({},n,{defaultState:t?"state-toggled":"state-untoggled",groupName:Et.Toggle}),i)},e.updateTogglingGroup=function(t,n){var i=e(document).data("toggle-group-"+t);i.duringTogglingUpdated=!0,n(),i.duringTogglingUpdated=!1},e.createToggleGroup=function(t){t=e.extend({groupName:e.uniqueID(),oneAlwaysToggled:!1,toggleChangeCallback:cs},t);var n={elements:e([]),currentToggled:void 0,duringTogglingUpdated:!1,oneAlwaysToggled:t.oneAlwaysToggled};return n.bindFunction=function(){n.duringTogglingUpdated||(n.duringTogglingUpdated=!0,e(this).isToggled()===!0?(n.elements.not(this).toggleToggled(!1),n.currentToggled=e(this)):e(this).isToggled()===!1&&e.sameElements(n.currentToggled,e(this))&&(t.oneAlwaysToggled?e(this).toggleToggled(!0):n.currentToggled=void 0),t.toggleChangeCallback(n.currentToggled),n.duringTogglingUpdated=!1)},t.groupName&&e(document).data("toggle-group-"+t.groupName,n),n},e.fn.addToToggleGroup=function(t){var n=e(this);return 0===t.elements.filter(function(){return e.sameElements(e(this),n)}).length&&(t.elements=t.elements.add(n),n.bindStateChange(Et.Toggle,t.bindFunction,t.id)),e(this)},e.fn.toggleToggled=function(t,n){return e(this).toggleBooleanState(Et.Toggle,"state-toggled","state-untoggled","state-toggle-indeterminate",t,n)},e.fn.isToggled=function(){return e(this).inState("state-toggled")?!0:e(this).inState("state-untoggled")?!1:null},
e.fn.toggled=function(t){return e(this).bindStateChange(Et.Toggle,t)}}(p);var kt=fs(function(){this.SizeUnificationBatch=Ae.create(),this.positionToRight=function(e){return e.addClass("vertically-centered").wrap("<div class='right-block'></div>"),e.parent().prepend('<span class="height-normalizer"></span>')},this.createTable=function(e){e=f.extend({numberOfColumns:2,numberOfRows:1,isUniform:!0,inlineCellContent:!1,columnsGap:0,className:""},e);var t=e.numberOfColumns,n=e.numberOfRows,i=e.isUniform,a=e.sizeUnifiersGroup,r=e.inlineCellContent,o=e.columnsGap,s=e.className,l=[],c=o>0,u=new E;u.append('<div class="table {0}">',s);for(var d=0;n>d;d++){u.append('<div class="table-row row-index-{0} {1}">',d,f.getIndexClasses(d,n-1)),c&&u.append('<div class="columns-gap-wrapper no-wrap" style="padding-right: {0}px">',(t-1)*o);for(var g=0;t>g;g++){var p=new E;i&&p.append("width:{0}%;",f.adjustFraction(100/t,2)),c&&p.append('margin-right:{0}px;"',o),u.append('<span class="table-cell border-box-sizing vertically-top col-index-{0} {1}" style="{2}">',g,f.getIndexClasses(g,t-1),""+p),u.append('<span class="cell-content {0}"></span>',r?"vertically-top":"block"),u.append("</span>")}c&&u.append("</div>"),u.append("</div>")}if(a)for(var d=0;t>d;d++)l[d]=a.addSizeUnifier();u.append("</div>");var h=f(""+u),m={$element:h,appendTo:function(e){return h.appendTo(e),m},getCell:function(e,t){return h.find(".row-index-{0} .col-index-{1} .cell-content".format(e,t))},getColumnSizeUnifier:function(e){return l[e]},countRows:function(){return n},countColumns:function(){return t},countCells:function(){return n*t},distributeItems:function(e){f(".cell-content",h).each(function(t){f(this).append(e[t])})}};return m},this.createSizeUnifiersGroup=function(){var e=[],t=void 0;return{addSizeUnifier:function(){return t=kt.createSizeUnifier(),e.push(t),t},getCurrent:function(){return t},invalidate:function(){for(var t=0;t<e.length;t++)e[t].invalidate()},unify:function(t){for(var n=0;n<e.length;n++)e[n].unify(t)}}},this.createSizeUnifier=function(){var e={},t=[],n={width:!1,height:!1};return f.quickExtend(e,{addElement:function(n){f.isPlainObject(n)||(n={$element:f(n)}),n=f.quickExtend({$element:void 0,$widthTarget:void 0,$heightTarget:void 0,autoWidth:!1,autoHeight:!1},n);var i=n.$element;if(!i)throw Error("Missing $element option");return n.$widthTarget=f.valueOrDefault(n.$widthTarget,i),n.$heightTarget=f.valueOrDefault(n.$heightTarget,i),t.push(n),e.invalidate(),e},invalidate:function(){n.width=!0,n.height=!0},unify:function(e){e=f.quickExtend({unifyWidth:!1,unifyHeight:!1,unifyToMinWidth:!1,unifyToMinHeight:!1},e);var i=!1;if(e.unifyWidth&&n.width&&(i=!0,n.width=!1),e.unifyHeight&&n.height&&(i=!0,n.height=!1),i||e.force){for(var a=[],r=0;r<t.length;r++){var o=t[r],s=o.$element,l=o.$widthTarget,c={};e.unifyWidth&&(c.outerWidth=s.outerWidth(),c.width=l.width()),e.unifyHeight&&(c.outerHeight=s.outerHeight(),c.height=l.height()),c.elementInfo=o,a.push(c)}kt.SizeUnificationBatch.performOperation(function(){var n,i,r,o,s;if(e.unifyWidth)for(n=e.unifyToMinWidth?"minValue":"maxValue",i=f[n](a,function(e){return e.outerWidth}),s=0;s<a.length;s++)r=a[s],o=r.elementInfo,t[s].$widthTarget.css("width",i-(r.outerWidth-r.width));if(e.unifyHeight)for(n=e.unifyToMinHeight?"minValue":"maxValue",i=f[n](a,function(e){return e.outerHeight}),s=0;s<a.length;s++)r=a[s],o=r.elementInfo,t[s].$heightTarget.css("height",i-(r.outerHeight-r.height))})}}}),e},this.createBlocksNormalizer=function(){var e={},t={};return f.extend(e,{addMainBlock:function(e,n){n=f.quickExtend({},n);var i={},a=f.weakID();return f.quickExtend(i,{$mainBlock:e,$leftBlock:n.$leftBlock,$rightBlock:n.$rightBlock,remove:function(){delete t[a]}}),t[a]=i,i},normalize:function(){kt.SizeUnificationBatch.performOperation(function(){var e=[];f.each(t,function(t,n){var i=n.$leftBlock&&n.$leftBlock.length>0?n.$leftBlock.outerWidth(!0):void 0,a=n.$rightBlock&&n.$rightBlock.length>0?n.$rightBlock.outerWidth(!0):void 0;void 0===i&&void 0===a||e.push({mainBlockController:n,marginLeft:i,marginRight:a})});for(var n=0;n<e.length;n++){var i=e[n],a=i.mainBlockController,r=a.$mainBlock;void 0!==i.marginLeft&&r.css("marginLeft",i.marginLeft),void 0!==i.marginRight&&r.css("marginRight",i.marginRight)}})}}),e},this.normalizeBlock=function(e,t){t=f.quickExtend({},t);var n=t.$leftBlock,i=t.$rightBlock,a=n&&n.length>0?n.outerWidth(!0):void 0,r=i&&i.length>0?i.outerWidth(!0):void 0;void 0!==a&&e.css("marginLeft",a),void 0!==r&&e.css("marginRight",r)},this.normalizeBlockField=function(e,t){t=f.quickExtend({leftBlockSelector:".left-block",rightBlockSelector:".right-block",mainBlockSelector:".main-block"},t);var n=f(t.mainBlockSelector,e),i=f(t.leftBlockSelector,e),a=f(t.rightBlockSelector,e);kt.normalizeBlock(n,{$leftBlock:i,$rightBlock:a})}});!function(e){e.fn.makeTable=function(t){t=e.quickExtend({itemsPerRow:3},t);for(var n=this,i=t.itemsPerRow,a=n.children(),r=void 0,o=e([]),s=1,l=1,c=0;c<a.length;c++){c%i===0&&(r=e("<span class='block row row-{0}'></span>".format(s)).addClass(t.rowClass),s++,l=1,o.pushElements(r));var u=e("<span class='vertically-top column column-{0}'></span>".format(l)).addClass(t.columnClass).append(a[c]).appendTo(r);c%i===0&&u.addClass("first"),(c+1)%i===0&&u.addClass("last"),l++}o.first().addClass("first"),o.last().addClass("last"),o.appendTo(n)},e.fn.unifySize=function(t){for(var n=kt.createSizeUnifier(),i=0;i<this.length;i++)n.addElement(e(this[i]));n.unify(t)},e.fn.uniformChildren=function(){var t,n,i=this.children(),a=this.width(),r=Math.floor(a/i.length),o=[];for(n=0;n<i.length;n++)t=e(i[n]),o.push({$element:t,margin:t.outerWidth(!0)-t.outerWidth()});var s=e.minValue(o,function(e){return r-e.margin}),l=s/a*100;kt.SizeUnificationBatch.performOperation(function(){for(var e=0;e<o.length;e++){var t=o[e];t.$element.addClass("border-box-sizing").css({width:l+"%"})}})}}(p),/*! Copyright (c) 2011 Brandon Aaron (http://brandonaaron.net)
* Licensed under the MIT License (LICENSE.txt).
*
* Thanks to: http://adomas.org/javascript-mouse-wheel/ for some pointers.
* Thanks to: Mathias Bank(http://www.mathias-bank.de) for a scope bug fix.
* Thanks to: Seamus Leahy for adding deltaX and deltaY
*
* Version: 3.0.6
* 
* Requires: 1.2.2+
*/
function(e){function t(t){var n=t||window.event,i=[].slice.call(arguments,1),a=0,r=0,o=0;return t=e.event.fix(n),t.type="mousewheel",n.wheelDelta&&(a=n.wheelDelta/120),n.detail&&(a=-n.detail/3),o=a,void 0!==n.axis&&n.axis===n.HORIZONTAL_AXIS&&(o=0,r=-1*a),void 0!==n.wheelDeltaY&&(o=n.wheelDeltaY/120),void 0!==n.wheelDeltaX&&(r=-1*n.wheelDeltaX/120),i.unshift(t,a,r,o),(e.event.dispatch||e.event.handle).apply(this,i)}var n=["DOMMouseScroll","mousewheel"];if(e.event.fixHooks)for(var i=n.length;i;)e.event.fixHooks[n[--i]]=e.event.mouseHooks;e.event.special.mousewheel={setup:function(){if(this.addEventListener)for(var e=n.length;e;)this.addEventListener(n[--e],t,{passive:!1});else this.onmousewheel=t},teardown:function(){if(this.removeEventListener)for(var e=n.length;e;)this.removeEventListener(n[--e],t,{passive:!1});else this.onmousewheel=null}},e.fn.extend({mousewheel:function(e){return e?this.bind("mousewheel",e):this.trigger("mousewheel")},unmousewheel:function(e){return this.unbind("mousewheel",e)}})}(p),function(e){var t=document.createElement("div"),n=t.style;e.support.backgroundSize=""===n.backgroundSize?"backgroundSize":""===n.MozBackgroundSize?"MozBackgroundSize":""===n.WebkitBackgroundSize?"WebkitBackgroundSize":""===n.OBackgroundSize?"OBackgroundSize":!1,e.support.backgroundSize&&"backgroundSize"!==e.support.backgroundSize&&(e.cssHooks.backgroundSize={get:function(t){return e.css(t,e.support.backgroundSize)},set:function(t,n){t.style[e.support.backgroundSize]=n}}),t=n=null}(p),/*! Copyright (c) 2010 Brandon Aaron (http://brandonaaron.net)
* Licensed under the MIT License (LICENSE.txt).
*/
function(e){var t="Top Right Bottom Left".split(" ");e.each(["margin","padding"],function(n,i){e.cssHooks[i]={get:function(n){return e.map(t,function(t){return e.css(n,i+t)}).join(" ")},set:function(n,a){var r=a.split(/\s/),o={Top:r[0],Right:r[1]||r[0],Bottom:r[2]||r[0],Left:r[3]||r[1]||r[0]};e.each(t,function(e,t){n.style[i+t]=o[t]})}}})}(p),function(e){function t(t){t=t.split(")");for(var n,i,r,o,s,l,c,u,d,g=e.trim,f=t.length-1,p=1,h=0,m=0,v=1,y=0,b=0;f--;){switch(n=t[f].split("("),i=g(n[0]),r=n[1],o=s=l=c=0,i){case"translateX":y+=parseInt(r,10);continue;case"translateY":b+=parseInt(r,10);continue;case"translate":r=r.split(","),y+=parseInt(r[0],10),b+=parseInt(r[1]||0,10);continue;case"rotate":r=a(r),o=Math.cos(r),s=Math.sin(r),l=-Math.sin(r),c=Math.cos(r);break;case"scaleX":o=r,c=1;break;case"scaleY":o=1,c=r;break;case"scale":r=r.split(","),o=r[0],c=r.length>1?r[1]:r[0];break;case"skewX":o=c=1,l=Math.tan(a(r));break;case"skewY":o=c=1,s=Math.tan(a(r));break;case"skew":o=c=1,r=r.split(","),l=Math.tan(a(r[0])),s=Math.tan(a(r[1]||0));break;case"matrix":r=r.split(","),o=+r[0],s=+r[1],l=+r[2],c=+r[3],y+=parseInt(r[4],10),b+=parseInt(r[5],10)}u=p*o+h*l,h=p*s+h*c,d=m*o+v*l,v=m*s+v*c,p=u,m=d}return[p,h,m,v,y,b]}function n(e){var t,n,i,a=e[0],r=e[1],o=e[2],s=e[3];return a*s-r*o?(t=Math.sqrt(a*a+r*r),a/=t,r/=t,i=a*o+r*s,o-=a*i,s-=r*i,n=Math.sqrt(o*o+s*s),o/=n,s/=n,i/=n,r*o>a*s&&(a=-a,r=-r,i=-i,t=-t)):t=n=i=0,{translate:[+e[4],+e[5]],rotate:Math.atan2(r,a),scale:[t,n],skew:[i,0]}}function i(t){t=t.split(")");for(var n,i,r,o=[0,0],s=0,l=[1,1],c=[0,0],u=t.length-1,d=e.trim;u--;)n=t[u].split("("),i=d(n[0]),r=n[1],"translateX"==i?o[0]+=parseInt(r,10):"translateY"==i?o[1]+=parseInt(r,10):"translate"==i?(r=r.split(","),o[0]+=parseInt(r[0],10),o[1]+=parseInt(r[1]||0,10)):"rotate"==i?s+=a(r):"scaleX"==i?l[0]*=r:"scaleY"==i?l[1]*=r:"scale"==i?(r=r.split(","),l[0]*=r[0],l[1]*=r.length>1?r[1]:r[0]):"skewX"==i?c[0]+=a(r):"skewY"==i?c[1]+=a(r):"skew"==i&&(r=r.split(","),c[0]+=a(r[0]),c[1]+=a(r[1]||"0"));return{translate:o,rotate:s,scale:l,skew:c}}function a(e){return~e.indexOf("deg")?parseInt(e,10)*(2*Math.PI/360):~e.indexOf("grad")?parseInt(e,10)*(Math.PI/200):parseFloat(e)}function r(e){return e=/\(([^,]*),([^,]*),([^,]*),([^,]*),([^,p]*)(?:px)?,([^)p]*)(?:px)?/.exec(e),[e[1],e[2],e[3],e[4],e[5],e[6]]}for(var o,s,l,c,u=document.createElement("div"),d=u.style,g="transform",f="Transform",p=["O"+f,"ms"+f,"Webkit"+f,"Moz"+f,g],h=p.length,m=/Matrix([^)]*)/;h--;)if(p[h]in d){e.support[g]=o=p[h];break}switch(e.support.transform){case"MozTransform":e.support.transformCSS="-moz-transform";break;case"WebkitTransform":e.support.transformCSS="-webkit-transform";break;case"OTransform":e.support.transformCSS="-o-transform";break;case"msTransform":e.support.transformCSS="-ms-transform";break;default:e.support.transformCSS="transform"}o||(e.support.matrixFilter=s=""===d.filter),u=d=null,e.cssNumber[g]=!0,o&&o!=g?(e.cssProps[g]=o,o=="Moz"+f?l={get:function(t,n){return n?e.css(t,o).split("px").join(""):t.style[o]},set:function(e,t){e.style[o]=/matrix[^)p]*\)/.test(t)?t.replace(/matrix((?:[^,]*,){4})([^,]*),([^)]*)/,"matrix$1$2px,$3px"):t}}:/^1\.[0-5](?:\.|$)/.test(e.fn.jquery)&&(l={get:function(t,n){return n?e.css(t,o.replace(/^ms/,"Ms")):t.style[o]}})):s&&(l={get:function(e,t){var n,i=t&&e.currentStyle?e.currentStyle:e.style;return i&&m.test(i.filter)?(n=RegExp.$1.split(","),n=[n[0].split("=")[1],n[2].split("=")[1],n[1].split("=")[1],n[3].split("=")[1]]):n=[1,0,0,1],n[4]=i?i.left:0,n[5]=i?i.top:0,"matrix("+n+")"},set:function(n,i,a){var r,o,s,l=n.style;if(a||(l.zoom=1),i=t(i),!a||a.M){o=["Matrix(M11="+i[0],"M12="+i[2],"M21="+i[1],"M22="+i[3],"SizingMethod='auto expand'"].join(),s=(r=n.currentStyle)&&r.filter||l.filter||"",l.filter=m.test(s)?s.replace(m,o):s+" progid:DXImageTransform.Microsoft."+o+")";var c;(c=e.transform.centerOrigin)&&(l["margin"==c?"marginLeft":"left"]=-(n.offsetWidth/2)+n.clientWidth/2+"px",l["margin"==c?"marginTop":"top"]=-(n.offsetHeight/2)+n.clientHeight/2+"px")}a&&!a.T||(i[4]&&(l.left=i[4]+"px"),i[5]&&(l.top=i[5]+"px"))}}),l&&(e.cssHooks[g]=l),c=l&&l.get||e.css,e.fx.step.transform=function(e){var a,u,d,g,f,p,h,m=e.elem,v=e.start,y=e.end,b=e.pos,C=!1,I=!1;if(d=g=f=p="",!v||"string"==typeof v){v||(v=c(m,o)),s&&(m.style.zoom=1),a=y.split(v),2==a.length&&(y=a.join(""),e.origin=v,v="none"),e.start=v="none"==v?{translate:[0,0],rotate:0,scale:[1,1],skew:[0,0]}:n(r(v)),e.end=y=~y.indexOf("matrix")?n(t(y)):i(y);for(h in v)("rotate"==h?v[h]==y[h]:v[h][0]==y[h][0]&&v[h][1]==y[h][1])&&delete v[h]}v.translate&&(d=" translate("+(v.translate[0]+(y.translate[0]-v.translate[0])*b+.5|0)+"px,"+(v.translate[1]+(y.translate[1]-v.translate[1])*b+.5|0)+"px)",C=!0),void 0!=v.rotate&&(g=" rotate("+(v.rotate+(y.rotate-v.rotate)*b)+"rad)",I=!0),v.scale&&(f=" scale("+(v.scale[0]+(y.scale[0]-v.scale[0])*b)+","+(v.scale[1]+(y.scale[1]-v.scale[1])*b)+")",I=!0),v.skew&&(p=" skew("+(v.skew[0]+(y.skew[0]-v.skew[0])*b)+"rad,"+(v.skew[1]+(y.skew[1]-v.skew[1])*b)+"rad)",I=!0),u=e.origin?e.origin+d+f+g:d+g+f,l&&l.set?l.set(m,u,{M:I,T:C}):m.style[o]=u},e.transform={centerOrigin:"margin"}}(p),/*! Copyright (c) 2010 Burin Asavesna (http://helloburin.com)
* Licensed under the MIT License (LICENSE.txt).
*/
function(e){function t(e,t){return t=void 0===t||""===t?"border":t+"Border",a.borderRadius&&"MozBorderRadius"==a.borderRadius?t+"Radius"+e.charAt(0).toUpperCase()+e.substr(1).toLowerCase():t+e+"Radius"}var n=document.createElement("div"),i=n.style,a=e.support,r="TopLeft TopRight BottomRight BottomLeft".split(" ");a.borderRadius=""===i.MozBorderRadius?"MozBorderRadius":""===i.MsBorderRadius?"MsBorderRadius":""===i.WebkitBorderRadius?"WebkitBorderRadius":""===i.OBorderRadius?"OBorderRadius":""===i.borderRadius?"BorderRadius":!1,n=null;var o;a.borderRadius&&"BorderRadius"!==a.borderRadius&&(o=a.borderRadius.replace("BorderRadius",""),e.cssHooks.borderRadius={get:function(n){return e.map(r,function(i){return e.css(n,t(i,o))}).join(" ")},set:function(e,n){e.style[t("",o)]=n}}),e.eachItem(r,function(n,i){e.cssHooks["borderRadius"+i]={get:function(n){return e.css(n,t(i,o))},set:function(e,n){e.style[t(i,o)]=n}}}),e.eachItem(r,function(t,n){var i="borderRadius"+n;e.fx.step[i]=function(t){e.cssHooks[i].set(t.elem,t.now+t.unit)}})}(p),function(){f.cssHooks.rgbaBackground={get:function(e){var t=f.getRGBA(f.css(e,"backgroundColor"));return"rgba({0},{1},{2},{3})".format(t[0],t[1],t[2],t[3])},set:function(e,t){var n=f.getRGBA(t);e.style.backgroundColor="rgba({0},{1},{2},{3})".format(n[0],n[1],n[2],n[3])}},f.fx.step.rgbaBackground=function(e){e.colorInit||(e.start=f.getRGBA(f.cssHooks.rgbaBackground.get(e.elem)),e.end=f.getRGBA(e.end),e.colorInit=!0),f.cssHooks.rgbaBackground.set(e.elem,"rgba("+Math.max(Math.min(Math.floor(e.pos*(e.end[0]-e.start[0])+e.start[0]),255),0)+","+Math.max(Math.min(Math.floor(e.pos*(e.end[1]-e.start[1])+e.start[1]),255),0)+","+Math.max(Math.min(Math.floor(e.pos*(e.end[2]-e.start[2])+e.start[2]),255),0)+","+Math.max(Math.min(Math.floor(100*(e.pos*(e.end[3]-e.start[3])+e.start[3]))/100,1),0)+")")}}(),/*! Copyright (c) 2010 Burin Asavesna (http://helloburin.com)
 * Licensed under the MIT License (LICENSE.txt).
 */
function(e){function t(e,t,n){var i=e.split(r);return i[n]=t,i.join(" ")}var n=document.createElement("div"),i=n.style,a=e.support,r=/\s/,o=/\)\s/;if(a.boxShadow=""===i.MozBoxShadow?"MozBoxShadow":""===i.MsBoxShadow?"MsBoxShadow":""===i.WebkitBoxShadow?"WebkitBoxShadow":""===i.OBoxShadow?"OBoxShadow":""===i.boxShadow?"BoxShadow":!1,n=null,a.boxShadow&&"BoxShadow"!==a.boxShadow){e.cssHooks.boxShadow={get:function(t){return e.css(t,a.boxShadow)},set:function(e,t){e.style[a.boxShadow]=t,""===e.style.zIndex&&(e.style["z-index"]=1)}},e.cssHooks.boxShadowColor={get:function(t){return e.css(t,a.boxShadow).split(o)[0]+")"},set:function(t,n){t.style[a.boxShadow]=n+" "+e.css(t,a.boxShadow).split(o)[1]}},e.cssHooks.boxShadowBlur={get:function(t){return e.css(t,a.boxShadow).split(r)[5]},set:function(n,i){n.style[a.boxShadow]=t(e.css(n,a.boxShadow),i,5)}},e.cssHooks.boxShadowSpread={get:function(t){return e.css(t,a.boxShadow).split(r)[6]},set:function(n,i){n.style[a.boxShadow]=t(e.css(n,a.boxShadow),i,6)}},e.cssHooks.boxShadowX={get:function(t){return e.css(t,a.boxShadow).split(r)[3]},set:function(n,i){n.style[a.boxShadow]=t(e.css(n,a.boxShadow),i,3)}},e.cssHooks.boxShadowY={get:function(t){return e.css(t,a.boxShadow).split(r)[4]},set:function(n,i){n.style[a.boxShadow]=t(e.css(n,a.boxShadow),i,4)}};var s="Blur Spread X Y".split(" ");e.eachItem(s,function(t,n){var i="boxShadow"+n;e.fx.step[i]=function(t){e.cssHooks[i].set(t.elem,t.now+t.unit)}})}}(p),/*!
* Copyright (c) 2011 Tom Ellis (http://www.webmuse.co.uk)
* Linear and Radial Gradient cssHook for jQuery
* Limitations:
  - Works with jQuery 1.4.3 and higher
  - Works in Firefox 3.6+, Safari 5.1+, Chrome 13+, Opera 11.10+, IE9+
  - Radial Gradients DO NOT work in Opera yet (Doesn't make sense I Know!)
  - Only works for background and background image CSS properties
* Licensed under the MIT License (LICENSE.txt).
*/
function(e){function t(t){var n=s.exec(t);return t=t.replace(n[2],e.support.linearGradient)}function n(t){var n=l.exec(t);return t=t.replace(n[2],e.support.radialGradient)}var i=document.createElement("div"),a=i.style,r=/^(.*?)linear-gradient(.*?)$/i,o=/^(.*?)radial-gradient(.*?)$/i,s=/^(.*?)(:?linear-gradient)(\()(.*)(\))(.*?)$/i,l=/^(.*?)(:?radial-gradient)(\()(.*?)(\))(.*?)$/i,c=/(^|\s)linear-gradient/,u=/(^|\s)-moz-linear-gradient/,d=/(^|\s)-webkit-linear-gradient/,g=/(^|\s)-o-linear-gradient/,f=/(^|\s)radial-gradient/,p=/(^|\s)-moz-radial-gradient/,h=/(^|\s)-webkit-radial-gradient/,m=/(^|\s)-o-radial-gradient/,v=/\s/,y="background backgroundImage",b="background-image: -moz-radial-gradient(circle, orange, red);background-image: -webkit-radial-gradient(circle, orange, red);background-image: -o-radial-gradient(circle,red, blue);background-image: radial-gradient(circle, orange, red);",C=y.split(v);a.cssText="background-image: -moz-linear-gradient(red, blue);background-image: -webkit-linear-gradient(red, blue);background-image: -o-linear-gradient(red, blue);background-image: linear-gradient(red, blue);",e.support.linearGradient=c.test(a.backgroundImage)?"linear-gradient":u.test(a.backgroundImage)?"-moz-linear-gradient":d.test(a.backgroundImage)?"-webkit-linear-gradient":g.test(a.backgroundImage)?"-o-linear-gradient":!1,a.cssText=b,e.support.radialGradient=f.test(a.backgroundImage)?"radial-gradient":p.test(a.backgroundImage)?"-moz-radial-gradient":h.test(a.backgroundImage)?"-webkit-radial-gradient":m.test(a.backgroundImage)?"-o-radial-gradient":!1,e.support.linearGradient&&"linear-gradient"!==e.support.linearGradient&&e.each(C,function(i,a){e.cssHooks[a]={set:function(e,i){r.test(i)?e.style[a]=t(i):o.test(i)?e.style[a]=n(i):e.style[a]=i}}}),i=a=null}(p);var Dt=fs(function(){var e={},t=0;this.loadImages=function(n,i){i=f.extend({loadCallback:cs,errorCallback:cs,finishCallback:cs,progressCallback:cs},i),n instanceof Array||(n=[n]);var a=[],r=n.length,o=0;r===o&&i.finishCallback([]),f.eachItem(n,function(n,s){function l(){d=new Image,g=f(d),g.load(c),g.on("error",function(){ee.log("Failed Loading Image "+s),i.errorCallback(),u({url:s,error:"Error Loading"})}),d.src=s}function c(){var t={width:g[0].width,height:g[0].height},n={$image:g,imageSize:t,imageUrl:s};e[s]=n,i.loadCallback(n),u(n)}function u(e){a.push(e),o++,i.progressCallback({imageData:e,loadedImagesCount:o,totalImagesCount:r,progress:o/r}),o==r&&(1==r?i.finishCallback(e):i.finishCallback(a))}var d,g,p=e[s];void 0!==p?(i.loadCallback(p),u(p)):t>0?window.setTimeout(l,t):l()})}});!function(e){function t(e,t,n){var i=e.options;r(e,t),i.useDisplayingStates?t.toggleDisplayed(!0,"TabsGroup"):i.useVisibilityStates?t.toggleVisibility(!0,"TabsGroup"):t.show(),a(e,t,n)}function n(e,t,n){var i=e.options;i.useDisplayingStates||i.useVisibilityStates||!i.showingFunction?t.show():(t.hide(),i.showingFunction.call(t,n))}function i(e,t){if(t){s(e,t);var n=e.options;n.useDisplayingStates?t.toggleDisplayed(!1,"TabsGroup"):n.useVisibilityStates?t.toggleVisibility(!1,"TabsGroup"):e.options.hidingFunction?e.options.hidingFunction.call(t):t.hide(),o(e,t)}}function a(e,t,n){e.showedTab=t;var i=t.data("tabs-group-controller");i.options.onTabShow.call(t,n),i.tabShowEvent.fireNew(),e.tabShowedEvent.fire(t),e.options.onTabShow.call(t)}function r(e,t){var n=t.data("tabs-group-controller");n.options.onTabShowing.call(t),e.options.onTabShowing.call(t)}function o(e,t){var n=t.data("tabs-group-controller");n.options.onTabHide.call(t),e.options.onTabHide.call(t),e.tabHideEvent.fire(t),n.tabHideEvent.fireNew()}function s(e,t){var n=t.data("tabs-group-controller");n.options.onTabHiding.call(t),e.options.onTabHiding.call(t)}e.fn.makeTabsGroup=function(t){var n=e.createTabsGroup(t);return e(this).addToTabsGroup(n),n},e.fn.makeTabsSwitcher=function(o){function s(a){if(!e.sameElements(a.currentTab,a.showedTab)){var r=a.showedTab,o=a.currentTab;r.hide(),t(a,o);var s=o.offset(),l=o.outerSize(),d=c.css("position");"absolute"!=d&&"fixed"!=d&&c.css("position","relative");var g=c.height();r.show(),o.hide();var f=r.offset(),p=r.outerSize(),h=c.height(),m=o.wrap("<span class='block'></span>").parent(),v=r.wrap("<span class='block'></span>").parent();e.unite(m,v).css({display:"block",position:"absolute"}),m.offset(s).elementSize(l),v.offset(f).elementSize(p),c.css({height:h,overflow:"hidden"}),v.insertBefore(m),i(a,r),n(a,o),a.options.foldingAnimation.call(c,g),u=e.unite(r,o,c).promise(),u.done(function(){o.unwrap(),r.unwrap(),c.css({height:"",overflow:""})})}}o=e.quickExtend({foldingAnimation:function(e){this.animate({height:e},300)}},o);var l,c=this,u=void 0,d=e.createTabsGroup(e.quickExtend(o,{showingHandler:function(e){var t=e.currentTab;e.showedTab?void 0===u?s(e):(l=function(){s(e)},u.done(function(){if(l){var e=l;l=void 0,e()}})):(r(e,t),t.show(),a(e,t))}}));return e(this).children().addToTabsGroup(d),d},e.createTabsGroup=function(t){t=e.extend({useDisplayingStates:!1,useVisibilityStates:!1,hideBeforeShowing:!0,onTabShow:cs,onTabHide:cs,onTabHiding:cs,onTabShowing:cs},t);var n={tabs:[],currentTab:void 0,currentTabChanged:x.create(),options:t,tabShowedEvent:x.create(),tabHideEvent:x.create(),hideCurrentTab:function(){e.hideTab(n)},isShowed:function(e){return e.is(n.currentTab)}};return n},e.fn.getTabsGroup=function(){return e(this).data("tabs-group")},e.fn.makeTabButton=function(t,n){n=e.quickExtend({hideTabOnUntoggling:!1},n);var i=e(this).makeToggleButton(),a=e(t),r=a.data("tabs-group"),o=!1,s=!1;return r.currentTabChanged.bindAndExecute(function(){s||(o=!0,i.toggleToggled(e.sameElements(r.currentTab,a)),o=!1)}),i.toggled(function(e){o||(s=!0,e===xt.Toggled?a.showTab():n.hideTabOnUntoggling?a.hideTab():(o=!0,i.toggleToggled(!0),o=!1),s=!1)}),this},e.fn.addToTabsGroup=function(t,n){return e(this).each(function(){n=e.quickExtend({onTabHide:cs,onTabShow:cs,onTabShowing:cs,onTabHiding:cs},n);var i=e(this),a={tabHideEvent:x.create(),tabShowEvent:x.create(),options:n,showTab:function(){i.showTab()}};t.tabs.push(a),e(this).data("tabs-group-controller",a),e(this).data("tabs-group",t),t.options.useDisplayingStates?e(this).addDisplayingStates().toggleDisplayed(!1,"TabsGroup"):t.options.useVisibilityStates?e(this).addVisibilityStates().toggleVisibility(!1,"TabsGroup"):e(this).hide()})},e.fn.removeFromTabsGroup=function(){var t=e(this).data("tabs-group");e(this).is(t.currentTab)&&(t.currentTab=void 0);var n=e(this).data("tabs-group-controller");return t.tabs.removeItem(n),e(this).removeData("tabs-group").removeData("tabs-group-controller"),this},e.fn.onTabHide=function(t){e(this).data("tabs-group-controller").tabHideEvent.bind(t)},e.fn.onTabShow=function(t){e(this).data("tabs-group-controller").tabShowEvent.bind(t)},e.fn.hideTab=function(){e.hideTab(e(this).data("tabs-group"),e(this))},e.hideTab=function(e,t){var n=e.currentTab;void 0===n||void 0!==t&&!t.is(n)||(e.currentTab=void 0,i(e,n),e.currentTabChanged.fireNew())},e.fn.showTab=function(a){var r=e(this[0]),o=e(this).data("tabs-group"),s=o.options,l=o.currentTab;void 0!==l&&e.sameElements(l,r)||(o.currentTab=r,s.showingHandler?s.showingHandler(o):(i(o,l),t(o,r,a),s.useDisplayingStates||s.useVisibilityStates||n(o,r,l)),o.currentTabChanged.fireNew())}}(p);var Ft=fs(function(){var e={},t=[],n=f("body"),i=f("html");this.open=function(a,r){this.closeDialog(a,!0),r=f.quickExtend({onOpened:cs,overlayClass:"dialog-overlay",showingAnimationFunction:this.defaultShowAnimation,hidingAnimation:!1,overlayShowingAnimation:!1,overlayHidingAnimation:!1,doNotCenter:!1,appendTo:"body"},r);var o,s,l=f("<div class='dialog-overlay fixed-positioned'></div>"),c=f("<div class='dialog block fixed-positioned'></div>"),u=r.appendTo,d={id:f.uniqueID(),$overlay:l,$dialogContainer:c,contextOptions:r,contextClass:Ie.createContextClass({getTarget:function(){return d.$dialogContainer}})};return en.setAsPanelsScope(l,"dialog"),en.setAsPanelsScope(c,"dialog"),a.data("dialog-controller",d),e[d.id]=!0,t.push(d),d.contextClass.set(r.contextClass),l.appendTo(u),r.overlayShowingAnimation?f.beginInvoke(function(){r.overlayShowingAnimation.call(l)}):l.show(),c.append(a).appendTo(u).show(),o=n.scrollTop(),s=i.scrollTop(),r.onOpened.call(a),r.doNotCenter?c.css({left:0,top:0,right:0,bottom:0}):c.makeCentered({horizontally:!0,vertically:!0}),n.scrollTop(o),i.scrollTop(s),void 0!==jn&&jn.start(),r.showingAnimationFunction?(this.shouldHideDialogOverlay()&&c.hide(),f.beginInvoke(function(){r.showingAnimationFunction.call(c)})):r.afterShowEffect&&r.afterShowEffect.call(c),d},this.getTopMostDialog=function(){return t[t.length-1]},this.hasOpenedDialogs=function(){return!f.isEmptyObject(e)},this.reCenterTheDialog=function(e){var t=e.data("dialog-controller");t&&t.$dialogContainer.makeCentered({horizontally:!0,vertically:!0})},this.getDialogOverlay=function(e){var t=e.data("dialog-controller");return t&&t.$overlay},this.close=function(e){this.closeDialog(e,!1)},this.defaultShowAnimation=cs(),this.shouldHideDialogOverlay=us,this.closeDialog=function(n,i){var a=n.data("dialog-controller")||{},r=a.contextOptions||{},o=a.$overlay,s=a.$dialogContainer,l=r.overlayHidingAnimation,c=r.hidingAnimation;a.id&&(delete e[a.id],t=f.grep(t,function(e){return e!==a}),n.removeData("dialog-controller"),n.detach(),l&&!i?l.call(o,function(){o.remove()}):o.remove(),void 0!==jn&&jn.finish(),c&&!i?c.call(s,function(){s.remove()}):s.remove())}}),At={HideItems:1,DetachItems:2},Bt=C.extend("ItemsListItem",{init:function(e){this.itemsList=e,this.data={},this._itemRemovingEvent=void 0,this._bindingsCollection=void 0},useBindingsCollection:function(){var e=this._bindingsCollection;return e||(e=x.createBindingsCollection(),this._bindingsCollection=e),e},notifyItemRemoving:function(){var e=this._itemRemovingEvent,t=this._bindingsCollection;e&&e.fireNew(this),t&&t.unbindAll()},onItemRemoving:function(e){var t=this._itemRemovingEvent;t||(t=x.create(),this._itemRemovingEvent=t),t.one(e)},unbindOnRemoving:function(e){this.onItemRemoving(function(){e.unbind()})},replaceData:function(e){var t=this.item;this.item=e,this.itemsList.notifyItemUpdated(this,t)},invalidateItem:function(){this.itemsList.notifyItemUpdated(this,this.item)},getDataItem:function(){return this.item}}),Vt=function(){function e(e,t){var n=e.data;void 0===t?t=f.getValues(e.items):f.isPlainObject(t)&&(t=f.getValues(t));var i,a=f.valueOrDefault(e.filteringFunction,us),r=a(t);i=r===!0?t:r===!1?[]:r instanceof Array?r:[r];for(var o=f.toDictionary(i,function(e){return e.id}),s=f([]),l=f([]),c=0;c<t.length;c++){var u=t[c],d=void 0!==o[u.id],g=u.$wrapper;g||(g=u.$item),g.toggleClass("state-filtered",d),g&&u.$item.toggleClass("state-filtered",d),n.filteringBehaviour===At.HideItems?g.toggleDisplayedState(d):(g.toggleDisplayedState(!0),d?l.pushElements(g):s.pushElements(g)),u.isFiltered=d,d?(e.filteredItems[u.id]=u,delete e.unfilteredItems[u.id]):(e.unfilteredItems[u.id]=u,delete e.filteredItems[u.id])}l.length>0&&l.each(function(){n.insertionFunction(f(this),e)}),s.length>0&&s.detach(),e.filteredItemsChangeEvent.fireNew(e.filteredItems)}function t(e,t,i){var a=e.options;i=f.valueOrDefault(i,!1),e.itemsChangingBatch.start();var r;r=a.idFunction?a.idFunction(t):f.uniqueID();var o,s;if(void 0!==e.items[r]){o=e.items[r];var l=o.item;o.item=t,e.notifyItemUpdated(o,l),s=!1}else{var c=a.getTemplateItem.call(t,t);o=new Bt(e),o.templateItem=c;var u,d=a.template,g=a.itemCreationFunction;void 0!==g?u=g.call(t,t,o):(d&&f.isFunction(d)&&(d=d(c)),u=f.useTemplate(d,c)),u.addClass(["state-displayed items-list-item",a.listItemClass,"items-list-"+e.id].join(" "));var p=void 0,h=e.itemWrapperTemplate;if(h){p=f.useTemplate(h).toggleDisplayedState(!0);var m=f(".wrapped-item-container",p);m.length>0?u.appendTo(m):u.appendTo(p)}f.quickExtend(o,{id:r,$item:u,$wrapper:p,isFiltered:!0,item:t}),e.items[r]=o,a.insertionFunction(p?p:u,e),i||n(e,o),s=!0}return e.itemsChangingBatch.finish(),{listItem:o,isNewItem:s}}function n(e,t){var n=t.$item;n.data("items-list-item",t),e.options.itemAddedCallback.call(t,t),e.itemAddedEvent.fireNew(t),e.notifyItemUpdated(t)}function i(e,t){return r(e,a(e,t))}function a(e,t){t=f.asArray(t);for(var n=[],i=0;i<t.length;i++){var a=t[i];if(f.isFunction(a))f.merge(n,f.grep(f.getValues(e.items),function(e){return a(e)}));else{var r;r="string"==typeof a||"number"==typeof a||"boolean"==typeof a?e.items[a]:a instanceof Bt?a:f.isJQueryObject(a)?a.data("items-list-item"):f(a).data("items-list-item"),void 0!==r&&n.push(r)}}return n}function r(e,t){e.itemsRemovingEvent.fireNew(t);for(var n=0;n<t.length;n++)o(e,t[n]);return t}function o(e,t){var n=e.options;n.itemRemovingCallback.call(t,t),e.itemRemovingEvent.fireNew(t),t.notifyItemRemoving(),t.isRemoved=!0;var i=t.$wrapper;i?i.remove():t.$item.remove();var a=t.id;delete e.items[a],delete e.filteredItems[a],delete e.unfilteredItems[a]}function s(e){return r(e,f.getValues(e.items))}function l(t,n,a){var r,o=t.options.idFunction;if(o){var l={};f.each(n,function(e,t){l[o(t)]=!0});var u=[];for(var d in t.items)void 0===l[d]&&u.push(d);r=i(t,u)}else r=s(t);var g=c(t,n,a);return e(t),r.length>0&&t.itemsRemovedEvent.fireNew(r),g}function c(e,i,a){var r=e.options,o=r.insertionFilter,s=[],l=[];f.each(i,function(n,i){!o(i)||a&&!a.call(i,i)||s.push(t(e,i,!0))});for(var c=0;c<s.length;c++){var u=s[c],d=u.listItem;u.isNewItem&&n(e,d),l.push(d)}return l}function u(e){var t=e.isEmpty();e.isEmptyFlag.setValue(t),e.$element.toggleClass("state-empty",t).toggleClass("state-non-empty",!t);var n=e.options.emptyListTemplate;void 0!==n&&(!t&&e.$emptyListElement&&(e.$emptyListElement.remove(),e.$emptyListElement=void 0),t&&!e.$emptyListElement&&(f.isFunction(n)&&(n=n()),"string"==typeof n?e.$emptyListElement=f(n):f.isPlainObject(n)?e.$emptyListElement=f.useTemplate(n):e.$emptyListElement=n,e.$emptyListElement.appendTo(e.$element)))}function d(e){e.itemsCount.setValue(f.count(e.filteredItems)),u(e),g(e),e.options.itemsChangedCallback(),e.itemsChangingBatch.whenFinished(function(){e.itemsChangedEvent.fireNew()},e.itemsChangedEvent.id)}function g(e){var t=e.getScrollingController();t&&(t.refresh(),e.scrollBar&&e.scrollBar.refresh())}function p(e,t){var n=t.getListFooter();n?e.insertBefore(n):e.appendTo(t.$element)}f.fn.makeItemsList=function(e){return new h(f(this),e)};var h=C.extend("ItemsList",{init:function(e,t){this._options=t=f.quickExtend({getTemplateItem:f.contextIdentity,itemAddedCallback:cs,itemRemovingCallback:cs,itemUpdatedCallback:cs,itemsChangedCallback:cs,scrollableOptions:!1,insertionFilter:us,insertionFunction:p,filteringBehaviour:At.HideItems},t),e.addClass("items-list");var n=this,i=O.create(!0),a={trackScrolling:!1,filteringBehaviour:t.filteringBehaviour,insertionFunction:t.insertionFunction},r=t.scrollableOptions!==!1;return r&&(n._scrollableController=e.scrollable(t.scrollableOptions)),f.quickExtend(n,{_activatedExtensions:{},_isScrollable:r,$element:e,data:a,id:f.weakID(),isEmptyFlag:i,itemsCount:_.createNumerical(0),itemsChangingBatch:Ae.create(),extensionActivated:x.create(),itemsRemovingEvent:x.create(),itemsRemovedEvent:x.create(),itemRemovingEvent:x.create(),itemAddedEvent:x.create(),itemsAddedEvent:x.create(),itemUpdatedEvent:x.create(),itemsChangedEvent:x.create(),boundCollectionChangedEvent:x.create(),options:t,items:{},filteredItems:{},unfilteredItems:{},isScrollable:r,filteringFunction:us,filteredItemsChangeEvent:x.create()}),t.items&&n.setItems(t.items),t.filteringFunction&&n.setFilter(t.filteringFunction),t.lastDisplayedItemClass&&n.trackLastDisplayedItem(function(e,n){n&&n.$item.removeClass(t.lastDisplayedItemClass),e&&e.$item.addClass(t.lastDisplayedItemClass)}),u(n),n},activateExtension:function(e){this._activatedExtensions[e]=!0,this.extensionActivated.fireNew(e)},isExtensionActivated:function(e){return!!this._activatedExtensions[e]},setFilteringBehaviour:function(e){var t=this,n=t.data;if(e!==n.filteringBehaviour&&(n.filteringBehaviour=e),e===At.HideItems)f.each(t.unfilteredItems,function(e,i){var a=i.$wrapper;a||(a=i.$item),a.toggleDisplayedState(!1),n.insertionFunction(a,t)});else{var i=f([]);f.each(t.unfilteredItems,function(e,t){var n=t.$wrapper;n||(n=t.$item),n.toggleDisplayedState(!0),i.pushElements(n)}),i.detach()}},setItemWrapper:function(e){var t=this;return t.itemWrapperTemplate=e,f.each(t.items,function(t,n){var i=n.$item,a=n.$wrapper;a||(i.wrap("<span></span>"),a=i.parent()),i.detach();var r=f.useTemplate(e);a.replaceWith(r);var o=f(".wrapped-item-container",r);o.length>0?i.appendTo(o):i.appendTo(r),r.toggleDisplayedState(!0),n.$wrapper||i.toggleDisplayedState(!0),r.toggleDisplayedState(n.isFiltered),n.$wrapper=r}),t},removeItemWrappers:function(){var e=this;f.each(e.items,function(e,t){var n=t.$item,i=t.$wrapper;i&&(i.replaceWith(n),t.$wrapper=void 0)})},getScrollingController:function(){var e=this;return e.connectedScrollable?e.connectedScrollable:e._scrollableController},initialize:function(){var e=this,t=e.$element,n=e._options,i=e._isScrollable;if(!e.initialized&&(e.initialized=!0,i)){if(n.$scrollbar){var a=n.$scrollbar.scrollBar(n.scrollbarOptions);a.connectToScrollable(t),e.scrollBar=a}g(e)}},connectScrollable:function(e){var t=this;return t.connectedScrollable=e,t},addListFooter:function(e){e=f.extend({footerClass:"block",initialize:cs},e);var t=this,n=t.$element;if(t.$listFooter)throw Error("Cannot add multiple footers to items list.");var i=e.createFooter;return i?t.$listFooter=i():t.$listFooter=f("<span class='items-list-footer'></span>").addClass(e.footerClass),t.$listFooter.appendTo(n),e.initialize(t.$listFooter,t),t},getListFooter:function(){return this.$listFooter},refreshScrolling:function(){g(this)},notifyItemUpdated:function(e,t){var n=this,i=n._options;i.itemUpdatedCallback.call(e,e,t),n.itemUpdatedEvent.fireNew(e)},isEmpty:function(){return 0===this.itemsCount.getValue()},getItemID:function(e){var t=this._options;return t.idFunction?t.idFunction(e):void 0},getListItem:function(e){var t=this,n=t._options;if("string"==typeof e||"number"==typeof e||"boolean"==typeof e)return t.items[e];if(e instanceof Bt)return e;if(!f.isPlainObject(e))return e.data("items-list-item");if(n.idFunction){var i=n.idFunction(e);return t.items[i]}},getItemByIndex:function(e,t){t=f.valueOrDefault(t,!1);var n,i=this;return n=t?i.$element.children(".state-displayed"):f(".items-list-"+i.id,i.$element),e>=n.length?void 0:f(n[e]).data("items-list-item")},setFilter:function(e){var t=this;return t.filteringFunction=e,t.refilter(),t},getFilteredItems:function(){return this.filteredItems},getFilteredListItems:function(){var e=this,t=e._options,n={};return f.each(e.filteredItems,function(e,i){n[t.idFunction(i.item)]=i.item}),n},getListItemsMap:function(){return this.items},getListItems:function(){var e=this,t=e._options,n={};return f.each(e.items,function(e,i){n[t.idFunction(i.item)]=i.item}),n},getDataItems:function(){return this.getListItems()},findItems:function(e){var t=this;e=f.valueOrDefault(e,us);var n=[];return f.each(t.items,function(t,i){e(i)&&n.push(i)}),n},findItem:function(e){return this.findItems(e)[0]},onButtonDown:function(e){var t=this;return t.onItemEvents("vmousedown",function(t,n){t.$item.is(".state-disabled")||(e(t,n),n.stopPropagation(),n.preventDefault())}),t},onMouseMove:function(e){var t=this;return t.onItemEvents("vmousemove",function(t,n){t.$item.is(".state-disabled")||(e(t,n),n.stopPropagation(),n.preventDefault())}),t},offMouseMove:function(){var e=this,t=e.$element;return t.off("vmousemove",".items-list-item"),e},onButtonClick:function(e){var t=this;return t.onItemEvents("vclick",function(t,n){t.$item.is(".state-disabled")||(e(t,n),n.stopPropagation(),n.preventDefault())}),t},onInnerButtonClick:function(e,t){var n=this;return n.onItemPartEvents(e,"click",function(e,n,i){e.is(".state-disabled")||(t(e,n,i),i.stopPropagation(),i.preventDefault())}),n},onItemEvents:function(e,t){var n=this,i=n.$element;return i.on(e,".items-list-item",function(e){var i=n.getListItem(f(this));void 0!==i&&i.itemsList!==n||t(i,e)}),n},onItemPartEvents:function(e,t,n){var i=this,a=i.$element;return a.on(t,e,function(e){var t=f(this),a=i.getListItem(t.closest(".items-list-item"));return a.itemsList===i?n(t,a,e):void 0}),i},onItemHover:function(e,t){return this.onItemEvents("mouseenter",e).onItemEvents("mouseleave",t)},refilter:function(){var t=this;t.filteredItems={},t.unfilteredItems={},e(t),d(t)},getItemsElements:function(){return this.$element.find(".items-list-"+this.id)},getFilteredItemsElements:function(){return this.getItemsElements().filter(".state-filtered")},getBoundCollection:function(){return this.boundObservableCollection},releaseBoundCollection:function(){var e=this,t=(e.data,e.boundObservableCollection);t&&(t.itemsAddedEvent.unbind(e.id),t.itemsUpdatedEvent.unbind(e.id),t.itemsRemovedEvent.unbind(e.id),e.clear())},setItems:function(e,t){var n=this,i=(n.data,n._options);n.itemsChangingBatch.start(),n.releaseBoundCollection();var a,r=e.isObservableCollection&&e.isObservableCollection();return r?(i.idFunction=e.getIDFunction(),e.updateBatch.startedEvent.bind(function(){n.itemsChangingBatch.start()},n.id),e.updateBatch.finishedEvent.bind(function(){n.itemsChangingBatch.finish()},n.id),e.itemsAddedEvent.bind(function(e){n.addItems(e)},n.id),e.itemsUpdatedEvent.bind(function(e){n.addItems(e)},n.id),e.itemsRemovedEvent.bind(function(e){n.removeItems(e)},n.id),a=l(n,e.getItemsValues(),t),n.boundObservableCollection=e,n.boundCollectionChangedEvent.fireNew()):a=l(n,e,t),n.itemsAddedEvent.fireNew(a),d(n),n.itemsChangingBatch.finish(),a},addItems:function(t,n){var i=this;i.itemsChangingBatch.start();var a=c(i,t,n);return e(i,a),d(i),i.itemsChangingBatch.finish(),i.itemsAddedEvent.fireNew(a),a},addItem:function(n){var i,a,r=this,o=r._options,s=o.insertionFilter;return s.call(n)&&(r.itemsChangingBatch.start(),a=t(r,n,!1),i=a.listItem,e(r,[i]),d(r),a.isNewItem&&r.itemsAddedEvent.fireNew([i]),r.itemsChangingBatch.finish()),i},removeItems:function(e){var t=this;t.itemsChangingBatch.start();var n=i(t,e);n.length>0&&(t.itemsRemovedEvent.fireNew(n),d(t),t.filteredItemsChangeEvent.fireNew()),t.itemsChangingBatch.finish()},removeItem:function(e){var t=this;t.itemsChangingBatch.start(),t.removeItems(f.asArray(e)),t.itemsChangingBatch.finish()},clear:function(){var e=this;e.itemsChangingBatch.start();var t=s(e);t.length>0&&(e.itemsRemovedEvent.fireNew(t),d(e)),e.itemsChangingBatch.finish()},trackLastDisplayedItem:function(e){var t,n=this,i=n.$element;n.itemsChangedEvent.bindAndExecute(function(){var a,r=i.children().last(".state-displayed");if(0===r.length)a=void 0;else if(r.hasClass("items-list-item"))a=r.data("items-list-item");else{var o=f(".items-list-"+n.id,r);a=o[o.length-1].data("items-list-item")}a!==t&&(e(a,t),t=a)})},trackElementsIndexes:function(){var e=this;return e.itemsChangedEvent.bindAndExecute(function(){e.getItemsElements().filter(":not(.state-hidden)").applyIndexesClasses()}),e},scrollToItem:function(e){var t=this,n=t.getScrollingController();if(n){var i=t.getListItem(e);if(i){var a=i.$item,r=n.$element,o=a.offset().top-r.offset().top,s=r.scrollTop();r.scrollTop(s+o)}}return t},bringToViewport:function(e){var t=this,n=t.getScrollingController();if(n){var i=t.getListItem(e);i&&n.bringToViewport(i.$item)}return t}});return h.addExtension=function(e,t){var n=t.initialization,i=t.methods;this.extendPrototype(f.mapDictionary(i,function(t,n){return function(i,a,r,o,s){if(!this.isExtensionActivated(e))throw Error('The method "{0}" requires the activation of extension "{1}"'.format(t,e));return this[n]=n,n.call(this,i,a,r,o,s)}})),this.extendPrototype(f.mapDictionary(n,function(t,n){return function(t,i,a,r,o){var s=n.call(this,t,i,a,r,o);return this.activateExtension(e),s}}))},h}();!function(){pe.extendConditionMethods({whenListIsEmpty:function(e){return this.whenFlagIsTrue(e.isEmptyFlag)}})}();var Lt={Ascending:1,Descending:2};!function(){function e(e){var t=e.orderingSupportOptions;e.orderingType===Lt.Ascending?e.orderedItems=f.getValues(e.items).orderBy(e.orderingValueSelector,e.comparer):e.orderedItems=f.getValues(e.items).orderByDesc(e.orderingValueSelector,e.comparer);for(var n=[],i=e.orderedItems,a=0;a<i.length;a++){var r=i[a];r.index!==a&&(r.index=a,n.push(r))}if(e.autoHtmlSortingEnabled){for(var o=f([]),a=0;a<i.length;a++){var s,l=i[a];s=l.$wrapper?l.$wrapper:l.$item,o.pushElements(s)}o.applyDOMOrder()}e.itemsReorderedEvent.fireNew();for(var a=0;a<n.length;a++){var r=n[a];t.itemIndexChangedCallback.call(r,r,r.index),t.notifyUpdateOnIndexChange&&e.notifyItemUpdated(r)}}Vt.addExtension("Ordering",{initialization:{addOrderingSupport:function(t){var n=this;return t=f.quickExtend({itemIndexChangedCallback:cs,orderingType:Lt.Ascending,orderingValueSelector:function(){return 0},notifyUpdateOnIndexChange:!1},t),f.quickExtend(n,{orderingSupportOptions:t,hasOrderingSupport:!0,comparer:t.comparer,orderingValueSelector:t.orderingValueSelector,orderingType:t.orderingType,orderedItems:[],autoHtmlSortingEnabled:!0,itemsReorderedEvent:x.create()}),n.itemsChangedEvent.bind(function(){e(n)}),e(n),n}},methods:{toggleAutoHtmlSorting:function(e){var t=this;t.autoHtmlSortingEnabled=e},setOrderingType:function(t){var n=this;n.orderingType!==t&&(n.orderingType=t,e(n))},reorder:function(){var t=this;e(t)}}})}(),function(){function e(e,t){e._isPostponed.setTrue(t)}Vt.addExtension("Layout",{initialization:{addLayoutSupport:function(t){var n=this;return f.quickExtend(n,{hasLayoutSupport:!0,layoutRecalculated:x.create(),_isPostponed:O.createConditionalNegative({valueChangeCallback:function(e){n._pendingLayoutUpdate&&!e&&n.recalculateLayout()}})}),t&&e(n),n}},methods:{postponeLayoutUpdate:function(t){var n=this;return e(n,t),n},unPostponeLayoutUpdate:function(e){var t=this;return t._isPostponed.setFalse(e),t},getLayout:function(){return this._currentLayout},setLayout:function(e){var t=this;e instanceof Mt||(e=f.quickExtend({recalculateOnItemsChange:!1,initialize:cs,release:cs,recalculateLayout:cs,isInitialized:!1},e));var n=t._currentLayout,i=t._eventsListeners;return n&&(n.release(t),n.isInitialized=!1),i&&i.disposeAll(),n=t._currentLayout=e,i=t._eventsListeners=x.createEventListenersGroup(),n&&(e.initialize(t),e.isInitialized=!0,e.recalculateOnItemsChange&&x.createEventListener(t.itemsChangedEvent,function(){t.recalculateLayout()}).activate().addToGroup(i),t.recalculateLayout()),t},recalculateLayout:function(){var e=this,t=e._currentLayout;return t&&(e._isPostponed.isTrue()?e._pendingLayoutUpdate=!0:(e._pendingLayoutUpdate=!1,t.recalculateLayout(e),e.layoutRecalculated.fireNew(),e.refreshScrolling())),e},releaseLayout:function(){this.setLayout(void 0)}}})}();var Mt=C.extend("ItemsListLayout",{init:function(){this.isInitialized=!1},recalculateOnItemsChange:!0,initialize:cs,release:cs,recalculateLayout:cs}),Ot={findItemElement:function(e){return e.find("> .hierarchy-item-content > .hierarchy-item-container > .items-list-item")},findChildrenContainer:function(e){return e.find("> .hierarchy-item-content > .hierarchy-children-container")},findDirectChildrenItemElements:function(e){return Ot.findItemElement(Ot.findChildrenContainer(e).find("> .hierarchy-item"))},setHierarchyLevel:function(e,t,n){void 0!==e.hierarchyLevel&&e.$wrapper.removeClass("hierarchy-level-"+e.hierarchyLevel),e.hierarchyLevel=t,e.$wrapper.addClass("hierarchy-level-"+e.hierarchyLevel),n===!0&&Ot.findDirectChildrenItemElements(e.$wrapper).each(function(){var e=f(this).data("items-list-item");Ot.setHierarchyLevel(e,t+1,!0)})}},zt=function(){function e(e){var t=e._itemsList;e._autoHtmlSortingEnabled=t.autoHtmlSortingEnabled,t.toggleAutoHtmlSorting(!1),t.itemsReorderedEvent.bind(function(){t.recalculateLayout()}).addToCollection(e._bindingsCollection)}function t(e,n,i,a,s,l){var c=a?r(a.$wrapper):e.$element;f.eachItem(i,function(i,r){var u=e.items[r];if(u){o(u,s),u.$wrapper.removeClass("hierarchy-has-children"),a?(u.hierarchyParent=a,a.$wrapper.addClass("hierarchy-has-children")):delete u.hierarchyParent;var d=u.$wrapper;d.appendTo(c);var g=n[r];g&&t(e,n,g,u,s+1,l),l(u)}})}function n(e){for(var t=f([]),n=0;n<e.length;n++)t.pushElements(e[n].$wrapper);t.applyDOMOrder()}function i(e,t){return f.grep(e,function(e){return f.oneOfValues(""+e.id,t)})}function a(e,t){var a=e._hierarchyCollection;n(i(t,a.getRootIds()));var r=a.getHierarchies();f.eachEntry(r,function(e,a){n(i(t,a))})}var r=(Ot.findItemElement,Ot.findChildrenContainer),o=Ot.setHierarchyLevel,s=Mt.extend("ItemsListHierarchyLayout",function(n){return{init:function(e){e=f.quickExtend({hierarchyLevelChange:cs},e),n.call(this),this._hierarchyCollection=e.hierarchyCollection,this._hierarchyLevelChange=e.hierarchyLevelChange},setHierarchyCollection:function(e){if(this.isInitialized)throw Error("can't change hierarchy when initialized");this._hierarchyCollection=e},initialize:function(t){var n=this._bindingsCollection=x.createBindingsCollection();this._itemsList=t,t.setItemWrapper({useTemplate:function(){return f('<div class="hierarchy-item"><div class="hierarchy-item-content"><div class="hierarchy-item-container wrapped-item-container"></div><div class="hierarchy-children-container"></div></div></div>')}});var i=this,a=this._hierarchyCollection;if(t.hasOrderingSupport)e(i);else{var o=!1;t.extensionActivated.bind(function(t){o||"Ordering"!==t||(o=!0,e(i))}).addToCollection(n)}t.itemRemovingEvent.bind(function(e){var t=r(e.$wrapper).children();t.detach()}).addToCollection(n),a.updateBatch.bind(function(){t.postponeLayoutUpdate("hierarchy update")},function(){t.unPostponeLayoutUpdate("hierarchy update")}).addToCollection(n),window.itemsList=t,this._hierarchyEventListener=x.createEventListener([a.hierarchyUpdateEvent],function(){t.recalculateLayout()}).activate()},recalculateLayout:function(e){var n=this._hierarchyCollection;t(e,n.getHierarchies(),n.getRootIds(),void 0,0,this._hierarchyLevelChange),a(this,e.hasOrderingSupport?e.orderedItems:f.getValues(e.items))},release:function(e){this._bindingsCollection.unbindAll(),this._hierarchyEventListener.deactivate(),e.removeItemWrappers(),e.hasOrderingSupport&&e.toggleAutoHtmlSorting(this._autoHtmlSortingEnabled)}}});return s.create=function(e){return new s(e)},s}();!function(){e.isRemoteCollection=function(t){return t?t.constructor===e:!1}}();var _t=function(){function e(e,t,n){var i=e._ids[t];if(i.parentId=n,void 0===n)e._rootHierarchy[t]=i;else{var a=e._ids[n];if(!a)throw Error("unsupported");a.children[t]=t}}function t(e,t){var n=e._ids[t],i=n.parentId;if(n.parentId=void 0,void 0===i)delete e._rootHierarchy[t];else{var a=e._ids[i].children;delete a[t]}}function n(n,i,a){var r=n._ids[i];if(!r)return!1;var o=r.parentId;return a!==o?(t(n,i),e(n,i,a),!0):!1}function i(e,t){t=f.valueOrDefault(t,{});var n=e.getHierarchies(),i=f.getKeys(n),a=f.getKeys(t);if(a=f.grep(a,function(e){return t[e]&&t[e].length>0}),i.length!==a.length)return!1;for(var r=0;r<i.length;r++){var o=i[r];if(!f.defaultArraySetsEqualityComparer(n[o],t[o]))return!1}return!0}function a(e,t,n){e.clear(),e.addIds(n),r(e,t)}function r(e,t){f.eachEntry(t,function(t,i){f.eachItem(i,function(i,a){n(e,a,t)})}),e.hierarchyUpdateEvent.fireNew()}function o(e,t,n,i){f.eachEntry(n.children,function(n){t.addIds(n,i),o(e,t,e._ids[n],n)})}var s=C.extend("HierarchyCollection",{init:function(e){e=f.quickExtend({},e),this.id=f.weakID(),this.hierarchyUpdateEvent=x.create(),this.updateBatch=Ae.create(),this._rootHierarchy={},this._ids={},e.hierarchies&&e.ids?a(this,e.hierarchies,e.ids):e.ids&&this.addIds(e.ids)},beginUpdate:function(){this.updateBatch.begin()},endUpdate:function(){this.updateBatch.end()},addIds:function(t,n){if(void 0!==t){this.updateBatch.begin(),t=f.asArray(t);var i=this;f.eachItem(t,function(t,a){i._ids[a]||(i._ids[a]={id:a,parentId:n,children:{}},e(i,a,n))}),this.updateBatch.end()}},setParent:function(e,t){this.updateBatch.begin(),n(this,e,t)&&this.hierarchyUpdateEvent.fireNew(),this.updateBatch.end()},getRootIds:function(e){e=e?e:us;var t=[];return f.eachEntry(this._rootHierarchy,function(n){e(n)&&t.push(n);
}),t},getRootCount:function(){return f.count(this._rootHierarchy)},getHierarchies:function(){var e={};return f.eachEntry(this._ids,function(t,n){var i=f.getKeys(n.children);i.length>0&&(e[t]=i)}),e},clear:function(){this._rootHierarchy={},this._ids={}},removeIds:function(e){if(void 0!==e){this.updateBatch.begin(),e=f.asArray(e);var n=this;f.eachItem(e,function(e,i){var a=n._ids[i];a&&(f.eachEntry(a.children,function(e){n.setParent(e,a.parentId)}),t(n,i),delete n._ids[i])}),this.updateBatch.end()}},extendHierarchies:function(e){this.updateBatch.begin(),r(this,e),this.updateBatch.end()},setHierarchies:function(e){i(this,e)||(this.updateBatch.begin(),a(this,e,f.getKeys(this._ids)),this.updateBatch.end())},updateHierarchy:function(e,t){i(this,e)&&f.defaultArraySetsEqualityComparer(t,f.getKeys(this._ids))||(this.updateBatch.begin(),a(this,e,t),this.updateBatch.end())},getIds:function(){return this._ids},hasHierarchy:function(){return f.count(this._ids)>f.count(this._rootHierarchy)},hasChildren:function(e){var t=this._ids[e];return t&&!f.isEmptyObject(t.children)},getChildrenIds:function(e){var t=this._ids[e];return t?f.getKeys(t.children):void 0},clone:function(){return new s({ids:f.getKeys(this._ids),hierarchies:this.getHierarchies()})},createSubHierarchy:function(e,t){t=f.valueOrDefault(t,!1);var n=this._ids[e];if(n){var i=new s;return t&&i.addIds(e),o(this,i,n,t?e:void 0),i}}});return s.create=function(e){return new s(e)},s}(),Nt={Desc:"desc",Asc:"asc"};!function(e){function t(e,t){return e-t}function n(e){return function(t,n){return 0-e(t,n)}}e.numbersComparer=t,e.stringsComparer=function(e,t){e.localeCompare(t)},e.datesComparer=function(e,t){return new Date(e).getTime()-new Date(t).getTime()},e.createFieldsComparer=function(n,i){i=e.extend({sortByField:"sortBy",sortingOrderField:"sortType",comparerRuleField:"comparer",comparersMap:{}},i);var a=i.sortByField,r=i.sortingOrderField,o=i.comparerRuleField,s=i.comparersMap;return function(i,l){for(var c=0;c<n.length;c++){var u=n[c],d=u[a],g=u[r]===Nt.Desc,f=e.valueOrDefaultArray(u[o],[s[d],t]),p=f(i[d],l[d]);if(0!==p)return g?-p:p}return 0}},e.createArrayComparer=function(e){return function(n,i){for(var a=0;a<n.length&&a<i.length;a++){var r=e(n[a],i[a]);if(0!==r)return r}return t(n.length,i.length)}},e.createPriorityComparer=function(n){for(var i={},a=n.length,r=0;a>r;r++)i[n[r]]=a-r;return function(n,a){var r=e.valueOrDefault(i[n],0),o=e.valueOrDefault(i[a],0);return t(r,o)}},e.arrayDefaultComparer=e.createArrayComparer(t),e.stringsComparer=function(e,t){if(e&&e){var n=e.toLowerCase(),i=t.toLowerCase();return i>n?-1:n>i?1:0}return e===t?0:e?1:-1},Array.prototype.orderByDesc=function(e,i){return void 0===i&&(i=t),this.orderBy(e,n(i))},e.mergeSorted=function(n,i,a,r){i=e.valueOrDefault(i,e.identity),a=e.valueOrDefault(a,t),r=e.valueOrDefault(r,e.identity);var o,s,l,c,u,d=[],g=[],f=[],p=0;for(o=0;o<n.length;o++){var h=n[o],m=[];for(s=0;s<h.length;s++)l=h[s],m.push({value:i.call(l,l,s),item:r.call(l,l,h)});f.push(m),h.length>0?(p++,g.push(0)):g.push(void 0)}for(;p>0;){for(c=void 0,u=void 0,o=0;o<g.length;o++){var v=g[o];void 0!==v&&(l=f[o][v],(void 0===u||a(l.value,u.value)<0)&&(u=l,c=o))}d.push(u.item),g[c]++,g[c]>=f[c].length&&(g[c]=void 0,p--)}return d},Array.prototype.orderBy=function(n,i){void 0===i&&(i=t),n=e.valueOrDefault(n,e.identity);var a,r=this;if(n===e.identity)r.sort(function(e,t){return i(e,t)});else{var o=[];for(a=0;a<r.length;a++){var s=r[a];o.push({item:s,value:n.call(s,s,a)})}for(o.sort(function(e,t){return i(e.value,t.value)}),a=0;a<r.length;a++)r[a]=o[a].item}return r},e.fn.orderBy=e.arrayFuncToJquery(Array.prototype.orderBy),e.fn.orderByDesc=e.arrayFuncToJquery(Array.prototype.orderByDesc),e.fn.applyDOMOrder=function(){for(var t=1;t<this.length;t++){var n=e(this[t]),i=n.prev();i[0]!==this[t-1]&&n.insertAfter(this[t-1])}return this},e.fn.applyChildrenSorting=function(e,t){for(var n=this,i=document.createDocumentFragment(),a=e.length,r=0;a>r;r++)i.appendChild(e[r]);return t?t(n,i):n.append(i),n}}(p);var Rt=fs(function(){Date.now||(Date.now=function(){return(new Date).getTime()});var e=function(){var t=/d{1,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|[LloSZ]|"[^"]*"|'[^']*'/g,n=/\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g,i=/[^-+\dA-Z]/g,a=function(e,t){for(e+="",t=t||2;e.length<t;)e="0"+e;return e};return function(r,o,s){var l=o,c=e;if(1!=arguments.length||"[object String]"!=Object.prototype.toString.call(r)||/\d/.test(r)||(l=r,r=void 0),r=r?new Date(r):new Date,isNaN(r))throw new SyntaxError("invalid date");l=(c.masks[l]||l||c.masks["default"])+"","UTC:"==l.slice(0,4)&&(l=l.slice(4),s=!0);var u=s?"getUTC":"get",d=r[u+"Date"](),g=r[u+"Day"](),f=r[u+"Month"](),p=r[u+"FullYear"](),h=r[u+"Hours"](),m=r[u+"Minutes"](),v=r[u+"Seconds"](),y=r[u+"Milliseconds"](),b=s?0:r.getTimezoneOffset(),C={d:d,dd:a(d),ddd:c.i18n.dayNames[g],dddd:c.i18n.dayNames[g+7],m:f+1,mm:a(f+1),mmm:c.i18n.monthNames[f],mmmm:c.i18n.monthNames[f+12],yy:(p+"").slice(2),yyyy:p,h:h%12||12,hh:a(h%12||12),H:h,HH:a(h),M:m,MM:a(m),s:v,ss:a(v),l:a(y,3),L:a(y>99?Math.round(y/10):y),t:12>h?"a":"p",tt:12>h?"am":"pm",T:12>h?"A":"P",TT:12>h?"AM":"PM",Z:s?"UTC":((r+"").match(n)||[""]).pop().replace(i,""),o:(b>0?"-":"+")+a(100*Math.floor(Math.abs(b)/60)+Math.abs(b)%60,4),S:["th","st","nd","rd"][d%10>3?0:(d%100-d%10!=10)*d%10]};return l.replace(t,function(e){return e in C?C[e]:e.slice(1,e.length-1)})}}();e.masks={"default":"ddd mmm dd yyyy HH:MM:ss",shortDate:"m/d/yy",mediumDate:"mmm d, yyyy",longDate:"mmmm d, yyyy",fullDate:"dddd, mmmm d, yyyy",shortTime:"h:MM TT",mediumTime:"h:MM:ss TT",longTime:"h:MM:ss TT Z",isoDate:"yyyy-mm-dd",isoTime:"HH:MM:ss",isoDateTime:"yyyy-mm-dd'T'HH:MM:ss",isoUtcDateTime:"UTC:yyyy-mm-dd'T'HH:MM:ss'Z'"},e.i18n={dayNames:["Sun","Mon","Tue","Wed","Thu","Fri","Sat","Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],monthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec","January","February","March","April","May","June","July","August","September","October","November","December"]},this.formatDateMillis=function(e,t,n){return Rt.formatDate(new Date(e),t,n)},this.formatDateString=function(e,t,n){return Rt.formatDate(new Date(e),t,n)},this.formatDate=function(t,n,i){return e(t,n,i)},this.getCurrentDateString=function(t,n){return e(new Date,t,n)},this.getDateStringMillis=function(e){return new Date(e).getTime()},this.formatLocalDate=function(e){var t=e||new Date,n=-t.getTimezoneOffset(),i=n>=0?"+":"-",a=function(e){var t=Math.abs(Math.floor(e));return(10>t?"0":"")+t};return t.getFullYear()+"-"+a(t.getMonth()+1)+"-"+a(t.getDate())+"T"+a(t.getHours())+":"+a(t.getMinutes())+":"+a(t.getSeconds())+i+a(n/60)+":"+a(n%60)},this.parseDateWithoutTimezone=function(e){if(e){var t=e.split(/[^0-9]/);if(t.length>=5){var n=new Date(t[0],t[1]-1,t[2],t[3],t[4],t[5]);return n}}return e}}),Ht=[{title:"12/31/2014 (mm/dd/yyyy)",format:"mm-dd-yyyy"},{title:"31/12/2014 (dd/mm/yyyy)",format:"dd-mm-yyyy"},{title:"2014/12/31 (yyyy/mm/dd)",format:"yyyy-mm-dd"},{title:"Dec 31, 2014 (mmm dd, yyyy)",format:"mmm dd-yyyy"},{title:"07/2012 (mm/yyyy)",format:"mm-yyyy"},{title:"Dec 2012 (mmm yyyy)",format:"mmm yyyy"},{title:"December 2012 (mmmm yyyy)",format:"mmmm yyyy"},{title:"December 31, 2014 (mmmm dd, yyyy)",format:"mmmm dd-yyyy"},{title:"31 December, 2014 (dd mmmm, yyyy)",format:"dd mmmm-yyyy"},{title:"Friday, September 28, 2014 (dddd, mmmm dd, yyyy)",format:"dddd-mmmm dd-yyyy"},{title:"12 (mm)",format:"mm"},{title:"Dec (mmm)",format:"mmm"},{title:"December (mmmm)",format:"mmmm"},{title:"31 (dd)",format:"dd"},{title:"Sun (ddd)",format:"ddd"},{title:"Sunday (dddd)",format:"dddd"},{title:"2014 (yyyy)",format:"yyyy"}],qt=[{title:"/",value:"/"},{title:".",value:"."},{title:"-",value:"-"},{title:",",value:", "}],Ut=[{title:"X - Y",format:"{0} - {1}"},{title:"From X to Y",format:"From {0} to {1}"},{title:"Start: X. End: Y",format:"Start: {0}. End: {1}"}];!function(e,t){function n(e,t,n){var i=e.children(),a=!1;e.empty();for(var o=0,s=i.length;s>o;o++){var l=i.eq(o);if(e.append(l),n&&e.append(n),r(e,t)){l.remove(),a=!0;break}n&&n.detach()}return a}function i(t,n,o,s,l){var c=!1,u="table, thead, tbody, tfoot, tr, col, colgroup, object, embed, param, ol, ul, dl, blockquote, select, optgroup, option, textarea, script, style",d="script, .dotdotdot-keep";return t.contents().detach().each(function(){var g=this,f=e(g);if(void 0===g||3==g.nodeType&&0==e.trim(g.data).length)return!0;if(f.is(d))t.append(f);else{if(c)return!0;t.append(f),l&&t[t.is(u)?"after":"append"](l),r(o,s)&&(c=3==g.nodeType?a(f,n,o,s,l):i(f,n,o,s,l),c||(f.detach(),c=!0)),c||l&&l.detach()}}),c}function a(t,n,i,s,u){var g=t[0];if(!g)return!1;var f=c(g),p=-1!==f.indexOf(" ")?" ":"\u3000",h="letter"==s.wrap?"":p,m=f.split(h),v=-1,y=-1,b=0,C=m.length-1;for(s.fallbackToLetter&&0==b&&0==C&&(h="",m=f.split(h),C=m.length-1);C>=b&&(0!=b||0!=C);){var I=Math.floor((b+C)/2);if(I==y)break;y=I,l(g,m.slice(0,y+1).join(h)+s.ellipsis),r(i,s)?(C=y,s.fallbackToLetter&&0==b&&0==C&&(h="",m=m[0].split(h),v=-1,y=-1,b=0,C=m.length-1)):(v=y,b=y)}if(-1==v||1==m.length&&0==m[0].length){var S=t.parent();if(S.contents().filter(function(){return 3===this.nodeType}).length<=1)return!0;t.detach();var P=u&&u.closest(S).length?u.length:0;S.contents().length>P?g=d(S.contents().eq(-1-P),n):(g=d(S,n,!0),P||S.detach()),g&&(f=o(c(g),s),l(g,f),r(i,s)&&a(e(g),n,i,s,u),P&&u&&e(g).parent().append(u))}else f=o(m.slice(0,v+1).join(h),s),l(g,f);return!0}function r(e,t){var n=e.innerHeight();return n>t.maxHeight&&n>t.minHeight}function o(t,n){for(;e.inArray(t.slice(-1),n.lastCharacter.remove)>-1;)t=t.slice(0,-1);return e.inArray(t.slice(-1),n.lastCharacter.noEllipsis)<0&&(t+=n.ellipsis),t}function s(e){return{width:e.innerWidth(),height:e.innerHeight()}}function l(e,t){e.innerText?e.innerText=t:e.nodeValue?e.nodeValue=t:e.textContent&&(e.textContent=t)}function c(e){return e.innerText?e.innerText:e.nodeValue?e.nodeValue:e.textContent?e.textContent:""}function u(e){do e=e.previousSibling;while(e&&1!==e.nodeType&&3!==e.nodeType);return e}function d(t,n,i){var a,r=t&&t[0];if(r){if(!i){if(3===r.nodeType)return r;if(e.trim(t.text()))return d(t.contents().last(),n)}for(a=u(r);!a;){if(t=t.parent(),t.is(n)||!t.length)return!1;a=u(t[0])}if(a)return d(e(a),n)}return!1}function g(t,n){return t?"string"==typeof t?(t=e(t,n),t.length?t:!1):t.jquery?t:!1:!1}function f(e){for(var t=e.innerHeight(),n=["paddingTop","paddingBottom"],i=0,a=n.length;a>i;i++){var r=parseInt(e.css(n[i]),10);isNaN(r)&&(r=0),t-=r}return t}if(!e.fn.dotdotdot){e.fn.dotdotdot=function(t){if(0==this.length)return e.fn.dotdotdot.debug('No element found for "'+this.selector+'".'),this;if(this.length>1)return this.each(function(){e(this).dotdotdot(t)});var a=this;a.data("dotdotdot")&&a.trigger("destroy.dot"),a.data("dotdotdot-style",a.attr("style")||""),a.css("word-wrap","break-word"),"nowrap"===a.css("white-space")&&a.css("white-space","normal"),a.bind_events=function(){return a.bind("update.dot",function(t,s){t.preventDefault(),t.stopPropagation(),e.isFunction(l.height)?l.maxHeight=l.height():l.maxHeight="number"==typeof l.height?l.height:f(a),l.maxHeight+=l.tolerance,e.isFunction(l.ignoredHeight)?l.minHeight=l.ignoredHeight():l.minHeight="number"==typeof l.ignoredHeight?l.ignoredHeight:0,void 0!==s&&(("string"==typeof s||s instanceof HTMLElement)&&(s=e("<div />").append(s).contents()),s instanceof e&&(o=s)),h=a.wrapInner('<div class="dotdotdot" />').children(),h.contents().detach().end().append(o.clone(!0)).find("br").replaceWith("<br />").end().css({height:"auto",width:"auto",border:"none",padding:0,margin:0});var u=!1,d=!1;return c.afterElement&&(u=c.afterElement.clone(!0),u.show(),c.afterElement.detach()),r(h,l)&&(d="children"==l.wrap?n(h,l,u):i(h,a,h,l,u)),h.replaceWith(h.contents()),h=null,e.isFunction(l.callback)&&l.callback.call(a[0],d,o),c.isTruncated=d,d}).bind("isTruncated.dot",function(e,t){return e.preventDefault(),e.stopPropagation(),"function"==typeof t&&t.call(a[0],c.isTruncated),c.isTruncated}).bind("originalContent.dot",function(e,t){return e.preventDefault(),e.stopPropagation(),"function"==typeof t&&t.call(a[0],o),o}).bind("destroy.dot",function(e){e.preventDefault(),e.stopPropagation(),a.unwatch().unbind_events().contents().detach().end().append(o).attr("style",a.data("dotdotdot-style")||"").data("dotdotdot",!1)}),a},a.unbind_events=function(){return a.unbind(".dot"),a},a.watch=function(){if(a.unwatch(),"window"==l.watch){var t=e(window),n=t.width(),i=t.height();t.bind("resize.dot"+c.dotId,function(){n==t.width()&&i==t.height()&&l.windowResizeFix||(n=t.width(),i=t.height(),d&&clearInterval(d),a.is(":visible")&&(d=setTimeout(function(){a.trigger("update.dot")},100)))})}else u=s(a),d=setInterval(function(){if(a.is(":visible")){var e=s(a);u.width==e.width&&u.height==e.height||(a.trigger("update.dot"),u=e)}},500);return a},a.unwatch=function(){return e(window).unbind("resize.dot"+c.dotId),d&&clearInterval(d),a};var o=a.contents(),l=e.extend(!0,{},e.fn.dotdotdot.defaults,t),c={},u={},d=null,h=null;return l.lastCharacter.remove instanceof Array||(l.lastCharacter.remove=e.fn.dotdotdot.defaultArrays.lastCharacter.remove),l.lastCharacter.noEllipsis instanceof Array||(l.lastCharacter.noEllipsis=e.fn.dotdotdot.defaultArrays.lastCharacter.noEllipsis),c.afterElement=g(l.after,a),c.isTruncated=!1,c.dotId=p++,a.data("dotdotdot",!0).bind_events().trigger("update.dot"),l.watch&&a.watch(),a},e.fn.dotdotdot.defaults={ellipsis:"...",wrap:"word",fallbackToLetter:!0,lastCharacter:{},tolerance:0,callback:null,after:null,height:null,watch:!1,windowResizeFix:!0},e.fn.dotdotdot.defaultArrays={lastCharacter:{remove:[" ","\u3000",",",";",".","!","?"],noEllipsis:[]}},e.fn.dotdotdot.debug=cs;var p=1,h=e.fn.html;e.fn.html=function(n){return n!=t&&!e.isFunction(n)&&this.data("dotdotdot")?this.trigger("update.dot",[n]):h.apply(this,arguments)};var m=e.fn.text;e.fn.text=function(n){return n!=t&&!e.isFunction(n)&&this.data("dotdotdot")?(n=e("<div />").text(n).html(),this.trigger("update.dot",[n])):m.apply(this,arguments)}}}(p),function(e){function t(){var e=document.createElement("div");e.style.cssText="position: absolute; width: 10000px; height: 200px; left: -10000px; top: -300px; font-size: 100px; visibility: hidden;",r=document.createElement("span"),r.innerHTML="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",e.appendChild(r),document.body.appendChild(e),d=!0}function n(e){return window.getComputedStyle&&getComputedStyle(e)||e.currentStyle}function i(e,t,n){var r,o,s,c;e.length?(r=e.pop(),o=r.toLowerCase(),a(r)?(l[o]=!0,i(e,t,n)):(c=0,s=setInterval(function(){c++,(c>=t.retriesLimit||a(r))&&(l[o]=!0,clearInterval(s),i(e,t,n))},t.pollFrequency))):n()}function a(e){var n,i=0;!d&&t();for(var a=0,o=s.length;o>a;a++){if(r.style.fontFamily='"'+e+'", '+s[a],n=r.offsetWidth,a&&n!==i)return!1;i=n}return!0}var r,o=/sans-serif|serif|monospace|cursive|fantasy|"|'/gi,s=["sans-serif","serif","monospace","cursive","fantasy"],l={},c=200,u=10,d=!1;e.fn.onFontsLoaded=function(t){function a(e){for(var t,n,i=0,a=e.length;a>i;i++)t=e[i].trim(),t&&(n=t.toLowerCase(),l[n]||f[n]||(g.push(t),f[n]=!0,p++))}var r,s,d=this,g=[],f={},p=0,h={pollFrequency:c,retriesLimit:u,callback:cs};if("function"==typeof t?h.callback=t:h=e.quickExtend(h,t),s=h.fonts||[],s&&"string"==typeof s&&(s=s.replace(o,"").split(",")),s.length)a(s);else for(var m=0,v=this.length;v>m;m++)r=this[m],s=n(r).fontFamily.replace(o,"").split(","),a(s);return p?i(g,h,function(){h.callback.call(d,d)}):h.callback.call(this,this),this},e.onFontsLoaded=function(t,n){var i={};"string"==typeof t||e.isArray(t)?("function"==typeof n?i.callback=n:i=n,i.fonts=t):i=t,e.fn.onFontsLoaded(i)},e.isFontLoaded=function(e){var t;"string"==typeof e&&(e=e.replace(o,"").split(","));for(var n=0,i=e.length;i>n;n++)if(t=e[n].trim(),t&&!l[t.toLowerCase()])return!1;return!0},e.getLoadedFonts=function(t){return t&&e.getKeys(l)||l}}(p),function(e){function t(e){var t=e.innerHTML.replace(o,"$1<"+r+">$2$3</"+r+">"),n=document.createElement("ellipsis");return{ellipsisHTML:t,ellipsisElement:n}}function n(e){return window.getComputedStyle&&getComputedStyle(e)||e.currentStyle}function i(t,i,o){var l,c,u,d,g,f,p,h,m=o.container,v=m||t,y=n(v),b=i.ellipsisElement,C=i.ellipsisHTML,I=o.maxLines||!1,S=0,P=1,w=0;if(t.innerHTML=C,t.className=t.className,b.innerHTML=o.endElement,c=t.getElementsByTagName(r),c.length)if(l=parseInt(y.maxHeight)||parseInt(y.height)||e(v).height(),g=c[0],f=c[c.length-1],u=Math.max(0,g.offsetTop),l+=a,m&&(l-=u),g.offsetHeight>l&&(g.innerHTML="<"+r+">"+g.innerHTML.split("").join("</"+r+"><"+r+">")+"</"+r+">",f=c[c.length-1],g=c[1]),g.offsetHeight>l)t.innerHTML="";else if(f.offsetTop-u+f.offsetHeight>l){for(p=0,h=c.length;h>p;p++)if(d=c[p],d.offsetTop-u>S){if(P++,I&&P>I||d.offsetTop-u+d.offsetHeight>l){w=p;do c[w].appendChild(b),w--;while(b.offsetTop-u>S);break}S=d.offsetTop-u}for(w+=2,p=w,h=c.length;h>p;p++)c[w].parentNode.removeChild(c[w])}t.innerHTML=t.innerHTML.replace(s,"")}var a=1,r="w",o=/(?:(<\/?.+?>)|(^|\s))([^<]\S*?(?=\s|<|$))/gim,s=RegExp("<\\/?"+r+">","gim");e.fn.ellipsis=function(a){var r,o,s;a=e.quickExtend({endElement:"&hellip;"},a);for(var l=0,c=this.length;c>l;l++)r=this[l],o=e.data(r,"__ellipsisData"),o&&!a.updateContent||(o=t(r),e.data(r,"__ellipsisData",o)),a.doNotRender||(s=n(r).fontFamily,i(r,o,a),e.isFontLoaded(s)||e(r).onFontsLoaded(function(){e(this).ellipsis(a)}));return this}}(p);var $t=function(){function e(e,t,n,i){i=f.valueOrDefault(i,f.referencesEqualityComparer);var a=e[t];if(void 0!==a){var r=f.findFirst(n,function(e,t){return!i(a[e],t)});if(void 0!==r)return a=f.quickExtend({},a),f.quickExtend(a,n),e[t]=a,a}}var t=C.extend("ObservableCollection",{init:function(e){e=f.quickExtend({idFunction:f.defaultIdFunction,comparerFunction:f.defaultEqualityComparer,attributes:{}},e),this._idFunction=e.idFunction,this._comparerFunction=e.comparerFunction,this._items={},this._attributes=e.attributes},lazyInitializationProperties:{id:f.weakID,itemsAddedEvent:x.create,itemsRemovedEvent:x.create,itemsUpdatedEvent:x.create,itemUpdatedEvent:x.create,itemAddedEvent:x.create,itemRemovingEvent:x.create,updateBatch:Ae.create},_count:0,getAttributes:function(){return this._attributes},supportsDelayedFetching:ds,isObservableCollection:us,setAttributes:function(e){f.quickExtend(this._attributes,e)},beginUpdate:function(){this.updateBatch.begin()},endUpdate:function(){this.updateBatch.end()},connectObservableCollection:function(e,t){return Me.connectObservableCollection(this,e,t)},disconnectObservableCollection:function(){Me.disconnectObservableCollection(this)},updateItemFields:function(t,n,i){var a,r=this,o=r._items;a="object"==typeof t?r._idFunction(t):t;var s=e(o,a,n,i);void 0!==s&&r.invalidateItems(s)},updateItemsFields:function(t,n){var i=this,a=i._items;i.beginUpdate();var r=[];for(var o in a){var s=e(a,o,t(o,a[o]),n);void 0!==s&&r.push(s)}r.length>0&&i.invalidateItems(r),i.endUpdate()},syncrhonize:function(e){var t,n=this,i=n._items;f.isPlainObject(e)?t=e:(e=f.asArray(e),t=f.makeSet(e,n._idFunction));var a=[];for(var r in i)void 0===t[r]&&a.push(r);n.beginUpdate(),n.remove(a),n.put(e),n.endUpdate()},invalidateAllItems:function(){this.invalidateItems(f.getValues(this._items))},invalidateItems:function(e){if(void 0!==e){var t=this;t.beginUpdate();var n=t._getLazyProperty("itemUpdatedEvent"),i=t._getLazyProperty("itemsUpdatedEvent"),a=n||i;if(a){e=f.asArray(e);var r=e.length;if(r>0){if(n)for(var o=0;r>o;o++)n.fireNew(e[o]);i&&i.fireNew(e)}}t.endUpdate()}},put:function(e){if(void 0!==e){e=f.asArray(e);var t,n,i,a,r,o=this,s=o._idFunction,l=o._items,c=0;o.beginUpdate();var u=o._getLazyProperty("itemUpdatedEvent"),d=o._getLazyProperty("itemsUpdatedEvent"),g=o._getLazyProperty("itemAddedEvent"),p=o._getLazyProperty("itemsAddedEvent"),h=g||p,m=u||d;if(h||m){if(m)var v=o._comparerFunction,y=[];if(h)var b=[];for(n=e.length,t=0;n>t;t++)i=e[t],a=s(i),r=void 0!==l[a],r?m&&(v(l[a],i)||y.push(i)):(h&&b.push(i),c++),l[a]=i;if(c>0){if(g)for(t=0;c>t;t++)g.fireNew(b[t]);o._count+=c,p&&p.fireNew(b)}if(m){var C=y.length;if(C>0){if(u)for(t=0;C>t;t++)u.fireNew(y[t]);d&&d.fireNew(y)}}}else{for(n=e.length,t=0;n>t;t++)i=e[t],a=s(i),void 0===l[a]&&c++,l[a]=i;c>0&&(o._count+=c)}return o.endUpdate(),o}},remove:function(e){var t=this,n=t._items;e=f.asArray(e),t.beginUpdate();var i=t._getLazyProperty("itemRemovingEvent"),a=t._getLazyProperty("itemsRemovedEvent");if(a)var r=[];for(var o=e.length,s=0,l=0;o>l;l++){var c=e[l],u=n[c];void 0!==u&&(i&&i.fireNew(u),delete n[c],s++,a&&r.push(c))}s>0&&(t._count-=s,a&&t.itemsRemovedEvent.fireNew(r)),t.endUpdate()},clear:function(){this.remove(f.getKeys(this._items))},getIDFunction:function(){return this._idFunction},getItems:function(){return this._items},getItemsLength:function(){return this._count},hasItems:function(){return this._count>0},getItemsValues:function(){return f.getValues(this._items)},getItem:function(e){return this._items[e]}});return t.create=function(e){return new t(e)},t}(),Wt=fs(function(){this.create=function(e){var t=1,n=0,i=e?1:0;return{informOperation:function(){i=t},isDirty:function(){return i>n},beginSaving:function(){t++;var e=i;return{finishSaving:function(){e>n&&(n=e)}}}}},this.beginSaving=function(e){for(var t=[],n=0;n<e.length;n++){var i=e[n];t.push(i.beginSaving())}return{finishSaving:function(){for(var e=0;e<t.length;e++)t[e].finishSaving()}}}}),jt=function(){function e(e,t){if(e.isPostponed())for(var n=0;n<t.length;n++){var i=t[n],a=e._idFunction(i),r=e._batchRemovedItemIds.removeField(a);void 0!==r?e._batchUpdatedItems.setField(a,i):e._batchAddedItems.setField(a,i)}else e.itemsAddedEvent.fireNew(t),e.itemsChangedEvent.fireNew({addedItems:t})}function t(e,t){if(e.isPostponed())for(var n=0;n<t.length;n++){var i=t[n],a=!0,r=e._batchAddedItems.removeField(i);void 0!==r?a=!1:e._batchUpdatedItems.removeField(i),a&&e._batchRemovedItemIds.setField(i,i)}else e.itemsRemovedEvent.fireNew(t),e.itemsChangedEvent.fireNew({removedItems:t})}function n(e,t){if(e.isPostponed())for(var n=0;n<t.length;n++){var i=t[n],a=e._idFunction(i),r=e._batchAddedItems.setFieldIfPresent(a,i);if(void 0===r){var o=e._batchUpdatedItems.setField(a,i);if(void 0===o){var s=e._batchRemovedItemIds.removeField(a);void 0!==s&&ee.warn("Notified item update after item removing.")}}}else e.itemsUpdatedEvent.fireNew(t),e.itemsChangedEvent.fireNew({updatedItems:t})}function i(e,t){e.isPostponed()||(e.itemUpdatedEvent.fireNew(t),e.itemChangedEvent.fireNew(e._idFunction(t)))}function a(e,t){e.isPostponed()||(e.itemAddedEvent.fireNew(t),e.itemChangedEvent.fireNew(e._idFunction(t)))}function r(e,t){if(!e.isPostponed()){var n=e._idFunction(t);e.itemRemovedEvent.fireNew(n),e.itemChangedEvent.fireNew(n)}}function o(e){e.allFetchedEvent.fireNew()}function s(e,t){if(!t){var n,i=!1,a={},r=e._batchAddedItems,o=e._batchRemovedItemIds,s=e._batchUpdatedItems;r.isEmpty()||(n=r.getValues(),r.clear(),a.addedItems=n,i=!0);var l;o.isEmpty()||(l=o.getValues(),o.clear(),a.removedItems=l,i=!0);var c;if(s.isEmpty()||(c=s.getValues(),s.clear(),a.updatedItems=c,i=!0),i){e.updateBatch.start(),n&&e.itemsAddedEvent.fireNew(n),l&&e.itemsRemovedEvent.fireNew(l),c&&e.itemsUpdatedEvent.fireNew(c),e.itemsChangedEvent.fireNew(a);var u=e._idFunction,d=e.itemChangedEvent;c&&f.eachItem(c,function(t,n){e.itemUpdatedEvent.fireNew(n),d.fireNew(u(n))}),n&&f.eachItem(n,function(t,n){e.itemAddedEvent.fireNew(n),d.fireNew(u(n))}),l&&f.eachItem(l,function(t,n){e.itemRemovedEvent.fireNew(n),d.fireNew(n)}),e.updateBatch.finish()}}}var l=C.extend("CollectionObserver",{init:function(l,c,u){u=f.quickExtend({},u);var d=u.unionWithItems;c=f.valueOrDefault(c,!1);var g=this,p=l.getIDFunction(),h=l.supportsDelayedFetching(),m=x.createBindingsCollection(),v=O.createConditionalNegative({valueChangeCallback:function(e){s(g,e)}});c&&v.setTrue(),g._observableCollection=l,g._supportDelayedFetching=h,g._isPostponingUpdatesFlag=v,g._bindingsCollection=m,g._idFunction=p,g._batchAddedItems=k.create(),g._batchRemovedItemIds=k.create(),g._batchUpdatedItems=k.create(),g.itemsChangedEvent=x.create(),g.itemChangedEvent=x.create(),g.itemsAddedEvent=x.create(),g.itemAddedEvent=x.create(),g.itemsRemovedEvent=x.create(),g.itemRemovedEvent=x.create(),g.itemsUpdatedEvent=x.create(),g.itemUpdatedEvent=x.create(),g.allFetchedEvent=x.create(),g.updateBatch=Ae.create(),d&&(g._unionItemsSet=f.makeSet(d,p),g._unionWithItems=d),m.add(l.updateBatch.bind(function(){v.setTrue("CollectionUpdate")},function(){v.setFalse("CollectionUpdate")})),m.add(l.itemsAddedEvent.bind(f.firstArgProxy(e,g))),m.add(l.itemsRemovedEvent.bind(f.firstArgProxy(t,g))),m.add(l.itemsUpdatedEvent.bind(f.firstArgProxy(n,g))),m.add(l.itemUpdatedEvent.bind(f.firstArgProxy(i,g))),m.add(l.itemAddedEvent.bind(f.firstArgProxy(a,g))),m.add(l.itemRemovingEvent.bind(f.firstArgProxy(r,g))),h&&m.add(l.allFetchedEvent.bind(f.firstArgProxy(o,g)))},_unionItemsSet:void 0,_unionWithItems:void 0,getObservableCollection:function(){return this._observableCollection},supportsDelayedFetching:function(){return this._supportDelayedFetching},isObservableCollection:us,isPostponed:function(){return this._isPostponingUpdatesFlag.isTrue()},postponeUpdates:function(){var e=this._isPostponingUpdatesFlag,t=e.isTrue();return e.setTrue(),t},unPostponeUpdates:function(){this._isPostponingUpdatesFlag.setFalse()},release:function(){this._bindingsCollection.unbindAll()},getIDFunction:function(){return this._idFunction},hasMore:function(){return this.supportsDelayedFetching()?this.getObservableCollection().hasMore():!1},hasFetchedOnce:function(){return this.supportsDelayedFetching()?this.getObservableCollection().hasFetchedOnce():!0},fetchMore:function(e,t){t=f.valueOrDefault(t,cs),this.supportsDelayedFetching()?this.getObservableCollection().fetchMore(e,t):t()},getItemsLength:function(){return this.getObservableCollection().getItemsLength()},fetchTo:function(e,t){t=f.valueOrDefault(t,cs),this.supportsDelayedFetching()?this.getObservableCollection().fetchTo(e,t):t()},fetchAll:function(e){e=f.valueOrDefault(e,cs),this.supportsDelayedFetching()?this.getObservableCollection().fetchAll(e):e()},getItem:function(e){return this._observableCollection.getItem(e)},getItems:function(){var e=this._observableCollection.getItems(),t=this._unionItemsSet;return t?f.quickExtend({},t,e):e},hasItems:function(){return this._observableCollection.hasItems()},getItemsValues:function(){var e=this._observableCollection.getItemsValues(),t=this._unionWithItems;return t?t.concat(e):e}});return l.create=function(e,t,n){return new l(e,t,n)},pe.extendConditionMethods({whenCollectionItemsCount:function(e,t){var n=l.create(e),i=this._addCondition(function(e){e.reportState(t(n.getItemsLength()))});return i.associateStateListener([e.itemsAddedEvent,e.itemsRemovedEvent]),this},whenCollectionIsNotEmpty:function(e){return this.whenCollectionItemsCount(e,function(e){return e>0})},whenCollectionIsEmpty:function(e){return this.whenCollectionItemsCount(e,function(e){return 0===e})}}),l}(),Gt={Red:0,Green:1,Blue:2,Hue:3,Saturation:4,Brightness:5,Opacity:6};!function(e){function t(e){return void 0!==e&&"rgb()"!==e?e:"rgb(0, 0, 0)"}function n(e){switch(e){case Gt.Red:return 0;case Gt.Green:return 1;case Gt.Blue:return 2;case Gt.Hue:return 0;case Gt.Saturation:return 1;case Gt.Brightness:return 2;case Gt.Opacity:return 3}}e.calculateForegroundColor=function(t){if(!t||e.isGradient(t))return e.Color("black");var n=e.Color(t).toRGB();return.299*n[0]+.587*n[1]+.114*n[2]>150?e.Color("black"):e.Color("white")},e.generateHSLSwatch=function(){for(var t=[],n=["red","blue","green","yellow","orange","purple","indigo","black"],i=0;i<n.length;i++)for(var a=e.Color(n[i]),r=.1;.9>=r;r+=.1){var o=a.toHSL().modify([null,null,r]);t.push(o)}return t},e.calculateMeanColor=function(t,n,i,a,r){return e.Color([Math.floor(e.calculateMeanValue(t,n,i,a[0],r[0])),Math.floor(e.calculateMeanValue(t,n,i,a[1],r[1])),Math.floor(e.calculateMeanValue(t,n,i,a[2],r[2])),e.calculateMeanValue(t,n,i,e.valueOrDefault(a[3],1),e.valueOrDefault(r[3],1))])},e.recolor=function(t,n,i,a){function r(t){var r=e.Color(t).toHSL(),o=r[0],s=r[1],l=r[2],c=r.getAlpha();return 0!=n&&(o=e.modulo(Math.round(360*o)+n,360)/360),i>0?s+=(1-s)*(i/100):0>i&&(s-=s*(Math.abs(i)/100)),a>0?l+=(1-l)*(a/100):0>a&&(l-=l*(Math.abs(a)/100)),e.Color([o,s,l,c],"HSL").toCSS()}if(e.assertRange(n,-180,180),e.assertRange(i,-100,100),e.assertRange(a,-100,100),e.isGradient(t)){var o=t.gradient;return{gradient:{colorStops:e.map(o.colorStops,function(e){return{location:e.location,value:r(e.value)}}),opacityStops:e.map(o.opacityStops,function(e){return{location:e.location,value:e.value}})},orientation:t.orientation}}return r(t)},e.colorsEqualityComparer=function(t,n){return e.colorsEqual(t,n)},e.colorsEqual=function(n,i,a){if(a=e.valueOrDefault(a,!0),n&&i){n=t(n),i=t(i);var r=e.Color(n).toRGB(),o=e.Color(i).toRGB(),s=e.valueOrDefault(r[3],1),l=e.valueOrDefault(o[3],1);return r[0]===o[0]&&r[1]===o[1]&&r[2]===o[2]&&(!a||s===l)}return n===i},e.getCoordinateValue=function(t,i){e.isRGBCoordinate(i)&&"RGB"!==t.space?t=e.Color(t).toRGB():e.isHSLCoordinate(i)&&"HSL"!==t.space&&(t=e.Color(t).toHSL());var a=n(i),r=t[a];return void 0===r&&i===Gt.Opacity?1:r},e.getCoordinateDelta=function(t,n,i){return e.getCoordinateValue(t,i)-e.getCoordinateValue(n,i)},e.colorsSimilarExceptCoordinate=function(t,i,a){if(t&&i){"string"==typeof t&&(t=e.Color(t)),"string"==typeof i&&(i=e.Color(i)),t=e.getRelevantCoordinates(t,a),i=e.getRelevantCoordinates(i,a);for(var r=n(a),o=0;o<t.length;o++)if(o!==r&&t[o]!==i[o])return!1;return!0}return t===i},e.isRGBCoordinate=function(e){return e===Gt.Red||e===Gt.Green||e===Gt.Blue},e.isHSLCoordinate=function(e){return e===Gt.Hue||e===Gt.Saturation||e===Gt.Brightness},e.adjustCoordinate=function(t,n,i){return void 0===i?t:e.modifyCoordinate(t,n,e.getCoordinateValue(t,n)+i)},e.modifyCoordinate=function(t,i,a){if(t=e.Color(t),i===Gt.Opacity)return t.setAlpha(a);var r=[null,null,null];return e.isRGBCoordinate(i)?(t=t.toRGB(),a=Math.max(0,Math.min(255,Math.round(a)))):e.isHSLCoordinate(i)&&(t=t.toHSL(),a=Math.max(0,Math.min(1,a))),r[n(i)]=a,t.modify(r)},e.getRelevantCoordinates=function(t,n){return t=e.Color(t),n===Gt.Opacity||e.isRGBCoordinate(n)?t.toRGB():e.isHSLCoordinate(n)?t.toHSL():void 0},e.getCoordinateMaxValue=function(e){switch(e){case Gt.Red:case Gt.Green:case Gt.Blue:return 256;case Gt.Hue:case Gt.Saturation:case Gt.Brightness:case Gt.Opacity:return 1}},e.getRGBA=function(t){var n;if(t&&t.constructor==Array&&3==t.length)return t;if(n=/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/.exec(t))return[parseInt(n[1],10),parseInt(n[2],10),parseInt(n[3],10),1];if(n=/rgba\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*(1|0|0\.[0-9]*)\s*\)/.exec(t))return[parseInt(n[1],10),parseInt(n[2],10),parseInt(n[3],10),parseFloat(n[4])];if(n=/rgb\(\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*\)/.exec(t))return[2.55*parseFloat(n[1]),2.55*parseFloat(n[2]),2.55*parseFloat(n[3]),1];if(n=/#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/.exec(t))return[parseInt(n[1],16),parseInt(n[2],16),parseInt(n[3],16),1];if(n=/#([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])/.exec(t))return[parseInt(n[1]+n[1],16),parseInt(n[2]+n[2],16),parseInt(n[3]+n[3],16),1];if(n=/rgba\(0, 0, 0, 0\)/.exec(t))return i.transparent;var a=i[e.trim(t).toLowerCase()];return a?a.concat([1]):i.transparent};var i={aqua:[0,255,255],azure:[240,255,255],beige:[245,245,220],black:[0,0,0],blue:[0,0,255],brown:[165,42,42],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgrey:[169,169,169],darkgreen:[0,100,0],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkviolet:[148,0,211],fuchsia:[255,0,255],gold:[255,215,0],
green:[0,128,0],indigo:[75,0,130],khaki:[240,230,140],lightblue:[173,216,230],lightcyan:[224,255,255],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightyellow:[255,255,224],lime:[0,255,0],magenta:[255,0,255],maroon:[128,0,0],navy:[0,0,128],olive:[128,128,0],orange:[255,165,0],pink:[255,192,203],purple:[128,0,128],violet:[128,0,128],red:[255,0,0],silver:[192,192,192],white:[255,255,255],yellow:[255,255,0],transparent:[255,255,255,0]}}(p);var Xt={FillHorizontally:1,FillVertically:2},Yt=fs(function(){function e(e,t){var n={properties:f.extend({centerX:0,centerY:0,radiusX:0,radiusY:0},t),drawShape:function(t){var i,a,r,o,s=n.properties;n.isLayoutActive(Xt.FillHorizontally)?(i=e.size.width-s.lineWidth,r=s.lineWidth/2):(i=2*s.radiusX,r=s.centerX-i/2),n.isLayoutActive(Xt.FillVertically)?(a=e.size.height-s.lineWidth,o=s.lineWidth/2):(a=2*s.radiusY,o=s.centerY-a/2);var l=.5522848,c=i/2*l,u=a/2*l,d=r+i,g=o+a,f=r+i/2,p=o+a/2;t.beginPath(),t.moveTo(r,p),t.bezierCurveTo(r,p-u,f-c,o,f,o),t.bezierCurveTo(f+c,o,d,p-u,d,p),t.bezierCurveTo(d,p+u,f+c,g,f,g),t.bezierCurveTo(f-c,g,r,p+u,r,p),t.closePath()}};return l(n,e,t)}function t(e,t){var n={properties:f.extend({width:0,height:0,x:0,y:0,angle:0},t),drawShape:function(t){var i,a,r,o,s,l=n.properties,c=l.lineWidth/2,u=l.width,d=l.height,g=l.x,f=l.y;if(n.isLayoutActive(Xt.FillHorizontally)&&(u=e.size.width,g=0),n.isLayoutActive(Xt.FillVertically)&&(d=e.size.height,f=0),t.beginPath(),45===l.angle||135===l.angle||225===l.angle||315===l.angle){if(c>0){i=Math.sqrt(Math.pow(d,2)+Math.pow(u,2)),a=180*Math.asin(u/i)/Math.PI,r=90-a,o=c/Math.sin(a*Math.PI/180)+Math.sin(r*Math.PI/180)*c/Math.cos(r*Math.PI/180),d-=o+c;var p=d/Math.cos(a*Math.PI/180)*Math.sin(a*Math.PI/180);s=u-p-c,u=p,g=Math.round(g),f=Math.round(f),u=Math.round(u),d=Math.round(d)}switch(l.angle){case 45:c>0&&(g+=c,f+=o),t.moveTo(g,f),t.lineTo(g,f+d),t.lineTo(g+u,f+d);break;case 135:c>0&&(g+=c,f+=c),t.moveTo(g,f),t.lineTo(g,f+d),t.lineTo(g+u,f);break;case 225:c>0&&(u=p,g+=s,f+=c),t.moveTo(g,f),t.lineTo(g+u,f),t.lineTo(g+u,f+d);break;case 315:c>0&&(g+=s,f+=o),t.moveTo(g,f+d),t.lineTo(g+u,f+d),t.lineTo(g+u,f)}}else switch(l.angle){case 90:c>0&&(i=Math.sqrt(Math.pow(d/2,2)+Math.pow(u,2)),a=180*Math.asin(u/i)/Math.PI,r=180-2*a,o=c/Math.sin(a*Math.PI/180)+Math.sin(r/2*Math.PI/180)*c/Math.cos(r/2*Math.PI/180),d-=2*o,s=c/Math.sin(r/2*Math.PI/180),u-=c+s,g+=c,f+=o,g=Math.round(g),f=Math.round(f),u=Math.round(u),d=Math.round(d)),t.moveTo(g,f),t.lineTo(g,f+d),t.lineTo(g+u,f+Math.round(d/2));break;case 180:c>0&&(i=Math.sqrt(Math.pow(u/2,2)+Math.pow(d,2)),a=180*Math.asin(d/i)/Math.PI,r=180-2*a,s=c/Math.sin(a*Math.PI/180)+Math.sin(r/2*Math.PI/180)*c/Math.cos(r/2*Math.PI/180),u-=2*s,o=c/Math.sin(r/2*Math.PI/180),d-=c+o,g=Math.round(g),f=Math.round(f),u=Math.round(u),d=Math.round(d),g+=s,f+=c),t.moveTo(g,f),t.lineTo(g+u,f),t.lineTo(g+Math.round(u/2),f+d);break;case 270:c>0&&(i=Math.sqrt(Math.pow(d/2,2)+Math.pow(u,2)),a=180*Math.asin(u/i)/Math.PI,r=180-2*a,o=c/Math.sin(a*Math.PI/180)+Math.sin(r/2*Math.PI/180)*c/Math.cos(r/2*Math.PI/180),d-=2*o,s=c/Math.sin(r/2*Math.PI/180),u-=c+s,g+=s,f+=o,g=Math.round(g),f=Math.round(f),u=Math.round(u),d=Math.round(d)),t.moveTo(g+u,f),t.lineTo(g+u,f+d),t.lineTo(g,f+Math.round(d/2));break;default:c>0&&(i=Math.sqrt(Math.pow(u/2,2)+Math.pow(d,2)),a=180*Math.asin(d/i)/Math.PI,r=180-2*a,s=c/Math.sin(a*Math.PI/180)+Math.sin(r/2*Math.PI/180)*c/Math.cos(r/2*Math.PI/180),u-=2*s,o=c/Math.sin(r/2*Math.PI/180),d-=c+o,g+=s,f+=o,g=Math.round(g),f=Math.round(f),u=Math.round(u),d=Math.round(d)),t.moveTo(g,f+d),t.lineTo(g+u,f+d),t.lineTo(g+Math.round(u/2),f)}t.closePath()}};return l(n,e,t)}function n(e,t){var n={properties:f.extend({width:300,height:300,points:5,angle:40,lineWidth:0},t),drawShape:function(t){var i=n.properties,a=i.width,r=i.height,o=a/2,s=r/2,l=i.angle/100,c=i.points,g=i.lineWidth/2;n.isLayoutActive(Xt.FillHorizontally)&&(a=e.size.width,o=a/2),n.isLayoutActive(Xt.FillVertically)&&(r=e.size.height,s=r/2);var f=Math.min(r,a),p=Math.floor(f/2),h=0,m=r-d(u(c,p,f)),v=p-g*(c/2);g>0&&(1>=v?(g=1,t.fillStyle=i.strokeColor,t.lineWidth=g):p=v),c%2!==0&&11>c&&(h=m+g/c),t.save(),t.beginPath(),t.translate(o,s+h),t.moveTo(0,0-p);for(var y=0;c>y;y++)t.rotate(Math.PI/c),t.lineTo(0,0-p*l),t.rotate(Math.PI/c),t.lineTo(0,0-p);t.rotate(Math.PI/c),t.lineTo(0,0-p*l),t.closePath(),t.restore()}};return l(n,e,t)}function i(e,t){var n={properties:f.extend({lineWidth:0,width:300,height:300,angles:6,x:0,y:0},t),drawShape:function(t){var i=n.properties,a=i.width,r=i.height,o=a/2,s=r/2,l=i.angles,c=i.lineWidth/2;n.isLayoutActive(Xt.FillHorizontally)&&(a=e.size.width,o=a/2),n.isLayoutActive(Xt.FillVertically)&&(r=e.size.height,s=r/2);var g=Math.min(r,a),f=g/2,p=0;if(c>0){var h=f-c*(l/(.9*l));1>=h?(c=h+c,f/=.4*l,t.lineWidth=c):(f=h,l%2!==0&&(p=g-d(u(l,f,g))-c))}t.save(),t.beginPath(),t.translate(o,s+p),t.moveTo(0,0-f);for(var m=0;l>m;m++)t.rotate(2*(Math.PI/l)),t.lineTo(0,0-f);t.closePath(),t.restore()}};return l(n,e,t)}function a(e,t){var n={properties:f.extend({lineWidth:0,width:600,height:300,topSize:50,baseOrientation:0,x:0,y:0},t),drawShape:function(t){var i,a,r,o,s,l,c=n.properties,u=c.width,d=c.height,g=c.topSize,f=c.lineWidth/2,p=c.baseOrientation,h=0,m=0;switch(n.isLayoutActive(Xt.FillHorizontally)&&(u=e.size.width),n.isLayoutActive(Xt.FillVertically)&&(d=e.size.height),t.beginPath(),p){case 0:i=(u-u/100*g)/2,f>0&&(a=Math.sqrt(Math.pow(i,2)+Math.pow(d,2)),r=180*Math.asin(d/a)/Math.PI,o=180-2*r,l=f/Math.sin(r*Math.PI/180)+Math.sin(o/2*Math.PI/180)*f/Math.cos(o/2*Math.PI/180),u-=l,d-=f,h+=l,m+=f,h=Math.round(h),m=Math.round(m),u=Math.round(u),d=Math.round(d)),t.moveTo(h,d),t.lineTo(h+i,m),t.lineTo(u-i,m),t.lineTo(u,d);break;case 90:i=(d-d/100*g)/2,f>0&&(a=Math.sqrt(Math.pow(i,2)+Math.pow(u,2)),r=180*Math.asin(u/a)/Math.PI,o=180-2*r,s=f/Math.sin(r*Math.PI/180)+Math.sin(o/2*Math.PI/180)*f/Math.cos(o/2*Math.PI/180),u-=f,d-=s,h+=f,m+=s,h=Math.round(h),m=Math.round(m),u=Math.round(u),d=Math.round(d)),t.moveTo(h,m),t.lineTo(u,m+i),t.lineTo(u,d-i),t.lineTo(h,d);break;case 180:i=(u-u/100*g)/2,f>0&&(a=Math.sqrt(Math.pow(i,2)+Math.pow(d,2)),r=180*Math.asin(d/a)/Math.PI,o=180-2*r,l=f/Math.sin(r*Math.PI/180)+Math.sin(o/2*Math.PI/180)*f/Math.cos(o/2*Math.PI/180),u-=l,d-=f,h+=l,m+=f,h=Math.round(h),m=Math.round(m),u=Math.round(u),d=Math.round(d)),t.moveTo(u,m),t.lineTo(u-i,d),t.lineTo(h+i,d),t.lineTo(h,m);break;case 270:i=(d-d/100*g)/2,f>0&&(a=Math.sqrt(Math.pow(i,2)+Math.pow(u,2)),r=180*Math.asin(u/a)/Math.PI,o=180-2*r,s=f/Math.sin(r*Math.PI/180)+Math.sin(o/2*Math.PI/180)*f/Math.cos(o/2*Math.PI/180),u-=f,d-=s,h+=f,m+=s,h=Math.round(h),m=Math.round(m),u=Math.round(u),d=Math.round(d)),t.moveTo(u,d),t.lineTo(h,d-i),t.lineTo(h,m+i),t.lineTo(u,m)}t.closePath()}};return l(n,e,t)}function r(e,t){var n={properties:f.extend({lineWidth:0,width:300,height:300,gapSize:30,slantDirection:"right",x:0,y:0},t),drawShape:function(t){var i,a,r,o,s,l,c=n.properties,u=c.width,d=c.height,g=c.gapSize,f=c.lineWidth/2,p=c.slantDirection,h=0,m=0;switch(n.isLayoutActive(Xt.FillHorizontally)&&(u=e.size.width),n.isLayoutActive(Xt.FillVertically)&&(d=e.size.height),t.beginPath(),p){case"right":i=u/100*g,f>0&&(a=Math.sqrt(Math.pow(i,2)+Math.pow(d,2)),r=180*Math.asin(d/a)/Math.PI,o=180-2*r,l=f/Math.sin(r*Math.PI/180)+Math.sin(o/2*Math.PI/180)*f/Math.cos(o/2*Math.PI/180),u-=l,d-=f,h+=l,m+=f,h=Math.round(h),m=Math.round(m),u=Math.round(u),d=Math.round(d)),t.moveTo(h,d),t.lineTo(h+i,m),t.lineTo(u,m),t.lineTo(u-i,d);break;case"down":i=d/100*g,f>0&&(a=Math.sqrt(Math.pow(i,2)+Math.pow(u,2)),r=180*Math.asin(u/a)/Math.PI,o=180-2*r,s=f/Math.sin(r*Math.PI/180)+Math.sin(o/2*Math.PI/180)*f/Math.cos(o/2*Math.PI/180),u-=f,d-=s,h+=f,m+=s,h=Math.round(h),m=Math.round(m),u=Math.round(u),d=Math.round(d)),t.moveTo(h,m),t.lineTo(u,m+i),t.lineTo(u,d),t.lineTo(h,d-i);break;case"left":i=u/100*g,f>0&&(a=Math.sqrt(Math.pow(i,2)+Math.pow(d,2)),r=180*Math.asin(d/a)/Math.PI,o=180-2*r,l=f/Math.sin(r*Math.PI/180)+Math.sin(o/2*Math.PI/180)*f/Math.cos(o/2*Math.PI/180),u-=l,d-=f,h+=l,m+=f,h=Math.round(h),m=Math.round(m),u=Math.round(u),d=Math.round(d)),t.moveTo(h,m),t.lineTo(u-i,m),t.lineTo(u,d),t.lineTo(h+i,d);break;case"up":i=d/100*g,f>0&&(a=Math.sqrt(Math.pow(i,2)+Math.pow(u,2)),r=180*Math.asin(u/a)/Math.PI,o=180-2*r,s=f/Math.sin(r*Math.PI/180)+Math.sin(o/2*Math.PI/180)*f/Math.cos(o/2*Math.PI/180),u-=f,d-=s,h+=f,m+=s,h=Math.round(h),m=Math.round(m),u=Math.round(u),d=Math.round(d)),t.moveTo(h,d),t.lineTo(h,m+i),t.lineTo(u,m),t.lineTo(u,d-i)}t.closePath()}};return l(n,e,t)}function o(e,t){var n={properties:f.extend({lineWidth:0,width:400,height:200,sweepAngle:90,baseThicknessPercent:40,baseLengthPercent:35,arrowDirection:0},t),drawShape:function(t){var i,a,r,o,s,l,c,u,d=n.properties,g=d.width,f=d.height,p=d.sweepAngle,h=d.arrowDirection,m=d.baseThicknessPercent,v=d.baseLengthPercent,y=d.lineWidth/2,b=0,C=0;switch(n.isLayoutActive(Xt.FillHorizontally)&&(g=e.size.width),n.isLayoutActive(Xt.FillVertically)&&(f=e.size.height),t.beginPath(),h){case 0:i=f/100*m,a=g/100*v,b=f/2,r=a-(f/2-i/2)*Math.tan((90+p)*(Math.PI/180)),y>0&&(o=Math.sqrt(Math.pow(f/2,2)+Math.pow(g-a,2)),s=180*Math.asin((g-a)/o)/Math.PI,l=180-2*s,c=y/Math.sin(s*Math.PI/180)+Math.sin(l/2*Math.PI/180)*y/Math.cos(l/2*Math.PI/180),f-=2*c,u=y/Math.sin(l/2*Math.PI/180),g-=y/2+u,C+=y,g=Math.round(g),f=Math.round(f)),t.moveTo(C,b),t.lineTo(C,b-i/2),t.lineTo(C+a,b-i/2),t.lineTo(C+r,b-f/2),t.lineTo(g,b),t.lineTo(C+r,b+f/2),t.lineTo(C+a,b+i/2),t.lineTo(C,b+i/2);break;case 90:i=g/100*m,a=f/100*v,C=g/2,r=a-(g/2-i/2)*Math.tan((90+p)*(Math.PI/180)),y>0&&(o=Math.sqrt(Math.pow(g/2,2)+Math.pow(f-a,2)),s=180*Math.asin((f-a)/o)/Math.PI,l=180-2*s,u=y/Math.sin(s*Math.PI/180)+Math.sin(l/2*Math.PI/180)*y/Math.cos(l/2*Math.PI/180),g-=2*u,c=y/Math.sin(l/2*Math.PI/180),f-=y/2+c,b+=y,g=Math.round(g),f=Math.round(f)),t.moveTo(C,b),t.lineTo(C+i/2,b),t.lineTo(C+i/2,b+a),t.lineTo(C+g/2,b+r),t.lineTo(C,f),t.lineTo(C-g/2,b+r),t.lineTo(C-i/2,b+a),t.lineTo(C-i/2,b);break;case 180:i=f/100*m,a=g/100*v,b=f/2,r=a+(f/2-i/2)*Math.tan((90-p)*(Math.PI/180)),y>0&&(o=Math.sqrt(Math.pow(f/2,2)+Math.pow(g-a,2)),s=180*Math.asin((g-a)/o)/Math.PI,l=180-2*s,c=y/Math.sin(s*Math.PI/180)+Math.sin(l/2*Math.PI/180)*y/Math.cos(l/2*Math.PI/180),f-=2*c,u=y/Math.sin(l/2*Math.PI/180),g-=y,C+=y/2+u,g=Math.round(g),f=Math.round(f)),t.moveTo(g,b),t.lineTo(g,b-i/2),t.lineTo(g-a,b-i/2),t.lineTo(g-r,b-f/2),t.lineTo(C,b),t.lineTo(g-r,b+f/2),t.lineTo(g-a,b+i/2),t.lineTo(g,b+i/2);break;case 270:i=g/100*m,a=f/100*v,C=g/2,r=a+(g/2-i/2)*Math.tan((90-p)*(Math.PI/180)),y>0&&(o=Math.sqrt(Math.pow(g/2,2)+Math.pow(f-a,2)),s=180*Math.asin((f-a)/o)/Math.PI,l=180-2*s,u=y/Math.sin(s*Math.PI/180)+Math.sin(l/2*Math.PI/180)*y/Math.cos(l/2*Math.PI/180),g-=2*u,c=y/Math.sin(l/2*Math.PI/180),b+=y/2+c,f-=y,g=Math.round(g),f=Math.round(f)),t.moveTo(C,f),t.lineTo(C+i/2,f),t.lineTo(C+i/2,f-a),t.lineTo(C+g/2,f-r),t.lineTo(C,b),t.lineTo(C-g/2,f-r),t.lineTo(C-i/2,f-a),t.lineTo(C-i/2,f)}t.closePath()}};return l(n,e,t)}function s(e,t){var n={properties:f.extend({lineWidth:0,width:400,height:200,x:0,y:0,pointOrientation:180,cornerRadius:20,baseOffset:"center",baseWidth:60,baseOffsetPercent:20,tipHeight:30,tipOffset:10},t),drawShape:function(t){var i,a,r,o=n.properties,s=o.width,l=o.height,c=o.lineWidth/2,u=0,d=0,g=d+l,f=u+s,p=o.cornerRadius,h=o.pointOrientation,m=o.baseOffset,v=o.baseWidth,y=o.tipHeight,b=o.tipOffset;switch(n.isLayoutActive(Xt.FillHorizontally)&&(s=e.size.width),n.isLayoutActive(Xt.FillVertically)&&(l=e.size.height),0===h?(d=l/100*y+c,u=c,g=l-c,f=s-c,i=(f-2*p)/100*v,a=(f-2*p-i)/2,r=(f-2*p)/100*o.baseOffsetPercent):90===h?(d=c,u=c,f=s-s/100*y-c,g=l-c,i=(g-2*p)/100*v,a=(g-2*p-i)/2,r=(g-2*p)/100*o.baseOffsetPercent):180===h?(d=c,u=c,g=l-c-l/100*y,f=s-c,i=(f-2*p)/100*v,a=(f-2*p-i)/2,r=(f-2*p)/100*o.baseOffsetPercent):270===h&&(u+=s/100*y,d=c,f=s-c,g=l-c,i=(g-2*p)/100*v,a=(g-2*p-i)/2,r=(g-2*p)/100*o.baseOffsetPercent),t.beginPath(),h){case 0:switch(m){case"left":t.lineTo(u+p+r,d),t.lineTo(s/100*b,2*c),t.lineTo(u+p+r+i,d);break;case"right":t.lineTo(f-p-r,d),t.lineTo(s/100*b,2*c),t.lineTo(f-p-r-i,d);break;case"center":t.lineTo(u+p+a,d),t.lineTo(s/100*b,2*c),t.lineTo(f-p-a,d)}t.lineTo(f-p,d),t.quadraticCurveTo(f,d,f,d+p),t.lineTo(f,g-p),t.quadraticCurveTo(f,g,f-p,g),t.lineTo(u+p,g),t.quadraticCurveTo(u,g,u,g-p),t.lineTo(u,d+p),t.quadraticCurveTo(u,d,u+p,d);break;case 90:switch(t.moveTo(u+p,d),t.lineTo(f-p,d),t.quadraticCurveTo(f,d,f,d+p),m){case"left":t.lineTo(f,d+p+r),t.lineTo(s-2*c,l-l/100*b),t.lineTo(f,d+p+r+i);break;case"right":t.lineTo(f,g-p-r),t.lineTo(s-2*c,l-l/100*b),t.lineTo(f,g-p-r-i);break;case"center":t.lineTo(f,d+p+a),t.lineTo(s-2*c,l-l/100*b),t.lineTo(f,g-p-a)}t.lineTo(f,g-p),t.quadraticCurveTo(f,g,f-p,g),t.lineTo(u+p,g),t.quadraticCurveTo(u,g,u,g-p),t.lineTo(u,d+p),t.quadraticCurveTo(u,d,u+p,d);break;case 180:switch(t.moveTo(u+p,d),t.lineTo(f-p,d),t.quadraticCurveTo(f,d,f,d+p),t.lineTo(f,g-p),t.quadraticCurveTo(f,g,f-p,g),m){case"left":t.lineTo(u+p+r+i,g),t.lineTo(f-s/100*b,l-2*c),t.lineTo(u+p+r,g);break;case"right":t.lineTo(f-p-r,g),t.lineTo(f-s/100*b,l-2*c),t.lineTo(f-p-r-i,g);break;case"center":t.lineTo(f-p-a,g),t.lineTo(s-s/100*b,l-2*c),t.lineTo(u+p+a,g)}t.lineTo(u+p,g),t.quadraticCurveTo(u,g,u,g-p),t.lineTo(u,d+p),t.quadraticCurveTo(u,d,u+p,d);break;case 270:switch(t.moveTo(u+p,d),t.lineTo(f-p,d),t.quadraticCurveTo(f,d,f,d+p),t.lineTo(f,g-p),t.quadraticCurveTo(f,g,f-p,g),t.lineTo(u+p,g),t.quadraticCurveTo(u,g,u,g-p),m){case"left":t.lineTo(u,d+p+r),t.lineTo(2*c,l-l/100*b),t.lineTo(u,d+p+r+i);break;case"right":t.lineTo(u,g-p-r),t.lineTo(2*c,l-l/100*b),t.lineTo(u,g-p-r-i);break;case"center":t.lineTo(u,g-p-a),t.lineTo(2*c,d+g/100*b),t.lineTo(u,d+p+a)}t.lineTo(u,d+p),t.quadraticCurveTo(u,d,u+p,d)}t.closePath()}};return l(n,e,t)}function l(e,t,n){return f.extend(e.properties,{lineWidth:0,strokeColor:"black",backgroundColor:"transparent"},n),f.extend(e,{repaint:function(n){var i=e.properties,a=i.backgroundColor;if(f.isGradient(a)){for(var r=a.orientation,o=r===ct.Vertical?t.size.height:0,s=r===ct.Horizontal?t.size.width:0,l=f.normalizeGradientStops(a.gradient),c=n.createLinearGradient(0,0,s,o),u=0;u<l.length;u++){var d=l[u],g=f.Color(d.color),p=f.valueOrDefault(d.stop,0);c.addColorStop(p/100,g.toCSS(!0))}n.fillStyle=c,n.fill()}else a=f.Color(a).toCSS(),"transparent"!==a&&(n.fillStyle=a);n.lineWidth=i.lineWidth,n.strokeStyle=i.strokeColor,e.drawShape(n),n.fill(),i.lineWidth>0&&n.stroke()}}),c(e,t)}function c(e,t){return f.extend(e,{id:t.idGenerator.next(),setPropertyValue:function(n,i){var a=e.properties,r=a[n];r!==i&&(a[n]=i,t.repaint())},setPropertiesValues:function(n){t.beginUpdate();for(var i in n)e.setPropertyValue(i,n[i]);t.endUpdate()},toggleLayout:function(n,i){var a=e.isLayoutActive(n);return a!==i&&(i?e.layouts[n]=!0:delete e.layouts[n],t.repaint()),e},isLayoutActive:function(t){return void 0!==e.layouts[t]},layouts:{}})}function u(e,t,n){for(var i=[],a=360/e,r=a;360>=r;r+=a)i.push({cx:t*Math.cos(r*(Math.PI/180))+n/2,cy:t*Math.sin(r*(Math.PI/180))+n/2});return i}function d(e){var t=0;return f.eachItem(e,function(e,n){t<n.cy&&(t=n.cy)}),t}this.create=function(){function l(e){return function(){var t=arguments.length,n=Array(t+1);n[0]=u;for(var i=0;t>i;i++)n[i+1]=arguments[i];var a=this,r=e.apply(a,n);return u.elements[r.id]=r,u.repaint(),r}}var c=f("<canvas></canvas>"),u={$element:c,canvas:c[0],idGenerator:f.createWeakIdGenerator(),elements:{},size:{width:0,height:0},isInitialized:!1,duringUpdate:0,repaintOnEndUpdate:!1,initialize:function(){u.isInitialized||(u.isInitialized=!0,u.refreshSize())},beginUpdate:function(){u.duringUpdate++},endUpdate:function(){u.duringUpdate=Math.max(0,u.duringUpdate-1),0===u.duringUpdate&&u.repaintOnEndUpdate&&(u.repaintOnEndUpdate=!1,u.repaint())},repaint:function(){if(u.isInitialized)if(u.duringUpdate>0)u.repaintOnEndUpdate=!0;else{var e=u.canvas,t=e.getContext("2d");t.clearRect(0,0,e.width,e.height);var n=u.elements;for(var i in n)n[i].repaint(t)}},refreshSize:function(e){u.initialize();var t=e;void 0!==t&&null!==t||(t=u.$element.elementSize()),u.size=t,u.$element.attr("width",t.width).attr("height",t.height),u.repaint()}};return f(window).resize(function(e){e.target!==window&&e.target!==document||u.repaint()}),f.extend(u,{addEllipse:l(e),addTriangle:l(t),addStar:l(n),addPolygon:l(i),addTrapezoid:l(a),addParallelogram:l(r),addArrow:l(o),addSpeechBubble:l(s)})}}),Kt=fs(function(){function e(e,n){var i=Qt.addNamesToElements(f(n)[0]),a=t(i);i=a.element;var r=Qt.getShapeReference(i),o=Qt.getShapeProperties(i),s={type:"SvgElement",elementProperties:{shapeReference:r,svgProperties:o,sizeAndPosition:a.sizeAndPosition,elementRole:a.elementRole},metaData:{size:{height:a.sizeAndPosition.height,width:a.sizeAndPosition.width}},containerId:f.uniqueID(),childElements:[]};e.push(s)}function t(e){var t,n,i=document.createElementNS(Jt.svgNS,"svg");t=e[0].hasAttribute("width")?e[0].getAttribute("width"):100,i.setAttribute("width",t),n=e[0].hasAttribute("height")?e[0].getAttribute("height"):100,i.setAttribute("height",n),i.appendChild(e[0]),e=i;var a=[t,n],r={width:parseInt(e.getAttribute("width")),height:parseInt(e.getAttribute("height")),top:0,left:0},o=e.firstChild,s={role:"shape",type:"multipart"},l=o.getAttribute("data-type");if(l&&(s.role=l,"shape"!==l&&(s.type="text")),o.hasAttribute("transform")){var c=Jt.transformManager.parse(o);c.translate&&(r.left=parseInt(c.translate[0])*(c.scale[0]||1),r.top=parseInt(c.translate[1])*(c.scale[1]||1)),c.scale&&(a[0]=a[0]/c.scale[0],a[1]=a[1]/c.scale[1]),o.removeAttribute("transform")}return e.setAttribute("viewBox","0 0 {0} {1}".format(a[0],a[1])),{element:e,sizeAndPosition:r,elementRole:s}}this.getInstanceByType=function(e,t){var n=null;return f.eachEntry(e,function(e,i){if("SvgElement"===i.elementType.name){var a=i.getSvgController().element.firstChild.getAttribute("data-type");a===t&&(n=i)}}),n},this.getLogoReference=function(e,t,n){var i={id:null,shape:null,shapeId:null,ownerId:null,storage:null},a=document.createElementNS(Jt.svgNS,"svg");f(e).appendTo(f(a)),e=f(e)[0],i.id=t.id,i.shape=Jt.getSvgOuterHTML(e),i.shapeId=n?n:f.uniqueID();return i},this.moveText=function(e,t,n){function i(){var t=Jt.transformManager.parse(e),n=0;t.translate?n=t.translate[0]:t.translate=[0,0];var i=Jt.normalizeNumber(n-a,!0),r=1;t.scale&&(r=t.scale[0]),t.translate[0]=i/r;var o=Jt.transformManager.build(t);e.setAttribute("transform",o)}var a=0,r=void 0;n&&(t||(t=Jt.getAttributeValue(e.firstChild,"data-text-direction",!0)),"middle"===t?(r=e.getAttribute("width"),a=(r-n)/2,i()):"left"===t&&(r=e.getAttribute("width"),a=r-n,i()))},this.createPropertiesList=function(e,t,n){var i=e.logo?e.logo:e.shape;if(t){var a=i.replace(/####/g,f.weakID());a=[f(a)[0]]}else a=i.replace(/####/g,f.weakID()),a=[f(a)[0]],a=Qt.removeNamesFromElements(a);return a=Qt.addNamesToElements(a),a=Qt.addNamesToObjects(a),{logoReference:this.getLogoReference(a,e,null,t),svgProperties:Qt.getShapeProperties(a),sizeAndPosition:Qt.getShapeSizes(a,n)}},this.createElementHierarchy=function(t){var n={id:ka.generateWebsiteId(),type:"userBox",elementProperties:{sizeAndPosition:{width:0,height:0,left:0,top:0}},childElements:[]},i={};i.structures=[],i.structures.push(n);for(var a=f(t)[0].childNodes,r=0;r<a.length;r+=1)e(i.structures[0].childElements,a[r].cloneNode(!0));return i}}),Qt=fs(function(){function e(e){if(e.childNodes.length>1){for(var t,n=0;n<e.childNodes.length;n+=1)if(e.childNodes[n].firstChild){t=e.childNodes[n];break}return t}return e.firstChild}function t(t){var n=e(t);return n.getBoundingClientRect()}this.nodeNamesToWorkWith=["path","rect","circle","ellipse","line","polyline","polygon","text","use"],this.createNoSvgElement=function(e){var t=[];if(e.hasOwnProperty("shape")&&(e=e.shape),"string"==typeof e){var n=f(e.trim());f.eachItem(n,function(e,n){t.push(n)})}else f.isArray(e)||(e=[e]),f.eachItem(e,function(e,n){t.push(n)});return f(t)},this.createPropertiesList=function(e,t,n){var i;return t?(i=e.shape.replace(/####/g,f.weakID()),i=[f(i)[0]]):(i=e.shape.replace(/####/g,f.weakID()),i=[f(i)[0]],i=Qt.removeNamesFromElements(i)),i=Qt.addNamesToElements(i),i=Qt.addNamesToObjects(i),{shapeReference:Qt.getShapeReference(i,e,null,t),svgProperties:Qt.getShapeProperties(i),innerObjectsRoles:Qt.setInnerObjectsProperties(i),sizeAndPosition:Qt.getShapeSizes(i,n)}},this.createNodeReference=function(e){function t(e){for(var i=0;i<e.length;i+=1)e[i]&&"#text"!==e[i].nodeName.toLowerCase()&&"#comment"!==e[i].nodeName.toLowerCase()&&e[i].hasAttribute("name")?(n[e[i].getAttribute("name")]=e[i],e[i].childNodes&&t(e[i].childNodes)):e[i].childNodes&&t(e[i].childNodes);return n}var n=[];return f.isArray(e)||(e=[e]),t(e)},this.addNamesToObjects=function(e){for(var t=e[0],n=0;n<t.childNodes.length;n+=1)if(-1!==f.getIndexOfElementInArray(t.childNodes[n].nodeName,Qt.nodeNamesToWorkWith)){var i=Jt.randomGradientID("object_");t.childNodes[n].setAttribute("data-name",i)}return t},this.addNamesToElements=function(e){var t=function(e){for(var n=0;n<e.length;n+=1)if(-1!==f.getIndexOfElementInArray(e[n].nodeName,Qt.nodeNamesToWorkWith)){var i;e[n].hasAttribute("name")||(i=Jt.randomGradientID("element_"),e[n].setAttribute("name",i)),e[n].childNodes&&t(e[n].childNodes)}else e[n].childNodes&&t(e[n].childNodes);return e};return f.isArray(e)||(e=[e]),t(e)},this.removeNamesFromElements=function(e){var t=function(e){for(var n=0;n<e.length;n+=1)if(-1!==f.getIndexOfElementInArray(e[n].nodeName,Qt.nodeNamesToWorkWith)){e[n].hasAttribute("name")&&e[n].removeAttribute("name"),e[n].childNodes&&t(e[n].childNodes)}else e[n].childNodes&&t(e[n].childNodes);return e};return f.isArray(e)||(e=[e]),t(e)},this.getShapeReference=function(e,t,n){var i={id:null,shape:null,shapeId:null,ownerId:null,storage:null};t&&t.id&&(i.id=t.id),i.shape=Jt.getSvgOuterHTML(e),i.shapeId=n?n:f.uniqueID();return i},this.getShapeSizes=function(e,t){var n=100,i=100;if(e.attributes.width&&e.attributes.height)n=e.attributes.width.value,i=e.attributes.height.value;else if(e.attributes.viewBox){var a=Jt.viewBoxManager.parse(e.attributes.viewBox.value);e.setAttribute("width",a.width+"px"),e.setAttribute("height",a.height+"px"),n=a.width,i=a.height}var r={width:parseInt(n),height:parseInt(i)};return t&&(r.left=t.left,r.top=t.top),r},this.setInnerObjectsProperties=function(e){var t={};("string"==typeof e||f.isArray(e))&&(e=f(e)[0]);var n=f.merge([],e.childNodes);return f.eachItem(n,function(e,n){if(-1!==f.getIndexOfElementInArray(n.nodeName,Qt.nodeNamesToWorkWith)){var i=n.getAttribute("data-name"),a=Qt.getElementRole(n);t[i]={role:a.role,type:a.type}}}),t},this.getElementRole=function(e){e.hasAttribute("data-main")&&(e=e.firstChild);var t=e.getAttribute("data-type");t||(t="shape");var n="multipart";if(1===e.childNodes.length){var i=e.firstChild.nodeName.toLowerCase();i&&"g"!==i&&"svg"!==i&&(n=i)}return{role:t,type:n}},this.checkElementParams=function(e,t,n){return t?e.hasAttribute(n)&&"none"!==e.getAttribute(n)&&""!==e.getAttribute(n)&&-1===e.getAttribute(n).indexOf("url"):void 0!==e.style[n]&&""!==e.style[n]&&"none"!==e.style[n]&&-1===e.style[n].indexOf("url")},this.getColorFromGradient=function(e){var t=null,n=e.childNodes;if(n.length){var i=Math.floor(Math.random()*(n.length-1));t=Jt.getAttributeValue(n[i],"stop-color",!0)}return t},this.findGradientByID=function(e,t){return function n(e){for(var i=0;i<e.length;i+=1){if("lineargradient"===e[i].nodeName.toLowerCase()&&e[i].getAttribute("id")===t)return Qt.getColorFromGradient(e[i]);if(e[i].childNodes.length>0)return n(e[i].childNodes)}}(e.childNodes)},this.getShapeProperties=function(e){function t(i){for(var a={fill:null,stroke:null},r=0;r<i.length;r+=1)if("g"===i[r].nodeName.toLowerCase()&&i[r].hasAttribute("fill")&&null!==i[r].getAttribute("fill")&&"none"!==i[r].getAttribute("fill")&&(a.fill=i[r].getAttribute("fill")),-1!==f.getIndexOfElementInArray(i[r].nodeName,Qt.nodeNamesToWorkWith)){var o=i[r].getAttribute("name");n[o]={},n[o].role="shape",n[o].fill=function(){var t;if(Qt.checkElementParams(i[r],!0,"fill"))t=i[r].getAttribute("fill");else if(Qt.checkElementParams(i[r],!1,"fill"))t=i[r].style.fill;else if(null!==a.fill)t=a.fill;else if(i[r].getAttribute("fill")&&-1!==i[r].getAttribute("fill").indexOf("url")){var n=i[r].getAttribute("fill").slice(6).replace(/["')]/g,""),o=Qt.findGradientByID(e[0],n);t=o?o:"#000000"}else if(i[r].style.fill&&-1!==i[r].style.fill.indexOf("url")){var n=i[r].style.fill.slice(6).replace(/["')]/g,""),o=Qt.findGradientByID(e[0],n);t=o?o:"#000000"}else t="#000000";return t}()}else i[r].childNodes&&t(i[r].childNodes)}var n={};return f.isArray(e)||(e=[e]),t(e),n},this.getFlatColorsListFromColorsMap=function(e){function t(e){for(var t=0;t<i.length;t+=1)if(i[t].color===e)return i[t];return!1}function n(e,n,a){var r=t(n[a]);if(r)r.targetParts.push({instance:e,partName:n.partName,type:a});else{var o=[];o.push({instance:e,partName:n.partName,type:a}),i.push({color:n[a],targetParts:o})}}for(var i=[],a=0;a<e.length;a+=1)for(var r=e[a].instance,o=e[a].colorsMap,s=0;s<o.length;s+=1){var l=o[s];null!==l.fill&&n(r,l,"fill")}return i},this.createShapeWrapper=function(e){if(e=Jt.createSvgNodeFromString(e),e.hasAttribute("data-main")&&"main"===e.getAttribute("data-main"))return f(e);e.setAttribute("data-main","main");var t=e.firstChild;if("g"===t.nodeName.toLowerCase()&&t.getAttribute("data-main"))return f(e);var n=document.createElementNS(Jt.svgNS,"g");n.setAttribute("data-main","nested");var i=f.merge([],e.childNodes);return f.eachItem(i,function(e,t){"g"!==t.nodeName.toLowerCase()||t.hasChildNodes()?n.appendChild(t):t.parentNode.removeChild(t)}),e.appendChild(n),f(e)},this.backgroundManager=function(){return this.isGradient=function(e){return void 0!==e.gradient},this.createGradientTemplate=function(e,t){var n,i=0,a=e.data.length,r="0",o="0";"horizontal"==e.orientation?r="100%":o="100%";var s=document.createElementNS(Jt.svgNS,"defs"),l=document.createElementNS(Jt.svgNS,"linearGradient");for(l.setAttribute("x1","0"),l.setAttribute("y1","0"),l.setAttribute("x2",r),l.setAttribute("y2",o),l.setAttribute("id",t),l.setAttribute("gradientUnits","userSpaceOnUse");a>i;i+=1)e.data.hasOwnProperty(i)&&(n=document.createElementNS(Jt.svgNS,"stop"),n.setAttribute("offset",e.data[i].location+"%"),n.setAttribute("stop-color",e.data[i].color),l.appendChild(n));return l.appendChild(n),s.appendChild(l),s},this.normalizeGradient=function(e){var t={};t.color="#000000",t.opacity=1,t.location=0;var n={};n.orientation=e.orientation,n.data=[];var i=e.gradient;for(var a in i.colorStops){var r=f.quickExtend({},t);r.location=i.colorStops[a].location;var o=Ka.evaluateColorBinding(i.colorStops[a].value);void 0!==o&&(r.color="object"==typeof o?o.toHEX():o),n.data[a]=r}return n},this},this.simpleAttrUpdate=function(e,t,n){return null===n?e.removeAttribute(t):e.setAttribute(t,n)},this.updateChildren=function(e,t,n){var i=Jt.find.nestedSVGs(e);for(var a in i)if(i.hasOwnProperty(a)){var r=i[a].childNodes;for(var o in r)r.hasOwnProperty(o)&&r[o]&&(r[o]=this.simpleAttrUpdate(r[o],t,n))}return e},this.prepareForJoin=function(n){var i,a=[],r=[];return f.eachItem(n,function(t,n){function a(e,t){for(var n=e.childNodes,i=0;i<n.length;i+=1)n[i].hasAttribute(t)&&n[i].removeAttribute(t);return e}function o(e,t){if(t){var i=(Jt.getSvgSizeAndPosition(e),n.getSvgController().element.firstChild.getBoundingClientRect()),a=(n.getSvgController().element.firstChild.getBBox(),Jt.transformManager.parse(e));a.rotate=[],a.rotate[0]=t,a.rotate[1]=i.width/2,a.rotate[2]=i.height/2;var r=Jt.transformManager.build(a);e.setAttribute("transform",r),e.setAttribute("width",i.width),e.setAttribute("height",i.height)}return e}n.getPropertyValue("sizeAndPosition");if(!n.$element.hasClass("state-hidden")){var s=n.getSvgController().element,l=e(s).cloneNode(!0),c=l.getAttribute("data-type");c||(c="shape"),l.setAttribute("data-type",c),Jt.convertElementsMeasures.viewBoxToScale(s,l),l=a(l,"name"),l=o(l,n.getPropertyValue("rotationAngle"),!1,i),r.push({element:l,order:n.getPropertyValue("order"),position:n.getSvgController().element.getBoundingClientRect()})}}),r=Jt.order(r),f.eachItem(n,function(e,n){if(!n.$element.hasClass("state-hidden")){var i=t(n.getSvgController().element);a.push(i)}}),i=f.unionAreas(a),{shapesList:r,instancesArea:i}},this.joinSvgShapes=function(e,t){function n(e){var t=e.position;return{x:t.left-i.left,y:t.top-i.top}}var i=t,a=[];return f.eachItem(e,function(e,t){var i=n(t),r=Jt.transformManager.parse(t.element);i.x=i.x/r.scale[0],i.y=i.y/r.scale[1];var o=Jt.transformManager.update(r,"translate",[i.x,i.y]),s=Jt.transformManager.build(o);t.element.setAttribute("transform",s),a.push(t.element)}),a}}),Jt=fs(function(){this.supportsSvg=function(){return document.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#Shape","1.0")},this.svgNS="http://www.w3.org/2000/svg",this.createElement={svg:function(){var e=document.createElementNS(Jt.svgNS,"svg");return e.setAttribute("version","1.1"),e.setAttribute("xmlns","http://www.w3.org/2000/svg"),e.setAttributeNS("xmlns","xlink:href","http://www.w3.org/1999/xlink"),e}},this.convertElementsMeasures={viewBoxToScale:function(e,t){var n={x:0,y:0},i=e.getAttribute("width"),a=e.getAttribute("height"),r=e.getAttribute("viewBox"),o=Jt.viewBoxManager.parse(r);n.x=i/o.width,n.y=a/o.height;var s=Jt.transformManager.parse(e),l=Jt.transformManager.update(s,"scale",[n.x,n.y]),c=Jt.transformManager.build(l);return t&&(e=t),e.setAttribute("width",i),e.setAttribute("height",a),e.setAttribute("transform",c),e.removeAttribute("viewBox"),e}},this.randomGradientID=function(e){return e||(e="svg_"),e+(""+f.uniqueID())},this.order=function(e){function t(e,t){return e.order<t.order?-1:e.order>t.order?1:0}return e.sort(t)},this.createSvgNodeFromString=function(e){var t=document.createElement("div");return t.innerHTML=e,t.firstChild},this.getSvgOuterHTML=function(e){if(void 0===e.outerHTML||1!==e.length&&void 0!==e.length){if(e.hasOwnProperty("shape"))return e.shape;var t=document.createElement("div"),n=e[0].cloneNode(!0);return n=[n],f.eachItem(n,function(e,n){t.appendChild(n)}),t.innerHTML}return e.outerHTML},this.viewBoxManager={parse:function(e){var t=e.split(" ");return{x:t[0],y:t[1],width:t[2],height:t[3]}}},this.transformManager={attrParse:function(e){var t=[],n=["translate","scale","rotate","skew"],i=e.split(")");return f.eachItem(i,function(e,i){var a=i.split("(");if(a.length>1){for(var r,o=0;o<n.length;o+=1)if(-1!==a[0].indexOf(n[o])){r=n[o];break}t[r]=[],-1!==a[1].indexOf(",")?t[r]=a[1].split(","):-1!==a[1].indexOf(" ")?t[r]=a[1].split(" "):(t[r][0]=a[1],t[r][1]=a[1])}}),t},parse:function(e){if(!e.hasAttribute("transform"))return{};var t=e.getAttribute("transform");return this.attrParse(t)},update:function(e,t,n){return e[t]=n,e},build:function(e){var t,n=[];for(t in e)e.hasOwnProperty(t)&&n.push(t+"("+e[t].join(",")+")");return n.join(", ")},set:function(e,t,n,i){if(e.hasAttribute("transform")){var a=this.parse(e);return a=this.update(a,t,n),i&&i(this.build(a)),this.build(a)}var r=t+"("+n+")";return i&&i(r),r}},this.getSvgSizeAndPosition=function(e){var t={};"string"==typeof e&&(e=f(e)[0]);var n=Qt.getShapeSizes(e);return t.width=parseInt(n.width),t.height=parseInt(n.height),t.x=parseInt(e.hasAttribute("x")?e.getAttribute("x"):0),t.y=parseInt(e.hasAttribute("y")?e.getAttribute("y"):0),t},this.resizeByContainer=function(e,t,n){function i(){r.width=t.width,r.height=r.width/o}function a(){r.height=t.height,r.width=r.height*o}"string"==typeof e&&(e=f(e)[0]);var r=Jt.getSvgSizeAndPosition(e),o=r.width/r.height;switch(n){case"maxWidth":i();break;default:a()}return e.setAttribute("width",r.width),e.setAttribute("height",r.height),e},this.recalculateInnerSize=function(e,t){var n=e?e.element:t,i=f.merge([],n.childNodes),a=Jt.viewBoxManager.parse(n.getAttribute("viewBox")),r=n.getAttribute("width"),o=n.getAttribute("height");parseInt(a.width)&&parseInt(a.height)||(a.width=r,a.height=o,n.setAttribute("viewBox","0 0 {0} {1}".format(a.width,a.height)));
for(var s=(r/a.width,o/a.height,0);s<i.length;s+=1){var l=i[s].getBoundingClientRect(),c=i[s].getAttribute("data-type");if(c&&"shape"!==c){var u=Jt.transformManager.parse(i[s]);u.scale||(u.scale=[1,1]);var d=i[s].getAttribute("width"),g=l.width,p=l.height;parseInt(d)!==g&&(i[s].setAttribute("width",g),i[s].setAttribute("height",p))}}return n},this.recalculateSize=function(e,t){var n=e?e.element:t,i=f.merge([],n.childNodes),a=Jt.viewBoxManager.parse(n.getAttribute("viewBox")),r=n.getAttribute("width")/a.width,o=n.getAttribute("height")/a.height,s=n.getBoundingClientRect(),l=f.normalizeAreaCoordinates(f.calculateAreaInfo({left:s.left,right:s.right,top:s.top,bottom:s.bottom}),2),c=f.mapItem(i,function(e){var t=e.getBoundingClientRect();return f.normalizeAreaCoordinates(f.calculateAreaInfo({left:t.left,right:t.right,top:t.top,bottom:t.bottom}),2)}),u=f.getSurroundingArea(c);if(!f.areasEqual(l,u)){var d=Math.ceil(u.width),g=Math.ceil(u.height);n.setAttribute("width",d),n.setAttribute("height",g),n.setAttribute("viewBox","0 0 {0} {1}".format(d/r,g/o)),e&&e.sizeChangedEvent.fireNew(),Jt.normalizeInnerX(e,t)}return n},this.normalizeInnerX=function(e,t){var n=e?e.element:t,i=f.merge([],n.childNodes),a=null;if(f.eachItem(i,function(e,t){var n=Jt.transformManager.parse(t),i=0;n.translate&&(i=parseFloat(n.translate[0])),(null===a||a>i)&&(a=i)}),!isNaN(a)&&0!==a){a*=-1;for(var r=0;r<i.length;r+=1){var o=Jt.transformManager.parse(i[r]),s=parseFloat(o.translate[0]);s||(s=0),o.translate[0]=s+a;var l=Jt.transformManager.build(o);i[r].setAttribute("transform",l)}}},this.svgGradientOffsetConverter=function(e){return e=parseInt(e),e>0&&1>=e?100*e:e},this.getAttributeValue=function(e,t,n){var i=null;return n=n?n:!0,e.hasAttribute(t)?i=e.getAttribute(t):void 0!==e.style[t]&&(i=e.style[t]),n&&(i=""===i||"none"===i?null:i),i},this.setAttributeValue=function(e,t,n,i){void 0!==e.style[t]?i?(e.style[t]=void 0,e.setAttribute(t,n)):e.style[t]=n:e.setAttribute(t,n)},this.normalizeNumber=function(e){return+e===e&&e%1===0?parseInt(e):+parseFloat(e).toFixed(2)},this.find={allG:function(e){var t=[],n=e.childNodes;for(var i in n)n.hasOwnProperty(i)&&"g"===n[i].nodeName.toLowerCase()&&t.push(n[i]);return t},nestedSVGs:function(e){var t=[],n=this.allG(e);for(var i in n){var a=n[i].childNodes;for(var r in a)a.hasOwnProperty(r)&&"svg"===a[r].nodeName.toLowerCase()&&t.push(a[r])}return t},elementByType:function(e,t){for(var n=0;n<e.childNodes.length;n+=1){var i=e.childNodes[n].getAttribute("data-type");if(i===t)return e.childNodes[n]}}}}),Zt=function(){function e(e,i){var a=j.inlinesvg?Qt.createShapeWrapper(i.shape):Qt.createNoSvgElement(i.shape);if(e._shapeReference=i,e.$element=a,e.element=a[0],e.sizeChangedEvent=x.create(),e._nodesReference=Qt.createNodeReference(a[0]),e._shapePropertiesDictionary=n(e),e._elementsRolesMap=t(e.element),j.inlinesvg){var r=Qt.getShapeProperties(a[0]);e._shapePropertiesDictionary.setValue(r)}}function t(e){var t={},n=f.merge([],e.childNodes);return f.eachItem(n,function(e,n){if(n.hasAttribute("data-type")){var i=n.getAttribute("data-type");n.firstChild&&(t[i]=n.firstChild.getAttribute("name"))}}),t}function n(e){var t={},n=e;return{setValue:function(e){t=e},addValue:function(e,a,r){var o=t[e];o||(o={});var s=o[r];s!==a&&(o[r]=a,i(n,e,r,a))},addValues:function(e,a){f.eachEntry(f.getKeys(a),function(r,o){var s=t[e];s||(s={});var l=s[o],c=a[o];l!==c&&(s[o]=c,i(n,e,o,c))})},addValueToAll:function(e,a){for(var r=f.getKeys(t),o=0;o<r.length;o+=1){var s=r[o],l=t[s][a];l!==e&&(l=e,i(n,s,a,e))}},getByName:function(e){return t[e]},getByNameAndProperty:function(e,n){return t[e][n]},getAll:function(){return t},getLength:function(){return f.getKeys(t).length}}}function i(e,t,n,i){var a=e._nodesReference;switch(n){case"fill":Jt.setAttributeValue(a[t],"fill",i);break;case"text":a[t].innerHTML=i,i&&i.length&&r(e,a[t].parentNode);break;case"fontFamily":Jt.setAttributeValue(a[t],"font-family",i),i&&i.length&&r(e,a[t].parentNode);break;case"textDirection":Jt.setAttributeValue(a[t],"data-text-direction",i),i&&i.length&&r(e,a[t].parentNode)}"text"!==n&&"fontFamily"!==n||e.recalculateSize()}function a(e){var t=Jt.find.nestedSVGs(this.element),n=this.element.childNodes;for(var i in t){var a=t[i].childNodes;for(var r in a)a.hasOwnProperty(r)&&a[r]&&"defs"===a[r].nodeName.toLowerCase()&&t[i].removeChild(a[r])}for(var o in n)n.hasOwnProperty(o)&&"defs"===n[o].nodeName.toLowerCase()&&this.element.removeChild(n[o]);var s=Qt.backgroundManager();if(s.isGradient(e)){var l=Jt.randomGradientID(),c=s.normalizeGradient(e),u=s.createGradientTemplate(c,l),d=Jt.find.nestedSVGs(this.element);if(e="url(#"+l+")",Qt.updateChildren(this.element,"fill",e),d.length>1)for(var g=0;g<d.length;g+=1)d.hasOwnProperty(g)&&d[g].insertBefore(u.cloneNode(!0),d[g].firstChild);else d[0].insertBefore(u,d[0].firstChild)}else"string"!=typeof e&&(e=Ka.evaluateColorBinding(e).toHEX()),Qt.updateChildren(this.element,"fill",e)}function r(e,t){var n=t.getAttribute("width");e.element=Jt.recalculateInnerSize(e),Kt.moveText(t,null,n)}var o=C.extend("SvgController",{init:function(t){e(this,t)},updateElement:function(t){e(this,t)},calculateArea:function(){return f.calculateAreaInfo(this.element.getBoundingClientRect())},getShapeReference:function(){return this._shapeReference},getSvgPartNameByRole:function(e){return this._elementsRolesMap[e]},updateShapeProperty:function(e){var t=this._shapePropertiesDictionary;t.getLength()||t.setValue(e),f.eachEntry(e,function(e,n){t.addValues(e,n)})},updateElementPropertyValue:function(e,t,n){this._shapePropertiesDictionary.addValue(e,n,t)},updateShapePropertyValue:function(e,t){this._shapePropertiesDictionary.addValueToAll(t,e)},getElementPropertyValue:function(e,t){var n=this._shapePropertiesDictionary,i=null;if(e)i=n.getByNameAndProperty(e,t);else{var a=n.getAll();f.eachEntry(a,function(e,n){n[t]&&(i=n[t])})}return i},updateSize:function(e){var t=this.element,n=parseInt(t.getAttribute("width")),i=parseInt(t.getAttribute("height")),a=!1,r=!1;n!==e.width&&(t.setAttribute("width",e.width),a=!0),i!==e.height&&(t.setAttribute("height",e.height),r=!0),(a||r)&&this.sizeChangedEvent.fireNew()},updateBackground:a,recalculateSize:function(){Jt.recalculateSize(this)},createShapeReference:function(){return Qt.getShapeReference(this.element,null,this._shapeReference.shapeId)}});return o.create=function(e){return new o(e)},o}();!function(e){function t(t){i=e(t.target)}function n(){i=null}var i=null;e(function(){e(document).on("focusin",t),e(document).on("focusout",n)}),e.clearFocus=function(){i&&i.blur()},e.getFocusedElement=function(){return i},e.fn.blurContextElement=function(){i&&i.hasAncestor(this)&&i.blur()}}(p);var en=fs(function(){function e(e,n,i,a,r,o){var s;return s=f.isFunction(e)?e.call(e,n,i,a,r,o):e.create.call(e,n,i,a,r,o),t(s)}function t(e){if(!(e instanceof an))throw Error("baseController should be created with PanelsManager.createBaseController");return e._init(),e}this.Templates={BasicPanel:{useTemplate:function(e){e=f.quickExtend({panelClass:"",panelContentClass:""},e);var t=e.panelClass,n=e.panelContentClass,i=new E;return i.append('<div class="{0}">'.format(t)),i.append('<div class="{0}-content panel-content {1}"></div>'.format(t,n)),i.append("</div>"),f(""+i)}}},this.getDefaultPanel=function(t,n,i,a,r,o){return void 0===t.DefaultPanel&&(t.DefaultPanel=e(t,n,i,a,r,o)),t.DefaultPanel},this.requestPanel=function(t){var n=t.panelsPool;if(void 0==n&&(n=[],t.panelsPool=n),0===n.length){var i=e(t);i.panelsPool=n,n.push(i)}return n.pop()},this.releasePanel=function(e){e.panelsPool||ee.error("Cannot release panel which hasn't been associated with a panels factory pool"),e.panelsPool.push(e)},this.usePanel=function(e){return e?e.use():e},this.createPanelWithActivationArgs=function(t,n,i,a,r,o,s){var l=e(t,i,a,r,o,s);return f.quickExtend(l.defaultActivationArgs,n),l},this.createPanel=e,this.createBaseController=function(e){var t=an.create();return e&&f.quickExtend(t,e),t},this.createController=t,this.setAsPanelsScope=function(e,t){e.addClass("panels-scope").data("panels-scope",t)},this.removePanelsScope=function(e){e.removeClass("panels-scope").removeData("panels-scope")}}),tn=C.extend("DeferredPanel",{init:function(e,t){t=f.quickExtend({creationArgs:[],creationCallback:cs,activationHandler:cs},t);var n=this;n._panelFactory=e,n._options=t,n.id=f.uniqueID()},lazyInitializationProperties:{isEnabled:function(){var e=this;return O.createConditionalPositive({valueChangeCallback:function(t){if(e.isActivated.isTrue()){var n=e.getPanel();t?e._options.activationHandler.call(n,n):(e._ignoreDeactivationRequest=!0,n.requestDeactivation(),e._ignoreDeactivationRequest=!1)}}})},isActivated:function(){var e=this;return O.create(!1,{valueChangeCallback:function(t){e._ignoreActivatedFlagChange||(t?e.activate():e.isEnabled.isTrue()&&e.getPanel().requestDeactivation())}})}},isCreated:!1,_ignoreDeactivationRequest:!1,_ignoreActivatedFlagChange:!1,isPanelActivated:function(){return this.isCreated&&this.panel.isActivated},getPanel:function(){var e=this,t=this._panelFactory,n=this._options,i=e.panel;return void 0===i&&(i=f.isFunction(t)?t():en.createPanelWithActivationArgs.apply(en,f.merge([t,n.defaultActivationArgs],f.asArray(n.creationArgs))),e.panel=i,e.isCreated=!0,n.creationCallback.call(i,i),i.requestDeactivationEvent.bind(function(){e._ignoreDeactivationRequest||(e._ignoreActivatedFlagChange=!0,e.isActivated.setFalse(),e._ignoreActivatedFlagChange=!1)}),i.id=e.id),this.panel},activate:function(){var e,t=this,n=arguments.length;if(t.isEnabled.isFalse());else{var i=t.getPanel(),a=Array(n+1);for(a[0]=i,e=0;n>e;e++)a[e+1]=arguments[e];t._options.activationHandler.apply(i,a)}t.isActivated.setTrue()},use:function(){return this.getPanel()}});en.createDeferredPanel=function(e,t){return new tn(e,t)};var nn=C.extend("InnerPanelController",{init:function(e,t){t=f.quickExtend({appendTo:e.$element,onDeactivationRequested:function(){e.requestDeactivation()},panelChangedCallback:cs,onPanelActivated:cs,propagateInnerDropPanelsContainer:!1},t),this._appendTo=t.appendTo,this._onDeactivationRequested=t.onDeactivationRequested,this._panelChangedCallback=t.panelChangedCallback,this._onPanelActivated=t.onPanelActivated,this._propagateInnerDropPanelsContainer=t.propagateInnerDropPanelsContainer,this._customPanelAppearance=t.customPanelAppearance,this.wrappingPanel=e,this.panelChangedEvent=x.create(),this.panelActivatedEvent=x.create(),this._bindingsCollection=x.createBindingsCollection()},_currentInnerPanel:void 0,_currentActivationArgs:void 0,_currentData:void 0,_customInnerPanelSize:void 0,getPanel:function(){return this._currentInnerPanel},removePanel:function(){this.setPanel(void 0)},reactivateCurrentPanel:function(e){e=f.quickExtend({},e);var t=this._currentInnerPanel;t&&this.setPanel(t,e)},setPanel:function(e,t){t=f.quickExtend({},t);var n=t.activationArgs,i=t.data;e&&(e=e.use());var a=this._currentInnerPanel,r=this._currentActivationArgs,o=this._currentData;if(e!==a||n!==r||o!==i){var s=this._bindingsCollection;s.unbindAll();var l=a;if(a=this._currentInnerPanel=e,r=this._currentActivationArgs=n,this._currentData=i,l&&l!==a&&(l.hostingInnerPanelController=void 0,l.deactivate(),l.$element.detach()),e){var c=e.hostingInnerPanelController;c&&c!==this&&c.setPanel(void 0),e.hostingInnerPanelController=this,e.$element.appendTo(f.evaluateWhenFunction(this._appendTo,e,i));var u=this.wrappingPanel;this._propagateInnerDropPanelsContainer&&e.setInnerDropPanelsContainer(u.getInnerDropPanelsContainer()),u.isActivated&&(e.activate(r,void 0,{customPanelAppearance:this._customPanelAppearance,customPanelSize:this._customInnerPanelSize}),this._onPanelActivated(e),this.panelActivatedEvent.fireNew(e)),u.startAnimationCompleted&&e.startAnimationCompletePromise.resolve();var d=this;e.requestDeactivationEvent.bind(function(){d._onDeactivationRequested()}).addToCollection(s),u.panelDeactivatedEvent.bind(function(){e.deactivate()}).addToCollection(s),u.panelActivatedEvent.bind(function(){e.activate(r,void 0,{customPanelAppearance:d._customPanelAppearance,customPanelSize:d._customInnerPanelSize}),d._onPanelActivated(e),d.panelActivatedEvent.fireNew(e)}).addToCollection(s),u.startAnimationCompletedEvent.bind(function(){e.startAnimationCompletePromise.resolve()}).addToCollection(s)}this._panelChangedCallback(e),this.panelChangedEvent.fireNew(e)}},setCustomInnerPanelSize:function(e){this._customInnerPanelSize=e;var t=this._currentInnerPanel;t&&this.wrappingPanel.isActivated&&t.setCustomPanelSize(e)}});en.createInnerPanelController=function(e,t){return new nn(e,t)};var an=function(){function e(e,t){return e.is(t)?!0:0===e.length&&0===t.length?!0:1===e.length&&1===t.length?e.data("panels-scope")===t.data("panels-scope"):!1}var t=C.extend("PanelController",{init:function(){var e=this;e.id=f.uniqueID(),e.bindings=[],e.visualizers=[],e._readWriteInitializationOperations=[]},lazyInitializationProperties:{panelActivatedEvent:x.create,panelDeactivatedEvent:x.create,panelActivatingEvent:x.create,startAnimationCompletedEvent:x.create,openedInContext:x.create,isPinned:O.createFalse,requestDeactivationEvent:x.create,isActivatedFlag:O.createFalse,maxPanelSize:function(){var e=this;return _.create({width:1/0,height:1/0},{equalityComparer:z.SizeEqualityComparer,valueChangeCallback:function(t){e.isActivated&&e.updatePanelSize(t)}})},panelSizeChangedEvent:x.create,_whenActivatedCallbacks:fe.create,_whenDeactivatedCallbacks:fe.create,_panelStateBindingsManager:ve.createStateBindingsGroup,_eventsListeners:x.createEventListenersGroup},defaultActivationArgs:void 0,wasInitialized:!1,isActivated:!1,duringActivation:!1,_init:function(){for(var e=this,t=this.$element,n=this.visualizers,i=0;i<n.length;i++)n[i].postponeBinding();var a=this.update;t.addDisplayingStates(),this._panelAppearanceContextClass=Ie.createContextClass(t),a!==cs&&(this.update=function(){e.isActivated&&e.isEnabled()&&a.apply(e,arguments)})},updatePanelSize:cs,update:cs,updateCustomPanelSize:cs,initialize:cs,onActivated:cs,onStartAnimationComplete:cs,onActivating:cs,onDeactivating:cs,onDeactivated:cs,requestResize:cs,onSizeChange:cs,defaultPanelAppearance:void 0,panelWrapper:void 0,$element:void 0,querySize:function(){return this.$element.elementSize()},isEnabled:us,handleDeactivationRequest:function(e){e()},notifySizeChanged:function(){return this.onSizeChange(),x.fireLazyEvent(this,"panelSizeChangedEvent"),this},getBindingsManager:function(){return this._panelStateBindingsManager},whenActivated:function(e){return this._whenActivatedCallbacks.add(e),this},whenDeactivated:function(e){return this._whenDeactivatedCallbacks.add(e),this},addReadWriteInitialization:function(e,t){return this._readWriteInitializationOperations.push({read:e,write:t}),this},associateBinding:function(e){return this.bindings.push(e),this},associateScrollingView:function(e){var t=this._eventsListeners;return x.createEventListener(this.panelActivatedEvent,function(){e.toggleAutoRefresh(!0),e.isSupportScrollingItems()&&e.activateScrollingItems()}).activate().addToGroup(t),x.createEventListener(this.panelDeactivatedEvent,function(){e.toggleAutoRefresh(!1),e.isSupportScrollingItems()&&e.deactivateScrollingItems()}).activate().addToGroup(t),this.isActivated&&(e.toggleAutoRefresh(!0),e.isSupportScrollingItems()&&e.activateScrollingItems()),this},associateCollectionObserver:function(e){var t=this._eventsListeners;return x.createEventListener(this.panelActivatedEvent,function(){e.unPostponeUpdates()}).activate().addToGroup(t),x.createEventListener(this.panelDeactivatedEvent,function(){e.postponeUpdates()}).activate().addToGroup(t),this.isActivated&&e.unPostponeUpdates(),this},associateItemsList:function(e){var t=this._eventsListeners;return x.createEventListener(this.panelActivatedEvent,function(){e.hasLayoutSupport&&e.unPostponeLayoutUpdate()}).activate().addToGroup(t),x.createEventListener(this.panelDeactivatedEvent,function(){e.hasLayoutSupport&&e.postponeLayoutUpdate()}).activate().addToGroup(t),this.isActivated&&e.hasLayoutSupport&&e.unPostponeLayoutUpdate(),this},use:function(){return this},_performReadWriteInitialization:function(){return f.readWrite(this._readWriteInitializationOperations,function(e){return e.read()},function(e,t){void 0!==t&&e.write(t)}),this._readWriteInitializationOperations=[],this},_activateAssociatedBindings:function(){for(var e=this.bindings,t=0;t<e.length;t++)e[t].activate();return this},_activateAssociatedVisualizers:function(){for(var e=this.visualizers,t=0;t<e.length;t++)e[t].initialize().unPostponeBinding().activate();return this},handlePanelContentUpdate:function(){this.isActivated&&this._activateAssociatedVisualizers()._performReadWriteInitialization()._activateAssociatedBindings()},getPanelAppearance:function(){return this._panelAppearanceContextClass.getValue()},setCustomPanelSize:function(e){this.customPanelSize=e,this.recalculateCustomPanelSize()},recalculateCustomPanelSize:function(){if(this.isActivated){var e=f.evaluateWhenFunction(this.customPanelSize);this.updateCustomPanelSize(e),this.notifySizeChanged()}},setInnerDropPanelsContainer:function(e){this.$innerDropPanelsContainer=e},getInnerDropPanelsContainer:function(){return this.$innerDropPanelsContainer},togglePanelWrapper:function(e,t){t?this.panelWrapper=e:this.panelWrapper===e&&(this.panelWrapper=void 0)},getPanelWrapper:function(){return this.panelWrapper},toggleDisplayed:function(e,t){this.panelWrapper?this.panelWrapper.$element.toggleDisplayed(e,t):this.$element.toggleDisplayed(e,t)},toggleVisibility:function(e,t){this.panelWrapper?this.panelWrapper.$element.toggleVisibility(e,t):this.$element.toggleVisibility(e,t)},addVisibilityStates:function(){return this.panelWrapper?this.panelWrapper.$element.addVisibilityStates():this.$element.addVisibilityStates(),this},requestDeactivation:function(e){if(this.isActivated){var t=this;this.handleDeactivationRequest(function(){x.fireLazyEvent(t,"requestDeactivationEvent",e)})}},makeUnselectable:function(){return this.$element.makeUnselectable(),this},_initialize:function(){var e=!1;if(!this.wasInitialized){e=this.wasInitialized=!0,this.makeUnselectable();for(var t=this.visualizers,n=0;n<t.length;n++)t[n].initialize(),t[n].refreshBinding()}return e},getContext:function(){return this.context},setContext:function(e){f.isFunction(e)&&(e=e()),this.context=e;for(var t=this.visualizers,n=0;n<t.length;n++)t[n].setContext(e)},reactivate:function(){this.activate(this.lastActivationArgs,this.lastPanelContext)},activate:function(e,t,n){n=f.quickExtend({customPanelAppearance:this.defaultPanelAppearance,customPanelSize:void 0},n);var i=this,a=n.customPanelSize;this.deactivate(!0),this.duringActivation=!0,this.setContext(t),this.lastActivationArgs=e,this.lastPanelContext=t,this.isActivated=!0,this.isActivatedFlag.setTrue(),f.isFunction(e)&&(e=e());var r=this.defaultActivationArgs;void 0!==r&&(r=f.isFunction(r)?r():f.quickExtend({},r)),e=f.quickExtend(r,e),this.currentActivationArgs=e,this._panelAppearanceContextClass.setValue(n.customPanelAppearance),this._initialize()&&(this.initialize(),this.notifySizeChanged()),this.onActivating(e,t),x.fireLazyEvent(this,"panelActivatingEvent",e),this.handlePanelContentUpdate(),this.update(),this.onActivated(e,t);var o=this._getLazyProperty("_whenActivatedCallbacks");o&&o.execute(e,t),this._panelStateBindingsManager.activate(),x.fireLazyEvent(this,"panelActivatedEvent");var s=this.startAnimationCompletePromise=f.Deferred();return s.done(function(){clearTimeout(i._startAnimationCompletedTimeout),i._startAnimationCompletedTimeout=setTimeout(function(){i.startAnimationCompleted=!0,i.onStartAnimationComplete(e,t),x.fireLazyEvent(i,"startAnimationCompletedEvent")},0)}),this.setCustomPanelSize(a),this.duringActivation=!1,this},deactivate:function(e){if(this.isActivated){e=f.valueOrDefault(e,!1);var t=this._getLazyProperty("maxPanelSize");t&&t.setValue({width:1/0,height:1/0}),this.$element.blurContextElement(),this.isActivated=!1,this.isActivatedFlag.setFalse(),this.onDeactivated();var n=this._getLazyProperty("_whenDeactivatedCallbacks");n&&n.execute();for(var i=this.visualizers,a=0;a<i.length;a++)i[a].postponeBinding().deactivate();var r=this.bindings;for(a=0;a<r.length;a++)r[a].deactivate();e||(this._panelStateBindingsManager.deactivate(),x.fireLazyEvent(this,"panelDeactivatedEvent")),!this.startAnimationCompleted&&this.startAnimationCompletePromise&&this.startAnimationCompletePromise.reject(),this.startAnimationCompleted=!1,clearTimeout(this._startAnimationCompletedTimeout)}},appendTo:function(e){return this.$element.appendTo(e),this},deactivateOnClickOutside:function(t){if(this.isActivated){t=f.quickExtend({ignoredElementsFilters:[],mouseButton:!1},t);var n=t.mouseButton;Pe.isTouch()&&(n=!1);var i=this,a=this.$element,r=f.makeArray(t.ignoredElementsFilters);r.unshift(a),r.push(".file-selector");var o=a.closest(".panels-scope"),s=f.uniqueID(),l=setTimeout(function(){f(document).bind("mousedown."+s,function(t){if(n===!1||t.which===n){var a=i._getLazyProperty("isPinned");if(!a||a.isFalse()){var s=f(t.target),l=s.closest(".panels-scope");if(e(l,o)){var c=s.parents().andSelf();f.all(r,function(e){return 0===c.filter(e).length})&&i.requestDeactivation()}}}})});this.panelDeactivatedEvent.one(function(){clearTimeout(l),f(document).unbind("mousedown."+s)})}}});return t.create=function(){return new t},t}(),rn={AppendParent:"body"};an.extendPrototype({openAsDropPanel:function(e){e=f.quickExtend({isDraggable:!1,stackWithWindows:!1,hidingFunctionBeforeShowing:function(e){e.hide()},closeCallback:cs,openCallback:cs,placeInsideWindow:!0},e);var t,n=e.placeInsideWindow,i=e.hidingFunctionBeforeShowing,a=e.showingFunction,r=e.stackWithWindows,o=e.closeCallback,s=e.appendTo,l=e.relativeTo,c=this;void 0===s?s=f.evaluateWhenFunction(rn.AppendParent,l):(s=f.evaluateWhenFunction(s),void 0===s&&(s=f.evaluateWhenFunction(rn.AppendParent,l)));var u=f("<span class='drop-panel-wrapper inline-block' style='position: absolute;'></span>").addClass(e.contextClass).appendTo(s);e.isDraggable&&mn.Draggable.makeDraggable(u,{distance:3,contextOptions:{eventsCatcherClass:"cursor-move",behaviourOptions:{containment:"window"}}}),r&&c._stackWithWindows(u),c.deactivate();var d=c.$element.appendTo(u).toggleClass("is-draggable",e.isDraggable);c.$dropPanelWrapper=u,c.activate(e.activationArgs,e.panelContext),e.positioningFunction&&(c._panelPositionFunction=function(){var t;e.relativeTo&&(t=f(e.relativeTo)),n?u.positionToFit(f.getWindowArea(),[function(){f.usePositioningFunction(e.positioningFunction,u,t,c)}],void 0,{fallbackPositioning:0}):f.usePositioningFunction(e.positioningFunction,u,t,c)},c._panelPositionFunction(),t=f(window).on("resize",c._panelPositionFunction)),e.openCallback(c),a&&(i(u),e.showingFunction.call(u,u,c));var g=c.requestDeactivationEvent.bind(function(){c.deactivate(),f(window).off("resize",c._panelPositionFunction)});return c.panelDeactivatedEvent.one(function(){d.detach(),r&&c._removeStackWithWindows(u),delete c.$dropPanelWrapper,u.remove(),g.unbind(),o(c)}),c}}),function(e){var t=C.extend("DropPanelWindowController",{init:function(t,n){n=e.quickExtend({appendTo:rn.AppendParent,isDraggable:!0,stackWithWindows:!0,bindTogglingState:!1,deactivateOnClickOutside:!0,openCallback:cs,closeCallback:cs,ignoredElementsFilters:[]},n);var i=n.openCallback,a=n.closeCallback;this._isOpened=O.create(!1,{valueChangeCallback:function(e){e?i():a()}}),this._options=n,this.panel=t,this._deactivationIgnoredElements=[]},open:function(t,n){n=e.quickExtend({closeCallback:void 0,openCallback:void 0},n);var i=this._isOpened;if(i.isFalse()){var a=this._options,r=this.panel.use();i.setTrue();var o=n.closeCallback,s=n.openCallback;if(n=e.quickExtend({},a,n),r.openAsDropPanel({activationArgs:n.activationArgs,panelContext:n.panelContext,positioningFunction:n.positioningFunction,relativeTo:t,contextClass:n.contextClass,appendTo:n.appendTo,showingFunction:n.showingFunction,isDraggable:n.isDraggable,stackWithWindows:n.stackWithWindows,placeInsideWindow:n.placeInsideWindow,hidingFunctionBeforeShowing:n.hidingFunctionBeforeShowing,closeCallback:o,openCallback:s}),n.deactivateOnClickOutside){var l=this._deactivationIgnoredElements;n.ignoredElementsFilters&&n.ignoredElementsFilters.length>0&&(l=e.merge(l.clone(),n.ignoredElementsFilters)),r.deactivateOnClickOutside({ignoredElementsFilters:l})}r.panelDeactivatedEvent.one(function(){i.setFalse()})}},close:function(){this._isOpened.isTrue()&&this.panel.use().requestDeactivation()},toggle:function(){this.isOpened()?this.close():this.open()},isOpened:function(){return this._isOpened.getValue()},connectButton:function(t,n){n=e.quickExtend({dropPanelOpenedClass:"state-toggled",dropPanelClosedClass:"state-untoggled",dropPanelClassTarget:void 0,onClosingRequest:us},n);var i=n.onClosingRequest,a=Ie.createContextClass({getTarget:function(){return e.valueOrDefault(n.dropPanelClassTarget,t)}}),r=this._isOpened;r.valueChangedEvent.bindAndExecute(function(){r.isTrue()?a.setValue(n.dropPanelOpenedClass):a.setValue(n.dropPanelClosedClass)});var o=this;t.addClass("attached-drop-panel-window").buttonClick(function(){o.isOpened()?i()&&o.close():o.open(t,n)}),this._deactivationIgnoredElements.push(t)}});e.createDropPanelWindow=function(e,n){return new t(e,n)},e.fn.attachDropPanelWindow=function(t,n){n=e.quickExtend({dropPanelOpenedClass:"state-toggled",dropPanelClosedClass:"state-untoggled"},n);var i=e.createDropPanelWindow(t,n);if(i.connectButton(this,n),n.withDropPanelController){var a=this;n.withDropPanelController({open:function(){i.open(a,n)},close:function(){i.close()},isOpened:function(){return i.isOpened()}})}return this}}(f),function(e){e.fn.onContextMenu=function(e){for(var t=0;t<this.length;t++)this[t].oncontextmenu=function(t){t||(t=window.event),t.cancelBubble=!0,t.stopPropagation&&t.stopPropagation(),t.preventDefault&&t.preventDefault(),t.returnValue&&(t.returnValue=!1),e(t)};return this}}(p),function(e){function t(e){return e.replace(/([A-Z])/g,function(e,t){return"-"+t.toLowerCase()})}function n(n,a,r,o){var s=n.data("transitions");void 0===s&&(s={},n.data("transitions",s)),a=t(a);var l=e.support.transitionEvent+"."+a;s[a]&&n.unbind(l),s[a]={duration:o.duration,targetValue:r,complete:o.complete},n.bind(l,function(e){if(e.originalEvent.propertyName===a){n.unbind(l);var t=s[a];t&&(delete s[a],t.complete&&t.complete(),i(n,s))}}),i(n,s),n.css(a,r)}function i(t,n){void 0===n&&(n=e.valueOrDefault(t.data("transitions"),{}));var i=new E(",");for(var r in n){var o=n[r];i.append("{0} {1}ms",a(r),o.duration)}var s=""+i;s||(s="none"),t.css(e.support.transitionPrefix+"transition",s)}function a(t){switch(t){case"borderRadiusTopLeft":return"border-top-left-radius";case"borderRadiusTopRight":return"border-top-right-radius";case"borderRadiusBottomLeft":return"border-bottom-left-radius";case"borderRadiusBottomRight":return"border-bottom-right-radius";case"glow":case"innerGlow":case"dropShadow":case"dropInnerShadow":switch(e.support.boxShadow){case"MozBoxShadow":return"-moz-box-shadow";case"WebkitBoxShadow":return"-webkit-box-shadow";default:return"box-shadow"}default:return t}}e.fn.cssAnimate=function(t,n){n=e.quickExtend({duration:400,enableCssTransition:!0},n);var i=e.isEmptyObject(t);if(i||0===n.duration)i||this.css(t),n.complete&&n.complete();else if(e.support.transition&&n.enableCssTransition){var a;if(n.complete){var r=e.count(t),o=0;a=function(){o++,o===r&&n.complete()}}var s=this;setTimeout(function(){s.animateProperties(t,{duration:n.duration,complete:a})},0)}else this.animate(t,{duration:n.duration,always:n.complete});return this},e.fn.stopCssAnimation=function(){return this.stopAllPropertiesAnimation(),this.stop(!0,!0),this},e.fn.stopAllPropertiesAnimation=function(){return this.stopPropertiesAnimation(this.getAnimatedProperties())},e.fn.getAnimatedProperties=function(){var t=this.data("transitions");return t?e.getKeys(t):[]},e.fn.stopPropertiesAnimation=function(n){n=e.asArray(n);var a=this,r=a.data("transitions");if(r)for(var o=0;o<n.length;o++){var s=n[o];s=t(s);var l=r[s];l&&(delete r[s],l.complete&&l.complete())}return i(a,r),this},e.fn.animateProperties=function(t,i){i=e.extend({duration:400},i),this.stopPropertiesAnimation(e.getKeys(t));for(var a in t)n(this,a,t[a],i)}}(p),function(){var e=document.body||document.documentElement,t=e.style;f.support.transition=!1,void 0!==t.WebkitTransition?(f.support.transitionEvent="webkitTransitionEnd",f.support.transitionPrefix="-webkit-",f.support.transition=!0):void 0!==t.MozTransition?(f.support.transitionEvent="transitionend",f.support.transitionPrefix="-moz-",f.support.transition=!0):void 0!==t.OTransition&&(f.support.transitionEvent="oTransitionEnd",f.support.transitionPrefix="-o-",f.support.transition=!0)}();var on={_keyStr:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",encode:function(e){var t,n,i,a,r,o,s,l="",c=0;for(e=on._utf8_encode(e);c<e.length;)t=e.charCodeAt(c++),n=e.charCodeAt(c++),i=e.charCodeAt(c++),a=t>>2,r=(3&t)<<4|n>>4,o=(15&n)<<2|i>>6,s=63&i,isNaN(n)?o=s=64:isNaN(i)&&(s=64),l=l+this._keyStr.charAt(a)+this._keyStr.charAt(r)+this._keyStr.charAt(o)+this._keyStr.charAt(s);return l},decode:function(e){var t,n,i,a,r,o,s,l="",c=0;for(e=e.replace(/[^A-Za-z0-9\+\/\=]/g,"");c<e.length;)a=this._keyStr.indexOf(e.charAt(c++)),r=this._keyStr.indexOf(e.charAt(c++)),o=this._keyStr.indexOf(e.charAt(c++)),s=this._keyStr.indexOf(e.charAt(c++)),t=a<<2|r>>4,n=(15&r)<<4|o>>2,i=(3&o)<<6|s,l+=String.fromCharCode(t),64!=o&&(l+=String.fromCharCode(n)),64!=s&&(l+=String.fromCharCode(i));return l=on._utf8_decode(l)},_utf8_encode:function(e){e=e.replace(/\r\n/g,"\n");for(var t="",n=0;n<e.length;n++){var i=e.charCodeAt(n);128>i?t+=String.fromCharCode(i):i>127&&2048>i?(t+=String.fromCharCode(i>>6|192),t+=String.fromCharCode(63&i|128)):(t+=String.fromCharCode(i>>12|224),t+=String.fromCharCode(i>>6&63|128),t+=String.fromCharCode(63&i|128))}return t},_utf8_decode:function(e){for(var t="",n=0,i=0,a=0;n<e.length;)if(i=e.charCodeAt(n),128>i)t+=String.fromCharCode(i),n++;else if(i>191&&224>i)a=e.charCodeAt(n+1),t+=String.fromCharCode((31&i)<<6|63&a),n+=2;else{a=e.charCodeAt(n+1);var r=e.charCodeAt(n+2);t+=String.fromCharCode((15&i)<<12|(63&a)<<6|63&r),n+=3}return t}};!function(e){function t(){if(void 0===n){var e=document.createElement("div"),t="background-image: -moz-linear-gradient(red, blue);background-image: -webkit-linear-gradient(red, blue);background-image: -o-linear-gradient(red, blue);background-image: linear-gradient(red, blue);background-image: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(0%, red), color-stop(100%, blue));",i=e.style;i.cssText=t,n=/(^|\s)-webkit-gradient/.test(i.backgroundImage)}return n}var n=void 0;e.fn.clearBackground=function(){return this.css("background-image",""),this},e.calculateGradientColorStopValue=function(t,n,i){return n||i?n?i?e.calculateMeanColor(t,n.location,i.location,e.Color(n.value),e.Color(i.value)):n.value:i.value:e.Color("black")},e.calculateGradientOpacityStopValue=function(e,t,n){if(!t&&!n)return 1;if(!t)return n.value;if(!n)return t.value;var i=e-t.location,a=n.location-t.location,r=n.value,o=t.value;return o+(r-o)/a*i},e.solidToGradient=function(e,t){return{gradient:{colorStops:[{location:0,value:e},{location:100,value:e}],opacityStops:[{location:0,value:1},{location:100,value:1}]},orientation:t}},e.isGradient=function(t){return e.isPlainObject(t)&&void 0!==t.gradient},e.fn.applyGradientColor=function(t){return this.setGradient(e.valueOrDefault(t.orientation,ct.Vertical),t.gradient)},e.cloneGradient=function(t,n){n=e.valueOrDefault(n,!1);var i=t.gradient;return{gradient:{colorStops:e.map(i.colorStops,function(t){return{location:t.location,value:n?e.Color(t.value):t.value}}),opacityStops:e.map(i.opacityStops,function(e){return{location:e.location,value:e.value}})},orientation:t.orientation}},e.getExplorer9GradientCSS=function(t){var n=t.orientation,i=t.gradient,a=e.uniqueID(),r=n===ct.Vertical?100:0,o=n===ct.Horizontal?100:0,s=new E("");
s.append('<?xml version="1.0" ?>'),s.append('<svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="0 0 1 1" preserveAspectRatio="none">'),s.append('<linearGradient id="{0}" gradientUnits="userSpaceOnUse" x1="0%" y1="0%" x2="{1}%" y2="{2}%">',a,o,r);for(var l=0;l<i.length;l++){var c=i[l],u=e.Color(c.color),d=e.valueOrDefault(c.stop,0);s.append('<stop offset="{0}%" stop-color="{1}" stop-opacity="{2}"/>',d,u.toHEX(),e.valueOrDefault(u[3],1))}s.append("</linearGradient>"),s.append('<rect x="0" y="0" width="1" height="1" fill="url(#{0})" />',a),s.append("</svg>");var g=on.encode(""+s);return"url(data:image/svg+xml;base64,"+g+")"},e.fn.setGradient=function(n,i){var a,r,o,s,l,c=this;if(e.isPlainObject(i)&&(i=e.normalizeGradientStops(i)),i[0].stop=0,i[i.length-1].stop=100,c.css("background-color",""),e.browser.msie&&9==parseInt(e.browser.version))c.css("background-image",e.getExplorer9GradientCSS({orientation:n,gradient:i}));else{a=new E(",");var u,d,g="linear-gradient"===e.support.linearGradient,f=t();for(g||!f?(u="linear-gradient({0})",d="{1} {0}%"):(u="-webkit-gradient({0})",d="color-stop({0}%, {1})"),n===ct.Vertical?g?a.append("to bottom"):f?a.append("linear, 50% 0%, 50% 100%"):a.append("top"):g?a.append("to right"):f?a.append("linear, 0% 50%, 100% 50%"):a.append("left"),r=0;r<i.length;r++){o=i[r],s=o.color,l=e.valueOrDefault(o.stop,0);var p=s.toRGB(),h="rgba({0},{1},{2},{3})".format(p[0],p[1],p[2],p[3]);a.append(d.format(Math.floor(l),h))}e(this).css("background-image",u.format(""+a))}}}(p),function(){function e(e,i){for(var a,r,e=t(e),i=n(i),o=0,s=0,l=e[0],c=i[0],u=[];l;)if(c||ee.warn("Bad gradient stops"),c.location<l.location){a||ee.warn("Bad gradient - Impossible that previous stop doesn't exist");var d=c.location,g=a.location,p=l.location,h=a.value,m=l.value,v=f.Color([Math.floor(f.calculateMeanValue(d,g,p,h[0],m[0])),Math.floor(f.calculateMeanValue(d,g,p,h[1],m[1])),Math.floor(f.calculateMeanValue(d,g,p,h[2],m[2])),f.calculateMeanValue(d,g,p,f.valueOrDefault(h[3],1),f.valueOrDefault(m[3],1))]);u.push({location:c.location,opacity:c.value,color:v}),s++,r=c,c=i[s]}else if(l.location<c.location){r||ee.warn("Bad gradient - Impossible that previous stop doesn't exist");var d=l.location,g=r.location,p=c.location,y=f.calculateMeanValue(d,g,p,r.value,c.value);u.push({location:l.location,opacity:y,color:l.value}),o++,a=l,l=e[o]}else u.push({location:l.location,opacity:c.value,color:l.value}),o++,a=l,l=e[o],s++,r=c,c=i[s];return c&&ee.warn("Bad gradient stops"),u}function t(e){return o(r(e),f.Color("black"),a,function(e){return f.Color(e)})}function n(e){return o(e,1,i,function(e){return e})}function i(e,t){return e===t}function a(e,t){return e&&t?f.color.isEqual(e,t):e===t}function r(e){for(var t=[],n=0;n<e.length;n++){var i=e[n];t.push({location:i.location,value:f.Color(i.value).toRGB()})}return t}function o(e,t,n,i){if(0==e.length)return[{location:0,value:t},{location:100,value:t}];for(var a=[],r=0;r<e.length;r++)a.push(e[r]);l(a)||c(a);var o=a[0],u=a[a.length-1];return 0!=o.location&&a.unshift({location:0,value:i(o.value)}),100!=u.location&&a.push({location:100,value:i(u.value)}),a=s(a,function(e,t,n){return t.location!=e.location||t.location!=n.location}),a[0].location==a[1].location&&a.shift(),a[a.length-1].location==a[a.length-2].location&&a.pop(),a=s(a,function(e,t,i){return!n(t.value,e.value)||!n(t.value,i.value)})}function s(e,t){if(e.length<3)return e;for(var n=[e[0]],i=1;i<e.length-1;i++){var a=e[i];t(e[i-1],a,e[i+1])&&n.push(a)}return n.push(e[e.length-1]),n}function l(e){if(e.length>1)for(var t=1;t<e.length;t++)if(e[t].location<e[t-1].location)return!1;return!0}function c(e){e.orderBy(function(e,t){return[e.location,t]},function(e,t){return e[0]!=t[0]?e[0]-t[0]:e[1]-t[1]})}f.normalizeGradientStops=function(t){for(var n=e(t.colorStops,t.opacityStops),i=[],a=0;a<n.length;a++){var r=n[a],o=r.color;o[3]=f.adjustFraction(f.valueOrDefault(o[3],1)*r.opacity,2),i.push({stop:r.location,color:o})}return i}}(p);var sn=fs(function(){this.create=function(e){function t(){e.onStartPooling(),n(),e.onEndPooling(),i=window.setTimeout(function(){t()},e.timeout)}function n(){if(r.isTrue()){var e,t;for(e in a)t=a[e],t&&t.isPostponed.isFalse()&&(t.currentValue=t.startCallback());for(e in a)t=a[e],t&&t.isPostponed.isFalse()&&t.finishCallback(t.currentValue)}}e=f.quickExtend({onStartPooling:cs,onEndPooling:cs,timeout:100},e);var i,a={},r=O.createConditionalPositive(),o={attach:function(e,t,n){return n=n?n:f.uniqueID(),a[n]={isPostponed:O.createConditionalNegative(),startCallback:e,finishCallback:t},{callbackId:n,detach:function(){o.detach(n)},postpone:function(e){o.postponePooling(n,e)},unPostpone:function(e){o.unPostponePooling(n,e)}}},detach:function(e){delete a[e]},postponePooling:function(e,t){var n=a[e];n&&n.isPostponed.setValue(!0,t)},unPostponePooling:function(e,t){var n=a[e];n&&n.isPostponed.setValue(!1,t)},getCallbacksLength:function(){return f.count(a)},stopPooling:function(e){r.setValue(!1,e)},startPooling:function(e){r.setValue(!0,e),r.isTrue()&&n()}};return t(),o}});!function(){function e(){var e=t();e||f.getWindowSizeEvent().fireNew(a)}function t(){var e=f.calculateWindowSize(),t=z.SizeEqualityComparer(a,e);return a=e,t}var n,i,a,r=f(window);f.getWindowSize=function(){return i?a:f.calculateWindowSize()},f.getWindowSizeEvent=function(){if(!n){var a=f.uniqueID();i=!0,r.bind("resize."+a,function(t){t.target!==window&&t.target!==document||e()}),t(),n=x.create()}return n},f.resetWindowSize=function(){e()},f.callRootFunction=function(e){try{var t=arguments.length-1;if(t>=0){for(var n=Array(t),i=0;t>i;i++)n[i]=arguments[i+1];var a;a=window.parent?window.parent:window;var r=a[e];void 0!==r&&r.apply(a,n)}}catch(o){}}}();var ln=fs(function(){function e(e){e=f.quickExtend({fontFamily:void 0,fontUrlPrefix:void 0,supportSVG:!1,supportEOT:!1,supportTTF:!1,supportWOFF:!1},e);var t=e.fontFamily,n=e.fontUrlPrefix,i=e.supportSVG,a=e.supportEOT,r=e.supportTTF,o=e.supportWOFF,s=new E(",").conditionalAppend(a,"url('{0}.eot') format('embedded-opentype')".format(n)).conditionalAppend(o,"url('{0}.woff') format('woff')".format(n)).conditionalAppend(r,"url('{0}.ttf') format('truetype')".format(n)).conditionalAppend(i,"url('{0}.svg') format('svg')".format(n));return""+(new E).append("@font-face {").append('font-family: "{0}";',t).conditionalAppend(a,"src:url('{0}.eot');".format(n)).append("src:").append(""+s).append(";}")}var t=w.create(function(){var t=f('<style rel="stylesheet" type="text/css" />').appendTo("head"),n=t[0],i=n[n.sheet?"sheet":"styleSheet"],a=!1;try{i.insertRule(e({fontFamily:"test",fontUrlPrefix:"test",supportTTF:!0}),0),a=!0}catch(r){}return t.remove(),a}),n=w.create(function(){return!f.browser.msie});this.create=function(i){function a(){d||(d=!0,c=r(),l=c[c.sheet?"sheet":"styleSheet"])}function r(){var t=i.fonts,n=new E;n.append('<style rel="stylesheet" type="text/css" >');for(var a=0;a<t.length;a++){var r=t[a],o=r.fontFamily,s=e(r);n.append(s),u[o]={ruleCSS:s}}return n.append("</style>"),f(""+n).appendTo("head")[0]}function o(e,t){e.deleteRule?e.deleteRule(t):e.removeRule(t)}function s(){f(c).remove(),c=f('<style rel="stylesheet" type="text/css" />').appendTo("head")[0];var e=c.sheet?"sheet":"styleSheet";l=c[e],l.cssText=f.map(u,function(e){return e.ruleCSS}).join("\n")}i=f.quickExtend({fonts:[]},i);var l,c,u={},d=!1,g=[],p=[],h={};return f.extend(h,{FontsUpdateBatch:Ae.create({batchFinishCallback:function(){g.length>0&&(h.addFonts(g),g=[]),p.length>0&&(h.removeFonts(p),p=[])}}),getStyleSheet:function(){return l},getRegisteredFonts:function(){return u},isRegisteredFont:function(e){return void 0!==u[e]},addFont:function(e,t){h.addFonts([{fontFamily:e,fontUrlPrefix:t}])},addFonts:function(n){if(a(),n=f.asArray(n),h.FontsUpdateBatch.isActive())return void f.merge(g,n);for(var i=[],r=0;r<n.length;r++){var o=n[r],c=o.fontFamily,d=u[c];if(void 0===d){var p=e(o);d={ruleCSS:p},u[c]=d,i.push(d)}}if(t.get())for(var r=0;r<i.length;r++){var m=i[r];l.insertRule(m.ruleCSS,0),m.rule=l.cssRules[0]}else i.length>0&&s()},removeFonts:function(e){if(e=f.asArray(e),h.FontsUpdateBatch.isActive())return void f.merge(p,e);for(var t=[],i=0;i<e.length;i++){var a=e[i],r=u[a];void 0!==r&&(t.push(r.rule),delete u[a])}if(n.get())for(var i=0;i<t.length;i++){var c=t[i],d=f.inArray(c,l.cssRules);o(l,d)}else t.length>0&&s()}}),i.fonts.length>0&&a(),h}}),cn={Stretched:"fill",Cover:"stretchedToFill",Fit:"stretched",FitWhenBigger:"fitWhenBigger",Original:"normal",Tile:"repeat",TileHorizontally:"repeatHorizontally",TileVertically:"repeatVertically",Custom:"custom"},un={NoImage:"state-no-image",LoadingImage:"state-loading-image",ImageLoaded:"state-image-loaded",ImageError:"state-image-error",PendingImage:"state-pending-image"},dn={},gn={calculateImageSizeInLayout:function(e,t,n){var i;if(!n||!e||0===n.width||0===n.height||0===e.width||0===e.height)return{width:0,height:0};if(f.isPlainObject(t))i={width:t.widthRatio*n.width,height:t.heightRatio*n.height};else switch(t){case cn.Stretched:case cn.Tile:case cn.TileHorizontally:case cn.TileVertically:i={width:n.width,height:n.height};break;case cn.Cover:i=f.stretch(e,n,!0,{ceilFractions:!0});break;case cn.Fit:i=f.stretch(e,n,!1,{ceilFractions:!0});break;case cn.FitWhenBigger:i=e.width>n.width||e.height>n.height?f.stretch(e,n,!1,{ceilFractions:!0}):f.quickExtend({},e);break;case cn.Original:i=f.quickExtend({},e);break;default:i=f.quickExtend({},e,n),ee.error("layout cant be default, layout : "+t)}return{width:Math.floor(i.width),height:Math.floor(i.height)}},isCustomLayout:function(e){return f.isPlainObject(e)}};!function(e){function t(e,t){var n=r(t);e.$imageWrapper.css(n),i(e,t),e.viewportChangedEvent.fireNew(n)}function n(t,n,a){function r(){a&&(s&&s.remove(),t.$image=l,t.setAlt(t.alt),n.imageInfo=o,n.$asyncImage=void 0,n.loadingImageInfo=void 0,l.quickShow()),c?a&&i(t,n):(e.unite(l,t.$imageWrapper).removeClass("unknown-size"),n.useBackgroundImage&&n.useBackgroundImageClass.set("use-image-element"),n.imageInfo.imageSize={width:l.prop("width"),height:l.prop("height")},n.useBackgroundImage&&n.useBackgroundImageClass.set("use-background-image"),i(t,n))}if(void 0!==n.pendingImageInfo){var o=n.pendingImageInfo;n.pendingImageInfo=void 0,n.$asyncImage&&(n.$asyncImage.unbind().remove(),n.$asyncImage=void 0);var s=t.$image;if(s&&s.unbind(),!o||o===dn)return s&&s.remove(),t.$imageWrapper.css("background-image",""),t.$backgroundImage.css("background-image",""),t.$image=void 0,n.imageInfo=void 0,void(o===dn?n.state.setValue(un.PendingImage):n.state.setValue(un.NoImage));var l=e("<img class='image-box-image-new' />").appendTo(t.$imageWrapper);a?(l.quickHide(),n.$asyncImage=l,n.loadingImageInfo=o):(s&&s.remove(),t.$image=l,n.imageInfo=o,t.setAlt(t.alt));var c=void 0!==o.imageSize;n.state.setValue(un.LoadingImage),l.one("load",function(){n.state.setValue(un.ImageLoaded),r()}).one("error",function(){r(),n.state.setValue(un.ImageError)}),e.unite(l,t.$imageWrapper).toggleClass("unknown-size",!c),l.attr("src",o.imageUrl),t.$backgroundImage.css("background-image","url("+o.imageUrl+")"),c&&i(t,n)}}function i(t,n){if(n.viewPort&&n.position&&n.layout&&n.imageInfo&&void 0!==n.imageInfo.imageSize){var i=n.forceBackgroundImage&&!!e.support.backgroundSize||g()&&d(n.borderRadius)||n.hasFixedBackgroundImage;n.useBackgroundImageClass.set(i?"use-background-image":"use-image-element"),n.useBackgroundImage=i;var l=void 0;if(i)t.$imageWrapper.toggleClass("background-fixed",n.hasFixedBackgroundImage),t.$imageWrapper.css("background-image","url("+n.imageInfo.imageUrl+")"),u(n.layout)?t.$imageWrapper.css("background-size",a(n)):(l=gn.calculateImageSizeInLayout(n.imageInfo.imageSize,n.layout,o(n)),t.$imageWrapper.css("background-size","{width}px {height}px".format(l)));else{t.$imageWrapper.css("background-image",""),l=gn.calculateImageSizeInLayout(n.imageInfo.imageSize,n.layout,o(n));var c;c=n.layout===cn.Stretched?{marginLeft:0,marginTop:0}:s(n.position,l,r(n),n.layout),u(n.layout)?t.$backgroundImage.css("background-size",a(n)).css(l).css(c):t.$image.css(l).css(c).attr("width",l.width).attr("height",l.height)}n.imageSizeInLayout=l}}function a(e){var t=e.maxRepeatSize;if(t){var n=e.imageInfo.imageSize;if(n.width>t.width||n.height>t.height){var i=gn.calculateImageSizeInLayout(e.imageInfo.imageSize,cn.Fit,t);return"{width}px {height}px".format(i)}}return""}function r(e){var t=e.viewPort,n=e.borderWidth,i=n.left+n.right,a=n.top+n.bottom;return{width:t.width-i,height:t.height-a}}function o(e){var t=e.virtualViewport;return void 0!==t?t:r(e)}function s(t,n,i,a){var r=0,o=0;if(e.isPlainObject(a))o=a.leftRatio*i.width,r=a.topRatio*i.height;else{switch(t.horizontal){case"right":o=i.width-n.width;break;case"center":o=Math.round(i.width/2-n.width/2)}switch(t.vertical){case"bottom":r=i.height-n.height;break;case"center":r=Math.round(i.height/2-n.height/2)}}return{marginTop:r,marginLeft:o}}function l(e,t){return void 0===e||void 0===t?e===t:e.horizontal===t.horizontal&&e.vertical===t.vertical}function c(t,n){return void 0===t||void 0===n?t===n:e.isPlainObject(t)!==e.isPlainObject(n)?!1:e.isPlainObject(t)?t.leftRatio===n.leftRatio&&t.topRatio===n.topRatio&&t.widthRatio===n.widthRatio&&t.heightRatio===n.heightRatio:t===n}function u(e){switch(e){case cn.TileHorizontally:case cn.TileVertically:case cn.Tile:return!0;default:return!1}}function d(e){return e&&(e.topLeft>0||e.topRight>0||e.bottomLeft>0||e.bottomRight>0)}function g(){return!!e.browser.opera}var f=e.createFieldsEqualityComparer(["imageUrl"]);e.fn.makeImageBoxNew=function(a){a=e.extend({autoLoad:!0,optimizeSpeed:!0,layout:cn.Fit,position:{vertical:"center",horizontal:"center"},viewPort:{width:0,height:0},maxRepeatSize:!1},a);var s={},g=this.addClass("image-box-new").toggleClass("optimize-speed",a.optimizeSpeed),p=e("<div class='image-box-image-wrapper'></div>").appendTo(g),h=e("<div class='image-box-background-image'></div>").appendTo(p),m={id:e.weakID("imagebox"),maxRepeatSize:a.maxRepeatSize,loadingAnimation:void 0,viewPort:void 0,layout:void 0,position:void 0,imageInfo:void 0,pendingImageInfo:void 0,loadingImageInfo:void 0,imageSizeInLayout:void 0,forceBackgroundImage:!1,useBackgroundImage:!1,borderRadius:{bottomRight:0,topRight:0,topLeft:0,bottomLeft:0},borderWidth:{top:0,left:0,bottom:0,right:0},layoutClass:Ie.createContextClass(p),horizontalPositionClass:Ie.createContextClass(p),verticalPositionClass:Ie.createContextClass(p),useBackgroundImageClass:Ie.createContextClass(p),stateClass:Ie.createContextClass(g),state:_.create(void 0,{valueChangeCallback:function(e){m.stateClass.set(e),s.stateChangedEvent.fire(s,e)}})};return e.extend(s,{$element:g,$imageWrapper:p,$backgroundImage:h,$image:void 0,stateChangedEvent:x.create(),viewportChangedEvent:x.create(),getImageElement:function(){return e.unite(s.$image,s.$backgroundImage)},getState:function(){return m.state},trackStates:function(e,t){return m.state.trackValues(e,t)},setImage:function(e,t){if(void 0!==e){"string"==typeof e&&(e={imageUrl:e,imageSize:void 0}),e&&e!==dn&&!e.imageUrl&&(e=null);var i=f(e,m.imageInfo)&&void 0===m.loadingImageInfo,r=f(e,m.loadingImageInfo);return i||r?void(m.pendingImageInfo=void 0):(m.pendingImageInfo=e,a.autoLoad&&n(s,m,t),s)}},clearImage:function(){return s.setImage(null),s},loadImage:function(e){return n(s,m,e),s},setBorderWidth:function(n){n=e.quickExtend({top:0,left:0,right:0,bottom:0},m.borderWidth,n),e.borderWidthEqualityComparer(m.borderWidth,n)||(m.borderWidth=n,g.css({"border-top-width":n.top,"border-left-width":n.left,"border-bottom-width":n.bottom,"border-right-width":n.right}),t(s,m),e.updateInnerBorderRadius(s.$imageWrapper,m.borderRadius,m.borderWidth))},setBorderRadius:function(t){if(t=e.quickExtend({topLeft:0,topRight:0,bottomLeft:0,bottomRight:0},m.borderRadius,t),!e.borderRadiusEqualityComparer(m.borderRadius,t)){var n=m.borderRadius;m.borderRadius=t,e.updateInnerBorderRadius(s.$imageWrapper,m.borderRadius,m.borderWidth),d(n)!==d(t)&&i(s,m)}return this},clearVirtualViewport:function(){s.setVirtualViewport(void 0)},setVirtualViewport:function(n){e.sizesEqual(m.virtualViewport,n)||(m.virtualViewport=n,t(s,m))},setViewPort:function(n,i){n=e.quickExtend({width:0,height:0},m.viewPort,n),e.sizesEqual(m.viewPort,n)&&!i||(m.viewPort=n,t(s,m))},getViewportForLayout:function(){return o(m)},getActualViewPort:function(){return r(m)},setAlt:function(e){s.alt=e,s.$image&&(e?s.$image.attr("alt",e):s.$image.removeAttr("alt"))},setPosition:function(t){t=e.quickExtend({vertical:"center",horizontal:"center"},m.position,t),l(t,m.position)||(m.position=t,m.horizontalPositionClass.set("horizontal-"+t.horizontal),m.verticalPositionClass.set("vertical-"+t.vertical),i(s,m))},setLayout:function(e){c(e,m.layout)||(m.layout=e,m.layoutClass.set(e),s.$imageWrapper.chooseClass(u(e),"tile-layout","non-tile-layout"),i(s,m))},getLayout:function(){return m.layout},synchronizeViewPort:function(){s.setViewPort(g.elementSize())},toggleForceBackgroundImage:function(e){m.forceBackgroundImage=e,i(s,m)},toggleHasFixedBackgroundImage:function(e){m.hasFixedBackgroundImage=e,i(s,m)},getImageSizeInLayout:function(){return m.imageSizeInLayout},setLoadingAnimation:function(e){m.loadingAnimation=e,g.toggleClass("has-loading-animation",!!e)}}),s.setViewPort(a.viewPort),s.setPosition(a.position),s.setLayout(a.layout),a.imageUrl?s.setImage({imageUrl:a.imageUrl,imageSize:a.imageSize}):s.clearImage(),s}}(p),function(e){function t(e,t){e.length=0,Array.prototype.push.apply(e,t)}var n=e('<style rel="stylesheet" type="text/css" />').appendTo("head")[0],i=n.sheet?"sheet":"styleSheet",a=n[i],r=a.rules?"rules":"cssRules",o=a.deleteRule?"deleteRule":"removeRule",s=a.ownerNode?"ownerNode":"owningElement",l=/^([^{]+)\{([^}]*)\}/m,c=/([^:]+):([^;}]+)/;a.disabled=!1;var u=e.rule=function(e,n){if(!(this instanceof u))return new u(e,n);if(this.sheets=u.sheets(n),e&&l.test(e)&&(e=u.clean(e)),"object"!=typeof e||e.exec){if(t(this,this.sheets.cssRules().get()),e)return this.filter(e)}else t(this,e.get?e.get():e.splice?e:[e]);return this};e.extend(u,{sheets:function(t){var n=t;return"object"!=typeof n&&(n=e.makeArray(document.styleSheets)),n=e(n).not(a),"string"==typeof t&&(n=n.ownerNode().filter(t).sheet()),n},rule:function(e){return e.selectorText?["",e.selectorText,e.style.cssText]:l.exec(e)},appendTo:function(e,t,n){switch(typeof t){case"string":t=this.sheets(t);case"object":if(t[0]&&(t=t[0]),t[i]&&(t=t[i]),t[r])break;default:if("object"==typeof e)return e;t=a}var o;!n&&(o=this.parent(e))&&(e=this.remove(e,o));var s=this.rule(e);return t.addRule?t.addRule(s[1],s[2]||";"):t.insertRule&&t.insertRule(s[1]+"{"+s[2]+"}",t[r].length),t[r][t[r].length-1]},remove:function(t,n){if(n=n||this.parent(t),n!=a){var i=n?e.inArray(t,n[r]):-1;-1!=i&&(t=this.appendTo(t,0,!0),n[o](i))}return t},clean:function(t){return e.map(t.split("}"),function(e){return e?u.appendTo(e+"}"):void 0})},parent:function(t){if("string"==typeof t||!e.browser.msie)return t.parentStyleSheet;var n;return this.sheets().each(function(){return-1!=e.inArray(t,this[r])?(n=this,!1):void 0}),n},outerText:function(e){return e&&e.selectorText?[e.selectorText+"{","	"+e.style.cssText,"}"].join("\n").toLowerCase():""},text:function(e,t){return void 0!==t&&(e.style.cssText=t),e?e.style.cssText.toLowerCase():""}}),u.fn=u.prototype={pushStack:function(e,t){var n=u(e,t||this.sheets);return n.prevObject=this,n},end:function(){return this.prevObject||u(0,[])},filter:function(t){var n;return t||(t=/./),t.split?(n=e.trim(t).toLowerCase().split(/\s*,\s*/),t=function(){var t=this.selectorText||"";return!!e.grep(t.toLowerCase().split(/\s*,\s*/),function(t){return-1!=e.inArray(t,n)}).length}):t.exec&&(n=t,t=function(){return n.test(this.selectorText)}),this.pushStack(e.grep(this,function(e,n){return t.call(e,n)}))},add:function(t,n){return this.pushStack(e.merge(this.get(),u(t,n)))},is:function(e){return!(!e||!this.filter(e).length)},not:function(t,n){return t=u(t,n),this.filter(function(){return-1==e.inArray(this,t)})},append:function(t){var n,i=this;return e.eachItem(t.split(/\s*;\s*/),function(e,t){(n=c.exec(t))&&i.css(n[1],n[2])}),this},text:function(e){return arguments.length?this.each(function(){u.text(this,e)}):u.text(this[0])},outerText:function(){return u.outerText(this[0])}},e.eachEntry({ownerNode:s,sheet:i,cssRules:r},function(t,n){var i=n==r;e.fn[t]=function(){return this.map(function(){return i?e.makeArray(this[n]):this[n]})}}),e.fn.cssText=function(){return this.filter("link,style").eq(0).sheet().cssRules().map(function(){return u.outerText(this)}).get().join("\n")},e.eachItem("remove,appendTo,parent".split(","),function(t,n){u.fn[n]=function(){var t=e.makeArray(arguments),i=this;return t.unshift(0),this.each(function(e){t[0]=this,i[e]=u[n].apply(u,t)||i[e]})}}),e.eachItem("each,index,get,size,eq,slice,map,attr,andSelf,css,show,hide,toggle,queue,dequeue,stop,animate,fadeIn,fadeOut,fadeTo".split(","),function(t,n){u.fn[n]=e.fn[n]}),e(window).unload(function(){e(a).cssRules().remove()})}(p);var fn={Shift:"shift",None:"none",X:"x",Y:"y",All:!1},pn={Scrolling:1,Interactive:2},hn=function(){var e=C.extend("InteractiveBehaviour",{init:function(e,t){var n=this;this._isEnabled=O.createConditionalPositive(),this._id=f.weakID(),this._behaviourClassName=t,this.$element=e,n._isEnabled.valueChangedEvent.bindAndExecute(function(){e.toggleClass(t,n._isEnabled.isTrue())})},toggleEnabled:function(e,t){this._isEnabled.setValue(e,t)},isEnabled:function(){return this._isEnabled.getValue()}});return e.create=function(t,n){return new e(t,n)},e}(),mn=fs(function(){function e(e){e=f.quickExtend({start:cs,drag:cs,end:cs,create:f.identity,defaultBehaviourOptions:{}},e);var r=e.start,o=e.drag,s=e.end,l=e.create,c=e.defaultBehaviourOptions,u={startDragging:function(e){function l(e,t){q._absoluteMouseOffset=e;var n=e;if(T){var i=f.absoluteToFixedOffset(e);q._fixedMouseOffset=i,n=i}var a=q.deltaX,r=q.deltaY,s=n.left-O+q.scrollDeltaX,l=n.top-M+q.scrollDeltaY;Math.abs(s)>S||Math.abs(l)>S?S=0:(s=0,l=0),Math.abs(s)>u?(0!==u&&w("x"),u=0):s=0,Math.abs(l)>d?(0!==d&&w("y"),d=0):l=0;var c=s-a,g=l-r;q.deltaX=s,q.deltaY=l,q.mouseOffset=n,q.deltaChangeX=c,q.deltaChangeY=g,q.draggingTrigger=t,(0!==c||0!==g||0===S&&!q.draggingStarted)&&(o.call(p,H,q),y.call(p,H,q),q.draggingStarted||(q.draggingStarted=!0,b.call(p,H,q)))}e=f.quickExtend({event:void 0,$element:void 0,$scrollParent:void 0,distance:0,distancePerAxis:0,axisDistanceReachedCallback:cs,until:"vmouseup",onStart:cs,onEnd:cs,onDrag:cs,onDraggingStarted:cs,eventsCatcherClass:"",isVirtual:!1,behaviourOptions:{}},e);var u,d,g=e.event,p=e.$element,h=e.until,m=e.onStart,v=e.onEnd,y=e.onDrag,b=e.onDraggingStarted,C=e.eventsCatcherClass,I=e.isVirtual,S=e.distance,P=e.distancePerAxis,w=e.axisDistanceReachedCallback,E=f.valueOrCalculate(e.$scrollParent,function(){return p.scrollParent()}),T=p.hasFixedAncestor(),x=f.quickExtend({autoScrollFactory:void 0},c,e.behaviourOptions);f.isPlainObject(P)?(u=P.x,d=P.y):(u=P,d=P),a.execute();var k=C;C instanceof _||(k=_.createTextual(C));var D=k.valueChangedEvent.bindAndExecute(function(){n.set(k.getValue())});t.appendTo("body");var F,A,B=f.getMouseOffset(g),V=f.absoluteToFixedOffset(B),L=T?V:B,M=L.top,O=L.left,z=!1;T||E.is(document)||E[0]===window||(z=!0,E.bind("scroll.draggingBehaviour",function(){q.refreshScrollParent()}),F=E.scrollTop(),A=E.scrollLeft());var N=void 0,R=x.autoScrollFactory;T&&(R=!1),R&&(N=R(E).addAutoScrollCallback(function(){q.refreshScrollParent()}));var H=g,q={$element:p,data:{},behaviourOptions:x,isVirtual:I,deltaX:0,deltaY:0,actualDeltaX:0,actualDeltaY:0,deltaChangeX:0,deltaChangeY:0,scrollDeltaX:0,scrollDeltaY:0,draggingStarted:!1,shiftKey:g.shiftKey,altKey:g.altKey,_absoluteMouseOffset:B,_fixedMouseOffset:V,mouseOffset:L,initialMouseOffset:L,getFixedMouseOffset:function(){return T?q.mouseOffset:f.absoluteToFixedOffset(q._absoluteMouseOffset)},getAbsoluteMouseOffest:function(){return q._absoluteMouseOffset},refreshScrollParent:function(){if(z){var e=q.scrollDeltaY,t=q.scrollDeltaX;q.scrollDeltaY=E.scrollTop()-F,q.scrollDeltaX=E.scrollLeft()-A,q.initialMouseOffset=f.translateOffset(L,{top:-q.scrollDeltaY,left:-q.scrollDeltaX}),t===q.scrollDeltaX&&e===q.scrollDeltaY||l(q._absoluteMouseOffset,pn.Scrolling)}}};r.call(p,g,q),m.call(p,g,q),f(document).onceAny(h,function(e){s.call(p,e,q),v.call(p,e,q),f(document).unbind(".draggingBehaviour"),N&&N.stop(),z&&E.unbind(".draggingBehaviour"),t.detach(),D.unbind()});var U=f(document).scrollTop(),$=f(document).scrollLeft();f(document).bind("vmousemove.draggingBehaviour",function(e){H=e,q.shiftKey=e.shiftKey,q.altKey=e.altKey,l(f.getMouseOffset(e),pn.Interactive),e.preventDefault()}),T||f(document).bind("scroll.draggingBehaviour",function(){var e=f(document).scrollTop(),t=f(document).scrollLeft(),n=q.mouseOffset,i=e-U,a=t-$;if(0!==a||0!==i){var r={top:n.top+i,left:n.left+a};U=e,$=t,l(r,pn.Scrolling)}}),g.stopPropagation(),g.preventDefault(),i=!1,l(B,pn.Interactive)}};return l(u)}var t,n,i=!1,a=I.create(function(){t=f("<div class='window-events-catcher'></div>"),n=Ie.createContextClass({getTarget:function(){return t}})});this.Draggable=e({defaultBehaviourOptions:{axis:!1,containment:!1,horizontalAnchor:"left",verticalAnchor:"top"},start:function(e,t){var n=f(this),i=t.behaviourOptions,a=f.evaluateWhenFunction(i.horizontalAnchor,n),r=f.evaluateWhenFunction(i.verticalAnchor,n),o=i.axis,s=f.evaluateWhenFunction(i.containment);t.horizontalAnchor=a,t.verticalAnchor=r;var l=!1;o===fn.Shift&&(o=function(e){return e.shiftKey}),f.isFunction(o)&&(l=o,o=!1);var c={left:-(1/0),top:-(1/0),right:1/0,bottom:1/0,width:1/0,height:1/0},u=!1;s&&(u=!0,c="parent"==s?n.parent().getArea():"window"===s?f.getWindowArea():f.isPlainObject(s)?s:s.getArea(),n.moveToArea(c,{horizontalAnchor:a,verticalAnchor:r})),t.containmentArea=c;var d=n.offset(),g=n.position(),p=n.scrollParent();n.offsetParent().is(p)&&(g.left+=p.scrollLeft(),g.top+=p.scrollTop());var h={left:d.left-g.left,top:d.top-g.top};u?t.relativeContainmentArea=f.extendedAreaInfo({left:c.left-h.left,top:c.top-h.top,width:c.width,height:c.height}):t.relativeContainmentArea=c,f.extend(t,{startPosition:f.extend({},g),startOffset:f.extend({},d),position:f.extend({},g),offset:f.extend({},d),queryAxisLocking:l,axis:o,positioningParentOffset:h}),"right"===a?(t.posRight=parseInt(n.css("right")),t.startRight=t.posRight):t.posLeft=g.left,"bottom"===r?(t.posBottom=parseInt(n.css("bottom")),t.startBottom=t.posBottom):t.posTop=g.top,t.width=n.outerWidth(),t.height=n.outerHeight()},drag:function(e,t){var n=(t.behaviourOptions,t.relativeContainmentArea),i=t.horizontalAnchor,a=t.verticalAnchor,r={},o=0,s=0,l=t.queryAxisLocking;l&&(l(t)?t.axis||0===t.deltaChangeX&&0===t.deltaChangeY||(Math.abs(t.deltaChangeX)>Math.abs(t.deltaChangeY)?t.axis=fn.X:t.axis=fn.Y):t.axis=!1);var c=t.startOffset,u=t.startPosition,d=t.axis;if(!d||d===fn.X){if(o=t.deltaX,"right"===i){var g=t.posRight-o,f=t.startRight+t.width+t.startOffset.left-t.containmentArea.right,p=t.startRight+t.startOffset.left-t.containmentArea.left;r.right=Math.max(Math.min(g,p),f),g>p&&(o-=g-p),f>g&&(o-=g-f)}else{var h=t.posLeft+o,m=n.right-t.width,v=n.left;r.left=Math.max(Math.min(h,m),v),h>m&&(o-=h-m),v>h&&(o-=h-v)}t.offset.left=c.left+(o-t.scrollDeltaX),t.position.left=u.left+o}if(!d||d===fn.Y){if(s=t.deltaY,"bottom"===a){var y=t.posBottom-s,b=t.startBottom+t.height+t.startOffset.top-t.containmentArea.bottom,C=t.startBottom+t.startOffset.top-t.containmentArea.top;r.bottom=Math.max(Math.min(y,C),b),y>C&&(s-=y-C),b>y&&(s-=y-b)}else{var I=t.posTop+s,S=n.bottom-t.height,P=n.top;r.top=Math.max(Math.min(I,S),P),I>S&&(s-=I-S),P>I&&(s-=I-P)}t.offset.top=c.top+(s-t.scrollDeltaY),t.position.top=u.top+s}t.actualDeltaX=o,t.actualDeltaY=s,t.isVirtual||t.$element.css(r)},create:function(e){return{makeDraggable:function(e,t){t=f.quickExtend({cancel:".button, .widget, :input, .ui-slider, .cancel-dragging, body.scrolling-mode-touch .scrollable-pane",distance:3,behaviourClassName:"behaviour-draggable"},t);var n=t.cancel,a=t.distance,r=t.contextOptions,o=t.draggingHandle,s=t.behaviourClassName,l=hn.create(e,s);return e.on("vmousedown",o,function(t){if(!i&&l.isEnabled()){var o=t.target,s=f.evaluateWhenFunction(n,o);if(s!==!0&&s!==!1){var c=s;s=!1;var u=f(o).closest(c);if(u.length>0){var d=e.closest(c);0!==d.length&&d.is(u)||(s=!0)}}if(!s){i=!0;var g=function(){mn.Draggable.startDragging(f.quickExtend({$element:e,event:t,until:"vmouseup"},f.evaluateWhenFunction(r),{distance:0}))};if(a>0){var p=f.onDistanceMove(t,a,g);f(document).one("vmouseup",function(){p()})}else g();t.preventDefault(),f(document).one("vmousedown",function(){i=!1})}}}),l},startDragging:function(t){t=f.extend({$element:void 0,draggingHelper:void 0,droppableAreas:void 0},t);var n=t.draggingHelper,i=t.droppableAreas,a=t.$element;if(i){i=f.quickExtend({getAnchorOffset:void 0,areasInfo:[],overAreasCallback:cs,dropCallback:cs,isSingleDropTarget:!0},i);var r=i.getAnchorOffset,o=i.areasInfo,s=i.isSingleDropTarget,l=i.overAreasCallback,c=i.dropCallback;t.onDrag=f.hookAfterMethod(t.onDrag,function(e,t){var n=t.mouseOffset;r&&(n=f.getRelativeArea(n,r()));for(var i=[],a=0;a<o.length;a++){var c=o[a];if(f.isInsideArea(c.area,n)&&(i.push(c),s))break}l(i)}),t.onEnd=f.hookAfterMethod(t.onEnd,function(e,t){var n=t.mouseOffset;r&&(n=f.getRelativeArea(n,r()));for(var i=[],a=0;a<o.length;a++){var l=o[a];if(f.isInsideArea(l.area,n)&&(i.push(l),s))break}c(i)})}if(n){n===!0&&(n={}),n=f.quickExtend({create:function(e){return e.clone()},helperClass:"dragging-helper",appendTo:function(){return a.parent()},setOffset:function(e){e.offset(a.offset())}},n);var u=n.create(a).appendTo(f.evaluateWhenFunction(n.appendTo)).addClass(n.helperClass);n.setOffset(u),t.$element=u,t.onEnd=f.hookAfterMethod(t.onEnd,function(){u.remove()})}e.startDragging(t)}}}}),this.create=function(t){return e(t)}}),vn={Simultaneously:1,EnterBeforeExit:2,ExitBeforeEnter:3},yn=fs(function(){this.create=function(e){e=f.quickExtend({getSettingsValue:cs,setSettingsValue:cs},e);var t={},n={},i={},a={getValue:function(a,r){if(n[a])return t[a];var o=e.getSettingsValue(a);if(void 0!==o)try{o=JSON.parse(o)}catch(s){}var l=void 0!==o;return l||(o=r),i[a]=l,t[a]=o,n[a]=!0,o},setValue:function(i,a,r){r=f.quickExtend({onSuccess:cs,onError:cs},r),t[i]=a,n[i]=!0,e.setSettingsValue(i,JSON.stringify(a),r)},createObservableObject:function(e,i,r){r=f.extend({updateServerOnChange:!0},r);var o=r.observableObjectOptions,s=r.updateOptions,l=r.updateServerOnChange,c=a.getValue(e,i),u=_.create(c,o);return u.valueChangedEvent.bind(function(i){l?a.setValue(e,i,s):(t[e]=i,n[e]=!0)}),u},createObservableFlag:function(e,t,n,i){var r=a.getValue(e,t),o=O.create(r,n);return o.valueChangedEvent.bind(function(t){a.setValue(e,t,i)}),o}};return a}});!function(e){var t=void 0;e.isIOS=function(){if(void 0===t){var e=navigator.appVersion;t=/iphone|ipad|ipod/gi.test(e)}return t},e.getIOSWindowHeight=function(){var e=document.documentElement.clientWidth/window.innerWidth;return window.innerHeight*e},e.getHeightOfIOSToolbars=function(){var t=(0===window.orientation?screen.height:screen.width)-e.getIOSWindowHeight();return t>1?t:0}}(p);var bn=fs(function(){function e(e,t){switch(t){case"width":case"outerWidth":case"height":case"outerHeight":case"offset":return e[t]();case"scrollHeight":return e[0].scrollHeight;case"scrollWidth":return e[0].scrollWidth;default:return e.css(t)}}function t(e,t,n){switch(e){case"offset":return t.top===n.top&&t.left===n.left;default:return t===n}}var n=this,i=x.create(),a=Ae.create(),r=h.createPolling(function(){a.start(),i.fireNew(f.now()),a.finish()},100),o=!1;this.IsActive=O.createConditionalNegative({valueChangeCallback:function(e){e?r.start():r.stop()}}),this.setInterval=function(e){r.setDefaultInterval(e)},this.checkNow=function(){o=!0,r.poll(),o=!1},this.create=function(r,s){s=f.quickExtend({minInterval:0},s);var l=f.asArray(s.properties),c=s.callback,u=s.minInterval;if(void 0===c)throw Error("Style change callback is missing");
var d,g=[],p=function(n){d=n;for(var i=void 0,o=0;o<l.length;o++){var s=l[o],u=e(r,s),f=g[o];void 0!==f&&t(s,f,u)||(g[o]=u,i||(i={}),i[s]={value:u,prevValue:f})}return i?(a.performOperation(function(){c(i)}),!0):!1},h=f.weakID("styleListener"),m=x.createEventListener(i,function(e){!o&&void 0!==d&&u>e-d||p(e)},{activationCallback:function(){n.IsActive.setTrue(h)},deactivationCallback:function(){n.IsActive.setFalse(h)}});return m.checkForChanges=function(){return p(f.now())},m}}),Cn={Component:1,Sprite:2,Font:3};!function(e){e.getIconClass=function(e,t,n){var i="";switch(n&&(i=" icon-size-"+n),t){case Cn.Font:return"font-icon icon-"+e+i;case Cn.Sprite:return"image-icon sprite-icon sprite-"+e;case Cn.Component:return"image-icon image-sprite-"+e;default:return t+e}}}(p);var In=fs(function(){function e(e,t){var n=Math.max(0,parseInt(e,10));return t?Math.floor(255*Math.min(100,n)/100):Math.min(255,n)}function t(e){switch(e){case pt.R:return 0;case pt.G:return 1;case pt.B:return 2;case pt.H:return 0;case pt.S:return 1;case pt.L:return 2}}this.compositeColorsEqualityComparer=function(e,t){var n=In.isGradient(e),i=In.isGradient(t);if(n!==i)return!1;if(n){var a=e.orientation,r=t.orientation;if(a!==r)return!1;var o=e.gradient,s=t.gradient,l=f.arraysEqual(o.colorStops,s.colorStops,{equalityComparer:function(e,t){return e.location!==t.location?!1:In.bindableColorsEqualityComparer(e.value,t.value)}});return l?f.arraysEqual(o.opacityStops,s.opacityStops,{equalityComparer:function(e,t){return e.location===t.location&&e.value===t.value}}):!1}return In.bindableColorsEqualityComparer(e,t)},this.bindableColorsEqualityComparer=function(e,t){var n=Ka.isColorBinding(e),i=Ka.isColorBinding(t);return n!==i?!1:n?Ka.themeColorBindingEqualityComparer(e,t):f.colorsEqual(e,t)},this.cloneColor=function(e){return e?f.isGradient(e)?In.cloneGradient(e):Ka.isSolidColorBinding(e)?In.cloneSolidColorBinding(e):f.Color(e):e},this.cloneSolidColorBinding=function(e){return e?Ka.createThemeColorBinding(e.mainColor,{variation:e.variation,opacity:e.opacity,brightness:e.brightness}):e},this.cloneGradient=function(e){if(!e)return e;var t=e.gradient;return{gradient:{colorStops:f.map(t.colorStops,function(e){return{location:e.location,value:In.cloneColor(e.value)}}),opacityStops:f.map(t.opacityStops,function(e){return{location:e.location,value:e.value}})},orientation:e.orientation}},this.convertToApplicableColor=function(e){if(!e)return e;if(Ka.isSolidColorBinding(e)||"string"==typeof e)return e;if(In.isGradient(e))return In.mapGradientColorValues(e,function(e){return In.convertToApplicableColor(e)});var t=f.Color(e).toCSS();return"rgb()"===t?"rgb(0,0,0)":t},this.toggleGradientOrientation=function(e){return e?In.adjustGradientOrientation(e,e.orientation===ct.Vertical?ct.Horizontal:ct.Vertical):e},this.adjustGradientOrientation=function(e,t){return e?(e=In.cloneGradient(e),e.orientation=f.evaluateWhenFunction(t),e):e},this.reverseGradient=function(e){if(!e)return e;e=In.cloneGradient(e);var t=e.gradient;return t.colorStops=f.reverseArray(t.colorStops,function(e){return{value:e.value,location:e.location=100-e.location}}),t.opacityStops=f.reverseArray(t.opacityStops,function(e){return{value:e.value,location:e.location=100-e.location}}),e},this.getBrightness=function(e){return f.adjustFraction(f.getCoordinateValue(e,Gt.Brightness),2)},this.getLuma=function(e){var e=e.substring(1),t=parseInt(e,16),n=t>>16&255,i=t>>8&255,a=t>>0&255;return.2126*n+.7152*i+.0722*a},this.getHue=function(e){return f.adjustFraction(f.getCoordinateValue(e,Gt.Hue),2)},this.getSaturation=function(e){return f.adjustFraction(f.getCoordinateValue(e,Gt.Saturation),2)},this.changeBrightness=function(e,t){return e=f.Color(e).toHSL(),f.Color([e[0],e[1],Math.max(0,Math.min(1,f.adjustFraction(t,2)))],"HSL")},this.isGradient=function(e){return!!e&&void 0!==e.gradient},this.getGradientColorValues=function(e){return f.map(e.gradient.colorStops,function(e){return e.value})},this.mapGradientColorValues=function(e,t){var n=e.gradient.opacityStops,i=e.gradient.colorStops;return{gradient:{opacityStops:f.map(n,function(e){return f.extend({},e)}),colorStops:f.map(i,function(e){return{location:e.location,value:t(e.value)}})},orientation:e.orientation}},this.getColorComponentValue=function(e,n){return e=In.convertToColorSpace(e,In.getColorSpaceByComponent(n)),e[t(n)]},this.getCompositeColorOpacity=function(e){return Ka.isSolidColorBinding(e)?f.valueOrDefault(e.opacity,1):In.isGradient(e)?f.valueOrDefault(e.opacity,1):In.getOpacity(e)},this.adjustOpacity=function(e,t){if(Ka.isSolidColorBinding(e))return Ka.adjustThemeColorBinding(e,{opacity:t(f.valueOrDefault(e.opacity,1))});if(In.isGradient(e)){var n=In.cloneGradient(e);return n.opacity=t(f.valueOrDefault(n.opacity,1)),n}e=f.Color(e);var i=f.merge([],e);return i[3]=t(f.valueOrDefault(i[3],1)),f.Color(i,e.space)},this.adjustBrightness=function(e,t){return e?In.isGradient(e)?(e=In.cloneGradient(e),void f.eachItem(e.gradient.colorStops,function(e,n){n.value=In.adjustBrightness(n.value,t)})):Ka.isSolidColorBinding(e)?Ka.adjustThemeColorBinding(e,{brightness:Math.min(1,Math.max(-1,t(f.valueOrDefault(e.brightness,0))))}):In.adjustColorComponent(e,pt.L,t):e},this.getOpacity=function(e){return e=f.Color(e),f.valueOrDefault(e[3],1)},this.adjustColorComponent=function(e,n,i){e=In.convertToColorSpace(e,In.getColorSpaceByComponent(n));var a=t(n),r=f.merge([],e);return r[a]=i(r[a]),f.Color(r,e.space)},this.setColorComponent=function(e,n,i){e=In.convertToColorSpace(e,In.getColorSpaceByComponent(n));var a=t(n),r=f.merge([],e);return r[a]=i,f.Color(r,e.space)},this.convertToColorSpace=function(e,t){switch(e=f.Color(e),t){case ft.RGB:return e.toRGB();case ft.HSL:return e.toHSL();default:return e}},this.generateColorsPalette=function(e){e=f.quickExtend({brightnessValues:[.5],saturationValues:[.5],hueValues:[.5]},e);var t=e.brightnessValues,n=e.saturationValues,i=e.hueValues,a=[];return f.eachItem(t,function(e,t){f.eachItem(n,function(e,n){f.eachItem(i,function(e,i){a.push(f.Color([i,n,t],"HSL"))})})}),a},this.convertRgbToHex=function(t){var n,i,a,r,o=/^rgb\(\s*(-?\d+)(%?)\s*,\s*(-?\d+)(%?)\s*,\s*(-?\d+)(%?)\s*\)$/,s=t;return(n=o.exec(t))&&(i=e(n[1],n[2]),a=e(n[3],n[4]),r=e(n[5],n[6]),s="#"+(16777216+(i<<16)+(a<<8)+r).toString(16).slice(1)),s},this.getColorSpaceByComponent=function(e){switch(e){case pt.R:case pt.G:case pt.B:return ft.RGB;case pt.H:case pt.S:case pt.L:return ft.HSL}}}),Sn=function(){var e=C.extend("ScrollingView",{init:function(e,t){t=f.quickExtend({scrollingItemEventSupport:!1,scrollingVerticalDistance:0},t);var n=this,i=t.instanceClass,a=t.themeClass,r=t.scrollbarClass,o=t.$scrollbar,s=t.$customMouseWheelTarget,l=t.scrollingItemEventSupport,c=t.$fixedHeader,u=new E(" ");i&&u.append(i),a&&u.append(a);var d,g=""+u,p=f('<div class="scrolling-view positioned"></div>').addClass(g),h=f('<div class="scrolling-pane positioned"></div>').addClass(g).appendTo(p),m=f('<div class="scrolled-content"></div>').addClass(g).appendTo(h),v=[p[0],h[0],m[0]];c&&(d=f("<div class='scrolling-view-fixed-headers'></div>").addClass(g).append(c).prependTo(p),v.push(d[0]));var y=f(v);o||(o=f('<div class="scrollbar"></div>').appendTo(p)),o.addClass(r).addClass(g),p.insertBefore(e),e.appendTo(m);var b=h.scrollable({scrollableContainer:f.valueOrDefault(s,h)}),C=o.scrollBar({reactToSlideAreaClick:!0,handleMinSize:80,autoHide:!0}).connectToScrollable(b);C.isVisible.valueChangedEvent.bindAndExecute(function(){y.chooseClass(C.isVisible.isTrue(),"scrollbar-visible","scrollbar-hidden")}),l&&(this._scrollingItemEventSupport=!0,this._scrollingVerticalDistance=t.scrollingVerticalDistance,this.scrollingItemEvent=x.create(),this._scrollingItemSelector=t.scrollingItemSelector,this._scrollingEventListener=x.createEventListener(b.scrollingEvent,function(){var e=n._calculateScrollingItemIndex(n.$scrollingPane.scrollTop());void 0===e||void 0!==n._lastScrollIndex&&e===n._lastScrollIndex||(n._lastScrollIndex=e,n.scrollingItemEvent.fireNew(n._scrollingItemAnchors[e].$item))})),this.$element=p,this.$scrollingPane=h,this.$scrolledContent=m,this.$scrollbar=o,this.scrollingController=b},isSupportScrollingItems:function(){return!!this._scrollingItemEventSupport},updateScrollingPosition:function(){if(!this.isSupportScrollingItems())throw Error("scrollingItemEventSupport is not enabled");var e=this.getScrollOffset(),t=this.$scrollingPane.offset().top-e,n=this._scrollingItemAnchors=[];f(this._scrollingItemSelector,this.$scrolledContent).each(function(){var e=f(this),i=e.offset().top-t;n.push({$item:e,top:i})})},activateScrollingItems:function(){if(!this.isSupportScrollingItems())throw Error("scrollingItemEventSupport is not enabled");this.updateScrollingPosition(),this._scrollingEventListener.activateAndExecute(),this._scrollingItemsActivated=!0},deactivateScrollingItems:function(){if(!this.isSupportScrollingItems())throw Error("scrollingItemEventSupport is not enabled");delete this._scrollingItemAnchors,delete this._lastScrollIndex,delete this._scrollingItemsActivated,this._scrollingEventListener.deactivate()},toggleAutoRefresh:function(e){this.scrollingController.toggleAutoRefresh(e)},refreshScrolling:function(){this.scrollingController.refresh()},scrollTo:function(e,t){t=f.quickExtend({deltaY:0,animateScrolling:!1,completeCallback:cs},t);var n=this.$scrollingPane,i=e.offset().top-n.offset().top,a=this.getScrollOffset(),r=a+i+t.deltaY;this.scrollToOffset(r,t.animateScrolling,t.completeCallback)},scrollToOffset:function(e,t,n){this._scrollingItemsActivated&&(this._lastScrollIndex=this._calculateScrollingItemIndex(e),this._scrollingEventListener.deactivate());var i=this;return this.scrollingController.scrollToOffset(e,t,function(){i._scrollingItemsActivated&&i._scrollingEventListener.activateAndExecute(),void 0!==n&&n()})},getScrollOffset:function(e){return this.scrollingController.getScrollOffset(e)},_calculateScrollingItemIndex:function(e){e-=this._scrollingVerticalDistance;var t,n=this._scrollingItemAnchors;for(t=n.length-1;t>=0;t--)if(n[t].top<=e)return t},bringToViewport:function(e){this.scrollingController.bringToViewport(e)},setMoveScrolling:function(e){this.$scrollingPane.setMoveScrolling(this.scrollingController,e)},getCustomHeightTarget:function(){return this.$scrollingPane},setCustomHeight:function(e){this.$scrollingPane.css(e),this.refreshScrolling()}});return e.create=function(t,n){return new e(t,n)},e}(),Pn=fs(function(){function e(){i||(i=!0,f("body > :first-child").before('<div id="fontdetectHelper"><span>abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ</span></div>'),n=f("#fontdetectHelper > SPAN"),f("#fontdetectHelper").css({position:"absolute",visibility:"hidden",top:"-200px",left:"-100000px",width:"100000px",height:"200px","font-size":"100px"}))}function t(){l--,0===l&&n.html("")}var n,i=!1,a=["serif","sans-serif","monospace","cursive","fantasy"],r={},o=[],s={},l=0;this.initialize=e,this.getCurrentFontsLoadedPromise=function(){return f.whenResults(o)},this.onFontLoaded=function(a,r){r=f.quickExtend({successCallback:cs,errorCallback:cs,finishCallback:cs,interval:100,timeout:15e3},r);var c=r.successCallback,u=r.errorCallback,d=r.finishCallback,g=r.interval,p=r.timeout;i?0===l&&n.html("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"):e(),l++;var h=s[a],m=!1;if(h||(m=!0,h=f.Deferred(),s[a]=h,o.push(h)),Pn.isFontLoaded(a))c(a),d(a),h.resolve(),t();else var v=(new Date).getTime(),y=setInterval(function(){if(Pn.isFontLoaded(a))clearInterval(y),c(a),d(a),h.resolve(),t();else{var e=(new Date).getTime();e-v>p&&(clearInterval(y),u(a),d(a),h.reject(),t())}},g);return h},this.isFontLoaded=function(t){if(!t)return!0;var o=0,s=0,l=t.toLowerCase();if(i||e(),r[l])return!0;for(var c=0;c<a.length;++c){if(n.css("font-family",t+","+a[c]),o=n.width(),c>0&&o!=s)return!1;if(f.browser.safari&&o>5e3)return!1;s=o}return r[l]=!0,!0},this.whichFont=function(e){for(var t=f(e).css("font-family"),n=t.split(","),i=n.shift();i;){if(i=i.replace(/^\s*['"]?\s*([^'"]*)\s*['"]?\s*$/,"$1"),Pn.isFontLoaded(i))return i;i=n.shift()}return null}});!function(e){e.rememberScrolling=function(){var t=e.getScrollingController(),n=t.$scrollableForRead.scrollTop(),i=t.$scrollableForRead.scrollLeft();return{restore:function(){t.$scrollableForWrite.scrollTop(n),t.$scrollableForWrite.scrollLeft(i)}}},e.getScrollingController=function(){var t,n;return t=e(document),n=e("html, body"),{$scrollableForRead:t,$scrollableForWrite:n}},e.getScrollOffset=function(){var t=e.getScrollingController().$scrollableForRead;return{top:t.scrollTop(),left:t.scrollLeft()}}}(p);var wn={PushState:1,Hash:2,FullLoad:3,Local:4},En=fs(function(){function e(){var e=window.location;if("localhost"===e.hostname){var t=e.pathname.split("/"),n=f.getLocationOrigin()+"/view/"+t[2]+"/"+t[3];return n+"/"}var i=e.hostname.split(".");if("webzai"!==i[i.length-2]&&"thebestswebsitebuilder"!=i[i.length-2]||"com"!==i[i.length-1])return f.getLocationOrigin()+"/";var a=e.pathname.split("/")[1];return f.getLocationOrigin()+"/"+a+"/"}function t(e,t){return f.defaultArrayEqualityComparer(e,t)}function n(e){return t(d,e)}function i(){var e=window.location.href.match(C);return e?e[1]:""}function a(e){"#"!==(""+e).charAt(0)&&(e="#"+e),window.location.hash=e}function r(e,t){t=f.valueOrDefault(t,!0);var n=e.split("/");return t?f.mapItem(n,function(e){return decodeURIComponent(e)}):n}function o(e,t){return t=f.valueOrDefault(t,!0),t&&(e=f.mapItem(e,function(e){return encodeURIComponent(e)})),e.join("/")}function s(e,t){return l(p===wn.Hash,e,t)}function l(e,t,n){var a;return e?a=i():(a=window.location.pathname.replace(b,"").replace(y,""),t&&!a&&(a=i())),r(n?a.trim():a.trim().toLowerCase())}function c(e){var t=d;d=e,n(t)||m(),f(".password-protected-page-overlay")&&f(".password-protected-page-overlay").remove(),g(d)}function u(){var e=s();return n(e)?!1:void c(e)}var d,g,p,h,m,v=this,y=/\/$/,b=/^\//,C=/#(.*)$/;this.initialize=function(t){switch(t=f.quickExtend({initialFragment:"",preferredMode:wn.PushState,useGlobalBindClick:!0,useHashFallbackAsFragment:!1,fragmentChangedCallback:cs,globalBindClass:"internal-link",hashCheckInterval:50,hasCases:!1},t),p=t.preferredMode,p!==wn.PushState||j.history||(p=wn.FullLoad),j.history&&"replaceState"in window.history&&(h=function(e){e?("#"!==e.charAt(0)&&(e="#"+e),window.history.replaceState(null,document.title,e)):window.history.replaceState(null,document.title,window.location.pathname)}),g=t.loadFragmentCallback,m=t.fragmentChangedCallback,p){case wn.Hash:j.hashchange?f(window).on("hashchange",u):setInterval(u,t.hashCheckInterval),d=s();break;case wn.PushState:f(window).on("popstate",u),d=s(t.useHashFallbackAsFragment,t.hasCases);break;case wn.FullLoad:d=s(t.useHashFallbackAsFragment,t.hasCases);break;case wn.Local:d=r(t.initialFragment,!1)}t.useGlobalBindClick&&f(document).on("click."+t.globalBindClass,"a."+t.globalBindClass,function(t){var n=f(t.currentTarget),i=n.closest("[contenteditable]");if(!(i.length>0&&"true"===i.first().attr("contenteditable"))){var a=n.attr("target");if("_blank"!==a&&"_top"!==a){t.preventDefault();var o=e(),s=n.attr("href")||"";0===s.indexOf(o)&&(s=s.substring(o.length)),v.navigate(r(s))}t.stopPropagation()}})},this.isPushState=function(){return p===wn.PushState},this.replaceState=function(e){j.history&&"replaceState"in window.history&&window.history.replaceState(null,document.title,e)},this.getFragments=function(){return d},this.getFragment=function(e){return o(d,e)},this.getFullHtmlUrl=function(t){return e()+o(f.asArray(t))},this.compareWithFragments=function(e){return n(e)},this.navigate=function(e,t){t=f.quickExtend({disableLoading:!1,forceNavigation:!1},t),e=f.asArray(e);var i=t.disableLoading,r=t.forceNavigation;if(n(e))return void(r&&c(e));i&&(d=e);var s=o(e),l="/"+s;switch(p){case wn.Hash:i||c(e),a(s);break;case wn.PushState:window.history.pushState(null,document.title,l),i||c(e);break;case wn.FullLoad:window.location.assign(l);break;case wn.Local:i||c(e)}i&&p!==wn.FullLoad&&m()},this.getHash=function(){return i()},this.setHash=function(e){a(e)},this.replaceHash=function(e){h&&h(e)}}),Tn=fs(function(){this.create=function(e,t){function n(t){e.on("mousemove"+v,function(e){m=e,a(e)}).on("mouseleave"+v,function(){p.setValue(void 0),m=void 0}),y.refresh(),t&&(m=t,a(t))}function i(){p.setValue(void 0),f(document).off(v),e.off(v)}function a(e){for(var t=f.getMouseOffset(e),n=0;n<g.length;n++){var i=g[n];if(f.isInsideArea(i.area,t,f.evaluateWhenFunction(u)))return void p.setValue(i.trackedArea)}p.setValue(void 0)}t=f.extend({trackedAreasSelector:[],onStartedBeingTarget:cs,onStoppedBeingTarget:cs,onMouseTargetChange:cs,areaSelector:f.identity,relativeOffset:{left:0,top:0}},t);var r=t.trackedAreasSelector,o=t.onStartedBeingTarget,s=t.onStoppedBeingTarget,l=t.onMouseTargetChange,c=t.onMouseTargetClick,u=t.relativeOffset,d=t.areaSelector,g=[],p=_.createReferenceObject({valueChangeCallback:function(e,t){t&&s(t),e&&o(e),l(e,t)}}),h=O.createConditionalNegative(),m=void 0,v=f.weakID(".mouse-tracker"),y={isActive:function(){return h.isTrue()},getCurrentMouseTargetObservable:function(){return p},getCurrentMouseTarget:function(){return p.getValue()},setCurrentMouseTarget:function(e){return p.setValue(e)},setTrackedAreas:function(e){return r=e,y},refresh:function(){g=[];for(var e=f.evaluateWhenFunction(r),t=0;t<e.length;t++){var n=e[t],i=d(n);g.push({area:f.getRelativeArea(i,f.evaluateWhenFunction(u)),trackedArea:n})}m&&a(m)},activate:function(e,t){var i=h.isTrue();return h.setTrue(t),!i&&h.isTrue()&&n(e),c&&f(document).on("click"+v,function(){var e=y.getCurrentMouseTarget();void 0!==e&&c(e)}),y},deactivate:function(e){var t=h.isTrue();return h.setFalse(e),t&&h.isFalse()&&i(),y},dispose:function(){i()}};return y}}),xn=fs(function(){this.renderRowElement=function(e){var t=new E;return t.append('<div class="row-element positioned {0}">'.format(e?"root-row":"desc-row")),t.append('<div class="cells-container positioned">'),t.append("</div>"),t.append("</div>"),f(""+t)},this.create=function(e,t){return kn.create(e,t)},this.getOrCreateRowByCellItem=function(e,t){var n=e.getRowId(),i=n?Ra.getRowById(n):void 0,a=i&&i.containerInstance&&i.containerInstance.id!==t.id;if(!i||a){var r,o=t.getPropertyValue("rowsItems");r=a?{id:f.uniqueID()}:o&&n?o[n]:{id:n},i=xn.create([],r)}return i}}),kn=function(){var e=C.extend("RowItemObj",{init:function(e,t){var n=this;t=f.extend({},t),t.id=t.id?t.id:f.uniqueID(),this.options=t,e=f.asArray(e),this.id=t.id,this.cellItems=f.mapArray(e,f.returnValue,f.defaultIdFunction),this.isRowInPage=O.create(!1),this.isInitialized=O.create(!1),this.isBuilt=O.create(!1),this._isWaitingForUpdateCells=!1,this.cellsSpacingObservable=_.create(t.cellsSpacing),this.lastCell=null,this.globalCellsSpacingListener=x.createEventListener([{event:fa.Events.NamedPropertyValueChanged,name:"cellsSpacing"},this.cellsSpacingObservable.valueChangedEvent],function(){n.updateCellsSpacing()}),Ra.addRowToPage(this),f.eachItem(e,function(e,t){t.setRowParent(n)})},getDataForSave:function(){return{id:this.id,settings:this.settings,cellsSpacing:this.cellsSpacingObservable.getValue()}},build:function(e){var t=this;t.isBuilt.isFalse()&&(t.$element=xn.renderRowElement(e),t.$cellsContainer=f(".cells-container",t.$element),t.isBuilt.setTrue())},setContainerInstance:function(e){this.containerInstance=e,e.addRowToContainer(this),this.addToContainer(this.containerInstance.getContentLayer())},addToContainer:function(e){this.globalCellsSpacingListener.activate(),this.getElement().appendTo(e),this.isRowInPage.setTrue()},removeFromContainer:function(){this.globalCellsSpacingListener.deactivate(),this.getElement()&&this.getElement().detach(),this.isRowInPage.setFalse()},remove:function(){this.globalCellsSpacingListener.deactivate(),this.isRowInPage.setFalse();var e=this.containerInstance;e&&this.containerInstance.removeRowFromContainer(this),this.removeCells(f.getValues(this.getCells())),this.$element&&this.$element.remove(),Ra.removeRowFromPage(this),e&&f.eachItem(e.childInstances,function(e,t){t.childIndex.setValue(-1)}),aa.reassignElementsOrders()},getElement:function(){return this.$element},getCellsContainer:function(){return this.$cellsContainer},initializeCellItems:function(){var e=this;f.eachEntry(this.cellItems,function(t,n){n.setRowParent(e),n.addToContainer(e.getCellsContainer())}),e.updateCellsSpacing(),this.containerInstance&&(f.eachItem(this.containerInstance.childInstances,function(e,t){t.childIndex.setValue(-1)}),aa.reassignElementsOrders())},updateCurrentCells:function(e){var t=this;e=f.asArray(e),f.eachItem(e,function(e,n){t.cellItems[n.id]=n,n.setRowParent(t)}),Ra.UpdateBatch.fireEvent(Ra.CellsContainerChangedEvent,{containerInstance:this.containerInstance})},toggleFirstRow:function(e){var t=this.containerInstance.data.firstRow;e?(t&&t.id!==this.id&&t.toggleFirstRow(!1),this.containerInstance.data.firstRow=this,this.$element.addClass("first")):t&&t.id===this.id&&this.$element.removeClass("first")},toggleLastRow:function(e){var t=this.containerInstance.data.lastRow;e?(t&&t.id!==this.id&&t.toggleLastRow(!1),this.containerInstance.data.lastRow=this,this.$element.addClass("last")):t&&t.id===this.id&&this.$element.removeClass("last")},getOrder:function(){return f.getValues(this.cellItems)[0].getInstance().getPropertyValue("order")},getMaxOrder:function(){var e,t=0;return void 0!==this.cellItems?(f.eachEntry(this.cellItems,function(n,i){var a=i.getInstance().getPropertyValue("order");a>t&&(t=a,e=n)}),{value:t,item:this.cellItems[e]}):void 0},getMinOrder:function(){var e,t=1/0;return void 0!==this.cellItems?(f.eachEntry(this.cellItems,function(n,i){var a=i.getInstance().getPropertyValue("order");t>a&&(t=a,e=n)}),{value:t,item:this.cellItems[e]}):void 0},markChilds:function(){var e,t,n=0,i=1/0;void 0!==this.cellItems&&(f.eachEntry(this.cellItems,function(a,r){var o=r.getInstance().getPropertyValue("order");o>n&&(n=o,e=a),i>o&&(i=o,t=a),r.$element.removeClass("first"),r.$element.removeClass("last")}),this.firstCell=this.cellItems[t],this.lastCell=this.cellItems[e],this.firstCell.$element.addClass("first"),this.lastCell.$element.addClass("last"))},updateCellsSpacing:function(){var e=this;e._isWaitingForUpdateCells||Ra.UpdateBatch.whenFinished(function(){var t=f.getValues(e.cellItems),n=e.getCellsSpacingRatio(),i=0;if(f.eachItem(t,function(e,t){i+=t.getWidth()}),i){var a=100/i;f.eachItem(t,function(e,t){t.setWidth(t.getWidth()*a,n)})}else f.eachItem(t,function(e,i){i.setWidth(100/t.length,n)})},"updateCells"+e.id)},updateCellsWidth:function(e){var t=this;t._isWaitingForUpdateCells=!0,Ra.UpdateBatch.whenFinished(function(){t._isWaitingForUpdateCells=!1,t.updateCellsSpacing();var n={},i=0;f.eachItem(e,function(e,t){n[t.cellItem.id]=t.cellItem,i+=t.width});var a=t.getCellsSpacingRatio(),r=t.cellItems,o=0;if(f.eachEntry(r,function(e,t){n[t.id]||(o+=t.getWidth())}),o){var s=(100-i)/o;f.eachEntry(r,function(e,t){n[t.id]||t.setWidth(t.getWidth()*s,a)})}var s=1;o+i!==100&&(s=100/(o+i)),.95===s&&(s=1),f.eachItem(e,function(e,t){t.cellItem.setWidth(t.width*s,a)})},"updateCells"+t.id)},updateCellsWidthFromResizing:function(e){var t=this.getCellsSpacingRatio();f.eachItem(e,function(e,n){var i=n.beforeWidth,a=n.delta,r=n.cellItem,o=n.width,s=f.maxValue([Math.floor((a/i+1)*o),1]);r.setWidth(s,t)})},getCellsSpacing:function(){var e=this.cellsSpacingObservable.getValue();return void 0===e?Ra.getCellsSpacing():e},addCellItems:function(e){var t=this;if(e=f.asArray(e),0!==e.length){var n=f.count(t.cellItems),i=n+e.length,a=n/i,r=t.getCellsSpacing(),o=(100-r*(i-1))/100;f.eachEntry(this.getCells(),function(e,t){t.setWidth(t.getWidth()*a,o),t.instance.hasFeature(oi.HasGrowableContent)&&t.instance.refreshContentSize()}),f.eachItem(e,function(e,n){var a=n.getRowParent();a&&a.removeCells(n),n.setRowParent(t),n.addToContainer(t.getCellsContainer()),t.cellItems[n.id]=n,n.setWidth(100/i,o),n.instance.hasFeature(oi.HasGrowableContent)&&n.instance.refreshContentSize()}),f.eachItem(this.containerInstance.childInstances,function(e,t){t.childIndex.setValue(-1)}),aa.reassignElementsOrders()}},removeCells:function(e){var t=this;if(e=f.asArray(e),0!==e.length){var n=f.mapArray(e,f.returnValue,f.defaultIdFunction);f.eachEntry(n,function(e,n){n.setRowParent(void 0),n.removeFromContainer(),delete t.cellItems[e]});var i=f.count(t.cellItems),a=this.getCellsSpacingRatio(),r=0;f.eachEntry(t.cellItems,function(e,t){r+=t.getWidth()}),f.eachEntry(t.cellItems,function(e,t){t.setWidth(100*(t.getWidth()/r),a),t.getInstance().childIndex.setValue(-1)}),0===i?t.remove():aa.reassignElementsOrders()}},getCellsSpacingRatio:function(){var e=f.count(this.cellItems),t=this.getCellsSpacing(),n=(100-t*(e-1))/100;return n},getCalculatedWidth:function(e){var t=this.getCellsSpacingRatio();return e*t},getNewColumnCalculatedWidth:function(){var e=f.count(this.cellItems),t=this.getCellsSpacing(),n=(100-t*e)/100,i=100/(f.count(this.cellItems)+1);return i*n},getWidth:function(){var e=ba.getContentSize(this.containerInstance);return e.width},getArea:function(e){var t=this.$element.getArea();return t=e?f.getAbsoluteArea(t,ba.getPositioningRootOffset()):f.getRelativeArea(t,ba.getPositioningRootOffset())},getCells:function(){return this.cellItems},getCellsArray:function(){return f.getValues(this.cellItems)},getOrderedCells:function(){return void 0===this.cellItems?[]:this.getCellsArray().orderBy(function(e){return e.getInstance().getPropertyValue("order")})}});return e.create=function(t,n){return new e(t,n)},e}(),Dn=fs(function(){this.renderCellElement=function(e){var t=new E;return t.append("<span class='cell-element positioned inline-block' style='width:{0}%'".format(Math.floor(e.width))+">"),t.append("<div class='cell-element-container positioned'></div>"),t.append("</span>"),f(""+t)},this.create=function(e,t){return new Fn(e,t)},this.getOrCreateCellFromInstance=function(e){var t=e.getCellItemData(),n=t?Ra.getCellById(t.id):void 0;return n||(n=Dn.create(e,t)),n},this.getCellItemsFromInstances=function(e){var t=[];return f.eachItem(e,function(e,n){t.push(n.getCellItem())}),t},this.getInstancesFromCellItems=function(e){var t=[];return f.eachEntry(e,function(e,n){t.push(n.getInstance())}),t}}),Fn=function(){var e=function(e,t){t=f.extend({width:100},t),t.id=t.id?t.id:f.uniqueID(),this.id=t.id,this.width=t.width,this.calculatedWidth=t.width,this.settings=t.settings,this.rowId=t.rowId,this.instance=e,e.setCellItem(this),e.updateCellItemData(this),Ra.addCellToPage(this),this.isCellInContainer=O.create(!1),this.isInitialized=O.create(!1)};return function(e,t){t.getDataForSave=function(){var e=this;return{id:e.id,settings:e.settings,width:e.getWidth(),rowId:this.getRowId()}},t.addToContainer=function(e){this.build(),this.instance.setCellItem(this),this.instance.addToCellItem(),this.getElement().appendTo(e),this.isCellInContainer.setTrue()},t.removeFromContainer=function(){this.isCellInContainer.isTrue()&&(this.getElement().detach(),this.instance.removeElementFromCellItem(),this.isCellInContainer.setFalse())},t.setWidth=function(e,t){var n=this;n.width=e,n.calculatedWidth=e*t,n.getInstance().updateCellItemData(this),Er.requestWriteOperation(function(){n.getElement().css("width",(e*t).toFixed(2)+"%"),Er.requestReadOperation(function(){n.calculateCellWidth()},"setWidth"+n.id)},"setWidth"+n.id),la.refreshElementsLayout(this.getInstance())},t.getWidth=function(){return this.width},t.clearCellItem=function(){this.getElement().detach(),this.instance.reAttachElementToContainer(),this.instance.setCellItem(null),this.isCellInContainer.setFalse()},t.build=function(){var e=this;e.isInitialized.isFalse()&&(e.$element=Dn.renderCellElement({width:e.getWidth()}),e.$elementContainer=f(".cell-element-container",e.$element),e.isInitialized.setTrue())},t.remove=function(){this.clearCellItem(),Ra.removeCellFromPage(this),this.getRowParent().removeCells([this]),this.instance.removeCellItem(),this.$element.remove()},t.getElement=function(){return this.$element},t.getElementContainer=function(){return this.$elementContainer},t.getRowId=function(){return this.rowId},t.getRowParent=function(){return this.rowParent},t.setRowParent=function(e){this.rowParent=e,this.rowId=e?e.id:void 0},t.getInstance=function(){var e=this;return e.instance},t.getOrder=function(){return this.instance.getPropertyValue("order")},t.getCellWidth=function(){return this.cellCalculatedPixelsWidth||this.calculateCellWidth(),this.cellCalculatedPixelsWidth},t.calculateCellWidth=function(){this.cellCalculatedPixelsWidth=this.$element.width()},t.getArea=function(e){var t=this.$element.getArea();return t=e?f.getAbsoluteArea(t,ba.getPositioningRootOffset()):f.getRelativeArea(t,ba.getPositioningRootOffset())}}(e,e.prototype),e}(),An=function(){function e(e){for(;!e.isEmpty();){var t=e._operations,i=e._endOperations,a=t.clone(),r=i.clone();e._lockedRequests={},t.clear(),i.clear(),n(a),n(r)}e._lockedRequests={}}function t(e,t,n,i){i=f.valueOrCalculate(i,f.weakID),e.isLocked(i)||t.setField(i,n),e.isActivated()||e.executeOperations()}function n(e){e.each(function(e,t){t()})}var i=C.extend("BatchOperationsSet",{init:function(e){e=f.valueOrDefault(e,f.noopWithCallback),this._lockedRequests={},this._executionFunction=e,this._reasons={}},lazyInitializationProperties:{id:f.weakID,_operations:k.create,_endOperations:k.create,_scope:we.create},activate:function(e){var t;e&&!(t=this._reasons)[e]||(e&&(t[e]=!0),this._scope.start())},deactivate:function(e){var t;e&&!(t=this._reasons)[e]||(e&&delete t[e],this._scope.finish())},isActivated:function(){return this._scope.isActive()},abortOperation:function(e){this._operations.removeField(e)},abortEndOperation:function(e){this._endOperations.removeField(e)},requestOperation:function(e,n){t(this,this._operations,e,n)},requestEndOperation:function(e,n){t(this,this._endOperations,e,n)},lockRequest:function(e){this._lockedRequests[e]=!0},unLockRequest:function(e){delete this._lockedRequests[e]},isLocked:function(e){return this._lockedRequests[e]},isEmpty:function(){return this._operations.isEmpty()&&this._endOperations.isEmpty()},executeOperations:function(){var t=this;t._executionFunction(function(){return e(t)})},clear:function(){this._operations.clear(),this._endOperations.clear()}});return i.create=function(e){return new i(e)},i}(),Bn=function(){function e(e,t){var n=t.clone();t.clear(),e(function(){n.each(function(e,t){t()})})}var t=C.extend("OperationsBarrier",{init:function(t,n){n=f.quickExtend({callExecutionWhenEmpty:!0},n);var i=n.callExecutionWhenEmpty;t=f.valueOrDefault(t,f.noopWithCallback),this._customExecutionCallback=t;var a=this._operations=k.create();this._isPostponed=O.createConditionalNegative({valueChangeCallback:function(n){n||!i&&a.isEmpty()||e(t,a)}})},requestExecution:function(e,t){return this._isPostponed.isTrue()?(t=f.valueOrCalculate(t,f.weakID),this._operations.setField(t,e)):this._customExecutionCallback(function(){e()}),this},postponeOperations:function(e){return this._isPostponed.setTrue(e),this},isPostponed:function(){return this._isPostponed.isTrue()},unPostponeOperations:function(e){return this._isPostponed.setFalse(e),this}});return t.create=function(e,n){return new t(e,n)},t}(),Vn=fs(function(){var e=this,t={requestWriteOperation:function(e){e()},requestReadOperation:function(e){e()},requestIndpendentWriteOperation:function(e){e()},requestIndpendentReadOperation:function(e){e()}},n=An.create(),i=An.create();e.ReadWriteScope=we.create(),e.PendingReadOperations=n,e.PendingWriteOperations=i,this.initialize=function(e){t=e},this.requestWriteOperation=function(e,n){t.requestWriteOperation(e,n)},this.requestReadOperation=function(e,n){t.requestReadOperation(e,n)},this.requestIndpendentWriteOperation=function(e,n){t.requestIndpendentWriteOperation(e,n)},this.requestIndpendentReadOperation=function(e,n){t.requestIndpendentReadOperation(e,n)}});/*!
 * hoverIntent v1.8.0 // 2014.06.29 // jQuery v1.9.1+
 * http://cherne.net/brian/resources/jquery.hoverIntent.html
 *
 * You may use hoverIntent under the terms of the MIT license. Basically that
 * means you are free to use hoverIntent as long as this header is left intact.
 * Copyright 2007, 2014 Brian Cherne
 */
!function(e){e.fn.clearHoverIntent=function(t){return t=e.valueOrDefault(t,"hoverIntent"),clearTimeout(this["hoverIntent_t"+t]),this["hoverIntent_t"+t]=void 0,this["hoverIntent_s"+t]=void 0,this.unbind("."+t)},e.fn.hoverIntent=function(t,n,i){var a={interval:100,sensitivity:6,timeout:0,selector:void 0,namespace:"hoverIntent",disable:void 0,triggerHover:!1};a="object"==typeof t?e.extend(a,t):e.isFunction(n)?e.extend(a,{over:t,out:n},i):e.extend(a,{over:t,out:t},n);var r,o,s,l,c=a.namespace,u=a.triggerHover,d="hoverIntent_s"+c,g="hoverIntent_t"+c,f=function(e){r=e.pageX,o=e.pageY},p=function(t,n){return n[g]=clearTimeout(n[g]),Math.sqrt((s-r)*(s-r)+(l-o)*(l-o))<a.sensitivity?(e(n).off("mousemove."+c,f),n[d]=!0,a.over.apply(n,[t])):(s=r,l=o,n[g]=setTimeout(function(){p(t,n)},a.interval),void 0)},h=function(e,t){return t[g]=clearTimeout(t[g]),t[d]=!1,a.out.apply(t,[e])},m=function(t,n){var i=e.extend({},t),r=this;if(r[g]&&(r[g]=clearTimeout(r[g])),n&&"mouseenter"!==t.type||a.disable&&a.disable())e(r).off("mousemove."+c,f),r[d]&&(r[g]=setTimeout(function(){h(i,r)},a.timeout));else{if(!n)return r[d]=!0,a.over.apply(r,[i]);s=i.pageX,l=i.pageY,e(r).on("mousemove."+c,f),r[d]||(r[g]=setTimeout(function(){p(i,r)},a.interval))}},v=function(e){m.call(this,e,!0)},y={};return y["mouseenter."+c]=v,y["mouseleave."+c]=v,u&&m.call(this[0],u,!1),this.on(y,a.selector)}}(p);var Ln=function(){var e=C.extend("SlideShow",{options:{},imagesCollection:null,currentSlideIndex:void 0,prevButtonDisableFlag:null,nextButtonDisableFlag:null,setSlideLockFlag:!1,itemsCount:0,_imageCollectionObserver:null,_itemsChangedEventListener:null,_orderedItems:null,init:function(e,t){var n,i,a=this;t=this.options=f.quickExtend({continuous:!1,autoTransition:!1,autoTransitionInterval:5e3,onItemsChanged:cs},t),this.goToSlideByIndexEvent=x.create(),this.prevButtonDisableFlag=O.createConditionalNegative(),this.nextButtonDisableFlag=O.createConditionalNegative(),n=jt.create(e,!0),i=x.createEventListener(n.itemsChangedEvent,function(){a.itemsCount=e.getItemsLength(),t.onItemsChanged(a),a.updateNavigationState(),a.maintainOrderedItemsArray(e.getItemsValues())}),this.itemsCount=e.getItemsLength(),t.onItemsChanged(a),this.updateNavigationState(),this.maintainOrderedItemsArray(e.getItemsValues()),this.imagesCollection=e,this._imageCollectionObserver=n,this._itemsChangedEventListener=i},activate:function(){this._itemsChangedEventListener.activate(),this._imageCollectionObserver.unPostponeUpdates(),this.options.autoTransition&&this.startAutoTransition()},deactivate:function(){this._imageCollectionObserver.postponeUpdates(),this._itemsChangedEventListener.deactivate(),this.stopAutoTransition()},toggleContinuous:function(e){var t=this.options,n=t.continuous;void 0===e&&(e=!n),t.continuous=e,n!==e&&this.updateNavigationState(e)},updateNavigationState:function(){this.itemsCount<2?(this.prevButtonDisableFlag.setValue(!0,"single-item"),this.nextButtonDisableFlag.setValue(!0,"single-item")):(this.prevButtonDisableFlag.setValue(!1,"single-item"),this.nextButtonDisableFlag.setValue(!1,"single-item")),this.options.continuous&&(this.prevButtonDisableFlag.setValue(!1,"first-item"),this.nextButtonDisableFlag.setValue(!1,"last-item"))},toggleSetSlideLock:function(e){this.setSlideLockFlag=void 0===e?!this.setSlideLockFlag:e},maintainOrderedItemsArray:function(e){e.sort(function(e,t){return e.index>t.index?1:-1}),this._orderedItems=e},setAutoTransitionInterval:function(e){return this.options.autoTransitionInterval=e,this.autoTransitionIntervalHandle&&(this.stopAutoTransition(),this.startAutoTransition()),this},startAutoTransition:function(e){var t=this;return this.stopAutoTransition(),e&&(this.options.autoTransitionInterval=e),this.autoTransitionIntervalHandle=setInterval(function(){t.goToNextSlide()},this.options.autoTransitionInterval),this},stopAutoTransition:function(){return this.autoTransitionIntervalHandle&&(clearInterval(this.autoTransitionIntervalHandle),this.autoTransitionIntervalHandle=null),this},goToNextSlide:function(){var e=this.getNextSlideIndex();return void 0!==e&&this.goToSlideByIndex(e,1),this},goToPreviousSlide:function(){var e=this.getPreviousSlideIndex();return void 0!==e&&this.goToSlideByIndex(e,-1),this},goToSlideByIndex:function(e,t,n){var i,a,r=this.currentSlideIndex,o=this.itemsCount;return this.setSlideLockFlag?this:(i=this._orderedItems[e],a=this._orderedItems[r],e===r?this.goToSlideByIndexEvent.fireNew(i,void 0,t,!1):(this.currentSlideIndex=e,this.goToSlideByIndexEvent.fireNew(i,a,t,n)),this.options.continuous||(0===e?this.prevButtonDisableFlag.setValue(!0,"first-item"):this.prevButtonDisableFlag.setValue(!1,"first-item"),e===o-1?this.nextButtonDisableFlag.setValue(!0,"last-item"):this.nextButtonDisableFlag.setValue(!1,"last-item")),this)},getNextSlideIndex:function(e){var t=void 0!==e?e:this.currentSlideIndex,n=this.itemsCount;return n-1>t?t+1:this.options.continuous?0:void 0},getPreviousSlideIndex:function(e){var t=void 0!==e?e:this.currentSlideIndex,n=this.itemsCount;return t>0?t-1:this.options.continuous?n-1:void 0},itemsActivationBehaviour:function(){return e.ItemsActivationBehaviour(this)}});return e.create=function(t,n){return new e(t,n)},e.ItemsActivationBehaviour=function(e){return new Mn.ItemsActivationBehaviour(e)},e}(),Mn=fs(function(){this.connectThumbsCarouselToSlideShow=function(e,t){var n=x.createEventListenersGroup(),i=x.createEventListener(e.goToSlideByIndexEvent,function(e,n,i,a){t.setSlide(e,n,i,a)});return n.add(i),t.setThumbClickCallback(function(t,n){e.goToSlideByIndex(n)}),t.setImagesCollection(e.imagesCollection,e.currentSlideIndex),{activate:function(){n.activateAll()},deactivate:function(){n.deactivateAll()}}},this.connectCarouselToSlideshow=function(e,t){var n={},i=x.createEventListenersGroup(),a=x.createEventListener(e.goToSlideByIndexEvent,function(e,i,a,r){t.setSlide(e,i,a,r,n.onPopupLoaded),delete n.onPopupLoaded});return i.add(a),t.setSlideShow(e,!0),f.quickExtend(n,{activate:function(e){n.onPopupLoaded=e,i.activateAll()},deactivate:function(){i.deactivateAll()}}),n},this.ItemsActivationBehaviour=C.extend("ItemsActivationBehaviour",{_itemsList:null,_unloadedItems:0,init:function(e){e&&this._setItemsList(e)},_setItemsList:function(e){this._itemsList=e},_behindAndAhead:function(e,t,n,i){var a,r,o,s=i.fromIndex||0,l=this._itemsList.orderedItems,c=l.length;for(i.onStart(),e+t>=c?(t=c,e=0,a=c):a=e+t,0>s?s=0:s>=c&&(s=0),this._unloadedItems=a,o=s-1,r=s;e||t;)t&&(o++,t--,o>=c&&(o=0),this._processItem(l[o],o,n,i)),e&&(r--,e--,0>r&&(r=c-1),this._processItem(l[r],r,n,i))},_processItem:function(e,t,n,i){var a,r=this,o=e&&e.itemView,s=i.onComplete,l=i.onItemComplete;o&&(a=n?"load":"activate",o[a](e.item,function(e){l(e),--r._unloadedItems||s(r,r._itemsList,t)}))},_extendOptions:function(e,t){return f.quickExtend({onStart:cs,onComplete:cs,onItemComplete:cs,fromIndex:t},e)},preloadItems:function(e,t,n){var i=this;return function(a,r){i._setItemsList(a),i._behindAndAhead(e,t,!0,i._extendOptions(n,r))}},activateItems:function(e,t,n){var i=this;return function(a,r){i._setItemsList(a),i._behindAndAhead(e,t,!1,i._extendOptions(n,r))}},activateAllItems:function(e){var t=this;return function(n,i){t._setItemsList(n),t._behindAndAhead(0,n.orderedItems.length,!1,t._extendOptions(e,i))}}})}),On=function(){function e(e,n,i,a,r,o){var s=e.options.renderer;s.renderItem(i,a,r,o),n?n.done(function(){t(e,i,r)}):t(e,i,r)}function t(e,t,n){var i=e.options;!t.item.video||i.isEditorMode||null!==n&&!i.isMobile||t.itemView.playVideo()}function n(e){var t=e.options,n={imageItemTemplate:t.imageItemTemplate,videoItemTemplate:t.videoItemTemplate},i=e.$carouselContainer.makeItemsList({itemCreationFunction:function(e,i){var a=f.useTemplate(t.itemTemplate),r=t.itemsFactory.createSlideShowCarouselItem(e,a,n);return i.itemView=r,r.create(),r.$element.appendTo(a),a},itemUpdatedCallback:function(e){e.itemView.updated=!1,e.itemView.update(e.item)},itemRemovingCallback:function(e){e.itemView.remove()},itemsChangedCallback:function(){e._itemsActivationNeeded=!0,t.onItemsChangedCallback(i)}}).addOrderingSupport({orderingValueSelector:function(e){return e.item.index}});return e._onItemClick&&i.onItemEvents("click",function(t,n){n.target.href||e._onItemClick(t,t.index,n)}),i}function i(e){var t=e.$element,n=e.options,i=Z.isMobileClient?1:5;t.on("vmousedown",function(a){f.onDistanceMove(a,i,function(){var i,r,o,s=e._slideShow,l=e._itemsList.orderedItems,c=n.renderer,u=t.outerWidth();e._itemsCount<2||f(a.target).hasAncestor(".ignore-swipe")||mn.Draggable.startDragging({$element:t,event:a,isVirtual:!0,onDrag:function(e,t){var n,a;t.deltaChangeX&&(n=t.actualDeltaX,a=Math.min(Math.max(Math.abs(n/u*100*2),0),100),i=-n>0?1:-1,i!==r&&(r&&c.renderItem(l[s.currentSlideIndex],l[o],0,!1),o=i>0?s.getNextSlideIndex():s.getPreviousSlideIndex(),r=i),void 0!==o&&c.renderItem(l[o],l[s.currentSlideIndex],i,!0,a))},onEnd:function(e,t){var n,a;t.actualDeltaX&&(n=t.actualDeltaX,a=Math.min(Math.max(Math.abs(n/u*100*2),0),100),void 0!==o&&(a>20?i>0?s.goToNextSlide():s.goToPreviousSlide():c.renderItem(l[s.currentSlideIndex],l[o],-i,!0,-1)))}})},{cancelOn:"mouseup"})})}var a={Carousel:{group:"slideshow-carousel-templates",name:"slideshow-carousel-template"},Item:{group:"slideshow-carousel-templates",name:"slideshow-carousel-item-template"}},r=C.extend("SlideShowCarousel",{$element:null,options:null,_controller:void 0,_slideShow:null,_itemsList:null,_currentSlideIndex:0,_currentItem:void 0,_collectionObserver:null,_isActive:!1,_itemsCount:0,_itemsActivationNeeded:!1,_onItemClick:cs,init:function(e){this.options=e=f.quickExtend({template:a.Carousel,itemTemplate:a.Item,isMobile:!1,onItemClick:cs,onItemsChangedCallback:cs,itemsFactory:Io},e),this.$element=f.useTemplate(e.template),this.$carouselContainer=f("._carousel-items",this.$element),this._controller=e.controller,this._itemsList=n(this),e.collectionSetBehaviour||(e.collectionSetBehaviour=(new Mn.ItemsActivationBehaviour).activateAllItems()),e.renderer||(e.renderer=e.isMobile?So.getRenderer("popupMobileSlideShow"):So.getRenderer("popupSlideShow")),e.imagesCollection&&this.setImagesCollection(e.imagesCollection),e.renderer.attachToCarousel(this),e.isMobile?i(this):this._onItemClick=e.onItemClick},activate:function(e){return this._isActive=!0,this._collectionObserver&&(this._collectionObserver.unPostponeUpdates(),this._itemsActivationNeeded&&this.activateItems(e)),this},deactivate:function(){var e,t=this._currentItem,n=this._itemsList.orderedItems;this._isActive=!1,this._collectionObserver&&this._collectionObserver.postponeUpdates(),t&&t.itemView.player&&t.itemView.togglePlaying(!1);for(var i=0,a=n.length;a>i;i++)e=n[i].itemView,e&&e.player&&e.destroyPlayer();return this},setSlideShow:function(e,t){this._slideShow=e,t&&this.setImagesCollection(e.imagesCollection,e.currentSlideIndex)},setImagesCollection:function(e,t){var n=jt.create(e,!0);return this._isActive&&this.activate()||this.deactivate(),this._itemsCount=e.getItemsLength(),this._currentSlideIndex=t||0,this._collectionObserver=n,this._itemsList.setItems(n),this},attachRenderer:function(e){return this.options.renderer=e,this},activateItems:function(e){return this.options.collectionSetBehaviour(this._itemsList,e||this._currentSlideIndex),this._itemsActivationNeeded=!1,this},setSlide:function(t,n,i,a,r){var o,s,l,c,u,d=this._itemsList.orderedItems,g=this.options,f=g.renderer,p=t?t.index-1:void 0,h=n?n.index-1:void 0,m=this;return p=void 0===p?this._currentSlideIndex:p,-1===p&&(p=0),d.length&&(s=d[p],c=s.itemView,o=c.loadedFlag,s.$item.addClass("current"),c.isCurrent.setTrue(),void 0!==h&&(l=d[h],l&&(u=l.itemView,l.$item.removeClass("current"),u.isCurrent.setFalse())),this._currentSlideIndex=p,this._currentItem=s,f&&(c.activated&&o.isTrue()?e(this,r,s,l,i,a):(c.activate(s.item),f.renderItem(s,l,i,a),c.toggleLoading(!0,!0),o.onceTrue(function(){c.toggleLoading(!1,!0),m._currentItem.index===s.index&&e(m,r,s,void 0,i,!1)})))),this},resize:function(){var e=this.options.renderer,t=this._itemsList.orderedItems,n=t[this._currentSlideIndex];return e&&n&&e.renderItem(n,void 0,null,!1),this},setItemClickCallback:function(e){return this._onItemClick=e,this},toggleSetSlideLock:function(e){this._slideShow.toggleSetSlideLock(e)},dispose:function(){return this.deactivate(),this.$carouselContainer.off(),this.$element.remove(),this}});return r.create=function(e){return new r(e)},r}(),zn=function(){function e(e){var t=e.options,n={imageItemTemplate:t.imageItemTemplate,videoItemTemplate:t.videoItemTemplate,onItemUpdated:e._onThumbItemUpdate};return e.$thumbsContainer.makeItemsList({itemCreationFunction:function(i,a){var r=f.useTemplate(t.thumbTemplate),o=t.thumbsFactory.createThumbsCarouselItem(i,r,n);return a.itemView=o,o.create(),o.$element.appendTo(r),o.dimensions=e._currentThumbsDimensions,o.loadedFlag.onceFalse(function(){r.addClass("state-loading")}),o.loadedFlag.onceTrue(function(){r.removeClass("state-loading"),e._scrollThumbToView(e._currentSlideIndex,!0)}),r},itemUpdatedCallback:function(e){e.itemView.updated=!1,e.itemView.update(e.item)},itemRemovingCallback:function(e){e.itemView.remove()},itemsChangedCallback:function(){e._itemsActivationNeeded=!0}}).addOrderingSupport({orderingValueSelector:function(e){return e.item.index}}).onButtonClick(function(t){e._onThumbClick(t,t.index)})}var t={Carousel:{group:"thumbs-carousel-templates",name:"thumbs-carousel-template"},Thumb:{group:"thumbs-carousel-templates",name:"thumb-template"}},n=C.extend("ThumbsCarousel",{$element:null,$thumbsContainer:null,options:null,_collectionObserver:null,_itemsList:null,_thumbsScrollingIntervalHandle:null,_currentSlideIndex:0,_currentItem:null,_thumbsContainerScrollPosition:0,_thumbsContainerScale:1,_thumbsHoverPosition:0,_isActive:!1,_isVertical:!1,_isTouchSupported:!1,_itemsScrollingLock:!1,_itemsActivationNeeded:!1,_currentThumbsDimensions:{},init:function(n){var i,a=this;n=f.quickExtend({template:t.Carousel,thumbTemplate:t.Thumb,thumbsDimensions:{defaultSize:{width:166,height:110}},isMobile:!1,vertical:!1,thumbsFactory:Co,onThumbClick:cs,onThumbItemUpdate:cs},n),this.options=n,this.$element=i=f.useTemplate(n.template),this.$thumbsContainer=f("._thumbs",i),this._onThumbClick=n.onThumbClick,this._onThumbItemUpdate=n.onThumbItemUpdate,this._itemsList=e(this),this._isVertical=n.vertical,this._currentThumbsDimensions=this._getThumbsDimensions(f.getWindowSize()),n.collectionSetBehaviour||(n.collectionSetBehaviour=(new Mn.ItemsActivationBehaviour).activateAllItems()),n.isMobile?(i.css("overflow","auto"),this._isTouchSupported=!0):n.customScrolling||(this.$thumbsContainer.on("mouseenter",function(e){a._isVertical?a._thumbsHoverPosition=e.clientY-i.offset().top:a._thumbsHoverPosition=e.clientX-i.offset().left,a._setThumbsScrolling()}).on("mousemove",function(e){a._isVertical?a._thumbsHoverPosition=e.clientY-i.offset().top:a._thumbsHoverPosition=e.clientX-i.offset().left}).on("mouseleave",function(){a._stopThumbsScrolling()}),i.on("mousewheel.scrolling",function(e,t){var n,r;e.preventDefault(),a._stopThumbsScrolling(),a._isVertical?(n=i.height(),r=a.$thumbsContainer.height()):(n=i.width(),r=a.$thumbsContainer.width()),a._scrollThumbs(50*-t,n,r)})),n.imagesCollection&&this.setImagesCollection(n.imagesCollection)},activate:function(){return this._isActive=!0,this._collectionObserver&&(this._collectionObserver.unPostponeUpdates(),this._itemsActivationNeeded&&this.activateItems()),this},deactivate:function(){return this._isActive=!1,this._collectionObserver&&this._collectionObserver.postponeUpdates(),this},setImagesCollection:function(e,t){var n=jt.create(e,!0);return this._isActive&&this.activate()||this.deactivate(),this._currentSlideIndex=t||0,this._collectionObserver=n,this._itemsList.setItems(n),this},activateItems:function(){return this.options.collectionSetBehaviour(this._itemsList,this._currentSlideIndex),this._itemsActivationNeeded=!1,this},toggleItemsScrollingLock:function(e){this._itemsScrollingLock=void 0===e?!this._itemsScrollingLock:e},_scrollThumbs:function(e,t,n){e+=this._thumbsContainerScrollPosition,e>n-t&&(e=n-t),0>e&&(e=0),e!=this._thumbsContainerScrollPosition&&(this._thumbsContainerScrollPosition=e,this._isVertical?this.$thumbsContainer.css({top:-e}):this.$thumbsContainer.css({left:-e}))},_setThumbsScrolling:function(){var e,t,n=this;this._stopThumbsScrolling(),this._itemsScrollingLock||(this._isVertical?(e=this.$element.height(),t=this.$thumbsContainer.height()):(e=this.$element.width(),t=this.$thumbsContainer.width()),this._thumbsScrollingIntervalHandle=setInterval(function(){var i=Math.round((n._thumbsHoverPosition-e/2)/e*15);n._scrollThumbs(i,e,t)},20))},_stopThumbsScrolling:function(){this._thumbsScrollingIntervalHandle&&(clearTimeout(this._thumbsScrollingIntervalHandle),this._thumbsScrollingIntervalHandle=null)},_scrollThumbToView:function(e,t){var n,i,a,r,o,s=this.$element,l=this.$thumbsContainer,c=this._itemsList.orderedItems[e||this._currentSlideIndex].$item,u=15,d=c[0].getBoundingClientRect(),g=s[0].getBoundingClientRect(),f=this;this._stopThumbsScrolling(),this._isThumbInView(d,g)||(this._isVertical?(n=g.height||s.height(),i=l.height(),a=d.top<g.top?g.top-d.top:g.bottom-d.bottom):(n=g.width||s.width(),i=l.width(),a=d.left<g.left?g.left-d.left:g.right-d.right),a/=this._thumbsContainerScale,t||void 0===t?this._isTouchSupported?this._scrollThumbsTouchInterface(a,!0):(u=Math.min(Math.max(Math.abs(Math.round(a/10)),3),25),r=Math.ceil(a/u),o=a-r*u,o=0>a?o:-o,this._thumbsScrollingIntervalHandle=setInterval(function(){f._scrollThumbs(-r,n,i),--u<=0&&(f._stopThumbsScrolling(),f._scrollThumbs(-o,n,i))},20)):this._isTouchSupported?this._scrollThumbsTouchInterface(a,!1):this._scrollThumbs(-a,n,i))},_scrollThumbsTouchInterface:function(e,t){var n,i=this.$element;this._isVertical?(n=i.scrollTop(),t?i.animate({scrollTop:n-e},200):i.scrollTop(n-e)):(n=i.scrollLeft(),t?i.animate({scrollLeft:n-e},200):i.scrollLeft(n-e))},_isThumbInView:function(e,t){return e.left>=t.left&&e.right<=t.right&&e.top>=t.top&&e.bottom<=t.bottom},setSlide:function(e,t,n,i){var a,r,o,s=this._itemsList.orderedItems,l=e&&e.index?e.index-1:void 0,c=t?t.index-1:void 0,u=this;return l=void 0===l?this._currentSlideIndex:l,s.length&&(a=s[l],r=a.itemView,a.$item.addClass("current"),void 0!==c&&(o=s[c],o&&o.$item.removeClass("current")),this._currentSlideIndex=l,this._currentItem=a,r.activated&&r.loadedFlag.isTrue()?this._scrollThumbToView(l,i):(r.activate(a.item),r.loadedFlag.onceTrue(function(){u._scrollThumbToView(l,i)})),r._onCurrent()),this},_getThumbsDimensions:function(e){var t=this.options.thumbsDimensions,n=e.width;return 768>=n&&t[768]?t[768]:1024>=n&&t[1024]?t[1024]:t.defaultSize},_resizeThumbs:function(e){for(var t,n=this._itemsList.orderedItems,i=0,a=n.length;a>i;i++)t=n[i].itemView,t.dimensions=e,t.resizeImageToContainer()},resize:function(e,t){var n,i=this.$element[0].getBoundingClientRect(),a=this.$thumbsContainer[0].getBoundingClientRect(),r=this._thumbsContainerScrollPosition;return t&&(n=this._getThumbsDimensions(t),n.width!==this._currentThumbsDimensions.width&&(this._currentThumbsDimensions=n,this._resizeThumbs(n))),this._isVertical?a.bottom<i.bottom&&(r-=i.bottom-a.bottom,r=Math.max(0,r),this.$thumbsContainer.css("top",-r)):a.right<i.right&&(r-=i.right-a.right,this.$thumbsContainer.css("left",-r)),this._thumbsContainerScrollPosition=r,this._scrollThumbToView(this._currentSlideIndex,e||!1),this},setThumbClickCallback:function(e){return this._onThumbClick=e,this},dispose:function(){return this.deactivate(),this.$thumbsContainer.off(),this.$element.remove(),this}});return n.create=function(e){return new n(e)},n}(),_n=function(){var e=C.extend("PopUpUtil",{$container:void 0,$overlay:void 0,$wrapper:void 0,$element:void 0,options:void 0,isVisible:void 0,onShowEvent:void 0,onCloseEvent:void 0,_popupId:"popup-"+f.weakID(),_imagesCollection:void 0,_slideShow:void 0,_onSelectSlideEventListener:void 0,_carousel:void 0,_carouselConnector:void 0,_thumbsCarousel:void 0,_thumbsCarouselConnector:void 0,_nextButton:void 0,_prevButton:void 0,_closeButton:void 0,_slideshowStatesBindingManager:void 0,_windowSizeEventListener:void 0,_showThumbs:!0,_isScaled:!1,_overflowOpacity:1,initElementCarousel:function(e,t){var n=f("._prev-button",e),i=f("._next-button",e),a=f(".navigation-controls",e);i.hide(),n.hide(),a.hide();var r=f("._close-button",e);r.makeSimpleButton().buttonClick(function(){t.onClose()}),this.$element=e,this._closeButton=r},init:function(e){var t,n,i,a,r,o,s,l,c,u,d,g,p,h,m=this,v=ve.createStateBindingsGroup();return this.$container=f('<div class="popup-overlay-container"><div class="popup-background"></div><div class="popup-wrapper no-localization"></div></div>'),this.$overflow=f(".popup-background",this.$container),this.$wrapper=f(".popup-wrapper",this.$container),this.options=e=f.quickExtend({continuous:!0,autoTransition:!1,isMobile:!1,isVideo:!1,isEditorMode:!1,onClose:function(){m.hide()}},e),this.isVisible=O.create(!1),this.onShowEvent=x.create(),this.onCloseEvent=x.create(),n=e.implementation=f.quickExtend({className:"",verticalThumbs:!1,supportsMobile:!1,overlayTemplate:void 0,overlayTemplateMobile:void 0,carouselImageItemTemplate:void 0,carouselVideoItemTemplate:void 0,carouselImageItemTemplateMobile:void 0,carouselRenderer:void 0,carouselRendererMobile:void 0,thumbsImageItemTemplate:void 0,thumbsVideoItemTemplate:void 0,thumbsDimensions:{defaultSize:{width:166,height:110}},thumbsCustomScrolling:!1,animation:{opening:"FadeIn",closing:"FadeOut",duration:500},onShow:cs,onCurrentItemChange:cs,onClose:cs,onDispose:cs,onResize:cs,onItemsChanged:cs},e.implementation),p=e.isMobile,h=e.isVideo,t=p?f.useTemplate(n.overlayTemplateMobile):f.useTemplate(n.overlayTemplate),t.attr("id",this._popupId).addClass(n.className).toggleClass("mobile-view",p).toggleClass("tablet-mode",!1).toggleClass("video-popup",h).appendTo(this.$wrapper),d=f("._prev-button",t),u=f("._next-button",t),e.isElement?void this.initElementCarousel(t,e):(i=this._setItems(e.items),a=Ln.create(i,{isMobile:e.isMobile,continuous:e.continuous,autoTransition:e.autoTransition,onItemsChanged:n.onItemsChanged}),o=On.create({isMobile:p,isVideo:h,isEditorMode:e.isEditorMode,imageItemTemplate:p?n.carouselImageItemTemplateMobile:n.carouselImageItemTemplate,videoItemTemplate:p?n.carouselVideoItemTemplateMobile:n.carouselVideoItemTemplate,renderer:p?n.carouselRendererMobile:n.carouselRenderer,controller:this,collectionSetBehaviour:(new Mn.ItemsActivationBehaviour).activateItems(5,5,{onComplete:function(e,t,n){e.activateAllItems()(t,n+1)}}),onItemClick:function(){a.goToNextSlide()}}),s=Mn.connectCarouselToSlideshow(a,o),o.$element.appendTo(f(".carousel-container",t)),l=zn.create({isMobile:e.isMobile,vertical:n.verticalThumbs,imageItemTemplate:n.thumbsImageItemTemplate,videoItemTemplate:n.thumbsVideoItemTemplate,thumbsDimensions:n.thumbsDimensions,customScrolling:n.thumbsCustomScrolling,onThumbItemUpdate:n.onThumbItemUpdate,collectionSetBehaviour:(new Mn.ItemsActivationBehaviour).activateItems(5,10,{onComplete:function(e,t,n){e.activateAllItems()(t,n+1)}})}),c=Mn.connectThumbsCarouselToSlideShow(a,l),l.$element.appendTo(f(".thumbs-container",t)),d=f("._prev-button",t),u=f("._next-button",t),g=f("._close-button",t),g.makeSimpleButton().buttonClick(function(){e.onClose()}),d.makeSimpleButton({supportDisabling:!0}).buttonClick(function(){a.goToPreviousSlide()}),u.makeSimpleButton({supportDisabling:!0}).buttonClick(function(){a.goToNextSlide()}),v.on(ve.whenAny().whenFlagIsTrue(a.prevButtonDisableFlag)).hideElements(d),v.on(ve.whenAny().whenFlagIsTrue(a.nextButtonDisableFlag)).hideElements(u),r=x.createEventListener(a.goToSlideByIndexEvent,function(t,n,a,r){e.implementation.onCurrentItemChange(i,t,n,a,r)}),this._windowSizeEventListener=x.createEventListener(f.getWindowSizeEvent(),function(e){m._setSize(e)}),this.$element=t,this._imagesCollection=i,this._slideShow=a,this._onSelectSlideEventListener=r,this._carousel=o,this._carouselConnector=s,this._thumbsCarousel=l,this._thumbsCarouselConnector=c,this._prevButton=d,this._nextButton=u,this._slideshowStatesBindingManager=v,void(this._closeButton=g))},toggleThumbs:function(e){this._showThumbs=e,this.$element.toggleClass("no-thumbs",!e),this.options.isEditorMode&&this._setSize()},setOverflowOpacity:function(e){this._overflowOpacity=e},setAnimationPropertyValue:function(e,t){this.options.implementation.animation[e]=t},show:function(e){e=f.quickExtend({closeCallback:cs,currentItem:0,hostContainer:null,items:void 0,containerArea:null},e);var t=this,n=this.$element,i=this.options,a=i.implementation,r=a.animation,o=this._slideShow,s=e.currentItem,l=s&&s.index-1||0,c=i.isMobile,u=e.hostContainer||f("body"),d=this._showThumbs,g=f.Deferred();this._closeCallback=e.closeCallback,this.isVisible.isTrue()&&this.hide(!1),e.items&&this._setItems(e.items,e),this.$container.appendTo(u).css({position:"fixed",visibility:i.isEditorMode?"visible":"hidden"}),e.containerArea&&(this._containerAreaBinding=e.containerArea.onValueChanged(function(e){t.$container.setArea(e),t._setScale()},!0)),i.isElement?n.append(i.items[0]):(o.activate(),this._windowSizeEventListener.activate(),o.itemsCount<2&&n.addClass("single-item-popup"),o.itemsCount>1&&d&&(this._thumbsCarousel.activate(),this._thumbsCarouselConnector.activate(),this._slideshowStatesBindingManager.activate(),n.removeClass("single-item-popup")),this._carousel.activate(l),this._carouselConnector.activate(g),this._onSelectSlideEventListener.activate(),o.goToSlideByIndex(l,null,!1)),!c&&this._toggleKeyboardEvents(!0),i.implementation.onShow(),this.isVisible.setTrue(),jn.start(),this.onShowEvent.fireNew(),i.isEditorMode?g.resolve():(this.$overflow.velocity({opacity:[t._overflowOpacity,0]},{duration:200,queue:!1}),this._runAnimation(r.opening,r.duration,function(){t.isVisible.isTrue()&&g.resolve()}))},hide:function(e){var t=this,n=this.options,i=n.implementation.animation,a=n.isMobile;this.isVisible.isFalse()||(this.isVisible.setFalse(),this._closeCallback(),n.implementation.onClose(),!a&&this._toggleKeyboardEvents(!1),n.isEditorMode||e===!1?(this.deactivate(),this.$container.detach(),jn.finish()):(t.deactivate(),this.$overflow.velocity({opacity:[0,t._overflowOpacity]},{duration:i.duration,queue:!1}),this._runAnimation(i.closing,i.duration,function(){t.$container.detach(),jn.finish()})),this.onCloseEvent.fireNew())},deactivate:function(){this._slideShow&&(this._slideShow.deactivate(),this._onSelectSlideEventListener.deactivate(),this._windowSizeEventListener.deactivate(),this._containerAreaBinding.unbind("popup"),this._slideshowStatesBindingManager.deactivate(),this._carouselConnector.deactivate(),this._thumbsCarouselConnector.deactivate(),this._carousel.deactivate(),this._thumbsCarousel.deactivate())},dispose:function(){this.deactivate(),this.options.implementation.onDispose(this),this.hide(!1),this.$container.remove()},_setItems:function(e,t){var n=this._imagesCollection;return e instanceof Array?(n||(n=new $t),t&&t.shouldResetItems&&n.clear(),n.put(e)):n=e instanceof $t?e:new $t,n},_runAnimation:function(e,t,n){var i=this,a=Rn[e];a?a.run(this.$element,{duration:t,complete:n}):n(),setTimeout(function(){i.$container.css("visibility","visible")},0)},_setSize:function(e){this._setScale(),this._carousel.resize(),e&&this._slideShow.itemsCount>1&&this._thumbsCarousel.resize(!1,e),this.options.implementation.onResize()},_setScale:function(){if(this._thumbsCarousel){var e,t,n,i,a,r=1024;this.options.isMobile||(e=this.$container.width(),r>e?(n=e/r||1,t=this.$container.height(),i=r,a=t/n,this.$wrapper.css({width:i,height:a,marginLeft:-(i-e)/2,marginTop:-(a-t)/2,transform:"scale("+n+")"}),this._thumbsCarousel._thumbsContainerScale=n,this._isScaled=!0):this._isScaled&&(this.$wrapper.css({width:"100%",height:"100%",marginLeft:0,marginTop:0,transform:"none"}),this._thumbsCarousel._thumbsContainerScale=1,this._isScaled=!1))}},_toggleKeyboardEvents:function(e){var t,n,i,a=this.options,r=this._slideShow,o=a.isEditorMode,s=0,l=this;e?f(document).on("keydown.popup",function(e){if(t=e.keyCode,27==t||37==t||39==t)switch(i=(new Date).getTime(),t){case 27:e.preventDefault(),o||l.hide();break;case 37:i-s>=500&&r&&(e.preventDefault(),r.goToPreviousSlide(),s=i);break;case 39:i-s>=500&&r&&(e.preventDefault(),r.goToNextSlide(),s=i)}else if(a.isVideo&&(32==t||38==t||40==t)&&(e.preventDefault(),n=l._carousel._currentItem.itemView,n.videoId))switch(t){case 32:n.isPlaying?n.pauseVideo():n.playVideo();break;case 38:n.increaseVolume();break;case 40:n.decreaseVolume()}}):f(document).off("keydown.popup")}});return e.create=function(t){return new e(t)},e.createSettingsBinding=function(e,t,n,i){var a,r=e.settingsDictionary;n!==e.sessionId&&(r=D.create({},f.quickExtend({},e.defaultSettings,i)),e.sessionId=n),a=r.bind(function(n,i){e.updatePopupSettingField(t,n,i)}),x.createEventListener(t.onShowEvent,function(){r.each(function(n,i){e.updatePopupSettingField(t,n,i)})}).activate(),x.createEventListener(t.onCloseEvent,function(){a.unbind()}).activate(),e.settingsDictionary=r},e}(),Nn=function(){function e(e,t){var n={};return f.eachItem(e,function(e,i){f.eachItem(i.percentageValues,function(e,a){t&&void 0===i.values[t]||(n[a]=i)})}),n}var t=C.extend("AnimatedObject",{init:function(e,t){t=f.quickExtend({onPropertiesChanged:cs},t);var n=f.quickExtend({},e);this._onPropertiesChanged=t.onPropertiesChanged,this._properties=n,this._animatedObj=f(n),this._isActive=!1},animate:function(e,t){t=f.quickExtend({progress:cs},t);var n=this;return t.progress=f.hookAfterMethod(t.progress,function(){n._onPropertiesChanged(f.cloneObject(n._properties))}),this._animatedObj.animate(e,t),this},animateFrames:function(t,n){var i=this;n=f.quickExtend({progress:cs},n);var a=e(t),r=f.getKeys(a).orderBy(),o=n.duration;return f.eachItem(r,function(e,t){var s=0===e?0:r[e-1],l=a[t],c=o*(t-s),u=f.quickExtend({},n,{duration:c},l.options);i.animate(l.values,u)}),this},delay:function(e,t){return this._animatedObj.delay(e,t),this},stop:function(e,t){this._animatedObj.stop(e,t)},getValue:function(e){return this._properties[e]},setValue:function(e,t){this._properties[e]=t},promise:function(){return this._animatedObj.promise()}});return t.create=function(e,n){return new t(e,n)},t.traverseFrames=function(e){var t=[];return f.eachItem(e,function(e,n){var i=f.quickExtend({},n);i.percentageValues=[],f.eachItem(n.percentageValues,function(e,t){i.percentageValues.push(1-t)}),t.push(i)}),t},t.simulateAnimationProgress=function(t){t=f.quickExtend({duration:void 0,easing:void 0,from:void 0,to:void 0,frames:void 0},t);var n=t.duration,i=[],a=e(t.frames),r=f.getKeys(a).orderBy(),o=a[r[0]],s=[];return s=t.props?t.props:f.getKeys(o.values),f.eachItem(s,function(a,r){for(var o,s,l,c,u,d=e(t.frames,r),g=f.getKeys(d).orderBy(),p=0,h=d[g[p]],m=d[g[p+1]],v=100*g[p],y=100*g[p+1],b=f.valueOrDefault(h.easing,"linear"),C=0;1e3>=C;C++)o=C/10,o>=v&&(m&&o>y&&(h=m,m=void 0,p++,g[p+1]&&(m=d[g[p+1]]),v=100*g[p],y=100*g[p+1],b=f.valueOrDefault(h.easing,"linear")),s=!!i[C],l=s?i[C]:{},c=h.values[r],m?(u=m.values[r],l[r]=f.easing[b]("",(o-v)/100*n,c,u-c,(y-v)/100*n)):l[r]=c,!s&&i.push(l))}),i},t}(),Rn={},Hn=function(){function e(e){return e===o.AnimationDirections.Left||e===o.AnimationDirections.Right}function t(e){return e===o.AnimationDirections.Top||e===o.AnimationDirections.Bottom}function n(n,i,a){var r,o=e(n);t(n);return r=o?0>n?-i.left-a.width:f.getWindowSize().width-i.left:0>n?-f.getWindowSize().height:f.getWindowSize().height}var i={perspective:0,scaleX:1,scaleY:1,scaleZ:1,translateX:0,translateY:0,translateZ:0,rotateX:0,rotateY:0,rotateZ:0,degrees:0,skewX:0,skewY:0,opacity:1},a=j.prefixed("transform"),r=j.prefixed("backface-visibility"),o=C.extend("Effect",{init:function(e,t){var n=this,i=f(e[0]);n._options=t=f.quickExtend({forward:!0,runInLoop:!1,getSize:function(){return i.outerSize()},getOffset:function(){return i.offset()}},t),t.duration=Math.max(t.duration,50),n._forward=t.forward,n._runInLoop=t.runInLoop,
n._$elements=e,n._$mainElement=i,n.name=t.name,n.id=f.weakID(),n._getOffset=t.getOffset,n._getSize=t.getSize,n._progressValueArray=Nn.simulateAnimationProgress(f.quickExtend({duration:1e3,easing:"swing"},n._getProgressArrayOptions(t))),this._usePlaceHolder(t.placeholderOptions),this._createWrapper(t.placeholderOptions),this._setElementToAnimate()},isOutEffect:ds,isInEffect:ds,getProgress:function(){return this._actualProgress},setProgress:function(e,t){var n=this,i=this._actualProgress;e=0>e?0:e,t||void 0===i?(e=this._calculateCurrentProgress(e),this._actualProgress=e,n._updateEffectProgress(e)):this.run({startProgress:i,endProgress:e,duration:80})},complete:function(){this._animatedObject&&this._animatedObject.stop(!0,!1),this._actualProgress<1&&this.setProgress(1,!0)},_dispose:function(){this.complete()},dispose:function(){this._isDisposed||(this._isDisposed=!0,this._dispose(),this._releasePlaceHolder(),this._removeWrapper())},reset:function(){return this._animatedObject&&this._animatedObject.stop(!0,!1),0!==this._actualProgress&&this.setProgress(0,!0),this},stop:function(){this.complete()},promise:function(){return this._animatedObject&&this._animatedObject.promise()},run:function(e){var t=this;e=f.quickExtend({delay:0,startProgress:0,endProgress:1,runInLoop:!1,duration:1e3,complete:cs},e),e.duration=Math.max(e.duration,50),this._animatedObject&&this._animatedObject.stop(!0,!1);var n=Nn.create({progress:e.startProgress},{onPropertiesChanged:function(e){t.setProgress(e.progress,!0)}});return this._animatedObject=n,e.delay&&n.delay(e.delay),n.animate({progress:e.endProgress},{duration:void 0!==e.duration?e.duration:t._options.duration,easing:"linear",complete:function(){e.complete(),e.runInLoop&&t.run(e)}}),t},_getProgressArrayOptions:cs,_usePlaceHolder:function(e){var t=this._$elements,n=[],i=this;f.each(t,function(t,a){n.push(o.usePlaceHolder(f(a),i.id,e))}),this._placeholders=n},_releasePlaceHolder:function(){var e=this._$elements,t=this;f.each(e,function(e,n){o.releasePlaceHolder(f(n),t.id)})},_setElementToAnimate:function(){this._$elementToAnimate=this._$wrappers},_createWrapper:function(e){var t=this._$elements,n=f([]);f.each(t,function(t,i){n.pushElements(o.createWrapper(f(i),e))}),this._$wrappers=n},_removeWrapper:function(){this._$wrappers&&f.each(this._$wrappers,function(e,t){o.removeWrapper(f(t))})},_updateEffectProgress:function(e){var t=this;t._updateEffectProgressInner(e)},_updateEffectProgressInner:function(e){var t=this;if(e=Math.floor(1e3*e),t._$elementToAnimate.css(t._valueConverter(t._progressValueArray[e])),1e3===e||0===e){var n=j.prefixed("transform"),i={};i[n]="none",t._$elementToAnimate.css(i)}},_valueConverter:function(e){return e},_calculateCurrentProgress:function(e){return this._forward?e:1-e}}),s=o.extend("OutEffect",{_dispose:function(){this._animatedObject&&this._animatedObject.stop(!0,!1),this.setProgress(0,!0)},isOutEffect:us}),l=o.extend("InEffect",{_dispose:function(){this.complete()},isInEffect:us});return o.AnimationDirections={None:0,Left:-1,Right:2,Top:-3,Bottom:4},Rn.BounceAndFlyOut=s.extend("BounceAndFlyOut",function(i){return{init:function(e,t){t=f.quickExtend({flyDirection:o.AnimationDirections.Right},t),i.call(this,e,t)},_getProgressArrayOptions:function(i){var a=i.flyDirection,r=e(a),o=t(a),s=a/Math.abs(a),l=this._getOffset(),c=n(a,l,this._getSize());return{frames:[{easing:"easeOutCubic",percentageValues:[1],values:{left:r?c:0,top:o?c:0,opacity:0}},{easing:"easeOutCubic",percentageValues:[.99],values:{opacity:1}},{easing:"easeOutCubic",percentageValues:[.4],values:{left:r?-25*s:0,top:o?-25*s:0}},{easing:"easeOutCubic",percentageValues:[.25],values:{left:r?10*s:0,top:o?10*s:0}},{easing:"easeOutCubic",percentageValues:[.1],values:{left:r?-5*s:0,top:o?-5*s:0}},{easing:"easeOutCubic",percentageValues:[0],values:{left:0,top:0,opacity:1}}]}}}}),Rn.FlyInAndBounce=l.extend("FlyInAndBounce",function(i){return{init:function(e,t){t=f.quickExtend({flyDirection:o.AnimationDirections.Right},t),i.call(this,e,t)},_getProgressArrayOptions:function(i){var a=i.flyDirection,r=e(a),o=t(a),s=n(a,this._getOffset(),this._getSize());return a/=Math.abs(a),{frames:[{easing:"easeOutCubic",percentageValues:[0],values:{left:r?s:0,top:o?s:0,opacity:0}},{easing:"easeOutCubic",percentageValues:[.01],values:{opacity:1}},{easing:"easeOutCubic",percentageValues:[.6],values:{left:r?-25*a:0,top:o?-25*a:0}},{easing:"easeOutCubic",percentageValues:[.75],values:{left:r?10*a:0,top:o?10*a:0}},{easing:"easeOutCubic",percentageValues:[.9],values:{left:r?-5*a:0,top:o?-5*a:0}},{easing:"easeOutCubic",percentageValues:[1],values:{left:0,top:0}}]}}}}),Rn.FlyOut=s.extend("FlyOut",function(i){return{init:function(e,t){t=f.quickExtend({flyDirection:o.AnimationDirections.Right},t),i.call(this,e,t)},_getProgressArrayOptions:function(i){var a=i.flyDirection,r=n(a,this._getOffset(),this._getSize());return{frames:[{easing:"easeOutCubic",percentageValues:[1],values:{left:e(a)?r:0,top:t(a)?r:0,opacity:0}},{easing:"easeOutCubic",percentageValues:[.99],values:{opacity:1}},{easing:"easeOutCubic",percentageValues:[0],values:{left:0,top:0,opacity:1}}]}}}}),Rn.FlyIn=l.extend("FlyIn",function(i){return{init:function(e,t){t=f.quickExtend({flyDirection:o.AnimationDirections.Right},t),i.call(this,e,t)},_getProgressArrayOptions:function(i){var a=i.flyDirection,r=n(a,this._getOffset(),this._getSize());return{frames:[{easing:"easeOutCubic",percentageValues:[0],values:{left:e(a)?r:0,top:t(a)?r:0,opacity:0}},{easing:"easeOutCubic",percentageValues:[.01],values:{opacity:1}},{easing:"easeOutCubic",percentageValues:[1],values:{left:0,top:0}}]}}}}),Rn.FadeInSmall=l.extend("FadeInSmall",function(n){return{init:function(e,t){t=f.quickExtend({flyDirection:o.AnimationDirections.Right,verticalDirection:o.AnimationDirections.None},t),n.call(this,e,t)},_getProgressArrayOptions:function(n){var i=n.flyDirection,a=i/Math.abs(i)*100,r=this._getSize();return{frames:[{easing:"easeOutCubic",percentageValues:[0],values:{opacity:0,left:e(i)?a:0,top:t(i)?a*r.height/100:0}},{easing:"easeOutCubic",percentageValues:[1],values:{opacity:1,left:0,top:0}}]}},_valueConverter:function(e){return{top:e.top+"px",left:e.left+"%",opacity:e.opacity}}}}),Rn.FadeInFly=l.extend("FadeInFly",function(i){return{init:function(e,t){t=f.quickExtend({flyDirection:o.AnimationDirections.Right},t),i.call(this,e,t)},_getProgressArrayOptions:function(i){var a=i.flyDirection,r=n(a,this._getOffset(),this._getSize());return{frames:[{easing:"swing",percentageValues:[0],values:{opacity:0,left:e(a)?r:0,top:t(a)?r:0}},{easing:"swing",percentageValues:[1],values:{opacity:1,left:0,top:0}}]}}}}),Rn.FadeOutSmall=s.extend("FadeOutSmall",function(n){return{init:function(e,t){t=f.quickExtend({flyDirection:o.AnimationDirections.Right},t),n.call(this,e,t)},_getProgressArrayOptions:function(n){var i=n.flyDirection,a=i/Math.abs(i)*100,r=this._getSize();return{frames:[{easing:"easeOutCubic",percentageValues:[1],values:{opacity:0,left:e(i)?a:0,top:t(i)?a*r.height/100:0}},{easing:"easeOutCubic",percentageValues:[0],values:{opacity:1,left:0,top:0}}]}},_valueConverter:function(e){return{top:e.top+"px",left:e.left+"%",opacity:e.opacity}}}}),Rn.FadeOutFly=s.extend("FadeOutFly",function(i){return{init:function(e,t){t=f.quickExtend({flyDirection:o.AnimationDirections.Right},t),i.call(this,e,t)},_getProgressArrayOptions:function(i){var a=i.flyDirection,r=n(a,this._getOffset(),this._getSize());return{frames:[{easing:"swing",percentageValues:[1],values:{opacity:0,left:e(a)?r:0,top:t(a)?r:0}},{easing:"swing",percentageValues:[0],values:{opacity:1,left:0,top:0}}]}}}}),Rn.FadeIn=l.extend("FadeIn",function(e){return{init:function(t,n){n=f.quickExtend({},n),e.call(this,t,n)},_getProgressArrayOptions:function(){return{frames:[{easing:"swing",percentageValues:[0],values:{opacity:0}},{easing:"swing",percentageValues:[1],values:{opacity:1}}]}}}}),Rn.FadeOut=s.extend("FadeOut",function(e){return{init:function(t,n){n=f.quickExtend({},n),e.call(this,t,n)},_getProgressArrayOptions:function(){return{frames:[{easing:"swing",percentageValues:[0],values:{opacity:1}},{easing:"swing",percentageValues:[1],values:{opacity:0}}]}}}}),Rn.SlideTo=s.extend("SlideTo",function(e){return{init:function(t,n){n=f.quickExtend({movementDistanceVertically:500,movementDistanceHorizontally:0},n),e.call(this,t,n)},_getProgressArrayOptions:function(e){return{frames:[{easing:"easeOutCubic",percentageValues:[0],values:{top:0,left:0}},{easing:"easeOutCubic",percentageValues:[1],values:{top:e.movementDistanceVertically,left:e.movementDistanceHorizontally}}]}}}}),Rn.SlideFrom=l.extend("SlideFrom",function(e){return{init:function(t,n){n=f.quickExtend({movementDistanceVertically:500,movementDistanceHorizontally:0},n),e.call(this,t,n)},_getProgressArrayOptions:function(e){return{frames:[{easing:"easeInCubic",percentageValues:[1],values:{top:0,left:0}},{easing:"easeInCubic",percentageValues:[0],values:{top:e.movementDistanceVertically,left:e.movementDistanceHorizontally}}]}}}}),Rn.BasicBounceIn=l.extend("BasicBounceIn",function(e){return{init:function(t,n){n=f.quickExtend({minScale:.3,maxScale:1.1},n),e.call(this,t,n)},_getProgressArrayOptions:function(e){return{props:["opacity","scaleX","scaleY","scaleZ"],frames:[{easing:"easeOutCubic",percentageValues:[0],values:{opacity:0,scaleX:e.minScale,scaleY:e.minScale,scaleZ:e.minScale}},{easing:"easeOutCubic",percentageValues:[.2],values:{scaleX:e.maxScale,scaleY:e.maxScale,scaleZ:e.maxScale}},{easing:"easeOutCubic",percentageValues:[1],values:{opacity:1,scaleX:1,scaleY:1,scaleZ:1}}]}},_valueConverter:function(e){var t="scale3D({scaleX},{scaleY},{scaleZ})".format(e),n=j.prefixed("transform"),i={opacity:e.opacity};return i[n]=t,i}}}),Rn.BounceIn=l.extend("BounceIn",function(e){return{init:function(t,n){n=f.quickExtend({},n),e.call(this,t,n)},_getProgressArrayOptions:function(){return{props:["opacity","scaleX","scaleY","scaleZ"],frames:[{easing:"easeOutCubic",percentageValues:[0],values:{opacity:0,scaleX:.3,scaleY:.3,scaleZ:.3}},{easing:"easeOutCubic",percentageValues:[.2],values:{scaleX:1.1,scaleY:1.1,scaleZ:1.1}},{easing:"easeOutCubic",percentageValues:[.4],values:{scaleX:.9,scaleY:.9,scaleZ:.9}},{easing:"easeOutCubic",percentageValues:[.6],values:{opacity:1,scaleX:1.03,scaleY:1.03,scaleZ:1.03}},{easing:"easeOutCubic",percentageValues:[.8],values:{scaleX:.97,scaleY:.97,scaleZ:.97}},{easing:"easeOutCubic",percentageValues:[1],values:{opacity:1,scaleX:1,scaleY:1,scaleZ:1}}]}},_valueConverter:function(e){var t="scale3D({scaleX},{scaleY},{scaleZ})".format(e),n={opacity:e.opacity};return n[a]=t,n}}}),Rn.BounceOut=s.extend("BounceOut",function(e){return{init:function(t,n){n=f.quickExtend({},n),e.call(this,t,n)},_getProgressArrayOptions:function(){return{props:["opacity","scaleX","scaleY","scaleZ"],frames:[{easing:"easeOutCubic",percentageValues:[1],values:{opacity:0,scaleX:.3,scaleY:.3,scaleZ:.3}},{easing:"easeOutCubic",percentageValues:[.8],values:{scaleX:1.1,scaleY:1.1,scaleZ:1.1}},{easing:"easeOutCubic",percentageValues:[.6],values:{scaleX:.9,scaleY:.9,scaleZ:.9}},{easing:"easeOutCubic",percentageValues:[.4],values:{opacity:1,scaleX:1.03,scaleY:1.03,scaleZ:1.03}},{easing:"easeOutCubic",percentageValues:[.2],values:{scaleX:.97,scaleY:.97,scaleZ:.97}},{easing:"easeOutCubic",percentageValues:[0],values:{opacity:1,scaleX:1,scaleY:1,scaleZ:1}}]}},_valueConverter:function(e){var t="scale3D({scaleX},{scaleY},{scaleZ})".format(e),n={opacity:e.opacity};return n[a]=t,n}}}),Rn.Bounce=o.extend("Bounce",function(e){return{init:function(t,n){n=f.quickExtend({bounce:.2},n),e.call(this,t,n)},_getProgressArrayOptions:function(e){return{frames:[{easing:"easeOutCubic",percentageValues:[0,.55,.58,.8,.83,.96,1],values:{top:0}},{easing:"easeInQuint",percentageValues:[.3,.33],values:{top:-30*e.bounce*10}},{easing:"easeInQuint",percentageValues:[.7],values:{top:-15*e.bounce*10}},{percentageValues:[.93],values:{top:-4*e.bounce*10}}]}}}}),Rn.Flash=o.extend("Flash",function(e){return{init:function(t,n){n=f.quickExtend({},n),e.call(this,t,n)},_getProgressArrayOptions:function(){return{frames:[{easing:"linear",percentageValues:[0,.5,1],values:{opacity:1}},{easing:"linear",percentageValues:[.25,.75],values:{opacity:0}}]}}}}),Rn.Pulse=o.extend("Pulse",function(e){return{init:function(t,n){n=f.quickExtend({},n),e.call(this,t,n)},_getProgressArrayOptions:function(){return{frames:[{easing:"swing",percentageValues:[0,.5,1],values:{scale:1}},{easing:"swing",percentageValues:[.25],values:{scale:1.1}},{easing:"swing",percentageValues:[.75],values:{scale:1.05}}]}},_valueConverter:function(e){var t="scale3D({0},{0},{0})".format(e.scale),n={};return n[a]=t,n}}}),Rn.RubberBand=o.extend("RubberBand",function(e){return{init:function(t,n){n=f.quickExtend({},n),e.call(this,t,n)},_getProgressArrayOptions:function(){return{frames:[{easing:"swing",percentageValues:[0,1],values:{scaleX:1,scaleY:1,scaleZ:1}},{easing:"swing",percentageValues:[.3],values:{scaleX:1.25,scaleY:.75,scaleZ:1}},{easing:"swing",percentageValues:[.4],values:{scaleX:.75,scaleY:1.25,scaleZ:1}},{easing:"swing",percentageValues:[.5],values:{scaleX:1.15,scaleY:.85,scaleZ:1}},{easing:"swing",percentageValues:[.65],values:{scaleX:.95,scaleY:1.05,scaleZ:1}},{easing:"swing",percentageValues:[.75],values:{scaleX:1.05,scaleY:.95,scaleZ:1}}]}},_valueConverter:function(e){var t="scale3D({scaleX},{scaleY},{scaleZ})".format(e),n={};return n[a]=t,n}}}),Rn.Shake=o.extend("Shake",function(e){return{init:function(t,n){n=f.quickExtend({shake:.1},n),e.call(this,t,n)},_getProgressArrayOptions:function(e){return{frames:[{easing:"swing",percentageValues:[0,1],values:{translateX:0,translateY:0,translateZ:0}},{easing:"swing",percentageValues:[.1,.3,.5,.7,.9],values:{translateX:-10*e.shake*10,translateY:0,translateZ:0}},{easing:"swing",percentageValues:[.3,.4,.6,.8],values:{translateX:10*e.shake*10,translateY:0,translateZ:0}}]}},_valueConverter:function(e){var t="translate3D({translateX}px,{translateY}px,{translateZ}px)".format(e),n={};return n[a]=t,n}}}),Rn.Swing=o.extend("Swing",function(e){return{init:function(t,n){n=f.quickExtend({rotate:.1},n),e.call(this,t,n)},_getProgressArrayOptions:function(e){return{frames:[{easing:"swing",percentageValues:[0,1],values:{degrees:0,rotateX:0,rotateY:0,rotateZ:0}},{easing:"swing",percentageValues:[.2],values:{degrees:15*e.rotate*10,rotateX:0,rotateY:0,rotateZ:1}},{easing:"swing",percentageValues:[.4],values:{degrees:-10*e.rotate*10,rotateX:0,rotateY:0,rotateZ:1}},{easing:"swing",percentageValues:[.6],values:{degrees:5*e.rotate*10,rotateX:0,rotateY:0,rotateZ:1}},{easing:"swing",percentageValues:[.8],values:{degrees:-5*e.rotate*10,rotateX:0,rotateY:0,rotateZ:1}}]}},_valueConverter:function(e){var t="rotate3D({rotateX},{rotateY},{rotateZ},{degrees}deg)".format(e),n={};return n[a]=t,n}}}),Rn.Tada=o.extend("Tada",function(e){return{init:function(t,n){n=f.quickExtend({rotate:.1},n),e.call(this,t,n)},_getProgressArrayOptions:function(){return{frames:[{easing:"swing",percentageValues:[0,1],values:{degrees:0,rotateX:0,rotateY:0,rotateZ:0,scaleX:1,scaleY:1,scaleZ:1}},{easing:"swing",percentageValues:[.1,.2],values:{degrees:-3,rotateX:0,rotateY:0,rotateZ:1,scaleX:.9,scaleY:.9,scaleZ:.9}},{easing:"swing",percentageValues:[.4,.6,.8],values:{degrees:-3,rotateX:0,rotateY:0,rotateZ:1,scaleX:1.1,scaleY:1.1,scaleZ:1.1}},{easing:"swing",percentageValues:[.3,.5,.7,.9],values:{degrees:3,rotateX:0,rotateY:0,rotateZ:1,scaleX:1.1,scaleY:1.1,scaleZ:1.1}}]}},_valueConverter:function(e){var t="scale3D({scaleX},{scaleY},{scaleZ}) rotate3D({rotateX},{rotateY},{rotateZ},{degrees}deg)".format(e),n={};return n[a]=t,n}}}),Rn.Wobble=o.extend("Wobble",function(e){return{init:function(t,n){n=f.quickExtend({rotate:.1},n),e.call(this,t,n)},_getProgressArrayOptions:function(){return{frames:[{easing:"swing",percentageValues:[0,1],values:{degrees:0,rotateX:0,rotateY:0,rotateZ:0,translateX:0,translateY:0,translateZ:0}},{easing:"swing",percentageValues:[.15],values:{degrees:-5,rotateX:0,rotateY:0,rotateZ:1,translateX:-25,translateY:0,translateZ:0}},{easing:"swing",percentageValues:[.3],values:{degrees:3,rotateX:0,rotateY:0,rotateZ:1,translateX:20,translateY:0,translateZ:0}},{easing:"swing",percentageValues:[.45],values:{degrees:-3,rotateX:0,rotateY:0,rotateZ:1,translateX:-15,translateY:0,translateZ:0}},{easing:"swing",percentageValues:[.6],values:{degrees:2,rotateX:0,rotateY:0,rotateZ:1,translateX:10,translateY:0,translateZ:0}},{easing:"swing",percentageValues:[.75],values:{degrees:-1,rotateX:0,rotateY:0,rotateZ:1,translateX:-5,translateY:0,translateZ:0}}]}},_valueConverter:function(e){var t=f.quickExtend({},e);t.translateX=0!==t.translateX?t.translateX+"%":0,t.translateY=0!==t.translateY?t.translateY+"%":0,t.translateZ=0!==t.translateZ?t.translateZ+"%":0;var n="translate3d({translateX},{translateY},{translateZ}) rotate3d({rotateX},{rotateY},{rotateZ},{degrees}deg)".format(t),i={};return i[a]=n,i}}}),Rn.Jello=o.extend("Jello",function(e){return{init:function(t,n){n=f.quickExtend({shake:.1},n),e.call(this,t,n)},_getProgressArrayOptions:function(){return{frames:[{easing:"swing",percentageValues:[0,.111,1],values:{skewX:0,skewY:0}},{easing:"swing",percentageValues:[.222],values:{skewX:-12.5,skewY:-12.5}},{easing:"swing",percentageValues:[.333],values:{skewX:6.25,skewY:6.25}},{easing:"swing",percentageValues:[.444],values:{skewX:-3.125,skewY:-3.125}},{easing:"swing",percentageValues:[.555],values:{skewX:1.5625,skewY:1.5625}},{easing:"swing",percentageValues:[.666],values:{skewX:-.78125,skewY:-.78125}},{easing:"swing",percentageValues:[.777],values:{skewX:.390625,skewY:.390625}},{easing:"swing",percentageValues:[.888],values:{skewX:-.1953125,skewY:-.1953125}}]}},_valueConverter:function(e){var t="skewX({skewX}deg) skewY({skewY}deg)".format(e),n={};return n[a]=t,n}}}),Rn.Flip=o.extend("Flip",function(e){return{init:function(t,n){n=f.quickExtend({rotate:.1},n),e.call(this,t,n)},_getProgressArrayOptions:function(){var e=this._getSize();return{props:["perspective","rotateY","degrees","translateZ"],frames:[{easing:"easeOutQuad",percentageValues:[0],values:{perspective:3.5*e.width,rotateY:1,degrees:-360,translateZ:0}},{easing:"easeOutQuad",percentageValues:[.4],values:{translateZ:150}},{easing:"easeInQuad",percentageValues:[1],values:{perspective:3.5*e.width,scaleX:1,scaleY:1,scaleZ:1,rotateY:1,degrees:0,translateZ:0}}]}},_valueConverter:function(e){var t=" perspective({perspective}px) translate3d(0,0,{translateZ}px)  scale3D({scaleX},{scaleY},{scaleZ}) rotate3D(0,{rotateY},0,{degrees}deg)".format(f.quickExtend({},i,e)),n={};return n[a]=t,n[r]="visible !important",n}}}),Rn.FlipIn=l.extend("FlipIn",function(e){return{init:function(t,n){n=f.quickExtend({direction:"horizontal"},n),e.call(this,t,n)},_getProgressArrayOptions:function(e){var t="vertical"===e.direction?1:0,n="horizontal"===e.direction?1:0,i=this._getSize();return{props:["perspective","rotateX","rotateY","rotateZ","degrees","opacity"],frames:[{easing:"easeOutQuad",percentageValues:[0],values:{perspective:3.5*i.width,rotateX:n,rotateY:t,rotateZ:0,degrees:90,opacity:0}},{easing:"easeOutQuad",percentageValues:[.4],values:{rotateX:n,rotateY:t,rotateZ:0,degrees:-20}},{easing:"easeInQuad",percentageValues:[.6],values:{rotateX:n,rotateY:t,rotateZ:0,degrees:10,opacity:1}},{easing:"easeInQuad",percentageValues:[.8],values:{rotateX:n,rotateY:t,rotateZ:0,degrees:-5}},{easing:"easeInQuad",percentageValues:[1],values:{perspective:3.5*i.width,rotateX:0,rotateY:0,rotateZ:0,degrees:0,opacity:1}}]}},_valueConverter:function(e){var t=" perspective({perspective}px) rotate3D({rotateX},{rotateY},{rotateZ},{degrees}deg)".format(e),n={};return n[a]=t,n[r]="visible !important",n.opacity=e.opacity,n}}}),Rn.FlipOut=s.extend("FlipOut",function(e){return{init:function(t,n){n=f.quickExtend({direction:"vertical"},n),e.call(this,t,n)},_getProgressArrayOptions:function(e){var t="vertical"===e.direction?1:0,n="horizontal"===e.direction?1:0,i=this._getSize();return{props:["perspective","rotateX","rotateY","rotateZ","degrees","opacity"],frames:[{easing:"swing",percentageValues:[1],values:{perspective:3.5*i.width,rotateX:n,rotateY:t,rotateZ:0,degrees:90,opacity:0}},{easing:"swing",percentageValues:[.3],values:{rotateX:n,rotateY:t,rotateZ:0,degrees:-20,opacity:1}},{easing:"swing",percentageValues:[0],values:{rotateX:n,rotateY:t,rotateZ:0,degrees:0,perspective:3.5*i.width,opacity:1}}]}},_valueConverter:function(e){var t=" perspective({perspective}px) rotate3D({rotateX},{rotateY},{rotateZ},{degrees}deg)".format(e),n={};return n[a]=t,n[r]="visible !important",n.opacity=e.opacity,n}}}),Rn.LightSpeedIn=l.extend("LightSpeedIn",function(n){return{init:function(e,t){t=f.quickExtend({},t),n.call(this,e,t)},_getProgressArrayOptions:function(n){n=f.quickExtend({flyDirection:o.AnimationDirections.Right},n);var i=n.flyDirection,a=e(i),r=t(i);return i/=Math.abs(i),{frames:[{easing:"swing",percentageValues:[0],values:{skewX:a?-30:0,skewY:r?-30:0,translateX:a?100*i:0,translateY:r?100*i:0,opacity:0}},{easing:"swing",percentageValues:[.6],values:{skewX:a?20:0,skewY:r?20:0,opacity:1}},{easing:"swing",percentageValues:[.8],values:{skewX:a?-5:0,skewY:r?-5:0}},{easing:"swing",percentageValues:[1],values:{skewX:0,skewY:0,translateX:0,translateY:0,opacity:1}}]}},_valueConverter:function(e){var t="skewX({skewX}deg) skewY({skewY}deg) translate3D({translateX}%,{translateY}%,0)".format(e),n={};return n[a]=t,n.opacity=e.opacity,n}}}),Rn.LightSpeedOut=s.extend("LightSpeedOut",function(n){return{init:function(e,t){t=f.quickExtend({},t),n.call(this,e,t)},_getProgressArrayOptions:function(n){n=f.quickExtend({flyDirection:o.AnimationDirections.Right},n);var i=n.flyDirection,a=e(i),r=t(i);return i/=Math.abs(i),{frames:[{easing:"swing",percentageValues:[1],values:{skewX:a?30:0,skewY:r?30:0,translateX:a?100*i:0,translateY:r?100*i:0,opacity:0}},{easing:"swing",percentageValues:[.6],values:{skewX:a?-20:0,skewY:r?-20:0}},{easing:"swing",percentageValues:[0],values:{skewX:0,skewY:0,translateX:0,translateY:0,opacity:1}}]}},_valueConverter:function(e){var t="skewX({skewX}deg) skewY({skewY}deg) translate3D({translateX}%,{translateY}%,0)".format(e),n={};return n[a]=t,n.opacity=e.opacity,n}}}),o.create=function(e,t,n){n.name=e;var i=Rn[e];return i?i.create(t,n):void 0},o.usePlaceHolder=function(e,t,n){var i=f.objectGet(e[0],["data","effectPlaceHolderRegistrations"]);i||(i={},f.objectSet(e[0],["data","effectPlaceHolderRegistrations"],i)),i[t]=!0;var a=f.objectGet(e[0],["data","effectPlaceHolder"]);return a||(a=St.createEffectPlaceHolder(e,n),f.objectSet(e[0],["data","effectPlaceHolder"],a)),a},o.getPlaceHolder=function(e){return f.objectGet(e[0],["data","effectPlaceHolder"])},o.releasePlaceHolder=function(e,t){var n=f.objectGet(e[0],["data","effectPlaceHolderRegistrations"]);if(n){if(delete n[t],0===f.getKeys(n).length){var i=f.objectGet(e[0],["data","effectPlaceHolder"]);i&&(i.remove(),f.objectSet(e[0],["data","effectPlaceHolder"]))}return i}},o.createWrapper=function(e,t){t=f.quickExtend({},t);var n=f("<div class='block positioned'></div>").addClass(t.className);return e.wrap(n),e.parent()},o.removeWrapper=function(e){if(e){var t=f(e.children()[0]);t&&t.unwrap()}},o}(),qn=function(){var e=C.extend("SequentialEffect",{init:function(e){this._effectInstances=f.asArray(e)},promise:function(){return f.whenResults(f.map(this._effectInstances,function(e){return e.promise()}))},stop:function(){f.eachItem(this._effectInstances,function(e,t){t.stop()})}});return e.create=function(t){return new e(t)},e}();f.eachEntry(Rn,function(e){var t=Rn[e];Rn[e]={},Rn[e].create=function(e,n){return new t(e,n)},Rn[e].run=function(t,n){var i=Rn[e].create(t,n);return i.run(n).promise().always(function(){i.dispose()}),i},Rn[e].runSequentially=function(t,n){n=f.quickExtend({sequenceInterval:200,delay:0,minDuration:100},n);var i=n.delay,a=n.sequenceInterval,r=n.overallDuration,o=n.minDuration,s=n.duration;r&&(s=Math.max(o,r-(t.length-1)*a));var l=[];return t.each(function(t){var r=f.quickExtend(f.cloneObject(n),{delay:i+a*t,duration:s}),o=Rn[e].create(f(this),r);o.reset().run(r).promise().always(function(){o.dispose()});l.push(o)}),qn.create(l)}}),Hn.Effects=f.mapToDictionary(["FadeIn","FadeOut","Slide","FlyIn","FlyOut","Bounce","Flash","Pulse","RubberBand","MoveTo","Shake","Swing","Tada","Wobble","Jello","BounceIn","FlyInAndBounce","BounceAndFlyOut","BounceOut"],function(e){return{name:e}},f.returnValue);var Un=function(){function e(){return f.getWindowSize().height}function t(t,n,i,a,r,o,s){var l=s===be.Bottom||s===be.Visibility?1:-1,c=o.startDistance;if(s===be.Visibility){var u=t._getSize(t._$mainElement);c=o.startVisibility*u.height}var d=f.valueOrDefault(o.distanceDelay,0);o.isParallax?f.eachItem(a,function(e,t){var i=f.valueOrDefault(r[e].options,{}),a=f.valueOrDefault(i.distanceDelay,d),s=c+a,u=s+o.distance*l;if(n*l>=s*l&&u*l>=n*l){var g=t.getProgress(),p=(u-s)*l,h=0===p?0:(p-(u-n)*l)/p;0===g&&h>0&&o.activateCallback(t),1===g&&1>h&&o.reverseActivateCallback(t),t.setProgress(h)}else s*l>n*l?(t.reset(),o.resetCallback(t)):(t.complete(),o.completeCallback(t))}):f.eachItem(a,function(i,a){var u=f.quickExtend({duration:o.duration,delay:o.delay},r[i].options),g=f.valueOrDefault(u.distanceDelay,d),p=c+g;if(n*l>=p*l){var h=t._onTimeAnimationsActivationMap[a.id];if(!h){t._onTimeAnimationsActivationMap[a.id]=!0;var m=t._effectsActivationMap[a.id];m&&o.oneTimeAnimation||(o.activateCallback(a),a.run({delay:u.delay,duration:u.duration,runInLoop:o.runInLoop,complete:function(){o.completeCallback(a)}}),t._effectsActivationMap[a.id]=!0)}}else(s===be.Center&&n>e()/2||(s===be.Bottom||s===be.Visibility)&&0>n||s===be.Top&&n>e())&&(t._onTimeAnimationsActivationMap[a.id]=!1,o.oneTimeAnimation||(a.reset(a),o.resetCallback(a)))})}var n=C.extend("ScrollableEffect",{init:function(e,t,n){var i=this,a=[];n=f.quickExtend({completeCallback:cs,resetCallback:cs,activateCallback:cs},n),this._onTimeAnimationsActivationMap={},this._$elements=e,this._$mainElement=f(e[0]),this._effectsObjects=a,this._effectsActivationMap={},this._effects=t,this._getSize=f.valueOrDefault(n.getSize,function(e){return e.outerSize()}),this._getTopOffset=f.valueOrDefault(n.getTopOffset,function(){return i._$mainElement.offset().top}),f.eachItem(t,function(t,r){var o=Hn.create(r.name,e,f.quickExtend({},n,{duration:n.duration,placeholderOptions:{className:"full-height",ignoreOffset:!0,getSize:function(){return i._getSize()},getOffset:n.getOffset}},r.options));o&&a.push(o)}),this.reset(n)},reset:function(n){var i=this;this._getSize=f.valueOrDefault(n.getSize,function(e){return e.outerSize()}),this._getTopOffset=f.valueOrDefault(n.getTopOffset,function(){return i._$mainElement.offset().top}),this._scrollingTracker&&this._scrollingTracker.deactivate();this._scrollingTracker=Ce.create({measureDistanceType:n.measureDistanceType!==be.Visibility?n.measureDistanceType:be.Bottom,$element:i._$mainElement,$scrollablePane:n.$scrollablePane,getTopOffset:this._getTopOffset,getWindowHeight:e,scrollingDistanceChangeCallback:function(e,a){t(i,e,a,i._effectsObjects,i._effects,n,n.measureDistanceType)}});n.activate&&i._scrollingTracker.activate()},activate:function(){f.eachItem(this._effectsObjects,function(e,t){t.reset()}),this._scrollingTracker.activate()},dispose:function(){var e=this;e._scrollingTracker.deactivate(),f.eachItem(this._effectsObjects,function(e,t){t.dispose()}),e._effectsActivationMap={},e._onTimeAnimationsActivationMap={}}});return n.create=function(e,t,i){return new n(e,t,i)},n}();!function(e,t){function n(){t.eachEntry(c,function(e,t){o(t)}),c={},u=!1}for(var i=!0,a=0,r=["webkit","moz"],o=e.requestAnimationFrame,s=e.cancelAnimationFrame,l=r.length;--l>=0&&!o;)o=e[r[l]+"RequestAnimationFrame"],s=e[r[l]+"CancelAnimationFrame"];o&&s||(i=!1,o=function(e){var t=+new Date,n=Math.max(a+16,t);return setTimeout(function(){e(a=n)},n-t)},s=clearTimeout),e.requestAnimationFrame=o,e.cancelAnimationFrame=s;var c={},u=!1;t.updateDOM=function(e,t){i?t?(c[t]=e,u||(u=!0,o(n))):o(e):e()}}(window,p),function(e){function t(e){for(var n=e.childNodes,i=n.length,a=0;i>a;a++){var r=n[a],o=r.nodeType;if(3===o&&""!==r.nodeValue)return e;if(1===o)return t(r)}return e}function n(e){for(var t=e.childNodes,i=t.length,a=0;i>a;a++){var r=t[a],o=r.nodeType;if(3===o&&""!==r.nodeValue)return e;if(1===o){var s=r.tagName;if("br"===s.toLowerCase())return e;var l=n(r);if(null!==l)return l}}return null}function i(e){for(var t=e.childNodes,n=t.length,a=0;n>a;a++){var r=t[a],o=r.nodeType;if(3===o){if(""!==r.nodeValue.replace(/[ \t\n]+/g,""))return!0}else if(1===o){var s=r.tagName;if("br"===s.toLowerCase())return!0;if(i(r))return!0}}return!1}var a=w.create(function(){return e.makeDictionaryFromKeys(["audio","dd","dt","figcaption","li","video","address","article","aside","blockquote","details","div","dl","fieldset","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","menu","nav","ol","p","pre","section","table","ul","center","dir","noframes"],!0)});e.fn.groupByParent=function(){var t="data-tmp-"+e.uniqueID(),n={},i={};this.each(function(){var a=this.parentNode,r=a.getAttribute(t);if(r)i[r].push(this);else{r=""+e.uniqueID(),i[r]=[this],n[r]=a;var o=document.createAttribute(t);o.value=r,a.setAttributeNode(o)}});var a=[];for(var r in n){var o=n[r];o.removeAttributeNode(o.getAttributeNode(t)),a.push({$parent:e(o),$elements:e(i[r])})}return a},e.fn.isBlockElement=function(){return e.isBlockElement(this[0])},e.isBlockElement=function(t){var n=t.tagName;return!!n&&e.isBlockTagName(n)},e.isBlockTagName=function(e){return!!a.getValue()[e.toLowerCase()]},e.fn.findFirstTextContainer=function(){var i=this[0],a=n(i);return null!==a?e(a):t(i)},e.fn.hasVisualContent=function(){var t=e(this);return i(t[0])},e.fn.extractText=function(t){function n(e){for(var t=[],n=0;n<e.length;n++){var i=e[n];"string"==typeof i?(i=i.replace(/[ \t\n]+/g," "),""!==i&&t.push(i)):t.push(i)}return t}function i(t){var n=t.nodeType;if(3===n){var a=t.nodeValue.replace(/\n/g," ");""!==a&&(d?u[u.length-1]+=a:u.push(a),d=!0)}else if(1===n){var o=t.tagName;if("br"===o.toLowerCase())u.push(c),d=!1;else if(!r||r(t)){var g=e.isBlockTagName(o);g&&(u.push(s),d=!1);for(var f=t.childNodes,p=f.length,h=0;p>h;h++)i(f[h]);g&&(u.push(l),d=!1)}}}t=e.quickExtend({},t);var a,r=t.elementsFilterFunction,o=e(this),s={},l={},c={},u=[],d=!1,g=o[0],f=g.childNodes,p=f.length;for(a=0;p>a;a++)i(f[a]);u=n(u);var h=!1,m=[];for(a=0;a<u.length;a++){var v=u[a];if(v===c)m.push("\n"),h=!0;else if("string"==typeof v)m.push(v),h=!1;else if(a>0&&(v===l||v===s)){var y=u[a-1];y===l||y===s||h||m.push("\n")}}var b=m.join("");return b}}(p);var $n,Wn,jn=fs(function(){var e,t,n,i,a,r=0,o=!1;this.start=function(s){var l=!0;if(l){var c,u;if(u=na.getBodyElementContainer(),c=na.getBodyElementWrapper(),0===r){s=f.quickExtend({$contentContainer:".body-element-wrapper"},s),n=u;var d=f(document);t=d.scrollTop(),a=n.parents(),i=c,e=i.attr("style"),n.addClass("dialog-mode-container"),i.css({marginTop:-t}),d.scrollTop(0),a.addClass("dialog-mode-parents"),o=!0}r++}},this.finish=function(){if(o&&(r--,0===r)){i.setStyleAttr(e),a.removeClass("dialog-mode-parents"),n.removeClass("dialog-mode-container");var s,l=0===t;l&&(s=f(document.body),s.css("overflow","visible")),f(document).scrollTop(t),l&&s.css("overflow",""),o=!1}}}),Gn={Pixels:1,Inches:2,Centimeters:3};!function(){function e(e,t){var n=function(e){return Math.ceil(t(e))};return{left:n(e.left),right:n(e.right),top:n(e.top),bottom:n(e.bottom)}}function t(e,t){var n=function(e){return Math.ceil(t(e))};return{width:n(e.width),height:n(e.height)}}function n(e){return e/96}function i(e){return 96*e}function a(e){return 2.54*e}function r(e){return e/2.54}function o(e){return i(r(e))}function s(e){return a(n(e))}var l=C.extend("DocumentMargins",{init:function(e,t){this._margins=e,this._units=t},getPixels:function(){var t=this._margins,n=this._units;switch(n){case Gn.Pixels:return f.cloneObject(t);case Gn.Inches:return e(t,i);case Gn.Centimeters:return e(t,o)}},getInches:function(){
var t=this._margins,i=this._units;switch(i){case Gn.Pixels:return e(t,n);case Gn.Inches:return f.cloneObject(t);case Gn.Centimeters:return e(t,r)}},getCentimeters:function(){var t=this._margins,n=this._units;switch(n){case Gn.Pixels:return e(t,s);case Gn.Inches:return e(t,a);case Gn.Centimeters:return f.cloneObject(t)}}});l.create=function(e,t){return isFinite(e)&&(e={left:e,top:e,right:e,bottom:e}),new l(e,t)},l.equalityComparer=function(e,t){if(e&&t){var n=e._margins,i=t._margins;return e._units===t._units&&n.left===i.left&&n.top===i.top&&n.bottom===i.bottom&&n.right===i.right}return e===t};var c=C.extend("DocumentSize",{init:function(e,t){this._size=e,this._units=t},getPixels:function(){var e=this._size,n=this._units;switch(n){case Gn.Pixels:return f.cloneObject(e);case Gn.Inches:return t(e,i);case Gn.Centimeters:return t(e,o)}},getInches:function(){var e=this._size,i=this._units;switch(i){case Gn.Pixels:return t(e,n);case Gn.Inches:return f.cloneObject(e);case Gn.Centimeters:return t(e,r)}},getCentimeters:function(){var e=this._size,n=this._units;switch(n){case Gn.Pixels:return t(e,s);case Gn.Inches:return t(e,a);case Gn.Centimeters:return f.cloneObject(e)}}});c.create=function(e,t){return new c(e,t)},c.equalityComparer=function(e,t){return e&&t?e._units===t._units&&f.sizesEqual(e._size,t._size):e===t},c.A4=new c({width:8.27,height:11.69},Gn.Inches),c.A3=new c({width:11.69,height:16.54},Gn.Inches),c.A5=new c({width:5.83,height:8.27},Gn.Inches),Wn=c,$n=l}();var Xn=function(){function e(e){var t=[[e.cx+e.r2*Math.cos(e.startRadians),e.cy+e.r2*Math.sin(e.startRadians)],[e.cx+e.r2*Math.cos(e.closeRadians),e.cy+e.r2*Math.sin(e.closeRadians)],[e.cx+e.r1*Math.cos(e.closeRadians),e.cy+e.r1*Math.sin(e.closeRadians)],[e.cx+e.r1*Math.cos(e.startRadians),e.cy+e.r1*Math.sin(e.startRadians)]],n=e.closeRadians-e.startRadians,i=n%(2*Math.PI)>Math.PI?1:0,a=[];return a.push("M"+t[0].join()),a.push("A"+[e.r2,e.r2,0,i,1,t[1]].join()),a.push("L"+t[2].join()),a.push("A"+[e.r1,e.r1,0,i,0,t[3]].join()),a.push("Z"),a.join(" ")}function t(e){var t={cx:s,cy:s,startRadians:(e.startDegrees||0)*Math.PI/180,closeRadians:(e.endDegrees||0)*Math.PI/180};return t.r1=e.innerRadius,t.r2=e.outerRadius,t.r1<0&&(t.r1=0),t.r2<0&&(t.r2=0),t}function n(n,a){var r=t(n),o=e(r),s=f(document.createElementNS(i,"path"));return s.attr("d",o),s.attr("fill",a),s}var i="http://www.w3.org/2000/svg",a=C.extend("Donut",{init:function(e){this.$element=e},appendTo:function(e){return this.$element.appendTo(e),this},remove:function(){return this.$element.remove(),this},paint:cs}),r=a.extend("CanvasDonut",function(e){return{init:function(){var t=f("<canvas></canvas>");e.call(this,t);var n=t[0],i=n.getContext("2d");this._canvas=n,this._context=i},paint:function(e,t,n,i,a){var r=this._context,o=this._canvas,s=a.width,l=a.height;o.width=s,o.height=l,r.clearRect(0,0,s,l);var c=s/2,u=l/2,d=Math.min(c,u);i=Math.min(d,i);var g=d-i/2,p=1.5*Math.PI,h=(.02*e+1.5)%2*Math.PI;e>0&&(100===e&&(h=0,p=2*Math.PI),r.beginPath(),r.arc(c,u,g,p,h,!1),r.lineWidth=i,r.strokeStyle=f.Color(t).toHEX(),r.stroke()),100>e&&(0===e&&(h=0,p=2*Math.PI),r.beginPath(),r.arc(c,u,g,h,p,!1),r.lineWidth=i,r.strokeStyle=f.Color(n).toHEX(),r.stroke())}}}),o=200,s=o/2,l=a.extend("SvgDonut",function(e){return{init:function(){var t=document.createElementNS(i,"svg");t.setAttribute("viewBox","0 0 "+o+" "+o),t.setAttribute("version","1.1"),t.setAttribute("xmlns",i);var n=f(t);n.css({transform:"rotate(-90deg)"}),e.call(this,n)},paint:function(e,t,i,a,r){this.$element.outerSize(r);var l=Math.min(r.width,r.height),c=o/l,u=s-a*c,d=359.999,g=Math.min(360*e/100,d),f=this.$element.empty();e>0&&f.append(n({outerRadius:s,innerRadius:u,startDegrees:0,endDegrees:g},t)),100>e&&f.append(n({outerRadius:s,innerRadius:u,startDegrees:g,endDegrees:d},i))}}});return a.create=function(e){return e=f.quickExtend({preferSvg:!0},e),j.inlinesvg&&e.preferSvg?new l:new r},a}(),Yn=fs(function(){function e(){a.hasBindings()||(i.remove(),i=void 0,a=void 0)}function t(e){var t;e&&(t=e.data)&&n.fireNew(t,e.origin)}var n,i,a,r=I.create(function(){n=x.create();var e=U.wrapWithNotify(t);window.addEventListener?window.addEventListener("message",e,!1):window.attachEvent&&window.attachEvent("onmessage",e)});this.addListener=function(e){r.execute();var t=n.bind(e);return{remove:function(){t.unbind()}}},this.addJSONListener=function(t){i||(a=x.create(),i=this.addListener(function(e,t){try{e=JSON.parse(e)}catch(n){return}a.fireNew(e,t)}));var n=a.bind(t),r=!1;return{remove:function(){r||(r=!0,n.unbind(),e())}}}}),Kn=fs(function(){function e(e,i,a){function r(){t(d),g.remove(),clearTimeout(m)}var o=a.timeout,s=(a.cache,a.appendTo),l=a.createIFrameURL,c=a.createDataHtml,u=a.callback,d=f.uniqueID();n(d,function(t){r();var n=u(t);n!==!1?e.resolve():e.reject()});var g;if(i){var p=c(d);g=f('<iframe class="script-loader-iframe" src="data:text/html;charset=utf-8,{0}"></iframe>'.format(p))}else{var h=l(d);g=f('<iframe class="script-loader-iframe" src="{0}"></iframe>'.format(h))}var m=setTimeout(function(){r(),e.reject("timeout")},o);g.css("display","none").appendTo(s)}function t(e){delete i[e]}function n(e,t){a.execute(),i[e]=t}var i={},a=I.create(function(){Yn.addJSONListener(function(e){var t=i[e.id];t&&t(e.content)})}),r=w.create(function(){var e=f.Deferred();return f(function(){try{var t=/\swv/i.test(navigator.userAgent),n=/.*(Linux;.*AppleWebKit.*Version\/\d+\.\d+.*Mobile).*/gi.test(navigator.userAgent);if(t||n)return void e.resolve(!1);var i,a=document.body,r=document.createElement("iframe");r.style.display="none",r.setAttribute("src","data:text/html;base64,Kg=="),a.appendChild(r);try{i=!!r.contentDocument}catch(o){i=!1}a.removeChild(r),e.resolve(i)}catch(o){e.resolve(!1)}}),e.promise()});this.getScriptWithLoading=function(t){t=f.quickExtend({timeout:m.VeryLong,urlParam:"url",callbackIdParam:"id",cache:!1,appendTo:"body",callback:cs},t);var n=f.Deferred();return t.createDataHtml?r.getValue().done(function(i){e(n,i,t)}):e(n,!1,t),n.promise()}}),Qn=fs(function(){function e(){return"{0}/services/lists".format(t?t:"")}var t;this.initialize=function(e){t=e},this.fetchItemData=function(t,n,i,a,r){f.ajaxJason(e(),"fetchItem",{listName:n,listId:t,alias:i.alias,id:i.id},a,r)},this.saveListItems=function(t,n,i,a,r,o){o=f.quickExtend({},o),f.ajaxJason(e(),"saveItem",{listName:n,listId:t,items:i,createNewList:o.createNewList},a,r)},this.deleteListItems=function(t,n,i,a,r,o){o=f.quickExtend({},o),f.ajaxJason(e(),"deleteItems",{listName:n,listId:t,ids:i,createNewList:o.createNewList},a,r)},this.fetchListsContent=function(t,n,i){f.ajaxJason(e(),"fetchContent",t,n,i)},this.fetchAllListsContent=function(t,n,i){f.ajaxJason(e(),"fetchAllListsContent",{lists:t},n,i)}}),Jn=fs(function(){function e(){return"{0}/form".format(ne.ServicesBasePath?ne.ServicesBasePath:"")}this.submitForm=function(t,n,i,a,r,o,s,l,c){f.ajaxJasonWithCredentials(e(),"Submit",{siteID:t,siteType:n,formID:i,formValues:r,formSource:o,captchaToken:c},s,l)}}),Zn=fs(function(){function e(){return"{0}/appmarket".format(ne.ServicesBasePath?ne.ServicesBasePath:"")}this.getNewApps=function(t,n,i){var a={siteId:t};f.ajaxJason(e(),"getNewApps",a,n,i)},this.getYourApps=function(t,n,i){var a={siteId:t};f.ajaxJason(e(),"getYourApps",a,n,i)},this.disableNewFlag=function(t,n,i){var a={model:{site_id:t}};f.ajaxJason(e(),"disableNewFlag",a,n,i)},this.getElements=function(t,n,i,a){var r={siteId:t};ne.ServicesBasePath,r.brand=Settings.Brand,f.ajaxJason(e(),"getElements",r,i,a)},this.addAppComponent=function(t,n,i){var a={addData:t};f.ajaxJason(e(),"addAppComponent",a,n,i)},this.setProperties=function(t,n,i,a){var r={properties:t,site_id:n};f.ajaxJason(e(),"setProperties",r,i,a)}}),ei=fs(function(){function e(e,t,n){var i=e[t];return i?f.quickExtend(i,n):e[t]=n}function t(e,t){return function(n,i,a,r,o){t.call(this,n,i,a,r,o),e.call(this,n,i,a,r,o)}}this.extendProperties=function(t,n){return e(t,"properties",n)},this.extendMethods=function(t,n){return e(t,"methods",n)},this.extendAggregatedDefinitions=function(t,n){e(t.aggregatedMethods,"definitions",n)},this.extendAggregatedMethods=function(t,n){e(t.aggregatedMethods,"aggregations",n)},this.extendLazyInitializationProperties=function(t,n){e(t,"lazyInitializationProperties",n)},this.extendElementInstanceMethods=function(e){f.quickExtend(ti.prototype,e)},this.hookAggregatedMethods=function(e,n){var i=e.aggregatedMethods,a=i.aggregations;if(a){for(var r in n){var o=n[r];if(void 0!==o){var s=a[r];s?a[r]=t(s,o):a[r]=o}}return a}return i.aggregations=n}}),ti=function(){function e(e,t){e=f.quickExtend({initialPropertiesValues:void 0,elementID:void 0,isForTemplateUse:!1,structureMetaData:void 0,thumbsResolver:void 0},e);var n=this;n.id=void 0!==e.elementID?e.elementID:ka.generateWebsiteId(),n.$element=null,n.decorators={},n.backgroundLayers={},n.data={},n.currentActions={},n.currentEffects={},n.currentPropertiesValues={},n.parentInstance=null,n.childInstances=[],n.data.isForTemplateUse=e.isForTemplateUse,n.data.structureMetaData=e.structureMetaData,n.data.thumbsResolver=e.thumbsResolver,n.$container=null,n.elementType=t,n.isVisible=!0,n.properties={},n.affectedProperties={},n.bindings=[],c||n._lazyPropertiesCreator(),n.properties=fa.createProperties(t.getTypeProperties(),e.initialPropertiesValues,t.getPropertiesDefaults()),n.onCreation()}function t(e,t){var n={};return f.eachEntry(e,function(e,i){t&&!t(i)||(n[i.id]=i)}),n}function n(e,t,i,a,r){if(r)for(var o=0;o<e.childInstances.length;o++)n(e.childInstances[o],t,i,a,r);if((t||e!==i)&&a.push(e),!r)for(var o=0;o<e.childInstances.length;o++)n(e.childInstances[o],t,i,a,r)}function i(){var e=l;if(l=[],e.length>0){Er.startRenderingBatch();for(var t=0;t<e.length;t++)e[t].isDeleted||fa.invalidateElement(e[t],!0);fa.UpdateBatch.finish(),Er.finishRenderingBatch(),Er.startRenderingBatch();for(var t=0;t<e.length;t++)e[t].isDeleted||a(e[t]);Er.finishRenderingBatch(),l=[]}else fa.UpdateBatch.finish()}function a(e){e.isInitialized=!0,e.onInitialized(),sa.Events.InstanceInitialized.fireNew(e),e.InstancePropertiesInitialized.setValue(!0),e.setToCurrentMode()}function r(e){var t=this;if(t.shouldBeDisplayed()){e=f.quickExtend({animation:wt.NoAnimation,complete:cs},e);var n=e.complete,i=e.animation,a=e.animationOptions;Er.startRenderingBatch();var r=t.getVisibilityTargets();r.stopAnimations(),t.isVisible||(r.quickShow(),t.isVisible=!0,t.$element.removeClass("hidden-design-element")),ba.visibilityTreeAttach(t);var o=ba.isElementVisible(t);if(Er.finishRenderingBatch(),o){if(i!==wt.NoAnimation)return t.duringVisibilityAnimation=!0,r.quickHide().animateShow(i,a,function(){t.duringVisibilityAnimation=!1,n(),la.requestUpdatePosition(t)}).promise();n(),la.requestUpdatePosition(t)}}}function o(e){var t=this;e=f.quickExtend({animation:wt.NoAnimation,complete:cs},e);var n=e.complete,i=e.animation,a=e.animationOptions,r=t.getVisibilityTargets();return r.stopAnimations(),t.duringVisibilityAnimation=!0,t.isVisible=!1,r.animateHide(i,a,function(){t.duringVisibilityAnimation=!1,t.isDeleted||s(t,n)}),i!==wt.NoAnimation?r.promise():void 0}function s(e,t){e.$element.addClass("hidden-design-element"),ba.visibilityTreeDetach(e),t()}var l=[],c=b.isLazySupported(),u=e.prototype,d=x.create,g=x.createNamedEvents,p=_.create,h=O.createConditionalPositive,m=O.createConditionalNegative,v=O.createFalse,y={borderTargetAddedEvent:d,visibilityChangedEvent:d,sizeChangedEvent:d,contentSizeChangedEvent:d,offsetChangedEvent:d,propertyChangedEvent:g,actualPropertyValueChanged:g,propertyChangedEventSimple:d,elementEnterAreaEvent:d,elementLeaveAreaEvent:d,instanceRemoving:d,instanceRemoved:d,resizingStarted:d,resizingStopped:d,triggerActivated:g,elementStateActivated:g,elementStateRemoved:g,canPushFlag:h,childIndex:p,zIndex:p,customZIndex:p,currentPageId:p,hasCellWrapper:v,canResize:h,canResizeHorizontally:h,canResizeVertically:h,isMasterPageElement:m,hasBehaviours:v,hasActions:v,hasStates:v,propertiesChanged:d,canEdit:h,canMove:h,canBeHidden:m,hasOrder:h,hasHorizontalAlignFlag:v,hasVerticalAlignFlag:v,influenceChanged:d,previewEventsListener:x.createEventListenersGroup,InstancePropertiesInitialized:v,isDisplayed:function(){var e=this;return h({valueChangeCallback:function(t){e.data.disableShowingHiding||(e.isDisplayed.isTrue()?(e.showElement(),Er.performOnFramesLayoutUpdade(function(){pr.requestPushing(e)})):e.hideElement())}})},isLocked:function(){var e=this;return m({valueChangeCallback:function(t){e.canMove.setValue(!t,"Locked"),e.hasFeature(oi.Resizable)&&e.canResize.setValue(!t,"Locked")}})},classesManager:function(){var e=this;return Ie.createClassesFlags(function(){return e.$element})}};return e.useLazyProperties=c?us:ds,e.LazyInitializationProperties=y,e.InstancesInitializationBatch=Ae.create({batchStartCallback:function(){fa.UpdateBatch.start()},batchFinishCallback:i,batchFinishingStartedCallback:function(){sa.PropertiesUnpostponingBatch.start()},batchFinishingCompletedCallback:function(){sa.PropertiesUnpostponingBatch.finish()}}),e.create=function(t,n){return new e(n,t)},e.getSupportedStates=function(e){return e.elementType.getSupportedStates()},u.getElementDefinitions=function(){return this.elementType.getElementDefinitions()},u.getDomId=function(){var e=this.id;return"function"==typeof e.toLowerCase&&0===e.toLowerCase().indexOf(ka.ID_PREFIX)?e:ka.ID_PREFIX+e},u.wasEditedInMode=function(){return this.getPropertyValue("isElementWasEditedInMode")},u.setAsEditedInMode=function(e){this.setPropertyValue("isElementWasEditedInMode",e)},u.getCalculatedOrder=function(){if(Ha.Flags.IsInMobileContext.isTrue())return this.getPropertyValue("order");if(this.isMasterPageElement.isTrue()&&Pa.isMasterPageRootInstance(this)){var e=Pa.getPageMasterRootsOrders(va.getCurrentPageId())[this.id];return e||(e=-1e4+this.getPropertyValue("order")),e}return this.getPropertyNormalValue("order")},u.isReattchable=function(){return!this.isContent()},u.isPageChildInstance=ds,u.getBaseInitializedTargetConnections=function(){var e=this,t=Ai.getInstanceInitializedTargetConnections(e.id),n={};return f.eachEntry(t,function(e,t){n[t.id]=t}),n},u.shouldBeWithLayoutOnMobile=ds,u.getLoadingRequirements=cs,u.disableStyleProperties=ds,u.isFillHorizontal=ds,u.isFillVertical=ds,u.hasHorizontalLayout=ds,u.hasVerticalLayout=ds,u.addElementToPage=function(e){var t,n=this;t=n.hasVerticalLayout()?e.data.pageContentContainer:e.getBorderBox();var i=n.$element;return i.appendTo(t),t},u.isForTemplateUse=ds,u.refreshCursor=cs,u.isInMobileMode=function(){return Ha.Flags.IsInMobileContext.isTrue()},u.isTemplateItemContent=function(){return void 0!==this.data.templateInstance},u.setTemplateItemContent=function(e){this.data.templateInstance=e},u.isDataListItem=ds,u.getBorderBox=function(){return this.$elementBorderBox},u.getPaddingBox=function(){return f.browserVersion().browser==Ve.IE&&f.browserVersion().version<8?this.$elementContentBox:this.$paddingBox},u.changeElementSize=function(e){this.$elementSizeBox.css(e)},u.getPositionBox=function(){return this.$elementPositionBox},u.getElementSizeBox=function(){return this.$elementSizeBox},u.getBackgroundTarget=function(){return this.$elementBackgroundTarget},u.getBorderTarget=function(){return this.$elementBorderTarget},u.getMainBox=function(){return this.$elementMainBox},u.getVisibilityTargets=function(){return this.getMainBox()},u.getDataItemId=cs,u.getContentLayer=function(){return this.$elementContentContainer},u.showParents=function(e,t){for(var n=this.getParents(!0),i=1;i<n.length;i++)if(n[i].hasFeature(oi.Navigatable)&&n[i].navigateTo(n[i-1],e,t),ba.isElementVisible(n[i]))return},u.setToCurrentMode=function(){var e=this;e.setToPreview()},u.setToPreview=function(){var e=this;va.PageChangingOperation.performOperation(function(){var t=e.isInPreview();if(!t){var n=t===!1;e.data.inPreview=!0,e.switchToPreview(n)}})},u.isInPreview=function(){return this.data.inPreview},u.shouldInitInstanceOnPageChange=function(){var e=this,t=va.getCurrentPage(),n=va.getPrevPage();return!(!n||!e.isInPreview()||!e.isMasterPageElement.isFalse()&&Pa.getMasterPageIDByPage(t.id)===Pa.getMasterPageIDByPage(n.id))},u.showElement=r,u.hideElement=o,u.shouldBeDisplayed=function(){return(!this.hasFeature(oi.Hideable)||this.getPropertyValue("isVisible")||!1)&&this.isVisibleInMode()&&this.isDisplayed.isTrue()&&!this.isDeleted},u.abortPerformWhenVisible=function(e){var t=this;t.data.visiblityBindingsOperationsSet&&t.data.visiblityBindingsOperationsSet.abortOperation(e)},u.performWhenVisible=function(e,t){var n=this;if(ba.isElementVisible(this))e();else{var i=n.data.visiblityBindingsOperationsSet;n.data.performWhenVisibleBinding||(i=An.create(),i.activate(),this.visibilityChangedEvent.one(function(){i.executeOperations(),n.data.performWhenVisibleBinding=!1,i.deactivate(),delete n.data.visiblityBindingsOperationsSet}),n.data.performWhenVisibleBinding=!0,n.data.visiblityBindingsOperationsSet=i),i.requestOperation(e,t)}},u.stopVisibilityAnimations=function(){var e=this;if(e.duringVisibilityAnimation){var t=e.getVisibilityTargets();t.stopAnimations()}},u.getStructureMetaData=function(){return this.data.structureMetaData},u.shouldReferToStateValue=function(e,t,n){var i=this,a=i.properties[e],r=sa.getInstanceByID(n);return!fa.getEditedState()&&"sizeAndPosition"===e&&t===Ha.MobileStateName&&(i.hasFeature(oi.DataListItem)&&i.getItemMainParent()&&!i.getItemMainParent().dataLayoutController.hasItemSpecificSize()||void 0!==a.customValue)?!1:i.isContent()&&!i.hasFeature(oi.DataListItem)&&t===Ha.MobileStateName?!1:"order"===e&&t!==Ha.MobileStateName?!1:("sizeAndPosition"!==e&&"margin"!==e||i.hasFeature(oi.DataListItem)||t===Ha.MobileStateName||!i.data.formChild&&!r.data.formChild)&&(t!==Ha.MobileStateName||fa.getEditedState()||void 0===a.customValue&&!a.descriptor.isBoundToObservableWithValue(a))?!(i.isContent()&&t===Ha.MobileStateName&&!i.hasFeature(oi.DataListItem)&&("margin"===e||"sizeAndPosition"===e)&&!a.descriptor.isBoundToObservableWithValue(a)&&(!i.hasFeature(oi.DesignElement)||!i.isPropertyBoundToStyleField(e))):!1},u.onBeforePageLeave=function(){var e=this;e.shouldInitInstanceOnPageChange()&&Ai.initBehaviours(e)},u.getCalculatedPropertyValue=cs,u.setCalculatedPropertyValue=cs,u.canPush=function(){return this.canPushFlag.isTrue()&&(!this.isContent()||this.getMainSkinInstance()&&!this.getMainSkinInstance().hasFeature(oi.CommonDataListSkinItem))&&!this.hasFeature(oi.CommonDataListSkinItem)},u.isCalculatedProperty=function(e){return this.elementType.isCalculatedProperty(e)},u.getFeaturesMap=function(){return this.elementType.getFeaturesMap()},u.hasFeature=function(e){return this.elementType.hasFeature(e)},u.isTypeOf=function(e){return this.elementType.isTypeOf(e)},u.isType=function(e){return this.elementType.isType(e)},u.hasOneOfDefinitions=function(e){return this.elementType.hasOneOfDefinitions(e)},u.getAncestorsMap=function(){return this.elementType.getAncestorsMap()},u.hasAncestorType=function(e){return this.elementType.hasAncestorType(e)},u.initializationTriggered=!1,u.isInitialized=!1,u.initialize=function(){var t=this;return t.initializationTriggered||(t.onInitializing(),e.InstancesInitializationBatch.isActive()?l.push(t):(fa.invalidateElement(t),a(t)),t.initializationTriggered=!0),t},u.isInstanceVisible=function(){return ba.isElementVisible(this)},u.getCalculatedPropertiesMap=function(){return this.elementType.getCalculatedPropertiesMap()},u.isInstanceDeleted=function(){return this.isDeleted},u.setIsContent=function(e){this.data.isContent=e},u.isContent=function(){return this.data.isContent},u.getPageId=function(){return sa.getInstanceRootID(this)},u.setParent=function(e){sa.setElementParent(this,e)},u.detach=function(){var e=this;if(e.hasParent()){var t=e.getParent();t.childInstances=f.grep(t.childInstances,function(t){return t!=e})}e.$element.detach(),e.$container=void 0,t&&null!==t&&t.onChildElementRemoved(e),ba.visibilityTreeDetach(e),e.parentInstance=null,e.onDetached()},u.getInstanceDataForSaving=function(e){e=f.extend({forSaving:!1},e);var t=this,n=t.getSize(),i=fa.clonePropertiesValues(t,{forSaving:e.forSaving,propertiesFilter:e.propertiesFilter});return e.forSaving||(i.name=null,i.formID=null),e.adjustSize&&n&&f.extend({},i.sizeAndPosition,n),{type:t.elementType.name,id:t.id,elementProperties:i,metaData:t.getMetaDataForSaving()}},e.prototype.getSupportedStates=function(){return this.elementType.getSupportedStates()},u.getTargetConnections=function(e){var n=this;return t(Ai.getInstanceTargetConnections(n.id),e)},u.findParent=function(e,t){var n=this;void 0===t&&(t=!1);for(var i=t?n:n.parentInstance;i&&!e(i);)i=i.parentInstance;return i},u.hasAncestor=function(e,t){return null!==this.findParent(e,t)},u.getParents=function(e){var t=[],n=this;for(e&&t.push(n);n.parentInstance;)t.push(n.parentInstance),n=n.parentInstance;return t},u.getSiblings=function(e){e=f.extend({ignoreSections:!1},e);var t=this,n=[],i=t.parentInstance;if(i)if(t.isType(ri.SectionElement))f.eachItem(t.getPageContentInstance().getSectionsByPage(va.getCurrentPage()),function(e,i){t!==i&&n.push(i)});else if(!t.isType(ri.PageContentElement)&&t.parentInstance&&(t.parentInstance.hasFeature(oi.PageSection)||t.parentInstance.isType(ri.page))){var a=va.getCurrentPage();f.eachItem(a.childInstances,function(e,i){i.hasFeature(oi.PageSection)?f.eachItem(i.childInstances,function(e,i){i!==t&&n.push(i)}):i!==t&&n.push(i)})}else if(!t.hasFeature(oi.PageSection)&&!t.isType(ri.PageContentElement)){var r;r=e.ignoreSections&&(i.hasFeature(oi.PageSection)||i===va.getCurrentPage())?sa.getPageRootInstances():i.childInstances;for(var o=0;o<r.length;o++){var s=r[o];s!==t&&n.push(s)}}return n},u.hasParent=function(){var e=this;return null!==e.parentInstance&&1!==e.parentInstance},u.getParent=function(){return this.parentInstance},u.getPropertyMobileValue=function(e){var t=this,n=fa.getPropertyValueInCustomState(t.properties[e],Ha.MobileStateName,"coordinator",t);return n?n.stateValue:void 0},u.getPropertyNormalValue=function(e,t){var n=this,i=n.properties[e].value;return void 0!==i&&void 0!==t?i[t]:i},u.getPropertyValue=function(e,t){var n=this,i=fa.getValue(n,e);return void 0!==i&&void 0!==t?i[t]:i},u.notifyCalculatedPropertyChange=function(e){fa.notifyCalculatedPropertyChange(this,e)},u.getPropertiesValues=function(e){return fa.getPropertiesValues(this,e)},u.setPropertyFieldsValues=function(e,t){var n=this;n.setPropertyValue(e,f.extend({},n.getPropertyValue(e,void 0,!0),t))},u.setPropertyFieldValue=function(e,t,n){var i=this,a={};a[t]=n,i.setPropertyValue(e,f.extend({},i.getPropertyValue(e,void 0,!0),a))},u.setPropertyValue=function(e,t,n,i){var a=this,r={};r[e]=t,a.setPropertiesValues(r,n,i)},u.updatePropertiesValues=function(e){var t=this;fa.updatePropertiesValues(t,e)},u.setPropertiesValues=function(e,t,n){var i=this;fa.setPropertiesValues(i,e,t,n)},u.animatePart=function(e,t,n,i,a){a=f.quickExtend({complete:cs,isInitialization:!1},a);var r=this,o=a.isInitialization,s=void 0!==i,l=!1;if(void 0!==n&&n!==!1&&f.support.transition)if(n===!0&&(n=t),s){var c;l&&(c=na.Events.SwitchedToDesignMode.one(function(){e.stopAllPropertiesAnimation()}));var u=a.complete;e.animateProperties(n,{duration:i.transitionDuration,complete:function(){void 0!==c&&(na.Events.SwitchedToDesignMode.unbind(c),u())}})}else o||e.stopPropertiesAnimation(f.getKeys(n));else{var d;!s&&o||(d=e.data("activeQueues"),d||(d={},e.data("activeQueues",d))),f.eachEntry(t,function(t,n){var c=r.id+t,u={};u[t]=n;var g=void 0;if(l&&s&&(g=f.uniqueID(),na.Events.SwitchedToDesignMode.one(function(){g=void 0,e.stop(c,!0,!0),delete d[c]},g)),!o&&d[c]&&(e.stop(c,!0),delete d[c]),s){var p=a.complete;a=f.extend({},a,{duration:i.transitionDuration,easing:"linear",queue:c,complete:function(){void 0!==g&&na.Events.SwitchedToDesignMode.unbind(g),delete d[c],p()}}),d[c]=!0,e.animate(u,a).dequeue(c)}})}return s||(e.css(t),a.complete()),s},u.setActualPropertyValue=function(e,t){var n=this;n.currentPropertiesValues[e]=t,x.fireLazyEvent(n,"actualPropertyValueChanged",e,t)},u.getActualPropertyValue=function(e){var t=this,n=t.currentPropertiesValues[e];return void 0===n?t.getPropertyValue(e):n},u.isDescendantOf=function(e){var t=this;return e.id===t.id?!0:t.parentInstance?t.parentInstance.isDescendantOf(e):!1},u.isDescendantOfByCondition=function(e){var t=this;return e(t.parentInstance)?!0:t.parentInstance?t.parentInstance.isDescendantOfByCondition(e):!1},u.getElementContent=function(){return this.$elementContent},u.addBackgroundLayer=function(e,t){var n=this,i=e.name,a=e.priority,r=n.backgroundLayers,o=r[i];if(!o){var s,l=t();for(var c in r){var u=r[c],d=u.priority;d>a&&(!s||s.priority>d)&&(s=u)}s?l.insertBefore(s.$element):l.insertBefore(n.$elementBorderBox),o={priority:a,$element:l},r[i]=o}return o.$element},u.getBackgroundLayer=function(e){var t=this,n=t.backgroundLayers[e.name];return n?n.$element:void 0},u.setBorderTarget=function(e){var t=this;t.$elementBorderTarget.pushElements(e.addClass("element-border-target")),x.fireLazyEvent(t,"borderTargetAddedEvent",e)},u.getDescendingInstances=function(e,t){void 0===e&&(e=!0);var i=this,a=[];return n(i,e,i,a,t),a},u.getContentSize=function(){return ba.getContentSize(this)},u.getSize=function(){return ba.getElementSize(this)},u.getPosition=function(e){return ba.getElementOffset(this,e)},u.getArea=function(e){return ba.getElementArea(this,e)},u.getRelativeToParentArea=function(e){var t=this;if(t.parentInstance){var n=e?e:t.parentInstance.getArea(),i=t.getArea();return i?f.expandArea(i,{top:n.top,bottom:-n.top}):i}return t.getArea()},u.getChildIndex=function(){return this.childIndex.getValue()},u.getChildInstances=function(){return this.childInstances},u.unbindPropertyChange=function(e,t){return this.propertyChangedEvent.unbind(t)},u.bindPropertyChange=function(e,t,n){return this.propertyChangedEvent.bind(e,t,n)},u.activateState=function(e,t,n){t=f.valueOrDefault(t,!1),n=f.valueOrDefault(n,!0),n||fa.setCanPerformTransition(!1,"activateState");var i=this;"string"!=typeof e&&(e=e.name),fa.addGlobalState(e,i,void 0,n),i.applyComplexStatesOnInstance(Oi[e],n),n||fa.setCanPerformTransition(!0,"activateState")},u.deactivateState=function(e,t,n){t=f.valueOrDefault(t,!1),n=f.valueOrDefault(n,!0),n||fa.setCanPerformTransition(!1,"deactivateState");var i=this;la.layoutUpdateBatch.start(),fa.UpdateBatch.start(),"string"!=typeof e&&(e=e.name),fa.removeGlobalState(e,i,void 0,n),i.removeComplexStateFromInstance(Oi[e],n),fa.UpdateBatch.finish(),la.layoutUpdateBatch.finish(),n||fa.setCanPerformTransition(!0,"deactivateState")},u.isTriggerEnabled=function(e){var t,n=this;return e===Li.MouseEnter||e===Li.MouseEnterArea||e===Li.MouseLeave||e===Li.MouseLeaveArea?(n.isContent()&&(t=n.getMainSkinInstance(),t&&(t.hasFeature(oi.DataListItem)?t=t.getItemMainParent():t.isType(ri.SkinNavigationButton)&&(t=t.parentInstance))),f.valueOrDefault(t,n).getPropertyValue("showHoverEffects")):!0},u.activateTrigger=function(e,t,n){var i=this;i.isTriggerEnabled(e)&&(x.fireLazyEvent(i,"triggerActivated",e.name,t),f.eachItem(e.activatedStates,function(e,t){i.activateState(t,n)}),f.eachItem(e.deactivatedStates,function(e,t){i.deactivateState(t,n)}))},u.applyComplexStatesOnInstance=function(e,t){var n=this;fa.addCurrentState(n,e.id);var i=fa.getCurrentStates(n);f.eachEntry(i,function(a){a=parseInt(a);var r=Mi.getComplexIdFromIds(a,e.id);a!==e.id&&!i[r]&&Oi[r]&&(fa.addGlobalState(Oi[r],n,void 0,t),fa.addCurrentState(n,r))})},u.removeComplexStateFromInstance=function(e,t){var n=this;fa.removeCurrentState(n,e.id);var i=fa.getCurrentStates(n);f.eachEntry(i,function(a){var r=Mi.getComplexIdWithOutId(a,e.id);a=parseInt(a),a!==e.id&&i[r]&&(fa.removeGlobalState(Oi[a],n,void 0,t),fa.removeCurrentState(n,a))})},e}(),ni=function(){function e(e,t){if(e._currentInstance=t,t){var n=t.elementType;e._currentInstanceId=t.id,e._currentInstanceClass=n.typeClass}}var t=E.extend("ElementsRenderer",function(t){return{init:function(){t.call(this),this._instancesStack=[],this._tagsStack=[],this._currentInstance=void 0},startInstanceRendering:function(t,n){this._instancesStack.push(t),e(this,t);var i=["design-element"];return n&&i.push(n),this.openTag("div",i.join(" "),void 0,t.getDomId()),this},finishInstanceRendering:function(){var t=this._instancesStack;return t.pop(),e(this,t[t.length-1]),this.closeTag(),this},startElementContentRendering:function(e,t){var n=["element-content"];t&&n.push(t),this.openTag(e,n.join(" "))},finishElementContentRendering:function(){return this.closeTag()},addTag:function(e,t,n){return this.openTag(e,t,n).closeTag()},openTag:function(e,t,n,i){var a=this._currentInstanceClass,r=this._currentInstanceId,o=this,s=[];t&&s.push(t),n&&s.push("remember-part"),a&&s.push(a);var l=s.join(" ");return o.append("<").append(e).append(' class="').append(l),void 0!==i&&o.append('" id="').append(i),o.append('" data-element-id="').append(r).append('"'),n&&o.append(' data-element-part="').append(n).append('"'),o.append(">"),this._tagsStack.push(e),this},closeTag:function(){var e=this,t=this._tagsStack.pop();return e.append("</").append(t).append(">"),this}}});return t.renderElement=function(e){var n=new t;return e.renderElement(n),""+n},t}(),ii=function(){var e=C.extend("ElementType",{init:function(e,t){this.name=e,this.title=t.title;var n=t.itemName;n&&(this.itemName=t.itemName);var i=t.itemTitle;i&&(this.itemTitle=i);var a=t.properties;a&&(this.properties=a);var r=t.methods;r&&(this.methods=r);var o=t.ancestorElementType;o&&(this.ancestorElementType=o);var s=t.features;this.features=void 0!==s?s:[];var l=t.aggregatedMethods;this.aggregatedMethods=void 0!==l?l:{};var c=t.triggers;c&&(this.triggers=c);var u=t.defaultProperties;u&&(this.defaultProperties=u);var d=t.className;d&&(this.className=d);var g=t.calculatedProperties;g&&(this.calculatedProperties=g);var p=t.delegatedDefinitionsProperties;p&&(this.delegatedDefinitionsProperties=p);var h=t.customDelegatedProperties;h&&(this.customDelegatedProperties=h);var m=t.supportedStates;m&&(this.supportedStates=m);var v=t.lazyInitializationProperties;v&&(this.lazyInitializationProperties=v);var y=t.extensions;y&&f.quickExtend(this,y);var b=t.isNotDesignElement;b&&(this.isNotDesignElement=b)},lazyInitializationProperties:void 0});return e.create=function(t,n){return new e(t,n)},e}(),ai=fs(function(){function e(){s&&(f.eachItem(s,function(e,n){var i=n.properties;if(i)for(var a in i)t(a,i[a])}),s=void 0)}function t(e,t){t.name=e,t.isBound||(t.isBound=ds),t.isBoundToObservableWithValue=a,t.isBoundToObservable=i,t._onChange=t.onChange,t.onChange=n,void 0===t.priority&&(t.priority=-1),void 0===t.isStateProperty||t.isStateProperty===!1?t.isStateProperty=ds:t.isStateProperty===!0&&(t.isStateProperty=us),t.getResetValue||(t.getResetValue=t.defaultValue?t.defaultValue:cs),t._index=o++,ui[e]=t,li.push(t)}function n(e,t,n,i,a){var r=this._onChange;r&&(e.elementType.isDelegatedProperty(this.name)||(e.disableStyleProperties()&&fa.getEditableStylePropertiesMap()[this.name]?r.call(e,e,this.getResetValue(),n,t,a):r.call(e,e,t,n,i,a)))}function i(e){return void 0!==e.bindingObject}function a(e){return void 0!==e.bindingValue&&this.isBoundToObservable(e)}var r=1,o=0,s=[];this.initialize=function(){e(),gi.initialize()},this.initializeProperties=e,this.registerDefinition=function(e,t){var n=e===ri;for(var i in t){var a,o=t[i];if(n)a=ii.create(i,o),s.push(a);else{var l={name:i,properties:{},methods:{},features:[],aggregatedMethods:{definitions:{},aggregations:{}},triggers:{},isFeature:!0};o?(a=f.extendMissing(o,l),s.push(a)):a=l}a._typeIndex=r++,si.push(a),e[i]=a}},this.registerPropertiesCategories=function(e){for(var t in e){var n=e[t];ci[t]=f.quickExtend(n,{name:t,properties:{}})}},this.registerMenuItemTypes=function(e){for(var t in e){var n=e[t];di[t]=f.quickExtend(n,{name:t})}}}),ri={},oi={},si=[],li=[],ci={},ui={},di={};ai.registerPropertiesCategories({Other:{title:"General",iconClass:"sprite-icon sprite-property-category-misc"},Line:{title:"Line",iconClass:"sprite-icon sprite-property-category-line",
shortTitle:"Line"},Layout:{title:"Layout",iconClass:"sprite-icon sprite-property-category-layout"},SizeAndPosition:{title:"Size And Position",iconClass:"sprite-icon sprite-property-category-size-and-position"},Shadow:{title:"Shadow",iconClass:"sprite-icon sprite-property-category-shadow",shortTitle:"Shadow"},Rotation:{title:"Rotation",iconClass:"sprite-icon sprite-property-category-rotation"},Padding:{title:"Padding",iconClass:"sprite-icon sprite-property-category-padding"},Margin:{title:"Margin",iconClass:"sprite-icon sprite-property-category-margin"}});var gi=fs(function(){function e(e,t,n){e._typeMethods=Array(n),e._compiledType=t,e.typeClass=t.c;var i=t.dd;i&&(delete t.dd,e.delegatedDefinitionsMap=a(i));var r=t.i;r&&(e._inheritedTypesMap=a(r))}function t(e){var t=e.lazyInitializationProperties;for(var n in t)k[n]=t[n],D[n]=e}function n(e){var t=e._calculatedPropertiesMap;if(void 0===t){t=e._calculatedPropertiesMap={};var n=e._compiledType,i=n.cp;if(i){for(var a=i.length,r=0;a>r;r++)t[i[r]]=!0;delete n.cp}}return t}function i(e){var t=e._compiledType,n=t.p;delete t.p;for(var i=n.length,a=e._typeProperties=Array(i),r=e._propertiesDefaults={},o=0;i>o;o++){var s=n[o],l=s;void 0!==l.i&&(l=l.i);var c=li[l],u=c.name;if(a[o]=c,void 0!==s.d){var d=si[s.d-1];r[u]=d.defaultProperties[u]}else{var g=c.defaultValue;r[u]=g?g:cs}}}function a(e){var t={};if(e)for(var n=e.length,i=0;n>i;i++){var a=si[e[i]-1];t[a.name]=a}return t}function r(e,t){var n=si[e-1].aggregatedMethods,i=n.aggregations;if(i){var a=i[t];if(a)return a}return n.definitions[t]}function o(e,t){return function(n,i,a,r,o){return e.call(this,t,n,i,a,r,o)}}function s(e,t,n,i,a,r,o){for(var s=t.length,l=0;s>l;l++)t[l].call(e,n,i,a,r,o)}function l(e){return function(t,n,i,a,r){s(this,e,t,n,i,a,r)}}function c(e){var t=e._featuresMap={},n=e._elementDefinitions=[],i=e._compiledType,a=i.d;delete i.d;for(var r=a.length,o=0;r>o;o++){var s=si[a[o]-1];n.push(s),s.isFeature&&(t[s.name]=s)}}function u(e){var t=e._featuresMap;return t?t:(c(e),e._featuresMap)}function d(e){var t=ti.prototype,n=e.methods;v(t,n,e.methodNames),y(t,n.length,e.aggregated,e.aggregatedNames),x?h(t):p(t),b.addGetLazyProperty(t)}function g(e,t){var n=e.getLazyInitializationProperties();if(n){var i=b.createInitializerFunction(t);return b.createInitializerFunction(n,i)}return b.createInitializerFunction(t)}function p(e){var t=ti.LazyInitializationProperties;e._lazyPropertiesCreator=function(){var e=this,n=e.elementType,i=n._aggLazyPropertiesCreator;void 0===i&&(n._aggLazyPropertiesCreator=i=g(n,t)),i.call(e)}}function h(e){b.defineLazyProperties(e,ti.LazyInitializationProperties);var t=k;t=m(k),b.defineLazyProperties(e,t)}function m(e){return f.mapDictionary(e,function(e,t){var n=D[e];return function(){var i=this;if(!i.hasOneOfDefinitions(n))throw Error("ElementType "+i.elementType.name+' try to access to member "'+e+'" while this property defined in '+n.name);return t.call(i)}})}function v(e,t,n){for(var i=t.length,a=0;i>a;a++){var r=t[a],o=n[a];e[o]=I(a,r,o,e[o])}}function y(e,t,n,i){for(var a=n.length,r=0;a>r;r++){var o=n[r],s=i[r];e[s]=w(r+t,o,s)}}function C(e,t,n,i,a,r,o,s,l,c){var u=e.elementType,d=u._typeMethods,g=d[t];return void 0===g&&(g=S(u,n,i,a),d[t]=g),e[i]=g,g.call(e,r,o,s,l,c)}function I(e,t,n,i){return function(a,r,o,s,l){return C(this,e,t,n,i,a,r,o,s,l)}}function S(e,t,n,i){var a=t[e._typeIndex],r=!1;if(void 0===a){if(void 0===i)throw Error(e.name+" is not implement "+n);r=!0}if(r)return i;var s=a.length;if(void 0===s)return si[a-1].methods[n];var l=a[0],c=0===l?i:si[l-1].methods[n];if(!c)throw Error(e.name+" is not implement "+n);for(var u=1;s>u;u++){var d=si[a[u]-1].methods[n];c=o(d,c)}return c}function P(e,t,n,i,a,r,o,s,l){var c=e.elementType,u=c._typeMethods,d=u[t];void 0===d&&(d=E(c,n,i),u[t]=d),e[i]=d,d.call(e,a,r,o,s,l)}function w(e,t,n){return function(i,a,r,o,s){P(this,e,t,n,i,a,r,o,s)}}function E(e,t,n){var i=t[e._typeIndex];if(void 0===i)throw Error(e.name+" is not implement "+n);var a;if(null===i)return T;if(void 0===(a=i.length))return r(i,n);if(1===a)return r(i[0],n);for(var o=Array(a),s=0;a>s;s++)o[s]=r(i[s],n);return l(o)}var T=cs,x=ti.useLazyProperties();if(x)var k={},D={};var F=[];this.initialize=function(){var n=ie.ElementsModel,i=n.types,a=n.methods.length+n.aggregated.length;for(var r in ri){var o=ri[r],s=i[o._typeIndex];e(o,s,a)}for(var l=n.lazy,c=l.length,u=0;c>u;u++){var g=si[l[u]-1];x&&t(g),F.push(g)}d(n),delete ie.ElementsModel},ii.extendPrototype({isDelegatedProperty:function(e){return!!this.getDelegatedProperties()[e]},hasFeature:function(e){return void 0!==u(this)[e.name]},isTypeOf:function(e){var t=this;return t===e||t.hasAncestorType(e)},hasOneOfDefinitions:function(e){var t=this;return e=f.asArray(e),f.any(e,function(e){return t===e||t.hasFeature(e)||t.hasAncestorType(e)})},isType:function(e){return this===e},getSupportedStates:function(){var e=this,t=e._supportedStates;if(!t){t=e._supportedStates=[];for(var n=this._elementDefinitions,i=n.length,a=0;i>a;a++){var r=n[a];r.supportedStates&&f.merge(t,r.supportedStates)}}return t},getElementDefinitions:function(){var e=this._elementDefinitions;return e?e:(c(this),this._elementDefinitions)},getFeaturesMap:function(){return u(this)},getAncestorsMap:function(){return this._inheritedTypesMap},hasAncestorType:function(e){var t=this._inheritedTypesMap;return void 0!==t&&void 0!==t[e.name]},isCalculatedProperty:function(e){return!!n(this)[e]},getTypeProperties:function(){var e=this._typeProperties;return e?e:(i(this),this._typeProperties)},getPropertiesDefaults:function(){var e=this._propertiesDefaults;return e?e:(i(this),this._propertiesDefaults)},getPropertiesDefaultValues:function(){var e=this._propertiesDefaultValues;if(!e){e=this._propertiesDefaultValues={};var t=this.getPropertiesDefaults();f.eachEntry(t,function(t,n){e[t]=n()})}return e},getCalculatedPropertiesMap:function(){return n(this)},getDelegatedProperties:function(){var e=this._delegatedProperties;if(!e){var t=this._compiledType,n=t.dp;if(n){delete t.dp;var i=n.length;e=this._delegatedProperties={};for(var a=0;i>a;a++){var r=li[n[a]];e[r.name]=r}}else e=this._delegatedProperties={}}return e},getLazyInitializationProperties:function(){var e=this,t=e._lazyProperties;if(void 0===t){var n=e.getAncestorsMap(),i=e.getFeaturesMap(),a=F.length;t={};for(var r=!1,o=0;a>o;o++){var s=F[o],l=e===s;if(!l){var c=s.name;l=void 0!==i[c]||void 0!==n&&void 0!==n[c]}if(l){var u=s.lazyInitializationProperties;f.quickExtend(t,u),r=!0}}r||(t=!1),e._lazyProperties=t}return t}}),x&&(ii.getAllLazyInitializationProperties=function(){return k})}),fi=fs(function(){function e(){fi.registerDataSourceItemFields([{name:"index",type:"index",supportElementContentBinding:function(e){return Oe.contains(e,[ri.label.name,ri.freeText.name])},getContentType:function(){return bi.Text}},{name:"image",type:"image",supportElementContentBinding:function(e){return Oe.contains(e,[this.getElementTypeName()])},getContentType:function(){return bi.Image}},{name:"imageGallery",type:"imageGallery",supportElementContentBinding:function(e){return Oe.contains(e,[this.getElementTypeName()])},getContentType:function(){return bi.Data}},{name:"breadcrumb",type:"breadcrumb",supportElementContentBinding:ds,getContentType:function(){return bi.Data}},{name:"icon",type:"icon",supportElementContentBinding:function(e){return Oe.contains(e,[this.getElementTypeName()])},getContentType:function(){return bi.Icon}},{name:"fontIcon",type:"fontIcon",supportElementContentBinding:function(e){return Oe.contains(e,[this.getElementTypeName()])},getContentType:function(){return bi.FontIcon}},{name:"title",type:"title",supportElementContentBinding:function(e){return Oe.contains(e,[ri.label.name,ri.freeText.name])},getContentType:function(){return bi.Text}},{name:"hideableText",type:"hideableText",supportElementContentBinding:us,useTitleAsDemoData:!0,getContentType:function(){return bi.Text}},{name:"description",type:"description",supportElementContentBinding:function(e){return Oe.contains(e,[ri.label.name,ri.freeText.name])},getContentType:function(){return bi.TextArea}},{name:"date",type:"date",supportElementContentBinding:function(e){return Oe.contains(e,[this.getElementTypeName()])},getContentType:function(){return bi.Date}},{name:"content",type:"content",supportElementContentBinding:function(e){return e===this.getElementTypeName()},getContentType:function(){return bi.Content}},{type:"growableText",isEditable:!1,iconClass:"sprite-icon sprite-tool-category-images",supportElementContentBinding:function(e){return e===this.getElementTypeName()},getContentType:function(){return bi.Text}},{name:"alt",type:"alt",getContentType:function(){return bi.Alt},supportElementContentBinding:ds},{name:"video",type:"video",supportElementContentBinding:function(e){return Oe.contains(e,[this.getElementTypeName()])},getContentType:function(){return bi.Video}},{name:"paypal",type:"paypal",supportElementContentBinding:function(e){return Oe.contains(e,[this.getElementTypeName()])},getContentType:function(){return bi.PayPal}},{name:"input",type:"input",supportElementContentBinding:function(e){return Oe.contains(e,[this.getElementTypeName()])},getContentType:function(){return bi.TextInput}},{name:"link",type:"link",supportElementContentBinding:function(e){return Oe.contains(e,[ri.label.name])},getContentType:function(){return bi.Link}},{name:"data info",type:"dataInfo",supportElementContentBinding:ds,getContentType:function(){return bi.DataInfo}},{name:"dateRange",type:"dateRange",supportElementContentBinding:ds,getContentType:function(){return bi.DateRange}},{name:"dateTime",type:"dateTime",supportElementContentBinding:ds,getContentType:function(){return bi.DateTime}},{name:"location",type:"location",supportElementContentBinding:ds,getContentType:function(){return bi.Location}},{name:"percentage",type:"percentage",supportElementContentBinding:ds,getContentType:function(){return bi.Percentage}},{name:"data",type:"data",supportElementContentBinding:ds,getContentType:function(){return bi.Data}},{name:"buy Button",type:"buyButton",supportElementContentBinding:ds,getContentType:function(){return bi.BuyButton}}])}var t={};this.initialize=function(){e()},this.setDataSourcesFromSave=function(e){e||(e={}),t=e},this.loadDataSource=function(e,t,n,i){return fi.registerDataSourceInstance(e,t,n,i)},this.registerDataSourceInstance=function(e,t,n,i){var a=new e(t,n,i);return pi[t]=a,a},this.registerDataSourceItemFields=function(e){f.eachItem(e,function(e,t){mi[t.type]=f.quickExtend({iconClass:"sprite-icon sprite-tool-category-apps",convertValueToFieldValue:f.returnValue,convertFieldValueToValue:f.returnValue,supportVisualizerBinding:us},mi[t.type],t)})},this.getFieldDefaultProperties=function(e,t){var n={};return e.initialPropertiesValues&&(n=e.initialPropertiesValues[t]?f.evaluateWhenFunction(e.initialPropertiesValues[t]):f.evaluateWhenFunction(e.initialPropertiesValues.Default)),f.cloneObject(n)}}),pi={},hi={},mi={},vi=function(){var e={idFunction:function(e){return e.name}};return C.extend("BaseDataSource",{init:function(e,t,n){var i=this;i.id=e,i.name=e,i.dataSourceInfo=t,i.instance=n,i.instanceId=n?n.id:void 0},lazyInitializationProperties:{itemUpdatedEvent:function(){var e=x.createNamedEvents();return this.collectionItems.itemChangedEvent.bind(function(t){e.fireNew(t)}),e},itemAddedEvent:x.create,currentItemChangedEvent:x.create,itemsInformation:$t.create,collectionItems:function(){var e=jt.create(this.itemsInformation),t=this,n=t.sortingFunction;return n&&e.itemsChangedEvent.bind(function(){t._sortedItems=void 0}),e},fieldsInformation:function(){return $t.create(e)},collectionFields:function(){return jt.create(this.fieldsInformation)},refreshOperationsBarrier:Bn.create,_refreshExecution:function(){var e=this.instance;return function(){e.onDataSourceRefresh()}}},_sortedItems:void 0,manageItemsPanelName:void 0,manageItemsPanelTitle:void 0,refreshDataSource:function(){this.refreshOperationsBarrier.requestExecution(this._refreshExecution,"refresh")},sortingFunction:function(e,t){var n=e,i=t,a=parseInt(n.index),r=parseInt(i.index);return void 0!==a&&void 0!==r?a-r:void 0!==a?-1:void 0!==r?1:0},invalidateAllItems:function(){this.itemsInformation.invalidateItems(this.itemsInformation.getItemsValues())},onWizardFinished:void 0,getIndexBetweenTwoItems:function(e,t){return e+(t>e?.5*(t-e):.5*(e-t))},openItemsDialog:void 0,getCollectionItems:function(){return this.collectionItems},getCollectionFields:function(){return this.collectionFields},getAllItems:function(){return this.collectionItems.getItems()},getAllDataItems:function(){return this.collectionItems.getItems()},getSortedItems:function(){var e=this,t=e._sortedItems;if(!t){var n=e.sortingFunction;if(!n)throw Error("sortingFunction is not implement");e._sortedItems=t=f.getValues(e.collectionItems.getItems()).sort(n)}return t},fetchAllItems:function(e){var t=this.getSortedItems();e({fetchedItems:t,totalCount:t.length})},fetchItems:function(e,t,n,i,a){var r=this.getSortedItems(),o=r.length;if(a.fetchAlways&&e>=o){var s=t-e;e=f.divideNoReminder(o-1,s)*s,t=e+s}return n({fetchedItems:r.slice(e,t),totalCount:o})},getItem:function(e){return this.collectionItems.getItem(e)},fetchDataItem:function(e,t,n,i){var a=this.collectionItems.getItem(e);return!a&&i&&i(),a&&n&&n(a),a}})}(),yi=vi.extend("DynamicPageDataSource",function(e){return{init:function(t,n,i){e.call(this,t,n,i)}}}),bi={Text:0,TextArea:1,Image:2,TextInput:4,Icon:5,Link:6,Video:7,paypal:8,Date:9,FontIcon:10,Alt:11,Content:12,DataInfo:13,DateRange:14,Percentage:15,Data:16,BuyButton:17,DateTime:18,Location:19},Ci={StaticCollection:{icons:He.addKeyAsField({facebook:{collectionName:"public-font-icons",iconName:"facebook"},googlePlus:{collectionName:"public-font-icons",iconName:"google-plus"},twitter:{collectionName:"public-font-icons",iconName:"twitter2"},linkedin:{collectionName:"public-font-icons",iconName:"linkedin"},pinterest:{collectionName:"public-font-icons",iconName:"pinterest"},reddit:{collectionName:"public-font-icons",iconName:"reddit"},instagram:{collectionName:"public-font-icons",iconName:"instagram"},youtube:{collectionName:"public-font-icons",iconName:"new-youtube-image"},flickr:{collectionName:"public-font-icons",iconName:"flickr"},soundCloud:{collectionName:"public-font-icons",iconName:"soundcloud"},tripAdvisor:{collectionName:"public-font-icons",iconName:"tripadvisor"},picasa:{collectionName:"public-font-icons",iconName:"picasa"},behance:{collectionName:"public-font-icons",iconName:"behance"},etsy:{collectionName:"public-font-icons",iconName:"etsy"},tumblr:{collectionName:"public-font-icons",iconName:"tumblr"},dribbble:{collectionName:"public-font-icons",iconName:"dribbble"},vimeo:{collectionName:"public-font-icons",iconName:"vimeo-2342"},vk:{collectionName:"public-font-icons",iconName:"vk"},renren:{collectionName:"public-font-icons",iconName:"renren"},weibo:{collectionName:"public-font-icons",iconName:"weibo"}},"name")},Collection1:{icons:He.addKeyAsField({facebook:{collectionName:"public-font-icons",iconName:"facebook"},googlePlus:{collectionName:"public-font-icons",iconName:"google-plus"},twitter:{collectionName:"public-font-icons",iconName:"twitter2"},linkedin:{collectionName:"public-font-icons",iconName:"linkedin"},pinterest:{collectionName:"public-font-icons",iconName:"pinterest"},reddit:{collectionName:"public-font-icons",iconName:"reddit"},instagram:{collectionName:"public-font-icons",iconName:"instagram"},youtube:{collectionName:"public-font-icons",iconName:"new-youtube-image"},flickr:{collectionName:"public-font-icons",iconName:"flickr"},soundCloud:{collectionName:"public-font-icons",iconName:"soundcloud"},tripAdvisor:{collectionName:"public-font-icons",iconName:"tripadvisor"},picasa:{collectionName:"public-font-icons",iconName:"picasa"},behance:{collectionName:"public-font-icons",iconName:"behance"},etsy:{collectionName:"public-font-icons",iconName:"etsy"},tumblr:{collectionName:"public-font-icons",iconName:"tumblr"},dribbble:{collectionName:"public-font-icons",iconName:"dribbble"},vimeo:{collectionName:"public-font-icons",iconName:"vimeo-2342"},vk:{collectionName:"public-font-icons",iconName:"vk"},renren:{collectionName:"public-font-icons",iconName:"renren"},weibo:{collectionName:"public-font-icons",iconName:"weibo"}},"name")},Collection2:{icons:He.addKeyAsField({facebook:{collectionName:"public-font-icons",iconName:"facebook"},googlePlus:{collectionName:"public-font-icons",iconName:"google-plus"},twitter:{collectionName:"public-font-icons",iconName:"twitter"},linkedin:{collectionName:"public-font-icons",iconName:"linkedin"},pinterest:{collectionName:"public-font-icons",iconName:"pinterest"},reddit:{collectionName:"public-font-icons",iconName:"reddit"},instagram:{collectionName:"public-font-icons",iconName:"instagram"},youtube:{collectionName:"public-font-icons",iconName:"new-youtube-image"},flickr:{collectionName:"public-font-icons",iconName:"flickr"},soundCloud:{collectionName:"public-font-icons",iconName:"soundcloud"},tripAdvisor:{collectionName:"public-font-icons",iconName:"tripadvisor"},picasa:{collectionName:"public-font-icons",iconName:"picasa"},behance:{collectionName:"public-font-icons",iconName:"behance"},etsy:{collectionName:"public-font-icons",iconName:"etsy"},tumblr:{collectionName:"public-font-icons",iconName:"tumblr"},dribbble:{collectionName:"public-font-icons",iconName:"dribbble"},vimeo:{collectionName:"public-font-icons",iconName:"vimeo-2342"},vk:{collectionName:"public-font-icons",iconName:"vk"},renren:{collectionName:"public-font-icons",iconName:"renren"},weibo:{collectionName:"public-font-icons",iconName:"weibo"}},"name")}},Ii={Get:"GET",Put:"PUT",Post:"POST",Delete:"DELETE",PostGet:"POST"},Si=function(e,t){if("string"!=typeof e&&"function"!=typeof e)throw new TypeError("The parameter 'url' should be a valid string or a function.");return this.url=e,this.parameters=[],this.options=f.quickExtend({dataType:"json",contentType:"application/json",httpMethod:Ii.Get},t),this.setHttpMethod(this.options.httpMethod),this.success=x.create(),this.error=x.create(),this};Si.prototype.constructor=Si,Si.prototype.execute=function(){var e=this,t=f.Deferred(),n=f.evaluateWhenFunction(e.url,e),i=e.parameters.filter(function(e){return e.type===Ei.Query});if(i.length>0){var a=i.map(function(e){return e.name+"="+encodeURIComponent(e.getValue())});n+="?"+a.join("&")}var r=e.parameters.filter(function(e){return e.type===Ei.Template});r.length>0&&r.forEach(function(e){n=n.replace(RegExp("{"+e.name+"}","i"),e.getValue())});var o={url:n,method:e.getHttpMethod(),dataType:f.evaluateWhenFunction(e.options.dataType,e),contentType:f.evaluateWhenFunction(e.options.contentType,e),success:function(n){e.lastResult=n,e.lastResultFetched=new Date,e.success.fireNew(n),t.resolve(n)},error:function(n){e.error.fireNew(n),t.reject(n)}};if(e.getHttpMethod()!==Ii.Get){var s=f.quickExtend({},e.getBody()),l=e.parameters.filter(function(e){return e.type===Ei.Body});l.length>0&&l.forEach(function(e){s[e.name]=e.getValue()}),o.data=JSON.stringify(s)}return f.ajax(o),t},Si.prototype.addParameter=function(e){var t=this;if(t instanceof Si==!1)throw new TypeError("Current instance must be a valid WebService instance");if(!(e instanceof Ti))throw new TypeError("Value for 'parameter' should be a valid instance of 'WebServiceParameter'");var n=e.getParameterType();if(n===Ei.Body&&this.getHttpMethod()===Ii.Get)throw Error("The specified parameter type is invalid for HTTP GET requests and is only supported on HTTP PUT/POST/DELETE requests.");return t.parameters.push(e),t.invalidateCache(),t},Si.prototype.invalidateCache=function(){this.lastResult=null,this.lastResultFetched=null},Si.prototype.getResult=function(e){if(this.getHttpMethod()!==Ii.Get&&this.getHttpMethod()!==Ii.PostGet)throw Error("The 'getResult' method can only be invoked for web services with the HTTP Method set to 'GET'");var t=this.lastResult;if(t&&e!==!0){var n=f.Deferred();return window.setTimeout(function(){n.resolve(t)},1),n}return this.execute()},Si.prototype.getHttpMethod=function(){return this.method||Ii.Get},Si.prototype.setHttpMethod=function(e){if(e!==Ii.Get&&e!==Ii.Put&&e!==Ii.Post&&e!==Ii.Delete)throw new TypeError("The parameter 'httpMethod' should contain a valid enum value of the type 'HttpMethod'");return this.method=e,this},Si.prototype.setBody=function(e){return this.body=f.quickExtend({},e),this},Si.prototype.getBody=function(){return this.body};var Pi=function(e,t){var n=this;n.name=e||"Unnamed Test",n.successCount=0,n.failCount=0,n.testResult=f.Deferred(),n.test=t||function(){n.testResult.fail()}};Pi.prototype.constructor=Pi,Pi.prototype.run=function(){var e=this,t=new Date;e.testResult=f.Deferred(),e.testResult.done(function(){var n=(new Date).getTime()-t.getTime();ee.info("Test '"+e.name+"' completed in "+n+"ms"),e.successCount+=1}),e.testResult.fail(function(){var n=(new Date).getTime()-t.getTime();ee.error("Test '"+e.name+"' failed in "+n+"ms"),e.failCount+=1});try{e.test(e.testResult)}catch(n){e.testResult.reject()}};var wi=function(){this.tests=[]};wi.prototype.constructor=wi,wi.prototype.addTestCase=function(e,t){this.tests.push(new Pi(e,t))},wi.prototype.runAll=function(){f.eachItem(this.tests,function(e,t){t.run()})};var Ei={Query:"query",Template:"template",Header:"header",Body:"body"},Ti=function(e,t,n){if(this.name=f.evaluateWhenFunction(e,this),"string"!=typeof this.name||!this.name)throw new TypeError("A valid parameter name should be specified");if(this.type=f.evaluateWhenFunction(t,this),this.type!==Ei.Query&&this.type!==Ei.Template&&this.type!==Ei.Header&&this.type!==Ei.Body)throw new TypeError("The specified parameter type is not valid");return this.value=n,this};Ti.prototype.constructor=Ti,Ti.prototype.getParameterType=function(){return this.type||Ei.Query},Ti.prototype.getValue=function(){return f.evaluateWhenFunction(this.value,this)};var xi=function(e,t,n,i){return n=f.quickExtend(n,{dataType:"json",contentType:"application/json",httpMethod:Ii.Post}),this.name=e,this.items=t,this.elementId=i,Si.call(this,"",n),this};xi.prototype=Object.create(Si.prototype),xi.prototype.constructor=xi,xi.prototype.execute=function(){var e=this,t=f.Deferred();return _r.getRequestBody(e.name,e.elementId).done(function(n){e.url=Settings.DataProxy;var i=f.deepCloneObject(n);i.item=e.items,e.setBody(i),Si.prototype.execute.call(e).done(function(e){t.resolve(e)}).fail(function(e){t.reject(e)})}).fail(function(e){t.reject(e)}),t};var ki=vi.extend("RemoteDataSource",{clear:function(){this.itemsInformation.clear()},getItemFields:function(){return this.getFieldDefinitions({itemFields:!0})},getItemId:function(){throw Error("You should implement this function to retrieve a unique ID for each item in the array of items.")},getFieldDefinitions:function(){return this.instance.getPropertyValue("itemFields")},getDataService:function(){return this.dataService},setDataService:function(e){this.dataService=e},getCollection:function(){return this.dataCollection},setCollection:function(e){this.dataCollection=e},getDataPromise:function(){throw Error("The getDataPromise should be implemented")},filterResult:function(e){return e},removeDataItem:cs,mapResult:function(e){return e},processResult:function(e){var t=this;if(e=t.mapResult(e),e instanceof Array==!1)throw Error("result is not a valid Array, please implement the mapping feature yourself.");var n=t.getFieldDefinitions();return n?f.map(e,function(e,i){var a={index:i+1,id:t.getItemId(e)};return f.eachEntry(n,function(t,n){a[n.name]=e[n.name]||null;var i=n.mappingFunction;i&&(a[n.name]=i(e))}),a}):void 0},setDataInfo:function(){var e=this,t=new zi({getPromise:e.getDataPromise.bind(e),filterResult:e.filterResult.bind(e),mapResult:e.processResult.bind(e)});e.setDataService(t),e.setCollection(t.getCollection())}}),Di=new wi;Di.addTestCase("GET >> iTunes >> Armin van Buuren",function(e){new Si("https://itunes.apple.com/search",{dataType:"jsonp"}).addParameter(new Ti("entity",Ei.Query,"album")).addParameter(new Ti("limit",Ei.Query,"10")).addParameter(new Ti("term",Ei.Query,"armin van buuren")).execute().done(function(){e.resolve()}).fail(function(){e.reject()})}),Di.addTestCase("GET >> Facebook Photos",function(e){new Si("https://graph.facebook.com/{accountId}/photos",{dataType:"jsonp"}).addParameter(new Ti("fields",Ei.Query,"id,created_time,from.name,link,name,picture,source")).addParameter(new Ti("limit",Ei.Query,"100")).addParameter(new Ti("access_token",Ei.Query,"205189932989716|ea358445946f3ec6d3dfc2c0ea4b6f9d")).addParameter(new Ti("accountId",Ei.Template,"418329438315")).execute().done(function(){e.resolve()}).fail(function(){e.reject()})}),Di.addTestCase("GET >> Commerce.ly Categories and Products",function(e){new Si("https://api-store.dev.appmachine.com/v1/shop/catsandproducts/{ApplicationId}",{dataType:"jsonp"}).addParameter(new Ti("categoryId",Ei.Query,"")).addParameter(new Ti("ApplicationId",Ei.Template,"325ea409-aacb-3130-07a1-8852881c3b10")).execute().done(function(){e.resolve()}).fail(function(){e.reject()})});var Fi={PageLoad:1,State:2,Trigger:3},Ai=fs(function(){this.Events={BehaviourAdded:x.create(),BehaviourUpdated:x.create(),BehaviourRemoved:x.create()};var e={},t={},n={},i={},a={};this.getInstanceSourceConnections=function(e){return t[e]?t[e]:{}},this.getInstanceTargetConnections=function(e){return n[e]?n[e]:{}},this.getInstanceInitializedTargetConnections=function(e){return a[e]?a[e]:{}},this.addBehaviourToCollection=function(e){var i=e.sourceElementID,a=e.targetElementID,r=e.id;f.objectSetIfUndefined(n,i,f.returnEmptyObject),n[i][r]=e,a&&(f.objectSetIfUndefined(t,a,f.returnEmptyObject),t[a][r]=e)},this.addBehaviourToInitializedCollection=function(e){var t=e.sourceElementID,n=e.targetElementID,r=e.id;f.objectSetIfUndefined(a,t,f.returnEmptyObject),a[t][r]=e,n&&(f.objectSetIfUndefined(i,n,f.returnEmptyObject),i[n][r]=e);var o=sa.getInstanceByID(t);o&&o.hasActions.setTrue()},this.removeBehaviourFromCollection=function(e){var i=e.sourceElementID,a=e.targetElementID,r=e.id;n[i]&&delete n[i][r],a&&t[a]&&delete t[a][r]},this.removeBehaviourFromInitializedCollection=function(e){var t=e.sourceElementID,n=e.targetElementID,r=e.id;if(a[t]&&delete a[t][r],n&&i[n]&&delete i[n][r],0===f.count(a[t])){var o=sa.getInstanceByID(t);o&&o.hasActions.setFalse()}},this.registerBehaviours=function(e){f.each(e,function(e,t){t=f.quickExtend({onConnectionRemoved:cs,onConnectionAdded:cs,initializeBehaviourDefinition:f.returnValue,activateFunction:cs,deactivateFunction:cs,activateCallback:cs,deactivateCallback:cs},t),f.extendMissing(t,{name:e});var n=t.activateFunction,i=t.deactivateFunction;t.activateFunction=function(t,i,a){va.PageChangingOperation.performOperation(function(){i&&!i.data.activatedBehaviours&&(i.data.activatedBehaviours={}),n(t,i,a),i&&(i.data.activatedBehaviours[e]=!0)})},t.deactivateFunction=function(t,n,a){va.PageChangingOperation.performOperation(function(){n&&!n.data.activatedBehaviours&&(n.data.activatedBehaviours={}),n&&n.data.activatedBehaviours[e]&&(i(t,n,a),n.data.activatedBehaviours[e]=!1)})},t=t.initializeBehaviourDefinition(t),Bi[e]=t})},this.extendBehaviour=function(e,t){f.quickExtend(e,t)},this.createActionBehaviour=function(e){var t={},n={};return e.activate=function(i,a,r,o){if(r.isTemplateConenction){var s=ia.getSameConnections(i.id,a?a.id:void 0,e.name,r);if(s.length>1)return}switch(r.triggerType){case Fi.PageLoad:e.activateCallback(i,a,r);var l=!1,c=[va.PageChangingOperation];Ae.whenAllFinished(c,function(){var n=va.getCurrentPage();n.id==i.getPageId()&&(e.activateFunction(i,a,r),l=!0),t[o]=va.PageChangingOperation.bind(cs,function(){if(l)l=!1;else{var t=va.getCurrentPage();t.id==i.getPageId()&&e.activateFunction(i,a,r)}})});break;case Fi.State:t[o]=i.elementStateActivated.bind(r.triggerName,function(){if(va.Flags.isInPageChanging.isTrue()){var t=f.quickExtend({},r);t.animationDuration=0,e.activateFunction(i,a,t)}else e.activateFunction(i,a,r)}),n[o]=i.elementStateRemoved.bind(r.triggerName,function(){e.deactivateFunction(i,a,r)}),e.activateCallback(i,a,r);break;case Fi.Trigger:t[o]=i.triggerActivated.bind(r.triggerName,function(){e.activateFunction(i,a,r)}),e.activateCallback(i,a,r)}},e.deactivate=function(i,a,r,o){switch(r.triggerType){case Fi.PageLoad:t[o]&&t[o].unbind(),e.deactivateCallback(i,a,r);break;case Fi.State:t[o]&&i.elementStateActivated.unbind(t[o].bindingName),n[o]&&i.elementStateRemoved.unbind(n[o].bindingName),e.deactivateCallback(i,a,r);break;case Fi.Trigger:t[o]&&i.triggerActivated.unbind(t[o].bindingName),e.deactivateCallback(i,a,r)}},e},this.createScrollableBehaviour=function(e){function t(t,i,a,r){if(a.isTemplateConenction){var o=ia.getSameConnections(t.id,i?i.id:void 0,e.name,a);if(o.length>1)return}t.data[r+"visibilityChanged"]&&t.data[r+"visibilityChanged"].unbind(),t.isInstanceVisible()?(t.data[r+"scrollable-window-size"]=x.createEventListener(f.getWindowSizeEvent(),function(){n[r]&&e.activateCallback(t,i,f.quickExtend({},a,{reset:!0}))}),t.data[r+"pageChangedBinding"]=x.createEventListener([va.Events.PageChanged],function(){var o=t.getPageId()===va.getCurrentPageId();o?Er.performUpdateOnRenderingFinished(function(){n[r]&&e.deactivateCallback(t,i,a),e.activateCallback(t,i,a),n[r]=!0}):n[r]&&(e.deactivateCallback(t,i,a),n[r]=!1)}),t.data[r+"mobile"]=Ha.Flags.IsInMobileContext.valueChangedEvent.bindAndExecute(function(){var o=Ha.Flags.IsInMobileContext.isTrue();o?(t.data[r+"pageChangedBinding"].deactivate(),t.data[r+"scrollable-window-size"].deactivate(),n[r]&&(e.deactivateCallback(t,i,a),n[r]=!1)):Er.performUpdateOnRenderingFinished(function(){t.data[r+"pageChangedBinding"].activateAndExecute(),t.data[r+"scrollable-window-size"].activate()})})):t.data[r+"visibilityChanged"]=t.visibilityChangedEvent.bind(function(){t.isInstanceVisible()&&e.activate(t,i,a,r)})}var n={};return e.activate=function(e,n,i,a){Er.performUpdateOnRenderingFinished(function(){t(e,n,i,a)})},e.deactivate=function(t,i,a,r){n[r]&&(n[r]=!1,e.deactivateCallback(t,i,a)),t.data[r+"visibilityChanged"]&&t.data[r+"visibilityChanged"].unbind(),t.data[r+"mobile"]&&t.data[r+"mobile"].unbind(),t.data[r+"pageChangedBinding"]&&t.data[r+"pageChangedBinding"].deactivate(),t.data[r+"scrollable-window-size"]&&t.data[r+"scrollable-window-size"].deactivate()},e},this.initBehaviours=function(e){f.each(e.getInitializedTargetConnections(),function(e,t){var n=sa.getInstanceByID(t.targetElementID);if(n&&n.shouldInitInstanceOnPageChange()){var i=sa.getInstanceByID(t.sourceElementID);Bi[t.behaviourName].deactivateFunction(i,n,{animationDuration:0},t.id)}})},this.activateBehaviours=function(e){f.each(e.getInitializedTargetConnections(),function(e,t){Ai.activateBehaviour(t)})},this.activateBehaviour=function(t){var n=sa.getInstanceByID(t.sourceElementID),i=sa.getInstanceByID(t.targetElementID);!n||t.targetElementID&&!i||e[t.id]||(e[t.id]=!0,Bi[t.behaviourName].activate(n,i,t.options,t.id))},this.deactivateBehaviours=function(e){f.each(e.getInitializedTargetConnections(),function(e,t){Ai.deactivateBehaviour(t)})},this.deactivateBehaviour=function(t){var n=sa.getInstanceByID(t.sourceElementID),i=sa.getInstanceByID(t.targetElementID);e[t.id]&&n&&(!t.targetElementID||i)&&Bi[t.behaviourName].deactivate(n,i,t.options,t.id),e[t.id]=!1},this.copyBehaviours=function(e,t){var n={};return e||(e={}),f.each(e,function(e,i){var a={sourceElementID:i.sourceElementID,targetElementID:i.targetElementID,behaviourName:i.behaviourName,options:f.extend(!0,{},i.options),id:ka.generateWebsiteId()},r=!1;t[i.targetElementID]&&(a.targetElementID=t[i.targetElementID],r=!0),t[i.sourceElementID]&&(a.sourceElementID=t[i.sourceElementID],r=!0),r&&(i.connectionData=void 0,n[a.id]=a)}),n}}),Bi={},Vi=fs(function(){this.registerTriggers=function(e){f.eachEntry(e,function(e,t){var n=f.quickExtend({activatedStates:[],deactivatedStates:[]},t);f.extendMissing(n,{name:e}),Li[e]=n})},this.extendTrigger=function(e,t){f.quickExtend(e,t)}}),Li={},Mi=fs(function(){var e=this;this.registerElementStates=function(e){
for(var t in e){var n=e[t];n.name=t,f.extendMissing(n,{priority:0}),Oi[t]=n}},this.extendElementState=function(e,t){f.quickExtend(e,t)},this.getComplexStateId=function(t){var n=1;return f.each(t,function(t,i){n=e.getComplexIdFromIds(n,i.id)}),n},this.getComplexIdFromIds=function(e,t){return e*t},this.getComplexIdWithOutId=function(e,t){return e/t},this.getStatesMapFromIds=function(e){for(var t={},n=0;n<e.length;n++){if(!Oi[e[n]])return null;t[e[n]]=Oi[e[n]]}return t},this.getComplexStatePriority=function(e){var t=1,n=10;return f.each(e,function(e,i){t+=i.priority+n}),t},this.registerComplexState=function(t){if(t&&t.length>1){var n={},i=e.getStatesMapFromIds(t);if(null===i)return!1;var a=e.getComplexStateId(i);return Oi[a]||(n[a]={ids:t,priority:Mi.getComplexStatePriority(i),id:a,name:a,isComplex:!0,statesMap:i},Mi.registerElementStates(n)),Oi[a]}}}),Oi={};!function(){Mi.registerElementStates({NormalState:{id:1},MouseDownState:{priority:3,id:3},ElementSelectedState:{priority:3,id:5},ElementFocusedState:{priority:3,id:7},BeforeLoadedState:{priority:4,id:11},BeforeOpenedState:{priority:4,id:17},FirstButton:{priority:1,id:19},LastButton:{priority:1,id:23},MobileState:{priority:7,id:29}}),Mi.registerElementStates({MouseOverState:{priority:2,id:13},MouseOverStateArea:{priority:2,id:31}});for(var e in Oi){var t=Oi[e];if(e!==Oi.NormalState.name&&e!==Oi.MobileState.name){var n=[Oi.MobileState.name,t.name],i=Mi.registerComplexState(n);i.isMobileState=!0}}}(),function(){Vi.registerTriggers({GotFocus:{activatedStates:[Oi.ElementFocusedState]},LostFocus:{deactivatedStates:[Oi.ElementFocusedState]},MouseClick:{},MouseDown:{activatedStates:[Oi.MouseDownState]},MouseUp:{deactivatedStates:[Oi.MouseDownState]},MouseEnter:{activatedStates:[Oi.MouseOverState]},MouseLeave:{deactivatedStates:[Oi.MouseOverState]},MouseEnterArea:{activatedStates:[Oi.MouseOverStateArea]},MouseLeaveArea:{deactivatedStates:[Oi.MouseOverStateArea]},PageLeave:{deactivatedStates:[Oi.BeforeLoadedState,Oi.BeforeOpenedState]},PageLoaded:{activatedStates:[Oi.BeforeLoadedState,Oi.BeforeOpenedState]},PageOpened:{activatedStates:[Oi.BeforeOpenedState,Oi.BeforeLoadedState]},Selected:{activatedStates:[Oi.ElementSelectedState]},Unselected:{deactivatedStates:[Oi.ElementSelectedState]}})}();var zi=function(e){return this.options=f.quickExtend({getPromise:function(){throw Error("A valid promise should be provided")}},e),this.flags={IsLoading:O.create(!1)},this.events={LoadingStarted:x.create(),LoadingFinished:x.create(),LoadingFailed:x.create()},this};zi.prototype.constructor=zi,zi.prototype.createCollection=function(){var t=this,n=new e({replaceItems:!0,fetchingFunction:function(e,n,i,a){t.flags.IsLoading.reset(),t.flags.IsLoading.setTrue(),t.events.LoadingStarted.fireNew();var r=0,o=1;!function s(){f.evaluateWhenFunction(t.options.getPromise,t).done(function(e){t.flags.IsLoading.setFalse();var n=t.options.filterResult;n&&"function"==typeof n&&(e=n.call(t,e));var r=t.options.mapResult;if(!r||"function"!=typeof r)throw Error("No result mapping function has been specified.");if(!e)return i({}),void t.events.LoadingFinished.fireNew({});var o=r.call(t,e);return o?(i(o),void t.events.LoadingFinished.fireNew(o)):(t.events.LoadingFailed.fireNew(s),void a())}).fail(function(e){t.events.LoadingFailed.fireNew(s),t.flags.IsLoading.setFalse(),a(e),o>r&&setTimeout(function(){return r++,s()},5e3)})}()}});return t.data=f.quickExtend(t.data,{collection:n}),t.data.collection},zi.prototype.getCollection=function(){var t=this;return t.data&&t.data.collection instanceof e?t.data.collection:t.createCollection()},zi.prototype.populate=function(e,t,n){var i=this;i.isPopulating=!0;var a=this.getCollection();t&&a.setAttributes(t),a.clear();var r=t.callLimit||1e4;a.fetchTo(r,function(t){e.itemsInformation.syncrhonize([]),e.itemsInformation.syncrhonize(t.fetchedItems),i.isPopulating=!1,n&&n(e)})},zi.prototype.loadMore=function(e,t,n){if(!this.isPopulating){var i=this.getCollection();t&&i.setAttributes(t);var a=t.callOffset;i.fetchRange(a,function(t){e.itemsInformation.put(t.fetchedItems),n&&n(e)})}},function(){function e(e,t,n){n=f.extend({animationDuration:0},n);var i=1===t?"":"scale({0})".format(t),a={};a[f.support.transformCSS]=i;var r;n.animationDuration&&(r={transitionDuration:n.animationDuration}),e.animatePart(e.$element,{transform:i},a,r,{complete:function(){ba.updatePosition(e)}})}Ai.registerBehaviours({ScaleBehaviour:{initializeBehaviourDefinition:Ai.createActionBehaviour,activateFunction:function(t,n,i){e(n,i.ratio,i)},deactivateFunction:function(t,n,i){e(n,1,i)},deactivateCallback:function(e,t){this.deactivateFunction(e,t,{}),ba.invalidateAreas(e)}}})}(),function(){function e(e,t,n,i){n=f.extend({animationDuration:0,animationDirection:"left"},n);var a=t;n&&"left"===n.animationDirection&&i&&(a=-t);var r=a?"rotate({0}deg)".format(a):"rotate(0deg)",o={};o[f.support.transformCSS]=r;var s=e.data.rotateBehaviourWrapper;e.animatePart(s,{transform:r},o,{transitionDirection:n.animationDirection,transitionDuration:n.animationDuration}),ba.invalidateAreas(e)}Ai.registerBehaviours({RotateBehaviour:{initializeBehaviourDefinition:Ai.createActionBehaviour,activateFunction:function(t,n,i){e(n,i.degree,i,!0)},activateCallback:function(e,t){var n=t.getMainBox();Hn.usePlaceHolder(n,t.id+"rotate-behaviour",{className:"full-height",ignoreOffset:!0});var i=Hn.createWrapper(n,{className:"full-height",ignoreOffset:!0});t.data.rotateBehaviourWrapper=i},deactivateFunction:function(t,n,i){e(n,0,i,!1)},deactivateCallback:function(e,t,n){var i=t.getMainBox();Hn.releasePlaceHolder(i,t.id+"rotate-behaviour"),Hn.removeWrapper(t.data.rotateBehaviourWrapper),this.deactivateFunction(e,t,{animationDirection:n.animationDirection}),ba.invalidateAreas(t)}}})}(),function(){function e(e){if(e=f.extend({category:window.location.pathname,action:"deafaultAction"},e),t())try{ga("send","event",e.category,e.action,e.label,e.value)}catch(n){}}function t(){return!("undefined"==typeof ga||!ga)}Ai.registerBehaviours({TriggerGoogleEvent:{initializeBehaviourDefinition:Ai.createActionBehaviour,activateFunction:function(t,n,i){e(f.quickExtend({category:va.getCurrentPage().getPropertyValue("name"),action:"deafaultAction",label:void 0,value:void 0},i))}}})}(),function(){function e(e){var t=/^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;return t.test(e)}function t(t,a){function r(e){Jn.submitForm(Z.SiteID,Ia.getSiteType(),c,null,s,l,function(e){a.$element.loading(!1);var i=a.getSubmitSuccessTarget();if(a.getPropertyValue("formOptions").clearOnSubmit&&n(t,a),!i||f.isEmptyObject(i))e===!1?a.$element.elementOverlay({iconReference:{collectionName:"public-font-icons",iconName:"times"},message:a.getSubmitErrorText(),closeText:"Try Again",textColor:m,backgroundColor:h}):a.$element.elementOverlay({iconReference:{collectionName:"public-font-icons",iconName:"check"},message:a.getSubmitSuccessText(),textColor:m,backgroundColor:h,destroyOnClick:!0});else if(i.type===nt.Pages){var r=va.getPageData(i.url);if(!r)return;pa.navigateToPage(i.url)}else{var o=i.url;o.indexOf("://")<0&&(o="http://"+o),window.location=o}},function(){a.$element.loading(!1),a.$element.elementOverlay({iconReference:{collectionName:"public-font-icons",iconName:"times"},message:a.getSubmitErrorText(),closeText:"Try Again",textColor:m,backgroundColor:h})},e)}function o(e){e?(a.$element.loading({className:"loading-animation-dark-1",overlayLayer:X.AboveAll}),v._captchaElement&&v._captchaElement.removeClass("captcha-error"),r(e),y.reset()):(a.$element.loading(!1),v._captchaElement.addClass("captcha-error"))}if(ne.IsTemplate)return void rs.open({message:"Form submission does not work in the preview version."});var s,l,c=a.getPropertyValue("formID"),u=[],d=[],g=[],p=a.isTypeOf(ri.JMMLElement);p?(l=i.MailingList,f.each(a.childInstances,function(t,n){if(n.elementType.name===ri.JMMLSkinInputElement.name){var i=n.getValue(),a=n.getPropertyValue("baseName")||n.getPropertyValue("name");void 0===i||null===i||""===i?u.push(n.getLabelText()):"Email"!==a||e(i)||d.push(n.getLabelText()),g.push(n)}})):(l=i.ContactForm,f.each(a.getItemsControllers(),function(t,n){var i=n.getInstance(),a=i.getDataItem(),r=i.getValue();a.fieldOptions.isOptional||void 0!==r&&null!==r&&""!==r?a.fieldOptions.isOptional||3!==a.fieldOptions.fieldType||e(r)||d.push(a.labelText):u.push(a.labelText),g.push(i)}));var h="#333333",m="#FFFFFF";if(0===u.length&&0===d.length)if(a.$element.loading({className:"loading-animation-dark-1",overlayLayer:X.AboveAll}),h&&(f(".loading-overlay",a.$element).css("background",h),f(".loading-overlay",a.$element).css("opacity","0.75")),p?(s=f.map(g,function(e){var t=e.getPropertyValue("baseName");return t||(t=e.getPropertyValue("name")),{fieldName:t,fieldValue:e.getValue()}}),s.push({fieldName:"MailingList",fieldValue:!0})):(s=f.map(g,function(e){var t=e.getDataItem();return{fieldName:Ia.getFormFieldName(t),fieldValue:e.getValue()}}),a.getPropertyValue("joinMyMailingList")&&s.push({fieldName:"MailingList",fieldValue:a.getJoinMyMailingListValue()})),p)r();else if(window.grecaptcha){var v=t.parentInstance,y=window.grecaptcha;if(void 0!==v._widgetId){var b=v._widgetId;o(y.getResponse(b))}else a.$element.loading(!1)}else r();else{var C,I="",S=" , ";if(u.length>0){var P="You must fill out the following fields: ";f.each(u,function(e,t){e===u.length-1&&(S="."),I+=t+S}),C=P+I}else{var w="You must correct the following fields: ";f.each(d,function(e,t){e===d.length-1&&(S="."),I+=t+S}),C=w+I}a.$element.elementOverlay({iconReference:{collectionName:"public-font-icons",iconName:"times"},message:C,closeText:"Try Again",textColor:m,backgroundColor:h})}}function n(e,t){var n=f.grep(t.getDescendingInstances(!1),function(e){return e.isType(ri.SkinCheckBoxButtonElement)?!e.getPropertyValue("startSelected"):e.hasFeature(oi.HasInput)});f.each(n,function(){this.clear()})}Ai.registerBehaviours({SubmitForm:{initializeBehaviourDefinition:Ai.createActionBehaviour,activateFunction:t},ClearForm:{initializeBehaviourDefinition:Ai.createActionBehaviour,activateFunction:n}});var i={ContactForm:0,MailingList:1}}(),function(){function e(e){ee.log("1. Add to cart clicked"),zr.initializeCart().done(function(){ee.log("2. Cart is initialized");var t=zr.getCurrentProduct(),n=zr.getFirstUnselectedVariant();if(t)if(ee.log("3. Got current product"),0===t.stockAmount)ee.log("4. Current product is not in stock");else if(n){var i=zr.getStoreInformation().translations||{},a="Please select your "+n+" first";i.PleaseSelect&&(a=i.PleaseSelect.format(n)),e.updateLabel(a,!0)}else{var r=t.navId||t.id;zr.addProductToCart(r,null,1)}else ee.log("3. Current product is null")}).fail(function(){ee.log("2. Couldn't initialize cart")})}Ai.registerBehaviours({AddToCart:{initializeBehaviourDefinition:Ai.createActionBehaviour,activateFunction:e}})}(),function(){function e(e,t,n){n=f.quickExtend({},n),t.navigate(1,!0,void 0,n)}function t(e,t,n){var i=f.quickExtend({animationDuration:0},n);sa.scrollToInstanceInPreview(t,i)}function n(e,t,n){n=f.quickExtend({},n),t.navigate(-1,!0,void 0,n)}Ai.registerBehaviours({ShowTab:{initializeBehaviourDefinition:Ai.createActionBehaviour,activateFunction:function(e,t,n){if(n=f.extend({performAnimation:!0,animationOptions:{}},n),n.targetTab){var i=sa.getInstanceByID(n.targetTab);i&&t.showItem(i,n.performAnimation,void 0,n.animationOptions)}},activateCallback:function(e,t,n){e.data["currentItemChangedEventShowTab"+t.id]=t.currentItemChangedEvent.bind(function(){t.getCurrentItem().id===n.targetTab?e.userSelect(!0):e.userSelect(!1)})},deactivateCallback:function(e,t){t.currentItemChangedEvent.unbind(e.data["currentItemChangedEventShowTab"+t.id])}},NavigateTo:{initializeBehaviourDefinition:Ai.createActionBehaviour,activateFunction:t},NavigateNext:{initializeBehaviourDefinition:Ai.createActionBehaviour,activateFunction:e},NavigatePrev:{initializeBehaviourDefinition:Ai.createActionBehaviour,activateFunction:n},NextPage:{initializeBehaviourDefinition:Ai.createActionBehaviour,activateFunction:function(){va.switchToNextPage()}},PrevPage:{initializeBehaviourDefinition:Ai.createActionBehaviour,activateFunction:function(){va.switchToPrevPage()}}})}(),function(){Ai.registerBehaviours({ActivateState:{initializeBehaviourDefinition:Ai.createActionBehaviour,activateFunction:function(e,t,n){Ki.activateStateGroupState(n.groupId,n.stateId)},deactivateFunction:function(e,t,n){Ki.deactivateStateGroup(n.groupId)}},DeactivateState:{initializeBehaviourDefinition:Ai.createActionBehaviour,activateFunction:function(e,t,n){Ki.deactivateStateGroup(n.groupId)},deactivateFunction:function(e,t,n){Ki.activateStateGroupState(n.groupId,n.stateId)}},ActivateAllStates:{initializeBehaviourDefinition:Ai.createActionBehaviour,activateFunction:function(e,t,n){Ki.activateStateGroupStates(n.groupId)},deactivateFunction:function(e,t,n){Ki.deactivateStateGroup(n.groupId)}}})}(),function(){function e(e,t){t.stop()}function t(e,t){t.pause()}function n(e,t){t.play()}Ai.registerBehaviours({PlayVideo:{initializeBehaviourDefinition:Ai.createActionBehaviour,deactivateFunction:e,activateFunction:n,deactivateCallback:function(t,n){e(t,n)}},StopVideo:{initializeBehaviourDefinition:Ai.createActionBehaviour,activateFunction:e,deactivateCallback:function(t,n){e(t,n)}},PauseVideo:{initializeBehaviourDefinition:Ai.createActionBehaviour,deactivateFunction:e,activateFunction:t,deactivateCallback:function(t,n){e(t,n)}}})}(),function(){function e(e,t,i,a){i||(i={});var r=n(i,a);fa.updateComputedValue(t,t.properties.isVisible,!1,r,!0)}function t(e,t,i,a){i||(i={});var r=n(i,a);fa.updateComputedValue(t,t.properties.isVisible,!0,r,!0)}function n(e,t){var n={transitionEffect:wt.NoAnimation.name,transitionDuration:0,transitionSlideDirection:"left",transitionFlyDirection:{vertical:"top",horizontal:"left"}};return f.quickExtend(n,{transitionEffect:e.animationType,transitionDuration:t?0:e.animationDuration,transitionSlideDirection:e.animationSlideDirection,transitionFlyDirection:e.animationDirection})}Ai.registerBehaviours({showInCenter:{initializeBehaviourDefinition:Ai.createActionBehaviour,onlyOnePerSource:!0,activateFunction:function(e,t){e.getPropertyValue("templateOpener")||t.showPopup()}},ShowElement:{initializeBehaviourDefinition:Ai.createActionBehaviour,deactivateFunction:function(t,n,i,a){t!==n&&e(t,n,i,a)},activateFunction:t},HideElement:{initializeBehaviourDefinition:Ai.createActionBehaviour,deactivateFunction:function(e,n,i,a){e!==n&&t(e,n,i,a)},activateFunction:e}})}(),function(){function e(e,t){f.eachItem(e.childInstances,function(n,i){i.isDisplayed.setValue(t,"animation"+e.id)})}function t(e){if(e.hasFeature(oi.PageSection)){var t=Hn.getPlaceHolder(e.getContentLayer()),n=0;f.eachItem(e.childInstances,function(e,t){n<t.data.currentZIndexValue&&(n=t.data.currentZIndexValue)}),t.$element.css("z-index",n)}}function n(e){if(e.hasFeature(oi.PageSection)){var t=Hn.getPlaceHolder(e.getContentLayer());t.$element.css("z-index","auto")}}function i(e){if(e.hasFeature(oi.PageSection)){var t=f([]);return t.pushElements(e.getContentLayer()),t.pushElements(e.getBackgroundTarget()),t}return e.getMainBox()}function a(){return f.getWindowSize().height}Ai.registerBehaviours({ScrollingEffect:{initializeBehaviourDefinition:Ai.createScrollableBehaviour,activateCallback:function(r,o,s){s=f.quickExtend({isParallax:!1,reset:!1,oneTimeAnimation:!1,duration:1200,startDistance:200,startVisibility:50,distance:600,measureDistanceType:be.Bottom,effects:[{name:Hn.Effects.Wobble.name,options:{}}]},s);var l=s.effects,c=s.reset,u=f.objectGet(r.data,["NewShowElementBehaviour","scrollableEffect"]);u&&!c&&u.dispose();var d=s.distance,g=s.startDistance,p=r.getPosition(!0),h=p.top-(f.getWindowSize().height-a());r.isFixed()&&(h=0);var m=a(),v=va.getCurrentPage().getArea(!0),y=v.bottom-(f.getWindowSize().height-a())-as.getPrivacyPolicyActualHeight();if(s.autoStartDistanceSettings||s.autoDistanceSettings){if(s.autoStartDistanceSettings){var b;1*m/4>=h?(b=be.Bottom,g=m-h):3*m/4>h?(b=be.Top,g=h):(b=be.Bottom,g=m/4,m>h&&(g=Math.min(m-h,g)),g>y-h&&(g=(y-h)/2))}else be.Visibility===s.measureDistanceType&&(g=s.startVisibility*r.getSize().height);s.autoDistanceSettings&&(3*m/4>h&&h>1*m/4?d=f.minValue([m/3,h/2]):(d=m/3,g+d>y-h&&(d=y-h-g)))}var C=f.quickExtend({},s,{measureDistanceType:s.autoStartDistanceSettings?b:s.measureDistanceType,startDistance:g,startVisibility:s.startVisibility,id:r.id,$scrollablePane:f(window),isParallax:s.isParallax,oneTimeAnimation:s.oneTimeAnimation,duration:s.duration,distance:d,distanceDelay:s.distanceDelay,delay:s.delay,runInLoop:s.runInLoop,getSize:function(){return r.getSize()},getOffset:function(){return p},getTopOffset:function(){return h},completeCallback:function(t){t.isOutEffect()&&(s.runInLoop||(r.hasFeature(oi.PageSection)?e(r,!1):r.isDisplayed.setValue(!1,"animation"))),n(r)},resetCallback:function(t){t.isInEffect()?r.hasFeature(oi.PageSection)?e(r,!1):r.isDisplayed.setValue(!1,"animation"):t.isOutEffect()&&(r.hasFeature(oi.PageSection)?e(r,!0):r.isDisplayed.setValue(!0,"animation")),n(r)},activateCallback:function(n){(n.isOutEffect()||n.isInEffect())&&(r.hasFeature(oi.PageSection)?e(r,!0):r.isDisplayed.setValue(!0,"animation")),t(r)},reverseActivateCallback:function(n){(n.isOutEffect()||n.isInEffect())&&(r.hasFeature(oi.PageSection)?e(r,!0):r.isDisplayed.setValue(!0,"animation")),t(r)}});if(c&&u)C.activate=!0,u.reset(C);else{var I=i(r);u=Un.create(I,l,C),f.objectSet(r.data,["NewShowElementBehaviour","scrollableEffect"],u),u.activate(),t(r)}},deactivateCallback:function(t){var n=f.objectGet(t.data,["NewShowElementBehaviour","scrollableEffect"]);n&&n.dispose(),f.objectSet(t.data,["NewShowElementBehaviour","scrollableEffect"]),t.hasFeature(oi.PageSection)?e(t,!0):t.isDisplayed.setValue(!0,"animation")}},ParallaxImage:{initializeBehaviourDefinition:Ai.createScrollableBehaviour,activateCallback:function(e,t,n){if(!Ha.Flags.IsInMobileContext.isTrue()){var i=this,r=e.getPropertyValue("parallaxBackgroundSpeed");if(e.data.useFixedBackgroundImage=!!f.support.backgroundSize&&1===r,e.data.useFixedBackgroundImage)return void e.getImageBox().toggleHasFixedBackgroundImage(!0);n.reset&&i.deactivateCallback(e,t,n);var o=a(),s=e.getPosition(!0).top-(f.getWindowSize().height-o);e.data.scrollingImageBoxCreatedFlagBinding=e.imageBoxCreatedFlag.onceTrue(function(){function t(){var t=n.getState().getValue();if(t===un.ImageLoaded){e.data.scrollingImageLoadedBinding.unbind();var i=n.getImageElement(),l=0;e.data.scrollingTrackerParallaxImage=Ce.create({$element:i,getTopOffset:function(){return s},getWindowHeight:a,scrollingDistanceChangeCallback:function(t){var n=!0;-t<e.getSize().height&&o>t&&(n||0>t||0!==l)&&(!n&&t>=0&&(t=0),l=t,ye.requestWriteOperation(function(){var e="translate3d(0, {0}px, 0)".format(-t*r),n=j.prefixed("transform"),a={};a[n]=e,i.css(a)}))}}),e.data.scrollingTrackerParallaxImage.activate()}}var n=e.getImageBox();e.data.scrollingImageLoadedBinding=n.getState().valueChangedEvent.bind(t),t()})}},deactivateCallback:function(e){if(e.data.useFixedBackgroundImage)e.getImageBox().toggleHasFixedBackgroundImage(!1);else{e.getPropertyValue("parallaxBackgroundSpeed");e.data.scrollingImageBoxCreatedFlagBinding&&e.data.scrollingImageBoxCreatedFlagBinding.unbind(),e.data.scrollingImageLoadedBinding&&(e.data.scrollingImageLoadedBinding.unbind(),e.getImageBox().getImageElement().css("transform","")),e.data.scrollingTrackerParallaxImage&&e.data.scrollingTrackerParallaxImage.deactivate()}}},ParallaxElement:{initializeBehaviourDefinition:Ai.createScrollableBehaviour,activateCallback:function(e,t,n){var i,r=f.valueOrDefault(n.speed,1),o=f.valueOrDefault(n.delay,0),s=e.getMainBox();n.reset?(e.data.scrollingTrackerParallaxElement&&e.data.scrollingTrackerParallaxElement.deactivate(),i=e.data.scrollingTrackerParallaxElement.$wrapper):(Hn.usePlaceHolder(s,e.id+"scrolling-behaviour",{className:"full-height",ignoreOffset:!0}),i=Hn.createWrapper(s,{className:"full-height",ignoreOffset:!0}));var l=a(),c=e.getPosition(!0).top-(f.getWindowSize().height-l),u=f.minValue([c,l]);e.data.scrollingTrackerParallaxElement=Ce.create({$element:i,getTopOffset:function(){return c},getWindowHeight:a,scrollingDistanceChangeCallback:function(t){var n=u>t+o,a=0>t&&!((t+o-u)*-r<u+e.getSize().height);n&&!a?ye.requestWriteOperation(function(){i.css("top",(t+o-u)*r)}):n||ye.requestWriteOperation(function(){i.css("top",0)})}}),e.data.scrollingTrackerParallaxElement.$wrapper=i,e.data.scrollingTrackerParallaxElement.activate()},deactivateCallback:function(e){var t=e.getMainBox();Hn.releasePlaceHolder(t,e.id+"scrolling-behaviour"),Hn.removeWrapper(e.data.scrollingTrackerParallaxElement.$wrapper),e.data.scrollingTrackerParallaxElement.deactivate()}}})}(),function(){Ai.registerBehaviours({ExternalAppConnectionBehaviour:{activate:function(e,t,n){if(!e.hasFeature(oi.ConnectableExternalApp))throw Error("Invalid use");e.connectFeatureInstance(n.featureName,t)},deactivate:function(e,t,n){if(!e.hasFeature(oi.ConnectableExternalApp))throw Error("Invalid use");e.disconnectFeatureInstance(n.featureName,t)}}})}();var _i=fs(function(){this.isUnifiedValue=function(e,t){if(f.isPlainObject(e)){var n=!0;return void 0===t&&(t=e[f.getKeys(e)[0]]),f.eachEntry(e,function(e,i){return f.defaultEqualityComparer(t,i)?void 0:(n=!1,!1)}),n}return void 0===t||f.defaultEqualityComparer(e,t)},this.isUnifiedSmallerEqualValue=function(e,t){if(f.isPlainObject(e)){var n=!0;return void 0===t&&(t=e[f.getKeys(e)[0]]),f.eachEntry(e,function(e,i){return i>t?(n=!1,!1):void 0}),n}return void 0===t||t>=e}}),Ni=fs(function(){this.process=function(e,t,n){return e.hasFeature(oi.HasFormData)&&"TextInputField"===t.type&&"TextArea"===n&&(t.type="TextArea"),t}}),Ri=function(){return this.handlers={},window.addEventListener("message",this.handleMessage.bind(this)),this};Ri.prototype.constructor=Ri,Ri.prototype.bind=function(e,t){if(e=f.evaluateWhenFunction(e),"string"!=typeof e)throw new TypeError("A valid message name should be specified.");if("function"!=typeof t)throw new TypeError("A valid function should be specified as the handler for a message with this name.");var n={id:f.generateGuid(),handler:t},i=this.getHandlersForMessageName(e);return i.push(n),this.handlers[e]=i,n.id},Ri.prototype.clear=function(){this.handlers={}},Ri.prototype.getHandlersForMessageName=function(e){if(e=f.evaluateWhenFunction(e),"string"!=typeof e)throw new TypeError("A valid message name should be specified.");return this.handlers[e]||[]},Ri.prototype.handleMessage=function(e){var t=this;if(e&&e.data&&e.data.type)try{var n=this.getHandlersForMessageName(e.data.type);n.length>0&&n.forEach(function(n){try{n.handler.apply(t,[e.data,e])}catch(i){ee.error(i)}})}catch(i){ee.error(i)}},Ri.prototype.sendMessage=function(e,t,n,i){if(t=f.evaluateWhenFunction(t),"object"!=typeof t)throw new TypeError("A valid message should be specified.");if("string"!=typeof n)throw new TypeError("A valid message type should be specified.");var a=f.quickExtend({type:n,action:i},t);e.postMessage(a,"*")};var Hi=fs(function(){this.unescapeResult=function(e){var t={unescape:{"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#x27;":"'"}},n=(""+e).replace(/&amp;|&lt;|&gt;|&quot;|&#x27;/g,function(e){return t.unescape[e]});return n.replace(/&#(\d+);/g,function(e,t){return String.fromCharCode(t)})},this.parseFacebookUrl=function(e){if(e&&e.length>0){e=e.split("?")[0],e.indexOf("/")>-1&&e.indexOf("/")!==e.length-1&&(e=e.match(/\/([^\/]+)\/?$/)[1]);var t=e.match(/\d+/);if(t&&t.length>0){var n=t[0];n.length>4&&(e=n)}}return e}}),qi=fs(function(){var e=this,t=Settings.ImageProxy;e.createRequest=function(n){return n&&e.shouldUseProxy(n)&&!e.urlHasPrependedUrl(n)?t+n:n},e.urlHasPrependedUrl=function(e){return e.split("//").length>2},e.shouldUseProxy=ds}),Ui=fs(function(){var e=this,t={Inactive:1,Active:2,ImageRewriteActive:4,ViewerRewriteActive:8,PageRewriteActive:16};e.modifyImageUrl=function(t){return t&&e.shouldUseCloudFlare(t)?t=e.getCloudFlareImageUrl(t):t},e.getCloudFlareImageUrl=function(e){return-1!==e.indexOf("/x/cdn/?")?e:"/x/cdn/?"+e},e.shouldUseCloudFlare=us,e.isCloudFlareAvailable=function(){return Z.CloudflareOptions&t.Active},e.isCloudFlareImageRewriteActive=function(){return Z.CloudflareOptions&t.ImageRewriteActive}}),$i=fs(function(){this.token=null,this.authToken=null,this.tokenUrl=null,this.product=null,this.appendPath="/v1.0/token/imageservice",this.expiryDate=null,this.useBearerAuth=!1,this.checkAuth=function(e){return this.expiryDate?this.isExpired()?this.retrieveAuthToken(e):void e(this.token):this.retrieveAuthToken(e)},this.isExpired=function(){return this.expiryDate&&this.expiryDate>=(new Date).getTime()},this.retrieveAuthToken=function(e){var t=this,n="/services/application/storageservice";f.ajax({type:"GET",url:n,success:function(n){var i=n.jwt;$i.token=t.token=i,t.expiryDate=t.getExpiryDate(i),e(i)},error:function(){e(null)}})},this.decodeToken=function(e){var t=e.split(".")[1],n=t.replace(/-/g,"+").replace(/_/g,"/"),i=decodeURIComponent(atob(n).split("").map(function(e){return"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)}).join(""));return JSON.parse(i)},this.getExpiryDate=function(e){if(e){var t=this.decodeToken(e);return t.exp?t.exp:null}},this.getTokenUploadEndpoint=function(){return this.tokenUrl+this.appendPath}}),Wi=fs(function(){this.Flags={PcEditing:O.create(!0),MobileEditing:O.create(!1,{valueChangeCallback:cs}),InUserEditingMode:O.create(!0),SavingRecordEnabled:O.createConditionalPositive(),OpenLinksInSameWindow:O.create(Settings.UrlSameWindow),IsApiPartner:O.create(Settings.IsApiPartner),IsTestEnvironment:O.create(Settings.TestingEnvironment),ShowDynamicDataSources:O.create(!1),HideDomainLabel:O.create(Settings.IsApiPartner&&103!==parseInt(Settings.Brand))},this.contextEditingClass=Ie.createContextClass({getTarget:function(){return f("body")}}),this.MobileDesktopViewClass="mobile-desktop-mode",this.PcDesktopViewClass="pc-desktop-mode";var e,t;this.setEditingClass=function(e){Wi.contextEditingClass.setValue(e)},this.getEditorCoordinator=function(){return e},this.initialize=function(e){Wi.Flags.SavingRecordEnabled.setFalse("EditorInitialized"),Z.Events.LastEventOnInitiailizatGlobal.one(function(){Wi.setEditingClass(Z.IsMobileView||Z.IsTabletView?Wi.MobileDesktopViewClass:Wi.PcDesktopViewClass)})},this.getCoordinatorHierarchyForSave=function(){var n=sa.getHierarchyInfo(e,{forSaving:!0,saveToServer:!0,idsInHierarchy:!0,copyAffectedStates:!1,copyAffectingStates:!0,copyMobileStates:!1});return t&&(n=sa.adjustHierarchyWithBaseHierarchy(n,t,function(e,t,n){return n!==Ha.MobileStateName||!sa.getInstanceByID(t)||"coordinator"===t})),ka.preSaveHierarchy(n),n}}),ji=fs(function(){"use strict";function e(e){return"string"==typeof e?e.replace(/[^\d.-]/g,""):e}this.createPayPalButton=function(t,n,i){if(t){i=i?i:Sa.ButtonTypes.buynow.value;var a=f.extend({env:"www",business:t,size:"large",cmd:"_xclick"},n);switch(i){case Sa.ButtonTypes.cart.value:a.cmd="_cart",a.add="1";break;case Sa.ButtonTypes.donate.value:a.cmd="_donations";break;case Sa.ButtonTypes.view.value:i="cart",a.cmd="_cart",a.display="1"}a.bn="JavaScriptButton_{0}".format(i);var r=document.createElement("form"),o=document.createElement("input");a.size;r.method="post",r.action="https://{0}.paypal.com/cgi-bin/webscr".format(a.env),r.className="paypal-button",r.target="_blank",o.type="hidden";for(var s in a){var l=a[s],c=o.cloneNode(!0);switch(c.name=s,s){case"amount":case"quantity":case"shipping":c.value=e(l),window.isNaN(c.value)&&(c.value=void 0);break;case"tax":"string"==typeof l&&l.indexOf("%")>-1&&(c.name="tax_rate"),c.value=e(l),window.isNaN(c.value)&&(c.value=void 0);break;default:c.value=l}r.appendChild(c)}return f(r)}}}),Gi=fs(function(){function e(e){f.eachItem(e,function(e,t){if(4===t.storageServer&&a[t.fileNamePrefix]){var n=a[t.fileNamePrefix];t.storageServer=ae.AzureBlob,t.fileNamePrefix=n.id,n.supportEOT&&(t.supportEOT=!0),t.onlyTTF=!0}})}function t(){var e=[{fontFamily:"Arial"},{fontFamily:"Open Sans",fileNamePrefix:"ALyKWGaVsEemWmMSYxY8yg"},{fontFamily:"Open Sans Semi Bold",fileNamePrefix:"1aJZYUlSkk6puu4aOD3swQ"},{fontFamily:"Open Sans Extra Bold",fileNamePrefix:"I7CsSHRfZ0GB3AlD-DX-CQ"},{fontFamily:"Open Sans Condensed Light",fileNamePrefix:"zrpWq297sEeRsdU269eKIw"},{fontFamily:"Abril Fatface",fileNamePrefix:"gDLUCJWR_kqtWwfvIU_PaA"},{fontFamily:"Old Standard TT",fileNamePrefix:"kQqAlUNfAUWwCMQC0RiqsA"},{fontFamily:"Old Standard TT Italic",fileNamePrefix:"5ef35NcXqE-Sn4NiR-kJ3w"},{fontFamily:"Old Standard TT Bold",fileNamePrefix:"YWxRPXjKo0GD6sF4iTxb1A"},{fontFamily:"Amatic SC Bold",fileNamePrefix:"vncilunqC0SNXw6uCxWKYw"},{fontFamily:"Amatic SC",fileNamePrefix:"J-Q2uiHPAUWsLt1eszDGwg"},{fontFamily:"Bad Script",fileNamePrefix:"1Bgd0dJpN0GXJNyBAzkHww"},{fontFamily:"Dancing Script Bold",fileNamePrefix:"-BbHXw_ndE26qvVGfs-anQ"},{fontFamily:"Droid Sans Bold",fileNamePrefix:"ne7cbOZqTkedYy1HwYydZg"},{fontFamily:"Droid Serif",fileNamePrefix:"ePS3nDDdtEGk9UXdlz3xaw"},{fontFamily:"Gravitas One",fileNamePrefix:"Ia_3RDEl902d_biCJt5AFA"},{fontFamily:"Julius Sans One",fileNamePrefix:"w7D5mT_LT0-R_obV2nz21A"},{fontFamily:"Kaushan Script",fileNamePrefix:"N7N-3fd-v0qOnhTu-9GamA"},{fontFamily:"Lato Light",fileNamePrefix:"JYwDjrpa8U6xfI7FKlWegw"},{fontFamily:"Lato",fileNamePrefix:"kMHuzhNgr0KObYFogkU9qg"},{fontFamily:"Lobster",fileNamePrefix:"kPGhPwcvbkOCT9x5L5PHhw"},{fontFamily:"Neuton Bold",fileNamePrefix:"qFokD41aVU27THVC-6RMuw"},{fontFamily:"Neuton Extra Light",fileNamePrefix:"jk72vychhEmjX17_Z5nbjg"},{fontFamily:"Neuton",fileNamePrefix:"6a8BIp-h8EWtgJAOTPMYAw"},{fontFamily:"Nixie One",fileNamePrefix:"xctC69Fg002n2dGvXpnZIw"},{fontFamily:"Oleo Script",fileNamePrefix:"dCfhlsJpIk2_PlZcLee6-w"},{fontFamily:"PT Mono",fileNamePrefix:"mKwJ41VczkuadvZQFB69iQ"},{fontFamily:"PT Sans",fileNamePrefix:"ujtBJKYCkk-aGRvjqZ2Q6g"},{fontFamily:"PT Sans Bold",fileNamePrefix:"jyCuK2Q9ckmUVHo_bxIt1w"},{fontFamily:"PT Sans Narrow Bold",fileNamePrefix:"R3vKkDHIkEqPkFN_BbFEYA"},{fontFamily:"PT Serif",fileNamePrefix:"k0Q0RpzRHUa3xsKlKajrYw"},{fontFamily:"Source Sans Pro Light",fileNamePrefix:"N-FTQm6wJUid2Llo-YmLXw"},{fontFamily:"Source Sans Pro Semi Bold",fileNamePrefix:"Cuwea6LnvkOqcMrkyGOEWA"},{fontFamily:"Vollkorn",fileNamePrefix:"9_jFFW9MXU2YKrxUFFf7Tw"},{fontFamily:"Vollkorn Italic",fileNamePrefix:"_NLTS5Xqx0u8VVDeXpU6xQ"},{fontFamily:"Vollkorn Bold",fileNamePrefix:"KvLEhsX3PEeA-FNngJB2qQ"}];return f.eachItem(e,function(e,t){t.ownerID=null,void 0===t.storageServer&&(t.storageServer=ae.AzureBlob)}),e}function n(){return[{id:"c09c885d-6218-410b-8870-0567be7bacd2",fontFamily:"ChunkFive",supportedLanguages:["eng"],classification:"serif",fileNamePrefix:"XYicwBhiC0GIcAVnvnus0g",storageServer:4,ownerID:null},{id:"0218ee78-8fb2-4a8a-a104-07af0fb595f6",fontFamily:"Trade Winds",supportedLanguages:["eng"],classification:"decorative",fileNamePrefix:"eO4YArKPikqhBAevD7WV9g",storageServer:4,ownerID:null},{id:"7dbceeb3-6db6-4340-b511-07d698996ebb",fontFamily:"Monofett",supportedLanguages:["eng"],classification:"decorative",fileNamePrefix:"s-68fbZtQEO1EQfWmJluuw",storageServer:4,ownerID:null},{id:"c62d3acb-e722-4ee7-9bd1-0989f096666d",fontFamily:"Daniel",supportedLanguages:["eng"],classification:"hand",fileNamePrefix:"yzotxiLn506b0QmJ8JZmbQ",storageServer:4,ownerID:null},{id:"e52e2b3b-cf41-4efd-bfaf-12310555a963",fontFamily:"Sansation",supportedLanguages:["eng"],classification:"sanserif",fileNamePrefix:"Oysu5UHP_U6_rxIxBVWpYw",storageServer:4,ownerID:null},{id:"3a19ffeb-9eb2-4352-80bd-13cd8161dbf7",fontFamily:"Journal",supportedLanguages:["eng"],classification:"hand",fileNamePrefix:"6_8ZOrKeUkOAvRPNgWHb9w",storageServer:4,ownerID:null},{id:"ae6ac39d-1c58-4844-af75-153e93e35a7b",fontFamily:"Smokum",supportedLanguages:["eng"],classification:"serif",fileNamePrefix:"ncNqrlgcREivdRU-k-Naew",storageServer:4,ownerID:null},{id:"8a9d8040-0523-4c66-93f1-19930b7cbac9",fontFamily:"Astloch",supportedLanguages:["eng"],classification:"hand",fileNamePrefix:"QICdiiMFZkyT8RmTC3y6yQ",
storageServer:4,ownerID:null},{id:"317350d9-ac32-40e9-bf24-1995387d7609",fontFamily:"Flavors",supportedLanguages:["eng"],classification:"decorative",fileNamePrefix:"2VBzMTKs6UC_JBmVOH12CQ",storageServer:4,ownerID:null},{id:"642b8eaa-b418-4db8-b9ea-1b9c8aa86d00",fontFamily:"Ultra",supportedLanguages:["eng"],classification:"serif",fileNamePrefix:"qo4rZBi0uE256huciqhtAA",storageServer:4,ownerID:null},{id:"2c3211e9-2b6a-49c6-b63a-1e40b49fa28f",fontFamily:"Oxygen",supportedLanguages:["eng"],classification:"sanserif",fileNamePrefix:"6REyLGorxkm2Oh5AtJ-ijw",storageServer:4,ownerID:null},{id:"31757e21-a23d-4b2b-af66-2de414ece485",fontFamily:"Loved by the King",supportedLanguages:["eng"],classification:"hand",fileNamePrefix:"IX51MT2iK0uvZi3kFOzkhQ",storageServer:4,ownerID:null},{id:"78ec2b16-7746-4d71-b549-2e02bcddbb58",fontFamily:"Ubuntu",supportedLanguages:["eng"],classification:"sanserif",fileNamePrefix:"FivseEZ3cU21SS4CvN27WA",storageServer:4,ownerID:null},{id:"3a767f73-88f9-4a5b-b9d9-314b6953ff2b",fontFamily:"alegreya",supportedLanguages:["eng"],classification:"serif",fileNamePrefix:"c392OvmIW0q52TFLaVP_Kw",storageServer:4,ownerID:null},{id:"367e3596-460d-4385-8894-33bc86900d45",fontFamily:"Geostar Fill",supportedLanguages:["eng"],classification:"serif",fileNamePrefix:"ljV-Ng1GhUOIlDO8hpANRQ",storageServer:4,ownerID:null},{id:"9a12ddc9-4d39-484b-88f8-3ba12992301a",fontFamily:"GoodDog",supportedLanguages:["eng"],classification:"decorative",fileNamePrefix:"yd0SmjlNS0iI-DuhKZIwGg",storageServer:4,ownerID:null},{id:"481951ac-767c-411a-94ad-42178d05bd9e",fontFamily:"WalkWay",supportedLanguages:["eng"],classification:"sanserif",fileNamePrefix:"rFEZSHx2GkGUrUIXjQW9ng",storageServer:4,ownerID:null},{id:"790f646a-9f89-4aac-9793-530d241b955d",fontFamily:"IM Fell English SC",supportedLanguages:["eng"],classification:"serif",fileNamePrefix:"amQPeYmfrEqXk1MNJBuVXQ",storageServer:4,ownerID:null},{id:"aa1aa242-4565-493d-8dc8-53672f30e967",fontFamily:"Metamorphous",supportedLanguages:["eng"],classification:"sanserif",fileNamePrefix:"QqIaqmVFPUmNyFNnLzDpZw",storageServer:4,ownerID:null},{id:"265b03e5-acde-4773-9b5d-55a462006730",fontFamily:"Droid Sans",supportedLanguages:["eng"],classification:"sanserif",fileNamePrefix:"5QNbJt6sc0ebXVWkYgBnMA",storageServer:4,ownerID:null},{id:"cf62fd55-956a-418a-bbc1-577c0bdb2ddc",fontFamily:"Fredericka the Great",supportedLanguages:["eng"],classification:"decorative",fileNamePrefix:"Vf1iz2qVikG7wVd8C9st3A",storageServer:4,ownerID:null},{id:"fcae94e7-2fec-4ea0-8e29-584a2b3498e9",fontFamily:"Eater",supportedLanguages:["eng"],classification:"decorative",fileNamePrefix:"55Su_OwvoE6OKVhKKzSY6Q",storageServer:4,ownerID:null},{id:"c87f2751-0273-48ca-b050-5bd471272166",fontFamily:"Vast Shadow",supportedLanguages:["eng"],classification:"decorative",fileNamePrefix:"USd_yHMCykiwUFvUcSchZg",storageServer:4,ownerID:null},{id:"a1fec907-1d82-4efd-8ea5-72aa2462692a",fontFamily:"Shadows Into Light",supportedLanguages:["eng"],classification:"hand",fileNamePrefix:"B8n-oYId_U6OpXKqJGJpKg",storageServer:4,ownerID:null},{id:"bca1239b-cfd9-4674-a3f3-77bfe865cd9e",fontFamily:"Sail",supportedLanguages:["eng"],classification:"hand",fileNamePrefix:"myOhvNnPdEaj83e_6GXNng",storageServer:4,ownerID:null},{id:"c0c4ebfa-376e-456d-b52f-7bc3a5524511",fontFamily:"Monoton",supportedLanguages:["eng"],classification:"decorative",fileNamePrefix:"-uvEwG43bUW1L3vDpVJFEQ",storageServer:4,ownerID:null},{id:"4d70accc-c3eb-4e30-831f-87c2aebbba92",fontFamily:"Windsong",supportedLanguages:["eng"],classification:"hand",fileNamePrefix:"zKxwTevDME6DH4fCrru6kg",storageServer:4,ownerID:null},{id:"649495ea-c170-4cf0-a7c1-899801f3b23a",fontFamily:"Frijole",supportedLanguages:["eng"],classification:"decorative",fileNamePrefix:"6pWUZHDB8EynwYmYAfOyOg",storageServer:4,ownerID:null},{id:"ce47876c-91e9-4828-bcdd-8c969c79eed4",fontFamily:"Montserrat Alternates",supportedLanguages:["eng"],classification:"decorative",fileNamePrefix:"bIdHzumRKEi83YyWnHnu1A",storageServer:4,ownerID:null},{id:"d3c0077c-8bf2-4eab-846a-8f423e34340d",fontFamily:"Geostar",supportedLanguages:["eng"],classification:"serif",fileNamePrefix:"fAfA0_KLq06Eao9CPjQ0DQ",storageServer:4,ownerID:null},{id:"0cb005e2-6cb1-4f9a-b41d-915a272a1b76",fontFamily:"Creepster",supportedLanguages:["eng"],classification:"decorative",fileNamePrefix:"4gWwDLFsmk-0HZFaJyobdg",storageServer:4,ownerID:null},{id:"7cade256-3cb9-45aa-a4d8-97b306fd4dbc",fontFamily:"Love Ya Like A Sister",supportedLanguages:["eng"],classification:"decorative",fileNamePrefix:"VuKtfLk8qkWk2JezBv1NvA",storageServer:4,ownerID:null},{id:"2071d878-f419-47cd-b047-9bb130909aae",fontFamily:"Raleway",supportedLanguages:["eng"],classification:"sanserif",fileNamePrefix:"eNhxIBn0zUewR5uxMJCarg",storageServer:4,ownerID:null},{id:"88e68407-dc4c-4ed4-ada4-b4c89c83f206",fontFamily:"Merienda One",supportedLanguages:["eng"],classification:"decorative",fileNamePrefix:"B4TmiEzc1E6tpLTInIPyBg",storageServer:4,ownerID:null},{id:"6ac971e7-32c6-4cf8-9960-bd37457038ea",fontFamily:"Titillium Web",supportedLanguages:["eng"],classification:"sanserif",fileNamePrefix:"53HJasYy-EyZYL03RXA46g",storageServer:4,ownerID:null},{id:"5e1f36d2-2c8e-4e67-bdc9-be3821863d46",fontFamily:"Fascinate",supportedLanguages:["eng"],classification:"decorative",fileNamePrefix:"0jYfXo4sZ069yb44IYY9Rg",storageServer:4,ownerID:null},{id:"6a0c7754-700e-4c3e-9bb9-c7c28ac10924",fontFamily:"Megrim",supportedLanguages:["eng"],classification:"sanserif",fileNamePrefix:"VHcMag5wPkybucfCisEJJA",storageServer:4,ownerID:null},{id:"b040c83c-d7a1-4fd5-96e2-ccfea301d539",fontFamily:"Ballpark",supportedLanguages:["eng"],classification:"hand",fileNamePrefix:"PMhAsKHX1U-W4sz-owHVOQ",storageServer:4,ownerID:null},{id:"4228bbc5-24cf-4b16-9962-d16e83224608",fontFamily:"Miltonian",supportedLanguages:["eng"],classification:"decorative",fileNamePrefix:"xbsoQs8kFkuZYtFugyJGCA",storageServer:4,ownerID:null},{id:"dabde0dc-c2ac-445b-ae82-d17271036830",fontFamily:"Average Sans",supportedLanguages:["eng"],classification:"sanserif",fileNamePrefix:"3OC92qzCW0SugtFycQNoMA",storageServer:4,ownerID:null},{id:"a1f56792-8d49-47b5-b238-e176eee56874",fontFamily:"Questrial",supportedLanguages:["eng"],classification:"sanserif",fileNamePrefix:"kmf1oUmNtUeyOOF27uVodA",storageServer:4,ownerID:null},{id:"d2a8a6f3-ae33-4f02-9873-e319979ebc3c",fontFamily:"Plaster",supportedLanguages:["eng"],classification:"decorative",fileNamePrefix:"86ao0jOuAk-Yc-MZl568PA",storageServer:4,ownerID:null},{id:"55445c86-6517-4786-a23b-e7969bd58cc7",fontFamily:"Ubuntu Condensed",supportedLanguages:["eng"],classification:"sanserif",fileNamePrefix:"hlxEVRdlhkeiO-eWm9WMxw",storageServer:4,ownerID:null},{id:"589684e8-cae5-44d9-a4e8-ecaaabbd07f3",fontFamily:"Seymour One",supportedLanguages:["eng"],classification:"decorative",fileNamePrefix:"6ISWWOXK2USk6Oyqq70H8w",storageServer:4,ownerID:null},{id:"0399ce94-4c94-4280-aa47-f257929bf1b6",fontFamily:"Butcherman",supportedLanguages:["eng"],classification:"decorative",fileNamePrefix:"lM6ZA5RMgEKqR_JXkpvxtg",storageServer:4,ownerID:null},{id:"b4d1d6e8-0d30-4b5a-9dae-f46e9d0200e0",fontFamily:"MarketingScript",supportedLanguages:["eng"],classification:"hand",fileNamePrefix:"6NbRtDANWkudrvRunQIA4A",storageServer:4,ownerID:null},{id:"fe4e0d3a-2ef7-4331-8f57-ff80a693729a",fontFamily:"Caesar Dressing",supportedLanguages:["eng"],classification:"decorative",fileNamePrefix:"Og1O_vcuMUOPV_-AppNymg",storageServer:4,ownerID:null}]}var i=this;this.SiteFonts=new $t({idFunction:function(e){return e.fontFamily}}),this.useFontFamily=cs,this.getSiteFonts=function(){return f.getValues(Gi.SiteFonts.getItems())};var a={XYicwBhiC0GIcAVnvnus0g:{name:"ChunkFive",id:"Chunk Five Print"},eO4YArKPikqhBAevD7WV9g:{name:"Trade Winds",id:"TradeWinds-Regular"},"s-68fbZtQEO1EQfWmJluuw":{name:"Monofett",id:"Monofett"},yzotxiLn506b0QmJ8JZmbQ:{name:"Daniel",id:"Daniel-Regular"},Oysu5UHP_U6_rxIxBVWpYw:{name:"Sansation",id:"Sansation_Regular"},"6_8ZOrKeUkOAvRPNgWHb9w":{name:"Journal",id:"journal"},"ncNqrlgcREivdRU-k-Naew":{name:"Smokum",id:"Smokum-Regular"},QICdiiMFZkyT8RmTC3y6yQ:{name:"Astloch",id:"Astloch-Regular"},"2VBzMTKs6UC_JBmVOH12CQ":{name:"Flavors",id:"Flavors-Regular"},qo4rZBi0uE256huciqhtAA:{name:"Ultra",id:"Ultra"},"6REyLGorxkm2Oh5AtJ-ijw":{name:"Oxygen",id:"Oxygen-Regular"},IX51MT2iK0uvZi3kFOzkhQ:{name:"Loved by the King",id:"LovedbytheKing"},FivseEZ3cU21SS4CvN27WA:{name:"Ubuntu",id:"Ubuntu-R"},c392OvmIW0q52TFLaVP_Kw:{name:"alegreya",id:"Alegreya-Regular"},"ljV-Ng1GhUOIlDO8hpANRQ":{name:"Geostar Fill",id:"Geostar-Fill"},"yd0SmjlNS0iI-DuhKZIwGg":{name:"GoodDog",id:"gooddog",supportEOT:!0},rFEZSHx2GkGUrUIXjQW9ng:{name:"WalkWay",id:"walkway"},amQPeYmfrEqXk1MNJBuVXQ:{name:"IM Fell English SC",id:"im-fell-english-sc"},QqIaqmVFPUmNyFNnLzDpZw:{name:"Metamorphous",id:"Metamorphous-Regular"},"5QNbJt6sc0ebXVWkYgBnMA":{name:"Droid Sans",id:"DroidSans"},Vf1iz2qVikG7wVd8C9st3A:{name:"Fredericka the Great",id:"FrederickatheGreat-Regular"},"55Su_OwvoE6OKVhKKzSY6Q":{name:"Eater",id:"Eater-Regular"},USd_yHMCykiwUFvUcSchZg:{name:"Vast Shadow",id:"VastShadow-Regular"},"B8n-oYId_U6OpXKqJGJpKg":{name:"Shadows Into Light",id:"ShadowsIntoLight"},myOhvNnPdEaj83e_6GXNng:{name:"Sail",id:"Sail-Regular"},"-uvEwG43bUW1L3vDpVJFEQ":{name:"Monoton",id:"Monoton-Regular"},zKxwTevDME6DH4fCrru6kg:{name:"Windsong",id:"windsong"},"6pWUZHDB8EynwYmYAfOyOg":{name:"Frijole",id:"Frijole-Regular"},bIdHzumRKEi83YyWnHnu1A:{name:"Montserrat Alternates",id:"montserrat-alternates"},fAfA0_KLq06Eao9CPjQ0DQ:{name:"Geostar",id:"Geostar-Regular"},"4gWwDLFsmk-0HZFaJyobdg":{name:"Creepster",id:"Creepster-Regular"},VuKtfLk8qkWk2JezBv1NvA:{name:"Love Ya Like A Sister",id:"LoveYaLikeASister"},eNhxIBn0zUewR5uxMJCarg:{name:"Raleway",id:"Raleway-Regular"},B4TmiEzc1E6tpLTInIPyBg:{name:"Merienda One",id:"merienda-one"},"53HJasYy-EyZYL03RXA46g":{name:"Titillium Web",id:"TitilliumWeb-Regular"},"0jYfXo4sZ069yb44IYY9Rg":{name:"Fascinate",id:"Fascinate-Regular"},VHcMag5wPkybucfCisEJJA:{name:"Megrim",id:"Megrim"},"PMhAsKHX1U-W4sz-owHVOQ":{name:"Ballpark",id:"ballpark"},xbsoQs8kFkuZYtFugyJGCA:{name:"Miltonian",id:"Miltonian-Regular"},"3OC92qzCW0SugtFycQNoMA":{name:"Average Sans",id:"AverageSans-Regular"},kmf1oUmNtUeyOOF27uVodA:{name:"Questrial",id:"Questrial-Regular"},"86ao0jOuAk-Yc-MZl568PA":{name:"Plaster",id:"Plaster-Regular"},"hlxEVRdlhkeiO-eWm9WMxw":{name:"Ubuntu Condensed",id:"ubuntu-condensed"},"6ISWWOXK2USk6Oyqq70H8w":{name:"Seymour One",id:"seymour-one"},lM6ZA5RMgEKqR_JXkpvxtg:{name:"Butcherman",id:"Butcherman-Regular"},"6NbRtDANWkudrvRunQIA4A":{name:"MarketingScript",id:"marketingscript"},"Og1O_vcuMUOPV_-AppNymg":{name:"Caesar Dressing",id:"CaesarDressing-Regular"}};this.initialize=function(a){void 0===a&&(a=n()),e(a);var r=t(),o=f.makeSet(r,function(e){return e.fontFamily});a=f.grep(a,function(e){return!o[e.fontFamily]}),a=f.merge(r,a),Gi.SiteFonts.put(a),i.SiteFontsController=ln.create({fonts:f.mapItem(a,function(e){return e.fileNamePrefix?{fontFamily:e.fontFamily,fontUrlPrefix:se.resolveFontUrl(e),supportSVG:e.storageServer!=ae.Amazon,supportEOT:e.supportEOT||e.storageServer!=ae.Amazon,supportTTF:!0,supportWOFF:e.storageServer!=ae.Amazon&&!e.onlyTTF}:void 0})})},this.getFontDisplayText=function(e){return er.isFontBinding(e)?"{0} ({1})".format(er.getThemeFontType(e),er.evaluateFontBinding(e)):e}}),Xi=fs(function(){var e=w.create(function(){return{paypal:"YourPayPalEmail@domain.com",facebookPageUrl:Sr.getBrandFacebookUrl(),siteEmail:"youremail@domain.com",googleCard:"youremail@domain.com",googlePlus:Sr.getBrandGooglePlusUrl(),twitter:Sr.getBrandTwitterUrl(),linkedin:"http://www.linkedin.com"}});this.Types={PayPal:"paypal",SiteEmail:"siteEmail",Facebook:"facebookPageUrl",GoogleCard:"googleCard",GooglePlus:"googlePlus",Twitter:"twitter",Linkedin:"linkedin"},this.Events={AccountsChangedEvent:x.create()},this.getDefaultAccountId=function(t){return e.get()[t]},this.getAccountID=function(t){return ra.getValue(t+"AccountId",e.getValue()[t])},this.setAccountID=function(e,t,n){ra.setValue(e+"AccountId",t,{onSuccess:n,onError:cs})}}),Yi=fs(function(){var e,t=this,n={};this.initialize=function(){e=sn.create(),t.stopPooling()},this.attach=function(i,a,r){var o=[];a=a?a:us,r=r?r:cs,i=f.asArray(i);for(var s=0;s<i.length;s++){var l=i[s],c=f.uniqueID(),u=l.id;if(!n[u]){l.data.poolingVisibilityChanaged=l.visibilityChangedEvent.bind(function(){var e=ba.isElementVisible(l);e?t.unPostponeSamples(l,"visibility"):t.postponeSamples(l,"visibility")});var d={id:u,callbacksItems:{}};n[u]=d}n[u].callbacksItems[c]=e.attach(a,r,c),o.push({callbackId:c,id:u})}return e.getCallbacksLength()>0&&t.startPooling(),o},this.stopPooling=function(t){t=t?t:"default",e.stopPooling(t)},this.startPooling=function(t){t=t?t:"default",e.startPooling(t)},this.postponeSamples=function(e,t){t=t?t:"default",e=f.asArray(e),f.each(e,function(e,i){var a=n[i.id];a&&f.each(a.callbacksItems,function(e,n){n.postpone(t)})})},this.unPostponeSamples=function(e,t){t=t?t:"default",e=f.asArray(e),f.each(e,function(e,i){var a=n[i.id];a&&f.each(a.callbacksItems,function(e,n){n.unPostpone(t)})})},this.detach=function(i){i=f.asArray(i);for(var a=0;a<i.length;a++){var r=i[a];if(n[r.id]&&(n[r.id].callbacksItems[r.callbackId].detach(),delete n[r.id].callbacksItems[r.callbackId],0===f.count(n[r.id].callbacksItems))){delete n[r.id];var o=sa.getInstanceByID(r.id);o&&o.visibilityChangedEvent.unbind(o.data.poolingVisibilityChanaged)}}0===e.getCallbacksLength()&&t.stopPooling()}}),Ki=fs(function(){var e=this,t={},n={};this.activateStateGroupState=function(t,i){if(t&&i){e.deactivateStateGroupState(t,n[t]);var a=va.getCoordinator();fa.addGlobalState({name:""+i},a),n[t]=i}},this.deactivateStateGroupState=function(e,t){if(e&&t){var i=va.getCoordinator();fa.removeGlobalState({name:""+t},i),n[e]=void 0}},this.deactivateStateGroup=function(e){if(e&&n[e]){var t=va.getCoordinator();fa.removeGlobalState({name:""+n[e]},t),n[e]=void 0}},this.activateStateGroupStates=function(i){if(i){var a=t[i].getItemsValues();f.each(a,function(t,n){window.setTimeout(function(){e.activateStateGroupState(i,n.id)},1e3*t)}),window.setTimeout(function(){e.deactivateStateGroupState(i,n[i])},1e3*a.length)}}}),Qi=fs(function(){function e(e,t,n){n?n.$rowsArray=e:t.$rowsArray=e}function t(e,t){var n;return n=t?t.$rowsArray:e.$rowsArray,n||(n=[]),n}this.reorderControllers=function(n,i,a){a=f.extend({elementsPerRow:1},a);var r=a.currentControllersMap,o=a.$container,s=a.elementsPerRow,l=i.length,c=Math.ceil(l/s),u=a.parentInstance,d=t(n,u),g=d.length,p=g-c,h=f.mapArray(i,f.returnValue,f.defaultIdFunction);if(r&&f.eachEntry(r,function(e,t){h[e]||t.detach()}),0!==p&&0>p)for(var m=0;-p>m;m++){var v=f("<div class='positioned no-wrap'></div>");d.push(v[0])}for(var m=0;c>m;m++){for(var y=f([]),b=f(d[m]),C=!1,I=0;s>I;I++){var S=I+m*s,P=i[S];if(P){var w=f.objectGet(P,["data","currentIndex"]);f.objectSet(P,["data","currentIndex"],S),P.$element.parent()[0]===b[0]&&w===S||(C=!0),y.pushElements(P.$element),P.lastRowParent=b,P.appendTo(d[m],u,!0),P.showElement()}}C&&b.applyChildrenSorting(y)}if(p&&o.applyChildrenSorting(d),p>0)for(var m=g-1;m>g-1-p;m--)f(d[m]).remove(),d.pop();return e(d,n,u),h}}),Ji=fs(function(){function e(e){var t=e.getArrangement(),n=e.isInEmptyState();e.getDataItemsController().getInstance().canResizeVertically.setValue(t.canResize.vertically||n,"isInLayout"),e.getDataItemsController().getInstance().canResizeHorizontally.setValue(t.canResize.horizontally||n,"isInLayout")}function t(){return[]}this.registerDataLayoutTypes=function(n,i){f.eachEntry(n,function(n,a){var r=f.quickExtend({categoryName:i.name,removeLayout:cs,orderElements:cs,startLayout:cs,getNavigatableInstances:t,navigateTo:cs,refreshLayout:cs,getCurrentItem:function(e){return e.data.pagesInstance},canItemResize:{vertically:!1,horizontally:!1},canResize:{vertically:!0,horizontally:!0},fields:{},canSelectItems:!0,showItem:cs,fetchItemsInformationToArrange:function(e,t,n,i){e.getDataItemsController().fetchAllControllers(n,i)},refreshEmptyState:cs},a,{name:n});Zi[n]=r;var o=r.arrange,s=r.startLayout,l=r.refreshEmptyState;r.arrange=function(e,t,n){var i=o(e,t,n);return i&&(f.eachItem(i.controllersToArrange,function(e,t){var n=t.getInstance();n&&(n.canResizeHorizontally.setValue(r.canItemResize.horizontally,"dataListItem"),n.canResizeVertically.setValue(r.canItemResize.vertically,"dataListItem"))}),i.options=n),i},r.startLayout=f.hookAfterMethod(s,e),r.refreshEmptyState=f.hookAfterMethod(l,e),i.items[n]=Zi[n]})},this.calculateItemSize=function(e,t,n){var i=e;return t.fixedSize?i=t.fixedSize:t.keepItemSize&&n.fixedSize&&(i=n.fixedSize),t.useCalculatedWidth&&(i.width=e.width),i}}),Zi={},ea={Pages:{name:"Pages",iconClass:"sprite-icon sprite-tool-category-panels",title:"Pages",isActive:!0,items:{}},Normal:{name:"Normal",iconClass:"sprite-icon sprite-tool-category-panels",title:"Normal",isActive:!0,items:{}},FormLayouts:{name:"FormLayouts",iconClass:"sprite-icon sprite-tool-category-panels",title:"Form Layouts",isActive:!1,items:{}}},ta={Horizontal:{getFixedSize:function(e,t,n){var i=Math.floor((e.width-n.lineSpacing*(t-1))/t),a=e.height;return{width:Math.floor(i),height:a}},getLayoutOptions:function(e){return{elementsPerRow:e}},orderItemsLayout:Qi.reorderControllers,arrange:function(e,n){n=f.quickExtend({lineSpacing:10},n);for(var i,a=n.length,r=n.size,o=0;o<e.length;o++){var s=e[o];i=t(n.fixedSize,s,n);var l=o>0?1*n.lineSpacing:0;s.setSize(i),s.setMargin({marginLeft:l})}var c=Math.ceil(i.width*a+(a-1)*n.lineSpacing);c=c>0?c:r.width;var u={height:i.height,width:c};return{fixedSize:i,contentSize:u}}},Vertical:{getFixedSize:function(e,t,n){var i=(e.height-n.columnSpacing*(t-1))/t,a=e.width;return{width:a,height:Math.floor(i)}},getLayoutOptions:f.returnEmptyObject,orderItemsLayout:Qi.reorderControllers,arrange:function(e,n){n=f.extend({columnSpacing:10},n);for(var i,a=n.size,r=n.length,o=0;o<e.length;o++){var s=e[o];i=t(n.fixedSize,s,n);var l=o>0?1*n.columnSpacing:0;s.setSize(i),s.setMargin({marginTop:l})}var c=Math.ceil(i.height*r+(r-1)*n.columnSpacing);c=c>0?c:a.height;var u={width:i.width,height:c};return{fixedSize:i,contentSize:u}}},Grid:{getFixedSize:function(e,t,n){var i=n.cols,a=Math.floor(t/i),r=t%i;0!==r&&a++;var o=(e.height-n.rowsSpacing*(a-1))/a,s=(e.width-n.colsSpacing*(i-1))/i;return{width:Math.floor(s),height:Math.floor(o)}},getLayoutOptions:function(e,t){return{elementsPerRow:parseInt(Math.min(parseInt(t.cols),e))}},orderItemsLayout:Qi.reorderControllers,arrange:function(e,n){var i=n.size;n=f.extend({rowsSpacing:10,colsSpacing:10,cols:3},n);var a=n.length,r=n.cols,o=Math.floor(a/r),s=a%r;0!==s&&o++;for(var l,c=0,u=0,d=e.length,g=0;o>g&&d>0;g++){c=0;for(var p=0;r>p&&d>0;p++){var h=g*r+p,m=e[h];l=t(n.fixedSize,m,n),c=p>0?1*n.colsSpacing:0,m.setSize(l),m.setMargin({marginTop:u,marginLeft:c}),d--}u=n.rowsSpacing}var v=Math.ceil(l.width*r+(r-1)*n.colsSpacing);v=v>0?v:i.width;var y=Math.ceil(l.height*o+(o-1)*n.rowsSpacing);return y=y>0?y:i.height,{fixedSize:l,contentSize:{width:v,height:y}}}},OneColumn:{getFixedSize:function(e,t,n){var i=(e.height-n.rowsSpacing*(t-1))/t,a=e.width;return{width:a,height:Math.floor(i)}},getLayoutOptions:f.returnEmptyObject,orderItemsLayout:Qi.reorderControllers,arrange:function(e,n){n.size;n=f.extend({rowsSpacing:10},n);for(var i,a=(n.length,{width:0,height:0}),r=0;r<e.length;r++){var o=e[r];i=t(n.fixedSize,o,n);var s=o.getSize(),l=r>0?1*n.rowsSpacing:0;a.height+=s.height+l,o.setSize({width:i.width,height:s.height}),o.setMargin({marginTop:l})}return a.width=n.calculatedFixedSize.width,{fixedSize:n.calculatedFixedSize,contentSize:a}}},Columns:{getFixedSize:function(e,t,n){var i=parseInt(Math.min(parseInt(n.cols),t)),a=Math.floor(t/i),r=t%i;0!==r&&a++;var o=(e.height-n.rowsSpacing*(a-1))/a,s=(e.width-n.colsSpacing*(i-1))/i;return{width:Math.floor(s),height:Math.floor(o)}},getLayoutOptions:function(e,t){return{elementsPerRow:parseInt(Math.min(parseInt(t.cols),e))}},orderItemsLayout:Qi.reorderControllers,arrange:function(e,n){var i=n.size;n=f.quickExtend({rowsSpacing:10,colsSpacing:10,cols:3},n);var a=n.length,r=parseInt(Math.min(parseInt(n.cols),a)),o=Math.floor(a/r),s=a%r;0!==s&&o++;for(var l=0,c=0,u=0,d=0,g=e.length,p=0;o>p&&g>0;p++){l=0,d=0;for(var h=0;r>h&&g>0;h++){var m=p*r+h,v=e[m],y=t(n.fixedSize,v,n),b=v.getSize();l=h>0?1*n.colsSpacing:0,v.setSize({width:y.width,height:b.height}),v.setMargin({marginTop:c,marginLeft:l}),g--,d<b.height&&(d=b.height),a--}u+=d+c,c=n.rowsSpacing}var C=y.width*r+(r-1)*n.colsSpacing;return C=C>0?C:i.width,u=u>0?u:i.height,{fixedSize:y,contentSize:{width:C,height:u}}}},Rows:{getFixedSize:function(e,t,n){var i=parseInt(Math.min(n.rows,t)),a=Math.floor(t/i),r=t%i;0!==r&&a++;var o=(e.height-n.rowsSpacing*(i-1))/i,s=(e.width-n.colsSpacing*(a-1))/a;return{width:Math.floor(s),height:Math.floor(o)}},arrange:function(e,n){var i=n.size;n=f.quickExtend({rowsSpacing:10,colsSpacing:10,rows:5},n);var a=parseInt(Math.min(n.rows,e.length)),r=Math.floor(e.length/a),o=e.length%a;0!==o&&r++;for(var s=e.length,l=0,c=0,u=t(n.fixedSize,e[0],n),d=0;r>d&&s>0;d++){var g={},p=n.$columns[d],h=d>0?n.colsSpacing:0;p.css("width",u.width),p.css("marginLeft",h),l=0;for(var m=0;a>m&&s>0;m++){var v=d*a+m,y=e[v],b=y.getSize(),C=m>0?n.rowsSpacing:0;y.setSize({width:u.width,height:b.height}),y.setMargin({marginTop:C}),y.column=d,y.columnData=g,l+=b.height+C,s--}l>c&&(c=l),l=0,g.height=l}var I=u.width*r+(r-1)*n.colsSpacing;return I=I>0?I:i.width,c=c>0?c:i.height,{fixedSize:u,contentSize:{width:I,height:c}}}}};f.eachEntry(ea,function(e){Zi[e]={}});var na=fs(function(){function e(){f.eachEntry(sa.getAllPageInstances(),function(e,t){t.isInitialized&&t.onBeforePageOpen()})}function t(){f.eachEntry(sa.getAllPageInstances(),function(e,t){t.isInitialized&&t.onBeforePageLeave()})}function n(){Er.startRenderingBatch(),f.eachEntry(sa.getAllPageInstances(),function(e,t){t.isInitialized&&t.setToPreview()}),Er.finishRenderingBatch()}function i(){l.getBodyTargets().toggleClass("design-mode",!1).toggleClass("view-mode",!0)}this.Events={SwitchedToViewMode:x.create(),SwitchedToDesignMode:x.create(),ViewModeChanged:x.create(),BeforeViewModeChanged:x.create()},this.IsElementInFullScreen=O.create(!1);var a,r,o,s,l=this,c=!1,u=w.create(function(){return!("notfixed"in f.getQueryStringParams())});this.initialize=function(){a=f("#body-element"),r=f("body"),s=f('<div class="body-element-container"><div class="body-element-wrapper"></div></div>'),o=f(".body-element-wrapper",s),s.insertBefore(a),a.appendTo(o),ss.initialize(),i(),va.Events.BeforePageChanged.bind(function(){va.PageChangingOperation.whenFinished(function(){e(),n()},"PageManager.Events.BeforePageChanged")}),va.Events.PageChanging.bind(function(){t()}),document.addEventListener("fullscreenchange",function(){l.IsElementInFullScreen.setValue(!!document.fullscreenElement)},!1),document.addEventListener("mozfullscreenchange",function(){l.IsElementInFullScreen.setValue(!!document.mozFullscreenElement)},!1),document.addEventListener("webkitfullscreenchange",function(){l.IsElementInFullScreen.setValue(!!document.webkitFullscreenElement)},!1),document.addEventListener("msfullscreenchange",function(){l.IsElementInFullScreen.setValue(!!document.msFullscreenElement)},!1),f("html").on("selectstart",function(e){var t=f(e.target),n=t.parents().andSelf(),i=!n.is(".content-editable, .selectable-text, :input")&&(n.hasClass("webzai-clickable-behaviour")||!n.hasClass("has-text")&&!n.hasClass("has-rich-content"));return!i})},this.isFixedEditingLayout=function(){return u.getValue()},this.getBodyElementWrapper=function(){return o},this.getBodyElementContainer=function(){return s},this.getBodyElement=function(){return a},this.getBodyTargets=function(){return f.unite(r,a)},this.getSiteScrollableElement=function(){return f.getScrollingController().$scrollableForWrite},this.getScrolledElement=function(){return l.getBodyElement()},this.isDesignMode=ds,this.isViewMode=us,this.switchToViewMode=function(){c=!1,l.Events.BeforeViewModeChanged.fireNew(),i(),l.Events.SwitchedToViewMode.fireNew(),l.Events.ViewModeChanged.fireNew()}}),ia=fs(function(){function e(e){t(e),n(e)}function t(e){f.eachEntry(Ai.getInstanceSourceConnections(e),function(e,t){ia.removeConnection(t)})}function n(e){f.eachEntry(Ai.getInstanceTargetConnections(e),function(e,t){ia.removeConnection(t)})}function i(e,t,n,i,a){var r=n.name,o={sourceElementID:e,targetElementID:t,behaviourName:r,options:i};return a?o.id=a:o.id=ka.generateWebsiteId(),Ai.addBehaviourToCollection(o),sa.performOnInstancesCreated([e,t],function(){Ai.addBehaviourToInitializedCollection(o);var t=sa.getInstanceByID(e);t?(x.fireLazyEvent(t,"influenceChanged"),t.performWhenVisible(function(){Er.performOnLayoutUpdate(function(){Ai.activateBehaviour(o)},"connection-activaion"+o.id),t.refreshCursor()})):ee.error("sourceInstance is null")}),o}function a(e,t,n,i){var a=Ai.getInstanceTargetConnections(e),r=[];return a&&f.eachEntry(a,function(e,a){a.targetElementID===t&&a.options.triggerName===i.triggerName&&a.behaviourName===n&&a.options.triggerType===i.triggerType&&r.push(a)}),r}function r(e,t){var n=Ai.getInstanceTargetConnections(e),i=[];return n&&f.eachEntry(n,function(e,n){n.behaviourName===t&&i.push(n)}),i}var o=this;this.getConnection=function(e,t,n,i){var r=a(e,t,n,i);return 1==r.length?r[0]:void 0},this.applyConnections=function(e){e||(e={}),f.each(e,function(e,t){o.connectElement(t.sourceElementID,t.targetElementID,t.behaviourName,t.options,t.id)})},this.applyConnectionsToSource=function(e,t){f.each(e,function(){var e=sa.getInstanceByID(this.targetElementID);t&&e?o.connectElement(t.id,e.id,this.behaviourName,this.options):ee.warn("Bad element ID")})},this.updateConnection=function(e,t,n,a,r){var o=(r?r.priority:void 0,sa.getInstanceByID(n)),s=sa.getInstanceByID(a);r.name?e.connectionData:e.options;r.deactivate(o,s,t),Ai.removeBehaviourFromCollection(e),Ai.removeBehaviourFromInitializedCollection(e),e=i(n,a,r,t,e.id),Z.Events.ConnectionUpdated.fire(this,e)},this.removeConnection=function(e){Z.Events.ConnectionRemoving.fireNew(),de.beginAtomicBatch(!1,"Remove Action"),Ai.removeBehaviourFromCollection(e),Ai.removeBehaviourFromInitializedCollection(e);var t=sa.getInstanceByID(e.sourceElementID),n=sa.getInstanceByID(e.targetElementID);if(!t)return void Z.Events.ConnectionRemoved.fire(this,e);var i=e.behaviourName?Bi[e.behaviourName]:void 0;i?i.priority:void 0,e.connectionData?e.connectionData:e.options;i.deactivate(t,n,e.options),Z.Events.ConnectionRemoved.fire(this,e),x.fireLazyEvent(t,"influenceChanged"),de.endAtomicBatch()},this.removeInstanceConnections=function(t){e(t.id)},this.connectElement=function(e,t,n,o,s){n&&"string"!=typeof n&&(n=n.name);var l=f.extend({isTemplateConenction:!1},o),c=n?Bi[n]:{};if(c){de.beginAtomicBatch(),Z.Events.ConnectionAdding.fireNew();var u,d,g=null,p=!0;if(Bi[n].onlyOnePerSource)d=r(e,n),u=f.grep(d,function(e){return e.options.isTemplateConenction===l.isTemplateConenction}),1===u.length&&(g=u[0],g.targetElementID===t&&f.defaultEqualityComparer(l,g.options)?p=!1:ia.removeConnection(g));else if(d=a(e,t,n,l),u=f.grep(d,function(e){return e.options.isTemplateConenction===l.isTemplateConenction}),1===u.length){g=u[0],p=!1;var h=!1;f.defaultEqualityComparer(l,g.options)||(h=!0),h&&ia.updateConnection(g,l,e,t,c)}if(p){var m=i(e,t,c,l,s);Z.Events.ConnectionAdded.fireNew(m)}de.endAtomicBatch()}},this.getSameConnections=a}),aa=fs(function(){var e,t,n=this,i=!1,a=!1,r=!1,o=1;this.Events={ElementsReordered:x.create()},this.IsEnabled=O.createConditionalPositive(),this.OrderingBatch=Ae.create({batchStartCallback:function(){r=!1,a=!0},beforeFinishingCallback:function(){a=!1,r&&(aa.reassignElementsOrders(),t.activate())}}),this.isReorderDomOnContainerEnabled=function(e){return Ha.Flags.IsInMobileContext.isTrue()||e.isType(ri.page)||e.hasFeature(oi.HasFormData)},this.initialize=function(){t=x.createEventListener([ba.Events.ElementsVisibilityChanged,{name:"order",event:fa.Events.NamedPropertyValueChanged},sa.Events.InstancesRemoved],function(){aa.reassignElementsOrders()}),t.activate()},this.disable=function(e){aa.IsEnabled.setFalse(e)},this.enable=function(e){aa.IsEnabled.setTrue(e)},this.beginReorderingBatch=function(){n.OrderingBatch.start()},this.endReorderingBatch=function(){n.OrderingBatch.finish()},this.setReassignmentRequired=function(e){r=e},this.reassignElementsOrders=function(){function n(t){t.setPropertyValue("order",c),e[c]=t,c++}function s(e,t){n(e);var i=[],a=[],r=[],o=[],s=[];f.eachItem(e.childInstances,function(e,t){t.hasFeature(oi.PageSection)?(f.merge(i,t.childInstances),t.childInstances=[],t.isMainSection()?r.push(t):o.push(t)):t.isType(ri.PageContentElement)?s.push(t):(i.push(t),a.push(t))}),i=i.orderBy(function(){return this.getCalculatedOrder()},f.nullLastComparer),r=r.orderBy(function(){return this.getCalculatedOrder()},f.nullLastComparer),o=o.orderBy(function(){return this.getCalculatedOrder()},f.nullLastComparer),e.childInstances=[];var c=s.concat(r).concat(o);r=f.grep(r,function(e){return e.isInstanceVisible()}),o=f.grep(o,function(e){return e.isInstanceVisible()}),f.eachItem(c,function(e,t){n(t)}),e.childInstances=c,f.eachItem(i,function(e,t){t.parentInstance.childInstances.push(t)});var u,d,g,p={};for(u=0;u<e.childInstances.length;u++)d=e.childInstances[u],d.childIndex.getValue()!==u&&(p[e.id]=e),d.childIndex.setValue(u);var h=r.concat(o);for(u=0;u<h.length;u++){g=h[u];for(var m=0;m<g.childInstances.length;m++)d=g.childInstances[m],d.childIndex.getValue()!==m&&(p[g.id]=g),d.childIndex.setValue(m)}for(u=0;u<i.length;u++)l(i[u],t);for((p[e.id]||t)&&aa.requestReorderingChildElements(e),u=0;u<h.length;u++)g=h[u],(p[g.id]||t)&&aa.requestReorderingChildElements(g);for(u=0;u<i.length;u++)d=i[u],d.zIndex.setValue(u+1)}function l(e){n(e);var t=e.childInstances.orderBy(function(){return{order:this.getCalculatedOrder(),elementType:this.elementType}},function(e,t){return f.nullLastComparer(e.order,t.order)});e.childInstances=t;var i,a=!1;for(i=0;i<t.length;i++){var r=t[i];r.childIndex.getValue()!==i&&(a=!0),r.childIndex.setValue(i),r.zIndex.setValue(i+1)}for(i=0;i<t.length;i++)l(t[i]);a&&aa.requestReorderingChildElements(e)}if(aa.IsEnabled.isTrue()){if(i)return;if(a)return r=!0,void t.deactivate();i=!0,de.beginAtomicBatch(),e=[];var c=0,u=sa.getRootInstance(),d=Ha.Flags.IsInMobileContext.isTrue();u.isType(ri.page)?s(u,d):l(u,d),o=c+c,i=!1,aa.Events.ElementsReordered.fireNew(),de.endAtomicBatch()}},this.requestReorderingChildElements=function(e){return aa.isReorderDomOnContainerEnabled(e)?e.reorderChildElements():void 0},this.bringForward=function(e){de.beginAtomicBatch(),n.beginReorderingBatch(),e=f.asArray(e);for(var t=f.makeSet(e,function(e){return e.id}),i=0;i<e.length;i++){var a,r=e[i],o=r.getPropertyValue("order"),s=ba.getOverlappingInstances(r,r.getSiblings(),2),l=f.grep(s,function(e){return void 0===t[e.id]&&e.getPropertyValue("order")>o});if(l.length>0)a=f.minValue(l,function(e){return e.getPropertyValue("order")}),r.setPropertyValue("order",a+(1-1/(o+1)));else{var c=r.getPropertyValue("order");a=f.minValue(r.parentInstance.childInstances,function(e){var t=e.getPropertyValue("order");return t-c>0?t-c:n.getMaxOrder()}),r.setPropertyValue("order",c+a+.1)}}n.endReorderingBatch(),de.endAtomicBatch()},this.bringToFront=function(e){e=f.asArray(e),de.beginAtomicBatch(),n.beginReorderingBatch(),f.eachItem(e,function(e,t){var n=t.getPropertyValue("order");fa.setPropertiesValues(t,{order:o+n})}),n.endReorderingBatch(),de.endAtomicBatch()},this.sendBackward=function(e){de.beginAtomicBatch(),n.beginReorderingBatch(),e=f.asArray(e);for(var t=f.makeSet(e,function(e){return e.id}),i=0;i<e.length;i++){var a,r=e[i],o=r.getPropertyValue("order"),s=ba.getOverlappingInstances(r,r.getSiblings(),2),l=f.grep(s,function(e){return void 0===t[e.id]&&e.getPropertyValue("order")<o});if(l.length>0)a=f.maxValue(l,function(e){return e.getPropertyValue("order")}),r.setPropertyValue("order",a-1/(o+1));else{var c=r.getPropertyValue("order");a=f.minValue(r.parentInstance.childInstances,function(e){
var t=e.getPropertyValue("order");return t-c>=0?n.getMaxOrder():c-t}),r.setPropertyValue("order",c-a-.1)}}n.endReorderingBatch(),de.endAtomicBatch()},this.sendToBack=function(e){de.beginAtomicBatch(),n.beginReorderingBatch(),f.each(e,function(e,t){var n=t.getPropertyValue("order");fa.setPropertiesValues(t,{order:-1-1/n})}),n.endReorderingBatch(),de.endAtomicBatch()},this.getMaxOrder=function(){return o},this.increaseMaxOrder=function(){o++},this.setInstancesOrders=function(e){de.beginAtomicBatch(),aa.beginReorderingBatch(),f.eachEntry(e,function(e,t){var n=sa.getInstanceByID(e);void 0===n||n.hasFeature(oi.PageSection)||n.setPropertyValue("order",t)}),aa.endReorderingBatch(),de.endAtomicBatch()},this.storeInstancesOrders=function(e,t){f.eachItem(e,function(e,n){f.eachItem(n.getDescendingInstances(),function(e,n){n.isContent()||(t[n.id]=n.getPropertyValue("order"))})})},this.storeHierarchyOrders=function(e,t){e.eachStructure(function(e){t[e.id]=e.elementProperties.order})}}),ra=function(){var e,t={},n=yn.create({getSettingsValue:function(t){return e?e[t]:void 0},setSettingsValue:void 0});return n.getPendingSettings=function(){return t},n.initialize=function(t){e=t},n}(),oa={BackgroundColor:{priority:1,name:"BackgroundColor"},BackgroundImage:{priority:2,name:"BackgroundImage"},BackgroundImageOverlay:{priority:3,name:"BackgroundImageOverlay"},BackgroundOverlay:{priority:4,name:"BackgroundOverlay"}},sa=fs(function(){function e(t,n){var i=t.instance,a=i.childInstances;f.eachItem(a,function(i,a){var r={instance:a,childInstancesHierarchies:[]};n.push(a),e(r,n),t.childInstancesHierarchies.push(r)})}function t(e,n,i,a){e&&!n[e.id]&&(n[e.id]=!0,a&&!a.call(e)||i.push(e),t(e.parentInstance,n,i,a))}function i(e,t,n){n=f.quickExtend({isContent:!1,isVisible:!0,isForTemplateUse:!1,pageId:null},n);var i=n.initialPropertiesValues,a=n.elementID,o=n.isContent,s=n.isVisible,l=n.isForTemplateUse,c=n.pageId,u=n.structureMetaData,g=n.thumbsResolver,m=null===t,v=m||!t.root?null:t.root.id;e=r(e);var y=ti.create(e,{initialPropertiesValues:i,elementID:a,isForTemplateUse:l,structureMetaData:u,thumbsResolver:g});return l?p[y.id]=y:(v=null===v?c:v,null===v&&(v=y.id,d[v]={}),d[v][y.id]=y,h[y.id]=v,y.currentPageId.setValue(v),y.root=d[v][v],y.setIsContent(o),y.isVisible=s&&(!y.hasFeature(oi.Hideable)||y.getPropertyValue("isVisible")===!0)),y.setParent(t),ba.initializeStoredPosition(y),y}function a(e,t,n){n=f.quickExtend({},n);var i=n.droppingArgs;if(e.hasFeature(oi.DesignElement)){var a=f.flattenStructure([e],{childrenGetter:function(e){return e.childInstances}}),r=f.mapToDictionary(a,f.identity,f.defaultIdFunction);c.connectInstancesWithElements(f.parseHtmlAsJQuery(ni.renderElement(e)),r);var o,s,l=a.length;for(s=0;l>s;s++){if(o=a[s],o.hasFeature(oi.HasContent)){var u=o.creationFunction(o);u&&(u.addClass("element-content"),o.$elementContentContainer.append(u),o.$elementContent=u)}o!==e&&(o.$container=o.$element.parent())}for(s=0;l>s;s++){o=a[s];var d=o.parentInstance;t&&o===e&&(o.$container=d.addChildElement(o)),function(e){e.performWhenVisible(function(){ba.isElementVisible(e)&&e.initialize()})}(o),null!==d&&(o.onAttached(),d.onChildElementAdded(o,i),o.onElementAddedToContainer(d)),sa.Events.InstanceCreatedEvent.fireNew(o)}}else null!==t&&(t.onChildElementAdded(e,i),e.onElementAddedToContainer(t)),sa.Events.InstanceCreatedEvent.fireNew(e),e.initialize()}function r(e){return"object"==typeof e?e:ri[e]}function o(e,t){var n=".remember-part",i=e.find(n);e.is(n)&&i.push(e[0]),f.eachItem(i,function(e,n){var i=n.getAttribute("data-element-id"),a=n.getAttribute("data-element-part"),r=t[i].data,o=r[a];o||(o=f([]),r[a]=o),o.push(n)})}function s(e,t,n,i){var a=e.find(i);e.is(i)&&a.push(e[0]),f.eachEntry(t,function(e,t){t[n]=f([])}),f.eachItem(a,function(e,i){var a=i.getAttribute("data-element-id");t[a][n].push(i)})}function l(e,t){t=f.quickExtend({isContent:!1,isVisible:!0,isLoading:!1,isForTemplateUse:!1},t);var o=t.parent,s=t.initialProperties,l=t.isForTemplateUse,c=t.thumbsResolver,u=t.droppingArgs,d=t.dataSourceName,g=t.dataItemID,p=t.isContent,h=t.isVisible,m=t.pageId;o?(o=n(o),o.isForTemplateUse&&o.isForTemplateUse()&&(l=!0)):o=null;for(var v=[{structure:e,parent:o}],y=void 0;v.length>0;){var b,C=v.pop(),I=C.structure,S=C.parent,P=I.id,w=I.elementProperties;b=s?f.quickExtend({},w,s.all,s[P]):w,ba.updateInstanceLastPositionAndSize(I.id,I.metaData);var E=i(r(I.type),S,{initialPropertiesValues:b,elementID:P,isContent:p,isVisible:h,isForTemplateUse:l,pageId:m,structureMetaData:I.metaData,thumbsResolver:c});I.dataFields&&E.setBinding(d,g,I.dataFields),void 0===y&&(y=E);var T=I.childElements;if(T&&T.length>0){var x=T.length;u=void 0;for(var k=x-1;k>=0;k--)v.push({structure:T[k],parent:E})}}return a(y,o,{droppingArgs:u}),y}var c=this;this.Events={InstanceInitialized:x.create(),InstanceCreatedEvent:x.create(),InstancesRemoved:x.create(),InstancesRemoving:x.create(),RemovingStarted:x.create(),ElementAddedToContainer:x.create(),ScrollingStartedEvent:x.create(),ScrollingFinishedEvent:x.create()};this.HierarchyChangedUpdateBatch=Ae.create(),this.PropertiesUnpostponingBatch=Ae.create(),this.Templates={GroupElement:{id:"group-element-template"}};var u,d={},g={},p={},h={};this.performOnInstancesInitialization=function(e,t){e=f.asArray(e);for(var n={},i=0,a=0;a<e.length;a++){var r=e[a],o=c.getInstanceByID(r);o&&o.isInitialized||(n[r]=!0,i++)}if(i>0)var s=sa.Events.InstanceInitialized.bind(function(a){var r=a.id;n[r]&&(delete n[r],i--,0===i&&(sa.Events.InstanceInitialized.unbind(s),t(e)))});else t(e)},this.performOnInstancesCreated=function(e,t){e=f.asArray(e);for(var n={},i=0,a=0;a<e.length;a++){var r=e[a],o=c.getInstanceByID(r);o||(n[r]=!0,i++)}if(i>0)var s=sa.Events.InstanceCreatedEvent.bind(function(a){var r=a.id;n[r]&&(delete n[r],i--,0===i&&(sa.Events.InstanceCreatedEvent.unbind(s),t(e)))});else t(e)},this.isRootInstance=function(e){return c.getInstanceRootID(e)===e.id},this.getInstanceRootID=function(e){return h[e.id]},this.setElementParent=function(e,t){null!==e.parentInstance&&void 0!==e.parentInstance&&(e.parentInstance.childInstances=f.grep(e.parentInstance.childInstances,function(t){return t!=e}));e.parentInstance=t,null!==t&&t.childInstances.push(e),sa.updateInstanceRoot(e,t)},this.updateInstanceRoot=function(e,t){var n=e.root,i=t?t.root:n;if(n!==i&&!e.isForTemplateUse()){var a=e.getDescendingInstances(!0);f.eachItem(a,function(e,t){t.root=i;var a=t.id;if(n){var r=n.id;delete d[r][a]}var o=i.id;h[a]=o,f.objectSet(d,[o,a],t),t.currentPageId.setValue(o)})}},this.removeInstances=function(e,t,n){var i,a;sa.HierarchyChangedUpdateBatch.start(),la.beginLayoutUpdateBatch(),e instanceof Array||(e=[e]);var r=Ca.getHierarchiesRoots(e);r=f.grep(r,function(e){return!e.isInDeleteProcess});var o={};for(sa.Events.RemovingStarted.fireNew(r),ba.VisibilityUpdateBatch.start(),i=0;i<r.length;i++){a=r[i];for(var s,l=a.getDescendingInstances(!0,!0),c=0;c<l.length;c++)s=l[c],s.isInDeleteProcess=!0,s.elementIsSelected&&s.elementIsSelected.setValue(!1),Z.Events.ElementRemoving.fireNew({removedInstance:s,fromUser:n}),s.instanceRemoving.fireNew({fromUser:n});for(c=0;c<l.length;c++){s=l[c],s.hasFeature(oi.HasDataBinding)&&s.hasDataBinding()&&s.deleteDataBinding(),s.onRemove();var u=s.id;o[u]=s}}for(ba.VisibilityUpdateBatch.finish(),sa.Events.InstancesRemoving.fireNew({removedInstancesMap:o,removedRootInstances:r,fromUser:n}),f.eachEntry(o,function(e,t){if(!t.isDeleted){g[e]=!0;var n=h[e];n&&delete d[n][e],delete h[e],t.isDeleted=!0,t.instanceRemoved.fireNew()}}),i=0;i<r.length;i++)a=r[i],a.detach(),a.$element.remove();la.endLayoutUpdateBatch();var p=sa.getRootInstance().id;sa.getInstanceByID(p)&&aa.reassignElementsOrders(),sa.Events.InstancesRemoved.fireNew(o,r),sa.HierarchyChangedUpdateBatch.fireEvent(Z.Events.HieararchyChanged),sa.HierarchyChangedUpdateBatch.finish()},this.detachInstances=function(e){f.eachItem(e,function(e,t){t.detach()})},this.hideInstances=function(e){f.eachItem(e,function(e,t){t.hideElement()})},this.showInstances=function(e){f.eachItem(e,function(e,t){t.showElement()})},this.setLastInstancesResizingSize=function(e){e=f.asArray(e),de.beginAtomicBatch(),f.eachItem(e,function(e,t){t.setLastResizingSize()}),de.endAtomicBatch()},this.getAllPageInstances=function(e){if(!e){var t=sa.getRootInstance();if(!t)return{};e=t.id}return d[e]},this.getInstancesWithHierarchyFromRoots=function(t){var n=[],i=[];return t=f.asArray(t),f.eachItem(t,function(t,a){n.push(a);var r={instance:a,childInstancesHierarchies:[]};e(r,n),i.push(r)}),{rootInstancesHierarchies:i,allInstances:n}},this.getPageInstancesByType=function(e){var t=[],n=c.getAllPageInstances();return f.eachEntry(n,function(n,i){!i.hasFeature(e)&&i.elementType!==e||i.isContent()||t.push(i)}),t},this.getInstancesIds=function(e){var t=[];return e&&f.eachItem(e,function(e,n){t.push(n.id)}),t},this.getInstanceByID=function(e){var t=h[e];return void 0!==t?d[t][e]:p[e]?p[e]:void 0},this.isIdExistInTheCurrentPage=function(e){if(e){var t=sa.getRootInstance().id,n=sa.getInstanceByID(e);if(n)return n.getPageId()===t;var i=e.split(Ke);if(2===i.length){var a=sa.getInstanceByID(i[0]);return a&&a.getPageId()===t}}return!1},this.getParentById=function(e){if(e){var t=sa.getInstanceByID(e);if(t)return t.parentInstance;var n=e.split(Ke);if(2===n.length)return sa.getInstanceByID(n[0])}},this.getItemIdFromDataListInstanceId=function(e){return e.split(Ke)[1]},this.showParentsById=function(e,t,n){t=t?t:!1;var i=sa.getInstanceByID(e);if(i)return i.showParents(t,n);for(var a=sa.getParentById(e),r=a.getParents(!0),o=!1,s=1;s<r.length&&!o;s++)r[s].hasFeature(oi.Navigatable)&&r[s].navigateTo(r[s-1],t,n),ba.isElementVisible(r[s])&&(o=!0);if(a.hasFeature(oi.TemplatePagesList)&&a.getPropertyValue("usePagesLayout")){var l=a.getDataSource(),c=l.fetchDataItem(sa.getItemIdFromDataListInstanceId(e)),u=c.index,d=a.getPropertyValue("dataLayoutOptions").elementsPerPage,g=Math.floor(u/d);a.navigate(g-a.getCurrentItem().getChildIndex(),!1)}},this.getParents=function(e,n,i){for(var a=[],r={},o=0;o<e.length;o++){var s=e[o];n?t(s,r,a,i):t(s.parentInstance,r,a,i)}return a},this.setRootInstance=function(e){u=e},this.getRootInstance=function(){return u?u:va.getCurrentPage()},this.scrollToInstanceInPreview=function(e,t){if(t=f.quickExtend({animationDuration:0,scrollToTop:!0},t),e&&!e.isInstanceVisible()){if(!e.isDisplayed.isFalse())return;e.isDisplayed.setValue(!0,"animation")}Er.performUpdateOnRenderingFinished(function(){var n=f.getScrollingController();e||(e=va.getCurrentPage()),e.showParents();var i,a=t.scrollToTop,r=e.getArea(),o=va.getCurrentPage(),s=o.getArea();if(e.isFixed()){if(e.isType(ri.HeaderElement))i=0;else if(e.isType(ri.FooterElement)){var l=s.bottom;i=l+r.height}}else{i=r.top;var u=o.getHeaderInstance();u&&u.isType(ri.HeaderElement)&&u.isFixed()&&(i-=o.getHeaderInstanceHeight())}if(i=a?i:i+r.height,c.Events.ScrollingStartedEvent.fireNew(e),n.$scrollableForRead.scrollTop()!==i){na.getSiteScrollableElement().bind("mousewheel.scrollToInstanceInPreview",function(){n.$scrollableForWrite.stop(!0,!1),na.getSiteScrollableElement().unbind(".scrollToInstanceInPreview")}),na.getSiteScrollableElement().bind("mousedown.scrollToInstanceInPreview",function(){n.$scrollableForWrite.stop(!0,!1),na.getSiteScrollableElement().unbind(".scrollToInstanceInPreview")}),ba.disableMouseOver();var d=!1;n.$scrollableForWrite.stop(!0,!0).animate({scrollTop:i},{duration:t.animationDuration,always:function(){d||(ba.enableMouseOver(),c.Events.ScrollingFinishedEvent.fireNew(e),d=!0),na.getSiteScrollableElement().unbind(".scrollToInstanceInPreview")}})}else c.Events.ScrollingFinishedEvent.fireNew(e)})},this.addElementToContainerElement=function(e,t,n){de.beginAtomicBatch(!1,"Change Container"),Er.startRenderingBatch(),t=f.makeArray(t),t=t.orderBy(function(e){var t=e.getPropertyValue("order");return null!==t?e.getPropertyValue("order"):1/0});for(var i=0;i<t.length;i++){var a=t[i],r=a.parentInstance;r!==e&&(r&&a.detach(),a.$container=e.addChildElement(a),a.setParent(e),a.onAttached(),e.onChildElementAdded(a,n),a.onElementAddedToContainer(e),Z.Events.ContainerChanged.fireNew(a,e,r))}sa.HierarchyChangedUpdateBatch.fireEvent(Z.Events.HieararchyChanged),Er.finishRenderingBatch(),de.endAtomicBatch()},this.getPageRootInstances=function(){var e=va.getCurrentPage(),t=[];return f.eachItem(e.childInstances,function(e,n){n.hasFeature(oi.PageSection)?f.merge(t,n.childInstances):n.isType(ri.PageContentElement)||t.push(n)}),t},this.adjustHierarchyWithBaseHierarchy=function(e,t,n){var i=e.idsInHierarchy,a=e.connections.targetConnections,r=e.customStatesProperties;return t&&t.connections&&t.connections.targetConnections&&(f.eachEntry(t.connections.targetConnections,function(e,t){if(!a[e]&&(!t.targetElementID||i[t.targetElementID])&&i[t.sourceElementID]){var n=sa.getInstanceByID(t.targetElementID),r=sa.getInstanceByID(t.sourceElementID);(t.targetElementID&&!n||!r||t.targetElementID&&!n.isInitialized||!r.isInitialized)&&(a[e]=t)}}),e.connections.targetConnections=a),i&&t&&t.customStatesProperties&&(f.eachEntry(t.customStatesProperties,function(e,t){var a=sa.getInstanceByID(e);a&&!a.isInstanceDeleted()||f.eachEntry(t,function(t,o){for(var s in o){var l=o[s];for(var c in l){var u=l[c],d=sa.getInstanceByID(c);!i[c]||a&&a.isInitialized&&d&&d.isInitialized||n&&!n(c,e,s)||f.objectSet(r,[e,t,s,c],u)}}})}),e.customStatesProperties=r),e},this.getHierarchyInfo=function(e,t){function n(e){var i=e.instance;if(t.filter(i)){var r=i.getTargetConnections(t.connectionFilter);f.quickExtend(o,r),t.copyAffectedStates&&(s=fa.copyAffectedCustomProperties(i,s,t).copiedCustomStatesProperties),t.copyAffectingStates?s=fa.copyAffectingCustomProperties(i,s,t):t.copyMobileStates&&(s=fa.copyAffectingCustomProperties(i,s,{filterFunction:function(e,t,n){return n===Ha.MobileStateName?!0:void 0}}));var l=i.getInstanceDataForSaving(t);if(a[i.id]=!0,e.childInstancesHierarchies.length>0&&(l.childElements=[],f.eachItem(e.childInstancesHierarchies,function(e,i){var a=i.instance;if(!a.isContent()||t.allowContent){var i=n(i);i&&l.childElements.push(i)}}),i.hasFeature(oi.DataList))){var c=i.getDataSource();c&&f.eachEntry(i.getDataSource().getAllItems(),function(e){f.quickExtend(o,Ai.getInstanceTargetConnections(i.getDataItemInstanceId(e),function(e){return!e.isTemplateConenction&&t.connectionFilter(e)}))})}return l}}t=f.quickExtend({forSaving:!1,saveToServer:!1,saveRootsOffsets:!1,filter:us,allowContent:!1,idsInHierarchy:!1,adjustSize:!1,adjustPosition:!1,clearRootsLayout:!1,copyAffectedStates:!0,copyAffectingStates:!1,copyMobileStates:!0,connectionFilter:us},t),void 0===e.length&&(e=[e]);var i=t.rootInstancesHierarchies;i||(i=sa.getInstancesWithHierarchyFromRoots(e).rootInstancesHierarchies);var a={},r=[],o={},s={};r.length=0;var l=99999999,c=99999999;f.eachItem(i,function(e,i){var a=i.instance,o=n(i);if(o){var s=a.getPosition(!0);s&&(o.offset=s,s.left<c&&(c=s.left),s.top<l&&(l=s.top)),a.parentInstance&&(o.containerId=a.parentInstance.id),t.clearRootsLayout&&(o.elementProperties.fillLayout={fillVertical:!1,fillHorizontal:!1},o.elementProperties.verticalLayout=la.Layout.normal,o.elementProperties.horizontalLayout=la.Layout.normal),r.push(o)}});var u={structures:r,connections:{targetConnections:o,sourceConnections:{}},customStatesProperties:s,pageId:va.getCurrentPageId(),version:ka.CurrentStructureVersion,id:ka.generateWebsiteId(),relativePoint:{left:c,top:l}};return t.idsInHierarchy&&(u.idsInHierarchy=a),u},this.addHierarchyInfo=function(e,t){var n=qa.create(e);return n.addHierarchyAndApply(t)},this.addInstance=function(e,t,n){n=f.quickExtend({isContent:!1,isVisible:!0,isForTemplateUse:!1},n);var o=n.droppingArgs;aa.beginReorderingBatch(),e=r(e);var s=i(e,t,{initialPropertiesValues:n.initialPropertiesValues,elementID:n.elementID,isContent:n.isContent,isVisible:n.isVisible,isForTemplateUse:n.isForTemplateUse});return a(s,t,{droppingArgs:o}),aa.endReorderingBatch(),s},this.connectInstancesWithElements=function(e,t){var n,i;t instanceof ti?(i=t,t={},t[i.id]=i,n=[i]):n=f.getValues(t),o(e,t),s(e,t,"$element",".design-element"),s(e,t,"$elementContentBox",".element-content-box"),s(e,t,"$elementContentContainer",".content-container-type"),s(e,t,"$elementSizeBox",".element-size-target"),s(e,t,"$elementMainBox",".element-main-box"),s(e,t,"$elementBorderBox",".design-element-border-box"),s(e,t,"$paddingBox",".element-padding-box"),s(e,t,"$elementBackgroundLayer",".element-background-layer"),s(e,t,"$elementBorderTarget",".element-border-target"),s(e,t,"$elementContent",".element-content");for(var a=n.length,r=0;a>r;r++){i=n[r];i.$element;i.$elementPositionBox=i.$element,i.$elementBackgroundTarget=i.$elementBackgroundLayer}},this.addInstanceToRoot=function(e){var t=va.getPagesRoot();e.$element.appendTo(t),e.$container=t,ba.visibilityTreeAttach(e),e.parentInstance=null},this.addSection=function(e,t){if(va.getCurrentPage().getPageContentInstance()){t=f.quickExtend({},t),t.initialPropertiesValues=f.quickExtend({},t.initialPropertiesValues),de.beginAtomicBatch(!1,"Add Header"),Z.Events.ElementsAdding.fireNew();var n=sa.addInstance(ri.SectionElement,va.getCurrentPage(),t);return Pa.setAsPageContentElement(n),Z.Events.ElementsAdded.fireNew({instances:[n]}),de.endAtomicBatch(),n}},this.addInstancesHierarchyFromStructure=function(e,t){function n(e,n){n||t.isForTemplateUse||(t.parentsMap&&t.parentsMap[e.id]?t.parent=t.parentsMap[e.id]:t.useContainerId&&(t.parent=sa.getInstanceByID(e.containerId)))}t=f.quickExtend({isLoading:!1,isForTemplateUse:!1,filterFunction:us,afterAddingCallback:cs,useContainerId:!1,withRendering:!0},t);var i=t.withRendering;t.isForTemplateUse||(Z.Events.ElementsAdding.fireNew(),de.beginAtomicBatch(!1,"Add Hierarchy")),i&&Er.startRenderingBatch();var a=[],r=t.parent;return f.eachItem(e,function(e,i){n(i,r),t.filterFunction(i)&&a.push(l(i,t))}),t.afterAddingCallback(),sa.HierarchyChangedUpdateBatch.fireEvent(Z.Events.HieararchyChanged),i&&Er.finishRenderingBatch(),Z.Events.ElementsAdded.fireNew({instances:a}),t.isForTemplateUse||de.endAtomicBatch(),a}}),la=fs(function(){function e(e){e(),pr.executePushing()}function t(){var e,t,a=null,r=!1;g.isEmpty()&&h.isEmpty()&&p.isEmpty()||(r=!0,ba.UpdateBatch.start());var o=va.getCurrentPage();for(a=null;!g.isEmpty();){var s=[],c=[],u=[],d=g.clone();g.clear(),d.each(function(n,i){if(e=i.instance,e.isDeleted)return!0;var a=e.getParent(),r=e.isRelativePositioned(),s=e.getActualPropertyValue("lineWidth"),l=e.getActualPropertyValue("padding"),c=e.getActualPropertyValue("borderWidth"),d=e.hasFeature(oi.HasOutline)&&e.isLineAffectsSize(),g=void 0!==c?c:ka.createValueToObjectValueConverter(["left","top","bottom","right"])(d&&s?s:0),p=e.getPropertyValue("fillLayout"),h=e.currentMargin?e.currentMargin:ka.createValueToObjectValueConverter(["left","top","bottom","right"])(0),m=!e.isType(ri.HeaderElement)&&!e.isType(ri.FooterElement);t=e.getActualPropertyValue("sizeAndPosition");var v=e.getAutoLayoutProperties();p=p?p:{};var y={left:0,right:0,top:0,bottom:0},b={},C=ot.Left;if(a&&a.hasFeature(oi.HasChildrenLayoutAnchor)&&(C=a.getAnchorLatyout()),!ba.isElementVisible(e))return!0;if(Z.IsTabletView){if(e.hasFeature(oi.DataList)&&e.hasFeature(oi.Navigatable)){var I=e.getPropertyValue("dataLayoutOptions");I.cols=2,e.setPropertyValue("dataLayoutOptions",I);var S=e.getPropertyValue("dataLayout");S.name=Zi.PagesGrid.name,e.setPropertyValue("dataLayout",S),e.dataLayoutController.setArrangement(S.name)}if(e.elementType===ri.googleMap||e.elementType===ri.userBox){var P=Ge/je;t.width=t.width*P}}if(e.hasFeature(oi.HasLayout)){if(a===o&&e.isFixed()){y.bottom+=ss.getFooterHeight(),m&&e.hasVerticalLayout()&&(y.top+=o.getHeaderInstanceHeight()),m&&(y.bottom+=o.getFooterInstanceHeight()+as.getPrivacyPolicyActualHeight())}if((p.fillHorizontal||e.hasFeature(oi.HasResponsiveItem)&&!e.isBlock())&&(r?f.quickExtend(b,{right:"",left:"",width:"",marginLeft:h.left,marginRight:h.right}):f.quickExtend(b,{right:h.right+y.right,left:h.left+y.left,width:"",marginLeft:"",marginRight:""}),i.left=h.left),p.fillVertical&&(f.quickExtend(b,{bottom:h.bottom+y.bottom,top:h.top+y.top,height:"",minHeight:"",marginTop:""}),i.top=h.top),e.isType(ri.PageContentElement)&&f.quickExtend(b,{marginBottom:h.bottom,marginTop:h.top}),!p.fillHorizontal){var w=e.getPropertyValue("horizontalLayout"),E=h.left+y.left,T=h.right+y.right;switch(w){case la.Layout.dockLeft:f.quickExtend(b,{left:r?"":E,right:"",marginLeft:r?E:"",marginRight:""});break;case la.Layout.dockRight:f.quickExtend(b,{right:r?"":T,left:"",marginLeft:"",marginRight:r?T:""});break;case la.Layout.centered:f.quickExtend(b,{right:"",left:"50%",marginLeft:"{0}px".format(0-t.width/2+h.left),marginRight:""})}}if(!p.fillVertical){var x=e.getPropertyValue("verticalLayout"),k=h.top+y.top,D=h.bottom+y.bottom;switch(x){case la.Layout.dockTop:f.quickExtend(b,{top:r?"":k,bottom:"",marginTop:r?k:"",marginBottom:""});break;case la.Layout.dockBottom:f.quickExtend(b,{bottom:r?"":D,top:"",marginTop:"",marginBottom:r?D:""});break;case la.Layout.centered:f.quickExtend(b,{bottom:"",top:"50%",marginTop:0-t.height/2+h.top,marginBottom:""})}}}var F=e.getMinSize(),A=e.getMaxSize();if(v.width||(e.hasWidth()?b.width=f.minValue([A.width,f.maxValue([t.width-(l?l.left+l.right:0)-(g?g.left+g.right:0),F.width])]):b.width=""),v.height||(e.hasHeight()?b.minHeight=t.height-(l?l.top+l.bottom:0)-(g?g.top+g.bottom:0):e.isType(ri.Tab)&&e.hasCellWrapper.isTrue()?b.minHeight=e.parentInstance.getPropertyValue("sizeAndPosition").height:b.minHeight=0),b.minHeight=f.minValue([A.height,f.maxValue([b.minHeight,F.height])]),e.elementType===ri.Flash&&(b.height=b.minHeight),!v.left)if(r)b=e.hasCellWrapper.isTrue()?f.quickExtend(b,{marginLeft:"",marginRight:"",left:"",right:""},e.getStaticMargin({vertically:!1})):f.quickExtend(b,{marginLeft:"",marginRight:"",left:"",right:""});else switch(C){case ot.Right:f.quickExtend(b,{right:0-(t.left-y.right),left:"",marginLeft:"",marginRight:""});break;case ot.Centered:f.quickExtend(b,{right:"",left:"50%",marginLeft:t.left,marginRight:""});break;default:var B=A.width,V=t.left+t.width;f.quickExtend(b,{left:V>B?f.max([0,V-B]).value:t.left+y.left,right:"",marginLeft:"",marginRight:""})}if(!v.top)if(r)if(e.hasCellWrapper.isTrue())b=f.quickExtend({top:"",bottom:"",marginTop:"",marginBottom:""},b,e.getStaticMargin({horizontally:!1}));else{var k=Math.max(t.top+y.top,0);f.quickExtend(b,{top:"",bottom:"",marginTop:k,marginBottom:""})}else f.quickExtend(b,{top:t.top+y.top,bottom:"",marginTop:"",marginBottom:""});e.isType(ri.HeaderElement)&&f.quickExtend(b,{top:y.top,bottom:"",left:y.left,right:y.right,marginTop:""}),e.isType(ri.FooterElement)&&f.quickExtend(b,{top:"",bottom:y.bottom,left:y.left,right:y.right,marginTop:""}),b=f.quickExtend({right:"",left:"",marginLeft:"",marginRight:"",top:"",bottom:"",marginTop:"",marginBottom:"",width:"",height:"",minHeight:"",minWidth:""},b),u.push({pendingUpdate:i,instance:e,layoutStyle:b})}),f.eachItem(u,function(e,t){var n=t.pendingUpdate,i=t.layoutStyle,a=t.instance,r=l(a,i),o=a.getAutoLayoutProperties();(r.sizeChanged||o.width||o.height||n.forceLayoutUpdate)&&s.push(a),(r.positionChanged||o.left||o.top||n.forceLayoutUpdate)&&c.push(a)}),r&&(n(s,{updateOffset:!1,updateSize:!0}),n(c,{updateOffset:!0,updateSize:!1})),(s.length>0||c.length>0)&&Vn.PendingWriteOperations.executeOperations()}if(r){var m=!1;h.isEmpty()&&p.isEmpty()||(m=!0),i(),Vn.PendingReadOperations.executeOperations(),ba.UpdateBatch.finish()}}function n(e,t){t=f.quickExtend({updateOffset:!0,updateSize:!0},t);for(var n=t.updateSize,i=t.updateOffset,a=0;a<e.length;a++){var r=e[a];i&&p.setField(r.id,r),n&&h.setField(r.id,r)}}function i(){for(;!p.isEmpty()||!h.isEmpty();)a(),o()}function a(){var e=h.clone();h.clear();var t={},n=[],i=[];e.each(function(e,n){n.isDeleted||(i.push(n),t[e]=!0)});for(var a=new P(!0),o=r(i,t,a);!a.getValue();){n=[],i=[];for(var s in o){var l=o[s];l.isDeleted||(i.push(l),t[s]=!0)}o=r(i,t,a)}}function r(e,t,i){for(var a={},r=ba.updatePosition(e,{updateOffset:!1,updateSize:!0}).changedSizes,o=!0,s=0;s<r.length;s++){for(var l=r[s],c=l.getLayoutAffectedInstances(),u=0;u<c.length;u++){var d=c[u],g=d.id,f=!t[g];f&&(a[g]=d,o=!1),n(d,{updateOffset:!0,updateSize:!1})}l.isRootInstance()&&n([l],{updateOffset:!0,updateSize:!1})}return i.setValue(o),a}function o(){var e=p.clone();p.clear();var t={},n=[],i=[];e.each(function(e,i){i.isDeleted||(n.push(i),t[e]=!0)});for(var a=new P(!0),r=s(n,t,a);!a.getValue();){n=[],i=[];for(var o in r){var l=r[o];l.isDeleted||(n.push(l),t[o]=!0)}r=s(n,t,a)}}function s(e,t,n){for(var i={},a=ba.updatePosition(e,{updateOffset:!0,updateSize:!1}).changedOffsets,r=!0,o=0;o<a.length;o++)for(var s=a[o],l=s.getLayoutAffectedInstances(),c=0;c<l.length;c++){var u=l[c],d=u.id,g=!t[d];if(g){i[d];i[d]=u,r=!1}}return n.setValue(r),i}function l(e,t){for(var n=f.quickExtend({},e.actualSizeAndPosition),i={},a={},r=!1,o=!1,s=c.SizeProperties,l={},u=!1,d=!1,g=0;g<s.length;g++){var p=s[g];t[p]!==n[p]&&(i[p]=t[p],l[p]=!0,d=!0)}for(var h=c.PositionProperties,g=0;g<h.length;g++){var p=h[g];t[p]!==n[p]&&(a[p]=t[p],l[p]=!0,u=!0)}e.actualSizeAndPosition=f.quickExtend(e.actualSizeAndPosition,i,a);var m=""!==t.left&&""!==t.right,v=""!==t.top&&""!==t.bottom,y=e.isRelativePositioned();return m?(l.left||l.right)&&(r=!0):((l.left||l.right||l.marginLeft||y)&&(o=!0),l.width&&(r=!0,""!==t.right&&(o=!0))),v?(l.top||l.bottom)&&(r=!0):((l.top||l.bottom||l.marginTop||y)&&(o=!0),(l.height||l.minHeight)&&(r=!0,""!==t.bottom&&(o=!0))),d&&(ue.informOnWriteOperation(),e.changeElementSize(i)),u&&(ue.informOnWriteOperation(),e.getPositionBox().css(a)),{sizeChanged:r,positionChanged:o}}var c=this;this.SizeProperties=["width","minHeight","height","minWidth"],this.PositionProperties=["left","right","top","bottom","marginLeft","marginTop","marginRight","marginBottom"],c.Events={LayoutBatchFinished:x.create()},c.layoutUpdateBatch=Ae.create({name:"layoutUpdateBatch",beforeFinishingCallback:function(){t()},batchFinishCallback:function(){c.Events.LayoutBatchFinished.fireNew()}}),c.ElementsFramesUpdateBatch=Ae.create({beforeFinishingCallback:function(){pr.recalaculateSiblingsAndParentAreas()}});var u=we.create(),d=we.create();this.LayoutContentBatch=Ae.create({batchStartCallback:function(){u.start(),la.LayoutContentOperationsSet.activate()},beforeFinishingCallback:function(){de.disableOperationsRecording("LayoutContentBatch"),la.layoutUpdateBatch.start(),la.LayoutContentOperationsSet.executeOperations(),la.LayoutContentOperationsSet.deactivate()},batchFinishCallback:function(){d.start(),la.layoutUpdateBatch.finish(),d.finish(),u.finish(),de.enableOperationsRecording("LayoutContentBatch")}}),this.isInLayoutContentUpdate=function(){return u.isActive()},this.isInFinishingLayoutContentUpdate=function(){return d.isActive()},this.LayoutContentOperationsSet=An.create(function(t){if(la.isInLayoutContentUpdate())for(e(t);!la.LayoutContentOperationsSet.isEmpty();)e(t);else Er.performOnLayoutUpdate(function(){return e(t)},"LayoutContentOperationsSet")}),this.Layout={normal:"normal",fill:"fill",fillVertical:"fillVertical",fillHorizontal:"fillHorizontal",centered:"centered",stretched:"stretched",stackedHorizontally:"stackedHorizontally",stackedVertically:"stackedVertically",dockLeft:"dockLeft",dockRight:"dockRight",dockTop:"dockTop",dockBottom:"dockBottom"};var g=k.create(),p=k.create(),h=k.create();c.autoAdjustLayoutToContent=O.createConditionalPositive(),this.requestUpdatePosition=function(e,t){if(e instanceof Array||(e=[e]),n(e,t),!c.layoutUpdateBatch.isActive()){var a=!1;h.isEmpty()&&p.isEmpty()||(a=!0),la.layoutUpdateBatch.start(),ba.UpdateBatch.start(),i(),a&&Vn.PendingReadOperations.executeOperations(),ba.UpdateBatch.finish(),la.layoutUpdateBatch.finish()}},this.refreshElementsLayout=function(e,n){if(e){e instanceof Array||(e=[e]);for(var i=0;i<e.length;i++){var a=e[i];g.setField(a.id,{instance:a,forceLayoutUpdate:n})}c.layoutUpdateBatch.isActive()||t()}},this.beginLayoutUpdateBatch=function(){c.layoutUpdateBatch.start()},this.endLayoutUpdateBatch=function(){c.layoutUpdateBatch.finish()},this.setPageContentWidth=function(e){var t=va.getCurrentPage();if(t){var n=va.getContentWidth(),i=Math.floor((e-n)/2);va.getCoordinator().setPropertyValue("contentWidth",e),la.beginLayoutUpdateBatch(),f.eachItem(t.getChildInstances(),function(e,t){t.setPropertyFieldsValues("sizeAndPosition",{left:t.getPropertyValue("sizeAndPosition").left+i})}),la.endLayoutUpdateBatch()}},this.updateInstanceLayoutStyle=l}),ca=fs(function(){this.clearInstancesLayout=function(e){Er.startRenderingBatch();for(var t=0;t<e.length;t++){var n=e[t];n.hasFeature(oi.HasLayout)&&(n.setPropertyValue("verticalLayout",la.Layout.normal),n.setPropertyValue("horizontalLayout",la.Layout.normal),n.setPropertyValue("fillLayout",{fillVertical:!1,fillHorizontal:!1}))}Er.finishRenderingBatch()},this.rememberLayoutProperties=function(e){for(var t=[],n=0;n<e.length;n++){var i={},a=e[n];i.sizeAndPosition=f.quickExtend({},a.getPropertyValue("sizeAndPosition")),i.margin=f.quickExtend({},a.getPropertyValue("margin")),i.fillLayout=f.quickExtend({},a.getPropertyValue("fillLayout")),i.verticalLayout=a.getPropertyValue("verticalLayout"),i.horizontalLayout=a.getPropertyValue("horizontalLayout"),a.hasFeature(oi.HasArrangement)&&!a.dataLayoutController.shouldRearrangeWhenItemSizeChanged()&&(i.dataItemSize=a.getPropertyValue("dataItemSize")),t.push({instance:a,storedProperties:i})}return{restoreLayoutProperties:function(){fa.UpdateBatch.executeWithActivation(function(){for(var e=0;e<t.length;e++){var n=t[e].instance;n.setPropertiesValues(t[e].storedProperties)}})}}},this.withLayoutPreserving=function(e,t,n){var i=n&&n.noLayoutPreserving?void 0:ca.rememberLayout(e,n);t(),i?i.restoreLayout():void 0},this.restoreLayouts=function(e){e=f.asArray(e),Er.startRenderingBatch(),f.eachItem(e,function(e,t){t.restoreLayout()}),Er.finishRenderingBatch()},this.rememberLayout=function(e,t){t=f.quickExtend({includeDockedElements:!0,rememberLeft:!0,rememberTop:!0,rememberWidth:!0,rememberHeight:!0,relativeTo:!1,finishCallback:cs},t),e=f.asArray(e);for(var n=[],i=t.includeDockedElements,a=t.relativeTo,r=0;r<e.length;r++){var o=e[r],s=o.getPropertyValue("fillLayout"),l=o.getPropertyValue("horizontalLayout"),c=o.getPropertyValue("verticalLayout"),u=s&&s.fillHorizontal,d=s&&s.fillVertical,g=t.rememberLeft&&(i||!u&&l===la.Layout.normal),p=t.rememberTop&&(i||!d&&c===la.Layout.normal),h=t.rememberWidth&&(i||!u),m=t.rememberHeight&&(i||!d);if(g||p||h||m){var v={instance:o,rememberLeft:g,rememberTop:p,rememberWidth:h,rememberHeight:m},y=o.$element;if(g||p){var b=y.offset();if(a){var C=f.evaluateWhenFunction(a);b=f.getRelativeOffset(b,C)}v.offset=b}h&&(v.width=y.width()),m&&(v.height=y.height()),n.push(v)}}return{restoreLayout:function(){Er.startRenderingBatch();var e;for(e=0;e<n.length;e++)n[e].currentOffset=n[e].instance.$element.offset();var i={left:0,top:0};for(a&&(i=f.evaluateWhenFunction(a)),e=0;e<n.length;e++){var r=n[e],o=r.instance,s=r.currentOffset,l={},c={};r.rememberLeft&&(l.left=r.offset.left+i.left),r.rememberTop&&(l.top=r.offset.top+i.top),r.rememberWidth&&(c.width=r.width),r.rememberHeight&&(c.height=r.height),ca.moveToOffset({instance:o,offset:s},l),ca.setInstancesSize(o,c)}t.finishCallback(),Er.finishRenderingBatch()}}},this.setInstanceArea=function(e,t){ca.moveToOffset(e,{left:t.left,top:t.top}),ca.setInstancesSize(e,{width:t.width,height:t.height})},this.translateInstancesArea=function(e,t,n){n=f.quickExtend({verticalAlignment:at.Top,horizontalAlignment:ot.Left,minTop:-(1/0),minLeft:-(1/0),maxBottom:1/0,maxRight:1/0},n),e=f.asArray(e);for(var i=n.verticalAlignment,a=n.horizontalAlignment,r=[],o=0;o<e.length;o++){var s=e[o].$element;i!==at.Top||a!==ot.Left?r.push(s.getArea()):r.push(s.offset())}var l,c,u,d,g={};switch(a!==ot.Left&&(u=f.maxValue(r,function(e){return e.right})),a!==ot.Right&&(l=f.minValue(r,function(e){return e.left})),i!==at.Top&&(d=f.maxValue(r,function(e){return e.bottom})),
i!==at.Bottom&&(c=f.minValue(r,function(e){return e.top})),a){case ot.Left:g.left=l;break;case ot.Right:g.left=u;break;case ot.Centered:g.left=Math.floor((l+u)/2)}switch(i){case at.Top:g.top=c;break;case at.Bottom:g.top=d;break;case at.Centered:g.top=Math.floor((c+d)/2)}var p=t.left-g.left,h=t.top-g.top,m=f.translateArea(f.calculateAreaInfo({left:l,top:c,bottom:d,right:u}),{left:p,top:h}),v=m.top,y=m.bottom,b=m.left,C=m.right;v<n.minTop&&(h+=n.minTop-v),y>n.maxBottom&&(h-=y-n.maxBottom),b<n.minLeft&&(p+=n.minLeft-b),C>n.maxRight&&(p-=C-n.maxRight),ca.moveInstances(e,{left:p,top:h})},this.moveToOffset=function(e,t,n){if(t){n=f.quickExtend({},n);var i=n.transitionData,a=n.callback;e=f.asArray(e);var r,o=[];for(r=0;r<e.length;r++){var s=e[r];if(s instanceof ti)o.push({instance:s,offset:s.$element.offset()});else{var l=s.instance;o.push({instance:l,offset:f.valueOrCalculate(s.offset,function(){return l.$element.offset()})})}}for(f.isFunction(t)&&(t=t(o)),Er.startRenderingBatch(),r=0;r<o.length;r++){var c=o[r],u=c.offset,d={};void 0!==t.top&&(d.top=t.top-u.top),void 0!==t.left&&(d.left=t.left-u.left),ca.moveInstances(c.instance,d,i,a)}Er.finishRenderingBatch()}},this.setInstancesContentSize=function(e,t){if(t){e=f.asArray(e),Er.startRenderingBatch();for(var n=0;n<e.length;n++){var i=e[n],a=Ca.getElementContentMargins(i);ca.setInstancesSize(i,{width:t.width+a.left+a.right,height:t.height+a.top+a.bottom})}Er.finishRenderingBatch()}},this.setInstancesSize=function(e,t,n){if(t){n=f.quickExtend({preserveVerticalMargins:!1,preserveHorizontalMargins:!1},n);var i=n.preserveVerticalMargins,a=n.preserveHorizontalMargins;e=f.asArray(e);var r,o=t.width,s=t.height,l=void 0!==o,c=void 0!==s;if(l||c){var u=[];for(r=0;r<e.length;r++){var d=e[r],g={width:0,height:0};t=d.getSize();var p=d.getPropertyValue("sizeAndPosition"),h=d.getPropertyValue("fillLayout"),m="s",v="e";if(l){var y=d.getPropertyValue("horizontalLayout");h&&h.fillHorizontal?g.width=o-t.width:(g.width=o-p.width,a&&y===la.Layout.dockRight&&(g.width=-g.width,v="w"))}if(c){var b=d.getPropertyValue("verticalLayout");h&&h.fillVertical?g.height=s-t.height:(g.height=s-p.height,i&&b===la.Layout.dockBottom&&(g.height=-g.height,m="n"))}0===g.width&&0===g.height||u.push({instance:d,delta:g,axis:(0!==g.height?m:"")+(0!==g.width?v:"")})}for(Er.startRenderingBatch(),r=0;r<u.length;r++){var C=u[r];ca.resizeInstances(C.instance,C.delta,{axis:C.axis,isSymmetric:!1})}Er.finishRenderingBatch()}}},this.resizeInstances=function(e,t,n){if(n=f.quickExtend({axis:"se",isSymmetric:!1,lockRatio:!1,maxWidth:1/0,resizeCenteredElementsSymmetrically:!1},n),t){t=f.quickExtend({width:0,height:0},t),e=f.asArray(e);var i=n.minWidth,a=n.minHeight,r=n.maxWidth,o=n.isSymmetric,s=n.lockRatio,l=n.resizeCenteredElementsSymmetrically,c=f.resolveAxis(n.axis),u=void 0!==i?0-Math.ceil(i/(o?2:1)):-(1/0),d=void 0!==a?0-Math.ceil(a/(o?2:1)):-(1/0),g=void 0!==r&&r!==1/0?Math.ceil(r/(o?2:1)):1/0,p=f.valueOrDefault(t.width,0),h=f.valueOrDefault(t.height,0);c.north&&(h=0-h),c.west&&(p=0-p),p=Math.min(Math.max(u,p),g),h=Math.max(d,h),s&&c.horizontal&&c.vertical&&(p=h*s),u>p&&(p=u,h=u),p>g&&(p=g,h=g);var m=c.horizontal,v=c.vertical,y=m&&(c.east||o),b=m&&(c.west||o),C=v&&(c.north||o),I=v&&(c.south||o);Er.startRenderingBatch();for(var S=[],P=[],w=0;w<e.length;w++){var E,T,x,k,D,F,A,B,V,L,M=e[w];M instanceof ti?(T=void 0,x=void 0,k=void 0,D=void 0,F=void 0,E=M):(T=M.sizeAndPosition,x=M.margin,k=M.fillLayout,D=M.horizontalLayout,F=M.verticalLayout,E=M.instance),T=f.quickExtend({},void 0!==T?T:ca.getInstnceActaulSizeAndPosition(E));var O=!1,z=!1,_=!1,N=!1,R=!1,H=!1;if(E.hasFeature(oi.HasLayout)&&(k=void 0!==k?k:E.getPropertyValue("fillLayout"),D=void 0!==D?D:E.getPropertyValue("horizontalLayout"),F=void 0!==F?F:E.getPropertyValue("verticalLayout"),V=k&&k.fillHorizontal,L=k&&k.fillVertical,O=L||F===la.Layout.dockTop,z=L||F===la.Layout.dockBottom,_=V||D===la.Layout.dockLeft,N=V||D===la.Layout.dockRight,R=!V&&D===la.Layout.centered,H=!L&&F===la.Layout.centered,A=L||F!==la.Layout.normal,B=V||D!==la.Layout.normal,m&&B||v&&A)){x=f.quickExtend({},void 0!==x?x:E.getPropertyValue("margin"));var q=E.getParentContentSize();if(m&&B){var U=x.right+x.left;U>q.width&&(x.right=x.right/U*q.width,x.left=x.left/U*q.width);var $=x.top+x.bottom;$>q.height&&(x.top=x.top/$*q.height,x.bottom=x.bottom/$*q.height),N&&y&&(x.right-=p,V||(T.width+=p)),_&&b&&(x.left-=p,V||(T.width+=p))}v&&A&&(z&&I&&(x.bottom-=h,L||(T.height+=h)),O&&C&&(x.top-=h,L||(T.height+=h))),E.setPropertyValue("margin",x)}var W=E.getParent(),j=ot.Left;W&&W.hasFeature(oi.HasChildrenLayoutAnchor)&&(j=W.getAnchorLatyout()),b&&!_&&(T.width+=p*(l&&R&&!o?2:1)),y&&!N&&(T.width+=p*(l&&R&&!o?2:1)),_||N||R||(j===ot.Right?y&&P.push({instance:E,sizeAndPosition:T,margin:x,fillLayout:k,horizontalLayout:D,verticalLayout:F,mirrorLeft:!0}):b&&P.push({instance:E,sizeAndPosition:T,margin:x,fillLayout:k,horizontalLayout:D,verticalLayout:F})),C&&!O&&(T.height+=h*(l&&H&&!o?2:1),z||H||S.push({instance:E,sizeAndPosition:T,margin:x,fillLayout:k,horizontalLayout:D,verticalLayout:F})),I&&!z&&(T.height+=h*(l&&H&&!o?2:1)),E.setPropertyValue("sizeAndPosition",T)}var G=0,X=0;if(C&&(X=0-h),(b||y)&&(G=0-p),P.length>0){var Y=ca.moveInstances(P,{left:G});S=f.map(S,function(e){var t=Y[e.instance.id];return t?t:e})}S.length>0&&ca.moveInstances(S,{top:X}),Er.finishRenderingBatch()}},this.getInstnceActaulSizeAndPosition=function(e){var t=e.getPropertyValue("sizeAndPosition");return t},this.getRelativeArea=function(e,t){if(e.isRelativePositioned())return e.getRelativeToParentArea(t);var n=ca.getRelativeTopPosition(e),i=ca.getRelativeLeftPosition(e),a=e.getSize();return{top:n,left:i,bottom:n+a.height,right:i+a.width,center:{top:n+a.height/2,left:i+a.width/2},height:a.height,width:a.width}},this.getRelativeTopPosition=function(e){var t,n=f.quickExtend({},e.getPropertyValue("sizeAndPosition")),i=!1;if(e.hasFeature(oi.HasLayout)){var a=f.quickExtend({},e.getPropertyValue("margin")),r=(e.getPropertyValue("horizontalLayout"),e.getPropertyValue("verticalLayout")),o=e.getPropertyValue("fillLayout");(o.fillVertical||r!==la.Layout.normal)&&(r===la.Layout.dockBottom?(t=e.parentInstance.getContentSize().height-a.bottom-e.getSize().height,i=!0):r===la.Layout.centered?(t=e.parentInstance.getContentSize().height/2+a.top-e.getSize().height/2,i=!0):(o.fillVertical||r===la.Layout.dockTop)&&(t=a.top,i=!0))}return i||(t=n.top),t},this.getRelativeLeftPosition=function(e){var t,n=f.quickExtend({},e.getPropertyValue("sizeAndPosition")),i=!1,a=ot.Left,r=e.parentInstance;if(r&&r.hasFeature(oi.HasChildrenLayoutAnchor)&&(a=r.getAnchorLatyout()),e.hasFeature(oi.HasLayout)){var o=f.quickExtend({},e.getPropertyValue("margin")),s=e.getPropertyValue("horizontalLayout"),l=e.getPropertyValue("fillLayout");(l.fillHorizontal||s!==la.Layout.normal)&&(s===la.Layout.dockRight?(t=e.parentInstance.getContentSize().width-o.right-e.getSize().width,i=!0):s===la.Layout.centered?(t=e.parentInstance.getContentSize().width/2+o.left-e.getSize().width/2,i=!0):(l.fillHorizontal||s===la.Layout.dockLeft)&&(t=o.left,i=!0))}return i||(t=n.left,a===ot.Centered?t+=r.getContentSize().width/2:a===ot.Right&&(t=r.getContentSize().width-t)),t},this.moveInstances=function(e,t,n){e=f.asArray(e),t=f.quickExtend({left:0,top:0},t),Er.startRenderingBatch();for(var i={},a=0;a<e.length;a++){var r=e[a],o=void 0,s=void 0,l=void 0,c=void 0,u=void 0,d=void 0,g=!1;r instanceof ti?o=r:(s=r.sizeAndPosition,l=r.margin,d=r.fillLayout,o=r.instance,c=r.horizontalLayout,u=r.verticalLayout,g=f.valueOrDefault(r.mirrorLeft,!1)),s=f.quickExtend({},void 0!==s?s:o.getPropertyValue("sizeAndPosition"));var p=!0,h=!0;o.hasFeature(oi.HasLayout)&&(l=f.quickExtend({},void 0!==l?l:o.getPropertyValue("margin")),c=void 0!==c?c:o.getPropertyValue("horizontalLayout"),u=void 0!==u?u:o.getPropertyValue("verticalLayout"),d=void 0!==d?d:o.getPropertyValue("fillLayout"),(d.fillHorizontal||c!==la.Layout.normal)&&((d.fillHorizontal||c===la.Layout.dockRight)&&(l.right-=t.left),(d.fillHorizontal||c===la.Layout.dockLeft||c===la.Layout.centered)&&(l.left+=t.left),p=!1),(d.fillVertical||u!==la.Layout.normal)&&((d.fillVertical||u===la.Layout.dockBottom)&&(l.bottom-=t.top),(d.fillVertical||u===la.Layout.dockTop||u===la.Layout.centered)&&(l.top+=t.top),h=!1),h&&p||o.setPropertyValue("margin",l,n)),h&&(s.top+=t.top),p&&(s.left+=t.left*(g?-1:1)),(h||p)&&o.setPropertyValue("sizeAndPosition",s,n),i[o.id]={instance:o,sizeAndPosition:s,margin:l,fillLayout:d,horizontalLayout:c,verticalLayout:u}}return Er.finishRenderingBatch(),i},this.isInsideElementArea=function(e,t,n){n=f.quickExtend({},n);var i=n.areaPadding,a=n.customAreaFunction;if(!e||!t)return!1;var r;r=e.elementType===ri.group?f.grep(e.getDescendingInstances(!1),function(e){return e.elementType!==ri.group}):[e];for(var o=0;o<r.length;o++){var s=r[o];if(ba.isElementVisible(s)){var l;if(l=a?a(s):ba.getElementArea(s,!0),i&&(l=f.expandArea(l,f.evaluateWhenFunction(i))),l&&f.isInsideArea(l,t))return!0}}return!1},this.calculateInstancesSurroundingArea=function(e,t,n){n=n?n:ba.getElementArea,e=f.asArray(e);for(var i=[],a=0;a<e.length;a++)i.push(n(e[a],t));return f.unionAreas(i)},this.getAreaOverlappingInstances=function(e,t,n){if(n=f.quickExtend({},n),!e||!t||0===t.length)return[];var i=n.areaFunction?n.areaFunction:ba.getElementArea,a=e;return n.expandSize&&(a=f.expandArea(a,n.expandSize)),f.grep(t,function(e){if(e.elementType!==ri.page){var t=i(e,n.isAbsolute);return f.areasOverlap(t,a)}return!1})},this.getInstancesInsideArea=function(e,t,n,i,a){return e&&t&&0!==t.length?(a=a?a:ba.getElementArea,n&&(e=f.expandArea(e,n)),f.grep(t,function(t){if(t.elementType!==ri.page){var n=a(t,i);return f.containsArea(e,n)}return!1})):[]},this.sortByLeftPosition=function(e,t){return e=e.sort(function(e,n){var i=t(e),a=t(n);return void 0!==i&&void 0!==a?i.left-a.left!==0?i.left-a.left:i.top-a.top:void 0!==i?1:void 0!==a?-1:void 0})},this.getToppestInstance=function(e,t,n){var i=e[0];n=n?n:ba.getElementOffset;var a=1/0;return f.eachItem(e,function(e,r){var o=n(r,t);o&&o.top<a&&(a=o.top,i=r)}),i},this.getElementsArea=function(e,t,n){n=n?n:ba.getElementArea;var i=f.mapItem(e,function(e){return n(e,t)});return f.unionAreas(i)}}),ua=fs(function(){function e(e,t){var n,i,a={};for(i=0;i<e.length;i++){var r=e[i],o=r.getParent();if(o&&o.elementType===ri.group){var s=o.id;n=a[s],n||(n={instance:o,childInstances:[]},a[s]=n),n.childInstances.push(r)}}for(var l in a){n=a[l];var c=n.instance,u=c.getParent();if(t)for(;u.elementType===ri.group;)u=u.getParent();var d=u.elementType===ri.group;c.startGroupUpdating(),d&&u.startGroupUpdating();var g=[],p=[];n.instance.isFixed()&&(g=f.merge([],n.childInstances)),Pa.isMasterPageRootInstance(n.instance)&&(p=f.merge([],n.childInstances)),ua.reattachInstances(n.childInstances,u),de.disableOperationsRecording("groupUpdating"),f.eachItem(g,function(e,t){t.setPropertyValue("isFixed",!0)}),Pa.setAsMasterPageRoots(p),de.enableOperationsRecording("groupUpdating"),d&&u.finishGroupUpdating(),c.finishGroupUpdating()}}var t=["dataLayoutOptions","dataLayout","fieldsTemplates","sizeAndPosition","skinBinding","itemsStyle","iconReference","itemFields"];f.mapArray(t,us,f.returnValue);this.reattachToCurrentSection=function(e,t){t=f.quickExtend({filterFunction:us,lastSectionIsDefault:!1},t);var n,i=t.filterFunction,a=va.getCurrentPage();if(e=f.grep(e,function(e){return e.isReattchable()&&e.isInstanceVisible()&&!e.isFixed()}),0!==e.length){var r=ca.getElementsArea(e,!0),o=ba.getInstancesInOffset(r),s=f.grep(o,function(e){return e.instance.hasFeature(oi.PageSection)&&e.instance.isInstanceVisible()&&i(e.instance)});return s[0]?n=s[0].instance:f.eachItem(a.childInstances,function(e,t){return t.hasFeature(oi.PageSection)&&t.isInstanceVisible()&&i(t)&&f.areasIntersects(f.expandArea(t.getArea(),{left:1e3,right:1e3}),r)?(n=t,!1):void 0}),n?ua.reattachInstances(e,n):t.lastSectionIsDefault&&(n=wr.getLastMainSection(),ua.reattachInstances(e,n)),n}},this.getSectionByPosition=function(e){var t=ba.getInstancesInOffset(e),n=f.grep(t,function(e){return e.instance.hasFeature(oi.PageSection)&&e.instance.isInstanceVisible()});return n[0]?n[0].instance:void 0},this.reattachInstances=function(e,t,n){e=f.asArray(e),e=f.grep(e,function(e){return e.getParent()!==t}),e.length>0&&ca.withLayoutPreserving(e,function(){f.eachItem(e,function(e,n){t.isType(ri.page)||n.setPropertyValue("isFixed",!1)}),ca.clearInstancesLayout(e),sa.addElementToContainerElement(t,e),la.refreshElementsLayout(e)},n)},this.unwrap=function(e){if(!e.hasParent())return[];var t=e.getChildInstances(),n=[],i=[];if(e.isFixed()&&(n=f.merge([],t)),Pa.isMasterPageRootInstance(e)&&(i=f.merge([],t)),t.length>0){var a=e.getParent();ua.reattachInstances(t,a)}return de.disableOperationsRecording("unwrapChildsUpdating"),f.eachItem(n,function(e,t){t.setPropertyValue("isFixed",!0)}),Pa.setAsMasterPageRoots(i),de.enableOperationsRecording("unwrapChildsUpdating"),sa.removeInstances([e]),t},this.wrapInstances=function(e,t){var n=Ca.getCommonAncestors(e,!1,!1);if(0!==n.length){var i=n[0],a=ts.addTemplateInstance({elementForCreation:{structures:[t]}},i),r=a.instances[0];return ca.setInstanceArea(r,ca.calculateInstancesSurroundingArea(e,!0)),ua.reattachInstances(e,r),r}},this.groupInstances=function(e){if(e&&!(e.length<=1)){de.beginAtomicBatch(!1,"Group");var t=e[0].getParent();if(t){var n=ts.addTemplateInstance({elementForCreation:{structures:[{type:"group",elementProperties:{sizeAndPosition:{left:0,top:0,width:0,height:0},backgroundColor:"transparent",borderWidth:f.convertValueToObject(0,["top","left","bottom","right"]),padding:f.convertValueToObject(0,["top","left","bottom","right"])}}]}},t),i=n.instances[0];return i.disableGroup("grouping"),ua.reattachInstances(e,i),i.enableGroup("grouping"),i.refreshGroupArea(),de.endAtomicBatch(),i}}},this.removeGroup=function(t){de.beginAtomicBatch(!1,"Remove Group"),e(t.getChildInstances(),!0),de.endAtomicBatch()},this.removeFromGroup=function(t){de.beginAtomicBatch(!1,"Remove From Group"),e(t,!0),de.endAtomicBatch()},this.releaseGroup=function(t){e(t.getChildInstances(),!1)},this.changePageChildren=function(e,t,n){n=f.quickExtend({deleteAfterChange:!0,duplicateHierarchy:!0,filterFunction:us,changeInvisibleSection:!1},n);var i=n.deleteAfterChange,a=n.duplicateHierarchy,r=n.filterFunction;n.changeInvisibleSection;de.beginAtomicBatch(!1,"changePage");var o;o=a?Br.duplicateHierarchyInfo(t,{rootsIds:[e.id]}):t;var s=qa.create(o);ka.loadPageHierarchy(o);var l=f.grep(e.getChildInstances(),function(e){return!e.isMasterPageElement.isTrue()&&r(e)}),c=s.addHierarchyFromNode(e.id,{includeNode:!1,includeChildren:!0,parent:e});return s.applyHierarchy(),i?sa.removeInstances(l):sa.detachInstances(l),de.endAtomicBatch(),c}}),da={PC:"PC",Mobile:"Mobile"},fa=fs(function(){function e(e,t,n,i){"string"!=typeof e&&(e=e.name),i=f.valueOrDefault(i,!0);var a=fa.getStateAffectedInstances(t,e),r=D.setAndReturnFieldIfAbsent(e,{});r[t.id]=a,A=!0;for(var o=0;o<a.length;o++){var s=a[o];fa.refreshState(s,n,void 0,i)}x.fireLazyEvent(t,"elementStateActivated",e)}function t(){var e=f.mapDictionary(V,us);return f.extend(e,B)}function n(e,t,n){"string"!=typeof e&&(e=e.name);var i=fa.getStateAffectedInstances(t,e),a=D.getField(e);if(a&&(delete a[t.id],f.isEmptyObject(a)&&D.removeField(e)),void 0!==i)for(var r=0;r<i.length;r++){var o=i[r];fa.refreshState(o,n)}D.isEmpty()&&(A=!1),x.fireLazyEvent(t,"elementStateRemoved",e)}function i(e){f.eachEntry(e.properties,function(e,t){t&&t.customValueMarked&&(t.customValueMarked=void 0,t.customValue=void 0)})}function a(e,t,n,i){e.propertiesRefreshingState=!0,f.eachEntry(e.properties,function(a,r){fa.refreshProperty(e,r,t,n,i)}),e.propertiesRefreshingState=!1}function r(e,t,n,i,a){d(e,t,i,n,a)}function o(e,t,n){return void 0===t?void 0!==n:e.comparer?!e.comparer(n,t):!f.defaultEqualityComparer(n,t)}function s(e,t,n,i,a){var r=e.affectedProperties[n];void 0===r&&(0===f.count(e.affectedProperties)&&e.hasStates.setTrue(),r={},e.affectedProperties[n]=r);var o=r[t.id];void 0===o&&(o=[],r[t.id]=o);o.length>0;f.inArray(i,o)<0&&o.push(i),fa.Events.CustomStatePropertyAddedSimple.fireNew({propertyName:i,stateName:n,affectedInstance:t,affectingInstance:e,sourceInstance:e,value:a}),x.fireLazyEvent(e,"influenceChanged")}function l(e,t,n,i,a){if(t){var r=t.descriptor,o=r.name;if(void 0!==n&&null!==n){var s=r.valueConverter;s&&(n=s(n))}r.isStateProperty()&&void 0!==T?P.setValueInCustomState(e,t,T,n):(P.shouldMarkPropertyAsCustom(e,o)?(t.customValue=n,t.customValueMarked=!0,B[e.id]=!0):(t.customValue=void 0,t.customValueMarked=!1,t.value=n),c(e,t,i,void 0,a))}}function c(e,t,n,i,a){if(t){void 0===n&&(n=!1);var r=t.descriptor,s=r.name,l=y(e,s),c=l.computedStateData;if(l.isCustomState)f.objectSet(V,[e.id,s],!0);else{var g=e.id,p=f.objectGet(V,[g,s]);if(p){var h=V[g];delete h[s],f.isEmptyObject(h)&&delete V[g]}}var m=c.stateValue,v=t.computedValue;if(u(t,m),o(r,v,t.computedValue)){var b=void 0;n&&("object"==typeof n?b=n:i===_.StateAdded?(c.transitionInDuration&&(b={transitionEffect:c.transitionInEffect,transitionDuration:c.transitionInDuration,transitionDirection:c.directionIn,transitionSlideDirection:c.transitionSlideInDirection}),c.transitionOutDuration?t.transitionsStack.push({transitionEffect:c.transitionOutEffect,transitionDuration:c.transitionOutDuration,transitionDirection:c.directionOut,transitionSlideDirection:c.transitionSlideOutDirection}):t.transitionsStack.push(void 0)):i===_.StateRemoved&&(b=t.transitionsStack.pop())),d(e,t,v,b,a)}}}function u(e,t){e.computedValue=t}function d(e,t,n,i,a){var r=t.descriptor,o=r.name;if(h(e)){var s=t.computedValue,l={instance:e,propertyName:o,propertyDescriptor:r,newValue:s,oldValue:n};fa.Events.ComputedValueChanged.fireNew(l)}if(fa.UpdateBatch.isActive()&&"isVisible"!==o&&"isVisibleInMode"!==o&&"name"!==o&&"order"!==o){var c=e.id,u=M.getFieldOrInit(o,{}),d=z.getFieldOrInit(c,{});if(!u[c]){var g={instance:e,property:t,oldValue:n,transitionData:i,callback:a};u[c]=g,"order"!==o&&(d[o]=g)}}else p(e,t,n,i,void 0,a)}function g(){for(fa.PropertiesChangesNotifyingBatch.start();!M.isEmpty()||!z.isEmpty();){var e=z.clone(),t=M.getEntries();M.clear(),z.clear(),t.orderByDesc(function(e){return ui[e.key].priority});for(var n=0;n<t.length;n++){var i=t[n].value;for(var a in i){var r=i[a];r.instance.isDeleted||(r.value=p(r.instance,r.property,r.oldValue,r.transitionData,!1,r.callback))}}e.each(function(e,t){var n=sa.getInstanceByID(e);n&&(h(n)&&x.fireLazyEvent(n,"propertiesChanged",t),n.onPropertiesChanged(t))})}fa.PropertiesChangesNotifyingBatch.finish()}function p(e,t,n,i,a,r){if(e.isDeleted)return null;void 0===a&&(a=!0),L.isFalse()&&(i=void 0);var o=t.computedValue,s=t.descriptor,l=s.name;if(de.beginAtomicBatch(),s.onChange(e,o,i,n,r),de.endAtomicBatch(),e.onPropertyChange(s,o,n,i),m({instance:e,propertyName:l,propertyDescriptor:s,newValue:o,oldValue:n}),a){var c={};c[l]={property:t,oldValue:n,value:o,transitionData:i},h(e)&&x.fireLazyEvent(e,"propertiesChanged",c),"order"!==l&&e.onPropertiesChanged(c)}return o}function h(){return!0}function m(e){var t=e.instance;if(h(t)){var n=e.propertyName;fa.Events.PropertyValueChanged.fireNew(e),fa.Events.NamedPropertyValueChanged.fireNew(n,e);var i=e.newValue,a=e.oldValue;x.fireLazyEvent(t,"propertyChangedEvent",n,i,a),x.fireLazyEvent(t,"propertyChangedEventSimple",n,i,a)}}function v(e,t,n,i){var a,r,o=sa.getInstanceByID(n),s=e.descriptor,l=s.name,c=b(e,i),u=f.objectGet(e.customStatesValues,[t,n]);if(i.hasFeature(oi.DesignElement)&&i.isPropertyBoundToStyleField(l)&&(o===i.getSkinInstanceBox()||o===va.getCoordinator())&&or.shouldReferToSkinValue())u=i.getStyleFieldData(l,{stateName:t,sourceId:n,defaultValue:c,customStateData:u}),u=f.quickExtend({stateValue:u.value},u.animation),r=u;else{if(void 0===u)return;r=f.quickExtend({},u)}return i.shouldReferToStateValue(l,t,n)?(a=s.customStateValueGetter)&&Oi[t]&&(r.stateValue=a(c,r.stateValue,i,t,n)):r.stateValue=c,r}function y(e,t){var n=e.properties[t];if(T&&1===D.count()){var i=v(n,T.type.name,T.source,e);if(i&&!f.isEmptyObject(i))return{isCustomState:!0,computedStateData:i}}else{var a=n.prioritisedCustomStates,r=n.descriptor;if(r.isStateProperty()&&a&&a.length>0)for(var o=0;o<a.length;o++){var s=a[o],l=s.stateName,c=s.affectingInstanceID,u=D.getField(l);if(u&&u[c]&&e.shouldReferToStateValue(t,l,c)){var d=v(n,l,c,e);if(d)return{isCustomState:!0,computedStateData:d}}}}var g=b(n,e);return{isCustomState:!1,computedStateData:{stateValue:g}}}function b(e,t){var n=e.descriptor,i=n.name;if(t.hasFeature(oi.DesignElement)&&t.isPropertyBoundToStyleField(i)&&or.shouldReferToSkinValue()){var a=t.getStyleFieldData(i,{defaultValue:C(e)});return a.value}return n.isBoundToObservableWithValue(e)?e.bindingValue:C(e)}function C(e){return e.customValueMarked?e.customValue:e.value}function I(e,t){return e.properties[t]}function S(e,t){var n=t;if("string"==typeof t?t=e.properties[t]:t&&(n=t.descriptor.name),t){var i=[],a=e.id;e.hasFeature(oi.DesignElement)&&e.isPropertyBoundToStyleField(n)&&(i=e.getPrioritizedStates(n));for(var r in t.customStatesValues){var o=t.customStatesValues[r];for(var s in o)i.push({stateName:r,affectingInstanceID:s})}t.prioritisedCustomStates=i.orderByDesc(function(e){var t=e.affectingInstanceID===a?1:0;e.stateName===Ha.MobileStateName&&"sizeAndPosition"===n&&(t=2),e.styleFieldState&&(t+=.1);var i=1;return Oi[e.stateName]&&(i=Oi[e.stateName].priority),[t,i]},f.arrayDefaultComparer)}}var P=this;P.TransitionsTypes={transitionInEffect:"transitionInEffect",transitionOutEffect:"transitionOutEffect",transitionInDuration:"transitionInDuration",transitionOutDuration:"transitionOutDuration",directionIn:"directionIn",directionOut:"directionOut",transitionSlideInDirection:"transitionSlideInDirection",transitionSlideOutDirection:"transitionSlideOutDirection"},this.Events={PropertyValueChanged:x.create(),NamedPropertyValueChanged:x.createNamedEvents(),ComputedValueChanged:x.create(),CustomStatePropertyRemovedSimple:x.create(),CustomStatePropertyAddedSimple:x.create(),CustomStatePropertyChangedSimple:x.create(),TransitionEffectUpdated:x.create()},this.Flags={PropertiesAreCustom:O.createConditionalNegative()},this.UpdateBatch=Ae.create({beforeFinishingCallback:function(){g()}}),this.PropertiesChangesNotifyingBatch=Ae.create();var w,E,T=void 0,D=k.create(),F=k.create(),A=!1,B={},V={},L=O.createConditionalPositive(),M=k.create(),z=k.create(),_={StateSet:0,StateAdded:1,StateRemoved:2};this.StateChangeTypes=_,this.setCanPerformTransition=function(e,t){L.setValue(e,t)},this.initialize=function(){Z.Events.ElementRemoving.bind(function(e){var t=e.removedInstance;P.removeStateAffected(t),P.removeStateAffecting(t),fa.clearInstanceGlobalState(t)}),w=[ui.backgroundColor.name,ui.borderColor.name,ui.fontColor.name,ui.backgroundOverlay.name,ui.iconColor.name,ui.borderWidth.name,ui.font.name,ui.fontSize.name,ui.roundness.name,ui.borderStyle.name,ui.elementOpacity.name,ui.shadow.name,ui.innerShadow.name,ui.glow.name,ui.innerGlow.name,ui.lineColor.name,ui.mapColor.name,ui.namedTextStyle.name,ui.lineHeight.name,ui.letterSpacing.name,ui.textStyle.name,ui.textDirection.name,ui.textShadow.name,ui.lineWidth.name,ui.lineStyle.name,ui.horizontalAlign.name,ui.predefinedTextStyles.name,ui.svgProperties.name],E=f.mapToDictionary(w,f.returnValue,f.returnValue)},this.getEditableStyleProperties=function(){return w},this.getEditableStylePropertiesMap=function(){return E},this.getCurrentStates=function(e){return F.getField(e.id)},this.addCurrentState=function(e,t){var n=F.getField(e.id);n||(n={},F.setField(e.id,n)),n[t]=!0},this.removeCurrentState=function(e,t){var n=F.getField(e.id);n&&delete n[t]},this.removeStateAffected=function(e,t){t=t?t:us,f.eachEntry(e.properties,function(n,i){for(var a in i.customStatesValues){var r=i.customStatesValues[a];f.eachEntry(r,function(i){var r=sa.getInstanceByID(i);r&&t(r,e,a,n)&&P.removeStateAffectedProperty(r,e,a,n)})}})},this.removeStateAffecting=function(e){var t=!1;for(var n in e.affectedProperties){var i=e.affectedProperties[n];f.eachEntry(i,function(i,a){for(var r=a.length,o=0;r>o;o++){var s=sa.getInstanceByID(i);s&&(t=!0,P.removeStateAffectedProperty(e,s,n,a[0]))}})}},this.addGlobalState=function(t,n,i,a){void 0===i&&(i=_.StateAdded),a=f.valueOrDefault(a,!0),a||fa.setCanPerformTransition(!1,"addGlobalState"),e(t,n,i,a),a||fa.setCanPerformTransition(!0,"addGlobalState")},this.setDefaultGlobalState=function(e){var n=t();D.clear(),F.clear(),A=!1,V={},B={},fa.setCanPerformTransition(!1,"setDefaultGlobalState"),f.eachEntry(n,function(t){var n=sa.getInstanceByID(t);!n||e&&n.isForTemplateUse()||fa.refreshState(n,_.StateSet,!0)}),fa.setCanPerformTransition(!0,"setDefaultGlobalState")},this.setCustomGlobalState=function(e,n){"string"!=typeof e&&(e=e.name);var i=fa.getStateAffectedInstances(n,e),a=t(),r=f.mapArray(i,us,f.defaultIdFunction);f.extend(a,r),D.clear(),F.clear(),V={},B={};var o=D.setAndReturnFieldIfAbsent(e,{});o[n.id]=i,A=!0,fa.setCanPerformTransition(!1,"setCustomGlobalState"),f.eachEntry(a,function(e){var t=sa.getInstanceByID(e);t&&fa.refreshState(t,_.StateSet,!0)}),fa.setCanPerformTransition(!0,"setCustomGlobalState")},this.removeGlobalState=function(e,t,i,a){a=f.valueOrDefault(a,!0),a||fa.setCanPerformTransition(!1,"removeGlobalState"),n(e,t,_.StateRemoved),a||fa.setCanPerformTransition(!0,"removeGlobalState")},this.clearInstanceGlobalState=function(e){F.removeField(e.id),D.each(function(t){n(t,e,_.StateSet)})},this.clearMouseOverState=function(){f.eachItem([Oi.MouseOverState.name,Oi.MouseOverStateArea.name],function(e,t){var i=D.getField(t);i&&f.eachEntry(i,function(e){var i=F.getField(e);i&&delete i[t],n(t,sa.getInstanceByID(e),_.StateRemoved)})})},this.inStateEditingMode=function(){return void 0!==T},this.getEditedState=function(){return T},this.startStateEditingMode=function(e){T={type:e.StateMode},e.sourceInstance&&(T.source=e.sourceInstance.id)},this.endStateEditingMode=function(){T=void 0},this.createProperties=function(e,t,n){for(var i={},a=0;a<e.length;a++){var r,o=e[a],s=o.name,l=!0;if(t&&(r=t[s],(void 0!==r||s in t)&&(l=!1)),l&&(r=n[s]()),void 0!==r&&null!==r){var c=o.valueConverter;c&&(r=c(r))}i[s]={value:r,customStatesValues:{},descriptor:o,computedValue:r,transitionsStack:[]}}return i},this.getDefaultValues=function(e){var t={};return f.eachEntry(e.properties,function(e,n){n.defaultValue&&(t[e]=n.defaultValue())}),e.defaultProperties&&f.eachEntry(e.defaultProperties,function(e,n){t[e]=n()}),t},this.refreshState=function(e,t,n,r){if(e)if(ba.isElementVisible(e)||e===va.getCoordinator()||e.getPageId()===va.getCurrentPageId()||e.isForTemplateUse())e.visibilityChangedEvent.hasNameBinding("refreshState")&&e.data.propertiesManagerRefreshStateVisibilityChangedEvent.unbind(),a(e,t,n,r);else if(f.eachEntry(e.properties,function(i,a){a.descriptor.shouldRefreshIfNotVisible&&fa.refreshProperty(e,a,t,n,r)}),n&&i(e),!e.visibilityChangedEvent.hasNameBinding("refreshState")){var o=e.visibilityChangedEvent.bind(function(){o.unbind(),n=n?n:!1,a(e,t,n,r)},"refreshState");e.data.propertiesManagerRefreshStateVisibilityChangedEvent=o}},this.refreshProperty=function(e,t,n,i){if(t){var a=i&&t.customValueMarked;(t.descriptor.isStateProperty()||a)&&(a&&(t.customValueMarked=void 0,t.customValue=void 0),c(e,t,!0,n))}},this.getStateTransitionEffect=function(e,t,n){if(T){var i=I(e,t);return f.objectGet(i.customStatesValues,[T.type.name,T.source,n])}},this.setStateTransitionEffect=function(e,t,n,i,a){var r=a?a:T;if(r){var o=I(e,t),s=f.objectGet(o.customStatesValues,[r.type.name,r.source,n]);f.objectSet(o.customStatesValues,[r.type.name,r.source,n],i),fa.Events.TransitionEffectUpdated.fireNew({instance:e,propertyName:t,typeName:r.type.name,sourceId:r.source,transitionName:n,value:i,oldValue:s})}},this.getValue=function(e,t){if(e.isCalculatedProperty(t))return e.getCalculatedPropertyValue(t);var n=I(e,t);if(void 0!==n)return n.computedValue},this.resetCustomStateAffecting=function(e,t){var n=fa.getAffectedInstancesByState(e,t.name);f.eachEntry(n,function(n,i){fa.resetCustomState(i,{type:t,source:e.id})})},this.resetCustomState=function(e,t,n){if(void 0===t&&(t=T),n||(n=us),void 0!==t)for(var i in e.properties){var a=e.properties[i];a.descriptor.isStateProperty()&&n(i)&&P.setValueInCustomState(e,a,t,void 0)}},this.resetCustomStateProperty=function(e,t,n){if(void 0===t&&(t=T),void 0!==t){var i=e.properties[n];i&&i.descriptor.isStateProperty()&&P.setValueInCustomState(e,i,t,void 0)}},this.invalidateProperty=function(e,t,n,i,a){r(e,e.properties[t],n,i,a)},this.invalidateElement=function(e,t){t||Er.startRenderingBatch(),f.eachEntry(e.properties,function(t,n){r(e,n)}),t||Er.finishRenderingBatch()},this.resetInstanceStyleProperties=function(e){var t=(e.getDescendingInstances(!0),fa.getEditableStyleProperties());la.beginLayoutUpdateBatch(),f.eachItem(t,function(t,n){e.properties[n]&&r(e,e.properties[n])}),la.endLayoutUpdateBatch()},this.recomputePropertyValue=function(e,t,n){c(e,e.properties[t],n)},this.copyAffectingCustomProperties=function(e,t,n){n=f.extend({filterFunction:us},n);var i=f.valueOrDefault(t,{});for(var a in e.properties){var r=e.properties[a],o=r.customStatesValues;if(o)for(var s in o){var l=o[s];for(var c in l){var u=f.deepCloneObject(l[c]);u&&n.filterFunction(e.id,c,s,a,u)&&(ui[a].preSaveProcessing&&(u.stateValue=ui[a].preSaveProcessing(u.stateValue,e)),f.objectSet(i,[e.id,a,s,c],u))}}}return i},this.copyAffectedCustomProperties=function(e,t,n){n=f.extend({},n);var i=f.valueOrDefault(t,{}),a={};for(var r in e.affectedProperties){var o=e.affectedProperties[r];for(var s in o){a[s]||(a[s]={}),a[s][r]={};var l=sa.getInstanceByID(s);if(l){void 0===i[s]&&(i[s]={});for(var c=o[s],u=0;u<c.length;u++){var d=c[u],g=l.properties[d],p=f.objectGet(g.customStatesValues,[r,e.id]);p&&(void 0===n.propertiesFilter||n.propertiesFilter(g,p.stateValue))&&(p=f.deepCloneObject(p),void 0===i[s][d]&&(i[s][d]={}),void 0===i[s][d][r]&&(i[s][d][r]={}),ui[d].preSaveProcessing&&(p.stateValue=ui[d].preSaveProcessing(p.stateValue,l)),i[s][d][r][e.id]=p,a[s][r][d]=d)}}else delete e.affectedProperties[r][s]}}return{copiedCustomStatesProperties:i,statesToPropertiesCopied:a}},this.getPropertiesValuesInState=function(e,t){var n={};return f.eachEntry(e,function(e,i){void 0!==t&&i.customStatesValues[t]?n[e]=f.extend({},i.customStatesValues[t]):n[e]=i.value}),n},this.getStyleProperties=function(e){return P.getProperties(e,function(e){return e.descriptor.isStyleProperty})},this.getStateProperties=function(e){return P.getProperties(e,function(e){return e.descriptor.isStateProperty()})},this.getProperties=function(e,t){if(void 0===t)return e.properties;var n={};return f.eachEntry(e.properties,function(e,i){t(i)&&(n[e]=i)}),n},this.clonePropertiesValues=function(e,t){t=f.quickExtend({forSaving:!1},t);var n={};return f.eachEntry(e.properties,function(i,a){if(void 0!==t.propertiesFilter&&!t.propertiesFilter(a))return!0;var r=a.value;f.isPlainObject(r)?n[i]=f.deepCloneObject(r):f.isArray(r)?n[i]=r.clone():n[i]=r;var o=a.descriptor.preSaveProcessing;o&&(n[i]=o(n[i],e))}),n},this.updatePropertiesValues=function(e,t){var n={};for(var i in t){var a=e.getPropertyValue(i);o(ui[i],a,t[i])&&(f.isPlainObject(t[i])?n[i]=f.extend({},a,t[i]):n[i]=t[i])}P.setPropertiesValues(e,n)},this.notifyCalculatedPropertyChange=function(e,t){e.isCalculatedProperty(t)&&m({instance:e,propertyName:t,propertyDescriptor:void 0,newValue:e.getPropertyValue(t),oldValue:void 0,isCalculated:!0})},this.setPropertiesValues=function(e,t,n,i){var a=e.properties,r=!1;f.hasMoreThanOneKey(t)&&(r=!0,la.beginLayoutUpdateBatch(),fa.UpdateBatch.start());for(var o in t){var s=t[o],c=e.isCalculatedProperty(o);c?(e.setCalculatedPropertyValue(o,s,n,i),m({instance:e,propertyName:o,propertyDescriptor:void 0,newValue:s,oldValue:void 0,isCalculated:!0})):l(e,a[o],s,n,i)}r&&(fa.UpdateBatch.finish(),la.endLayoutUpdateBatch())},this.propertyValueHasChanged=o,this.propertyValueHasChanged=function(e,t,n){return o(ui[e],t,n);
},this.addCustomStatesPropertiesValues=function(e){for(var t in e)sa.performOnInstancesCreated(t,function(t){var n=t[0],i=e[n],a=sa.getInstanceByID(n);f.eachEntry(i,function(e,t){if(a.properties[e]){a.properties[e].customStatesValues=f.extend(a.properties[e].customStatesValues,f.deepCloneObject(t));var n=a.properties[e];n.descriptor.isStateProperty()&&(S(a,n),c(a,n),f.eachEntry(t,function(t,n){f.eachEntry(n,function(n){var i=D.getField(t);if(i){var r=i[n];r&&r.push(a)}sa.performOnInstancesInitialization(n,function(n){var i=sa.getInstanceByID(n);i&&(s(i,a,t,e),i.refreshCursor())})})}))}})})},this.isStyleAffecting=function(e,t){var n=!1;if(void 0!==t)"string"!=typeof t&&(t=t.name),n=!f.isEmptyObject(e.affectedProperties[t]);else for(var i in e.affectedProperties)e.affectedProperties.hasOwnProperty(i)&&(f.isEmptyObject(e.affectedProperties[i])||(n=!0));if(!n&&e.isType(ri.skinHierarchyBox)){var a=e.getStyleStateAffectedInstances(t);n=a.length>0}return n},this.isStyleAffectingInPage=function(e,t,n){var i=!1;if(void 0!==n)"string"!=typeof n&&(n=n.name),e.affectedProperties[n]&&f.eachEntry(e.affectedProperties[n],function(e){var n=sa.getInstanceByID(e);return n&&n.getPageId()===t.id?(i=!0,!1):void 0});else for(var a in e.affectedProperties)if(e.affectedProperties.hasOwnProperty(a)&&(f.isEmptyObject(e.affectedProperties[a])||f.eachEntry(e.affectedProperties[a],function(e){var n=sa.getInstanceByID(e);return n&&n.getPageId()===t.id?(i=!0,!1):void 0}),i))break;return i},this.getAffectedPropertiesDictionary=function(e,t,n){"string"!=typeof n&&(n=n.name);var i={},a=t.affectedProperties[n];if(void 0!==a){var r=a[e.id];if(void 0!==r)for(var o=0;o<r.length;o++)i[e.properties[r[o]].descriptor.name]=e.properties[r[o]].descriptor}return i},this.getStateAffectedInstances=function(e,t){var n=[],i=e.affectedProperties[t];if(void 0!==i)for(var a in i){var r=sa.getInstanceByID(a);r&&n.push(r)}if(e.isType(ri.skinHierarchyBox)){var o=e.getStyleStateAffectedInstances(t);n=o.concat(n)}return n},this.isAffectedInOtherStates=function(e,t,n){var i=!1;if(n.isComplex)return!0;for(var a in e.affectedProperties){var r=e.affectedProperties[a];if(a!==n.name&&r&&r[t.id])return i=!0,!1}return i},this.isAffectedInState=function(e,t,n){var i=e.affectedProperties[n];return!(!i||!i[t.id])},this.getAffectedInstancesByState=function(e,t){var n={},i=e.affectedProperties[t];for(var a in i)f.eachItem(i[a],function(e,t){if(t){var i=sa.getInstanceByID(a);i&&!n[a]&&(n[a]=i)}});return n},this.removeStateAffectedProperty=function(e,t,n,i){var a=e.affectedProperties[n];if(void 0!==a){var r=a[t.id];if(void 0!==r){var o=t.properties[i],s=t.properties[i].customStatesValues;if(f.isEmptyObject(s)||!s[n])return;var l=(s[n][e.id],v(o,n,e.id,t));l&&(l=l.stateValue),s[n]&&s[n][e.id]&&(f.eachEntry(s[n][e.id],function(a,r){var o=fa.TransitionsTypes[a];o&&fa.Events.TransitionEffectUpdated.fireNew({instance:t,propertyName:i,typeName:n,sourceId:e.id,transitionName:o,value:void 0,oldValue:r})}),delete s[n][e.id]),f.isEmptyObject(s[n])&&delete s[n],r.removeItem(i),0==r.length&&(delete a[t.id],f.isEmptyObject(a)&&delete e.affectedProperties[n],0===f.count(e.affectedProperties)&&e.hasStates.setFalse()),fa.Events.CustomStatePropertyRemovedSimple.fireNew({affectedInstance:t,affectingInstance:e,propertyName:i,oldValue:l,stateName:n,sourceInstance:e}),x.fireLazyEvent(e,"influenceChanged")}}},this.setValueInCustomState=function(e,t,n,i){if(n&&n.type&&t){var a=sa.getInstanceByID(n.source);if(a){"string"==typeof t&&(t=I(e,t));var r=t.descriptor,o=r.name,l=!1,u=v(t,n.type.name,n.source,e);if((void 0===u&&void 0!==i||void 0!==u&&void 0===i)&&(l=!0),void 0!==i&&(void 0===t.customStatesValues[n.type.name]&&(t.customStatesValues[n.type.name]={}),void 0===t.customStatesValues[n.type.name][n.source]&&(t.customStatesValues[n.type.name][n.source]={})),void 0!==i){var d=r.customStateValueSetter;if(d){var g=b(t,e);i=d(g,i,e,n.type.name)}}var p=f.objectGet(t,["customStatesValues",n.type.name,n.source]);void 0!==i?void 0!==p?f.extend(t.customStatesValues[n.type.name][n.source],{stateValue:i}):f.objectSet(t,["customStatesValues",n.type.name,n.source],{stateValue:i}):void 0!==u&&void 0!==p&&f.eachEntry(p,function(t,i){var r=fa.TransitionsTypes[t];r&&fa.Events.TransitionEffectUpdated.fireNew({instance:e,propertyName:o,typeName:n.type.name,sourceId:a.id,transitionName:r,value:void 0,oldValue:i})});var h=u?u.stateValue:void 0;l?void 0===i?P.removeStateAffectedProperty(a,e,n.type.name,o,h):s(a,e,n.type.name,o,i):fa.Events.CustomStatePropertyChangedSimple.fireNew({affectedInstance:e,affectingInstance:a,propertyName:o,oldStateValue:h,stateName:n.type.name}),S(e,t),c(e,t)}}},this.refreshPrioritisedCustomStates=S,this.updateComputedValue=function(e,t,n,i,a,r){var s=t.computedValue;u(t,n),(a||o(t.descriptor,s,t.computedValue))&&d(e,t,s,i,r)},this.shouldMarkPropertyAsCustom=function(e,t){return!e.isContent()&&!0&&!ui[t].isNotForCustomProperty},this.getPropertiesValues=function(e,t){var n={};return f.eachEntry(e.properties,function(e,i){(void 0===t||t(i))&&(n[e]=i.computedValue)}),n},this.getPropertiesNormalValues=function(e,t){var n={};return f.eachEntry(e.properties,function(e,i){(void 0===t||t(i))&&(n[e]=i.value)}),n},this.rememberProperty=function(e,t){var n=e.getPropertyValue(t);return{restore:function(){e.setPropertyValue(t,n)}}},this.getPropertyValueInCustomState=v}),pa=fs(function(){function e(e){for(var t=[{base:"A",letters:/[\u0041\u24B6\uFF21\u00C0\u00C1\u00C2\u1EA6\u1EA4\u1EAA\u1EA8\u00C3\u0100\u0102\u1EB0\u1EAE\u1EB4\u1EB2\u0226\u01E0\u00C4\u01DE\u1EA2\u00C5\u01FA\u01CD\u0200\u0202\u1EA0\u1EAC\u1EB6\u1E00\u0104\u023A\u2C6F]/g},{base:"AA",letters:/[\uA732]/g},{base:"AE",letters:/[\u00C6\u01FC\u01E2]/g},{base:"AO",letters:/[\uA734]/g},{base:"AU",letters:/[\uA736]/g},{base:"AV",letters:/[\uA738\uA73A]/g},{base:"AY",letters:/[\uA73C]/g},{base:"B",letters:/[\u0042\u24B7\uFF22\u1E02\u1E04\u1E06\u0243\u0182\u0181]/g},{base:"C",letters:/[\u0043\u24B8\uFF23\u0106\u0108\u010A\u010C\u00C7\u1E08\u0187\u023B\uA73E]/g},{base:"D",letters:/[\u0044\u24B9\uFF24\u1E0A\u010E\u1E0C\u1E10\u1E12\u1E0E\u0110\u018B\u018A\u0189\uA779]/g},{base:"DZ",letters:/[\u01F1\u01C4]/g},{base:"Dz",letters:/[\u01F2\u01C5]/g},{base:"E",letters:/[\u0045\u24BA\uFF25\u00C8\u00C9\u00CA\u1EC0\u1EBE\u1EC4\u1EC2\u1EBC\u0112\u1E14\u1E16\u0114\u0116\u00CB\u1EBA\u011A\u0204\u0206\u1EB8\u1EC6\u0228\u1E1C\u0118\u1E18\u1E1A\u0190\u018E]/g},{base:"F",letters:/[\u0046\u24BB\uFF26\u1E1E\u0191\uA77B]/g},{base:"G",letters:/[\u0047\u24BC\uFF27\u01F4\u011C\u1E20\u011E\u0120\u01E6\u0122\u01E4\u0193\uA7A0\uA77D\uA77E]/g},{base:"H",letters:/[\u0048\u24BD\uFF28\u0124\u1E22\u1E26\u021E\u1E24\u1E28\u1E2A\u0126\u2C67\u2C75\uA78D]/g},{base:"I",letters:/[\u0049\u24BE\uFF29\u00CC\u00CD\u00CE\u0128\u012A\u012C\u0130\u00CF\u1E2E\u1EC8\u01CF\u0208\u020A\u1ECA\u012E\u1E2C\u0197]/g},{base:"J",letters:/[\u004A\u24BF\uFF2A\u0134\u0248]/g},{base:"K",letters:/[\u004B\u24C0\uFF2B\u1E30\u01E8\u1E32\u0136\u1E34\u0198\u2C69\uA740\uA742\uA744\uA7A2]/g},{base:"L",letters:/[\u004C\u24C1\uFF2C\u013F\u0139\u013D\u1E36\u1E38\u013B\u1E3C\u1E3A\u0141\u023D\u2C62\u2C60\uA748\uA746\uA780]/g},{base:"LJ",letters:/[\u01C7]/g},{base:"Lj",letters:/[\u01C8]/g},{base:"M",letters:/[\u004D\u24C2\uFF2D\u1E3E\u1E40\u1E42\u2C6E\u019C]/g},{base:"N",letters:/[\u004E\u24C3\uFF2E\u01F8\u0143\u00D1\u1E44\u0147\u1E46\u0145\u1E4A\u1E48\u0220\u019D\uA790\uA7A4]/g},{base:"NJ",letters:/[\u01CA]/g},{base:"Nj",letters:/[\u01CB]/g},{base:"O",letters:/[\u004F\u24C4\uFF2F\u00D2\u00D3\u00D4\u1ED2\u1ED0\u1ED6\u1ED4\u00D5\u1E4C\u022C\u1E4E\u014C\u1E50\u1E52\u014E\u022E\u0230\u00D6\u022A\u1ECE\u0150\u01D1\u020C\u020E\u01A0\u1EDC\u1EDA\u1EE0\u1EDE\u1EE2\u1ECC\u1ED8\u01EA\u01EC\u00D8\u01FE\u0186\u019F\uA74A\uA74C]/g},{base:"OI",letters:/[\u01A2]/g},{base:"OO",letters:/[\uA74E]/g},{base:"OU",letters:/[\u0222]/g},{base:"P",letters:/[\u0050\u24C5\uFF30\u1E54\u1E56\u01A4\u2C63\uA750\uA752\uA754]/g},{base:"Q",letters:/[\u0051\u24C6\uFF31\uA756\uA758\u024A]/g},{base:"R",letters:/[\u0052\u24C7\uFF32\u0154\u1E58\u0158\u0210\u0212\u1E5A\u1E5C\u0156\u1E5E\u024C\u2C64\uA75A\uA7A6\uA782]/g},{base:"S",letters:/[\u0053\u24C8\uFF33\u1E9E\u015A\u1E64\u015C\u1E60\u0160\u1E66\u1E62\u1E68\u0218\u015E\u2C7E\uA7A8\uA784]/g},{base:"T",letters:/[\u0054\u24C9\uFF34\u1E6A\u0164\u1E6C\u021A\u0162\u1E70\u1E6E\u0166\u01AC\u01AE\u023E\uA786]/g},{base:"TZ",letters:/[\uA728]/g},{base:"U",letters:/[\u0055\u24CA\uFF35\u00D9\u00DA\u00DB\u0168\u1E78\u016A\u1E7A\u016C\u00DC\u01DB\u01D7\u01D5\u01D9\u1EE6\u016E\u0170\u01D3\u0214\u0216\u01AF\u1EEA\u1EE8\u1EEE\u1EEC\u1EF0\u1EE4\u1E72\u0172\u1E76\u1E74\u0244]/g},{base:"V",letters:/[\u0056\u24CB\uFF36\u1E7C\u1E7E\u01B2\uA75E\u0245]/g},{base:"VY",letters:/[\uA760]/g},{base:"W",letters:/[\u0057\u24CC\uFF37\u1E80\u1E82\u0174\u1E86\u1E84\u1E88\u2C72]/g},{base:"X",letters:/[\u0058\u24CD\uFF38\u1E8A\u1E8C]/g},{base:"Y",letters:/[\u0059\u24CE\uFF39\u1EF2\u00DD\u0176\u1EF8\u0232\u1E8E\u0178\u1EF6\u1EF4\u01B3\u024E\u1EFE]/g},{base:"Z",letters:/[\u005A\u24CF\uFF3A\u0179\u1E90\u017B\u017D\u1E92\u1E94\u01B5\u0224\u2C7F\u2C6B\uA762]/g},{base:"a",letters:/[\u0061\u24D0\uFF41\u1E9A\u00E0\u00E1\u00E2\u1EA7\u1EA5\u1EAB\u1EA9\u00E3\u0101\u0103\u1EB1\u1EAF\u1EB5\u1EB3\u0227\u01E1\u00E4\u01DF\u1EA3\u00E5\u01FB\u01CE\u0201\u0203\u1EA1\u1EAD\u1EB7\u1E01\u0105\u2C65\u0250]/g},{base:"aa",letters:/[\uA733]/g},{base:"ae",letters:/[\u00E6\u01FD\u01E3]/g},{base:"ao",letters:/[\uA735]/g},{base:"au",letters:/[\uA737]/g},{base:"av",letters:/[\uA739\uA73B]/g},{base:"ay",letters:/[\uA73D]/g},{base:"b",letters:/[\u0062\u24D1\uFF42\u1E03\u1E05\u1E07\u0180\u0183\u0253]/g},{base:"c",letters:/[\u0063\u24D2\uFF43\u0107\u0109\u010B\u010D\u00E7\u1E09\u0188\u023C\uA73F\u2184]/g},{base:"d",letters:/[\u0064\u24D3\uFF44\u1E0B\u010F\u1E0D\u1E11\u1E13\u1E0F\u0111\u018C\u0256\u0257\uA77A]/g},{base:"dz",letters:/[\u01F3\u01C6]/g},{base:"e",letters:/[\u0065\u24D4\uFF45\u00E8\u00E9\u00EA\u1EC1\u1EBF\u1EC5\u1EC3\u1EBD\u0113\u1E15\u1E17\u0115\u0117\u00EB\u1EBB\u011B\u0205\u0207\u1EB9\u1EC7\u0229\u1E1D\u0119\u1E19\u1E1B\u0247\u025B\u01DD]/g},{base:"f",letters:/[\u0066\u24D5\uFF46\u1E1F\u0192\uA77C]/g},{base:"g",letters:/[\u0067\u24D6\uFF47\u01F5\u011D\u1E21\u011F\u0121\u01E7\u0123\u01E5\u0260\uA7A1\u1D79\uA77F]/g},{base:"h",letters:/[\u0068\u24D7\uFF48\u0125\u1E23\u1E27\u021F\u1E25\u1E29\u1E2B\u1E96\u0127\u2C68\u2C76\u0265]/g},{base:"hv",letters:/[\u0195]/g},{base:"i",letters:/[\u0069\u24D8\uFF49\u00EC\u00ED\u00EE\u0129\u012B\u012D\u00EF\u1E2F\u1EC9\u01D0\u0209\u020B\u1ECB\u012F\u1E2D\u0268\u0131]/g},{base:"j",letters:/[\u006A\u24D9\uFF4A\u0135\u01F0\u0249]/g},{base:"k",letters:/[\u006B\u24DA\uFF4B\u1E31\u01E9\u1E33\u0137\u1E35\u0199\u2C6A\uA741\uA743\uA745\uA7A3]/g},{base:"l",letters:/[\u006C\u24DB\uFF4C\u0140\u013A\u013E\u1E37\u1E39\u013C\u1E3D\u1E3B\u017F\u0142\u019A\u026B\u2C61\uA749\uA781\uA747]/g},{base:"lj",letters:/[\u01C9]/g},{base:"m",letters:/[\u006D\u24DC\uFF4D\u1E3F\u1E41\u1E43\u0271\u026F]/g},{base:"n",letters:/[\u006E\u24DD\uFF4E\u01F9\u0144\u00F1\u1E45\u0148\u1E47\u0146\u1E4B\u1E49\u019E\u0272\u0149\uA791\uA7A5]/g},{base:"nj",letters:/[\u01CC]/g},{base:"o",letters:/[\u006F\u24DE\uFF4F\u00F2\u00F3\u00F4\u1ED3\u1ED1\u1ED7\u1ED5\u00F5\u1E4D\u022D\u1E4F\u014D\u1E51\u1E53\u014F\u022F\u0231\u00F6\u022B\u1ECF\u0151\u01D2\u020D\u020F\u01A1\u1EDD\u1EDB\u1EE1\u1EDF\u1EE3\u1ECD\u1ED9\u01EB\u01ED\u00F8\u01FF\u0254\uA74B\uA74D\u0275]/g},{base:"oi",letters:/[\u01A3]/g},{base:"ou",letters:/[\u0223]/g},{base:"oo",letters:/[\uA74F]/g},{base:"p",letters:/[\u0070\u24DF\uFF50\u1E55\u1E57\u01A5\u1D7D\uA751\uA753\uA755]/g},{base:"q",letters:/[\u0071\u24E0\uFF51\u024B\uA757\uA759]/g},{base:"r",letters:/[\u0072\u24E1\uFF52\u0155\u1E59\u0159\u0211\u0213\u1E5B\u1E5D\u0157\u1E5F\u024D\u027D\uA75B\uA7A7\uA783]/g},{base:"s",letters:/[\u0073\u24E2\uFF53\u00DF\u015B\u1E65\u015D\u1E61\u0161\u1E67\u1E63\u1E69\u0219\u015F\u023F\uA7A9\uA785\u1E9B]/g},{base:"t",letters:/[\u0074\u24E3\uFF54\u1E6B\u1E97\u0165\u1E6D\u021B\u0163\u1E71\u1E6F\u0167\u01AD\u0288\u2C66\uA787]/g},{base:"tz",letters:/[\uA729]/g},{base:"u",letters:/[\u0075\u24E4\uFF55\u00F9\u00FA\u00FB\u0169\u1E79\u016B\u1E7B\u016D\u00FC\u01DC\u01D8\u01D6\u01DA\u1EE7\u016F\u0171\u01D4\u0215\u0217\u01B0\u1EEB\u1EE9\u1EEF\u1EED\u1EF1\u1EE5\u1E73\u0173\u1E77\u1E75\u0289]/g},{base:"v",letters:/[\u0076\u24E5\uFF56\u1E7D\u1E7F\u028B\uA75F\u028C]/g},{base:"vy",letters:/[\uA761]/g},{base:"w",letters:/[\u0077\u24E6\uFF57\u1E81\u1E83\u0175\u1E87\u1E85\u1E98\u1E89\u2C73]/g},{base:"x",letters:/[\u0078\u24E7\uFF58\u1E8B\u1E8D]/g},{base:"y",letters:/[\u0079\u24E8\uFF59\u1EF3\u00FD\u0177\u1EF9\u0233\u1E8F\u00FF\u1EF7\u1E99\u1EF5\u01B4\u024F\u1EFF]/g},{base:"z",letters:/[\u007A\u24E9\uFF5A\u017A\u1E91\u017C\u017E\u1E93\u1E95\u01B6\u0225\u0240\u2C6C\uA763]/g}],n=0;n<t.length;n++)e=e.replace(t[n].letters,t[n].base);return e}function t(e,t,n){var i=t&&t.length>0,a=va._getPageFragmentValue(e,i);if(i){var r=[a];return f.eachItem(t,function(e,t){n?r.push(""+t):r.push((""+t).toLowerCase())}),r}return a}function n(e){var t=e.masterListPageId,n=f.valueOrDefault(t,e),i=t&&e.suffixFragments.length>0?e.suffixFragments:void 0,a=e.keepCases;return{pageId:n,suffix:i,keepCases:a}}function i(){var e=va.getPageData(va.getCurrentPageId()),t=pa.getFragment();try{ga("send","pageview",t)}catch(n){}try{window.getInsights(function(n){n.pageView(e.title,t)})}catch(i){}}var a=f.makeDictionaryFromKeys(["<",">","/","%","?","*","\\"],!0),r=[];this.UrlChangingOperation=Ae.create(),this.getFullHtmlUrl=function(e){return En.getFullHtmlUrl(e)},this.isPageNameLegal=function(e){if(!e)return!0;for(var t=0;t<e.length;t++){var n=e.charAt(t);if(a[n])return!1}return!0},this.convertToSeoUrl=function(t){var n=(""+t).toLowerCase();return n=e(n),n=n.split(/\&+/).join("-and-"),n=n.split(/[^a-z0-9]/).join("-"),n=n.split(/-+/).join("-"),n=n.trim("-")},this.registerUrlHandlers=function(e,t){f.eachItem(e,function(e,n){n=f.quickExtend({initialize:cs},n),n.initialize(t),r.push(n)})},this.getFragment=function(e){return En.getFragment(e)},this.getFragments=function(){return En.getFragments()},this.resolveUrl=function(e){if(e){var t;if(e.type===nt.Pages){var n=va.getPageData(e.url);if(!n)return;t=pa.getPageFullHtmlUrl(e.url)}else if(e.type===nt.Email)t="mailto:"+e.url;else if(e.type===nt.Cell)t="tel:"+e.url;else if(e.type===nt.Asset)t=se.resolveAssetUrl(e.url);else if(e.type===nt.RSS)t=pa.getFullHtmlUrl("rss.xml");else{var i=e.url;i&&i.indexOf("://")<0&&(i="http://"+i),t=i}return t}},this.getPageFullHtmlUrl=function(e){return e=n(e),this.getFullHtmlUrl(t(e.pageId,e.suffix,e.keepCases))},this.compareWithFragments=function(e){return En.compareWithFragments(e)},this.initialize=function(e){Jr.initialize(e),va.Events.PageChanged.bind(i);var t;t=ne.IsSitePreview||ne.IsTemplate?wn.Local:Ia.AjaxNavigationFlag.isTrue()?wn.PushState:wn.FullLoad;var n;e&&(n=va._getPageFragmentValue(e));var a=Cr.supportsCapitalLetterUrls(e);En.initialize({initialFragment:n,preferredMode:t,useHashFallbackAsFragment:!0,loadFragmentCallback:function(){pa.handleUrlChange(!1)},hasCases:a}),this.CurrentUrl=_.createTextual(this.getFragment())},this.handleUrlChange=function(e){pa.UrlChangingOperation.start();var t=pa.getFragments(),n=f.findFirst(r,function(n,i){return i.handle(t,e)});if(!n)throw Error("Couldn't find URL handler for this request")},this.navigateToPage=function(e,i){e=n(e),i=f.quickExtend({},i);var a=e.pageId;i.navigationOptions=f.quickExtend({forceNavigation:a!==va.getCurrentPageId()},i.navigationOptions),this.navigate(t(a,e.suffix),i)},this.navigateToCurrentFragment=function(){this.navigate(this.getFragments(),{navigationOptions:{forceNavigation:!0}})},this.navigate=function(e,t){t=f.quickExtend({},t);var n=t.navigationOptions,i=t.finishedNavigationCallback,a=t.navigationFailedCallback,r=t.afterCurrentPageDetached;return r&&va.Events.AfterCurrentPageDetached.one(r),o.saveContextParams({finishedNavigationCallback:i,navigationFailedCallback:a}),En.navigate(e,n)},this._changePage=function(e){var t=o.useContext();va._switchPage(e,function(e){pa.CurrentUrl.setValue(pa.getFragment()),e?t.finishedNavigationCallback():t.navigationFailedCallback(),pa.UrlChangingOperation.finish()})};var o={saveContextParams:function(e){o._contextParams=e},useContext:function(){var e=o._contextParams;return this.saveContextParams(void 0),f.quickExtend({finishedNavigationCallback:cs,navigationFailedCallback:cs},e)}}}),ha=fs(function(){this.hasTargetConnectionsForTriggers=function(e){var t,n,i,a=arguments.length-1,r=Array(a);for(t=0;a>t;t++)r[t]=arguments[t+1];var o=e.getInitializedTargetConnections();for(t=0;t<r.length;t++)i=r[t],"string"!=typeof i&&(r[t]=i.name);var s=!1;return o&&f.eachEntry(o,function(e,t){for(n=0;n<r.length;n++)if(i=r[n],t.options.triggerName===i)return s=!0,!1}),s},this.hasTargetConnectionsInPagesForTriggers=function(e){var t,n,i,a=Math.max(arguments.length-2,0),r=Array(a);for(t=0;a>t;t++)r[t]=arguments[t+2];var o=e.getInitializedTargetConnections();for(t=0;t<r.length;t++)i=r[t],"string"!=typeof i&&(r[t]=i.name);var s=!1;return f.eachEntry(o,function(e,t){for(n=0;n<r.length;n++)if(i=r[n],t.options.triggerName===i)return s=!0,!1}),s}}),ma=fs(function(){var e=[],t=[],n=[];this.LoadingRequirements={ListsContent:{name:"ListsContent",create:function(e){return{require:ma.LoadingRequirements.ListsContent.name,requestContent:e}}},Image:{name:"Image",create:function(){return{require:ma.LoadingRequirements.Image.name}}},Font:{name:"Font",create:function(){return{require:ma.LoadingRequirements.Font.name}}}},this.registerRequirementProcessor=function(t){t=f.quickExtend(t,{processingFunction:function(e){var n=f.Deferred();return t.process(e,function(){n.resolve()},function(e){n.reject(e)}),n.promise()}}),e.push(t)},this.performOnPageLoading=function(e){t.push(e)},this.performWhenRequirementsLoaded=function(e){n.push(e)},this.loadPageRequirements=function(i,a,r,o){var s=[];f.eachItem(a,function(e,t){var n=t.getLoadingRequirements(i);void 0!==n&&s.push(n)}),f.merge(s,t),t=[];var l=[];f.eachItem(e,function(e,t){l.push(t.processingFunction(s))}),f.whenResults(l).done(function(){r(function(){f.eachItem(n,function(e,t){t()}),n=[]})}).fail(function(e){n=[],o(e)})}}),va=fs(function(){function e(){var e=ie.NavigatablePagesInformation.getItems(),t=ie.PagesHierarchy.getIds(),n=[],i={};f.eachEntry(t,function(t,a){if(e[t]){var r=[];f.eachEntry(a.children,function(t){e[t]&&r.push(t)}),r.length>0&&(i[t]=r),n.push(t)}}),ie.NavigatableHierarchy.updateHierarchy(i,n)}function t(){ie.NavigatablePagesInformation.connectObservableCollection(ve,{normalizeCollection:i})}function n(e){var t=e.menu;return t?Ha.Flags.IsInMobileContext.isTrue()?t.isMobileDisabledInPublishOnly?!1:!t.isMobileDisabled:t.isDesktopDisabledInPublishOnly?!1:!t.isDesktopDisabled:!0}function i(){ie.NavigatablePageChangingOperation.performOperation(function(){function t(e){r[e]=!0,delete a[e],s[e]&&f.each(s[e],function(e,n){t(n)})}var i=ie.NavigatablePagesInformation;i.beginUpdate();var a={},r={},o=ve.getItems(),s=ie.PagesHierarchy.getHierarchies();f.eachEntry(o,function(e,i){n(i)?r[e]||(a[e]=i):t(e)}),i.remove(f.getKeys(r));var l=f.getValues(a).orderBy(f.defaultIndexFunction,f.nullLastComparer),c=i.getItems();f.eachItem(l,function(e,t){var n=t.id,a={index:e+1};c[n]?i.updateItemFields(n,a):i.put(f.quickExtend({},t,a))}),i.endUpdate(),e()},"NormalizeNavigatablePagesInformation")}function a(e){return f.findFirst(ie.getAllPagesData(),e)}function r(e,t,n){de.disableOperationsRecording("innerRemovePage"),ie.PagesUpdatingOperation.start(),aa.beginReorderingBatch(),f.eachItem(e,function(e,n){var i=ie.getPageData(n);if(i){var a=i.index;re[n].exist=!1,ae[n]&&(sa.removeInstances(ae[n],ae[n]),delete ae[n]),pe.remove(n),t&&!L(i)&&f.eachEntry(ie.getStaticPagesData(),function(e,t){t.index>a&&ie.updatePageFieldsData(e,{index:t.index-1})}),ie.Events.PageDeleted.fireNew(n),z(n,i.tags)}}),ie.setMainPageId(n),aa.endReorderingBatch(),va.PagesUpdatingOperation.finish(),de.enableOperationsRecording("innerRemovePage")}function o(e){return oe[e]||void 0!==PagesStructures[e]}function s(e){return"resolved"===l(e).state()}function l(e){var t=se[e];return t||(t=f.Deferred(),se[e]=t),"resolved"!==t.state()&&o(e)&&t.resolve(y(e)),t}function c(e){return 0===SiteFilesMap["page-"+e].indexOf("//")?window.location.protocol+SiteFilesMap["page-"+e]+"?_="+f.uniqueID():SiteFilesMap["page-"+e]+"?_="+f.uniqueID()}function u(e,t){return"<script type='text/javascript'>var PagesStructures={}</script><script type='text/javascript' src='{0}'></script><script type='text/javascript'>var target = parent.postMessage ? parent : (parent.document.postMessage ? parent.document : undefined); target&&target.postMessage(JSON.stringify({id:'{1}',content:PagesStructures['{2}']}),'*')</script>".format(c(t),e,t)}function d(e){return Kn.getScriptWithLoading({createIFrameURL:function(t){return f.combinePaths(Settings.ApplicationRoot,"/extern/page-load/page-load.html")+"?"+f.param({pageId:e,url:c(e),id:t})},createDataHtml:function(t){return u(t,e)},callback:function(t){return void 0!==t?(PagesStructures[e]=t,!0):!1},timeout:m.VeryLong})}function g(e){var t=le[e];return t||(t=le[e]=d(e),t.always(function(){delete le[e]}).done(function(){se[e].resolve(y(e))})),t}function p(e){f("body").addClass("loading-page"),be=e}function h(e){be===e&&(f("body").removeClass("loading-page"),be=!1)}function v(e){return y(e).getHierarchy()}function y(e){var t=oe[e];return t||(t=PagesStructures[e]?"string"==typeof PagesStructures[e]?qa.create(JSON.parse(PagesStructures[e])):qa.create(PagesStructures[e]):qa.create(sa.getHierarchyInfo(ae[e],{forSaving:!0,saveToServer:!0,idsInHierarchy:!0,rootInstancesHierarchies:Ha.getPageInstancesHierarchiesData(ae[e]),filter:function(e){return!e.isMasterPageElement.isTrue()}})),oe[e]=t),t}function b(e,t){Pa.setMasterPageInfo(e,function(){C(e,t)})}function C(e,t){function n(){be===e&&s(e)&&I(e,t)}be===e&&(s(e)?I(e,t):g(e).done(n).fail(function(){h(e),t(!1)}))}function I(e,t){ue.profile("Page Initialization");var n=ie.getPageData(e);if(n.pid){var i=f(".loading-page");i.removeClass("loading-page");var a=es.create();a.setOptions({pid:n.pid,resultCallback:function(n){n&&(i.addClass("loading-page"),S(e,t),a.remove())}}),a.passwordValidated(n.pid,function(n){if(n)S(e,t);else{var i=f("#body-element");a.appendTo(i),f(".loading-page").removeClass("loading-page")}})}else S(e,t)}function S(e,t){var n=e,i=ie.getPageData(e);de.disableOperationsRecording("switchPage"),aa.disable("switchPage"),Er.startRenderingBatch(),ae[e]||D(e,i.title);var a=k(e);re[e].initialized||A(e),Er.finishRenderingBatch(),aa.enable("switchPage"),de.enableOperationsRecording("switchPage"),ma.loadPageRequirements(i,a,function(i){be===n&&(h(n),T(e,i,t))},function(e){be===n&&(h(n),t(!1),Re.handleAjaxException(e),pa.navigateToPage(ie.getMainPageId()))})}function P(e){ie.PagesUpdatingOperation.start(),ie.FieldsInformation.put([{type:"index",title:"Index",name:"index",isDefaultField:!0},{type:"title",title:"Title",name:"title",isDefaultField:!0}]),oe={};var t=[];f.eachEntry(e.pagesData,function(e,n){re[e]=R(),t.push(n)}),w(t),E(t,e.pagesHierarchies),f.eachItem(t,function(e,n){n.id=""+n.id,void 0===n.shareStyle&&(n.shareStyle=!0),M(n.id,n.tags),t[e]=f.quickExtend({metaTags:"",headerCode:"",footerCode:"",tags:[]},n)}),pe.put(t),N(),ie.PagesHierarchy.extendHierarchies(e.pagesHierarchies),ie.PagesUpdatingOperation.finish()}function w(e){f.each(e,function(e,t){L(t)&&void 0!==t.index&&delete t.index})}function E(e,t){function n(e){var t=f.grep(i,function(t){return f.oneOfValues(""+t.id,e)});t.orderBy(function(e){return e.index}),f.each(t,function(e,t){t.index=s++,o[t.id]&&n(o[t.id])})}if(1.2044>ne){var i=f.grep(e,L,!0),a=f.map(i,f.defaultIdFunction),r=new _t({ids:a,hierarchies:t}),o=r.getHierarchies(),s=1;n(r.getRootIds())}}function T(e,t,n){de.disableOperationsRecording("switchPage");var i=ie.getPageData(e),a=K===e,r=re[e];Er.startPageRenderingBatch(),ie.Events.PageChanging.fireNew(K,e),ie.Flags.isInPageChanging.setTrue(),a||(Q=Y,K=e,Y=ae[e],Pa.updateCurrentMasterPage(),r.initialized||F(),Q&&(Q.detach(),ie.Events.AfterCurrentPageDetached.fireNew()),Y.attachPage()),t(),ie.Events.PageLoaded.fireNew(),r.initialized||(r.initialized=!0,ie.getPageData(e).supportsMobileStates||(r.markForSave.informOperation(),W(e)),ie.getPageData(e).supportsMobileStates=!0,ie.Events.PageInitialized.fireNew()),ie.CurrentPageInstance.setValue(ae[e]),ie.CurrentPageData.setValue(i),ie.Events.BeforePageChanged.fireNew(),ie.Events.PageChanged.fireNew(),ie.Events.AfterPageChanged.fireNew(),ie.Flags.isInPageChanging.setFalse(),n(!0),na.getSiteScrollableElement().scrollTop(0),ba.invalidatePositioningRootOffset(),Er.finishPageRenderingBatch(),de.enableOperationsRecording("switchPage"),Q||fe.resolve(),ue.profileEnd("Page Initialization")}function k(e){var t,n=ae[e],i=re[e],a=f.getValues(Pa.getOrCreateMasterTemplateRootInstances(e)),r=Ca.getHierarchiesUnion(a);if(i.initialized)t=n.getDescendingInstances();else{if(!n.data.pageContentRootInstances){var o=y(e);n.data.pageContentRootInstances=o.addHierarchyFromNode(e,{includeNode:!1,includeChildren:!0,parent:null,pageId:e})}var s=n.data.pageContentRootInstances;t=s?Ca.getHierarchiesUnion(s):[],t.push(n)}return f.merge(t,r)}function D(e,t){var n=y(e),i=n.getHierarchy(),a={StructureVersion:i.version,pagesStructure:{pages:[i]}};if(ka.loadHierarchy(a),i.structures[0].type!==ri.page.name){var r=i.structures;i.structures=[{type:ri.page.name,id:e,childElements:r}]}var o=n.addHierarchyFromNode(e,{includeNode:!0,includeChildren:!1})[0];o.setPropertyValue("name",t),ae[e]=o}function F(){ge?B():V()}function A(e){y(e).applyHierarchy()}function B(){var e=Y.data.pageContentRootInstances,t=Y.getHeaderInstance().getPropertyValue("sizeAndPosition").height,n=f.getWindowSize(),i=[];e&&f.each(e,function(e,a){var r=t<n.height&&!0;r||f.each(a.childInstances,function(e,t){t.isDisplayed.setFalse("renderWithAboveTheFold"),i.push(t)}),sa.addElementToContainerElement(Y,a),t+=a.getPropertyValue("sizeAndPosition").height}),window.setTimeout(function(){Er.startRenderingBatch(),f.each(i,function(e,t){t.isDisplayed.setTrue("renderWithAboveTheFold")}),Er.finishRenderingBatch()},200),delete Y.data.pageContentRootInstances,aa.reassignElementsOrders(),0===e.length&&sa.addSection(Y.getPageContentInstance())}function V(){var e=Y.data.pageContentRootInstances;delete Y.data.pageContentRootInstances,sa.addElementToContainerElement(Y,e),aa.reassignElementsOrders(),e&&0!==e.length||sa.addSection(Y.getPageContentInstance())}function L(e){return!!e.pageListName}function M(e,t){if(t&&e){var n=ie.PageToTags[e]?ie.PageToTags[e]:[],i=f.makeDictionaryFromKeys(t,!0),a=f.grep(n,function(e){return!i[e]});ie.PagesTags.put(t),f.eachItem(t,function(t,n){var i=ie.TagsToPagesMapObservableCollection[n];i||(i=new $t,ie.TagsToPagesMapObservableCollection[n]=i),i.put({id:e})}),z(e,a),ie.PageToTags[e]=t}}function z(e,t){t&&e&&f.eachItem(t,function(t,n){var i=ie.TagsToPagesMapObservableCollection[n];i?(i.remove(e),0===i.getItemsValues().length&&(ie.PagesTags.remove(n),i.clear(),delete ie.TagsToPagesMapObservableCollection[n])):ie.PagesTags.remove(n)})}function N(){ie.updateAllPagesFields(function(e){return{isHomePage:J===e}})}function R(){return{initialized:!1,exist:!0,markForSave:Wt.create()}}function H(e){if(e&&e.coordinator){var t=e.coordinator;t.isCoordinator=!0,te=t,ne=te.version,ka.loadHierarchy(t)}}function q(e){e&&e.coordinator?ee=sa.addHierarchyInfo(te,{withRendering:!1})[0]:(ee=sa.addInstance(ri.coordinator,null,{elementID:"coordinator"}),Z.Events.ElementsAdded.fireNew({instances:[ee]})),ie.Events.CoordinatorInitialized.fireNew()}function U(){Er.performLayoutOrderUpdate($,"refreshLastSectionHeight")}function $(){wr.UpdateBatch.performOperation(function(){var e=ie.getCurrentPage();if(e){var t=wr.getLastContentMainSection(),n=0,i=0;if(t){n=f.getWindowSize().height,n-=ss.getFooterHeight()-as.getPrivacyPolicyHeight();var a=0,r=t.getPageContentInstance();f.each(r.getVisibleSectionsByPage(e),function(e,n){n!==t&&ba.isElementVisible(n)&&(a+=n.getSize().height)});var o=e.getFooterInstance(),s=o&&ba.isElementVisible(o)?o.getSize().height:0,l=e.getHeaderInstance(),c=l&&ba.isElementVisible(l)?l.getSize().height:0;i=n-c-s-a,i=i>0?i:0}t&&(t.data.calculatedMinHeight=i,la.LayoutContentOperationsSet.requestOperation(function(){la.refreshElementsLayout(t)},"refreshLastSectionHeight"))}},"refreshLastSectionHeight")}function W(e,t){t=f.valueOrDefault(t,Pa.getMasterPageIDByPage(e)),Pa.getMasterTemplateForSaveDirtyFlag(t).informOperation()}var j,G,X,Y,K,Q,J,ee,te,ne,ie=this,ae={},re={},oe={},se={},le={},ce={},ge=!1,fe=f.Deferred();this.FirstPageLoaded=fe.promise(),this.Events={PageLoaded:x.create(),PageChanging:x.create(),InPageChanging:x.create(),PageChanged:x.create(),AfterPageChanged:x.create(),BeforePageChanged:x.create(),PageDeleted:x.create(),PageDeleting:x.create(),PageInitialized:x.create(),CoordinatorInitialized:x.create(),AfterCurrentPageDetached:x.create()},this.Flags={isPageSelected:O.create(!1),isInPageChanging:O.create(!1),HeaderExists:O.create(!1,{valueChangeCallback:function(e){f("body").toggleClass("header-exists",e)}}),FooterExists:O.create(!1,{valueChangeCallback:function(e){f("body").toggleClass("footer-exists",e)}}),InDynamicPage:O.create(!1),Initialized:O.create(!1)},this.PageRenderingOperation=Ae.create(),this.PageChangingOperation=Ae.create(),this.NavigatablePageChangingOperation=Ae.create(),this.PagesUpdatingOperation=Ae.create(),this.CurrentPageInstance=_.create(void 0,{equalityComparer:f.defaultIdComparer}),this.CurrentPageData=_.create(void 0,{equalityComparer:f.defaultIdComparer,valueChangeCallback:function(e){ie.Flags.InDynamicPage.setValue(L(e)),L(e)?ie.setCurrentDynamicPageFlag(e):ie.resetDynamicPageFlags()}}),this.TagsToPagesMapObservableCollection={},this.PagesTags=new $t({idFunction:function(e){return e}}),this.PageToTags={},this.PagesHierarchy=new _t,this.NavigatableHierarchy=new _t;var pe=new $t;this.createAllPagesObserver=function(e,t){return jt.create(pe,e,t)};var he=this.createAllPagesObserver();this.AllPagesView=Me.connectObservableCollection(new $t,he,{normalizeCollection:function(e){var t=he.getItemsValues().orderBy(f.defaultIndexFunction,f.nullLastComparer),n=0,i={};f.eachItem(t,function(t,a){if(_e.isDynamicPage(a))e.updateItemFields(a.id,{index:i[_e.getListName(a)]+1});else{var r=t+n;e.updateItemFields(a.id,{index:r}),_e.isMasterListPage(a)&&(i[_e.getListName(a)]=r,++n)}})}}),this.createAllPagesViewObserver=function(e,t){return jt.create(this.AllPagesView,e,t)},this.resetDynamicPageFlags=function(){f.eachEntry(ce,function(e,t){t.setFalse()})},this.setCurrentDynamicPageFlag=function(e){var t=e.masterPageType||e.pageListName;f.eachEntry(ce,function(e,n){e===t?n.setTrue():n.setFalse()})},this.createDynamicPageVisibleFlag=function(e){if(ce[e])throw Error("A Flag with the same name already exists!");var t=O.create(!1);return ce[e]=t,t},this.doXor=function(e){for(var t=["S","I","T","E"],n=[],i=0;i<e.length;i++){var a=e.charCodeAt(i)^t[i%t.length].charCodeAt(0);n.push(String.fromCharCode(a))}return n.join("")};var me=Me.connectObservableCollection(new $t,he,{filterFunction:f.oppositeFunction(L)});this.createStaticPagesObserver=function(e,t){return jt.create(me,e,t)};var ve=this.createStaticPagesObserver(),ye=Me.connectObservableCollection(new $t,he,{filterFunction:L});this.NavigatablePagesInformation=new $t,this.NavigatablePagesCollection=jt.create(ie.NavigatablePagesInformation),this.FieldsInformation=new $t({idFunction:function(e){return e.name}}),this.FieldsCollection=jt.create(ie.FieldsInformation),this.initialize=function(e){H(e);var n=!1;J=e.mainPageId,ie.Events.PageChanged.bind(function(){Y.data.isLoaded?Y.activateTrigger(Li.PageOpened):(Y.data.isLoaded=!0,Y.activateTrigger(Li.PageLoaded)),Y.activateTrigger(Li.PageLeave),Y.refreshPageMetaData()}),x.bind([me.itemUpdatedEvent],function(e){if(!n){de.disableOperationsRecording("PagesInformation");var t=e.id;re[t].initialized&&(ae[t].setPropertyValue("name",e.title),
fa.notifyCalculatedPropertyChange(ae[t],"pageTitle")),M(t,e.tags),de.enableOperationsRecording("PagesInformation")}}),ve.itemsChangedEvent.bind(function(e){e.updatedItems&&(de.disableOperationsRecording("PagesCollection"),f.each(e.updatedItems,function(e,t){var n=sa.getInstanceByID(t.id);n&&(n.setPropertyValue("name",t.title),n===Y&&(n.refreshPageMetaData(),pa.navigateToPage(t.id,{navigationOptions:{disableLoading:!0}})))}),de.enableOperationsRecording("PagesCollection"))}),ie.NavigatablePageChangingOperation.bind(function(){ie.NavigatablePagesCollection.postponeUpdates()},function(){ie.NavigatablePagesCollection.unPostponeUpdates()}),ie.PagesUpdatingOperation.bind(function(){ie.NavigatablePageChangingOperation.begin(),ie.PagesHierarchy.beginUpdate(),pe.beginUpdate()},function(){pe.endUpdate(),ie.PagesHierarchy.endUpdate(),ie.NavigatablePageChangingOperation.end()}),pe.itemsAddedEvent.bind(function(e){ie.PagesHierarchy.addIds(f.mapItem(e,function(e){return e.id}))}),pe.itemsRemovedEvent.bind(function(e){ie.PagesHierarchy.removeIds(e)}),Ha.Flags.IsInMobileContext.valueChangedEvent.bind(function(){ie.NavigatablePageChangingOperation.begin(),ie.NavigatablePagesInformation.beginUpdate(),ie.NavigatablePagesInformation.disconnectObservableCollection(),t(),ie.NavigatablePagesInformation.endUpdate(),ie.NavigatablePageChangingOperation.end()}),ie.NavigatablePageChangingOperation.begin(),t(),ie.NavigatablePageChangingOperation.end(),x.bind(ie.PagesHierarchy.hierarchyUpdateEvent,i),P(e),ie.Flags.Initialized.setTrue()},this.getVisiblePageSections=function(e){if(e=f.valueOrDefault(e,!1),Y){var t=[],n=Y.getHeaderInstance();if(e&&n&&t.push(n),t=f.merge(t,Y.getPageContentInstance().getVisibleSectionsByPage(Y)),e){var i=Y.getFooterInstance();i&&t.push(i)}return t}return[]},this.findPageByName=function(e){return a(function(t,n){return n.title.toLowerCase()==e.toLowerCase()})},this.findPageByUrlAlias=function(e){return a(function(t,n){return n.isHomePage?""===e:n.urlAlias===e})},this.getPagesRoot=function(){return j||(j=f("#body-element")),j},this.getPageBody=function(){return G||(G=f("#body-element"),X=G.parent()),G},this.getPageBodyParent=function(){return X},this.getPageBodyHeight=function(){var e=Y.getSize();return e?e.height:Y.getPropertyValue("sizeAndPosition").height+Y.getHeaderInstanceHeight()+Y.getFooterInstanceHeight()},this.getDirtyPages=function(){var e={};return f.eachEntry(re,function(t,n){n.exist&&n.markForSave.isDirty()&&(e[t]=ae[t])}),e},this.getSavingPagesVersionConrollers=function(){var e=[];return f.each(re,function(t,n){n.exist&&e.push(n.markForSave)}),e},this.findPageByUrlFragment=function(e,t){var n=null,i=t?ie.getAllPagesData():ie.getStaticPagesData();return f.eachEntry(i,function(t,i){return i.urlAlias===e?(n=i,!1):void(n||i.title.toLowerCase().trim()!==e||(n=i))}),n},this.switchToNextPage=function(){var e=K,t=me.getItemsLength(),n=ie.getPageData(K),i=L(n)?t:n.index;f.eachEntry(ie.getStaticPagesData(),function(n,a){return a.index===i+1||i===t&&1===a.index?(e=n,!1):void 0}),pa.navigateToPage(e)},this.switchToPrevPage=function(){var e=K,t=me.getItemsLength(),n=ie.getPageData(K),i=L(n)?1:n.index;f.eachEntry(ie.getStaticPagesData(),function(n,a){return a.index===i-1||1===i&&a.index===t?(e=n,!1):void 0}),pa.navigateToPage(e)},this.isOnePageSite=function(){var e=va.getAllPagesData(),t=Object.keys(e).length;if(1===t){var n=va.getCurrentPage(),i=n.getHeaderInstance();if(i){var a=f.grep(i.getDescendingInstances(),function(e){return e.elementType===ri.PagesMenu});return!a||0===a.length}return!0}return f.eachEntry(e,function(e,n){(n.pageListName||n.masterPageListName)&&t--}),1===t},this.createPageHierarchyFromSections=function(e,t){t=f.quickExtend({},t);var n=f.valueOrDefault(t.pageId,ka.generateWebsiteId()),i=Br.duplicateHierarchyInfo(e),a=i.structures;return i.idsInHierarchy&&(i.idsInHierarchy[n]=!0),i.pageId=n,i.structures=[{type:ri.page.name,id:n,childElements:a,elementProperties:[]}],i},this.addAndSwitchToPage=function(e,t,n){n=f.quickExtend({},n);var i,a=n.hierarchy;return i=a?ie.addPageFromHierarchy(a,e,t):ie.addEmptyPage(e,t),pa.navigateToPage(i,{finishedNavigationCallback:n.finishedNavigationCallback}),W(i,e),i},this.attachPage=function(e){va.PageRenderingOperation.start(),Er.startRenderingBatch(),e.attachPage(),Er.finishRenderingBatch(),va.PageRenderingOperation.finish()},this.detachPage=function(e){Er.startRenderingBatch(),e.detach(),Er.finishRenderingBatch()},this.removePages=function(e,t){t=f.quickExtend({normalizeIndex:!0},t);var n=f.Deferred();de.disableOperationsRecording("removePage"),ie.PagesUpdatingOperation.start(),aa.beginReorderingBatch(),e=f.asArray(e);var i=J;if(e.contains(J)){var a=f.findFirst(ie.getStaticPagesData(),function(t){return!e.contains(t)});if(a)i=a.id;else{var o=Pa.getMasterPageIDByPage(e[0]);ie.addAndSwitchToPage(o,{isHomePage:!0}),i=J}}return Q&&e.contains(Q.id)&&(Q=void 0),e.contains(K)?(va.loadPageHierarchy(i,!0).done(function(){pa.navigateToPage(i,{finishedNavigationCallback:function(){r(e,t.normalizeIndex,i),n.resolve()}})}).fail(function(){n.reject()}),Q=void 0):(r(e,t.normalizeIndex,i),n.resolve()),aa.endReorderingBatch(),ie.PagesUpdatingOperation.finish(),de.enableOperationsRecording("removePage"),n.promise()},this.getPagesMetaData=function(){var e={};f.each(re,function(t,n){if(n.exist){var i=f.quickExtend({},ie.getPageData(t));delete i.type,e[t]=i}});var t=sa.getHierarchyInfo(ee,{forSaving:!0,saveToServer:!0,idsInHierarchy:!0,copyAffectedStates:!1,copyAffectingStates:!0,copyMobileStates:!1});if(te){var n=!0;f.eachEntry(ie.getStaticPagesData(),function(e,t){return t.supportsMobileStates?void 0:(n=!1,!1)}),t=sa.adjustHierarchyWithBaseHierarchy(t,te,function(e,t,i){return n?!1:i!==Ha.MobileStateName||!sa.getInstanceByID(t)})}ka.preSaveHierarchy(t);var i=ie.PagesHierarchy.getHierarchies();return{editorCoordinator:Wi.getCoordinatorHierarchyForSave(),coordinator:t,mainPageId:J,pagesData:e,pagesHierarchies:i}},this.getPagesStructures=function(e){var t={},n=this;return f.eachEntry(re,function(i,a){if(a.exist){var r=a.markForSave.isDirty()||!1;!r&&e||(a.initialized?t[i]=n.getPageStructureById(i):oe[i]&&(t[i]=v(i)))}}),t},this.getPageStructureById=function(e){var t=sa.getHierarchyInfo(ae[e],{forSaving:!0,saveToServer:!0,idsInHierarchy:!0,filter:function(e){return!e.isMasterPageElement.isTrue()},rootInstancesHierarchies:Ha.getPageInstancesHierarchiesData(ae[e])});return t=sa.adjustHierarchyWithBaseHierarchy(t,v(e)),t.idsInHierarchy=void 0,t},this.getMainPageId=function(){return J},this.setMainPageId=function(e){J=e,N()},this.getPages=function(){return ae},this.getPage=function(e){return ae[e]},this.isDynamicPage=function(e){return e&&void 0!==ye.getItem(e)},this.getDynamicPagesData=function(){return ye.getItems()},this.getStaticPagesData=function(){return me.getItems()},this.getAllPagesData=function(){return pe.getItems()},this.getDynamicPagesCount=function(){return ye.getItemsLength()},this.getAllPagesDataValues=function(){return pe.getItemsValues()},this.getPagesStates=function(){return re},this.getCurrentPage=function(){return Y},this.getPageContentInstance=function(){return Y?Y.getPageContentInstance():void 0},this.getCoordinatorHeirarchy=function(){return te},this.getCoordinator=function(){return ee},this.getContentWidth=function(){var e=ie.getCoordinator().getPropertyValue("contentWidth");return e},this.getCurrentPageId=function(){return Y?Y.id:K},this.isCurrentPage=function(e){return ie.getCurrentPageId()===e},this.getPrevPage=function(){return Q},this.updatePageFieldsData=function(e,t,n){ie.PagesUpdatingOperation.begin(),pe.updateItemFields(e,t,n),ie.PagesUpdatingOperation.finish()},this.updateAllPagesFields=function(e){ie.PagesUpdatingOperation.begin(),pe.updateItemsFields(e),ie.PagesUpdatingOperation.finish()},this.getPageData=function(e){var t=e&&e.masterListPageId,n=f.valueOrDefault(t,e);return pe.getItem(n)},this._getPageFragmentValue=function(e,t){var n=ie.getPageData(e);if(!n)return"";var i="";return n.isHomePage&&!t||(i=n.urlAlias||n.title),i=i.trim().toLowerCase()},this.loadPageHierarchy=function(e,t){var n=l(e);if("resolved"!==n.state()){var i=g(e);if(t)return i}return n.promise()},this.loadAllPagesHierarchies=function(e){f.getKeys(pe.getItems());e=f.quickExtend({concurentRequests:3},e);var t=Be.create({concurentRequests:e.concurentRequests}),n=pe.getItems(),i=f.getValues(t.requestExecution(f.mapEntry(n,function(e,t){return{fetch:function(){return ie.loadPageHierarchy(t)},id:t}})));return f.whenResults(i)},this.getPageHierarchy=function(e){return oe[e].getHierarchy()},this.getPageHierarchyController=function(e){return oe[e]};var be=!1;this._switchPage=function(e,t){if(!t)throw Error("Switch page can be called only by UrlManager, you should use PageManager.navigateToPage instead");var n=re[e];return n.initialized&&!n.exist?Y:(p(e),void(n.initialized===!1?b(e,t):I(e,t)))},this.constructPagesHierarchy=function(e){q(e)},this.whenCoordinatorAvailable=function(e){ee?e(ee):ie.Events.CoordinatorInitialized.one(function(){e(ee)})},this.initializeMinPageHeightRule=function(){var e=[na.Events.SwitchedToViewMode,na.Events.SwitchedToDesignMode],t=x.createEventListener([f.getWindowSizeEvent(),Z.PageHeightChanged,ie.Events.PageChanging],U,{activationCallback:U,deactivationCallback:U});x.bindAndExecute(e,function(){t.activate()})},this.refreshLastSectionHeight=$}),ya=fs(function(){function e(e){return t[e]||t[n.defaultPopupName]}var t={},n=this;this.defaultPopupName="DefaultPopup",this.registerPopupImplementation=function(e,n){t[e]=n},this.getPopupImplementations=function(e){if(e){var n=f.extend({},t);return n.hasOwnProperty("ElementPopup")&&delete n.ElementPopup,n}return t},this.create=function(t,n,i,a){return e(n).create(t,i,a)},this.getPopupSettingsPanel=function(t,n){return e(t).getPopupSettingsPanel(n)},this.getPopupSettingsMap=function(t){return e(t).settingsDictionary.getMap()}}),ba=fs(function(){function e(e,t){t.updateSize&&delete C[e.id],t.updateOffset&&delete b[e.id]}function t(e){var t=e?l[e.id]:null;return t}function n(e){for(var n=0;n<e.length;n++){var i=e[n],a=t(i);a&&a.isVisible?p[i.id]=i:delete p[i.id]}for(var n=0;n<e.length;n++){var i=e[n];i.isDeleted||i.visibilityChangedEvent.fireNew({instance:i})}ba.Events.ElementsVisibilityChanged.fireNew({instances:e})}function i(n,i){var a=Ca.getHierarchiesUnion(n),o=[];if(a.length>0){var l=document.documentElement,c=(window.pageYOffset||l.scrollTop)-(l.clientTop||0),u=(window.pageXOffset||l.scrollLeft)-(l.clientLeft||0),d=r(),g=void 0;f.eachItem(a,function(n,a){var r=t(a);if(!r)return!0;var l,p=r.isVisible;if(g&&p)l={left:g.left+r.offset.left,top:g.top+r.offset.top};else{ue.informOnReadOperation();var h=a.$element[0],m=h.getBoundingClientRect();l={top:m.top+c,left:m.left+u}}p&&e(a,{updateOffset:!0});var v=p?f.relativeOffset(l,d):null;f.offsetsEqual(v,r.offset)||p&&(i&&void 0===g&&p&&(g={left:l.left-r.offset.left,top:l.top-r.offset.top}),r.offset=v,s.updateInstanceLastPosition(a.id,v),o.push(a),ba.UpdateBatch.fireLazyEvent(a,"offsetChangedEvent",void 0,function(){return ba.isElementVisible(a)?!0:(r=null,!1)}))})}return o}function a(n){var i=[];return f.eachItem(n,function(n,a){var r=t(a);if(!r)return!0;var o=ba.isElementVisible(a),l=null;if(o&&(ue.informOnReadOperation(),o&&e(a,{updateSize:!0}),l=a.$element.getOuterSize(),l.width=l.width<0?0:l.width,l.height=l.height<0?0:l.height),!f.sizesEqual(l,r.size)&&o){var c=f.cloneSize(r.size);l&&(l.width=l.width>0?l.width:0,l.height=l.height>0?l.height:0),r.size=f.cloneSize(l),s.updateInstanceLastSize(a.id,l),i.push(a),ba.UpdateBatch.fireLazyEvent(a,"sizeChangedEvent",{prevSize:c,size:l},function(){return ba.isElementVisible(a)?!0:(r=null,!1)},{callback:function(){a.onContentSizeChange(),x.fireLazyEvent(a,"contentSizeChangedEvent")}})}}),i}function r(){return void 0===d&&(d=o.offset()),d}this.Events={ElementsAreaChanged:x.create(),ElementsVisibilityChanged:x.create(),PositionRootInvalidated:x.create()},this.UpdateBatch=Ae.create({batchFinishingStartedCallback:function(){la.beginLayoutUpdateBatch()},batchFinishingCompletedCallback:function(){la.endLayoutUpdateBatch()}}),this.VisibilityUpdateBatch=Ae.create({batchFinishingStartedCallback:function(){ti.InstancesInitializationBatch.start()},batchFinishingCompletedCallback:function(){ti.InstancesInitializationBatch.finish()}}),this.PageRearrangementBatch=Ae.create({batchFinishingStartedCallback:function(){ba.executeAllUpdateSizeAndPositions()}});var o,s=this,l={},c={},u={},d=void 0,g=void 0,p={},h={},m={},v={},y=!1,b={},C={};this.initialize=function(){o=Z.OffsetAncestor,Z.Events.ElementRemoving.bind(function(e){var t=e.removedInstance;delete l[t.id],delete p[t.id],delete c[t.id],delete u[t.id]}),f.getWindowSizeEvent().bind(function(){ba.invalidatePositioningRootOffset(),ba.updatePosition(f.getValues(sa.getAllPageInstances()))})},this.invalidateAreas=function(e,t){if(t=f.quickExtend({updateSize:!0,updateOffset:!0},t),e=f.asArray(e),ba.PageRearrangementBatch.isActive()){var n=f.mapArray(e,f.returnValue,f.defaultIdFunction);t.updateSize&&f.quickExtend(C,n),t.updateOffset&&f.quickExtend(b,n)}else la.requestUpdatePosition(e,t)},this.executeAllUpdateSizeAndPositions=function(){la.layoutUpdateBatch.start();var e=C,t=b;C={},b={},la.requestUpdatePosition(f.getValues(e),{updateOffset:!1}),la.requestUpdatePosition(f.getValues(t),{updateSize:!1}),la.layoutUpdateBatch.finish()},this.invalidatePositioningRootOffset=function(){d=void 0,g=void 0,ba.Events.PositionRootInvalidated.fireNew()},this.updateInstanceLastPositionAndSize=function(e,t){t&&(s.updateInstanceLastPosition(e,t.position),s.updateInstanceLastSize(e,t.size))},this.getInstanceLastPositionAndSize=function(e){return{position:s.getInstanceLastPosition(e),size:s.getInstanceLastSize(e)}},this.updateInstanceLastPosition=function(e,t){t&&(c[e]=t)},this.getInstanceLastPosition=function(e){return c[e]},this.updateInstanceLastSize=function(e,t){!t||0===t.width&&0===t.height||(u[e]=t)},this.getInstanceLastSize=function(e){return u[e]},this.initializeStoredPosition=function(e){l[e.id]={offset:null,size:null,isVisible:!1}},this.isTrackOver=function(e){return!(!h[e.id]&&!m[e.id])},this.enableMouseOver=function(){y||(y=!0,va.getPageBody().bind("mouseleave.trackMouseOver",function(){var e=f.getValues(v);v={};for(var t=0;t<e.length;t++)e[t].elementLeaveAreaEvent.fireNew()}).bind("mousemove.trackMouseOver",function(e){var t=f.getMouseOffset(e),n={},i={};for(var a in h){var r=h[a];if(ba.isElementVisible(r))var o=f.getArea(ba.getElementAbsoluteOffset(r),ba.getElementSize(r)),s=f.isInsideArea(o,t),l=void 0!==v[a];else var s=!1,l=void 0!==v[a];s&&!l?(v[a]=r,n[a]=r):!s&&l&&(delete v[a],i[a]=r)}for(var c in m){for(var u=m[c],d=u.childInstances,l=void 0!==v[u.id],g=0,p=0;p<d.length;p++){var y=d[p],b=void 0!==v[y.id];if(b&&!l){v[u.id]=u,n[u.id]=u;break}!b&&l&&g++}g===d.length&&(delete v[u.id],i[u.id]=u)}for(var C in n)n[C].elementEnterAreaEvent.fireNew(e);for(var C in i)i[C].elementLeaveAreaEvent.fireNew(e)}))},this.disableMouseOver=function(){va.getPageBody().unbind("mouseleave.trackMouseOver").unbind("mousemove.trackMouseOver"),y=!1},this.trackMouseOver=function(e){e.elementType===ri.group?(m[e.id]=e,f.eachItem(e.childInstances,function(e,t){s.trackMouseOver(t)})):h[e.id]=e},this.stopMouseOverTracking=function(e){e.elementType===ri.group&&(delete m[e.id],f.eachItem(e.childInstances,function(e,t){s.stopMouseOverTracking(t)}));var t=e.id;h[t]&&(delete h[t],delete v[t],y&&f.isEmptyObject(h)&&(y=!1,va.getPageBody().unbind(".trackMouseOver")))},this.getInstancesInOffset=function(e){var t=[],n=ba.getVisibleInstances();return f.eachEntry(n,function(n,i){if(i.hasFeature(oi.Selectable)){var a=ba.getElementArea(i,!0);a&&e&&f.isInsideArea(a,e)&&t.push({instance:i,order:i.getPropertyValue("order")})}}),t},this.getInstancesFromOffset=function(e,t){for(var n=[],i=e;i;)f.eachItem(i.childInstances,function(e,i){if(i.hasFeature(oi.DesignElement)&&i.canMove.isTrue()){var a=ba.getElementOffset(i,!0);a&&a.top>=t&&n.push(i)}}),t=ba.getElementOffset(i,!0).top+i.getSize().height,i=i.hasFeature(oi.PageSection)?null:i.parentInstance;return n},this.getVisibleInstances=function(){return p},this.visibilityTreeAttach=function(e){var i,a=e.isAttachedToVisibleNode();if(a&&!s.isElementVisible(e)){ba.UpdateBatch.start();var r=[],o=[e];for(i=0;i<o.length;i++){var l=o[i];if(l.isVisible){r.push(l);var c=t(l);c&&(c.isVisible=!0,f.merge(o,l.getChildInstances()))}}la.requestUpdatePosition(e),la.beginLayoutUpdateBatch(),ba.VisibilityUpdateBatch.start(),la.refreshElementsLayout(r,!0),n(r),ba.VisibilityUpdateBatch.finish(),la.endLayoutUpdateBatch(),ba.UpdateBatch.finish()}},this.visibilityTreeDetach=function(e){var i;if(s.isElementVisible(e)&&!e.isDeleted){var a=[],r=[e];for(i=0;i<r.length;i++){var o=r[i],l=t(o);l&&l.isVisible&&(a.push(o),l.isVisible=!1,f.merge(r,o.getChildInstances()))}ba.UpdateBatch.start(),la.requestUpdatePosition(a),ba.VisibilityUpdateBatch.start(),n(a),ba.VisibilityUpdateBatch.finish(),ba.UpdateBatch.finish()}},this.isElementVisible=function(e){var n=t(e);return!n||e.isDeleted?!1:n.isVisible},this.getElementAbsoluteOffset=function(e){return s.getElementOffset(e,!0)},this.getElementOffset=function(e,n){void 0===n&&(n=!1);var i={},a=t(e);if(!a)return e?f.quickExtend({},e.getPropertyValue("sizeAndPosition")):null;var o=a.offset,s=f.clonePosition(o);return i=n?f.getAbsoluteOffset(s,r()):s},this.getOverlappingInstances=function(e,t,n){if(!e||!t||0===t.length)return[];var i=ba.getElementArea(e);return n&&(i=f.expandArea(i,n)),f.grep(t,function(t){if(t!==e&&t.elementType!==ri.page){var n=ba.getElementArea(t);return f.areasOverlap(n,i)}return!1})},this.getElementArea=function(e,t){return ba.isElementVisible(e)?f.getArea(ba.getElementOffset(e,t),ba.getElementSize(e)):null},this.getElementContentArea=function(e,t){var n=ba.getElementArea(e,t);return f.shrinkArea(n,Ca.getElementContentMargins(e))},this.getElementSize=function(e){var n=t(e);return n&&n.size?f.cloneSize(n.size):f.quickExtend({},e.getPropertyValue("sizeAndPosition"))},this.getContentSize=function(e){var t;t=e.hasFeature(oi.HasBorder)?e.getActualPropertyValue("borderWidth"):{left:0,top:0,bottom:0,right:0};var n=e.getPropertyValue("padding");void 0===n&&(n={left:0,top:0,bottom:0,right:0});var i=e.getSize();return i||(i=e.getPropertyValue("sizeAndPosition")),{width:i.width-t.left-t.right-n.left-n.right,height:i.height-t.top-t.bottom-n.top-n.bottom}},this.updatePosition=function(e,t){t=f.quickExtend({updateOffset:!0,updateSize:!0,hintMoveTogether:!1},t),e=f.asArray(e),e=f.grep(e,function(e){return s.isElementVisible(e)}),ba.UpdateBatch.start();var n=[],r=[];t.updateOffset&&(n=i(e,t.hintMoveTogether)),t.updateSize&&(r=a(e));var o=Ca.unionInstances(n,r);return o.length>0&&ba.Events.ElementsAreaChanged.fireNew(),ba.UpdateBatch.finish(),{changedOffsets:n,changedSizes:r,changedInstances:o}},this.getPositioningRootOffset=function(){return r()},this.getScrolledElementOffset=function(){return void 0===g&&(g=na.getScrolledElement().offset()),g}}),Ca=fs(function(){function e(t,n){delete n[t.id],f.eachItem(t.childInstances,function(t,i){e(i,n)})}this.getElementContentMargins=function(e){var t;t=e.hasFeature(oi.HasBorder)?e.getActualPropertyValue("borderWidth"):{left:0,top:0,bottom:0,right:0};var n=e.getPropertyValue("padding");return void 0===n&&(n={left:0,top:0,bottom:0,right:0}),{left:t.left+n.left,right:t.right+n.right,top:t.top+n.top,bottom:t.bottom+n.bottom}},this.areSameInstances=function(e,t){return He.equalByKeys(Ca.mapInstancesByID(e),Ca.mapInstancesByID(t))},this.getHierarchiesRoots=function(t){for(var n=Ca.mapInstancesByID(t),i=f.getValues(n),a=0;a<i.length;a++){var r=i[a];r.parentInstance&&f.eachItem(r.childInstances,function(t,i){e(i,n)})}return f.getValues(n)},this.getHierarchiesUnion=function(e){for(var t=Ca.mapInstancesByID(e),n=f.getValues(t),i=0;i<n.length;i++)for(var a=n[i],r=a.getChildInstances(),o=0;o<r.length;o++){var s=r[o];void 0===t[s.id]&&n.push(s)}return n},this.unionInstances=function(){return f.getValues(Ca.mapInstancesByID.apply(this,arguments))},this.mapInstancesByID=function(){for(var e={},t=arguments.length,n=0;t>n;n++)for(var i=arguments[n],a=0;a<i.length;a++){var r=i[a];e[r.id]=r}return e},this.findDescendingInstances=function(e,t){var n=[];return f.eachItem(e,function(e,i){f.merge(n,f.grep(i.getDescendingInstances(),function(e){return t(e)}))}),n},this.eliminateDescendingInstances=function(e){var t=Ca.mapInstancesByRoot(e),n=[];for(var i in t){var a=[],r=t[i],o=f.count(r);a.push(sa.getInstanceByID(i));for(var s=0;s<a.length&&o>0;s++){var l=a[s];void 0===r[l.id]?f.merge(a,l.getChildInstances()):(n.push(l),o--)}}return n},this.getCommonAncestors=function(e,t,n){if(n=f.valueOrDefault(n,!0),e=f.asArray(e),0===e.length)return[];if(t||(e=Ca.eliminateDescendingInstances(e)),1===e.length)return e[0].getParents(n);var i,a={},r=e[0].getParents(!1);for(i=0;i<r.length;i++)a[r[i].id]=i;var o=void 0;for(i=1;i<e.length;i++){for(var s=e[i].getParent();s&&void 0===a[s.id];)s=s.getParent();if(!s)return[];var l=a[s.id];(void 0===o||l>o)&&(o=l)}return r.slice(o)},this.getAllAncestors=function(e,t){if(e=f.asArray(e),0===e.length)return{};var n={};return f.eachItem(e,function(e,i){if(!n[i.id]){var a,r=i.getParents(t);for(a=0;a<r.length;a++)n[r[a].id]=r[a]}}),n},this.findAncestor=function(e,t,n){void 0===n&&(n=!1);for(var i=n?e:e.parentInstance;i&&!t(i);)i=i.parentInstance;return i},this.mapInstancesByRoot=function(e){for(var t={},n=0;n<e.length;n++){var i=e[n],a=sa.getInstanceRootID(i),r=t[a];void 0===r&&(r={},t[a]=r),r[i.id]=i}return t},this.instancesToElements=function(e){var t=f([]);return f.eachItem(e,function(e,n){t.pushElements(n.$element)}),t}}),Ia=fs(function(){var e,t,n,i,a,r,o,s,l,c=this,u={};this.SitePublishedEvent=x.create(),this.SiteSavedEvent=x.create(),this.EditedSiteChangedEvent=x.create(),this.AjaxNavigationFlag=O.create(!0),this.BeforeSavingSiteEvent=x.create(),this.initialize=function(c){e=c,c.siteMap&&(t=JSON.parse(c.siteMap),t&&(n=t.routing),n||(n={error404:{destination:Ye.HomePage},rules:[]})),o=e.isTemplate,s=e.baseVersion,l=e.isFirstSiteVersion,i=o?e.targetSiteID:e.groupId,Settings.SiteID=i,a=e.tokenId,r=e.ecwidId;try{var u=Ia.getStoreInformation();u&&u.hasAppMarketStore||zr.initialize()}catch(d){ee.error(d)}},this.setSiteSettings=function(e){u=f.quickExtend({ajaxBasedNavigation:!0,siteMetaTags:"",siteHeaderCode:"",siteFooterCode:""},e),c.AjaxNavigationFlag.setValue(u.ajaxBasedNavigation)},this.getBaseVersion=function(){return s},this.isResetTemplateMode=function(){return"first"===c.getBaseVersion()},this.getSiteSettings=function(){return u},this.getSiteMap=function(){return t},this.getSiteRouting=function(){return n},this.setSiteRouting=function(e){n=e},this.isPremium=function(){return e.isPremium},this.getSiteConfiguration=function(){return e},this.isPublished=function(){return e.isPublished},this.isSavedSite=function(){return e.isSaved},this.isTemplate=function(){return o},this.getPatchesData=function(){return e.patchesData},this.isExistingSite=function(){return null!==c.getSiteID()},this.getSiteName=function(){return e.groupName},this.getSiteCreatorUserName=function(){return e.siteCreatorUserName},this.getSiteLimitations=function(){return e.limitations},this.getPanelToOpen=function(){return e.panelToOpen},this.getDashboardToOpen=function(){return e.dashboardToOpen},this.getReleaseNotes=function(){var t;if(!e.releaseNotes)return null;t=e.releaseNotes instanceof Array?e.releaseNotes[0]:e.releaseNotes;var n=[];return t.contentPageOne&&n.push(t.contentPageOne),t.contentPageTwo&&n.push(t.contentPageTwo),t.contentPageThree&&n.push(t.contentPageThree),{title:t.title,subtitle:t.subtitle,notes:n}},this.getStoreInformation=function(){if(e.storeInformation&&e.storeInformation.hasAppMarketStore)return e.storeInformation;var t,n=DBSiteMetaData.siteStructureInformation.listsInformation;for(var i in n)if(n.hasOwnProperty(i)&&"undefined"!==i){var a=n[i];a&&a.listType&&a.listType===mr.Store&&(t=a)}if(t)return e.storeInformation=t,t;if(e.storeInformation)return e.storeInformation;var r=f.deepCloneObject(zr.getDefaultStoreInformation());return e.storeInformation=r,r},this.setStoreInformation=function(t){return e.storeInformation=t},this.getAppMarketInformation=function(){return e.appMarketInformation||(e.appMarketInformation={}),e.appMarketInformation},this.setAppMarketInformation=function(t){return e.appMarketInformation=t},c.getAppMarketElements=function(){return e.appMarketElements||(e.appMarketElements={}),e.appMarketElements},c.setAppMarketElements=function(e){var t=c.getAppMarketElements();e&&!t[e]&&(t[e]={published:!1})},this.removeStoreInformation=function(){var t=DBSiteMetaData.siteStructureInformation.listsInformation;for(var n in t)if(t.hasOwnProperty(n)){var i=t[n];i&&i.listType&&i.listType===mr.Store&&delete t[n]}e.storeInformation=void 0},this.getSiteID=function(){return i},this.getTokenID=function(){return a},this.getEcwidID=function(){return r},this.getSiteType=function(){return e.siteType},this.getTemplateCategory=function(){return e.templateCategory},this.getTemplateCategoryPosition=function(){return e.templateCategoryPosition},this.setEditedSite=function(t,n,a){e.groupName=n,e.isPublished=a,i=t,Settings.SiteID=i,c.EditedSiteChangedEvent.fireNew()},this.getEditedTemplateID=function(){return e.templateID},this.getFormFieldName=function(e){var t=f.trim(e.fieldName);return""===t&&(t=f.trim(e.labelText)),""===t&&(t=e.id),t}}),Sa=fs(function(){function e(){"undefined"!=typeof Storage&&localStorage&&(localStorage.ecommerceCarts=JSON.stringify(n))}this.Types={PayPal:"paypal",Google:"google"},this.SettingsNames={currency:"currency"};var t={currency:"USD"},n={},i={};n[Xi.Types.PayPal]={},i[Xi.Types.PayPal]=new $t,this.setPayPalSettings=function(e,t,n){ra.setValue("PayPal"+e,t,{onSuccess:n,onError:cs})},this.getPayPalSettings=function(e){return ra.getValue("PayPal"+e,t[e])},this.initialize=function(){"undefined"!=typeof Storage&&localStorage&&localStorage.ecommerceCarts&&(n=f.quickExtend(n,JSON.parse(localStorage.ecommerceCarts)),i[Xi.Types.PayPal].put(f.getValues(n)))},this.addItem=function(t,a,r){if(n[t][r])n[t][r].quantity=parseInt(a.quantity)+parseInt(n[t][r].quantity)+"",i[Xi.Types.PayPal].put(n[t][r]);else{var o=f.deepCloneObject(a);void 0===o.id&&(o.id=r),n[t][r]=o,i[Xi.Types.PayPal].put(a)}e()},this.removeItem=function(t,a,r){n[t][r]&&(n[t][r].quantity=parseInt(n[t][r].quantity)-parseInt(a.quantity)+"","0"===n[t][r].quantity?(delete n[t][r],i[Xi.Types.PayPal].remove(r)):i[Xi.Types.PayPal].put(n[t][r])),e()},this.createButton=function(){var e,t={refresh:function(n,i,a,r){return e&&e.remove(),n===Xi.Types.PayPal&&(e=ji.createPayPalButton(Xi.getAccountID(Xi.Types.PayPal),i,a),e.appendTo(r)),t.buttonType=a,t.buttonData=i,t.type=n,t.$parent=r,t},activate:function(n){var i=n.$element;t.type===Xi.Types.PayPal&&i.bind("click.paypalbutton",function(){e.submit()})},deactivate:function(e){var n=e.$element;t.type===Xi.Types.PayPal&&n.unbind("click.paypalbutton")}};return t},this.ButtonTypes={buynow:{title:"Buy Now",value:"buynow"},donate:{title:"Donate",value:"donate"},cart:{title:"Add To Cart",value:"cart"},view:{title:"Check Out",value:"view"}},this.Currencies=[{title:"U.S. Dollar",value:"USD"},{title:"Australian Dollar",value:"AUD"},{title:"Euro",value:"EUR"},{title:"Pound Sterling",value:"GBP"},{title:"Canadian Dollar",value:"CAD"},{title:"Brazilian Real",value:"BRL"},{title:"Israeli New Sheqel",value:"ILS"},{title:"Japanese Yen",value:"JPY"},{title:"Hong Kong Dollar",value:"HKD"},{title:"Mexican Peso",value:"MXN"},{title:"Norwegian Krone",value:"NOK"},{title:"Danish Krone",value:"DKK"},{title:"Czech Koruna",value:"K"},{title:"Hungarian Forint",value:"HUF"},{title:"New Zealand Dollar",value:"NZD"},{title:"Swiss Franc",value:"CHF"},{title:"Turkish Lira",value:"TRY"},{title:"Taiwan New Dollar ",value:"TWD"},{title:"Swedish Krona",value:"SEK"},{title:"Singapore Dollar",value:"SGD"},{title:"Philippine Peso",value:"PHP"}]}),Pa=fs(function(){function e(e,t,n){if(d[t]=!0,MasterPagesStructures[t]){var i;i="string"==typeof MasterPagesStructures[t]?JSON.parse(MasterPagesStructures[t]):MasterPagesStructures[t],i.id=t;var a={StructureVersion:i.version,masterPages:[i]};ka.loadHierarchy(a),s.addMasterPage(i)}n(e)}function t(){var e,t={};for(var n in l){e=l[n];var i=f.getOrCreateArray(t,e),a=va.getPageData(n);a&&i.push(a)}for(e in s.PagesInMasterPages)s.PagesInMasterPages[e].syncrhonize(f.valueOrDefault(t[e],[]))}function n(e,t,n){if(!f.isEmptyObject(e.hierarchyInfo)){var i=sa.addHierarchyInfo(e.hierarchyInfo,{parent:t,isLoading:!0,pageId:n});e.rootInstances=Ca.mapInstancesByID(i);for(var a=Ca.getHierarchiesUnion(f.getValues(e.rootInstances)),r=0;r<a.length;r++)a[r].isMasterPageElement.set()}e.isCreated=!0}function i(e){e=f.asArray(e);var t=f.grep(e,function(e){return s.isMasterPageRootInstance(e)}),n=Ca.getHierarchiesUnion(e);f.each(e,function(e,t){var n=t.root.id,i=l[n];s.removeInstanceFromMasterPage(i,t)}),f.each(n,function(e,t){t.isMasterPageElement.setFalse()}),s.MasterPageStateChanged.fireNew(e,!1),t.length>0&&s.RootMasterPageStateChanged.fireNew(t,e,!1)}function a(e,t){for(var n=0,i=[],a=0;a<t.length;a++){var r=t[a],o=sa.getInstanceByID(r);o&&(o.hasFeature(oi.PageSection)?o.isInstanceVisible()&&i.push(o):o.isType(ri.PageContentElement)?e[r]=0:void 0===e[r]?(n+=.01,e[r]=n):n=e[r])}if(i.length>0){i[0].isType(ri.HeaderElement)&&(e[i[0].id]=.1);for(var s=0,a=1;a<i.length;a++){var l=i[a];if(l.getPropertyNormalValue("order")-1!==i[a-1].getPropertyNormalValue("order"))break;e[i[a].id]=e[i[a-1].id]+.01,s++}if(i.length>s+1){i[i.length-1].isType(ri.FooterElement)&&(e[i[i.length-1].id]=99999);for(var a=i.length-2;a>s;a--){var l=i[a];if(l.getPropertyNormalValue("order")+1!==i[a+1].getPropertyNormalValue("order"))break;e[i[a].id]=e[i[a+1].id]-.01}}for(var a=1;a<i.length;a++){var l=i[a];void 0===e[l.id]&&e[i[a-1].id]&&l.getPropertyNormalValue("order")-1===i[a-1].getPropertyNormalValue("order")&&(e[l.id]=e[i[a-1].id]+.01)}n=99999;for(var a=i.length-1;a>=0;a--){var l=i[a];void 0===e[l.id]?(n-=.01,e[l.id]=n):n=e[l.id]}}}this.MasterPages=new $t({comparerFunction:function(e,t){return!(e.id!==t.id||e.name!==t.name||!f.defaultEqualityComparer(e.hierarchyInfo,t.hierarchyInfo))}}),this.MasterPageEditingModeChanged=x.create(),this.MasterPageEditingModeChangedFinished=x.create(),this.RootMasterPageStateChanged=x.create(),this.MasterPageStateChanged=x.create(),this.PagesInMasterPages={},this.EditingMasterPage=O.create(!1,{valueChangeCallback:function(e){e?f("body").addClass("editing-master-template"):f("body").removeClass("editing-master-template")}}),this.CurrentMasterPageChanged=x.create(),this.updateCurrentMasterPageBatch=Ae.create();var r,o,s=this,l={},c=f.makeDictionaryFromKeys(["sizeAndPosition","name","statesGroups","gridLines","customStates","pageTitle","childrenAnchor","skinInformation"],!0),u={},d={},g={},p={},h={};this.getMasterTemplateForSaveDirtyFlag=function(e){return h[e]},this.getSavingMasterTemplatesVersionConrollers=function(){return f.getValues(h)},this.getDirtyMasterPages=function(){var e={},t=this;return f.eachEntry(h,function(n,i){i.isDirty()&&(e[n]=t.MasterPages.getItem(n))}),e},this.getLoadedMasterPages=function(){var e=[];return f.each(s.MasterPages.getItems(),function(t,n){d[t]&&e.push(n)}),e},this.setMasterPageInfo=function(t,n){var i=s.getPageMasterPageId(t),a=s.MasterPages.getItem(i);a&&!MasterPagesStructures[i]&&f.isEmptyObject(a.hierarchyInfo)&&g[i]?u[i]||(u[i]=!0,f.ajax({url:SiteFilesMap["master-"+i],dataType:"script",cache:!0,success:function(){e(t,i,n)}})):!d[i]&&g[i]?e(t,i,n):n(t)},this.getPageMasterPageId=function(e){return l[e]},this.getMasterPageByPageId=function(e){var t=s.getPageMasterPageId(e);return s.MasterPages.getItem(t)},this.initialize=function(e){for(var n in e){g[n]=!0;var a=e[n];a.id=n;for(var u=a.pagesIDs,d=0;d<u.length;d++){var f=u[d];l[f]=n}s.addMasterPage(a);var p=s.getMasterTemplateForSaveDirtyFlag(n);p.beginSaving().finishSaving();
}sa.Events.InstancesRemoving.bind(function(e){for(var t=e.removedRootInstances,n=!1,i=0;i<t.length;i++){var a=t[i];if(a.hasParent()&&a.getParent().elementType===ri.page||a.hasFeature(oi.PageSection)){var r=a.root.id,o=l[r];s.removeInstanceFromMasterPage(o,a),a.hasFeature(oi.PageSection)||(n=!0)}}}),sa.Events.ElementAddedToContainer.bind(function(e){if(e.hasParent()){var t=e.getParent();if(e.isMasterPageElement.isTrue()&&t.elementType!==ri.page&&t.isMasterPageElement.isFalse())i(e);else if(t.elementType===ri.page){if(s.EditingMasterPage.isTrue())s.setAsMasterPageRoots(e);else if(e.isMasterPageElement.isTrue()){var a=e.root.id;s.MasterPages.getItem(l[a]).rootInstances[e.id]=e}}else if(e.getParent().isMasterPageElement.isTrue()){e.isMasterPageElement.setTrue();var a=e.root.id;l[a];s.removeInstanceFromMasterPage(n,e),s.MasterPageStateChanged.fireNew([e],!0)}}}),x.bind([na.Events.ViewModeChanged,Ha.Flags.IsInMobileContext.valueChangedEvent],function(){o=void 0});var h,m;va.Events.PageChanged.bind(function(){m&&m.propertyChangedEventSimple.unbind(h),m=va.getCurrentPage(),h=m.propertyChangedEventSimple.bind(function(e){r&&!c[e]})}),va.Events.PageDeleted.bind(function(e){var t=l[e];delete l[e];var n=s.MasterPages.getItem(t);delete n.rootInstancesOrders[e],delete n.mobileRootInstancesOrders[e]}),t(),va.createAllPagesObserver().itemsChangedEvent.bind(t)},this.getMasterPageRootInstances=function(e){return e=e?e:r.id,f.getValues(s.getMasterPage(e).rootInstances)},this.isMasterPageRootInstance=function(e,t){return t=t?t:r,!!s.getMasterPage(t.id).rootInstances[e.id]},this.getMasterPage=function(e){return s.MasterPages.getItem(e)},this.getCurrentMasterPage=function(){return r},this.editMasterPage=function(){s.toggleMasterPageEdit(!0)},this.editPageContent=function(){s.toggleMasterPageEdit(!1)},this.toggleMasterPageEdit=function(e){s.EditingMasterPage.getValue()!==e&&(s.EditingMasterPage.setValue(e),s.MasterPageEditingModeChanged.fireNew(),s.MasterPageEditingModeChangedFinished.fireNew())},this.getMasterPagesMetaData=function(){var e={},t=s.MasterPages.getItems();for(var n in t){var i=t[n];e[n]={name:i.name,pagesIDs:[]}}for(var a in l)e[l[a]]&&e[l[a]].pagesIDs.push(a);return e},this.getMasterPagesStructures=function(e){var t={},n=s.MasterPages.getItems();for(var i in n){var a=s.getMasterTemplateForSaveDirtyFlag(i).isDirty()||!1;if(a||!e){var r=n[i],o={rootInstancesOrders:r.rootInstancesOrders,sortedRootInstances:r.sortedRootInstances,mobileRootInstancesOrders:r.mobileRootInstancesOrders,mobileSortedRootInstances:r.mobileSortedRootInstances,pageProperties:r.pageProperties,mobilePageProperties:r.mobilePageProperties};r.isCreated?(o.hierarchyInfo=sa.getHierarchyInfo(f.getValues(r.rootInstances),{forSaving:!0,idsInHierarchy:!0,rootInstancesHierarchies:Ha.getMasterPageInstancesHierarchiesData(r.id)}),o.hierarchyInfo=sa.adjustHierarchyWithBaseHierarchy(o.hierarchyInfo,r.hierarchyInfo),o.hierarchyInfo.idsInHierarchy=void 0,o.version=ka.CurrentStructureVersion,t[i]=o):f.isEmptyObject(r.hierarchyInfo)&&g[i]||(o.hierarchyInfo=r.hierarchyInfo,o.version=r.version,t[i]=o)}}return t},this.removeMasterPage=function(e,t,n){var i=s.getMasterPage(e);if(i){var a=this.MasterPages.getItemsValues();return 1===a.length?t=s.addMasterPage({name:"Master Template 1"}):t||(t=a[0].id===e?a[1].id:a[0].id),f.each(s.PagesInMasterPages[e].getItemsValues(),function(e,i){s.setMasterPage(i.id,t,n)}),sa.removeInstances(f.getValues(i.rootInstances)),this.MasterPages.remove(e),t}},this.addMasterPage=function(e){e=f.quickExtend({hierarchyInfo:{},pageProperties:{},mobilePageProperties:{},pageContentProperties:{},rootInstancesOrders:{},mobileRootInstancesOrders:{},sortedRootInstances:[],mobileSortedRootInstances:[],version:ka.CurrentStructureVersion},e);var t=void 0!==e.id?e.id:ka.generateWebsiteId();if(void 0===e.name){var n=s.MasterPages.getItem(t);e.name=n?n.name:void 0}return void 0===e.name&&(e.name=f.findAvailableName("Master Template {0}",f.extractFieldValue(s.MasterPages.getItems(),"name"))),s.PagesInMasterPages[t]||(s.PagesInMasterPages[t]=new $t),s.MasterPages.put({id:t,version:e.version,name:e.name,isCreated:!1,rootInstances:{},hierarchyInfo:e.hierarchyInfo,pageProperties:e.pageProperties,mobilePageProperties:e.mobilePageProperties,pageContentProperties:e.pageContentProperties,rootInstancesOrders:e.rootInstancesOrders,sortedRootInstances:e.sortedRootInstances,mobileRootInstancesOrders:e.mobileRootInstancesOrders,mobileSortedRootInstances:e.mobileSortedRootInstances}),h[t]||(h[t]=Wt.create(!0)),t},this.getMasterPageIDByPage=function(e){return l[e]},this.getPagesToMasterPages=function(){return l},this.getDefaultMasterPageId=function(){return s.getMasterPageIDByPage(va.getCurrentPage().id)},this.getOrCreateMasterTemplateRootInstances=function(e){var t=s.getMasterPageByPageId(e);return t.isCreated||n(t,void 0,e),t.rootInstances},this.setPageMasterRootsOrders=function(e,t,n){Ha.Flags.IsInMobileContext.isFalse()||n?r.rootInstancesOrders[e]=t:r.mobileRootInstancesOrders[e]=t},this.getPageMasterRootsOrders=function(e,t){var n;return n=Ha.Flags.IsInMobileContext.isFalse()||t?r.rootInstancesOrders[e]:r.mobileRootInstancesOrders[e],f.cloneObject(n)},this.sendToBackCurrentFillVerticalMasterInstances=function(){var e=f.grep(s.getMasterPageRootInstances(),function(e){return e.isFillVertical()}),t=f.maxValue(e,function(e){return e.getPropertyValue("order")});aa.sendToBack(f.grep(s.getMasterPageRootInstances(),function(e){return e.getPropertyValue("order")<=t&&!e.hasFeature(oi.PageSection)}))},this.sendToBackFillVerticalMasterOrders=function(e,t){var n={},i=-(1/0);f.eachEntry(t,function(e,t){var n=sa.getInstanceByID(e);void 0!==n&&n.isFillVertical()&&t>i&&(i=t)}),f.eachEntry(t,function(e,t){var a=sa.getInstanceByID(e);void 0!==a&&(i>=t&&!a.hasFeature(oi.PageSection)?n[e]=-1e4+t:n[e]=t)}),s.setPageMasterRootsOrders(e,n)},this.updateCurrentMasterPage=function(e){s.updateCurrentMasterPageBatch.start();var t=va.getCurrentPage(),i=t.id,o=l[i],u=va.getPagesStates()[i];u.markForSave.isDirty()&&s.getMasterTemplateForSaveDirtyFlag(o).informOperation();var d=p[t.id];if(d){var g=s.MasterPages.getItem(d);if(p[t.id]=void 0,g){f.each(f.getValues(g.rootInstances),function(e,t){t.detach()});var h=t.getDescendingInstances(!1);return s.updateCurrentMasterPage(),o!==d&&aa.bringToFront(h),void s.updateCurrentMasterPageBatch.finish()}}s.setMasterPageInfo(o,function(){var i=s.MasterPages.getItem(o);if(aa.beginReorderingBatch(),i.isCreated){var l=f.getValues(i.rootInstances);sa.addElementToContainerElement(t,l),f(l,function(e,t){t.refreshCursor()})}else n(i,t);r=i;var u;u=Ha.Flags.IsInMobileContext.isFalse()?i.pageProperties:f.quickExtend({},i.pageProperties,i.mobilePageProperties),t.setPropertiesValues(f.dictionaryFilter(u,function(e,t){return!c[t]}));var d,g;Ha.Flags.IsInMobileContext.isFalse()?(d=r.rootInstancesOrders,g=r.sortedRootInstances):(f.isEmptyObject(r.mobileRootInstancesOrders)&&(r.mobileRootInstancesOrders=f.deepCloneObject(r.rootInstancesOrders),r.mobileSortedRootInstances=r.sortedRootInstances),d=r.mobileRootInstancesOrders,r.mobileSortedRootInstances=g=f.grep(r.sortedRootInstances,function(e){var t=sa.getInstanceByID(e);return!(!t||!t.hasFeature(oi.PageSection))}));var p=f.makeDictionaryFromKeys(g,!0),h=d[t.id];h||(d[t.id]=h={}),f.each(g,function(e,t){var n=sa.getInstanceByID(t);n&&n.childIndex.setValue(void 0)});for(var m in h)p[m]||delete h[m];a(h,g);for(var v in h){var y=sa.getInstanceByID(v);y&&y.setPropertyValue("order",h[v])}aa.endReorderingBatch(),s.CurrentMasterPageChanged.fireNew(),e&&e(),s.updateCurrentMasterPageBatch.finish()})},this.setMasterPage=function(e,n,i){var a=va.getPage(e),r=l[e];if(l[e]=n,n!==r&&t(),va.getCurrentPage()===a){var o=s.MasterPages.getItem(r);f.each(f.getValues(o.rootInstances),function(e,t){t.detach()}),a.setHeaderInstance(void 0),a.setFooterInstance(void 0);var c=a.getDescendingInstances(!1);s.updateCurrentMasterPage(i),n!==r&&aa.bringToFront(c)}else p[e]=r},this.canBeMasterPageElement=function(e){return e.hasParent()&&e.getParent().elementType===ri.page},this.setAsMasterPageRoots=function(e){de.beginAtomicBatch(!1,"Move To Master Template"),e=f.asArray(e),e=f.grep(e,function(e){return e.hasParent()});var t=Ca.getHierarchiesUnion(e);f.each(t,function(e,t){t.isMasterPageElement.set()});var n=Ca.eliminateDescendingInstances(e),i=va.getCurrentPage();f.each(n,function(e,t){t.parentInstance&&t.parentInstance.elementType!==ri.page&&t.parentInstance.isMasterPageElement.isFalse()&&!t.isFixed()&&ua.reattachInstances([t],i);var n=t.root.id,a=l[n];t.parentInstance.isMasterPageElement.isFalse()&&(s.MasterPages.getItem(a).rootInstances[t.id]=t)}),s.MasterPageStateChanged.fireNew(e,!0),n.length>0&&s.RootMasterPageStateChanged.fireNew(n,e,!0),de.endAtomicBatch()},this.removeInstanceFromMasterPage=function(e,t){var n=s.MasterPages.getItem(e);n&&(delete n.rootInstances[t.id],f.each(n.rootInstancesOrders,function(e,n){delete n[t.id]}),n.sortedRootInstances=f.grep(n.sortedRootInstances,function(e,n){return n!==t.id}),f.each(n.mobileSortedRootInstances,function(e,n){delete n[t.id]}),n.mobileSortedRootInstances=f.grep(n.mobileSortedRootInstances,function(e,n){return n!==t.id}))},this.setAsPageContentElement=function(e){de.beginAtomicBatch(!1,"Move To Page Content"),e=f.asArray(e);var t=f.grep(e,function(e){return e.hasParent()&&e.getParent().elementType===ri.page});i(t),ua.reattachToCurrentSection(e,{lastSectionIsDefault:!0}),de.endAtomicBatch()}}),wa=fs(function(){function e(){t||(t=n.sort(function(e,t){return e.priority&&t.priority?e.priority-t.priority:e.priority?-1:t.priority?1:0}))}var t,n=[];this.addSiteInformationFix=function(e,t,i){n.push({priority:i?i:e,version:e,callback:t})},this.fixSiteInformation=function(n){if(n.StructureVersion||(n.version?n.StructureVersion=n.version:(n.StructureVersion=ka.FirstVersionWhereHierarchiesVersionCouldBeUndefined,n.version=ka.FirstVersionWhereHierarchiesVersionCouldBeUndefined)),n.StructureVersion<ka.OldBackwardCompatibilityVersion){e();for(var i=0;i<t.length;i++){var a=t[i];(null===a.version||n.StructureVersion<a.version)&&a.callback(n)}}},this.fixTemplateInformation=function(n){if(n.StructureVersion&&n.StructureVersion<ka.OldBackwardCompatibilityVersion){e();for(var i=0;i<t.length;i++){var a=t[i];(null===a.version||n.StructureVersion<a.version)&&a.callback(n)}}}}),Ea=fs(function(){function e(){t||(t=n.sort(function(e,t){return e.priority!==t.priority?e.priority-t.priority:e.version&&t.version?e.version-t.version:e.version?-1:t.version?1:0}))}var t,n=[];this.addListFix=function(e,t,i,a){n.push({listName:e,priority:a?a:0,version:t,callback:i})},this.fixListItem=function(n,i,a){e();var r=i.metaData.compatibilityVersion;if(r!==ka.CurrentStructureVersion){for(var o=0;o<t.length;o++){var s=t[o];s.listName===n&&(null===s.version||void 0===r||r<s.version)&&s.callback(i)}a&&(i.metaData.compatibilityVersion=ka.CurrentStructureVersion)}}}),Ta={MaximizeFieldsNames:1,StringToObject:2,ValueToObject:3,StringFieldsToNumeric:4,NumericFieldsToBoolean:5},xa={youtube:"VideoPlayer",facebookLike:"Rectangle",facebookComments:"Rectangle",facebookActivity:"Rectangle",facebookLikeBox:"Rectangle",facebookFacePile:"Rectangle",facebookSubscribe:"Rectangle",NewsFeed:"DataListElement",Persons:"DataListElement",RestaurantMenu:"DataListElement",Products:"DataListElement",iconsList:"DataListElement",servicesList:"DataListElement",linksList:"DataListElement",FAQ:"DataListElement"},ka=fs(function(){function e(){g={},p={};var e=1;f.eachEntry(ui,function(n){var i=t(e);g[i]=n,p[n]=i,e++}),f.eachEntry(ri,function(n){var i=t(e);g[i]=n,p[n]=i,e++}),f.eachEntry(oi,function(n){var i=t(e);g[i]=n,p[n]=i,e++})}function t(e){return 10>e?String.fromCharCode(e+47):e>=10&&34>e?String.fromCharCode(e+56):""+(e-23)}function n(){var e={},t=h.getSiteHashDefaultDefinitionsMap();return f.eachEntry(oi,function(n,i){var a=fa.getDefaultValues(i),r={};f.eachEntry(a,function(e,n){if(void 0!==n.value){var i=Da.getPreSaveArray(e,Da.getCurrentPreSaveVersion());if(i)for(var a=0;a<i.length;a++)n=i[a](n);r[t[e]]=n}}),e[t[n]]=r}),f.eachEntry(ri,function(n,i){var a=fa.getDefaultValues(i),r={};f.eachEntry(a,function(e,n){var i=Da.getPreSaveArray(e,Da.getCurrentPreSaveVersion());if(i)for(var a=0;a<i.length;a++)n=i[a](n);r[t[e]]=n}),e[t[n]]=r}),e}function i(e){var t={};e.elementProperties.fieldsTemplates&&f.eachEntry(e.elementProperties.fieldsTemplates,function(e,t){f.eachEntry(t,function(e,t){f.eachItem(t.hierarchy.structures,function(e,t){i(t)})})}),f.eachEntry(e.elementProperties,function(n,i){var a=!1,r=ri[e.type].getPropertiesDefaultValues();if(r.hasOwnProperty(n)){var o=r[n];f.defaultEqualityComparer(o,i)&&(a=!0)}var s=Da.getPreSaveArray(n,Da.getCurrentPreSaveVersion());if(s)for(var l=0;l<s.length;l++)i=s[l](i);!a&&ui[n]&&(t[h.getHashDefinitionValue(n)]=i)}),e.type=h.getHashDefinitionValue(e.type),e.elementProperties=t,e.childElements&&f.eachItem(e.childElements,function(e,t){i(t)})}function a(e){var t=function(t){if(e){var n={};f.eachEntry(t,function(e,t){n[e]=!!t});for(var i=0;i<e.length;i++)n[e[i]]=!!t[e[i]];return n}return!!t};return t.converterType=Ta.NumericFieldsToBoolean,t.converterState=e,t}function r(e){return function(t){if(e){for(var n=0;n<e.length;n++)t[e[n]]=t[e[n]]?1:0;return t}return t?1:0}}function o(e){var t=function(t){if(e){for(var n={},i=0;i<e.length;i++)""===t[e[i]]||"null"===t[e[i]]?n[e[i]]=null:n[e[i]]=parseInt(t[e[i]]);return n}return parseInt(t)};return t.converterType=Ta.StringFieldsToNumeric,t.converterState=e,t}function s(e){return function(t){for(var n="",i=0;i<e.length;i++)n+=void 0!==t[e[i]]&&null!==t[e[i]]?t[e[i]]:"",i!==e.length-1&&(n+=",");return n}}function l(e){var t=function(t){if("string"==typeof t){var n={};return f.eachItem(e,function(e,i){n[i]=t}),n}return t};return t.converterType=Ta.StringToObject,t.converterState=e,t}function c(e){var t=function(t){var n,i,a={};if(f.isArray(t))n=t;else if("string"==typeof t)n=(""+t).split(",");else if("object"==typeof t){for(i=0;i<e.length;i++){var r=e[i];if(t[r])return t}n=f.makeArray(t)}else n=f.makeArray(t);for(i=0;i<e.length;i++)1===n.length?a[e[i]]=n[0]:2===n.length?a[e[i]]=n[i%2]:a[e[i]]=n[i];return a};return t.converterType=Ta.ValueToObject,t.converterState=e,t}function u(e){return function(t){if(e){var n,i;if("object"==typeof t)for(n=0;n<e.length;n++)i=e[n],t[i]?t[i]=Math.round(t[i]):t[i]=0;else{var a={};for(n=0;n<e.length;n++)i=e[n],a[i]=Math.round(t);t=a}return t}return Math.round(t)}}var d,g,p,h=this;this.FirstVersionWhereHierarchiesVersionCouldBeUndefined=1.209,this.OldBackwardCompatibilityVersion=16.999,this.CurrentStructureVersion=17.004,this.BaseVersionToConvertOverFlowHidden=1.209,this.ID_PREFIX="id",this.generateWebsiteId=function(){return ka.ID_PREFIX+f.uniqueID()},this.getSiteDefaultProperties=function(){return d||(d=n()),d},this.getSiteDefaultDefinitionsMap=function(){return g||e(),g},this.getHashDefinitionValue=function(t){return p||e(),p[t]?p[t]:t},this.getSiteHashDefaultDefinitionsMap=function(){return p||e(),p},this.createHierarchyFromType=function(e,t){return{structures:[{type:e.name,elementProperties:t,id:ka.generateWebsiteId()}],id:ka.generateWebsiteId()}},this.preSaveHierarchy=function(e){0!==Da.getCurrentPreSaveVersion()&&(e.defaultDefinitonNamesMap=h.getSiteDefaultDefinitionsMap(),e.definitionsDefaultProperties=h.getSiteDefaultProperties(),e.preSaveVersion=Da.getCurrentPreSaveVersion(),e.structures&&f.eachItem(e.structures,function(e,t){i(t)}))},this.loadHierarchy=function(e,t){function n(){var e={};return a?(f.eachEntry(a,function(t,n){e[n]=t}),e):void 0}function i(e){if(e.id&&(e.id=""+e.id,a&&a[e.type]&&0!==o)){e.type=a[e.type];var t=e.type,n={};if(s){var c={};if(l[t])c=l[t];else{var u,d=ri[t];if(d?u=d.getElementDefinitions():ri[xa[t]]&&(d=ri[xa[t]],u=d.getElementDefinitions()),u){for(var g=0;g<u.length;g++){var p=u[g],h=r[p.name];if(h){var m=s[h];if(m)for(var v in m){var y=m[v];void 0!==y&&(c[v]=y)}}}l[t]=c}}var b;b=f.deepCloneObject(c),e.elementProperties=f.extend(b,e.elementProperties)}f.eachEntry(e.elementProperties,function(e,t){var i=a[e],r=Da.getPreLoadArray(i,o);if(r&&void 0!==t&&null!==t)for(var s=0;s<r.length;s++)t=r[s](t);n[i]=t}),e.elementProperties=n,e.elementProperties.fieldsTemplates&&f.eachEntry(e.elementProperties.fieldsTemplates,function(e,t){f.eachEntry(t,function(e,t){f.eachItem(t.hierarchy.structures,function(e,t){i(t)})})}),e.childElements&&f.eachItem(e.childElements,function(e,t){i(t)})}}var a,r,o,s,l={};e.templateStructure?(a=e.templateStructure.defaultDefinitonNamesMap,r=n(),o=e.templateStructure.preSaveVersion?e.templateStructure.preSaveVersion:0,s=e.templateStructure.definitionsDefaultProperties,f.eachItem(e.templateStructure.structures,function(e,t){i(t)})):e.pagesStructure?f.eachItem(e.pagesStructure.pages,function(e,t){a=t.defaultDefinitonNamesMap,r=n(),o=t.preSaveVersion?t.preSaveVersion:0,s=t.definitionsDefaultProperties,f.eachItem(t.structures,function(e,t){i(t)})}):e.masterPages?f.eachItem(e.masterPages,function(e,t){t.hierarchyInfo.structures&&(a=t.hierarchyInfo.defaultDefinitonNamesMap,r=n(),s=t.hierarchyInfo.definitionsDefaultProperties,o=t.hierarchyInfo.preSaveVersion?t.hierarchyInfo.preSaveVersion:0,f.eachItem(t.hierarchyInfo.structures,function(e,t){i(t)}))}):e.isCoordinator&&(a=e.defaultDefinitonNamesMap,r=n(),o=e.preSaveVersion?e.preSaveVersion:0,s=e.definitionsDefaultProperties,f.eachItem(e.structures,function(e,t){i(t)})),t?bo.templateInformationStructure(e):bo.siteInformationStructure(e)},this.loadPageHierarchy=function(e){var t={StructureVersion:e.version,pagesStructure:{pages:[e]}};ka.loadHierarchy(t)},this.createStringToObjectValueConverter=l,this.createToStringConverter=s,this.createValueToObjectValueConverter=c,this.createRoundPropertyValueConverter=u,this.createNumericToBolleanValueConverter=a,this.createBooleanToNumericConverter=r,this.createStringToNumericConverter=o,this.minimizeFieldsNames=function(e){return function(t){for(var n=[],i=0;i<e.length;i++)n.push(t[e[i]]);return n}},this.maximizeFieldsNames=function(e){var t=function(t){for(var n={},i=0;i<e.length;i++)void 0!==t[i]&&null!==t[i]?n[e[i]]=t[i]:n[e[i]]=t[e[i]];return n};return t.converterType=Ta.MaximizeFieldsNames,t.converterState=e,t},this.NormalizeFieldsValuesSides=function(e){"string"==typeof e||"object"!=typeof e?e={top:e,left:e,bottom:e,right:e}:4!==f.count(e)&&(e={top:e.top,left:e.left,bottom:e.bottom,right:e.right});var t=!1,n=!1;return e.top===e.bottom&&(t=!0),e.left===e.right&&(n=!0),t&&n?e.left===e.bottom?"{left}".format(e):"{top},{left}".format(e):"{top},{left},{bottom},{right}".format(e)},this.NormalizeFieldsValuesCorners=function(e){"string"==typeof e||"object"!=typeof e?e={topLeft:e,bottomLeft:e,topRight:e,bottomRight:e}:4!==f.count(e)&&(e={topLeft:e.topLeft,bottomLeft:e.bottomLeft,topRight:e.topRight,bottomRight:e.bottomRight});var t=!1,n=!1;return e.topLeft===e.topRight&&(t=!0),e.bottomLeft===e.bottomRight&&(n=!0),n&&t?e.topLeft===e.bottomLeft?"{topLeft}".format(e):"{topLeft},{bottomLeft}".format(e):"{topLeft},{bottomLeft},{topRight},{bottomRight}".format(e)},this.NormalizeObjectFieldsValuesSides=function(e){"string"==typeof e&&(e={top:e,left:e,bottom:e,right:e});var t=!1,n=!1;return f.defaultEqualityComparer(e.top,e.bottom)&&(t=!0),f.defaultEqualityComparer(e.left,e.right)&&(n=!0),t&&n?f.defaultEqualityComparer(e.left,e.bottom)?[e.bottom]:[e.top,e.left]:[e.top,e.left,e.bottom,e.right]}}),Da=fs(function(){var e=0;this.getCurrentPreSaveVersion=function(){return e},this.getPreSaveArray=function(e,n){for(var i=n;i>0;i--)if(t[i]&&t[i][e])return t[i][e].preSaveConverter},this.getPreLoadArray=function(e,n){for(var i=n;i>0;i--)if(t[i]&&t[i][e])return t[i][e].preLoadConverter};var t={1:{columnsGrid:{preSaveConverter:[ka.minimizeFieldsNames(["margin","gutter","columnsNumber","color","showAlways","isEnabled","opacity"])],preLoadConverter:[ka.maximizeFieldsNames(["margin","gutter","columnsNumber","color","showAlways","isEnabled","opacity"])]},itemFields:{preSaveConverter:[ka.minimizeFieldsNames(["index","title","icon","image","description","link"])],preLoadConverter:[ka.maximizeFieldsNames(["index","title","icon","image","description","link"])]},sizeAndPosition:{preSaveConverter:[ka.minimizeFieldsNames(["left","width","top","height"])],preLoadConverter:[ka.maximizeFieldsNames(["left","width","top","height"])]},glow:{preSaveConverter:[ka.minimizeFieldsNames(["spread","blur","color"])],preLoadConverter:[ka.maximizeFieldsNames(["spread","blur","color"])]},innerGlow:{preSaveConverter:[ka.minimizeFieldsNames(["spread","blur","color"])],preLoadConverter:[ka.maximizeFieldsNames(["spread","blur","color"])]},shadow:{preSaveConverter:[ka.minimizeFieldsNames(["top","left","spread","blur","color"])],preLoadConverter:[ka.maximizeFieldsNames(["top","left","spread","blur","color"])]},innerShadow:{preSaveConverter:[ka.minimizeFieldsNames(["top","left","spread","blur","color"])],preLoadConverter:[ka.maximizeFieldsNames(["top","left","spread","blur","color"])]},formFieldsData:{preSaveConverter:[ka.minimizeFieldsNames(["isOptional"])],preLoadConverter:[ka.maximizeFieldsNames(["isOptional"])]},formOptions:{preSaveConverter:[ka.minimizeFieldsNames(["clearOnSubmit"])],preLoadConverter:[ka.maximizeFieldsNames(["clearOnSubmit"])]},dataLayoutOptions:{preSaveConverter:[ka.minimizeFieldsNames(["lineSpacing","columnSpacing","colsSpacing","rowsSpacing","R","rotation","cols","elementsPerPage"])],preLoadConverter:[ka.maximizeFieldsNames(["lineSpacing","columnSpacing","colsSpacing","rowsSpacing","R","rotation","cols","elementsPerPage"])]},borderWidth:{preSaveConverter:[ka.NormalizeFieldsValuesSides],preLoadConverter:[ka.createValueToObjectValueConverter(["top","left","bottom","right"]),ka.createStringToNumericConverter(["top","left","bottom","right"])]},roundness:{preSaveConverter:[ka.NormalizeFieldsValuesCorners],preLoadConverter:[ka.createValueToObjectValueConverter(["topLeft","bottomLeft","topRight","bottomRight"]),ka.createStringToNumericConverter(["topLeft","bottomLeft","topRight","bottomRight"])]},borderColor:{preSaveConverter:[ka.NormalizeObjectFieldsValuesSides],preLoadConverter:[ka.createStringToObjectValueConverter(["top","left","bottom","right"]),ka.createValueToObjectValueConverter(["top","left","bottom","right"])]},borderStyle:{preSaveConverter:[ka.NormalizeFieldsValuesSides],preLoadConverter:[ka.createValueToObjectValueConverter(["top","left","bottom","right"])]},padding:{preSaveConverter:[ka.NormalizeFieldsValuesSides],preLoadConverter:[ka.createValueToObjectValueConverter(["top","left","bottom","right"]),ka.createStringToNumericConverter(["top","left","bottom","right"])]},imagePosition:{preSaveConverter:[ka.createToStringConverter(["vertical","horizontal"])],preLoadConverter:[ka.createValueToObjectValueConverter(["vertical","horizontal"])]},fillLayout:{preSaveConverter:[ka.createBooleanToNumericConverter(["fillVertical","fillHorizontal"]),ka.createToStringConverter(["fillVertical","fillHorizontal"])],preLoadConverter:[ka.createValueToObjectValueConverter(["fillVertical","fillHorizontal"]),ka.createStringToNumericConverter(["fillVertical","fillHorizontal"]),ka.createNumericToBolleanValueConverter(["fillVertical","fillHorizontal"])]},margin:{preSaveConverter:[ka.NormalizeFieldsValuesSides],preLoadConverter:[ka.createValueToObjectValueConverter(["top","left","bottom","right"]),ka.createStringToNumericConverter(["top","left","bottom","right"])]},imageLoadingOverlay:{preSaveConverter:[ka.minimizeFieldsNames(["background","imageInfo"])],preLoadConverter:[ka.maximizeFieldsNames(["background","imageInfo"])]},isGrowable:{preSaveConverter:[ka.minimizeFieldsNames(["bottom","right"])],preLoadConverter:[ka.maximizeFieldsNames(["bottom","right"])]},pagesFields:{preSaveConverter:[ka.minimizeFieldsNames(["index","title","icon"])],preLoadConverter:[ka.maximizeFieldsNames(["index","title","icon"])]}},2:{itemFields:{preSaveConverter:void 0,preLoadConverter:void 0}},3:{dataLayoutOptions:{preSaveConverter:[ka.minimizeFieldsNames(["lineSpacing","columnSpacing","colsSpacing","rowsSpacing","R","rotation","cols","elementsPerPage","numberOfRows"])],preLoadConverter:[ka.maximizeFieldsNames(["lineSpacing","columnSpacing","colsSpacing","rowsSpacing","R","rotation","cols","elementsPerPage","numberOfRows"])]}},4:{dataLayoutOptions:{preSaveConverter:[ka.minimizeFieldsNames(["lineSpacing","columnSpacing","colsSpacing","rowsSpacing","R","rotation","cols","elementsPerPage","numberOfRows","rows"])],preLoadConverter:[ka.maximizeFieldsNames(["lineSpacing","columnSpacing","colsSpacing","rowsSpacing","R","rotation","cols","elementsPerPage","numberOfRows","rows"])]}},5:{dataLayoutOptions:{preSaveConverter:[ka.minimizeFieldsNames(["lineSpacing","columnSpacing","colsSpacing","rowsSpacing","R","rotation","cols","elementsPerPage","numberOfRows","rows","maxItems","isHierarchy","dropTrigger"])],preLoadConverter:[ka.maximizeFieldsNames(["lineSpacing","columnSpacing","colsSpacing","rowsSpacing","R","rotation","cols","elementsPerPage","numberOfRows","rows","maxItems","isHierarchy","dropTrigger"])]}},6:{dataLayoutOptions:{preSaveConverter:[ka.minimizeFieldsNames(["lineSpacing","columnSpacing","colsSpacing","rowsSpacing","R","rotation","cols","elementsPerPage","numberOfRows","rows","maxItems","isHierarchy"])],preLoadConverter:[ka.maximizeFieldsNames(["lineSpacing","columnSpacing","colsSpacing","rowsSpacing","R","rotation","cols","elementsPerPage","numberOfRows","rows","maxItems","isHierarchy"])]}}};this.getConvertorsMap=function(){return t}}),Fa=fs(function(){function e(){f(document.body).toggleClass("full-screen-view",Fa.IsFullScreen.isTrue()).toggleClass("inner-screen-view",Fa.IsFullScreen.isFalse()),t()}function t(){i=void 0,Fa.ViewPortChangeBatch.whenFinished(function(){ba.invalidatePositioningRootOffset(),Fa.ViewPortChanged.fireNew(),va.getCurrentPage()&&(la.requestUpdatePosition(f.getValues(sa.getAllPageInstances())),la.refreshElementsLayout(va.getCurrentPage()))},"onViewPortChanged")}function n(){var e=f.getWindowSize();return{left:0,top:0,width:e.width,height:e.height-ss.getFooterHeight()-as.getPrivacyPolicyHeight()}}var i;this.ViewPortChangeBatch=Ae.create(),this.ViewPortChanged=x.create(),this.IsFullScreen=O.createConditionalPositive({valueChangeCallback:e}),this.initialize=function(){e(),f.getWindowSizeEvent().bind(function(){t()}),t()},this.setFullScreen=function(e,t){Fa.IsFullScreen.setValue(e,t)},this.getViewPort=function(){return i||(i=n()),i}}),Aa=fs(function(){this.adjustDataListToContent=function(e){var t=e.getPropertyValue("fillLayout"),n=e.adjustSizeToContent({horizontally:!t||!e.isFillHorizontal(),vertically:!t||!e.isFillVertical()});return n},this.arrangeDataListToMobileFirstTime=function(e){e.getDataSource().invalidateAllItems();var t=function(t){return e.calculateItemSizeOnMobile(t)};e.requestArrangement({keepItemSize:!1,fixedSize:t}),la.LayoutContentOperationsSet.lockRequest(e.getArrangementRequestName())}}),Ba=fs(function(){this.getSectionsInformation=function(e,t){a=f.makeArray(a),t=f.quickExtend({minSpacingBetweenSection:50},t);for(var n=t.minSpacingBetweenSection,i=[];e.length>0;){var a=e[0],r=a.rowsData,o=a.orderableElements,s=f.unionAreas(f.mapItem(o,function(e){return e.getArea()})),l=e.length;if(l>1&&o.length>1&&!f.isEmptyObject(r)){var c,u=1,d=1,g=f.getKeys(r.rowsByCols).orderByDesc();if(f.eachItem(g,function(t,i){var a=r.rowsByCols[i];i>1&&f.eachItem(a,function(t,i){for(var a=i.getColumns(),r=a.length,o=(i.getArea(!1),1),l=!0,g=[i],p=s;l&&o<e.length&&4>o;){l=!1;var h=e[o],m=h.rowsData,v=h.orderableElements,y=f.unionAreas(f.mapItem(v,function(e){return e.getArea()}));if(m.rowsByCols[r]&&y.top-p.bottom<n){var b=(f.getKeys(m.rowsByCols).orderByDesc(),m.rowsByCols[r]);f.eachItem(b,function(e,t){for(var n=!0,a=0;r>a&&n;a++){var s=i.getColumns()[a+1],c=t.getColumns()[a];if(r-1>a&&c.getArea().right>s.getArea().left+10&&(n=!1),a>0){var u=i.getColumns()[a-1];c.getArea().left<u.getArea().right-10&&(n=!1)}}return n?(l=!0,o++,g.push(t),!1):void 0})}p=y}o*r>u*d&&(u=o,d=r,c=g)})}),d>1){for(var p=0;d>p;p++)for(var h=0;u>h;h++){var m=c[h],v=m.getColumns()[p];i.push(v)}for(var y=0;u>y;y++)e.shift()}}if(e.length===l&&(e.shift(),r.rows.length>0)){var b=r.rowsByCols[1][0].getColumns();i=f.merge(i,b)}}return{columnsToOrder:i,totalColumns:i.length}}}),Va=fs(function(){function e(t){var n=t.getColumns();if(1===n.length)return[_a.create(n)];var i=[];if(Na.canBeInDifferentColumns(n[0],n[1])){var a=_a.duplicateRow(t),r=a.shift(),o=e(a);f.eachItem(o,function(e,t){t.unShift(r)}),i=o}var a=_a.duplicateRow(t);a.mergeColumnsFromStart(2);var o=e(a);return f.merge(i,o),i}this.getRows=function(t,n){n=f.extend({maxColumns:10,minColumns:2,shouldSort:!0,maxArea:960},n);var i=n.shouldSort;i&&(t=ca.sortByLeftPosition(t,function(e){return e.getArea()}));var a=[];f.eachItem(t,function(e,t){a.push(Na.create(t))});var r=_a.create(a),o=e(r),s={};return f.eachItem(o,function(e,t){var n=t.getColumns().length;s[n]||(s[n]=[]),s[n].push(t)}),{rows:o,rowsByCols:s}}}),La=fs(function(){function e(e){if(!e||1===e.length)return{maxSpacing:0,minSpacing:0,averageSpacing:0};var t,n=1/0,i=0,a=0,r=0;return f.eachItem(e,function(e,o){if(e>0){var s=t.getArea(),l=o.getArea(),c=l.left-s.right;c>=0&&(n>c&&(n=c),c>i&&(i=c),a+=c,r++)}t=o}),a/=r,{maxSpacing:i,minSpacing:n,averageSpacing:a}}this.getRows=function(t,n){n=f.extend({maxColumns:10,minColumns:1,shouldSort:!0,maxArea:960},n);var i=n.shouldSort;i&&(t=ca.sortByLeftPosition(t,function(e){return e.getArea()}));var a=t.length<n.maxColumns?t.length:n.maxColumns,r=n.minColumns,o={};if(r>t.length)return o;for(var s,l=f.unionAreas(f.mapItem(t,function(e){return e.getArea()})),c=e(t),u=(c.maxSpacing,l.left),d=n.maxArea>l.width?n.maxArea:l.width,g=!1,p=[],h={},m=a;m>r-1&&!g;m--)for(var v=d/m,y=!1,b=v;b>=l.width/m-20&&!y;b-=5){var C=n.minSpacingIntersection?n.minSpacingIntersection:.2*b,I=u,S=0,P=0,w=!0,E=_a.create();for(s=void 0;w&&P<t.length;){var T=t[P],x=T.getArea(),k=x.left>=I-C&&x.left<I+b,D=x.left>=I+b-C&&x.left<I+2*b,F=x.right-C<=I+b,A=x.right-C<=I+2*b;k&&F?(s||(s=Na.create(),E.addColumns(s)),s.addElements(T),P++):D&&A&&s&&0!==s.getElements().length?(s=void 0,I+=b,S++):w=!1}E.getColumns().length===m&&P===t.length&&(y=!0,p.push(E),h[m]||(h[m]=[]),h[m].push(E))}return{rows:p,rowsByCols:h}}}),Ma=fs(function(){this.getFirstSectionOrderableElements=function(e){var t=e.orderBy(function(e){return e.getPosition().top}),n=t[0],i=n.getArea(),a=i?f.expandArea(i,{left:5e4,right:5e4,top:0,bottom:10}):null;if(!a)return e;var r=Oa.getAreaOverlappingElements(a,e),o=n,s=i;return f.eachItem(r,function(e,t){var n=t.getArea();n.top<i.top+.3*i.height&&n.bottom>s.bottom&&(o=t,s=n)}),a=f.expandArea(s,{left:5e4,right:5e4,top:5e4,bottom:10}),Oa.getInstancesInsideArea(a,r)}}),Oa=function(){var e=C.extend("AbstractOrderableElement",{init:function(){this.id=f.weakID()},getPosition:cs,getSize:cs,getArea:cs,isVisible:cs}),t=e.extend("InstanceOrderableElement",function(e){return{init:function(t,n){n=f.quickExtend({},n),e.call(this,t,n),this.instance=t},getInstance:function(){return this.instance},getPosition:function(){var e=this.instance,t=e.getPosition();return t?t:e.getStructureMetaData().position},getSize:function(){var e=this.instance,t=e.getSize();return t?t:e.getStructureMetaData().size},getArea:function(e){var t=this;this.instance;return this.isVisible()?f.getArea(t.getPosition(e),t.getSize()):null},isVisible:function(){return this.instance.isInstanceVisible()}}}),n={};return n.createInstanceOrderableElement=function(e,n){return new t(e,n)},n.getOrderableElementsFromInstances=function(e){return f.mapItem(e,function(e){return n.createInstanceOrderableElement(e)})},n.getAreaOverlappingElements=function(e,t,n){return n=f.quickExtend({isAbsolute:!1},n),e&&t&&0!==t.length?(n.expandSize&&(e=f.expandArea(e,n.expandSize)),f.grep(t,function(t){return f.areasOverlap(t.getArea(n.isAbsolute),e)})):[]},n.getInstancesInsideArea=function(e,t,n){return n=f.quickExtend({isAbsolute:!1},n),e&&t&&0!==t.length?(n.expandSize&&(e=f.expandArea(e,n.expandSize)),
f.grep(t,function(t){return f.containsArea(e,t.getArea(n.isAbsolute))})):[]},n}(),za=fs(function(){this.separateToRowsAndCells=function(e){var t=[La,Va],n=[Ma],i=[Ba];if(0===e.length)return[];var a,r=f.unionAreas(f.mapItem(e,function(e){return e.getArea()})),o=0;if(f.eachItem(n,function(n,s){for(var l=f.getValues(e),c=f.mapArray(l,f.returnValue,f.defaultIdFunction),u=[];l.length>0;)l=s.getFirstSectionOrderableElements(l),u.push({orderableElements:l}),f.eachItem(l,function(e,t){delete c[t.id]}),l=f.getValues(c);f.eachItem(t,function(t,n){f.eachItem(u,function(e,t){var i=n.getRows(t.orderableElements,{maxArea:r.width});i.rows.orderByDesc(function(e){return e.getColumns().length}),t.rowsData=i}),f.eachItem(i,function(t,n){var i=n.getSectionsInformation(u,{orderableElementsArea:r,orderableElements:e});i.totalColumns>o&&(a=i,o=i.totalColumns)})})}),a){var s=za.orderColumnsInRows(a);return s}return[Na.create(e)]},this.orderColumnsInRows=function(e){return e.columnsToOrder}}),_a=fs(function(){this.create=function(e){e=f.makeArray(e);var t,n={getColumns:function(){return e},mergeColumnsFromStart:function(t){for(var n=[],i=0;t>i;i++)n=f.merge(n,e[0].getElements()),e.shift();var a=Na.create(n);e.unshift(a)},addColumns:function(t,i){if(t=f.asArray(t),i)for(var a=t.length-1;a>=0;a--)e.unshift(t[a]);else f.eachItem(t,function(t,n){e.push(n)});n.resetInformation()},resetInformation:function(){t=void 0},pop:function(){return n.resetInformation(),e.pop()},shift:function(){n.resetInformation();var t=e.shift();return t},unShift:function(t){return n.resetInformation(),e.unshift(t)},getArea:function(){var e=n.getElements();return f.unionAreas(f.mapItem(e,function(e){return e.getArea()}))},getElements:function(){var t=[];return f.eachItem(e,function(e,n){t=f.merge(t,n.getElements())}),t}};return n},this.duplicateRow=function(e){return _a.create(e.getColumns())}}),Na=fs(function(){this.create=function(e){return e=f.makeArray(e),{addElements:function(t){t=f.asArray(t),e=f.merge(e,t)},getArea:function(){return f.unionAreas(f.mapItem(e,function(e){return e.getArea()}))},getElements:function(){return e}}},this.canBeInDifferentColumns=function(e,t,n){return!Na.areInTheSameColumn(e,t,n)},this.areInTheSameColumn=function(e,t,n){var i=e.getArea(!1,n),a=t.getArea(!1,n);return i.left<a.left?i.right>a.left+15:a.right>i.left+15}}),Ra=fs(function(){function e(e){return e.elementType===ri.page||e.hasFeature(oi.PageSection)||Pa.isMasterPageRootInstance(e)}function t(n,i,r){var o=[],s={};if(n.canContainerRows()){if(!ba.isElementVisible(n)){var l=n.visibilityChangedEvent.bind(function(){l.unbind(),Er.performOnLayoutUpdate(function(){de.disableOperationsRecording("addInstancesToContainer"),Ra.addInstancesToContainer(n,i),de.enableOperationsRecording("addInstancesToContainer")})});return void m.add(l)}if(i=f.asArray(i),n.hasFeature(oi.Navigatable))return void f.eachItem(i,function(e,n){t(n,n.childInstances)});Ra.UpdateBatch.start(),de.disableOperationsRecording("addInstancesToContainer");var c=n.getPropertyValue("rowsItems"),u=f.grep(i,function(e){return e.hasFeature(oi.HasResponsiveItem)&&e.shouldBeWithLayoutOnMobile()&&e.isInstanceVisible()}),g=f.grep(u,function(e){return!e.getPropertyValue("cellItem")&&ba.isElementVisible(e)}),p=f.grep(i,function(e){return!(e.hasFeature(oi.HasResponsiveItem)&&e.shouldBeWithLayoutOnMobile())&&e.isInstanceVisible()}),h=f.mapArray(g,f.returnValue,f.defaultIdFunction);aa.beginReorderingBatch();var v=[];if(g.length>0&&!n.hasFeature(oi.Navigatable)){var y=f.grep(u,function(e){return!!e.getPropertyValue("cellItem")});y.orderBy(function(e){return e.getPropertyValue("order")});var b,C=za.separateToRowsAndCells(Oa.getOrderableElementsFromInstances(g));b=g.length===u.length?C:za.separateToRowsAndCells(Oa.getOrderableElementsFromInstances(u)),g=a(C),f.eachItem(b,function(e,t){var n=t.getElements();f.eachItem(n,function(e,t){var n=t.getInstance();h[n.id]?v.push(n):v.push(y.shift())})}),f.eachItem(v,function(e,t){t.setPropertyValue("order",e+1)})}else v=u;var I=[];f.eachItem(v,function(e,t){if(!t.getCellItem()||t.getCellItem().isCellInContainer.isFalse()||r){var i=Dn.getOrCreateCellFromInstance(t),a=xn.getOrCreateRowByCellItem(i,n);s[a.id]||(o.push(a),s[a.id]=a),a.updateCurrentCells(i),I.push(t)}});var S=0;o=o.orderBy(function(e){return e.getMinOrder().value}),f.eachItem(o,function(t,i){f.eachItem(i.getOrderedCells(),function(e,t){t.getInstance().setPropertyValue("order",S+1),S++}),i.build(e(n)),i.initializeCellItems(),i.setContainerInstance(n)}),f.eachItem(f.merge(p,I),function(e,n){n.hasFeature(oi.ItemsContainer)&&t(n,n.childInstances)}),aa.endReorderingBatch();var c=n.getPropertyValue("rowsItems");c&&f.eachEntry(c,function(e,t){s[e]||d[e]&&!d[e].isBuilt.isFalse()||n.removeRowFromContainer(t)}),Ra.UpdateBatch.finish(),de.enableOperationsRecording("addInstancesToContainer")}}function n(e,t){var n=[],i=t.getCells(),a=f.getValues(i).orderBy(function(e){return e.getOrder()}),r=a[0].getArea(),o=t.getArea(),s=o.top,l=o.bottom;a[0].id!==e.id&&n.push({type:Ra.MarkingTypes.Column,isFirst:!0,area:f.extendedAreaInfo({left:r.left-50,right:r.center.left,top:s,bottom:l}),item:a[0],rowArea:o,markingData:{left:r.left,top:o.top,height:o.height}});for(var c=0;c<a.length-1;c++){var u=a[c],d=a[c+1],g=u.getArea(),p=d.getArea();d.id!==e.id&&u.id!==e.id&&n.push({type:Ra.MarkingTypes.Column,area:f.extendedAreaInfo({left:g.center.left,right:p.center.left,top:s,bottom:l}),isFirst:!1,rowArea:o,item:a[c],markingData:{left:(g.right+p.left)/2,top:o.top,height:o.height}})}return r=a[a.length-1].getArea(),a[a.length-1].id!==e.id&&n.push({type:Ra.MarkingTypes.Column,isLast:!0,area:f.extendedAreaInfo({left:r.center.left,right:r.right+50,top:s,bottom:l}),rowArea:o,item:a[a.length-1],markingData:{left:r.right,top:o.top,height:o.height}}),n}function i(){var e=va.getCoordinator().getPropertyValue("pagePadding"),t=va.getCoordinator().getPropertyValue("sectionPadding");return Z.IsTabletView?Ge-2*e-2*t:je-2*e-2*t}function a(e){var t=[],n=va.getCoordinator().getPropertyValue("innerRowPadding"),a=i();return f.eachItem(e,function(e,i){var o=i.getElements(),s=0,l=[];f.eachItem(o,function(e,i){var c=i.getArea(),u=c.width+2*n;s+=u;var d=i.getInstance();if(s>a||e===o.length-1){var g=!1,p=s-u;(0===l.length||a>s&&c.right-l[l.length-1].getArea().left<a)&&(g=!0,l.push(i),p=s);var h=f.max(l,function(e){return e.getSize().height}).value,m=f.min(l,function(e){return e.getSize().height}).value;if(.6>m/h)f.eachItem(l,function(e,n){var i=xn.create([]),a=n.getInstance();Dn.create(a,{rowId:i.id,width:100}),t.push(a),r(n)});else{var v=xn.create([]),y=0;f.eachItem(l,function(e,t){y+=t.getSize().width}),f.eachItem(l,function(e,n){var i=n.getInstance();Dn.create(i,{rowId:v.id,width:Math.floor(n.getSize().width/y*100)}),t.push(i),r(n)})}l=[],s=0,g||(u>a||e===o.length-1?(v=xn.create([]),Dn.create(d,{rowId:v.id,width:100}),t.push(d),r(i)):(l.push(i),s=u))}else l.push(i)})}),t}function r(e){var t=e.getInstance();if(t.data.disableAdjustWidthToMobile)return void(t.data.disableAdjustWidthToMobile=!1);var n=i();if(t.hasFeature(oi.HasLayout)){var a=t.properties.fillLayout.value.fillHorizontal,r=e.getSize(),o=t.getPropertyValue("lastResizingSize"),s=t.getPropertyValue("sizeAndPosition");if(0===r.width&&(r.width=o.width?o.width:s.width),0===r.height&&(r.height=o.height?o.height:s.height),0===r.height||0===r.width)return void ca.setInstancesSize(t,{height:50});va.getCoordinator().getPropertyValue("pagePadding");(!t.shouldBeBlockElementInMobile()||r.width<.5*n)&&!t.parentInstance.isType(ri.page)&&!a&&r.width<.75*n?(t.setPropertyValue("display",rt.Fixed),t.setPropertyValue("sizeAndPosition",f.extend({},s,r))):(t.setPropertyValue("display",rt.Block),t.canResizeVertically.isTrue()&&t.setPropertyValue("sizeAndPosition",f.extend({},s,{height:r.height})))}}function o(e,t){t=f.extend({shouldRemoveFromViewPort:!1,removeDescendant:!0},t);var n=t.shouldRemoveFromViewPort,i=t.removeDescendant;if(e.childInstances&&i&&f.eachItem(e.childInstances,function(e,n){o(n,t)}),e.isConvertedToMobile()&&(e.isVisibleInMode()||n)&&e.isUpdatedToViewPort()&&e.removeInstanceFromViewPort(),e.hasFeature(oi.HasResponsiveItem)&&e.shouldBeWithLayoutOnMobile()&&e.getCellItem()){var a=e.getCellItem();a.clearCellItem(),delete g[a.id]}if(e.hasFeature(oi.ItemsContainer)){var r=e.getRowsFromContainer();r&&f.eachItem(r,function(e,t){t.removeFromContainer(),delete d[t.id]})}}var s,l,c={RowDecorator:{group:"rows-manager-templates",name:"row-decorator-template"},ColumnDecorator:{group:"rows-manager-templates",name:"column-decorator-template"}},u=this,d={},g={},p={},h={},m=x.createBindingsCollection();this.MarkingTypes={Column:"column",Row:"row"},u.CellsContainerChangedEvent=x.create(),u.UpdateBatch=Ae.create(),this.initialize=function(){s=f.useTemplate(c.RowDecorator).appendTo(Z.DecoratorsContainer),l=f.useTemplate(c.ColumnDecorator).appendTo(Z.DecoratorsContainer)},this.convertCurrentPageToMobile=function(e){Ra.UpdateBatch.start(),u.renderMasterPage(e),u.renderPageData(e),Ra.UpdateBatch.finish()},this.renderMasterPage=function(e){Ra.UpdateBatch.start();var n=va.getCurrentPage();if(!h[Pa.getCurrentMasterPage().id]||e){h[Pa.getCurrentMasterPage().id]=!0;var i=n.getHeaderInstance(),a=n.getFooterInstance();i&&t(i,i.childInstances,e);var r=[];if(f.eachItem(n.childInstances,function(e,t){var n=t;!n.isMasterPageElement.isTrue()||n.hasFeature(oi.PageSection)||n.isType(ri.PageContentElement)||r.push(n)}),r.length>0){var o=Ha.getMasterPageContentSection();sa.addElementToContainerElement(o,r),Ha.refreshMobileMasterSectionInstanceVisibilty(),t(o,r)}a&&t(a,a.childInstances,e)}Ra.UpdateBatch.finish()},this.renderPageData=function(e){Ra.UpdateBatch.start();var n=va.getCurrentPage();p[n.id]&&!e||(p[n.id]=!0,f.eachItem(n.getPageContentInstance().getSectionsByPage(n),function(n,i){t(i,i.childInstances,e)})),Ra.UpdateBatch.finish()},this.resetMasterPage=function(e,t){if(e=e?e:Pa.getCurrentMasterPage(),h[e.id]){var n=va.getCurrentPage();delete h[e.id];var i=Pa.getMasterPageRootInstances(e.id);i&&f.eachItem(i,function(e,t){o(t)});var a=f.getValues(t);a.length>0&&(sa.addElementToContainerElement(n,a),Pa.setAsMasterPageRoots(a))}},this.resetPageData=function(e){if(e=e?e:va.getCurrentPage(),p[e.id]){delete p[e.id],f.eachItem(e.getPageContentInstance().getSectionsByPage(e),function(e,t){t.isMasterPageElement.isFalse()&&o(t)});var t=[];f.eachItem(e.childInstances,function(e,n){n.isMasterPageElement.isFalse()&&!n.shouldDisplayOnMobile()&&(n.isType(ri.group)?t.push(n):o(n))}),f.eachItem(t,function(e,t){o(t)}),o(e,{removeDescendant:!1})}},this.resetRowsAndCells=function(){d&&f.eachEntry(d,function(e,t){t.removeFromContainer(),delete d[t.id]}),g={}},this.deActivateRowsRendering=function(){m.unbindAll()},this.addInstanceToContainer=function(t,n,i){if(t.canContainerRows()&&!t.isType(ri.TabsPanel)&&n.hasFeature(oi.HasResponsiveItem)&&n.shouldBeWithLayoutOnMobile()&&n.isInstanceVisible()){if(!ba.isElementVisible(t)){var a=t.visibilityChangedEvent.one(function(){Ra.addInstanceToContainer(t,n)});return void m.add(a)}Ra.UpdateBatch.start(),i||r(Oa.createInstanceOrderableElement(n));var o=Dn.getOrCreateCellFromInstance(n),s=xn.getOrCreateRowByCellItem(o,t);s.updateCurrentCells(o),s.build(e(t)),s.setContainerInstance(t),s.initializeCellItems(),Ra.UpdateBatch.finish()}},this.addInstancesToContainer=t,this.removeInstancesFromContainer=o,this.getDroppingAreas=function(e){var t=[],i=e.getCellItem(),a=i.getRowParent(),r=e.parentInstance,o=r.getRowsFromContainer();if(0===o.length)return t;o.orderBy(function(e){return e.getOrder()});var s=o[0].getArea(),l=10,c=4,u=f.getValues(a.getCells()).length>1;(o[0].id!==a.id||u)&&t.push({type:Ra.MarkingTypes.Row,isFirst:!0,area:f.extendedAreaInfo({left:s.left-l,right:s.right+l,top:s.top-c,bottom:s.top+c}),item:o[0],above:!0,rowArea:s,markingData:{left:s.left,top:s.top,width:s.width}});for(var d=0;d<o.length-1;d++){var g=o[d],p=o[d+1],h=g.getArea(),m=p.getArea(),v=f.min([h.left,m.left]).value,y=f.max([h.right,m.right]).value;(o[d].id!==a.id&&o[d+1].id!==a.id||u)&&t.push({type:Ra.MarkingTypes.Row,area:f.extendedAreaInfo({left:v-l,right:y+l,top:h.bottom-c,bottom:m.top+c}),rowArea:h,item:g,above:!1,markingData:{left:v,top:(h.bottom+m.top)/2,width:f.max([h.width,m.width]).value}})}s=o[o.length-1].getArea(),(o[o.length-1].id!==a.id||u)&&t.push({type:Ra.MarkingTypes.Row,isLast:!0,area:f.extendedAreaInfo({top:s.bottom-c,bottom:s.bottom+c,left:s.left-l,right:s.right+l}),above:!1,rowArea:s,item:o[o.length-1],markingData:{left:s.left,top:s.bottom,width:s.width}});for(var d=0;d<o.length;d++)t=f.merge(t,n(i,o[d]));return t},this.toggleAreaMarking=function(e,t){s.quickToggle(void 0!==e&&e.type===u.MarkingTypes.Row,function(){var n=e.markingData,i=f.extendedAreaInfo({top:n.top-5,left:n.left,right:n.left+n.width,bottom:n.top+5});s.setArea(f.translateArea(i,t))}),l.quickToggle(void 0!==e&&e.type===u.MarkingTypes.Column,function(){var n=e.markingData,i=f.extendedAreaInfo({top:n.top,left:n.left-5,right:n.left+5,bottom:n.top+n.height});l.setArea(f.translateArea(i,t))})},this.addRowToPage=function(e){d[e.id]=e},this.removeRowFromPage=function(e){delete d[e.id]},this.getRowById=function(e){return d[e]},this.addCellToPage=function(e){g[e.id]=e},this.removeCellFromPage=function(e){delete g[e.id]},this.getCellById=function(e){return g[e]},this.getCellsSpacing=function(){return va.getCoordinator().getPropertyValue("cellsSpacing")},this.getRowContentWidth=i}),Ha=fs(function(){function e(){w=!0,b={},C={},I={},S={};var e=va.Events.PageChanged.bind(t);v.add(e),y.activate()}function t(){g.start();var e=va.getCurrentPageId(),t=va.getCurrentPage(),a=b[e],r=C[e],o=I[e],s=Pa.getCurrentMasterPage().id;o||(o=sa.getInstancesWithHierarchyFromRoots(t),I[e]=o);var l=o.allInstances;S[s]||(S[s]=sa.getInstancesWithHierarchyFromRoots(Pa.getMasterPageRootInstances())),a||u.startEditingState(),r||(f.each(l,function(e,t){t.activateState(Oi.MobileState,!0,!1)}),Er.performUpdateOnRenderingFinished(function(){var e=f.mapToDictionary(l,f.returnValue,f.defaultIdFunction);f.eachEntry(sa.getAllPageInstances(),function(t,n){e[t]||n.activateState(Oi.MobileState,!0,!1)})})),f.each(l,function(e,t){var n=t.wasEditedInMode()||fa.isAffectedInState(va.getCoordinator(),t,m);!n&&t.isConvertedToMobile()&&t.toggleVisibilityInMode(!t.shouldBeHiddenInMode())}),u.Flags.IsActivated.setTrue(),n(),i(l),la.refreshElementsLayout(f.getValues(sa.getAllPageInstances())),ba.invalidateAreas(f.getValues(sa.getAllPageInstances())),aa.setReassignmentRequired(!0),g.finish(),a||u.endEditedState(),w&&(w=!1)}function n(){var e=va.getCoordinator(),t=e.getPropertyValue("isSiteWasEditedInMode");e.setPropertyValue("contentWidth",je),320===je&&360===e.getPropertyValue("contentWidth")&&(e.setPropertyValue("sectionPadding",f.minValue([e.getPropertyValue("sectionPadding")-10,0])),e.setPropertyValue("pagePadding",f.minValue([e.getPropertyValue("pagePadding")-10,0]))),t||(e.setPropertyFieldsValues("columnsGrid",{margin:10,gutter:5,columnsNumber:4}),e.setPropertyValue("isSiteWasEditedInMode",!0),e.setPropertyValue("pagePadding",0),e.setPropertyValue("sectionPadding",10),e.setPropertyValue("sectionVerticalPadding",20),e.setPropertyValue("cellsSpacing",5),e.setPropertyValue("rowsSpacing",10),e.setPropertyValue("sectionsSpacing",10))}function i(e){var t=va.getCurrentPage(),n=b[t.id];C[t.id]||(C[t.id]=!0),n?Ra.renderMasterPage():(b[t.id]=!0,f.each(e,function(e,t){o(t);var n=t.wasEditedInMode();!n&&t.isConvertedToMobile()&&t.isVisibleInMode()&&t.adjustInstanceToViewPort()}),f.each(e,function(e,t){t.isConvertedToMobile()&&t.isVisibleInMode()&&!t.isUpdatedToViewPort()&&t.updateInstanceToViewPort()}),Ra.convertCurrentPageToMobile(),f.each(e,function(e,t){!t.wasEditedInMode()&&t.isConvertedToMobile()&&t.isVisibleInMode()&&this.setAsEditedInMode(!0),fa.getPropertyValueInCustomState(t.properties.sizeAndPosition,u.MobileStateName,va.getCoordinator().id,t)||fa.setValueInCustomState(t,"sizeAndPosition",fa.getEditedState(),t.getPropertyValue("sizeAndPosition"))}))}function a(){y.deactivate(),Er.performUpdateOnRenderingFinished(function(){r()},"MobileVersionViewManager-updatePositions")}function r(){Er.performOnFramesLayoutUpdade(function(){window.setTimeout(function(){ba.invalidateAreas(f.getValues(sa.getAllPageInstances())),y.activate(),d.finish()},0)},"MobileVersionViewManager-positions")}function o(e){P[e.id]||!Pa.isMasterPageRootInstance(e)||e.hasFeature(oi.PageSection)||e.isType(ri.PageContentElement)||(P[e.id]=e)}function s(e,t){o(e),e.wasEditedInMode()||e.adjustInstanceToViewPort();var n=e.childInstances;if(e.isType(ri.group)&&(n=f.merge([],e.childInstances)),e.updateInstanceToViewPort(),e.parentInstance){if(!ba.isElementVisible(e.parentInstance)){var i=e.parentInstance.visibilityChangedEvent.one(function(){s(e,t)});return void v.add(i)}Ra.addInstanceToContainer(e.parentInstance,e,t)}f.each(n,function(e,n){s(n,t)}),e.wasEditedInMode()||(e.setAsEditedInMode(!0),fa.setValueInCustomState(e,"sizeAndPosition",fa.getEditedState(),e.getPropertyValue("sizeAndPosition")))}function l(){return p||(p=sa.getInstanceByID(h),p||(de.disableOperationsRecording("createMasterPageContentSection"),p=sa.addSection(va.getCurrentPage().getPageContentInstance(),{elementID:h}),p.properties.isVisibleInMode.value=!1,p.setPropertyValue("isVisibleInMode",!0),p.setPropertyValue("order",-1),Pa.setAsMasterPageRoots(p),de.enableOperationsRecording("createMasterPageContentSection"))),p}function c(){return p.childInstances.length>0&&f.grep(p.childInstances,function(e){return e.isVisibleInMode()&&e.shouldDisplayOnMobile()}).length>0}var u=this;u.Flags={IsInMobileContext:O.create(!1),IsActivated:O.create(!1)},u.Events={MobileEditingStarted:x.create(),MobileEditingFinished:x.create(),SwitchingBetweenDevices:x.create(),AfterSwitchBetweenDevices:x.create()};var d=Ae.create();this.MobileRefreshingPositionsBatch=d;var g=Ae.create();this.updateBatch=g;var p,h="masterPageContentSectionId",m="MobileResponsiveStateId1234";u.MobileStateName=m;var v,y,b={},C={},I={},S={},P={},w=!1;this.initializeState=function(){var e={};e[m]={priority:6,id:m,responsiveState:!0},Oi[m]||Mi.registerElementStates(e)},this.initialize=function(){y=x.createEventListener([{event:fa.Events.NamedPropertyValueChanged,name:"sizeAndPosition"},aa.Events.ElementsReordered,Ra.CellsContainerChangedEvent,{event:fa.Events.NamedPropertyValueChanged,name:"rowsSpacing"},{event:fa.Events.NamedPropertyValueChanged,name:"cellsSpacing"},{event:fa.Events.NamedPropertyValueChanged,name:"pagePadding"},{event:fa.Events.NamedPropertyValueChanged,name:"sectionPadding"},{event:fa.Events.NamedPropertyValueChanged,name:"sectionVerticalPadding"},{event:fa.Events.NamedPropertyValueChanged,name:"innerRowPadding"},{event:fa.Events.NamedPropertyValueChanged,name:"cellsHorizontalAlignment"},{event:fa.Events.NamedPropertyValueChanged,name:"cellsVerticalAlignment"},{event:fa.Events.NamedPropertyValueChanged,name:"innerRowsSpacing"},{event:fa.Events.NamedPropertyValueChanged,name:"staticMargin"},{event:fa.Events.NamedPropertyValueChanged,name:"cellHorizontalAlignment"},{event:fa.Events.NamedPropertyValueChanged,name:"isVisibleInMode"},Z.Events.NavigationFinished],function(){a()})},this.initializeMobileForViewer=function(){sa.Events.InstanceCreatedEvent.bind(function(e){e.activateState(Oi.MobileState,!0,!1)}),v=x.createBindingsCollection(),u.Flags.IsInMobileContext.setTrue(),u.startMobileState(),e()},this.initializeMobileForViewer=function(){v=x.createBindingsCollection(),u.Flags.IsInMobileContext.setTrue(),u.startMobileState(),e()},this.refreshMobileMasterSectionInstanceVisibilty=function(){u.Flags.IsInMobileContext.isTrue()&&l().isDisplayed.setValue(c(),"noMasterPageContentSections")},this.getMobileState=function(){return{type:Oi[u.MobileStateName],source:va.getCoordinator().id}},this.resetSectionsOrderes=function(){aa.beginReorderingBatch(),f.eachItem(wr.getCurrentPageOrderedSections(),function(e,t){fa.setValueInCustomState(t,"order",fa.getEditedState(),void 0)}),aa.endReorderingBatch()},this.startMobileState=function(){var e=va.getCoordinator(),t={name:m,title:"Mobile Editing",elementName:"Mobile"};Wi.setEditingClass(Wi.MobileDesktopViewClass),fa.setCustomGlobalState(t,e),Wi.Flags.PcEditing.setFalse()},this.startEditingState=function(){var e=va.getCoordinator(),t={name:m,title:"Mobile Editing",elementName:"Mobile"};fa.startStateEditingMode({sourceInstance:e,StateMode:t})},this.endEditedState=function(){fa.endStateEditingMode()},this.endMobileState=function(){var e=va.getCoordinator(),t={name:m,title:"Mobile Editing",elementName:"Mobile"};fa.removeGlobalState(t,e),Wi.setEditingClass(Wi.PcDesktopViewClass)},this.addInstanceToMobile=function(e,t){var n=e.hasFeature(oi.PageSection);if(n||e.hasFeature(oi.HasResponsiveItem)){var i=f.getValues(sa.getAllPageInstances());g.start(),Er.startRenderingBatch(),Ra.UpdateBatch.start(),n?f.each(e.childInstances,function(e,n){s(n,t)}):s(e,t),la.refreshElementsLayout(e.parentInstance),la.refreshElementsLayout(e),aa.setReassignmentRequired(!0),Ra.UpdateBatch.finish(),Er.finishRenderingBatch(),g.finish(),ba.invalidateAreas(i)}},this.getPageInstancesHierarchiesData=function(e){return u.Flags.IsInMobileContext.isTrue()&&I[e.id]?I[e.id].rootInstancesHierarchies:void 0},this.getMasterPageInstancesHierarchiesData=function(e){return e=e?e:Pa.getDefaultMasterPageId(),u.Flags.IsInMobileContext.isTrue()&&S[e]?S[e].rootInstancesHierarchies:void 0},this.getMasterPageContentSection=l}),qa=function(){function e(t,n){t.childElements&&f.eachItem(t.childElements,function(i,a){var r=n(a,t);return r===!1?!1:(r=e(a,n),r===!1?!1:void 0)})}function t(e,n,i,a){return i===n?(a.setValue(e),!1):(i++,e.childElements&&f.eachItem(e.childElements,function(e,r){return t(r,n,i,a)}),void 0===a.getValue())}function n(e,t,i){return e.type===t?(i.setValue(e),!1):(e.childElements&&f.eachItem(e.childElements,function(e,a){return n(a,t,i)}),void 0===i.getValue())}function i(e,t,n){return e.id===t?(n.setValue(e),!1):(e.childElements&&f.eachItem(e.childElements,function(e,a){return i(a,t,n)}),void 0===n.getValue())}var a=function(e,t){e=f.quickExtend({structures:[],connections:{},customStatesProperties:{},defaultProperties:void 0},e),t=f.quickExtend({valueChangeCallback:cs},t);var n=f.uniqueID();this.hierarchy=e,this.id=n,this.name="Hierarchy"+n,this.options=t};return a.prototype.getStructureIds=function(){var e={};return this.hierarchy.idsInHierarchy?f.quickExtend({},this.hierarchy.idsInHierarchy):(this.eachStructure(function(t){e[t.id]=!0}),e)},a.prototype.eachStructure=function(t){f.eachItem(this.hierarchy.structures,function(n,i){var a=t(i);return a===!1?!1:(a=e(i,t),a===!1?!1:void 0)})},a.prototype.getStructureByIndex=function(e){var n=new P(void 0);return f.eachItem(this.hierarchy.structures,function(i,a){return t(a,e,0,n)}),n.getValue()},a.prototype.getHierarchy=function(){return this.hierarchy},a.prototype.addHierarchyAndApply=function(e){var t=this;return e=f.quickExtend({defaultProperties:this.hierarchy.defaultProperties,afterAddingCallback:function(){t.applyHierarchy()}},e),sa.addInstancesHierarchyFromStructure(this.hierarchy.structures,e)},a.prototype.addHierarchyFromNode=function(e,t){t=f.quickExtend({defaultProperties:this.hierarchy.defaultProperties,includeNode:!0,includeChildren:!0},t);var n,i=this.getStructureById(e);if(t.includeChildren)t.includeNode?n=sa.addInstancesHierarchyFromStructure([i],t):i.childElements&&(n=sa.addInstancesHierarchyFromStructure(i.childElements,t));else if(t.includeNode){var a=i.childElements;i.childElements=[],n=sa.addInstancesHierarchyFromStructure([i],t),i.childElements=a}return n},a.prototype.applyHierarchy=function(){var e=this.hierarchy;ba.VisibilityUpdateBatch.start(),fa.UpdateBatch.start(),ba.UpdateBatch.start(),ia.applyConnections(e.connections.targetConnections),ia.applyConnections(e.connections.sourceConnections),fa.addCustomStatesPropertiesValues(e.customStatesProperties),fa.UpdateBatch.finish(),ba.VisibilityUpdateBatch.finish(),ba.UpdateBatch.finish()},a.prototype.getStructureByType=function(e){var t=new P(void 0);return f.eachItem(this.hierarchy.structures,function(i,a){return n(a,e,t)}),t.getValue()},a.prototype.getStructureById=function(e){var t=new P(void 0);return f.eachItem(this.hierarchy.structures,function(n,a){return i(a,e,t)}),t.getValue()},a.create=function(e,t){return new a(e,t)},a}(),Ua={FontFamily:"fontFamily",TextColor:"color",HoverColor:"hoverColor",BackgroundColor:"backgroundColor",FontSize:"fontSize",LineHeight:"lineHeight",LetterSpacing:"letterSpacing",UseUnderline:"useUnderline",BorderColor:"borderColor",BorderWidth:"borderWidth",BorderStyle:"borderStyle"},$a={ParagraphTitle:"title",MenuButton:"menu",PageTitle:"pageTitle",HeadingXL:"headingXL",HeadingM:"headingM",HeadingL:"headingL",HeadingS:"headingS",BodyL:"bodyL",BodyM:"bodyM",BodyS:"bodyS",BodyXS:"bodyXS"},Wa={Text:"Text",Link:"Link",Marked:"Marked",Separator:"Separator"},ja={Heading:"heading",SubHeading:"sub-heading",Normal:"normal",Link:"link",Marked:"marked",Separator:"separator"},Ga=S.create(ja).extendValue(ja.Heading,{contentType:Wa.Text}).extendValue(ja.SubHeading,{contentType:Wa.Text}).extendValue(ja.Normal,{contentType:Wa.Text,isDefault:!0}).extendValue(ja.Link,{contentType:Wa.Link}).extendValue(ja.Marked,{contentType:Wa.Marked}).extendValue(ja.Separator,{contentType:Wa.Separator}),Xa=fs(function(){function e(e){switch(e){case Ua.FontFamily:return"font";case Ua.TextColor:return"fontColor";case Ua.FontSize:return"fontSize";default:return}}function t(e){switch(e){case"font":return Ua.FontFamily;case"fontColor":return Ua.TextColor;case"fontSize":return Ua.FontSize;default:return}}function n(e,t){var n=t[e];return{name:e,fontSize:n.fontSize,color:n.color,fontFamily:n.fontFamily}}var i=this;this.TextStylesChanged=x.create(),this.TextStyleClassNames=f.mapEntry($a,function(e){return"theme-text-style-{0}".format(e)}),this.getInlineStyleClass=function(e){return"theme-inline-text-style-{0}".format(e)},this.InlineTextStyleClassNames=Ga.map(function(e,t){return e.contentType===Wa.Text?i.getInlineStyleClass(t):void 0}),this.initialize=function(){va.whenCoordinatorAvailable(function(){f.eachEntry($a,function(e,t){var n=f.rule(".theme-text-style-"+t+" {}");Xa.TextStylesChanged.bindAndExecute(function(){var e=Xa.getTextStyleInformation(t);n.css({"font-family":er.evaluateFontBinding(e.fontFamily),color:Ka.evaluateColorBinding(e.color,!0),"font-size":e.fontSize})})})})},this.getTextStyleFromClass=function(e,t){var n=t?/^theme-inline-text-style-([\w-]+)$/i:/^theme-text-style-(\w+)$/i,i=n.exec(e);return i?i[1]:void 0},this.getTextStyles=function(){var e=va.getCoordinator(),t=e.getPropertyValue("textStyles"),i=[];return f.eachEntry(t,function(e){i.push(n(e,t))}),i},this.getDefaultInlineTextStyles=function(){return Ga.map(function(e,t){return e.contentType===Wa.Text?{name:t,title:e.title,isDefault:e.isDefault}:void 0})},this.getTextStyleInformation=function(e){return n(e,va.getCoordinator().getPropertyValue("textStyles"))},this.getElementTextStyle=function(e){var t=e.getPropertyValue("namedTextStyle");return t?Xa.getTextStyleInformation(t):null},this.evaluateElementTextStyle=function(t,n,i){if(void 0===i&&(i=t.getPropertyValue(e(n))),null===i){var a=Xa.getElementTextStyle(t);a&&(i=a[n])}return i},this.getCustomPropertyTextStyle=t}),Ya={Dark:"dark",Light:"light"},Ka=fs(function(){function e(e){var t=va.getCoordinator().getPropertyValue("themeColors"),n={palette:f.map(t.palette,function(e){return{color:e.color,variations:e.variations.clone()}}),variation:t.variation},i=e(n);i&&va.getCoordinator().setPropertyValue("themeColors",n)}var t=this,n=5,i=5;this.getNumberOfMainColors=function(){return n},this.getNumberOfMainColorVariations=function(){return i},this.DisableColorsTransition=Ae.create(),this.CurrentThemePalette=_.createReferenceObject(),this.ThemeColorsChanged=x.create(),this.SitePresetPalettes=new $t,this.ThemeColors=f.buildArray(n,function(){return{MainColor:_.create(void 0,{equalityComparer:f.colorsEqualityComparer,valueConverter:function(e){return f.Color(e).toHEX()}}),Variations:f.buildArray(i,function(){return _.create(void 0,{equalityComparer:f.colorsEqualityComparer,valueConverter:function(e){return f.Color(e).toHEX()}})})}}),this.BackgroundClassNames=w.create(function(){for(var e=[],t=0;t<Ka.getNumberOfMainColors();t++){e.push("theme-background-color-{0}".format(t));for(var n=0;n<Ka.getNumberOfMainColorVariations();n++)e.push("theme-background-color-{0}-{1}".format(t,n))}return e}),this.TextColorClassNames=w.create(function(){for(var e=[],t=0;t<Ka.getNumberOfMainColors();t++){e.push("theme-text-color-{0}".format(t));for(var n=0;n<Ka.getNumberOfMainColorVariations();n++)e.push("theme-text-color-{0}-{1}".format(t,n))}return e}),this.initialize=function(){f.eachItem(Ka.ThemeColors,function(e,t){var n=f.rule(".theme-text-color-"+e+" {}"),i=f.rule(".theme-background-color-"+e+" {}");t.MainColor.onValueChanged(function(e){n.css("color",e),i.css("background-color",e)}),f.eachItem(t.Variations,function(t,n){var i=f.rule(".theme-text-color-"+e+"-"+t+" {}"),a=f.rule(".theme-background-color-"+e+"-"+t+" {}");n.onValueChanged(function(e){i.css("color",e),a.css("background-color",e)})})}),Ka.CurrentThemePalette.valueChangedEvent.bind(function(e){for(var t=e.palette,a=0;n>a;a++){var r=t[a],o=r.variations,s=Ka.ThemeColors[a],l=s.Variations;s.MainColor.setValue(r.color);for(var c=0;i>c;c++)l[c].setValue(o[c])}Ka.ThemeColorsChanged.fireNew()}),va.whenCoordinatorAvailable(function(e){fa.Events.NamedPropertyValueChanged.bindAndExecute("themeColors",function(){var t=e.getPropertyValue("themeColors");Ka.CurrentThemePalette.setValue(t)}),fa.Events.NamedPropertyValueChanged.bindAndExecute("sitePresetPalettes",function(){var t=e.getPropertyValue("sitePresetPalettes");Ka.SitePresetPalettes.syncrhonize(t)})})},this.saveSitePresetPalette=function(e){e=Ka.clonePalette(e),e.id=f.uniqueID();var t=va.getCoordinator(),n=t.getPropertyValue("sitePresetPalettes").clone();n.push(e),t.setPropertyValue("sitePresetPalettes",n)},this.removeSitePresetPalette=function(e){var t=va.getCoordinator(),n=t.getPropertyValue("sitePresetPalettes").clone();n=f.grep(n,function(t){return t.id!==e}),t.setPropertyValue("sitePresetPalettes",n)},this.getCurrentPalette=function(){return Ka.clonePalette(va.getCoordinator().getPropertyValue("themeColors"))},this.getColorBindingFromClass=function(e){var t=/^theme-text-color-(\d+)(?:-(\d+))?$/i.exec(e);return t||(t=/^theme-background-color-(\d+)(?:-(\d+))?$/i.exec(e)),t?Ka.createThemeColorBinding(parseInt(t[1]),{variation:t[2]?parseInt(t[2]):void 0}):void 0},this.generateObservableThemeColorsCollection=function(e){var n=new $t;return n.put(f.map(e,function(e){return{id:f.weakID(),color:e}})),t.ThemeColorsChanged.bind(function(){n.invalidateAllItems()}),n},this.generateThemeColorsPalette=function(e,t){t=f.quickExtend({colors:[],fixedHue:!1,fixedSaturation:!1,fixedBrightness:!1},t);var n=t.colors,i=t.fixedHue,a=t.fixedSaturation,r=t.fixedBrightness,o=t.minBrightness,s=t.maxBrightness;return f.map(n,function(t){var n=f.Color(t).toHSL();return Ka.createThemeColorBinding(e,{fixedHue:i?n[0]:void 0,fixedSaturation:a?n[1]:void 0,fixedBrightness:r?n[2]:void 0,minBrightness:o,maxBrightness:s,variation:!1})})},this.createThemeColorBinding=function(e,t){t=f.extend({opacity:1,brightness:0},t);var n=t.variation;return void 0===n&&(n=Ka.getMainColorVariationIndex(e)),{mainColor:e,variation:n,opacity:t.opacity,brightness:t.brightness,fixedHue:t.fixedHue,fixedSaturation:t.fixedSaturation,fixedBrightness:t.fixedBrightness,minBrightness:t.minBrightness,maxBrightness:t.maxBrightness}},this.adjustThemeColorBinding=function(e,t){return t=f.extend({},t),Ka.createThemeColorBinding(e.mainColor,{variation:e.variation,opacity:f.valueOrDefault(t.opacity,e.opacity),brightness:f.valueOrDefault(t.brightness,e.brightness)})},this.themeColorBindingEqualityComparer=function(e,t){return e&&t?e.mainColor===t.mainColor&&e.variation===t.variation&&f.valueOrDefault(e.opacity,1)===f.valueOrDefault(t.opacity,1)&&f.valueOrDefault(e.brightness,1)===f.valueOrDefault(t.brightness,1):e===t;
},this.evaluateColorBinding=function(e,n){if(n=f.valueOrDefault(n,!1),!e)return e;if(In.isGradient(e))return In.mapGradientColorValues(e,function(e){return Ka.evaluateColorBinding(e)});var i=e.mainColor;if(void 0!==i){var a=e.variation,r=f.valueOrDefault(e.opacity,1),o=f.valueOrDefault(e.brightness,0),s=e.fixedHue,l=e.fixedSaturation,c=e.fixedBrightness,u=e.minBrightness,d=e.maxBrightness,g=f.Color(Ka.getThemeColor(i,a));if(g=In.adjustOpacity(g,function(){return r}),0!==o){var p=t.getCurrentPaletteVariation(),h=p===Ya.Light?1:-1;g=In.adjustColorComponent(g,pt.L,function(e){return f.normalizeToRange(f.adjustFraction(e,2)+f.adjustFraction(o,2)*h,0,1)})}return void 0!==s&&(g=In.setColorComponent(g,pt.H,s)),void 0!==l&&(g=In.setColorComponent(g,pt.S,l)),void 0!==c&&(g=In.setColorComponent(g,pt.L,c)),void 0===u&&void 0===d||(g=In.adjustColorComponent(g,pt.L,function(e){return f.normalizeToRange(e,f.valueOrDefault(u,0),f.valueOrDefault(d,1))})),n?g.toCSS():g}return e},this.getOriginalThemeColorBrightness=function(e){return e=Ka.adjustThemeColorBinding(e,{brightness:0}),In.getBrightness(Ka.evaluateColorBinding(e))},this.getCurrentPaletteVariation=function(){return Ka.CurrentThemePalette.getValue().variation},this.getMainColorVariationIndex=function(e){var t=Ka.getThemeColor(e);return Ka.getThemeColorBrightnessIndex(In.getBrightness(t),Ka.getCurrentPaletteVariation())},this.getThemeColorBrightnessIndex=function(e,t){var a=1/i,r=Math.min(Math.floor(e/a),i-1);return t===Ya.Light&&(r=n-1-r),r},this.getThemeColorBrightnessRange=function(e){var t=1/i,n=Math.floor(100*e/(100*t))*t,a=n+t-.01;return{min:n,max:a}},this.isColorBinding=function(e){return f.isPlainObject(e)?Ka.isSolidColorBinding(e)||Ka.isGradientColorBinding(e):!1},this.isSolidColorBinding=function(e){return f.isPlainObject(e)?void 0!==e.mainColor:!1},this.isGradientColorBinding=function(e){return In.isGradient(e)?f.any(In.getGradientColorValues(e),function(e){return Ka.isSolidColorBinding(e)}):!1},this.getBoundMainColorIndex=function(e){return f.isPlainObject(e)?e.mainColor:void 0},this.getBoundMainColorVariationIndex=function(e){return f.isPlainObject(e)?e.variation:void 0},this.getThemeColor=function(e,t){var n=va.getCoordinator(),i=n.getPropertyValue("themeColors"),a=i.palette[e];return void 0!==t&&t!==!1?a.variations[t]:a.color},this.setThemeColors=function(e){va.getCoordinator().setPropertyValue("themeColors",e)},this.changeMainColor=function(t,n){e(function(e){var i=e.variation;return e.palette[t]={color:n,variations:Ka.generateColorsVariations(n,i)},!0})},this.changePaletteVariation=function(t){e(function(e){if(e.variation===t)return!1;e.variation=t;for(var n=e.palette,i=0;i<n.length;i++)n[i].variations=f.reverseArray(n[i].variations);return!0})},this.getPaletteVariation=function(){return Ka.CurrentThemePalette.getValue().variation},this.generateColorsVariations=function(e,t){t=f.valueOrDefault(t,Ya.Light),e=f.Color(e);for(var n=In.getBrightness(e),a=1/i,r=f.adjustFraction(Math.round(100*n)%Math.round(100*a)/100,2),o=[],s=0;i>s;s++)o.push(f.adjustFraction(Math.min(.98,Math.max(.02,s*a+r)),2));var l=f.map(o,function(t){return In.changeBrightness(e,t).toHEX()});return l[Ka.getThemeColorBrightnessIndex(n,Ya.Dark)]=e.toHEX(),t===Ya.Light&&l.reverse(),l},this.generatePalette=function(e,t){t=f.valueOrDefault(t,Ya.Light);var n=[];return f.eachItem(e,function(e,i){var a=Ka.generateColorsVariations(i,t);n.push({color:i,variations:a})}),{palette:n,variation:t}},this.getPresetPalettes=function(){var e=[["#F2F1E1","#CCE0C5","#3C3D3F","#54604F","#B7D9C0"],["#E4D7C6","#CFCECD","#DF3732","#29282D","#8F8C87"],["#F6F7F2","#EEE252","#E55516","#262B27","#8DA641"],["#ECE8CF","#918C6E","#112838","#33301D","#D90D3D"],["#C8DCBF","#E0FCEC","#5D9E9A","#5D9E9A","#DB0148"],["#FB6900","#004853","#007E80","#00B9BD","#E03912"],["#C44D58","#556270","#FF6B6B","#262B27","#C7F464"],["#87244C","#30162B","#F5F2C4","#BCCF9F","#3FB094"],["#F4F3E3","#BADDDD","#F28C8C","#000000","#F3C2AD"],["#000000","#7964E4","#6EE264","#FFFFFF","#A5A5A5"],["#FFFFFF","#FFF538","#FF006F","#000000","#FFB300"],["#FCFDFF","#EDEDF2","#A6AEC1","#3B414C","#00B5B5"],["#FDFAEB","#FAEDDF","#F7A29E","#3B3F49","#F3C6B9"],["#FFFFFF","#F3F4E5","#A1C1BE","#59554E","#E2E3D9"],["#040004","#413D3D","#FA023C","#C8FF00","#4B000F"],["#E6DCDB","#FE016B","#0D0F19","#0D0F19","#5E666C"],["#E7EDEA","#CEECEF","#FB0C06","#030D4F","#FFC52C"],["#ADB3BA","#0CCFC2","#FF2E43","#382F32","#F7921E"]],t=[];return f.each(e,function(e,n){t.push(Ka.generatePalette(n))}),t},this.clonePalette=function(e){return{palette:f.map(e.palette,function(e){return{color:e.color,variations:Oe.clone(e.variations)}}),variation:e.variation}},this.palettesEqualityComparer=function(e,t){return e&&t?e.variation!==t.variation?!1:f.arraysEqual(e.palette,t.palette,{equalityComparer:function(e,t){return In.bindableColorsEqualityComparer(e.color,t.color)&&f.arraysEqual(e.variations,t.variations,{equalityComparer:In.bindableColorsEqualityComparer})}}):e===t}}),Qa=function(){function e(e,t,n){var i=e._apiFunctions,a=i[t];if(a){e._isInApiCall=!0;var r=a.call(i,n);return e._isInApiCall=!1,r}}function t(e){e._pendingSizeEvent||(e._pendingSizeEvent=!0,e._instance.duringResizing.once(!1,function(){var t=e._instance.getContentSize();e._fireEvent(l.SIZE_CHANGE,{width:t.width,height:t.height}),e._pendingSizeEvent=!1}))}function n(e,t){if(!t){var n=e._instance.getPosition();e._fireEvent(l.POSITION_CHANGE,{left:n.left,top:n.top})}}function i(e,t){var n=[];f.eachEntry(t,function(t,i){var a=e._settingKeysMap[t];a&&n.push({name:a,value:i.value})}),n.length>0&&e._fireEvent(l.SETTING_CHANGE,n)}function a(e){return e?{id:e.id,name:e.title,title:e.pageTitle,isHomePage:e.isHomePage}:void 0}var r=C.extend("ApiFunctions",{init:function(e,t,n){n=f.quickExtend({apiInitialize:cs},n),this._instance=e,this._callbacks=n,this._callHandlers=t,this._apiInitialized=!1},API_INIT:function(){this._apiInitialized||(this._apiInitialized=!0,this._callbacks.apiInitialize())},SET_CALL_HANDLER:function(e){var t=e.callName,n=this._callHandlers[t];if(n&&!n.isActivated){n.isActivated=!0;var i=n.batch;i&&delete n.batch,e.oldCalls&&i&&f.eachItem(i,function(e,t){t()})}},RESET_CALL_HANDLER:function(e){var t=e.callName;delete this._callHandlers[t]},SET_PROPERTIES:function(e){this._instance.setPropertyFieldsValues("appProperties",e)},GET_PROPERTIES:function(e){var t=this._instance.getPropertyValue("appProperties");if(t&&f.isArray(e)){var n={};return f.eachItem(e,function(e,i){n[i]=t[i]}),n}return t||{}},GET_SETTINGS:function(e){var t=this._instance,n={};return f.isArray(e)?f.eachItem(e,function(e,i){n[i]=t.getAppSettingValue(i)}):"all"===e&&f.eachEntry(t.getAppSettings(),function(e){n[e]=t.getAppSettingValue(e)}),n},SET_SETTINGS:function(e){var t=this._instance;f.eachEntry(e,function(e,n){t.setAppSettingValue(e,n)})},RELOAD_APP:function(e){this._instance.reloadApp(e)},GET_PAGES:function(){var e=va.getStaticPagesData(),t=[];return f.eachEntry(e,function(e,n){t.push(a(n))}),t},CALL_HANDLER:function(e){var t=e.callName,n=this._callHandlers[t];return n&&n.callback?n.callback(e.params):void 0},SET_DOCUMENT_SIZE:function(e){this._instance.setDocumentSize(e)},SET_APP_SIZE:function(e){this._instance.setAppSize(e)},SET_APP_CONTENT_SIZE:function(e){this._instance.setAppContentSize(e)},ENABLE_TOP_POSITION:function(){var e=this,t=e._instance;if(!e._customZIndexController){var n=t.customZIndex.getValue();t.customZIndex.setValue(Z.MinExternalAppPropertyZindex);var i=na.Events.SwitchedToDesignMode.one(function(){e._customZIndexController&&e._customZIndexController.restore()});e._customZIndexController={restore:function(){t.customZIndex.setValue(n),i.unbind(),e._customZIndexController=void 0}}}},DISABLE_TOP_POSITION:function(){this._customZIndexController&&this._customZIndexController.restore()},SET_HASH:function(e){var t=e.hash;e.replace?En.replaceHash(t):En.setHash(t)}}),o="FeatureConnect.",s="FeatureImpl.",l={PROPERTY_CHANGE:"PROPERTY_CHANGE",SETTING_CHANGE:"SETTING_CHANGE",STYLE_CHANGE:"STYLE_CHANGE",URL_CHANGE:"URL_CHANGE",SIZE_CHANGE:"SIZE_CHANGE",POSITION_CHANGE:"POSITION_CHANGE",OUTSIDE_MOUSE_EVENT:"OUTSIDE_MOUSE_EVENT"},c=C.extend("ApiManager",{init:function(a){var c=this;a=f.quickExtend({isManage:!1},a);var u=a.instance,d=u.getAppSettings(),g=u.getAppSettingPrefix(),p={};f.eachEntry(d,function(e){u.isQueryParamSetting(e)||(p[g+e]=e)});var h={events:{id:"events",isActivated:!1,isBatchSupported:!1,callback:void 0}};if(this._settingKeysMap=p,this._bindings=[],this._pendingSizeEvent=!1,this._instance=u,this._isInApiCall=!1,this._callHandlers=h,!a.isManage){if(u.hasFeature(oi.FeatureExternalApp)){var m=u.getAppFeatures();f.eachEntry(m,function(e){var t=s+e;h[t]={id:t,activated:!1,isBatchSupported:!0,callback:function(t){u.fireFeatureEvent(e,t.eventName,t.params)}}})}if(u.hasFeature(oi.ConnectableExternalApp)){var m=u.getAppConnectableFeatures();f.eachEntry(m,function(e){var t=o+e;h[t]={id:t,activated:!1,isBatchSupported:!0,callback:function(t){var n=f.Deferred();return u.callConnectedFeatureFunction(e,t.functionName,t.params,function(e){n.resolve(e)}),n.promise()}}})}}c._addBinding(u.contentSizeChangedEvent.bind(f.firstArgProxy(t,c))),c._addBinding(pa.CurrentUrl.valueChangedEvent.bind(function(){c._fireEvent(l.URL_CHANGE,Za.getSessionUrl())})),c._addBinding(u.isInDragging.valueChangedEvent.bind(f.firstArgProxy(n,c)));var v=f.uniqueID();f(document).on("vmousedown."+v+" vmouseup."+v+" vclick."+v,function(e){c._fireEvent(l.OUTSIDE_MOUSE_EVENT,{type:e.type.substr(1)})}),c._addBinding({unbind:function(){f(document).off("."+v)}}),u.InstancePropertiesInitialized.onceTrue(function(){c._addBinding(u.propertyChangedEvent.bind("appProperties",function(e,t){if(!c._isInApiCall){var n=new P(!1),i=f.diffObjectKeys(t,e,n);n.getValue()&&c._fireEvent(l.PROPERTY_CHANGE,i)}})),c._addBinding(u.propertiesChanged.bind(f.firstArgProxy(i,c)))}),this._apiFunctions=new r(u,h,a.callbacks),this._frame=Za.addFrame(a.$iframe,function(t,n){return e(c,t,n)})},_addBinding:function(e){this._bindings.push(e)},_fireEvent:function(e,t){this._callFunction("events",{eventName:e,params:t})},deactivate:function(){f.eachItem(this._bindings,function(e,t){t.unbind()}),this._frame.remove(),delete this._frame},_callFunction:function(e,t,n){var i=this._callHandlers[e];if(i){var a=this._frame;if(i.isActivated)a.callFunction(e,t,n,!1);else if(i.isBatchSupported){var r=i.batch;r||(r=i.batch=[]),r.push(function(){a.callFunction(e,t,n,!0)})}}},callFeatureFunction:function(e,t,n,i,a){this._callFunction(s+e,{functionName:t,params:n,callInfo:i},a)},fireConnectedFeatureEvent:function(e,t,n,i){this._callFunction(o+e,{eventName:t,params:n,callInfo:i})}});return c}(),Ja=fs(function(){function e(e){return"{0}{1}".format(e.id,e.version)}function t(e){return"ExternalApp"+e}function n(e){e.implementedFeatures&&f.eachEntry(e.implementedFeatures,function(e,t){if(!t.isInternal){var n={};n[t.featureTypeName]={},ai.registerDefinition(oi,n)}})}function i(e){var t=Mo.createElement(e);ai.registerDefinition(ri,t)}function a(n,i){var a={};f.eachItem(n.settingCategories,function(e,t){f.quickExtend(a,t.settings)});var r=e(n);n=f.quickExtend(n,{uniqueId:r,elementTypeName:t(r),appSettingPrefix:r,settings:a,getSourceConnections:function(){if(i){var e=[];return i.defaultConnections&&f.eachItem(i.defaultConnections,function(t,i){i.sourceAppId===n.id&&e.push({targetAppId:i.targetAppId,feature:i.feature})}),e}},getAppContainer:function(){return i},getUrl:function(){return f.evaluateWhenFunction(n.url)}}),n.implementedFeatures&&f.eachEntry(n.implementedFeatures,function(e,t){t.isInternal?t.featureTypeName=t.featureInternalType:t.featureTypeName="ExternalApp"+e}),n.connectableFeatures&&f.eachEntry(n.connectableFeatures,function(e,t){t.featureTypeName="ExternalApp"+e})}function r(e){e=f.quickExtend(e,{getApps:function(t){return t=f.asArray(t),f.mapItem(e.apps,function(e){return f.oneOfValues(e.id,t)?e:void 0})}})}var o={},s={},l=this;this.initialize=cs,this.addAppContainer=function(e){e.id in s||(r(e),f.eachItem(e.apps,function(t,n){l.addApp(n,e)}),s[e.id]=e)},this.getAppContainer=function(e){return s[e]},this.createApp=cs,this.addApp=function(e,t){a(e,t);var r=e.uniqueId;r in o||(o[r]=e,n(e),i(e),this.createApp(e))}}),Za=fs(function(){function e(){return c++}function t(){Yn.addJSONListener(n)}function n(e,t){var n=e.id;if(n){var a=l[n];if(a&&a.origin===t)switch(e.type){case"call":var r=a.callback(e.content.funcName,e.content.params);e.callbackId&&f.when(r).done(function(t){i(n,e.callbackId,t)});break;case"response":var o=e.callbackId;o&&u[o]&&(u[o](e.content),delete u[o])}}}function i(e,t,n){r(e,"response",n,void 0,{callbackId:t})}function a(e,t,n,i,a){r(e,"call",n,i,{callName:t,oldCall:a})}function r(t,n,i,a,r){var o=l[t];if(o&&1===o.$iframe.length){var s=o.$iframe[0].contentWindow;if(s){var c={content:i,type:n};if(a){var d=e();c.callbackId=d,u[d]=a}r&&f.extend(c,r),s.postMessage(JSON.stringify(c),"*")}}}function o(e){delete l[e]}var s=w.create(function(){try{var e=sessionStorage.getItem("AppSessionID");return e||(e=""+f.uniqueID(),sessionStorage.setItem("AppSessionID",e)),e}catch(t){return""+f.uniqueID()}}),l={},c=1,u={};this.initialize=function(){t()},this.addFrame=function(e,t){var n=e[0].src,i=n.split("/"),r=i[0]+"//"+i[2],s="wzId=",c=n.indexOf(s)+s.length,u=n.indexOf("&",c),d=n.substr(c,u-c);return l[d]={callback:t,$iframe:e,origin:r},{id:d,callFunction:function(e,t,n,i){a(d,e,t,n,i)},remove:function(){o(d)}}},this.getSessionUrl=function(){var e=window.location.href;return Ia.isTemplate()&&(e=f.combinePaths(e,s.get(),pa.getFragment())),e},this.createIframeUrl=function(e,t){var n=e.getAppDefinition();t=f.quickExtend({baseUrl:"",apiType:""},t);var i=t.baseUrl,a=new E;a.appendDecoded=function(e){return a.append(encodeURIComponent(e))},a.appendParameter=function(e,t){return a.append("&").appendDecoded(e).append("=").appendDecoded(t)};var r=i.indexOf("?")>=0;a.append(i).conditionalAppend(!r,"?"),a.conditionalAppend(r,"&").append("wzId=").appendDecoded(t.frameId),a.appendParameter("wzInstanceId",e.id).appendParameter("wzAppId",n.id).appendParameter("wzAppV",n.version).appendParameter("wzApiType",t.apiType).appendParameter("wzDeviceType",Ha.Flags.IsInMobileContext.isTrue()?"mobile":"desktop").appendParameter("wzMode","view"),n.useSessionParams&&a.appendParameter("wzSessionId",s.getValue()),n.isCacheDisabled===!0&&a.appendParameter("wzCache",f.uniqueID());var o={};f.eachItem(e.elementType.querySettings,function(t,n){var i=e.getAppSettingValue(n);o[n]=i}),f.extend(o,t.additionalParams);var l={};l.wzCurrentUrl=this.getSessionUrl(),f.extend(l,t.encodedParams);var c=on.encode(JSON.stringify(l));return o.wzEncodeParams=c,a.append("&").append(f.param(o)),""+a},this.initialize()}),er=fs(function(){this.CurrentThemeFonts=_.createReferenceObject(),this.ThemeFonts={Heading1:_.createReferenceObject(),Heading2:_.createReferenceObject(),Body1:_.createReferenceObject(),Body2:_.createReferenceObject()},this.FontFamilyClassNames=w.create(function(){return f.map(["heading1","heading2","body1","body2"],function(e){return"theme-text-font-{0}".format(e)})}),this.initialize=function(){var e={heading1:er.ThemeFonts.Heading1,heading2:er.ThemeFonts.Heading2,body1:er.ThemeFonts.Body1,body2:er.ThemeFonts.Body2};er.CurrentThemeFonts.valueChangedEvent.bind(function(t){f.eachEntry(e,function(e,n){n.setValue(t[e])})}),f.eachEntry(e,function(e,t){var n=f.rule(".theme-text-font-"+e+" {}");t.onValueChanged(function(e){n.css("font-family",e)})}),va.whenCoordinatorAvailable(function(e){fa.Events.NamedPropertyValueChanged.bindAndExecute("themeFonts",function(){var t=e.getPropertyValue("themeFonts");er.CurrentThemeFonts.setValue(t)})})},this.getFontBindingFromClass=function(e){var t=/^theme-text-font-(\w+)$/i.exec(e);return t?er.createThemeFontBinding(t[1]):void 0},this.createThemeFontBinding=function(e){return{themeFont:e}},this.getThemeFontType=function(e){if(er.isFontBinding(e))switch(e.themeFont){case"heading1":return"Heading 1";case"heading2":return"Heading 2";case"body1":return"Body 1";case"body2":return"Body 2";default:return}},this.evaluateFontBinding=function(e){if(!e||!f.isPlainObject(e))return e;var t=e.themeFont;if(void 0!==t){var n=va.getCoordinator(),i=n.getPropertyValue("themeFonts");return i[t]}return e},this.isFontBinding=function(e){return f.isPlainObject(e)?void 0!==e.themeFont:!1},this.setThemeFonts=function(e){va.getCoordinator().setPropertyValue("themeFonts",e)},this.updateThemeFont=function(e,t){va.getCoordinator().setPropertyFieldValue("themeFonts",e,t)},this.getPresetFonts=function(){return[{heading1:"Open Sans Extra Bold",heading2:"Open Sans Condensed Light",body1:"Open Sans",body2:"Open Sans Semi Bold"},{heading1:"Lobster",heading2:"Source Sans Pro Semi Bold",body1:"Source Sans Pro Light",body2:"Source Sans Pro Semi Bold"},{heading1:"Dancing Script Bold",heading2:"Open Sans",body1:"Open Sans Condensed Light",body2:"Open Sans"},{heading1:"Oleo Script",heading2:"Open Sans",body1:"Open Sans",body2:"Open Sans"},{heading1:"Old Standard TT Bold",heading2:"Old Standard TT Italic",body1:"Source Sans Pro Light",body2:"Source Sans Pro Light"},{heading1:"Amatic SC Bold",heading2:"Amatic SC",body1:"Source Sans Pro Light",body2:"Amatic SC"},{heading1:"Kaushan Script",heading2:"Lato Light",body1:"Lato",body2:"Lato"},{heading1:"Julius Sans One",heading2:"Lato",body1:"Lato Light",body2:"Lato"},{heading1:"Bad Script",heading2:"Droid Sans Bold",body1:"Droid Sans",body2:"Droid Sans"},{heading1:"Neuton Bold",heading2:"Neuton",body1:"Neuton Extra Light",body2:"Neuton"},{heading1:"Nixie One",heading2:"Nixie One",body1:"Source Sans Pro Light",body2:"Nixie One"},{heading1:"Vollkorn Bold",heading2:"Vollkorn Italic",body1:"Vollkorn",body2:"Vollkorn"},{heading1:"Abril Fatface",heading2:"Abril Fatface",body1:"Open Sans",body2:"Abril Fatface"},{heading1:"Old Standard TT Italic",heading2:"Old Standard TT Bold",body1:"Old Standard TT",body2:"Old Standard TT"},{heading1:"Amatic SC Bold",heading2:"Amatic SC",body1:"Lato",body2:"Amatic SC"},{heading1:"Open Sans Extra Bold",heading2:"Droid Serif",body1:"Droid Serif",body2:"Droid Serif"},{heading1:"Gravitas One",heading2:"PT Mono",body1:"PT Mono",body2:"PT Mono"},{heading1:"Old Standard TT Bold",heading2:"Old Standard TT Italic",body1:"Old Standard TT",body2:"Old Standard TT"},{heading1:"PT Sans Narrow Bold",heading2:"PT Sans Bold",body1:"PT Serif",body2:"PT Sans"}]}}),tr=fs(function(){this.startProcessing=function(e){var t=f("<div></div>");t.html(e);var n=!1,i=e,a={processLinks:function(){return t.find("a[data-attached-link]").each(function(){var e=f(this),t=e.attr("data-attached-link"),i=f.tryParseJSON(t);if(i&&i.type===nt.Pages)e.addClass("internal-link"),e.attr("href",pa.getPageFullHtmlUrl(i.url)),n=!0;else{var a=e.hasClass("internal-link");a&&(e.removeClass("internal-link"),n=!0)}}),a},processCKObjectsForViewing:function(){return Gr.processCKObjectsForViewing(t)&&(n=!0),a},processImages:function(){return t.find("img[data-image-info]").each(function(){var e=f(this),t=f.tryParseJSON(e.attr("data-image-info"));if(t){var i=f.tryParseJSON(e.attr("data-image-size"));e.attr("src",se.resolveImageUrl(t,i)),n=!0}}),a},finish:function(){return n&&(i=t.html()),t.remove(),a},getProcessedContent:function(){return i},ifContentChanged:function(e){return n&&e(i),a}};return a}}),nr=fs(function(){function e(e){if("undefined"!=typeof WebzaiController&&WebzaiController.isAdmin())return!1;var t=n[e];return t&&t.limitation.isLimited?t:!1}var t=this,n={};this.Events={BeforeUpgradeDialogOpened:x.create(),AfterUpgradeDialogOpened:x.create(),UpgradeWindowClosed:x.create()};this.setLimitations=function(e){n={},f.quickExtend(n,e)},this.getFreemiumBannerLimitation=function(){return e("bannerFeature")},this.initialize=function(){t.setLimitations(Ia.getSiteLimitations())}}),ir={Global:"Global",Inline:"Inline"},ar={Default:"Default",TextInput:"TextInput",TextArea:"TextArea"},rr={Desktop:"Desktop",Mobile:"Mobile"},or=fs(function(){var e,t={},n=O.create(!1);this.Events={SkinHierarchyChanged:x.createNamedEvents(),SkinHierarchyUpdated:x.createNamedEvents(),SkinStyleChanged:x.createNamedEvents()},this.Flags={DisableDuringEditingTemplate:O.create(!0)};this.getStrucuturesController=function(){return{getStructuresByCategory:or.getSkinsByCategory,getStructureMetaData:or.getSkinMetaData,fetchStructure:or.fetchStructure,fetchAllMetaData:or.fetchAllSkinsMetaData}},this.getSkinsByCategory=function(e){return t[e]},this.fetchAllSkinsMetaData=function(t,i){n.isFalse()?e.fetchAllNew(t,i):t()},this.fetchStructure=function(t,n,i){var a=e.getItem(t);return kr.loadStructure(t,a.file,n,i)},this.getSkinMetaData=function(t){return e.getItem(t)},this.shouldReferToSkinValue=us,this.evaluateSkinFieldStateValue=function(e,t){t=f.quickExtend({},t);var n=t.bindingData,i=t.fieldName,a=t.stateName;t.sourceId;switch(n.type){case Eo.PropertyBinding:var r=e.getMainSkinInstance();if(r){var o=r.getPropertyValue(i),s={value:o,animation:void 0};return s}break;default:var l=e.getPropertyValue("styleBindingId");return lr.evaluateFieldStateValue(l,i,a)}},this.getFieldValueChangedEvent=function(e,t,n){switch(t.type){case Eo.PropertyBinding:var i=e.getMainSkinInstance();if(i)return{event:i.propertyChangedEvent,name:n};break;default:var a=e.getStyleBindingId();return f.objectGet(lr.getStyleFields(a),[n,"valueChangedEvent"])}},this.getSkinHierarchy=function(e){switch(e.type){case ir.Inline:return e.hierarchy;case ir.Global:var t=va.getCoordinator().getSkin(e);return t?t:or.getDefaultSkinHierarchy(e.skinName)}},this.updateSkin=function(e,t){va.getCoordinator().updateSkin(e,t)},this.updateSkinHierarchy=function(e,t,n){switch(t.type){case ir.Inline:n.setPropertyValue("skinBinding",f.quickExtend({},t,{hierarchy:e}));break;case ir.Global:var i=e.fieldsToValues,a=e.statesAnimations;lr.updateStyle(t.skinName+t.index,i,a),va.getCoordinator().updateSkin(e,t)}},this.getDefaultSkin=function(e){return sr[e]},this.getDefaultSkinHierarchy=function(e){return or.getDefaultSkin(e).hierarchy}}),sr={},lr=fs(function(){var e=Oi.NormalState.name;this.DefaultStateName=e,this.DefaultMobileStateName=Ha.MobileStateName,this.Events={styleFieldValueChanged:x.create()},this.getDefaultStateName=function(){return e};var t=new $t;this.getStyleFields=function(e){var t=lr.getStyle(e);return t.fields},this.getStyleId=function(e){return e.skinName+e.index},this.evaluateFieldStateValue=function(e,t,n){var i=lr.getStyle(e);if(i){var n;n=!n&&Ha.Flags.IsInMobileContext.isTrue()&&i.isSupportsMobile()?Ha.MobileStateName:n?n:lr.DefaultStateName;var a,r,o=i.getFieldData(t,n);return o?(a=i.statesAnimations[n]?i.statesAnimations[n].getValue():void 0,r=o.observableValue.getValue(),{animation:a,value:r}):void 0}},this.getStatesInformation=function(e,t,n){var i=lr.getStyle(e),a={},r=[],o=i.fields,s=o[t[0]];return s&&f.eachItem(t,function(e,t){if(o[t])for(var i in o[t].states){var s=o[t].states[i],l=s.observableValue.getValue();if(void 0!==l&&!a[i]){a[i]=!0;var c={stateName:i};c=n(c),r.push(c)}}}),r},this.getStyles=function(e){t.getItem(e);return t.getItemsValues()},this.getStyle=function(e){return t.getItem(e)},this.isStyleExist=function(e){return void 0!==t.getItem(e)},this.addStyle=function(e,n,i){t.remove(e);var a=lr.createStyle(e,n,i);return t.put(a),a},this.createStyle=function(e,t,n){n=n?n:{};var i=cr.create(e,t),a=i.supportedStates;if(t){f.eachEntry(t,function(e,t){i.setField(e,lr.createField(i,t,e))});var r=t;if(r){var o=f.getValues(r)[0];if(o)for(var s in o){o[s];if(Oi[s]){if(s!==lr.DefaultStateName&&s!==Ha.MobileStateName){var l;l=Oi[s].isComplex?da.Mobile:da.PC,f.objectSetIfUndefined(a,[l],f.returnEmptyArray),a[l].push(Oi[s]),n[s]||(n[s]={transitionInDuration:0,transitionOutDuration:0,easing:"linear",useCustomExitAnimation:!1}),i.statesAnimations[s]=_.create(n[s])}s===Ha.MobileStateName&&i.toggleMobileSupport(!0,!1)}}}}return i},this.getStyleInformation=function(e){var n={fields:{},statesAnimations:{}},i=t.getItem(e);f.eachEntry(i.fields,function(e,t){n.fields[e]={};for(var i in t.states){var a=t.states[i];n.fields[e][i]={value:a.observableValue.getValue(),animation:a.animation.getValue()}}});for(var a in i.statesAnimations){var r=i.statesAnimations[a];n.statesAnimations[a]=r.getValue()}return n},this.addFieldToStyle=function(e,t,n){var i=lr.getStyle(e);f.objectSet(i.fields,[t],lr.createField(i,n))},this.createField=function(e,t,n){var i=x.create(),a={states:{},valueChangedEvent:i};for(var r in t)Oi[r]&&f.objectSet(a,["states",r],lr.createStateFieldData(e,n,r,t[r],i));return a},this.createStateFieldData=function(e,t,n,i,a){var r={observableValue:_.create(i.value,{valueChangeCallback:function(i,r){a.fireNew(),lr.Events.styleFieldValueChanged.fireNew(e,t,n,r)}}),animation:_.create(i.animation,{valueChangeCallback:cs})};return r},this.updateStyle=function(e,n,i){t.remove(e),lr.addStyle(e,n,i)},this.updateStyleState=function(e,t,n,i){var a=lr.getStyle(e);f.eachEntry(n,function(e,n){var i=n[t].value;n[t].animation;a.setFieldValue(e,t,i),a.setFieldAnimationValue(e,t,i)}),a.statesAnimations[t].setValue(i[t])},this.removeStyle=function(e){lr.getStyle(e);t.remove(e)}}),cr=fs(function(){this.create=function(e){var t={},n=!1,i={id:e,fields:{},statesAnimations:{},supportedStates:t,disabledStates:{},isSupportsMobile:function(){return n},toggleMobileSupport:function(e,a){var r=n;if(n=e,a)if(e){if(!r){f.eachEntry(i.fields,function(e,t){for(var n in t.states){var a=t.states[n],r=Oi[n],o={value:a.observableValue.getValue(),animation:a.animation.getValue()};if(n===lr.DefaultStateName)t.states[Ha.MobileStateName]=lr.createStateFieldData(i,e,Ha.MobileStateName,o,i.fields[e].valueChangedEvent);else if(n!==Oi.MouseOverState.name){var s=Oi.MobileState.id*r.id;t.states[s]=lr.createStateFieldData(i,e,s,o,i.fields[e].valueChangedEvent)}}});for(var o in i.statesAnimations){var s=(i.statesAnimations[o],Oi[o]);if(o===lr.DefaultStateName)i.statesAnimations[Ha.MobileStateName]=_.create(i.statesAnimations[o].getValue());else if(s!==Oi.MouseOverState){var l=Oi.MobileState.id*s.id;i.statesAnimations[l]=_.create(i.statesAnimations[o].getValue())}}t[da.Mobile]=[],f.eachItem(t[da.PC],function(e,n){n!==Oi.MouseOverState&&t[da.Mobile].push(Oi[Oi.MobileState.id*n.id])})}}else if(r){f.eachEntry(i.fields,function(e,t){for(var n in t.states){t.states[n];n===lr.DefaultStateName?delete t.states[Ha.MobileStateName]:delete t.states[Oi.MobileState.id*Oi[n].id]}t.valueChangedEvent.fireNew()});for(var o in i.statesAnimations){i.statesAnimations[o];o===lr.DefaultStateName?delete i.statesAnimations[Ha.MobileStateName]:delete i.statesAnimations[Oi.MobileState.id*Oi[o].id]}}},setDisabledState:function(e){i.disabledStates[e]=!0},removeDisabledState:function(e){i.disabledStates[e]=!1},getFieldData:function(e,t){return i.disabledStates[t]===!0&&(t=void 0),t=t?t:i.getDefaultStateName(),f.objectGet(i.fields,[e,"states",t])},getFieldObservable:function(e,t){return t=t?t:lr.DefaultStateName,f.objectGet(i.fields,[e,"states",t,"observableValue"])},getFieldAnimationObservable:function(e,t){return t=t?t:lr.DefaultStateName,f.objectGet(i.fields,[e,"states",t,"animation"])},getAnimationObservable:function(e){return e=e?e:lr.DefaultStateName,f.objectGet(i.statesAnimations,[e])},getSupportedStates:function(){if(n&&Ha.Flags.IsInMobileContext.isTrue())return Oe.clone(t[da.Mobile]);var e=Oe.clone(t[da.PC]);return Ha.Flags.IsInMobileContext.isTrue()?f.grep(e,function(e){return e!==Oi.MouseOverState}):e},getDefaultStateName:function(){return n?Ha.MobileStateName:lr.DefaultStateName},getFieldValue:function(e,t){var n=i.getFieldObservable(e,t);return n?n.getValue():void 0},setFieldValue:function(e,t,n){var a=i.getFieldObservable(e,t);return a?a.setValue(n):void 0},setFieldAnimationValue:function(e,t,n){var a=i.getFieldAnimationObservable(e,t);a&&a.setValue(n)},getStateAnimationObservable:function(e){return f.objectGet(i.statesAnimations,[e])},getStateAnimationValue:function(e){var t=i.getStateAnimationObservable(e);return t.getValue()},setStateAnimationValue:function(e,t){var n=i.getStateAnimationObservable(e);n&&n.setValue(t)},setField:function(e,t){f.objectSet(i.fields,[e],t)}};return i}}),ur=fs(function(){function e(e){var t=ri[e],n=ti.prototype.getSkinSupportedStates;return n.call({elementType:t})}var t,n,i=this;this.Events=t={SkinEditingStart:x.create(),SkinEditingFinish:x.create(),FieldWasCreated:x.create(),BindingToFieldEvent:x.create(),BindingToFieldRemovedEvent:x.create(),FieldsChangedEvent:x.create()},this.Flags=n={IsInEditingMode:O.create(!1,{valueChangeCallback:function(e){e?(i.Events.SkinEditingStart.fireNew(),i.IsInEditingBatch.start()):(i.IsInEditingBatch.finish(),i.Events.SkinEditingFinish.fireNew())}})},this.IsInEditingBatch=Ae.create();var a,r;new $t({idFunction:f.defaultNameFunction}),new $t({idFunction:f.defaultIdFunction});this.bindPropertiesToField=function(e,n,i){fa.UpdateBatch.executeWithActivation(function(){f.each(e,function(e,t){var a=t.instance,o=t.propertyName,s=t.propertyFieldName;a.setStyleBindingId(r.id),a.bindPropertyToField(o,s,n,i)})}),t.FieldsChangedEvent.fireNew()},this.unbindPropertiesFromField=function(e,n){fa.UpdateBatch.executeWithActivation(function(){f.each(e,function(e,t){var i=t.instance,a=t.propertyName,r=t.propertyFieldName;i.unbindPropertyToField(a,r,n)})}),t.FieldsChangedEvent.fireNew()},this.isDuringEditing=function(){return i.Flags.IsInEditingMode.isTrue()},this.getCurrentInstance=function(){return i.isDuringEditing()?a:void 0},this.convertFieldsToTemplate=function(e,t){var n,i,a=e.structures[0],r=a.id,o=qa.create(e),s=f.deepCloneObject(e.customStatesProperties);if(t){var l=lr.getStyleInformation(t);n=l.fields,i=l.statesAnimations}else n=e.fieldsToValues,i=e.statesAnimations;var c=e.fieldsToValues[f.getKeys(e.fieldsToValues)[0]];return o.eachStructure(function(e){if(e.elementProperties.styleBindingId){var t=f.deepCloneObject(e.elementProperties),a=t.styleBindingFields;if(a){var o={};f.eachEntry(a,function(e,t){f.eachEntry(t.properties,function(e){o[e]=!0})}),f.eachEntry(o,function(o){var l=ui[o];for(var u in c)if(Oi[u]){var d=t[o],g=void 0;if(f.each(a,function(i,a){var l=a.properties[o];if(l&&n[i]){l.boundToProperty&&(u===lr.DefaultStateName?delete t[o]:f.objectRemove(s,[e.id,o,u,r]));var c=n[i][u],p=c.value;void 0!==p&&(l.boundToProperty?g=p:(g=f.quickExtend({},d,g),f.eachEntry(l.fields,function(e){var t={};t[e]=p,g=f.quickExtend({},g,t)})))}}),u!==lr.DefaultStateName){var p=f.objectGet(s,[e.id,o,u,r]);p&&(g=f.extendValueWithDefaultValue(g,p.stateValue))}else g=f.extendValueWithDefaultValue(g,t[o]);if(void 0!==l.valueConverter&&void 0!==g&&null!==g)for(var h=f.asArray(l.valueConverter),m=0;m<h.length;m++)g=h[m](g);if(u!==lr.DefaultStateName)if(void 0!==g){var v={};u!==lr.DefaultMobileStateName&&(v=f.quickExtend({},i[u])),v.stateValue=g,f.objectSet(s,[e.id,o,u,r],v)}else f.objectRemove(s,[e.id,o,u,r]);else t[o]=g}})}e.elementProperties=t}}),e.customStatesProperties=s,e},this.convertTemplateToField=function(t,n,i){function a(e){var t,n,i=-1,a=0;return E.eachStructure(function(e,r){var o=e.elementProperties;(!r||r.isForBackground&&o.isVisible&&_i.isUnifiedValue(o.fillLayout,!0)&&_i.isUnifiedSmallerEqualValue(o.margin,0))&&(C(e)&&(t=e,i=a),n=e,e.isForBackground=!0,r&&(r.hasBackgroundChild=!0)),a++}),!t&&e&&(t=E.getStructureByIndex(0),i=0),t?(p(t,B.backgroundColor,"backgroundColor","backgroundColor",gr.BackgroundColor,void 0,fr.Colors),{frontStructure:n,coreStructure:t,index:i}):void 0}function r(){var e;return E.eachStructure(function(t,n){var i=t.elementProperties;(!n||n.isForShadow&&i.isVisible&&_i.isUnifiedValue(i.fillLayout,!0)&&_i.isUnifiedSmallerEqualValue(i.margin,0))&&((i.innerGlow&&(i.innerGlow.spread||0!==i.innerGlow.blur)||i.innerGlow&&(i.innerShadow.spread||0!==i.innerShadow.blur))&&(e=t),t.isForShadow=!0)}),e}function o(){var e=q?q:L;return S=h(e,B.borderColor,"borderColor","borderColor",gr.SolidColor,us,["left","top","bottom","right"],void 0,_,fr.Colors,y),P=h(e,B.borderWidth,"borderWidth","borderWidth",gr.Pixels,us,["left","top","bottom","right"],void 0,N,fr.Border),
p(e,B.lineColor,"lineColor","lineColor",gr.SolidColor,void 0,fr.Colors),p(e,B.lineWidth,"lineWidth","lineWidth",gr.Pixels,void 0,fr.Border),p(e,B.padding,"padding","padding",gr.Padding,void 0,fr.Border),p(e,B.roundness,"roundness","roundness",gr.Roundness,void 0,fr.Border),p(e,B.shadow,"shadow","shadow",gr.Shadow,void 0,fr.Effects),p(e,B.glow,"glow","glow",gr.Glow,void 0,fr.Effects),H&&(p(H,B.innerShadow,"innerShadow","innerShadow",gr.InnerShadow,void 0,fr.Effects),p(H,B.innerGlow,"innerGlow","innerGlow",gr.InnerGlow,void 0,fr.Effects)),_=S?_+f.count(S):_,e}function s(e,t,n,i){if(null!==e)return e;var a=null;if(i){var r=f.objectGet(T,[t.id,"namedTextStyle"]);if(r){var o=r[i],s=o[M];a=Xa.getTextStyleInformation(s.stateValue)[Xa.getCustomPropertyTextStyle(n)]}}else a=Xa.getTextStyleInformation(t.elementProperties.namedTextStyle)[Xa.getCustomPropertyTextStyle(n)];return a}function l(e,t){t=t?t:us;var n=1,i=0;E.eachStructure(function(e){ri[e.type].hasFeature(oi.HasText)&&i++}),i&&(E.eachStructure(function(e){if(ri[e.type].hasFeature(oi.HasText)){if(e.elementProperties.namedTextStyle){var i,a=e.elementProperties.namedTextStyle;i=va.getCoordinator()?Xa.getTextStyleInformation(a):va.getCoordinatorHeirarchy().structures[0].elementProperties.textStyles[a],e.elementProperties.fontSize=e.elementProperties.fontSize?e.elementProperties.fontSize:i.fontSize}t(e)&&(p(e,B.fontSize,"fontSize"+n,"fontSize",gr.Pixels,void 0,fr.Text,s),n++)}}),e&&p(e,B.inputFontSize,"inputFontSize","fontSize",gr.Pixels,void 0,fr.Text),n=1,E.eachStructure(function(e){if(ri[e.type].hasFeature(oi.HasText)){if(e.elementProperties.namedTextStyle){var i,a=e.elementProperties.namedTextStyle;i=va.getCoordinator()?Xa.getTextStyleInformation(a):va.getCoordinatorHeirarchy().structures[0].elementProperties.textStyles[a],e.elementProperties.fontColor=e.elementProperties.fontColor?e.elementProperties.fontColor:i.color}t(e)&&(p(e,B.fontColor,"fontColor"+n,"fontColor",gr.SolidColor,void 0,fr.Colors,s),n++)}}),e&&p(e,B.inputFontColor,"inputfontColor","fontColor",gr.SolidColor,void 0,fr.Colors),n=1,E.eachStructure(function(e){if(ri[e.type].hasFeature(oi.HasText)){if(e.elementProperties.namedTextStyle){var i,a=e.elementProperties.namedTextStyle;i=va.getCoordinator()?Xa.getTextStyleInformation(a):va.getCoordinatorHeirarchy().structures[0].elementProperties.textStyles[a],e.elementProperties.font=e.elementProperties.font?e.elementProperties.font:i.fontFamily}t(e)&&(p(e,B.font,"font"+n,"font",gr.Font,void 0,fr.Text,s),n++)}}),e&&p(e,B.inputFont,"inputfont","font",gr.Font,void 0,fr.Text))}function c(){var e=1,t=0;E.eachStructure(function(n){var i=n.elementProperties.backgroundColor;if(t>U&&i){var a=p(n,B.backgroundColor,"backgroundColor"+e,"backgroundColor",gr.BackgroundColor,"transparent",fr.Colors);a&&e++}t++});var n=o(),i=1;E.eachStructure(function(e){var t=e.elementProperties.borderColor,a=e.elementProperties.lineColor;e.elementProperties.lineWidth;n&&n.id===e.id||!t&&!a||(g(e,T,"borderWidth")&&(n=e,S=h(e,B.borderColor,"borderColor","borderColor",gr.SolidColor,b,["left","top","bottom","right"],void 0,_,fr.Colors,y),_=S?_+f.count(S):_),void 0!==n.elementProperties.lineWidth&&g(e,T,"lineWidth")&&(p(e,B.lineColor,"lineColor"+i,"lineColor",gr.SolidColor,void 0,fr.Colors),p(e,B.lineWidth,"lineWidth"+i,"lineWidth",gr.Pixels,void 0,fr.Border),i++))})}function u(){var e=1;E.eachStructure(function(t){var n=t.elementProperties.iconColor;n&&(p(t,B.iconColor,"iconColor"+e,"iconColor",gr.SolidColor,void 0,fr.Colors),e++)});var t=1;E.eachStructure(function(e){var n=e.elementProperties.percentageWidget;n&&(h(e,B.percentageColor,"percentageColor","percentageWidget",gr.SolidColor,us,["color1","color2","color3"],void 0,t,fr.Colors),t++)})}function d(){var e=1,t=0;E.eachStructure(function(n){var i=n.elementProperties.backgroundOverlay;if(t>U&&i&&"transparent"!==i){var a=p(n,B.backgroundOverlay,"backgroundOverlay"+e,"backgroundOverlay",gr.BackgroundColor,"transparent",fr.Colors);a&&e++}t++})}function g(e,t,n){var i=e.elementProperties;if(!_i.isUnifiedValue(i[n],0))return!0;var a=f.objectGet(t,[e.id,n]);if(a){var r=!1;for(var o in a){var s=a[o];if(O[o]&&!_i.isUnifiedValue(s[M].stateValue,0)){r=!0;break}}if(r)return!0}return!1}function p(e,t,n,i,a,r,o,s){var l=!1;if(s=f.valueOrDefault(s,f.returnValue),void 0!==e.elementProperties[i]){f.defaultEqualityComparer(e.elementProperties[i],r)||(f.objectSet(x,[n,lr.DefaultStateName],{value:e.elementProperties[i]}),l=!0);var c=f.objectGet(T,[e.id,i]);if(c)for(var u in c){var d=c[u];if(z[u]&&d[M]){var g=f.extend({},d[M]);delete g.stateValue,f.isEmptyObject(g)||k[u]||(k[u]=f.cloneObject(g),k[u].easing="linear",k[u].useCustomExitAnimation=g.transitionInDuration!==g.transitionOutDuration),f.objectSet(x,[n,u],{value:s(d[M].stateValue,e,i,u)}),x[n][lr.DefaultStateName]||(x[n][lr.DefaultStateName]={value:r}),l=!0}}if(l){e.elementProperties.styleBindingFields||(e.elementProperties.styleBindingFields={}),f.each(O,function(e,t){x[n][t.name]||(x[n][t.name]={value:void 0,animation:void 0})});var p=m(e,t,x,n,a,o);if(f.objectSet(e.elementProperties,["styleBindingFields",p,"properties",i],{boundToProperty:!0,fields:{}}),n===p)return!0}return!1}}function h(e,t,n,i,a,r,o,s,l,c,u){if(s=s?s:us,r=r?r:us,u=u?u:ds,e.elementProperties[i]){for(var d={},g={},p=void 0!==l?l:1,h=0;h<o.length;h++)if(!g[o[h]]){var y=[o[h]];g[o[h]]=!0;for(var b=h+1;b<o.length;b++)(v(o[h],o[b],i,e)||u(o[h],o[b],i,e))&&(g[o[b]]=!0,y.push(o[b]));d[n+p]={fields:y,fieldName:n+p},p++}return s(d)?(f.each(d,function(n,o){var s=!1;if(f.each(o.fields,function(t,n){return r(n,e)?(s=!0,!1):void 0}),!s)return!0;var l=o.fields[0];f.objectSet(x,[n,lr.DefaultStateName],{value:e.elementProperties[i][l]});var u=f.objectGet(T,[e.id,i]);if(u)for(var g in u){var p=u[g];if(z[g]&&p[M]){var h=f.extend({},p[M]);delete h.stateValue,f.isEmptyObject(h)||k[g]||(k[g]=f.cloneObject(h),k[g].easing="linear",k[g].useCustomExitAnimation=h.transitionInDuration===h.transitionOutDuration),f.objectSet(x,[n,g],{value:p[M].stateValue[l]})}}e.elementProperties.styleBindingFields||(e.elementProperties.styleBindingFields={}),f.each(O,function(e,t){x[n][t.name]||(x[n][t.name]={value:void 0,animation:void 0})});var v={};f.each(o.fields,function(e,t){v[t]=!0});var y=m(e,t,x,n,a,c);y!==n&&(delete d[n],n=y),f.objectSet(e.elementProperties,["styleBindingFields",n,"properties",i],{boundToProperty:!1,fields:v})}),d):!1}}function m(e,t,n,i,a,r){var o;return t&&V[t.name]&&f.each(V[t.name],function(e,t){f.defaultEqualityComparer(n[i],t.fieldToValues)&&(delete n[i],i=t.fieldName,o=!0)}),f.objectSet(e.elementProperties,["styleBindingFields",i,"type"],Eo.StyleBinding),o||(F[i]={name:i,fieldType:a.name,categoryId:r.id,priority:D},D++,A[r.id]=r,V[t.name]||(V[t.name]=[]),V[t.name].push({fieldName:i,fieldToValues:n[i]})),i}function v(e,t,n,i){var a=i.elementProperties;if(a[n]&&!f.defaultEqualityComparer(a[n][e],a[n][t]))return!1;var r=!0,o=f.objectGet(T,[i.id,n]);if(o)for(var s in o){var l=o[s];if(z[s]&&l[M]&&l[M].stateValue&&!f.defaultEqualityComparer(l[M].stateValue[e],l[M].stateValue[t])){r=!1;break}}return r}function y(e,t,n,i){return!(!v(e,t,"borderWidth",i)||b(e,i))}function b(e,t){var n=t.elementProperties;if(n.borderWidth&&e&&0!==n.borderWidth[e]||!_i.isUnifiedValue(n.borderWidth,0))return!0;var i=!1,a=f.objectGet(T,[t.id,"borderWidth"]);if(a)for(var r in a){var o=a[r];if(z[r]&&o[M]&&(e&&0!==o[M].stateValue[e]||!_i.isUnifiedValue(o[M].stateValue,0))){i=!0;break}}return i}function C(e){var t=e.elementProperties;return!("transparent"===t.backgroundColor||!ri.VideoPlayer.hasFeature(oi.HasBackground))}function I(e,t){return 0!==t.elementProperties.borderWidth[e]}var S,P,w=t.structures[0].type,i=i?i:f.uniqueID(),E=qa.create(t),T=t.customStatesProperties,x={},k={},D=0,F={},A={},B=He.addKeyAsField({backgroundColor:{title:"Background"},inputBackgroundColor:{title:"Input Background"},backgroundOverlay:{title:"Overlay"},iconColor:{title:"Icon Color"},percentageColor:{title:"Percentage"},borderColor:{title:"Border"},lineColor:{title:"Line"},inputBorderColor:{title:"Input Border"},borderWidth:{title:"Border Width",options:{fieldVisualizer:dr.Slider,visualizerOptions:{min:0,max:20}}},lineWidth:{title:"Line Width",options:{fieldVisualizer:dr.Slider,visualizerOptions:{min:0,max:20}}},inputBorderWidth:{title:"Input Border Width",options:{fieldVisualizer:dr.Slider,visualizerOptions:{min:0,max:20}}},roundness:{title:"Roundness"},padding:{title:"Padding"},shadow:{title:"Shadow"},innerShadow:{title:"Inner Shadow"},glow:{title:"Glow"},innerGlow:{title:"Inner Glow"},fontSize:{title:"Text Size",options:{fieldVisualizer:dr.NumericTextBox,visualizerOptions:{min:0}}},font:{title:"Font"},fontColor:{title:"Text"},inputFontSize:{title:"Input Text Size",options:{fieldVisualizer:dr.NumericTextBox,visualizerOptions:{min:0}}},inputFont:{title:"Input Text"},inputFontColor:{title:"Input Text"}},"name"),V={},L=t.structures[0],M=L.id;n=n?n:ri[w].skinTypeName;var O=e(n),z=f.mapToDictionary(O,void 0,function(e){return e.name});E.eachStructure(function(e){e.elementProperties.styleBindingId=i,e.elementProperties.styleBindingFields&&f.each(e.elementProperties.styleBindingFields,function(t,n){n.type===Eo.StyleBinding&&delete e.elementProperties.styleBindingFields[t]})});var _=0,N=0;if(n!==ri.skinInputElement.name){var R=a(!0),H=r();u();var q=R.coreStructure,U=R.index,$=R.frontStructure;H=H?H:q,ri[$.type].isType(ri.image)&&(H=$),H&&!ri[H.type].hasFeature(oi.HasInnerShadow)&&(H=void 0),c(),d(),l()}else{var W=E.getStructureByIndex(0),j=E.getStructureByType("TextInputField")||E.getStructureByType("TextArea"),R=a(),G=R&&R.coreStructure?R.coreStructure:W;p(j,B.inputBackgroundColor,"inputBackgroundColor","backgroundColor",gr.BackgroundColor,void 0,fr.Colors),S=h(G,B.borderColor,"borderColor","borderColor",gr.SolidColor,I,["left","top","bottom","right"],void 0,_,fr.Colors,y),P=h(G,B.borderWidth,"borderWidth","borderWidth",gr.Pixels,I,["left","top","bottom","right"],void 0,N,fr.Border),S=h(j,B.inputBorderColor,"inputBorderColor","borderColor",gr.SolidColor,us,["left","top","bottom","right"],void 0,void 0,fr.Colors,y),P=h(j,B.inputBorderWidth,"inputBorderWidth","borderWidth",gr.Pixels,us,["left","top","bottom","right"],void 0,void 0,fr.Border),p(j,B.padding,"padding","padding",gr.Padding,void 0,fr.Border),p(j,B.roundness,"roundness","roundness",gr.Roundness,void 0,fr.Border),p(j,B.shadow,"shadow","shadow",gr.Shadow,void 0,fr.Effects),p(j,B.glow,"glow","glow",gr.Glow,void 0,fr.Effects),j&&(p(j,B.innerShadow,"innerShadow","innerShadow",gr.InnerShadow,void 0,fr.Effects),p(j,B.innerGlow,"innerGlow","innerGlow",gr.InnerGlow,void 0,fr.Effects)),l(j,function(e){return e.id!==j.id}),u()}return f.each(V,function(e,t){f.each(t,function(n,i){F[i.fieldName].title=B[e].title+(t.length>1?" "+(n+1):""),F[i.fieldName].options=f.deepCloneObject(B[e].options)})}),t.structures[0].type=ri.skinHierarchyBox.name,t.styleVersion=f.uniqueID(),t.styleId=i,t.fieldsToData=F,t.categoriesData=A,t.fieldsToValues=x,t.statesAnimations=k,t},this.convertTemplateToSkinTemplateWithFields=function(e,t,n,a){a=f.extend({ignoreSizeAndPosition:!1},a);var r=a.ignoreSizeAndPosition,o=e.structures[0],s=o.type;return t=t?t:ri[s].hasFeature(oi.SkinElement)?s:ri[s].skinTypeName,e=i.convertTemplateToField(e,t),{id:f.uniqueID(),structures:[{id:f.uniqueID(),type:t,elementProperties:{sizeAndPosition:r?void 0:o.elementProperties.sizeAndPosition,skinBinding:{type:ir.Inline,skinName:n?n:f.uniqueID(),index:0,hierarchy:e}}}]}}}),dr={OpacitySlider:"OpacitySlider",ColorPicker:"ColorPicker",Slider:"Slider",NumericTextBox:"NumericTextBox",FontSelectionComboBox:"FontSelectionComboBox"},gr=He.addKeyAsField({BackgroundColor:{options:{}},Color:{options:{}},SolidColor:{options:{}},Number:{fieldVisualizer:dr.NumericTextBox,options:{min:0,max:1/0}},Pixels:{fieldVisualizer:dr.NumericTextBox,options:{min:0,max:1/0}},Font:{fieldVisualizer:dr.FontSelectionComboBox,options:{}},BorderColor:{fieldVisualizer:dr.ColorPicker,options:{}},LineColor:{fieldVisualizer:dr.ColorPicker,options:{}},Opacity:{fieldVisualizer:dr.OpacitySlider,options:{}},BorderWidth:{options:{min:0,max:20}},LineWidth:{options:{min:0,max:20}},Padding:{options:{min:0,max:20}},Roundness:{options:{min:0,max:1/0}},Shadow:{options:{min:0,max:1/0}},InnerShadow:{options:{min:0,max:1/0}},Glow:{options:{min:0,max:1/0}},InnerGlow:{options:{min:0,max:1/0}}},"name"),fr=He.addKeyAsField({Colors:{title:"Colors",priority:1},Text:{title:"Text",priority:2},Border:{title:"Border",priority:3},Effects:{title:"Effects",priority:4},MoreOptions:{title:"More",priority:5}},"id"),pr=fs(function(){function e(){S.clear(),E={},T={}}function t(e){if(P.removeField(e.id),!C.isFalse()&&ba.isElementVisible(e)&&!e.isType(ri.page)){var t=e.childInstances;t=D.filterInstancesFromPushingReordring(t);var i=D.filterCeneteredInstances(t);pr.recalaculateSiblingsAndParentAreas();var a=l(e),r=a.height-e.getNoneContentSize().height;f.unionAreas(c(t));t.orderBy(function(e){return l(e).top}),i.orderBy(function(e){return l(e).top});var o,s,u=D.createDependenciesGroups(i),d=u.instancesDependenciesMap,h=u.instancePressureGroups,m=(u.rootsInstances,{}),y=0,I=!1,S=0,E=-(1/0),T=!1,x=0;if(f.eachItem(t,function(e,t){var i=h[t.id];m[t.id]=void 0;var a=l(t),c=d[t.id];i&&(f.eachEntry(i,function(e,n){var i,r=n.instance,o=l(r),s=p(r)+m[r.id];n.isSticky(t)?i=s:a.top<=o.bottom+s+v&&(i=f.minValue([o.bottom+s+v-a.top,s])),void 0!==i&&0!==i&&(void 0!==m[t.id]?m[t.id]=f.maxValue([m[t.id],i]):m[t.id]=i)}),void 0!==m[t.id]&&m[t.id]<0&&f.eachEntry(i,function(e,n){var i,r=n.instance,o=l(r),s=p(r)+m[r.id];i=n.isSticky(t)&&0>=s?s:o.bottom+s+v-a.top,void 0!==i&&(m[t.id]=f.maxValue([m[t.id],i]))}),void 0===m[t.id]&&(m[t.id]=0)),m[t.id]=f.valueOrDefault(m[t.id],0);var u=m[t.id]+p(t);w.setField(t.id,u);var C=a.bottom+u,P=!1;if(t.isFillVertical()){var k=n(t);C>k&&(C=k)}P=a.height>b||a.bottom>3*r/4?r-a.bottom<=b:r-a.bottom<=b/2;var D=!1,F=0;a.top<r&&(t.hasFeature(oi.HasLayout)&&t.isVerticallyDocked(la.Layout.dockBottom)?(F=g(t).bottom,P=!0,D=!0,F>0&&(C+=F),(C>x||S>F)&&(x=C,I=D,S=F,x>y&&(o=t))):C>y&&C>x&&(y=C,o=t),!P||c&&0!==c.dependentInstancesArray.length?0!==u&&(u=a.bottom+u+v-r,u>E&&u>0&&(E=u,T=!1,s=t)):u>E&&(0!==u||!t.isFillVertical())&&(E=u,T=!0,s=t))}),E===-(1/0)&&(E=0),x>y&&(y=x),0>E&&y+v>r+E)if(o!==s)E=y-r+v;else{var k=l(o);r>y&&k.bottom>r&&(E=f.maxValue([E,y-r]),E>0&&(E=0))}var F=0;T?(F=E,y>=r-v&&0>F&&(F=0)):!(y>r-v)||o&&o.isFillVertical()||(F=y-(r-(I?0:v))),f.eachItem(t,function(e,t){void 0!==m[t.id]&&(t.hasFeature(oi.HasLayout)&&t.hasVerticalLayout()||ca.moveInstances(t,{top:l(t).top+m[t.id]-ca.getRelativeArea(t).top}))});var A=a.height+F-e.getSize().height;if((0!==A||e.isFillVertical())&&e.parentInstance){var B=e.parentInstance;B.isType(ri.page)||B.hasFeature(oi.DataList)||pr.requestPushing(e,A),e.isFillVertical()||ca.setInstancesSize(e,{height:a.height+F},{preserveVerticalMargins:!0})}return A}}function n(e){var t=0;if(e.hasFeature(oi.ExternalApp)&&e.isGrowingEnabled())t=ca.getRelativeArea(e).top+(e.data.lastDocumentSize?e.data.lastDocumentSize.height:0);else if(h(e))t=ca.getRelativeArea(e).top+e.contentHeight.getValue();else if(m(e))t=ca.getRelativeArea(e).top+e.getContentSize().height;else if(e.isType(ri.userBox)||e.isType(ri.Tab)){var a=f.grep(e.childInstances,function(t){return!t.isVerticallyDocked(la.Layout.centered)&&!t.isVerticallyDocked(la.Layout.dockBottom)&&t.isInstanceVisible()&&l(e).bottom>l(t).top});t=f.maxValue(a,function(e){return e.isFillVertical()?n(e):i(e)})}else e.isType(ri.TabsPanel)&&(t=n(e.getCurrentItem()));return t+e.getNoneContentSize().height}function i(e){var t=f.valueOrDefault(w.getField(e.id),0);return l(e).bottom+t}function a(e,t){var n=e.parentInstance;u(e,t?t:void 0),P.setField(n.id,n)}function r(){var e=va.getCurrentPageId();E[e]=!0;var t=va.getCurrentPage(),n=t.getDescendingInstances(!0);n=f.grep(n,function(e){return e.isInstanceVisible()&&(!e.isContent()||!1)&&e.getSize()}),o(n)}function o(e){f.eachItem(e,function(e,t){s(t,ca.getRelativeArea(t))})}function s(e,t,n){var i=e.hasFeature(oi.HasGrowableContent);n?(S.setField(e.id+"instanceArea",t),S.setField(e.id+"margin",e.getPropertyValue("margin")),i&&S.setField(e.id+"contentHeight",e.contentHeight.getValue())):(S.setFieldIfAbsent(e.id+"instanceArea",t),S.setFieldIfAbsent(e.id+"margin",e.getPropertyValue("margin")),i&&S.setFieldIfAbsent(e.id+"contentHeight",e.contentHeight.getValue()))}function l(e){var t=S.getField(e.id+"instanceArea");return t?t:(s(e,ca.getRelativeArea(e)),S.getField(e.id+"instanceArea"))}function c(e){var t=[];return f.eachItem(e,function(e,n){t.push(l(n))}),t}function u(e,t){t=f.valueOrDefault(t,0);var n=e.getSize();n&&(T[e.id]=f.maxValue([n.height+t,0]))}function d(e){var t=T[e.id];return t}function g(e){return S.getField(e.id+"margin")}function p(e){var t=d(e);if(void 0===t){if(e.isFillVertical())return 0;t=e.getSize().height}return t-l(e).height}function h(e){return!!(e.hasFeature(oi.HasRichContent)||e.hasFeature(oi.ExternalApp)&&e.isGrowingEnabled()||e.isType(ri.SkinButtonElement))}function m(e){return!(!e.isType(ri.PostsList)&&!e.isType(ri.TagCloud))}var v=20,y=110,b=150;this.Events={ContentPushed:x.create()};var C=O.createConditionalPositive(),I=O.create(!0);this.Flags={PushWhenIntersectWithRow:I,EnablePushing:C},this.PushingMinMargin=y;var S=k.create(),P=k.create(),w=k.create(),E={},T={};this.initialize=function(){Ha.Flags.IsInMobileContext.valueChangedEvent.bind(function(e){C.setValue(!e,"mobile")})},this.supportsPreCalculationOfDiffHeights=us,this.clearLastSavedPositions=e,this.executePushing=function(){if(w.clear(),C.isTrue()&&!P.isEmpty()){for(de.disableOperationsRecording("pushing"),Er.startRenderingBatch();!P.isEmpty();){var e=P.getValues().orderByDesc(function(e){return e.getPropertyValue("order")});f.eachItem(e,function(e,n){P.hasField(n.id)&&t(n)})}Er.finishRenderingBatch(),de.enableOperationsRecording("pushing")}},this.requestPushing=function(e,t){D.canInstancePush(e)&&(la.isInLayoutContentUpdate()?a(e,t):Er.performOnLayoutUpdate(function(){a(e,t),pr.executePushing()},e.id+"requestPushing"))},this.recalaculateSiblingsAndParentAreas=function(){var e=va.getCurrentPage();if(!C.isFalse()&&e&&e.isInstanceVisible()){var t=e.id;E[t]||(la.isInLayoutContentUpdate()?r():la.layoutUpdateBatch.whenFinished(r,"recalaculateSiblingsAndParentAreas"+t))}},this.getInstanceAreaData=l,this.setInstanceAreaData=s,this.getInstanceRequestedHeight=d,this.isInstancePushable=function(e){return e.canPush()&&(!e.isFillVertical()||m(e)||h(e))};var D=fs(function(){function e(t){if(!t.isFillVertical())return!0;if(t.isType(ri.Tab)||t.isType(ri.TabsPanel)||h(t)||m(t))return!0;if(t.isType(ri.userBox)){var n=f.grep(t.childInstances,function(t){return e(t)});return n.length>0}return!1}function t(e){return!e.hasFeature(oi.HasLayout)||!e.isVerticallyDocked(la.Layout.centered)&&!e.isFillVertical()&&l(e).top<l(e.parentInstance).height-e.parentInstance.getNoneContentSize().height}function n(e){return!e.hasFeature(oi.HasLayout)||!e.isVerticallyDocked(la.Layout.dockBottom)&&!e.isVerticallyDocked(la.Layout.centered)&&!e.isFillVertical()}this.canInstancePush=function(e){var t=e.parentInstance;return e.canPush()&&t&&pr.Flags.EnablePushing.isTrue()},this.createDependenciesGroups=function(e){function i(e,t){var n=pr.getInstanceAreaData(e),i=(o[e.id],n.top-t.area.bottom);return i<=pr.PushingMinMargin}var a={},r={},o={};f.eachItem(e,function(e,t){if(o[t.id]=e,n(t)){var i={area:pr.getInstanceAreaData(t),dependentInstances:{},stickyMap:{},descendingDependentInstances:{},instance:t,id:t.id,index:e,isSticky:function(e){return i.stickyMap[e.id]}};a[t.id]=i}}),f.eachItem(e,function(e,n){t(n)&&f.eachEntry(a,function(e,t){var i=pr.getInstanceAreaData(n),a=t.area;i.top>=a.center.top&&f.areasIntersectsHorizontal(i,a,{left:1,right:1})&&(t.dependentInstances[n.id]=n,t.descendingDependentInstances[n.id]=n,r[n.id]=f.valueOrDefault(r[n.id],{}),r[n.id][t.id]=t)})});for(var s=e.length-1;s>0;s--){var l=e[s],c=r[l.id];c&&f.eachEntry(c,function(e,t){var n=r[t.id];n&&f.eachEntry(n,function(e,n){c[n.id]&&c[n.id].area.bottom<=t.area.bottom&&(delete c[n.id].dependentInstances[l.id],delete c[n.id])})})}f.eachEntry(a,function(e,t){t.dependentInstancesArray=f.getValues(t.dependentInstances).orderBy(function(e){return pr.getInstanceAreaData(e).top})});var u=[];return f.eachItem(e,function(e,t){r[t.id]&&0!==f.count(r[t.id])||(u.push(t),delete r[t.id])}),f.eachEntry(a,function(e,t){f.eachItem(t.dependentInstancesArray,function(e,n){void 0===t.stickyMap[n.id]&&(t.stickyMap[n.id]=i(n,t))})}),{instancesDependenciesMap:a,instancePressureGroups:r,rootsInstances:u}},this.filterCeneteredInstances=function(e){return f.grep(e,function(e){return!e.hasFeature(oi.HasLayout)||!e.isVerticallyDocked(la.Layout.centered)})},this.filterInstancesFromPushingReordring=function(t){return f.grep(t,function(t){return t.isLocked.isFalse()&&t.isInstanceVisible()&&(!t.hasFeature(oi.HasLayout)||e(t))})}})}),hr=fs(function(){function e(e,t,n){e?t(e):n(R.create(N.UnknownError,"Failed Fetching List Content"))}function t(e,t){return!e||!b[t]}function n(e){return f.getOrInit(y,e,{widgets:{},items:{}})}function i(e,t,n){y[e]={version:t,widgets:{},items:n?y[e].items:{}}}function a(e,t,n,i){Qn.fetchAllListsContent(e,function(e){hr.refreshListsContent(e,t),n()},i)}function r(e,t,i){p(function(a,r){var l,u,d,g;f.eachEntry(e,function(e,t){var i=n(e),a=hr.getAllItemsCache(!1,e);t.item&&void 0===i.items[t.item.alias]&&(l&&r(R.create(N.UnknownError,"Only one item is allowed per page request")),l={listId:t.listId,listName:e,itemInfo:{alias:t.item.alias}}),t.item&&t.item.remoteService&&(u=t.item.remoteService,d=t.item.alias,g=e),f.eachItem(t.widgets,function(t,n){var s=c(n);if(void 0===i.widgets[s]){var l=o(e,n,a);void 0!==l?i.widgets[s]=l:r(R.create(N.UnknownError,"Failed Fetching List Content"))}})}),u?u.execute().done(function(n){var a=Cr.getListByName(g);e[g].items={},e[g].items[d]=n,e[g].item=d,s(e,e,t,i),a.refreshListItem(d)}):l?Qn.fetchItemData(l.listId,l.listName,l.itemInfo,function(e){e=h(yr.ListItem,l.listName,e);var t=n(l.listName);t.items[e.urlAlias]=e.id,t.widgets={};var i=hr.getAllItemsCache(!1,l.listName);i[e.id]=e,a()},r):a()},t,i)}function o(e,t,n){var i=t.type;return h(i,e,w[i].handleRequest(t,n))}function s(e,t,n,i){p(function(n){f.eachEntry(e,function(e,n){var i=t[e];l(e,i.version);var a=y[e],r=i.items;if(n.item&&i.item){var o=r[i.item];o=h(yr.ListItem,e,o);var s=n.item;"object"==typeof s&&s.alias&&(s=s.alias),s!==o.urlAlias?a.items[s]=o:a.items[o.urlAlias]=o}f.eachItem(n.widgets,function(t,n){var o=c(n),s=i.widgets[n.elementId];s&&(s.items&&f.isNumeric(s.items[0])&&f.eachItem(s.items,function(e,t){s.items[e]=r[t]}),s=h(n.type,e,s),a.widgets[o]=s)})}),n()},n,i)}function l(e,t){var a=n(e),r=a.version;t!==r&&(i(e,t,!0),void 0!==r&&g(e))}function c(e){return JSON.stringify(w[e.type].hashFunction(e))}function u(){S.begin()}function d(){S.end()}function g(e){S.fireWhenFinished({name:e,event:P})}function p(e,t,n){u(),e(function(){t.apply(this,arguments),d()},function(){n.apply(this,arguments),d()})}function h(e,t,n){return w[e].enrichFetchedContent(Cr.getListByName(t),n)}var m,v=le.createLoggerFor("ListsCacheManager","Lists Cache Manager"),y={},b={},C={},I=!0,S=Ae.create(),P=x.createNamedEvents(),w={};this.initialize=function(e,t,n){I=!1,m=DynamicPageContent,t()},this.registerContentRequestHandler=function(e,t){w[e]=t},this.createListCacheUpdatedListener=function(e,t){return x.createEventListener({name:e,event:P},t)},this.loadDefaultListContent=function(e,t,n){var i={};i[e]=Cr.getDefaultListIdByName(e),a(i,!0,t,n)},this.refreshListsContent=function(e,t){e&&0!==e.length&&f.eachEntry(e,function(e,n){hr.refreshListContent(e,n,t)})},this.refreshListContent=function(e,t,n){i(e);var a=hr.getAllItemsCache(n);a[e]=f.mapToDictionary(t,f.identity,f.defaultIdFunction)},this.loadListsContent=function(e,t,i){if(m)s(e,m,function(){m=void 0,t()},i);else if(I)r(e,t,i);else{var a,o,l,u=f.deepCloneObject(e);f.eachEntry(e,function(e,t){var i=n(e);if(t.version=i.version,f.eachItem(t.widgets,function(e,t){var n=c(t);void 0!==i.widgets[n]&&(t.cached=!0),t.filters&&(t.filters=f.filterKeys(t.filters,"serverFilters"))}),t.item){var r=i.items[t.item.alias];void 0!==r&&(t.item.version=r.modified),t.item.remoteService&&(a=t.item.remoteService,o=t.item.alias,l=e)}}),a?a.execute().done(function(n){Cr.getListByName(l);e[l].items={},e[l].items[o]=n,e[l].item=o,s(u,e,t,i)}).fail(function(){var e=Cr.getListByName(l);pa.navigateToPage(e._listName)}):Qn.fetchListsContent(e,function(e){s(u,e,t,i)},i)}},this.fetchItemData=function(e,i,a,r,o,s){var l=s.defaultMode,c=hr.getAllItemsCache(l,i),u=c[a.id];void 0!=u.content?r(u):Qn.fetchItemData(e,i,a,function(e){e=h(yr.ListItem,i,e);var a=n(i);a.widgets={},c[e.id]=e,t(l,i)&&(a.items[e.urlAlias]=e.id),r(e)},o,s)},this.saveItems=function(e,i,a,r,o,s){p(function(r,o){Qn.saveListItems(e,i,a,function(e){var o=s.defaultMode,l=t(o,i);e.listContent&&hr.refreshListContent(i,e.listContent,o);var c=f.makeArray(e.itemIds),u=hr.getAllItemsCache(o,i),d=n(i);f.eachItem(a,function(e,t){var n=c[e];if(null!==n){if(t=h(yr.ListItem,i,t),l&&void 0!==t.id&&u[t.id]){var a=u[t.id];a.urlAlias!==t.urlAlias&&delete d.items[a.urlAlias]}t.id=n,u[n]=f.quickExtend(u[n],t),l&&void 0!=t.content&&(d.items[t.urlAlias]=n)}}),d.widgets={},g(i),r(e)},o,s)},r,o)},this.deleteItems=function(e,i,a,r,o,s){p(function(r,o){Qn.deleteListItems(e,i,f.makeArray(a),function(e){var a=s.defaultMode,o=t(a,i);e.listContent&&hr.refreshListContent(i,e.listContent,a);var l=f.makeArray(e.deletedIds),c=hr.getAllItemsCache(a,i),u=n(i);f.eachItem(l,function(e,t){if(c[t]){if(o){var n=c[t].urlAlias;delete u.items[n]}delete c[t]}}),u.widgets={},g(i),r(e)},o,s)},r,o)},this.fetchListWidgetContent=function(t,n,i,a){n.defaultMode&&!C[t]?hr.loadDefaultListContent(t,function(){e(hr.getListWidgetContent(t,n),i,a)},a):e(hr.getListWidgetContent(t,n),i,a)},this.getListItemContent=function(e,t){var i=n(e).items[t];if(f.isNumeric(i)){var a=hr.getAllItemsCache(!1,e);i=a[i]}return i},this.getAllItemsCache=function(e,t){return t?e?C[t]:b[t]||C[t]:e?C:b},this.getCurrentCache=function(){return y},this.clearListCache=function(e){delete y[e],delete b[e]},this.getListWidgetContent=function(e,t){var i=c(t);v.debug(function(){return"Request for hash: "+i});var a=n(e).widgets,r=a[i];if(!r&&I){v.warn("Cache Miss - Trying to fetch from all items");var s=hr.getAllItemsCache(t.defaultMode,e);s&&(r=o(e,t,s),r&&(a[i]=r))}return v.debug(function(){return"Request Result: "+JSON.stringify(r)}),r}}),mr={LocalBlog:"LocalBlog",Store:"Store"},vr={},yr={TagCloud:"TagCloud",PostsList:"PostsList",ListItem:"ListItem",Categories:"Categories"},br={},Cr=fs(function(){function e(e){f.eachEntry(e,function(e,t){n.FieldNames[e]=t.name,n.FieldSortingRules[t.name]=t.sortingFunction})}function t(e){for(var t in r){var n=r[t];if(n._listType===e)return n}return null}var n=this,i={},a={},r={},o={},s={Id:{name:"id",sortingFunction:f.numbersComparer},Title:{name:"title",sortingFunction:f.stringsComparer},Content:{name:"content"},UrlAlias:{name:"urlAlias",sortingFunction:f.stringsComparer},Status:{name:"status",sortingFunction:f.numbersComparer},Tags:{name:"tags"},Categories:{name:"categories"},MetaData:{name:"metaData"}};n.FieldNames={},n.FieldSortingRules={},e(s),n.Events={ListCreated:x.createNamedEvents(),ListRemoved:x.createNamedEvents()},n.CommonFiltersNames={All:"All",Published:"Published",Drafts:"Drafts"},n.CommonFilters={NotCurrentItem:function(e){return ze.Filters.NotFilter({fieldName:n.FieldNames.UrlAlias,value:e})},Published:ze.Filters.EqualFilter({fieldName:n.FieldNames.Status,value:1}),Drafts:ze.Filters.EqualFilter({fieldName:n.FieldNames.Status,value:0}),ByTag:function(e){return ze.Filters.ListFilter({fieldName:n.FieldNames.Tags,value:e})},ByCategory:function(e){return ze.Filters.ListFilter({fieldName:n.FieldNames.Categories,value:e})},ByTitle:function(e){return ze.Filters.ContainsFilter({fieldName:n.FieldNames.Title,value:e})}},n.SupportedListTypes={page:"page",tag:"tag",category:"category"},n.getListByName=function(e){return r[e]},n.createOrGetListFlag=function(e){var t=o[e];return t||(t=O.create(!1),o[e]=t),t},n.getListFromInstanceElementType=function(e){return e===ri.StoreFront?t(mr.Store):null},n.getBlogId=function(){if(this.createOrGetListFlag(mr.LocalBlog).isTrue()){var e=this.getListByName(mr.LocalBlog);if(e){var t=e.getListInfo();if(t&&t.listId)return t.listId}}return null},n.initialize=function(e,t,i,r){i=f.valueOrDefault(i,cs),a=e,f.isEmptyObject(t)?i():(f.eachEntry(t,function(e,t){var i=!Ia.isExistingSite()||t.isTemplate===!0;n.registerNewListInstance(i,t)}),hr.initialize(t,i,r))},n.RSSSettingController=w.create(function(){var e={getValue:function(){var e=ra.getValue("blogRssSettings");return f.isEmptyObject(e)&&ra.setValue("blogRssSettings",{enabled:!0}),ra.getValue("blogRssSettings")},isEnabled:function(){return e.getValue().enabled},extendSettings:function(t){e.setValue(f.quickExtend(e.getValue(),t))},setValue:function(e){ra.setValue("blogRssSettings",e)},setEnabled:function(t){e.extendSettings({enabled:t})}};return e}),n.getDefaultListIdByName=function(e){return a[e]},n.createSorter=function(e,t){return{sortBy:e,sortType:t?Nt.Asc:Nt.Desc}},n.registerListDefinition=function(t){f.eachEntry(t,function(t,i){var a=i;if(e(a.FieldDefinitions),a.CommonFilters&&f.eachEntry(a.CommonFilters,function(e,t){n.CommonFilters[e]=t,n.CommonFiltersNames[e]=e}),void 0===i.Icons)throw Error("List Definition for: "+t+", must have icons in order to display in pages panels");br[t]=i.Icons,vr[t]=a})},n.getListPageTitle=function(e){var t=n.getListByName(e.masterPageListName||e.pageListName);return t?t.getListPageTitle(e):e.title},n.getListNamesToCreate=function(){var e=[];return f.eachEntry(r,function(t,n){n.isListTemplate()&&e.push(t)}),e},n.deleteList=function(e){var t=n.getListByName(e);return va.removePages([t.getListPageId()].concat(t.getListInfo().connectedDynamicPages)).done(function(){t.dispose(),t._listType?n.createOrGetListFlag(t._listType).setFalse():n.createOrGetListFlag(t._listName).setFalse(),delete i[e],delete r[e],n.Events.ListRemoved.fire(e)})},n.supportsCapitalLetterUrls=function(e){var t=va.getPageData(e);return!(!t||t.masterPageType!==mr.Store)},n.registerNewListInstance=function(e,t){var a=t.listName,o=r[a]=qr.create(e,t),s=t.listType;s?n.createOrGetListFlag(s).setTrue():n.createOrGetListFlag(a).setTrue(),i[a]=o.getListInfo();var l=t.connectedListPage;return f.eachItem(t.connectedDynamicPages,function(e,t){va.PagesHierarchy.setParent(t,l)}),o}}),Ir=fs(function(){function e(e,n){t&&t.put(f.mapEntry(n,function(t,n){return{collectionName:e,iconName:n}}))}var t,n={};this.initialize=function(){Ir.registerIconsCollection(WzPublicIcons)},this.registerIconsCollection=function(t){t=f.quickExtend({name:void 0,fontClass:void 0,icons:{}},t);var i=t.name;n[i]=t,e(i,t.icons)},this.getPublicIconsCollection=function(){if(!t){var i=1;t=new $t({idFunction:function(){return i++}}),f.eachEntry(n,function(t,n){e(t,n.icons)})}return t},this.applyIcon=function(e,t){var n=Ir.resolveIcon(t);n&&(e.each(function(){n.code&&(this.innerHTML="&#x{0};".format(n.code))}),e.addClass(n.fontClass)),t&&"public-font-icons"===t.collectionName&&"new-youtube-image"===t.iconName&&e.addClass("youtube-new-image-class")},this.createIconReference=function(e,t){return{collectionName:e,iconName:t}},this.resolveIcon=function(e){if(e){e=f.quickExtend({collectionName:void 0,iconName:void 0},e);var t=e.collectionName,i=e.iconName,a=n[t];if(a){var r=a.icons[i];if(r)return{fontClass:a.fontClass,code:r.code}}else if("font-icon"===t)return{fontClass:"font-icon icon-{0}".format(e.iconName),code:void 0}}}}),Sr=fs(function(){function e(){return Settings.SocialDefaults||{}}function t(e,t){return t&&e&&(e=e.substr(e.lastIndexOf("/")+1)),e||""}var n=this;this.DefaultLinks=w.create(function(){return{facebook:{type:"facebook",title:"Facebook",url:n.getBrandFacebookUrl()},twitter:{
type:"twitter",title:"Twitter",url:n.getBrandTwitterUrl()},linkedin:{type:"linkedin",title:"LinkedIn",url:"https://www.linkedin.com"},pinterest:{type:"pinterest",title:"Pinterest",url:"https://www.pinterest.com"},reddit:{type:"reddit",title:"Reddit",url:"https://www.reddit.com"},instagram:{type:"instagram",title:"Instagram",url:"https://www.instagram.com"},youtube:{type:"youtube",title:"Youtube",url:"https://www.youtube.com"},flickr:{type:"flickr",title:"Flickr",url:"https://www.flickr.com"},soundCloud:{type:"soundCloud",title:"SoundCloud",url:"https://www.soundcloud.com"},tripAdvisor:{type:"tripAdvisor",title:"Trip Advisor",url:"https://www.tripadvisor.com"},picasa:{type:"picasa",title:"Picasa",url:"https://www.picasa.com"},behance:{type:"behance",title:"Behance",url:"https://www.behance.com"},etsy:{type:"etsy",title:"Etsy",url:"https://www.etsy.com"},tumblr:{type:"tumblr",title:"Tumblr",url:"https://www.tumblr.com"},dribbble:{type:"dribbble",title:"Dribbble",url:"https://www.dribbble.com"},vimeo:{type:"vimeo",title:"Vimeo",url:"https://www.vimeo.com"},vk:{type:"vk",title:"VK",url:"https://www.vk.com"},renren:{type:"renren",title:"Renren",url:"https://www.renren.com"},weibo:{type:"weibo",title:"Weibo",url:"https://www.weibo.com"}}}),this.Types={Facebook:"facebook",Twitter:"twitter",Linkedin:"linkedin",Pinterest:"pinterest",Youtube:"youtube",Reddit:"reddit",Instagram:"instagram",Tumblr:"tumblr",SoundCloud:"soundCloud",Behance:"behance",TripAdvisor:"tripAdvisor",Dribbble:"dribbble",Flickr:"flickr",Picasa:"picasa",Etsy:"etsy",Vimeo:"vimeo",Vk:"vk",Renren:"renren",Weibo:"weibo"};var i,a,r=I.create(function(){i=new $t({idFunction:function(e){return e.id}});var e=n.getAllLinks();f.eachEntry(e,function(e,t){var n={id:t.type,iconType:t.type,title:t.title,link:{url:t.url,type:nt.Web}};i.put(n)}),a=jt.create(i)});this.getSocialLinksCollection=function(){return r.execute(),i},this.getSocialLinksCollectionObservable=function(){return r.execute(),a},this.getLink=function(e){return f.quickExtend({},n.DefaultLinks.getValue()[e],ra.getValue(e+"SocialLinkId"))},this.setLink=function(e,t,n){ra.setValue(e+"SocialLinkId",t,{onSuccess:n,onError:cs})},this.getAllLinks=function(){var e={};return f.eachEntry(Sr.Types,function(t,n){e[n]=Sr.getLink(n)}),e},this.getBrandTwitterUrl=function(n){return t(e().TwitterLink,n)},this.getBrandFacebookUrl=function(n){return t(e().FacebookLink,n)},this.getBrandGooglePlusUrl=function(n){return t(e().GooglePlusLink,n)},this.getBrandTwitterFeedAppId=function(){var t=e();return t.TwitterFeedAppId||""}}),Pr=fs(function(){function e(e){var n=e._navigation;return n||(t(e),n=new i[e._navigationTypeName](e),e._navigation=n),n}function t(e){var t=e.deactivatingEventListenersGroup;t.clear(),x.createEventListener(na.Events.ViewModeChanged,function(){e.close({animate:!1})}).addToGroup(t)}var n=C.extend("NavigationController",{init:function(e){this.isOpened=O.create(!1),this.deactivatingEventListenersGroup=x.createEventListenersGroup(),this.data={},this._navigationTypeName=e,this._navigation=void 0},replaceNavigation:function(e){var t,n=this;n.isOpened.isTrue()&&(t=f.quickExtend({},n.lastOptions,{animate:!1}),n.close({animate:!1})),this._navigation=void 0,this._navigationTypeName=e,t&&n.open(t)},open:function(t){var n=this;if(n.isOpened.isFalse()){t=f.quickExtend({animate:!0,disableDeactivation:!1,disableLink:!1,pages:va.NavigatablePagesInformation,pagesHierarchy:va.NavigatableHierarchy,animationCompleteCallback:cs,selectedPageId:va.getCurrentPageId()},t),n.lastOptions=t;var i=e(n);i.open(t),t.disableDeactivation||n.deactivatingEventListenersGroup.activateAll(),n.isOpened.setTrue()}},close:function(t){var n=this;if(n.isOpened.isTrue()&&!n.inClosing){n.deactivatingEventListenersGroup.deactivateAll(),n.inClosing=!0,t=f.quickExtend({animate:!0,animationCompleteCallback:cs},t);var i=e(n);i.close(t),n.isOpened.setFalse(),delete n.inClosing}},remove:function(){this.close({animate:!1})}}),i={};this.registerNavigationDefinition=function(e,t){i[e]=t},this.getNavigation=function(e){return i[e]},this.getNavigations=function(){return i},this.createNavigationController=function(e){return new n(e)}}),wr=fs(function(){function e(){U.connectObservableCollection(b.CurrentSideBarPageSectionsObserver,{filterFunction:t}),H.connectObservableCollection(b.CurrentMainPageSectionsObserver,{filterFunction:t})}function t(e){return Ha.Flags.IsInMobileContext.isTrue()?!e.isMobileHide:!e.isDesktopHide}function i(){f.eachItem(P,function(e,t){t(p)})}function a(){P.length>0?s():l()}function r(e){var t=e.getItems(),n=f.mapEntry(t,function(e){return e.instance});return n.orderBy(function(e){return e.getCalculatedOrder()}),f.eachItem(n,function(t,n){e.updateItemFields(n.id,{index:t+1}),N.updateItemFields(n.id,{index:t+1})}),n}function o(){var e=h.$scrollableForRead.scrollTop();if(void 0!==F&&f.isBetween(e,F-v,F+v))return!1;F=void 0;for(var t,n=E.length-1;n>=0;n--){var i=E[n],a=ba.getElementAbsoluteOffset(i),r=0;if(n>0){var o=ba.getElementSize(E[n-1]);r=o.height*y}var s=ba.getElementSize(i),l=Math.min(s.height*y,r);if(a.top-l<e+D){t=i;break}}return!t&&E.length>0&&(t=E[0]),p!==t?(p=t,!0):!1}function s(){if(!g){h=f.getScrollingController(),D=0;var e=f.uniqueID();h.$scrollableForRead.on("scroll."+e,function(){k||o()&&i()}),o(),i(),m.activateAll(),g={unbind:function(){h.$scrollableForRead.off("scroll."+e)}}}}function l(){g&&(g.unbind(),m.deactivateAll(),g=void 0,p=void 0,F=void 0,k=!1)}function c(e){return e.isMainSection()?R:q}function u(e){e=f.asArray(e),b.UpdateBatch.start(),f.eachItem(e,function(e,t){if(!N.getItem(t.id)&&t.isInstanceVisible()){var n=x.createEventListenersGroup(),i=c(t);x.createEventListener(t.propertiesChanged,function(e){var n=e.sectionName,a=e.menuHide,r=e.order,o=e.isVisibleInMode;if(n||a||r||o){b.UpdateBatch.start(),r&&(A=!0);var s=!1,l={};if(n&&(l.title=n.value,s=!0),a){var c=f.valueOrDefault(a.value,{});l.isDesktopHide=c.desktop===!0,l.isMobileHide=c.mobile===!0,s=!0}o&&(l.isVisibleInMobile=o,s=!0),s&&(i.updateItemFields(t.id,l),N.updateItemFields(t.id,l)),b.UpdateBatch.finish()}}).addToGroup(n),S[t.id]=n,n.activateAll();var a=f.valueOrDefault(t.getPropertyValue("menuHide"),{}),r={id:t.id,title:t.getPropertyValue("sectionName"),instance:t,isDesktopHide:a.desktop===!0,isMobileHide:a.mobile===!0};i.put(r),N.put(r)}}),A=!0,b.UpdateBatch.finish()}function d(e){e=f.asArray(e),f.eachItem(e,function(e,t){var n=S[t];n&&(n.disposeAll(),delete S[t])}),b.UpdateBatch.start(),R.remove(e),q.remove(e),N.remove(e),A=!0,b.UpdateBatch.finish()}var g,p,h,m,v=50,y=.5,b=this,C={},I={},S={},P=[],w=[],E=[],T=[],k=!1,D=0,F=void 0,A=!1;this.Flags={SectionCreation:O.create(!1)};var B=Ie.createSingleTargetClass("first-section first-side-bar-section"),V=Ie.createSingleTargetClass("last-section last-side-bar-section"),L=Ie.createSingleTargetClass("first-section first-main-section"),M=Ie.createSingleTargetClass("last-section last-main-section"),z={comparerFunction:f.createFieldsEqualityComparer(["title","index","isDesktopHide","isMobileHide"])},N=new $t(z);this.CurrentPageSections=N;var R=new $t(z);this.CurrentMainPageSections=R,this.CurrentMainPageSectionsObserver=jt.create(R);var H=new $t(z);this.CurrentVisibleMainPageSectionsObserver=jt.create(H);var q=new $t(z);this.CurrentSideBarPageSections=q,this.CurrentSideBarPageSectionsObserver=jt.create(q);var U=new $t(z);this.CurrentVisibleSideBarPageSectionsObserver=jt.create(U),this.LastSections={},this.UpdateBatch=Ae.create({batchStartCallback:function(){N.beginUpdate(),R.beginUpdate(),q.beginUpdate()},beforeFinishingCallback:function(){if(A){if(A=!1,E=r(R),T=r(q),w=f.merge(f.merge([],E),T),T.length>0){var e=T[0],t=T[T.length-1];B.setTarget(e.$element),V.setTarget(t.$element),b.LastSections[Do.SideBar].setValue(t)}else b.LastSections[Do.SideBar].setValue(void 0);if(E.length>0){var n=E[0],i=E[E.length-1];L.setTarget(n.$element),M.setTarget(i.$element),b.LastSections[Do.MainContent].setValue(i)}else b.LastSections[Do.MainContent].setValue(void 0)}},batchFinishCallback:function(){R.endUpdate(),q.endUpdate(),N.endUpdate()}}),this.initialize=function(){Ha.Flags.IsInMobileContext.valueChangedEvent.bind(function(){U.beginUpdate(),H.beginUpdate(),H.disconnectObservableCollection(),U.disconnectObservableCollection(),e(),H.endUpdate(),U.endUpdate()}),f.eachEntry(Do,function(e,t){b.LastSections[t]=_.createReferenceObject()}),e(),va.Events.PageChanging.bind(function(e,t){if(e!==t){b.UpdateBatch.start();var n=C[e];n&&d(f.getKeys(n));var i=C[t];i&&u(f.getValues(i)),b.UpdateBatch.finish()}}),va.Events.PageDeleted.bind(function(e){var t=C[e];t&&(delete C[e],f.eachEntry(t,function(t){var n=I[t];n&&delete n[e]}))}),na.Events.ViewModeChanged.bind(a),Ha.Events.AfterSwitchBetweenDevices.bind(function(){l(),i(),a(),i()});var t=0;m=x.createEventListenersGroup();var n;x.createEventListener(sa.Events.ScrollingStartedEvent,function(e){F=void 0,k=!0,n&&clearTimeout(n),t++;var a=e.getParents(!0),r=f.findFirst(a,function(e,t){return t.hasFeature(oi.PageSection)});r&&r!==p&&(p=r,i())},{activationCallback:function(){t=0}}).addToGroup(m),x.createEventListener(sa.Events.ScrollingFinishedEvent,function(e){if(t>0&&(t--,n&&clearTimeout(n),0===t&&k)){var a=e.getParents(!0),r=f.findFirst(a,function(e,t){return t.hasFeature(oi.PageSection)});r&&r!==p&&(p=r,i()),n=setTimeout(function(){g&&(k=!1,r?(F=h.$scrollableForRead.scrollTop(),r!==p&&(p=r,i())):o()&&i()),n=void 0},100)}}).addToGroup(m)},this.getSectionsByPageLayoutPart=function(e){var t=function(){switch(e){case Do.MainContent:return b.CurrentMainPageSections;case Do.SideBar:return b.CurrentSideBarPageSections}}();return t?f.map(f.getValues(t.getItems()),function(e){return e.instance}):[]},this.moveSection=function(e,t){var n=t?t.elementType:void 0;if(n!==ri.FooterElement){if(de.beginAtomicBatch(!0),aa.beginReorderingBatch(),fa.UpdateBatch.start(),t){var i=t.getPropertyValue("order");e.setPropertyValue("order",i+.1)}else e.setPropertyValue("order",0);fa.UpdateBatch.finish(),aa.endReorderingBatch(),de.endAtomicBatch()}},this.getCurrentPageOrderedSections=function(){return w},this.getCurrentPageMainOrderedSections=function(){return E},this.getCurrentPageSideBarOrderedSections=function(){return T},this.getPrevSection=function(e){if(e){var t=e.$element.prev();return 1===t.length&&t.hasClass("design-element")?n(t):void 0}},this.addSectionInstance=function(e){var t=va.getCurrentPage();f.objectSetIfUndefined(C,t.id,f.returnEmptyObject),C[t.id][e.id]=e,f.objectSetIfUndefined(I,e.id,f.returnEmptyObject),I[e.id][t.id]=t,u(e)},this.removeSectionInstance=function(e){var t=I[e.id];t&&(delete I[e.id],f.eachEntry(t,function(t){var n=C[t];n&&delete n[e.id]})),d(e.id)},this.addSectionScrollListener=function(e){s(),e(p),P.push(e)},this.removeSectionScrollListener=function(e){P.removeItem(e),0===P.length&&l()},this.getNonHeaderFooterSectionIds=function(){return f.mapEntry(this.CurrentPageSections.getItems(),function(e){var t=e.instance;return t.isType(ri.HeaderElement)||t.isType(ri.FooterElement)?void 0:t.id})},this.getMainSectionFromOffset=function(e){var t=b.getCurrentPageMainOrderedSections();return f.findFirst(t,function(t,n){return f.isInsideArea(ba.getElementArea(n,!0),e)})},this.getLastMainSection=function(){var e=b.getCurrentPageMainOrderedSections();return e[e.length-1]},this.getFirstMainSection=function(){var e=b.getCurrentPageMainOrderedSections();return e[0]},this.getLastContentMainSection=function(e){e=f.quickExtend({ignoreMarketingSection:!1},e);var t=e.ignoreMarketingSection,n=f.grep(b.getCurrentPageMainOrderedSections(),function(e){return e.isMasterPageElement.isFalse()}),i=n[n.length-1];return t&&i&&i.elementType===ri.BuiltBySectionElement&&(i=n[n.length-2]),i},this.getFirstContentMainSection=function(){var e=f.grep(b.getCurrentPageMainOrderedSections(),function(e){return e.isMasterPageElement.isFalse()});return e[0]},this.getLastSideBarSection=function(){var e=b.getCurrentPageSideBarOrderedSections();return e[e.length-1]},this.getFirstSideBarSection=function(){var e=b.getCurrentPageSideBarOrderedSections();return e[0]}}),Er=fs(function(){function e(){va.PageChangingOperation.finish()}this.startRenderingBatch=function(){Er.startReadWrite(),Vn.ReadWriteScope.start(),aa.beginReorderingBatch(),sa.HierarchyChangedUpdateBatch.start(),ba.PageRearrangementBatch.start(),la.LayoutContentBatch.start(),Fa.ViewPortChangeBatch.start(),la.ElementsFramesUpdateBatch.start(),wr.UpdateBatch.start(),ba.UpdateBatch.start(),la.beginLayoutUpdateBatch(),ti.InstancesInitializationBatch.start(),ba.VisibilityUpdateBatch.start(),fa.UpdateBatch.start()},this.finishRenderingBatch=function(e){e=f.valueOrDefault(e,cs),fa.UpdateBatch.finish(),ba.VisibilityUpdateBatch.finish(),ti.InstancesInitializationBatch.finish(),la.endLayoutUpdateBatch(),ba.UpdateBatch.finish(),aa.endReorderingBatch(),wr.UpdateBatch.finish(),la.ElementsFramesUpdateBatch.finish();var t="rendering"+f.weakID();de.disableOperationsRecording(t),aa.beginReorderingBatch(),la.LayoutContentBatch.finish(),la.beginLayoutUpdateBatch(),Fa.ViewPortChangeBatch.finish(),aa.endReorderingBatch(),la.endLayoutUpdateBatch(),ba.PageRearrangementBatch.finish(),sa.HierarchyChangedUpdateBatch.finish(),e(),Vn.ReadWriteScope.finish(),Er.finishReadWrite(),de.enableOperationsRecording(t)},this.startModeRenderingBatch=function(){Ro.CreationRequests.activate(),Er.startRenderingBatch()},this.finishModeRenderingBatch=function(){Er.finishRenderingBatch(),Ro.CreationRequests.executeOperations(),Ro.CreationRequests.deactivate()},this.startPageRenderingBatch=function(){va.PageRenderingOperation.start(),Wi.Flags.SavingRecordEnabled.setFalse("PageRenderingBatch"),Ro.CreationRequests.activate(),va.PageChangingOperation.start(),Er.startRenderingBatch()},this.finishPageRenderingBatch=function(){fa.clearMouseOverState(),Er.finishRenderingBatch(e),Ro.CreationRequests.executeOperations(),Ro.CreationRequests.deactivate(),va.PageRenderingOperation.finish(),Wi.Flags.SavingRecordEnabled.setTrue("PageRenderingBatch")},this.startReadWrite=function(){Vn.PendingReadOperations.activate(),Vn.PendingWriteOperations.activate()},this.finishReadWrite=function(){Vn.ReadWriteScope.isActive()||la.layoutUpdateBatch.whenFinished(function(){for(;!Vn.PendingReadOperations.isEmpty()||!Vn.PendingWriteOperations.isEmpty();)Vn.PendingReadOperations.executeOperations(),Vn.PendingWriteOperations.executeOperations()},"finishReadWrite"),Vn.PendingReadOperations.deactivate(),Vn.PendingWriteOperations.deactivate()},this.performOnFramesLayoutUpdade=function(e,t){Ae.whenAllFinished([la.ElementsFramesUpdateBatch,la.layoutUpdateBatch,ba.UpdateBatch],e,t)},this.performUpdateOnRenderingFinished=function(e,t){ba.PageRearrangementBatch.whenFinished(e,t)},this.performOnLayoutUpdate=function(e,t){Ae.whenAllFinished([la.layoutUpdateBatch,ba.UpdateBatch],e,t)},this.performOnLayoutVisibilityUpdate=function(e,t){Ae.whenAllFinished([la.layoutUpdateBatch,ba.VisibilityUpdateBatch,ba.UpdateBatch],e,t)},this.performLayoutOrderUpdate=function(e,t){Ae.whenAllFinished([la.layoutUpdateBatch,aa.OrderingBatch,ba.UpdateBatch],e,t)},this.performVisibilityUpdate=function(e,t){ba.VisibilityUpdateBatch.whenFinished(e,t)},this.requestWriteOperation=function(e,t){Vn.PendingWriteOperations.requestOperation(e,t)},this.requestReadOperation=function(e,t){Vn.PendingReadOperations.requestOperation(e,t)},this.requestIndpendentWriteOperation=function(e,t){Er.performUpdateOnRenderingFinished(function(){Er.requestWriteOperation(e,t)},t)},this.requestIndpendentReadOperation=function(e,t){Er.performUpdateOnRenderingFinished(function(){Er.requestReadOperation(e,t)},t)}}),Tr=fs(function(){function e(e,n,i){window.open(e+n+i,"_blank",t)}var t="toolbar=yes, scrollbars=yes, resizable=yes, top=500, left=500, width=550, height=420";this.share=function(t,n,i){n=encodeURIComponent(n);var a="",r="";switch(i&&(r="&"+f.generateQueryString(i)),t){case"facebook":a="http://www.facebook.com/sharer.php?u=";break;case"twitter":a="https://twitter.com/intent/tweet?url=";break;case"googlePlus":a="https://plus.google.com/share?url=";break;case"linkedin":a="https://www.linkedin.com/shareArticle?mini=true&url="}e(a,n,r)}}),xr=fs(function(){function e(){return{imageData:{id:1155,imagePath:"494358407/494358407.jpg",thumbPath:"494358407/494358407_thumb.jpg",imageWidth:1340,imageHeight:784,title:"494358407",description:null,category:1,storageServer:61,ownerID:null,albumID:101,scaledVersions:[{size:1e3,suffix:"_1000"},{size:200,suffix:"_200"},{size:400,suffix:"_400"},{size:600,suffix:"_600"},{size:800,suffix:"_800"}]},backgroundColor:{color:"rgb(255, 255, 255)"}}}function t(){return{videoId:"badHUNl2HXU",videoType:Ze.Youtube,videoUrl:"https://youtu.be/badHUNl2HXU",videoImageUrl:"https://i.ytimg.com/vi/badHUNl2HXU/hqdefault.jpg"}}function n(e){var t={BackgroundImages:"image",BackgroundTextures:"image",DefaultImage:"image",DefaultVideo:"video",GalleryImages:"image",GalleryVideos:"video",BlogPageImage:"image",PostPageImage:"image"};f.eachEntry(yt,function(n,i){e[i]||(e[i]={type:t[i],items:[]})})}var i,a=this;this.initialize=function(){var e=Settings.PresetAssets;if(e)try{i=JSON.parse(e)}catch(t){}i||(i={}),n(i)},this.getPresetAssets=function(e){return e?i[e]:i},this.getPresetAsset=function(n){var i,r=a.getPresetAssets(n);if(r&&(i=r.items[0],!i)){var o=r.type;"image"===o?i=e():"video"===o&&(i=t())}return i},this.getDefaultIcon=function(){return this.getPresetAsset(yt.DefaultImage).imageData}}),kr=fs(function(){function e(e){var n=t[e];return n||(n=t[e]={loadPromise:f.Deferred(),isFetchedOnce:!1,isInFetching:!1}),n}var t={};ce.on("structure",function(t){var n=t.id,i=t.structure,a=e(n);a.loadPromise.resolve(i),a.isInFetching=!1,a.isFetchedOnce=!0}),this.loadStructure=function(n,i,a,r){var o,s=e(n);if(!s.isFetchedOnce&&!s.isInFetching){s.isInFetching=!0;var l=se.resolveAssetUrl(i);v.getScriptWithValidation(l,function(){return"resolved"!==s.loadPromise.state()}).fail(function(){s.loadPromise.reject()})}return o=s.loadPromise.promise(),a&&o.done(a),o.fail(function(){r&&r(),delete t[n]}),o}}),Dr=fs(function(){function e(){var e=[];return f.eachEntry(n,function(t){e.push(n[t])}),e}var t={},n={};this.initialize=function(){x.createEventListener(Ia.SiteSavedEvent,function(){t=f.cloneObject(n),n={}}).activate(),x.createEventListener(Ia.BeforeSavingSiteEvent,function(){for(var e=f.getKeys(t),i=0;i<e.length;i+=1){var a=e[i],r=sa.getInstanceByID(e[i]);if(r){var o;if(o=Ha.Flags.IsInMobileContext.isTrue()?r.data.pcShapeReference:r.getSvgController().createShapeReference(),void 0!==t[a]&&t[a].shape!==o.shape){o.shapeId=f.uniqueID(),de.disableOperationsRecording("SvgVersionsManager");var s=f.cloneObject(o);Ha.Flags.IsInMobileContext.isTrue()?(r.properties.shapeReference.value=s,r.data.pcShapeReference=s):r.setPropertyValue("shapeReference",s),de.enableOperationsRecording("SvgVersionsManager"),n[a]=o}}}}).activate()},this.addToLastSavedShapesList=function(e,n){t[e]=f.cloneObject(n)},this.setPendingShapesList=function(){return e()}}),Fr={},Ar=fs(function(){function e(){a.unbindAll(),o.unbindAll(),r.unbindAll();var e=i.getPageContentLayout();if(e.hasSideBar()){var s=wr.CurrentSideBarPageSections;s.itemsAddedEvent.bind(t).addToCollection(a),s.itemsRemovedEvent.bind(t).addToCollection(a),t()}var l=wr.CurrentMainPageSections;l.itemsAddedEvent.bind(n).addToCollection(a),l.itemsRemovedEvent.bind(n).addToCollection(a),n()}function t(){r.unbindAll(),Er.performUpdateOnRenderingFinished(function(){f.eachEntry(wr.CurrentSideBarPageSections.getItems(),function(e,t){t.instance.sizeChangedEvent.bind(function(){Er.performUpdateOnRenderingFinished(function(){i.SideBarPartContentSizeChangedEvent.fireNew(),i.PageLayoutPartContentSizeChangedEvent.fireNew(Do.SideBar)},"SideBarSectionsSizeChange")}).addToCollection(r)}),Er.performOnLayoutVisibilityUpdate(function(){i.SideBarPartContentSizeChangedEvent.fireNew(),i.PageLayoutPartContentSizeChangedEvent.fireNew(Do.SideBar)})},"HandleSideBarSectionsChange")}function n(){o.unbindAll(),Er.performUpdateOnRenderingFinished(function(){f.eachEntry(wr.CurrentMainPageSections.getItems(),function(e,t){t.instance.sizeChangedEvent.bind(function(){Er.performUpdateOnRenderingFinished(function(){i.MainContentPartContentSizeChangedEvent.fireNew(),i.PageLayoutPartContentSizeChangedEvent.fireNew(Do.MainContent)},"MainContentSectionsSizeChange")}).addToCollection(o)}),Er.performOnLayoutVisibilityUpdate(function(){i.MainContentPartContentSizeChangedEvent.fireNew(),i.PageLayoutPartContentSizeChangedEvent.fireNew(Do.MainContent)})},"HandleMainContentSectionsChange")}var i=this,a=x.createBindingsCollection(),r=x.createBindingsCollection(),o=x.createBindingsCollection();this.PageContentLayoutChangedEvent=x.create(),this.SideBarPartContentSizeChangedEvent=x.create(),this.MainContentPartContentSizeChangedEvent=x.create(),this.PageLayoutPartContentSizeChangedEvent=x.createNamedEvents(),this.registerPageContentLayout=function(e,t){Fr[e]={name:e,create:function(e,n){return new t(e,n)}}},this.initialize=function(){f.when(va.FirstPageLoaded).done(function(){va.getPageContentInstance().contentLayoutChangedEvent.bindAndExecute(function(){e(),i.PageContentLayoutChangedEvent.fireNew()})})},this.getPageContentLayout=function(){return va.getPageContentInstance().getPageContentLayout()},this.getSectionsWrapper=function(e){var t=Ar.getPageContentLayout();return t.getSectionsWrapper(e)},this.hasSideBar=function(){var e=Ar.getPageContentLayout();return e.hasSideBar()},this.getPageContentLayoutOptions=function(){var e=Ar.getPageContentLayout();return e.getLayoutOptions()},this.getSideBarSide=function(){var e=Ar.getPageContentLayout();return e.hasSideBar()?e.getLayoutOptions().side:void 0}}),Br=fs(function(){function e(t,n){var l=t.elementProperties.dataInfo,c=t.type,u=t.elementProperties.buttonAction,d=t.elementProperties.fieldsMap,g=t.elementProperties.fieldsTemplates,p=t.elementProperties.skinBinding,h=(t.elementProperties.shapeReference,t.elementProperties.formID);return r(c,g,t,n),o(c,p,t,n),s(c,l,t,n),u&&(t.elementProperties.buttonAction=f.replaceValuesKey(u,f.deepCloneObject(u),"targetId",n.oldToNewIDMapping)),d&&(d=f.replaceKeys(d,n.oldToNewIDMapping),t.elementProperties.fieldsMap=d),a(c,h,t,n),i(t,n),t.childElements&&f.eachItem(t.childElements,function(i,a){t.childElements[i]=e(a,n)}),t}function t(e,t,i,a){var r=f.deepCloneObject(e);return void 0===r.oldId&&(r.oldId=e.id),t.rootsIds[i]&&(a.oldToNewIDMapping[e.id]=t.rootsIds[i],a.newToOldIDMapping[t.rootsIds[i]]=e.id,r.id=t.rootsIds[i]),r.containerId=void 0,r=n(r,!0,i,t,a)}function n(e,t,i,a,r){var o=e.id;return(!t||a&&!a.rootsIds[i])&&((a&&a.generateNewID||sa.getInstanceByID(o))&&(o=ka.generateWebsiteId()),r.oldToNewIDMapping[e.id]=o,r.newToOldIDMapping[o]=e.id),a&&(e=a.structureProcessor(e),a.deleteDataBinding&&e.elementProperties&&e.elementProperties.dataBinding&&delete e.elementProperties.dataBinding),e.id=o,e.childElements&&f.eachItem(e.childElements,function(t,o){e.childElements[t]=n(o,!1,i,a,r)}),e}function i(e){var t;if("SvgElement"===e.type){var n=e.elementProperties.shapeReference;n.shapeID=void 0,t=Qt.createPropertiesList(n,!1),e.elementProperties.shapeReference=t.shapeReference,e.elementProperties.svgProperties=t.svgProperties,e.elementProperties.innerObjectsRoles=t.innerObjectsRoles,e.elementProperties.sizeAndPosition=t.sizeAndPosition}else if("LogoElement"===e.type){var i=e.elementProperties.logoReference;i.shapeID=void 0,t=Kt.createPropertiesList(i,!1),e.elementProperties.logoReference=t.logoReference,e.elementProperties.svgProperties=t.svgProperties,e.elementProperties.sizeAndPosition=t.sizeAndPosition}}function a(e,t,n){t&&(n.elementProperties.formID="id"+f.uniqueID())}function r(e,t){if(t){var n=f.uniqueID();f.eachEntry(t,function(t,i){f.eachEntry(i,function(t,a){if(ri[e].hasFeature(oi.HasFormData)||(n=f.uniqueID()),a.hierarchy&&a.hierarchy.structures[0].elementProperties.skinBinding&&a.hierarchy.structures[0].elementProperties.skinBinding.hierarchy){var r=a.hierarchy.structures[0].elementProperties.skinBinding.hierarchy,o=a.hierarchy.structures[0].type;r=ur.convertFieldsToTemplate(r),i[t].hierarchy=ur.convertTemplateToSkinTemplateWithFields(r,o,n)}else a.hierarchy&&(i[t].hierarchy=ur.convertTemplateToSkinTemplateWithFields(a.hierarchy,void 0,n))})})}}function o(e,t,n){if(t&&t.hierarchy){var i=n.type;ri[i].hasFeature(oi.SkinElement)?ri[i].hasFeature(oi.DataListItem)||ri[i]===ri.SkinNavigationButton||(t.skinName=ka.generateWebsiteId()):(t.hierarchy=ur.convertFieldsToTemplate(t.hierarchy),t.hierarchy=ur.convertTemplateToSkinTemplateWithFields(t.hierarchy,e))}}function s(e,t,n,i){if(t&&t.currentData){var a=t.currentData,r=t.itemsMap;r&&0!==f.count(r)||(r=a.itemsMap,r||(r={})),t.itemsMap=r;var o={};if(i.oldToNewIDMapping[a.id]&&e===ri.Menu.name){var s=i.oldToNewIDMapping[a.id],l={},c=0;f.eachEntry(a.items,function(e,t){var n=s+"p"+c;o[n]=t.id,l[n]=t,l[n].id=n,c++,r[n]=r[e],delete r[e]}),a.items=l,t.currentData=a,t.itemsMap=r}var u=a.items;u||(u=a),f.eachEntry(u,function(e){var t=o[e]?n.oldId+Ke+o[e]:n.oldId+Ke+e;i.oldToNewIDMapping[t]=n.id+Ke+e}),t=f.replaceValuesKey(t,f.deepCloneObject(t),"id",i.oldToNewIDMapping),n.elementProperties.dataInfo=t}}this.duplicateHierarchyInfo=function(n,i){i=f.quickExtend({generateNewID:!0,rootsIds:[],structureProcessor:f.returnValue,deleteCustomStatesOrders:!1,deleteDataBinding:!1,removeMobileStates:!1},i);var a={id:ka.generateWebsiteId()},r=i.deleteCustomStatesOrders;a.newToOldIDMapping={},a.oldToNewIDMapping={},a.connections={},a.customStatesProperties={},a.structures=[],a.defaultProperties=n.defaultProperties,a.defaultDefinitonNamesMap=n.defaultDefinitonNamesMap,a.version=n.version,a.StructureVersion=n.StructureVersion,f.eachItem(n.structures,function(e,n){var r=t(n,i,e,a);a.structures.push(r)});var o;if(n.connections&&(o=n.connections.targetConnections,o&&f.eachEntry(o,function(e){a.oldToNewIDMapping[e]||(a.oldToNewIDMapping[e]=f.uniqueID())})),f.eachItem(a.structures,function(t,n){e(n,a)}),n.connections){o=n.connections.targetConnections;var s={};o&&(s=f.replaceKeys(o,a.oldToNewIDMapping),f.replaceValuesKey(s,s,"sourceElementID",a.oldToNewIDMapping),f.replaceValuesKey(s,s,"targetElementID",a.oldToNewIDMapping),f.replaceValuesKey(s,s,"id",a.oldToNewIDMapping)),a.connections.targetConnections=s,a.connections.sourceConnections={}}if(n.customStatesProperties){var l=a.customStatesProperties=f.replaceKeys(n.customStatesProperties,a.oldToNewIDMapping),c={};f.eachEntry(l,function(e,t){var n=t.rowsItems;n&&f.replaceValuesKeyByFunction(n,"id",c,f.uniqueID)}),f.eachEntry(l,function(e,t){var n=t.cellItem;n&&(f.replaceValuesKeyByFunction(n,"id",c,f.uniqueID),f.replaceValuesKeyByFunction(n,"rowId",c,f.uniqueID)),r&&delete t.order}),f.eachEntry(l,function(e,t){var n=t.cellItem;n&&(t.cellItem=f.replaceKeys(n,c));var i=t.rowsItems;i&&(t.rowsItems=f.replaceKeys(i,c))}),i.removeMobileStates&&f.eachEntry(l,function(e,t){f.eachEntry(t,function(e,t){delete t[Ha.MobileStateName]})})}return a}}),Vr={},Lr=fs(function(){this.registerHtmlElement=function(e,t){Vr[e]={name:e},Vr[e].create=function(e){return new t(e)}}}),Mr=fs(function(){this.DataBindings=$t.create({idFunction:function(e){return e.key}}),this.isLoaded=!1,this.initialize=function(t){if(!t)return void(this.isLoaded=!0);for(var n in t)t.hasOwnProperty(n)&&this.loadDataBinding(t,n,e.Site,null);this.isLoaded=!0},this.changed=cs,this.setValue=function(e,t){var n=this.getDataBinding(e),i=this.updateDataBindingModel(n.getValue(),t);n.setValue(i),this.changed()},this.getDataBinding=function(e,t,n,i){var a=this.getDataBindingKey(e,t,n),r=Mr.DataBindings.getItem(a);return r||(r=_.create(null,{}),r.key=a,r.name=e,r.level=t,r.id=n,r.temporary=i||!1,Mr.DataBindings.put(r)),r},this.getDataBindingKey=function(t,n,i){return n||(n=e.Site),i||(i=null),t+"|"+n+"|"+i},this.getDataBindingValue=function(e,t,n){var i=this.getDataBindingKey(e,t,n),a=Mr.DataBindings.getItem(i);if(a){var r=a.getValue();if(r)return r.value}var o=this.getBindingAlternative(e);if(o&&(i=this.getDataBindingKey(o),a=Mr.DataBindings.getItem(i))){var s=a.getValue();if(s)return s.value}return null},this.updateDataBindingValue=function(e,t){if(e){var n=this.updateDataBindingModel(e.getValue(),t);e.setValue(n),this.changed()}},this.updateDataBindingModel=function(e,t){var n=Rt.getCurrentDateString("yyyy/mm/dd HH:MM:ss",!0);return e=e&&"string"!=typeof e?f.quickExtend(f.cloneObject(e),{value:t,modified:n}):{value:t,created:n}},this.updateSiteLevelDataBindingValue=function(t){if(t&&t.level!==e.Site&&this.allowStoreValueAtSiteLevel(t)===!0){var n=Mr.getDataBinding(t.name,e.Site,null,!1),i=t.getValue()||{},a=this.updateDataBindingModel(n.getValue(),i.value);a.ownedBy=t.key,n.setValue(a)}},this.allowStoreValueAtSiteLevel=function(t){if(!t||t.level===e.Site)return!1;var n=0,i=!1,a=!1;return this.iterateAllBindings(function(r){if(t!==r&&r.name===t.name&&r.level>e.Site)n++;else if(r.name===t.name&&r.level===e.Site){i=!0;var o=r.getValue();a=!o||!o.ownedBy||o.ownedBy===t.key||!Mr.DataBindings.getItem(o.ownedBy)}}),i===!1||0===n||a===!0},this.getDataBindingId=function(t,n){if(n===e.Site)return null;if(n===e.Instance)return t.id;for(var i=t;i;){if(i.hasFeature(oi.PageSection)&&n===e.Section)return i.id;if(i.elementType===ri.page&&n===e.Page)return i.id;i=i.parentInstance}return null},this.loadDataBinding=function(t,n,i,a){if("string"==typeof n){var r=t[n],o=void 0;switch(n){case"Section":o=e.Section;break;case"Page":o=e.Page;break;case"Instance":o=e.Instance;break;case"Site":o=e.Site}if(o===e.Site)for(var s in r)r.hasOwnProperty(s)&&this.loadDataBinding(r,s,e.Site,null);else if(o){for(var l in r)if(r.hasOwnProperty(l)){var c=r[l];for(var u in c)c.hasOwnProperty(u)&&this.loadDataBinding(c,u,o,l)}}else{var d=this.getDataBinding(n,i,a);if(!d)return;d&&r&&d.setValue(r)}}},this.iterateAllBindings=function(e){var t=this.DataBindings.getItems();for(var n in t)if(t.hasOwnProperty(n)){var i=t[n];if(e(i)===!1)break}},this.getDataBindingHierarchy=function(){var t=null;return this.iterateAllBindings(function(n){if(n&&null!==n&&n.temporary!==!0){var i=n.getValue();if(null!==i){var a=n.level||e.Site,r=Mr.bindingStoreLevelToString(a)||"Site";null===t&&(t={}),t[r]||(t[r]={}),a!==e.Site?(t[r][n.id]||(t[r][n.id]={}),t[r][n.id][n.name]=i):t[r][n.name]=i}}}),t},this.deleteDataBindingIfNotInUse=function(t){t&&t.level&&t.level!==e.Site&&t.valueChangedEvent&&!t.valueChangedEvent.hasBindings()&&Mr.DataBindings.remove(t.key)},this.clearTemporaryBindings=function(){this.iterateAllBindings(function(e){e.temporary===!0&&Mr.DataBindings.remove(e.key)})},this.createTemporaryBindingsForChangeInstance=function(e,t){if(t.hasFeature(oi.PageSection))Mr.createTemporarySectionBindings(e,t);else{var n=Ca.findAncestor(e,function(e){return e.hasFeature(oi.PageSection)});n&&Mr.createTemporarySectionBindings(n,n,e,t)}},this.applyTemporaryBindingsForChangeInstance=function(e,t){if(t.hasFeature(oi.PageSection))Mr.activateTemporarySectionBindings(e,t);else{var n=Ca.findAncestor(t,function(e){return e.hasFeature(oi.PageSection)});n&&Mr.activateTemporarySectionBindings(n,n,e,t)}},this.createTemporarySectionBindings=function(t,n,i,a){this.clearTemporaryBindings();var r=t.id,o=n.id,s=Ca.findDescendingInstances([i||t],function(e){return e.hasFeature(oi.HasDataBinding)}),l=Ca.findDescendingInstances([a||n],function(e){return e.hasFeature(oi.HasDataBinding)});this.iterateAllBindings(function(t){if(t.level===e.Section&&t.id===r){var n=Mr.getDataBinding(t.name,t.level,o,!0);n&&(n.temporary=!0,n.setValue(t.getValue()))}else if(t.level===e.Instance){var i=!1;f.eachItem(s,function(e,n){return t.id===n.id?(t.temporary=!0,i=!0,!1):void 0}),i||f.eachItem(l,function(e,n){return t.id===n.id?(t.temporary=!0,!1):void 0})}})},this.activateTemporarySectionBindings=function(t,n,i,a){var r=t.id,o=n.id,s=Ca.findDescendingInstances([i||t],function(e){return e.hasFeature(oi.HasDataBinding)}),l=Ca.findDescendingInstances([a||n],function(e){return e.hasFeature(oi.HasDataBinding)});this.iterateAllBindings(function(t){
if(t.level!==e.Section&&t.level!==e.Instance||t.id!==o)if(t.level!==e.Section&&t.level!==e.Instance||t.id!==r){if(t.level===e.Instance){var n=!1;f.eachItem(s,function(e,i){if(t.id===i.id){t.temporary=!1,n=!0;var a=!1;return f.eachItem(l,function(e,n){var r=n.getDataBindingKey();return t.name===r?(i.deleteDataBinding(),Mr.DataBindings.remove(t.key),t.id=n.id,t.key=Mr.getDataBindingKey(t.name,t.level,t.id),Mr.DataBindings.put(t),n.initializeDataBinding(),a=!0,!1):void 0}),a||Mr.DataBindings.remove(t.key),!1}}),n||f.eachItem(l,function(e,n){if(t.id===n.id){t.temporary=!1;var i=t.getValue();return i||n.updateDataBinding(),!1}})}}else Mr.DataBindings.remove(t.key);else t.temporary=!1})},this.deleteDataBinding=function(e){e&&!e.temporary&&this.DataBindings.remove(e.key)},this.bindingStoreLevelToString=function(t){for(var n in e)if(e[n]===t)return n;return null},this.getBindingStoreLevel=function(t){if(t)for(var n=0;n<this.Bindings.length;n++){var i=this.Bindings[n];if(i.value===t)return i.storeLevel||e.Site}return e.Site},this.getBindingAlternative=function(e){if(e)for(var t=0;t<this.Bindings.length;t++){var n=this.Bindings[t];if(n.value===e)return n.alternative}return null};var e={Site:0,Page:1,Section:2,Instance:3},t={Unknown:0,Text:1,Email:2,Date:3,Url:4,Phone:5,Address:6,Map:7};this.Keys={Site:{Title:"site.title",Subtitle:"site.subtitle",About:"site.about",Address:"site.address",Phone:"site.phonenumber",Phone2:"site.phonenumber2",Fax:"site.faxnumber",Street:"site.street",City:"site.city",Zip:"site.zip",State:"site.state",Country:"site.country",Email:"site.email",Map:"site.map",Facebook:"site.facebook",YoutubeChannelId:"site.youtubechannelid",Image:{Logo:"site.image.logo",Header:"site.image.header"}},Section:{Contact:{Address:"contact.address",Phone:"contact.phonenumber",Phone2:"contact.phonenumber2",Fax:"contact.faxnumber",Street:"contact.street",Email:"contact.email",Map:"contact.map"},Live:{Gallery:"live.gallery"},DataSource:{VideoGallery:"datasource.videogallery",Gallery:"datasource.gallery",Events:"datasource.events"}},Instance:{DataSource:{VideoGallery:"datasourceinstance.videogallery",Gallery:"datasourceinstance.gallery",Events:"datasourceinstance.events"},Social:{Facebook:"social.facebook",Twitter:"social.twitter",TwitterFeed:"social.twitterfeed",YoutubeChannelId:"social.youtubechannelid"}}};var n=this.Keys;this.Bindings=[{title:"None",value:null,fieldType:t.Unknown}],this.SiteBindings=[{title:"Site Title",value:n.Site.Title,type:t.Text},{title:"Site Subtitle",value:n.Site.Subtitle,type:t.Text},{title:"Site About",value:n.Site.About,type:t.Text},{title:"Site Address",value:n.Site.Address,type:t.Text},{title:"Site Phonenumber",value:n.Site.Phone,type:t.Text},{title:"Site Phonenumber2",value:n.Site.Phone2,type:t.Text},{title:"Site Fax",value:n.Site.Fax,type:t.Text},{title:"Site Street",value:n.Site.Street,type:t.Text},{title:"Site City",value:n.Site.City,type:t.Text},{title:"Site Zip",value:n.Site.Zip,type:t.Text},{title:"Site State",value:n.Site.State,type:t.Text},{title:"Site Country",value:n.Site.Country,type:t.Text},{title:"Site Email",value:n.Site.Email,type:t.Text},{title:"Site Map",value:n.Site.Map,type:t.Text},{title:"Site Facebook",value:n.Site.Facebook,type:t.Text},{title:"Site YoutubeChannel",value:n.Site.YoutubeChannelId,type:t.Text},{title:"Site Image Logo",value:n.Site.Image.Logo,type:t.Image},{title:"Site Image Header",value:n.Site.Image.Header,type:t.Image}],this.PageBindings=[],this.SectionBindings=[{title:"Contact Address",value:n.Section.Contact.Address,fieldType:t.Address,alternative:n.Site.Address},{title:"Contact Telephone",value:n.Section.Contact.Phone,fieldType:t.Phone,alternative:n.Site.Phone},{title:"Contact Telephone 2",value:n.Section.Contact.Phone2,fieldType:t.Phone,alternative:n.Site.Phone2},{title:"Contact Fax",value:n.Section.Contact.Fax,fieldType:t.Phone,alternative:n.Site.Fax},{title:"Contact Street",value:n.Section.Contact.Street,alternative:n.Site.Street},{title:"Contact Map",value:n.Section.Contact.Map,fieldType:t.Map,elementType:ri.googleMap,alternative:n.Site.Map},{title:"Contact Email",value:n.Section.Contact.Email,fieldType:t.Email,alternative:n.Site.Email}],this.InstanceBindings=[{title:"Gallery",value:n.Instance.DataSource.Gallery},{title:"Video Gallery",value:n.Instance.DataSource.VideoGallery},{title:"Events",value:n.Instance.DataSource.Events},{title:"Facebook",value:n.Instance.Social.Facebook,alternative:n.Site.Facebook},{title:"Youtube Channel",value:n.Instance.Social.YoutubeChannelId,alternative:n.Site.YoutubeChannelId},{title:"Twitter feed",value:n.Instance.Social.TwitterFeed}];var i=this.Bindings;f.each(this.SiteBindings,function(t,n){n.storeLevel=e.Site,i.push(n)}),f.each(this.PageBindings,function(t,n){n.storeLevel=e.Page,i.push(n)}),f.each(this.SectionBindings,function(t,n){n.storeLevel=e.Section,i.push(n)}),f.each(this.InstanceBindings,function(t,n){n.storeLevel=e.Instance,i.push(n)})}),Or=fs(function(){function e(e){if(!e)throw new TypeError("The appmarket store requires a instanceId");var t=Ia.getStoreInformation();zr.defaultQueryParameters.instanceId=o.instanceId=e,Ia.setStoreInformation(t)}function t(e){zr.instanceJwt=e}function n(e){e=e||{};var t=e.publicApi||"",n=e.embedApi||"";if(e.shoppingCart){var i=/^https?:\/\/[^\/]+/i,a=e.shoppingCart.match(i);a.length>0&&(n=a[0],t=n.replace("st-shop","st-shop-api"))}var r=f.extend(e,{products:"product/all",detailItem:"product/detail",publicApi:t,embedApi:n,status:"setup/status"});zr.changeStoreEndPoints(r)}function i(){var e=Ia.getStoreInformation();e.isTemplate=!1,Ia.setStoreInformation(e)}var a=this,r=!1,o={};a.storeManageUrls={products:"products",rearrange:"products"},a.createWebService=function(e){if(e=f.evaluateWhenFunction(e),"string"!=typeof e)throw new TypeError("The endpoint should be a valid string or result in a valid string.");var t=new Si(a.getEndpointBaseUrl()+"/v1.0/"+e);return t},a.getStoreManagementUrl=function(e){e||(e={});var t=f.Deferred(),n=function(n){if(n&&"string"==typeof n){if(e.goTo){var i=n.split("?"),a=i[0],r=i[1],o=a.substring(a.lastIndexOf("/")+1);a=a.replace(o,e.goTo),n=a+"?"+r}t.resolve(n,!0),Nr.getInitialElementProperties(void 0,!0)}else t.reject()},i=function(e){t.reject(e)};return Zn.getStoreDashboard(Ia.getSiteID(),n,i),t},a.getStoreDashboardData=function(){var e=f.Deferred();return a.hasStore()===!1?(window.setTimeout(function(){e.reject("Store isn't enabled for this site.")},1),e):(a.getStoreStatus().done(function(t){var n=new Si("//"+Settings.ApplicationSubDomain+"."+Settings.ApplicationDomain+"/services/store/analyticsAMStore").setHttpMethod(Ii.Get).addParameter(new Ti("siteId",Ei.Query,Ia.getSiteID())).addParameter(new Ti("instanceId",Ei.Query,zr.getStoreInformation().instanceId)).addParameter(new Ti("baseUrl",Ei.Query,zr.getEndpointBaseUrl()));n.execute().done(function(n){n=n||{},n.isReady=t.isReady,e.resolve(n)}).fail(function(){e.reject(arguments)})}).fail(function(){e.reject(arguments)}),e)},a.enableStore=function(){var e=f.Deferred();return zr.addProductsPage(!0),window.setTimeout(function(){e.resolve()},1),e},a.hasStore=function(){var e=Ia.getStoreInformation();return e?this.hasStorePages()||e.hasAppMarketStore:!1},a.showAddPageModal=void 0,a.getDefaultStoreInformation=function(){return o},a.removeStoreInformation=function(e){Ia.save(function(){e()})},a.addStorePages=void 0,a.reInitAppMarketStore=function(i){e(i.instanceId),t(i.instanceJwt),n({shoppingCart:i.url})},a.initializeAppMarketStore=function(s,l){if(r)return void a.reInitAppMarketStore(s);e(s.instanceId),s.instanceJwt&&t(s.instanceJwt),n({shoppingCart:s.url}),i(),o.hasAppMarketStore=!0;var c=f.deepCloneObject(o),u=zr.getStoreInformation();u=f.extend(u,c),zr.setStoreInformation(u),a=f.extend(zr,a),a.initialize();r=!0,a.Flags.StoreInitialized.setTrue()},a.initializeAppMarketStoreFromStoreInformation=function(t){e(t.instanceId),n(t.endPoints),a=f.extend(zr,a),a.initialize()},a.getListQueryName=function(){return a.Endpoints.products}}),zr=fs(function(){function e(){var e=function(e){return function(){window.AMStore.push([e].concat(Array.prototype.slice.call(arguments,0)))}};window.AMStore=window.AMStore||[];for(var t=["init","addToCart","canAddToCart","setAnalytics"],n=0;n<t.length;n++)window.AMStore[t[n]]=e(t[n]);var a=document.createElement("script");a.type="text/javascript",a.async=!0,a.src=i.getCartUrl();var r=document.getElementsByTagName("head")[0];r.appendChild(a)}function t(e,n){if(e.subCategories&&e.subCategories.length>0)for(var i=e.subCategories,a=0;a<i.length;a++){if(i[a].id===n)return{name:i[a].name,id:i[a].id};var r=t(i[a],n);if(r)return{id:i[a].id,name:i[a].name,child:r}}}function n(e){return!!(e.attributes&&e.attributes.length>0&&e.attributes[0].color)}var i=this,a=!1;i.WebServices={},i.Flags={HasStore:O.create(!1),HasEcwidStore:O.create(!1),IsStoreVisible:O.create(!1),EditingModeEnabled:O.create(!1),CartInitialized:O.create(!1),StoreCreationPending:O.create(!1),HasVariants:O.create(!1),HasCategories:O.create(!1),StoreInitialized:O.create(!1),SettingsLoaded:O.create(!1)},i.Events={CategoriesChanged:x.create(),FiltersChanged:x.create(),SelectedFiltersChanged:x.create(),CurrentCategoryChanged:x.create(),CategoryIsChanging:x.create(),CategoryHasChanged:x.create(),SettingsChanged:x.create(),StoreInitialized:x.create(),StoreReinitialized:x.create()},i.Endpoints={publicApi:"",embedApi:"",shoppingCart:"",products:"products",detailItem:"product",status:"setup-status"},i.changeStoreEndPoints=function(e){f.quickExtend(zr.Endpoints,e),zr.WebServices={}},i.defaultQueryParameters={},i.storeReleaseVersion=28.2,i.getEndpointBaseUrl=function(){return i.Endpoints.publicApi||Settings.ServiceEndpoints.Store.PublicApi},i.getEmbedUrl=function(){return i.Endpoints.embedApi||Settings.ServiceEndpoints.Store.EmbedApi},i.getCartUrl=function(){return i.Endpoints.shoppingCart||Settings.ServiceEndpoints.Store.EmbedApi+"standalonecart.js"},i.getListInfo=function(){return Ia.getStoreInformation()},i.getListName=function(){return mr.Store},i.getTranslation=function(e){var t=Ia.getStoreInformation();return t.translations?t.translations[e]||null:null},i.formatPrice=function(e,t){return t||(t=2),void 0!==e&&null!==e?i.getCurrencySymbol()+" "+parseFloat(e).toLocaleString(void 0,{minimumFractionDigits:t,maximumFractionDigits:t}):""},i.getStoreInformation=function(){return Ia.getStoreInformation()},i.setStoreInformation=function(e){Ia.setStoreInformation(e)},i.applyDefaultQueryParametersToFunction=function(e){f.each(zr.defaultQueryParameters,function(t,n){e.addParameter(new Ti(t,Ei.Query,n))})},i.initialize=function(){i.storeInformation=Ia.getStoreInformation(),i.storeSettings||(i.storeSettings=null),Ia.getEcwidID()&&i.Flags.HasEcwidStore.setTrue();var t=i.hasStore();i.storeInformation.hasAppMarketStore&&(t=zr.hasStorePages()),t?(i.Flags.HasStore.setTrue(),i.storeIsVisible()&&i.Flags.IsStoreVisible.setTrue(),i.updateCache(),i.storeInformation.hasAppMarketStore?zr.instanceJwt&&e():e()):i.Flags.HasStore.setFalse();var n=Cr.createOrGetListFlag(mr.Store);n.onceTrue(function(){var e=Cr.getListByName(i.storeInformation.listName);e&&e.currentItemChangedEvent.bind(function(e){zr.onCurrentDetailItemChanged(e)})});zr.Events.StoreInitialized.fireNew(!0),a=!0},i.onCurrentDetailItemChanged=function(e){i.setCurrentProduct(e),i.changeUrlWithVariants(e)},i.addCartButtonToHeader=void 0,i.reinitCart=function(){var e=window.AMStore;if(e){var t={style:i.getCartColorPalette(),domain:i.getEmbedUrl()};zr.instanceJwt&&(t.instanceJwt=zr.instanceJwt),e.reInit(t)}},i.getCartColorPalette=function(){var e=Ka.CurrentThemePalette.getValue();return e&&(e=e.palette),{buttonColor:In.convertRgbToHex(e[4].variations[3]),buttonTextColor:In.convertRgbToHex(e[2].variations[0]),backgroundColor:"#FFFFFF",textColor:"#000000",titleColor:In.convertRgbToHex(e[2].variations[3])}},i.initializeCart=function(){var e=f.Deferred();if(i.hasStore()===!1)return window.setTimeout(function(){e.reject("Site doesn't have a store.")},10),e;if(i.canShowStore()===!1)return window.setTimeout(function(){e.reject("Store is not visible.")},10),e;if(i.Flags.CartInitialized.isFalse()){var t=window.AMStore;if(t){var n=ne.IsSitePreview||ne.IsTemplate,a={testMode:n,isPublished:!0,cartElement:null,storeId:i.getStoreToken(),domain:i.getEmbedUrl(),style:i.getCartColorPalette(),openCartAutomatically:!0};zr.instanceJwt&&(a.instanceJwt=zr.instanceJwt),t.init(a),window.getInsights&&window.getInsights(function(e){t.setAnalytics(e)}),zr.Flags.EditingModeEnabled.valueChangedEvent.bind(function(){i.reinitCart()})}i.Flags.CartInitialized.setTrue(),window.setTimeout(function(){e.resolve()},1)}else zr.Flags.EditingModeEnabled.valueChangedEvent.bind(function(){i.reinitCart()}),window.setTimeout(function(){e.resolve()},1);return e},i.getCartButtonSelector=function(){return"store-cart-button-selector"},i.initializeCartButton=function(e){if(!i.isTemplateStore()){e=f.quickExtend({priceLabel:null,amountLabel:null},e);var t=f("."+i.getCartButtonSelector());if(t){var n=window.AMStore;if(n){var a=ne.IsSitePreview||ne.IsTemplate,r={testMode:a,isPublished:!0,cartElement:t,storeId:i.getStoreToken(),domain:i.getEmbedUrl(),style:i.getCartColorPalette(),elements:{cart:null,priceLabel:e.priceLabel,priceLabelSelector:e.priceLabelSelector,amountLabel:e.amountLabel,amountLabelSelector:e.amountLabelSelector},openCartAutomatically:!0};zr.instanceJwt&&(r.instanceJwt=zr.instanceJwt),n.init(r),window.getInsights&&window.getInsights(function(e){n.setAnalytics(e)}),i.Flags.CartInitialized.setTrue()}else zr.Events.StoreInitialized.bind(function(){window.AMStore&&i.initializeCartButton(e)})}else ee.error("Cart button isn't a valid JQuery instance")}},i.addProductToCart=function(e,t,n){var i=window.AMStore;i&&(Ha.Flags.IsInMobileContext.isTrue()&&window.scrollTo(0,0),i.addToCart(e,t,n))},i.updateCache=function(){var e=i,t=e.hasStore();t&&e.getSettings(!0).done(function(t){e.storeSettings=t,e.Events.SettingsChanged.fireNew(t),e.Flags.SettingsLoaded.setTrue()})},i.createWebService=function(e){if(e=f.evaluateWhenFunction(e),"string"!=typeof e)throw new TypeError("The endpoint should be a valid string or result in a valid string.");return new Si(i.getEndpointBaseUrl()+"{StoreToken}/"+e).addParameter(new Ti("StoreToken",Ei.Template,i.getStoreToken.bind(this)))},i.disableStore=function(){Ia.setStoreInformation(void 0),i.initialize()},i.getStoreToken=function(){var e=i.hasStore();if(e!==!0)throw Error("The store has not been enabled for the current site.");return i.getStoreInformation().storeToken},i.hasStore=function(){var e=Ia.getStoreInformation();return!(!e||!e.storeToken)},i.hasStorePages=function(){var e=Ia.getStoreInformation();return e?!!e.listName:!1},i.storeIsVisible=function(){var e=Ia.getStoreInformation();return e&&e.isVisible===!1?!1:!f.isEmptyObject(Ia.getStoreInformation())},i.canShowStore=function(){return i.storeIsVisible()},i.isTemplateStore=function(){var e=i.storeInformation;return e?e.isTemplate===!0:!1},i.getCurrencySymbol=function(){var e=i.storeSettings;if(e){var t=e.supportedCurrencies;if(t)return t["default"].symbol}return"$"},i.getWeightSymbol=function(){var e=i.storeSettings;return e?e.weightUnit||"kg":"kg"},i.getCategoryHierarchy=function(e){var t=i.WebServices.categoryHierarchyWebService;return t?t.getResult(e):(i.WebServices.categoryHierarchyWebService=t=i.createWebService("categories"),t.getResult(e))},i.getCategories=function(e){return i.ProductServiceQueue.push(e),e},i.getFilters=cs,i.getListQueryName=function(e,t,n){var i;return i=e&&f.isEmptyObject(n)?"filteroptions":f.isEmptyObject(n)?t&&t>0?"products":"categories":"products"},i.getProducts=function(e,t,n,a,r){var o=i.getListQueryName(e,n,a),s=i.createWebService(o);if(e&&s.addParameter(new Ti("categoryId",Ei.Query,e)),void 0!==t&&s.addParameter(new Ti("limit",Ei.Query,t)),n&&s.addParameter(new Ti("offset",Ei.Query,n)),i.applyDefaultQueryParametersToFunction(s),r&&("pricedes"===r?s.addParameter(new Ti("orderbydesc",Ei.Query,"price")):"priceasc"===r&&s.addParameter(new Ti("orderby",Ei.Query,"price"))),a)for(var l in a){var c=a[l];if(Object.keys(c).length>0){var u=[];for(var d in c)c[d]&&u.push(d);s.addParameter(new Ti(l,Ei.Query,u.join(",")))}}return i.WebServices.productsWebService=s,s.execute()},i.getSingleProduct=function(e){var t=i.createWebService(i.Endpoints.detailItem+"/"+e);return i.applyDefaultQueryParametersToFunction(t),t},i.getDefaultStoreInformation=function(){return{}},i.getSettings=function(e){var t=i.WebServices.storeSettingsWebService;return t?t.getResult(e):(i.WebServices.storeSettingsWebService=t=i.createWebService("settings"),i.applyDefaultQueryParametersToFunction(t),t.getResult(e))},i.setCurrentProduct=function(e){i._currentProduct=e},i.changeUrlWithVariants=function(e){var t=pa.getFragments();t[1]=e.id;var n=En.getFragment();En.replaceState("/"+n)},i.setDetailPageInfo=function(e){var t=va.getPageData(this.getListInfo().defaultDynamicPageId);if(t){t.description=e.productDescription||e.title;var n=e.title||e.productDescription||"";n=n.split(" ").join(", "),t.keyWords=n}},i.refreshDynamicPage=function(e){var t=Cr.getListByName(i.storeInformation.listName),n=hr.getListItemContent(i.storeInformation.listName,e);if(n)return void t.refreshListItem(e);var a=t.getRemoteDataSource(),r={item:{alias:e,remoteService:a.getDetailItem(e)},widgets:[]},o={};o[i.storeInformation.listName]=r,hr.loadListsContent(o,function(){t.refreshListItem(e)})},i.getCurrentProduct=function(){return i._currentProduct?i._currentProduct:null},i.setCurrentVariants=function(e){i._currentVariants=e},i.getFirstUnselectedVariant=function(e){if(e=e||i._currentVariants,!e)return null;for(var t=0;t<e.length;t++){for(var n=e[t].choices,a=!1,r=0;r<n.length;r++)n[r].selected&&(a=!0);if(!a)return e[t].name}},i.setCurrentCategories=function(e){i.availableCategories=e,zr.Flags.HasCategories.setValue(e&&e.length>0),zr.Events.CategoriesChanged.fireNew(e)},i.getAvailableCategories=function(){return i.availableCategories||[]},i.getCategoryById=function(e,t){var n=this;t=t||i.getAvailableCategories();for(var a=0;a<t.length;a++){var r=t[a];if(r.id===e)return r;if(r.subCategories&&r.subCategories.length>0){var o=n.getCategoryById(e,r.subCategories);if(o)return o}}},i.allItemsName="All products",i.getCurrentCategoryTree=function(e,n){n=n||void 0===n;for(var a=i.getAvailableCategories(),r=e||i.currentCategory,o={name:i.allItemsName,id:""},s=0;s<a.length;s++)if(a[s].id===r)return n?(o.child={name:a[s].name,id:a[s].id},o):{name:a[s].name,id:a[s].id};for(var s=0;s<a.length;s++){var l=t(a[s],r);if(l)return n?(o.child={id:a[s].id,name:a[s].name,child:l},o):{id:a[s].id,name:a[s].name,child:l}}return!1},i.setCurrentCategory=function(e){i.currentCategory=e,i.Events.CurrentCategoryChanged.fireNew(e),i.Events.CategoryIsChanging.fireNew(e)},i.setCurrentFilters=function(e){for(var t={},a=0;a<e.length;a++){var r=e[a];r.isColor=n(r),t[r.optionId]=r}i.availableFilters=t,zr.Flags.HasVariants.setValue(t&&Object.keys(t).length>0),zr.Events.FiltersChanged.fireNew(t),zr.Events.SelectedFiltersChanged.fireNew({})},i.getAvailableFilters=function(){return i.availableFilters||[]},i.setSelectedFilters=function(e){zr.Events.SelectedFiltersChanged.fireNew(e)}}),_r=fs(function(){function e(e){return!!e}function t(e,t,i,r,o){a[e]={value:t,reject:i,fromSiteHierarchy:r,date:o||n()}}function n(){return Math.floor((new Date).getTime()/1e3)}var i=this,a={},r={};i.isLoaded=!1,i.initialize=function(e){if(!e)return void(this.isLoaded=!0);for(var n in e)if(e.hasOwnProperty(n)){var i=e[n];i.value&&t(n,i.value,i.reject,!0,i.date)}this.isLoaded=!0},i.initCache=cs,i.getCacheKey=function(e,t){return t?e+t:e},i.getRequestBody=function(n,i){var o=this.getCacheKey(n,i),s=r[o];if(s)return s;s=f.Deferred(),r[o]=s;var l=a[o];if(e(l))return l.reject===!0?s.reject(l.value):s.resolve(l.value),s;var c="/services/data/dataproxyrequest?name="+n;i&&(c+="&elementId="+i);var u=new Si(c).setHttpMethod(Ii.Get);return u.execute().done(function(e){t(o,e,!1,!1),s.resolve(e)}).fail(function(e){t(o,e,!0,!1),s.reject(e)}),s},i.removeFromCache=function(e,t){var n=this.getCacheKey(e,t);delete a[n],delete r[n]},i.getDataProxyCacheHierarchy=function(){var e={};for(var t in a)if(a.hasOwnProperty(t)){var n=a[t],i={value:n.value,date:n.date};n.reject&&(i.reject=!0),e[t]=i}return e},i.tryPreLoadDataSource=function(e){if(e.hasFeature(oi.HasDataSource)){var t=e.getDataSource();if(t&&t.getDataProxyRequestName&&(t.hasDataProxyPerElementId&&t.hasDataProxyPerElementId()===!0?_r.initCache(t.getDataProxyRequestName(),e.id):_r.initCache(t.getDataProxyRequestName()),e.hasFeature(oi.HasDataListPopup)&&e.getChildDataSourceDefinition)){var n=e.getChildDataSourceDefinition();if(n){var i=new n;i&&i.getDataProxyRequestName&&_r.initCache(i.getDataProxyRequestName()),delete i}}}}}),Nr=fs(function(){var e,t=this;t.Events={ElementDataChanged:x.create()},t.Flags={},t.JavascriptLinks={},t.initialize=function(){Ia.SiteSavedEvent.bind(function(){var e=t.getAllLocalElementPropertiesForSaving();if(!f.isEmptyObject(e)){var n=t._mapAllExternalProperties(e);Zn.setProperties(n,Ia.getSiteID())}}),t.shouldGetAppMarketElements()&&t.getInitialElementProperties()},t.shouldGetAppMarketElements=function(){var e=Ia.getAppMarketInformation();if(e.hasAppMarketElements)return!0;var t=zr.getStoreInformation();return!(!t||!t.hasAppMarketStore)},t.setCookie=function(e,t){const n=new Date(2100,0,1);var i="; expires="+n.toUTCString();document.cookie=e+"="+encodeURIComponent(t)+i+"; path=/;"},t.mapExternalProperties=function(e){var t={};return f.each(e,function(e,n){n.default_value&&(t[e]=n.default_value)}),t},t.getCookie=function(e){const t=e+"=",n=decodeURIComponent(document.cookie),i=n.split(";");for(var a=0;a<i.length;a++){for(var r=i[a];" "===r.charAt(0);)r=r.substring(1);if(0===r.indexOf(t))return r.substring(t.length,r.length)}return""},t.loadElements=function(){var e=f.Deferred(),n=Ia.getSiteID(),i=null;return(n||i)&&t.internalLoadElements(e,n,i),e},t.internalLoadElements=function(e,t,n){t?Zn.getElements(t,null,function(t){t&&0!==t.length||!n?(Ia.getStoreInformation().hasAppMarketTemplateStore=!1,e.resolve(t)):zr.hasStorePages()&&Zn.getElements(null,n,function(t){Ia.getStoreInformation().hasAppMarketTemplateStore=!0,e.resolve(t)})}):Zn.getElements(null,n,function(t){Ia.getStoreInformation().hasAppMarketTemplateStore=!0,e.resolve(t)})},t.AddJavascriptLinks=function(e){var n,i,a,r=!1;e&&e.length&&f.eachItem(e,function(e,o){if(o&&!o.elementId&&o.url&&!t.JavascriptLinks[o.url])if(o.url.indexOf("shopping-cart-sdk")>-1&&!r){t.JavascriptLinks[o.url]=!0,o.instanceId&&(n=o.instanceId),o.instanceJwt&&(i=o.instanceJwt),a=o.url;var s=!1;Or.initializeAppMarketStore(o,s),r=!0}else{var l=o.url,c=/&instanceJwt(=[^&]*)?|^instanceJwt(=[^&]*)?&?/;f.getScript(l.replace(c,""),cs())}})},t.createRefreshElementsInterval=function(n){if(n&&n.length>0&&!e){var i=18e5;e=window.setInterval(function(){t.getInitialElementProperties(void 0,!0)},i)}},t.onGetElementResults=function(e){t.elementProperties=e,t.Events.ElementDataChanged.fireNew(e),t.AddJavascriptLinks(e),t.createRefreshElementsInterval(e)},t.getInitialElementProperties=function(e,n){t._elementDataPromise||(t._elementDataPromise=t.loadElements(),t._elementDataPromise.done(function(e){t.onGetElementResults(e)}))}}),Rr=fs(function(){var e=this;e.postMessageHelper=new Ri,e.postMessageHelper.bind("Subscribe",function(t){e.subscribe(t.mType,t.dest)}),e.postMessageHelper.bind("Unsubscribe",function(t){e.unsubscribe(t.mType,t.dest)}),e.send=function(t,n){e.subscribers.filter(function(e){return e.type===t}).map(function(i){e.postMessageHelper.sendMessage(document.getElementById(i.compId).contentWindow,{type:"Receive",mType:t,dest:i.compId,content:n},"Receive","")})},e.postMessageHelper.bind("Send",function(t){e.send(t.mType,t.content)}),e.postMessageHelper.bind("ComponentLoaded",function(e){ee.log("Component "+e.content+" has loaded.")}),e.postMessageHelper.bind("NewGuid",function(e){Nr.setCookie("user",e.content)}),e.subscribers=[],e.subscribe=function(t,n){e.subscribers.push({type:t,compId:n})},e.unsubscribe=function(t,n){e.subscribers=e.subscribers.filter(function(e){return e.type!==t||e.compId!==n})}}),Hr=function(){var e=C.extend("HtmlElement",{init:function(e){var t=this;t._options=e=f.quickExtend({},e),t.name=e.name,t.id=f.weakID()},appendTo:function(e){var t=this;t._$content.appendTo(e),t._$parent=e},initialize:function(){var e=this;e._$content=this._renderContent(),this.isInitialized=!0},getDisplayName:function(){return"Html Element"},getSize:function(){return this._getSize()},activate:function(){this._activate(),this.isActivated=!0},deactivate:function(){this._deactivate(),this.isActivated=!1},dispose:function(){this.deactivate(),this._dispose(),this._$content.remove()},_getSize:cs,_renderContent:cs,_activate:cs,_deactivate:cs,_dispose:cs});return e.create=function(e,t){t.name=e;var n=Fr[e];return n?n.create(t):void 0},e}();!function(){var e={Element:{group:"resume-built-by-section-element-templates",name:"resume-built-by-section-element-template"}},t=Hr.extend("ResumeBuiltBySectionElement",{_renderContent:function(){var t=f.useTemplate(e.Element),n=Settings.BrandSettings;if(n){var i=Settings.BrandSettings.ResumeBrandLogoGray,a=Settings.BrandSettings.ResumeBrandLogoGrayRetina;f(".logo",t).attr("src",f.isRetinaDisplay()?a.url:i.url).css({width:i.width,height:i.height})}return t},_getSize:function(){return this._$content.outerSize()},getDisplayName:function(){return"Resume Section"}});Lr.registerHtmlElement("ResumeBuiltBySectionElement",t)}();var qr=function(){function e(e){var n=e._listDefinition.createFieldsConverter(),i=e.getListInfo(),a=e.getListName();return{setterMapper:function(e){e=f.makeArray(e);var t=[];return f.withObject(Cr.FieldNames,function(i){f.eachItem(e,function(e,a){var r={};r[i.Id]=a.id,r[i.Title]=a.title,r[i.Content]=a.content,r[i.UrlAlias]=a.urlAlias,r[i.Status]=a.status,r[i.Tags]=a.tags,r[i.Categories]=a.categories,r[i.MetaData]=a.metaData,t.push(f.quickExtend(r,n.setterMapper(a)))})}),t},getterMapper:function(e,r,o){e=f.asArray(e);var s=[];return f.withObject(Cr.FieldNames,function(l){f.eachItem(e,function(e,c){var u={id:c[l.Id],title:c[l.Title],urlAlias:c[l.UrlAlias],status:c[l.Status],tags:c[l.Tags],categories:c[l.Categories],metaData:f.valueOrDefault(c[l.MetaData],{})},d=c[l.Content];r&&void 0!=d&&f.quickExtend(u,{content:d}),o?f.quickExtend(u,o.normalizeItem(c)):f.quickExtend(u,n.getterMapper(u,c,r)),f.quickExtend(u,{itemLink:t(i,u),isDummy:ds,order:e+1}),Ea.fixListItem(a,u,r&&void 0!=u.content),s.push(u)})}),s}}}function t(e,t){return{url:{masterListPageId:e.connectedListPage,suffixFragments:[t.urlAlias]},type:nt.Pages}}function n(e,t,n,i,a,r){r=f.quickExtend({defaultMode:!1},r);var o=r.defaultMode,s=e._currentListId,l=e.getListName(),c=s.getValue(),u=!1,d=e._listUpdatedListener;o&&(c=Cr.getDefaultListIdByName(l),s.getValue()!==c&&(d.deactivate(),u=!0));var g=function(e){!o&&s.setValue(e.listId),i(e),u&&d.activate()},p=function(){a.apply(this,arguments),u&&d.activate()},h=[c,l].concat(n,[g,p,{defaultMode:o,createNewList:!o&&e.isListTemplate()}]);t.apply(this,h)}function i(e){var t=e.getAvailableFields(),n=e.getMandatoryFields();return f.eachEntry(t,function(e,t){n[e]=f.quickExtend(n[e],t)}),n}var a=C.extend("ListController",{init:function(t,n){var a=this;a._listInfo=n=f.quickExtend({listId:void 0,listName:void 0,listType:void 0,remoteDataSource:void 0},n);var r=a._listName=n.listName,o=a._listType=n.listType;if(a._remoteDataSource=n.remoteDataSource,o){var s=fi.loadDataSource(hi.ListItemView,o);s.setPageId(a._listName)}a._remoteDataSource&&("string"==typeof a._remoteDataSource&&f.eachEntry(hi,function(e,t){t.name===a._remoteDataSource&&(a._remoteDataSource=e)}),a._remoteDataSource=fi.loadDataSource(hi[a._remoteDataSource],a._remoteDataSource));var l;l=o?a._listDefinition=vr[o]:a._listDefinition=vr[r],a._isListTemplate=t,a._listFieldsConverter=e(a),a._eventListenersGroup=x.createEventListenersGroup(),a._currentDisplayedItem=_.create(void 0,{valueChangeCallback:function(e){e.isDummy()&&(a.currentDisplayedItemAlias=void 0);var t=a._listType||r;pi[t].refreshItem(e),a.currentItemChangedEvent.fireNew(e)}});var c=a.listIdChangedEvent=x.create();a._currentListId=_.createNumerical(n.listId,{valueChangeCallback:function(e){n.listId=e,n.isTemplate=!1,a._isListTemplate=!1,c.fireNew()}});var u=a.listUpdatedEvent=x.create();a._listUpdatedListener=hr.createListCacheUpdatedListener(r,function(){Er.startRenderingBatch(),u.fireNew(),Er.finishRenderingBatch()}),a.currentListType=_.createTextual(),a.currentDisplayedItemAlias=void 0,a.currentItemChangedEvent=x.create(),a.currentDisplayedTag=_.create(void 0),a.currentDisplayedCategory=_.create(void 0),a.currentDisplayedPage=_.createNumerical(1),a.currentMasterPageDesignChanged=x.create(),a.currentDynamicPageDesignChanged=x.create(),a.primaryListChanged=x.create(),a._availableFields=w.create(function(){return i(l)}),a._initialize()},_initialize:function(){var e=this;fi.loadDataSource(hi.ListItemView,e._listName),e._listUpdatedListener.activate(),e._eventListenersGroup.activateAndExecuteAll()},dispose:function(){var e=this;e._listUpdatedListener.dispose(),hr.clearListCache(e._listName),e._eventListenersGroup.disposeAll()},getListName:function(){return this._listName},isTypeOf:function(e){return this.currentListType.getValue()===e},createListUpdatedListener:function(e){return x.createEventListener(this.listUpdatedEvent,e)},fetchItemById:function(e,t,n,i){i=f.quickExtend({defaultMode:!1},i);var a=this,r=a._listName,o=i.defaultMode?Cr.getDefaultListIdByName(r):a._currentListId.getValue();hr.fetchItemData(o,r,{id:e},t,n,i)},removeItems:function(e,t,i,a){n(this,hr.deleteItems,[e],t,i,a)},saveItems:function(e,t,i,a){n(this,hr.saveItems,[this._listFieldsConverter.setterMapper(e)],t,i,a)},isListTemplate:function(){return this._isListTemplate},getListInfo:function(){return this._listInfo},refreshListItem:function(e){var t=this,n=hr.getListItemContent(t._listName,e);void 0===n?Re.handleGeneralException("Item alias wasn't found in cache: "+e):t._currentDisplayedItem.setValue(f.cloneObject(n))},resetToItem:function(e){var t=this;t._currentDisplayedItem.setValue(f.quickExtend({isDummy:ds},e)),t.currentDisplayedItemAlias=e.urlAlias},resetToDummyItem:function(){var e=this;e._currentDisplayedItem.setValue(e.getDefaultItem())},getDefaultItem:function(e){var t=f.quickExtend({metaData:{}},this._listDefinition.getDefaultItem(e),{isDummy:us});return t.metaData.compatibilityVersion=ka.CurrentStructureVersion,t},getDynamicPageId:function(e){var t=this.getListInfo();return f.valueOrDefault(t.itemsMap&&t.itemsMap[e],t.defaultDynamicPageId)},getListPageId:function(){return this.getListInfo().connectedListPage},getPageLink:function(e){var t=this,n=[t.currentListType.getValue()];return f.withObject(Cr.SupportedListTypes,function(e){switch(n[0]){case e.tag:n.push(t.currentDisplayedTag.getValue());break;case e.category:n.push(t.currentDisplayedCategory.getValue());break;default:n=[]}}),e>1&&n.push(Cr.SupportedListTypes.page,e),{url:{masterListPageId:t.getListInfo().connectedListPage,suffixFragments:n},type:nt.Pages}},getCurrentDisplayedItem:function(){return this._currentDisplayedItem.getValue()},getListPageTitle:function(e){var t=this;if(e.pageListName){var n=t.getCurrentDisplayedItem();return n&&n.title?n.title:e.title}if(e.masterPageListName){var i=e.pageTitle||e.title;return f.withObject(Cr.SupportedListTypes,function(e){switch(t.currentListType.getValue()){case e.tag:i+=" | "+f.capitalizeFirstLetter(t.currentDisplayedTag.getValue());break;case e.category:i+=" | "+f.capitalizeFirstLetter(t.currentDisplayedCategory.getValue());break;default:var n=t.currentDisplayedPage.getValue();i+=n>1?" | Page "+n:""}}),i}},getAvailableFields:function(){return this._availableFields.getValue()},normalizeItem:function(e){if(e){var t=this.getAvailableFields();if(t){var n={};return f.eachEntry(t,function(t,i){i.mappingFunction&&(n[i.name]=i.mappingFunction(e));
}),n}}return e},hasRemoteDataSource:function(){return this._remoteDataSource?!0:void 0},getRemoteDataSource:function(){return this._remoteDataSource}});return hr.registerContentRequestHandler(yr.ListItem,{enrichFetchedContent:function(e,t){var n;return e.hasRemoteDataSource()&&(n=e),e._listFieldsConverter.getterMapper(t,!0,n)[0]}}),a.create=function(e,t){return new a(e,t)},a}();!function(){function e(e,n){return{id:encodeURI(e.category),category:e.category,count:+e.count,link:t(e.category,n)}}function t(e,t){return{url:{masterListPageId:t.connectedListPage,suffixFragments:[Cr.SupportedListTypes.category,e]},type:nt.Pages}}var n=w.create(function(){return{category:{type:mi.title.type,title:"Category Name",name:"category"},count:{type:mi.index.type,title:"Category Count",name:"count"},link:{type:mi.link.type,title:"Category Link",name:"link"}}});qr.extendPrototype({getCategoriesFields:function(){return n.getValue()},fetchCategories:function(e,t){hr.fetchListWidgetContent(this.getListName(),{type:yr.Categories},function(t){e(t.items)},t)}}),hr.registerContentRequestHandler(yr.Categories,{hashFunction:function(e){return{type:e.type,includeDrafts:e.includeDrafts||!1,defaultMode:e.defaultMode}},handleRequest:function(e,t){var n={};return f.eachEntry(t,function(t,i){(e.includeDrafts||1===i.status)&&f.eachItem(i.categories,function(e,t){f.getOrInit(n,t,{category:t,count:0}).count++})}),{items:f.getValues(n).orderBy(f.identity,f.createFieldsComparer([{sortBy:"count",sortType:Nt.Desc},{sortBy:"category",comparer:f.stringsComparer}]))}},enrichFetchedContent:function(t,n){var i=t.getListInfo();return n.items=f.mapItem(n.items,function(t){return e(t,i)}),n}})}(),function(){function e(e){return encodeURI(e)}function t(t,n){return{id:e(t.tag),tag:t.tag,count:+t.count,link:i(t.tag,n)}}function n(e){return{url:e.connectedListPage,type:nt.Pages}}function i(e,t){return{url:{masterListPageId:t.connectedListPage,suffixFragments:[Cr.SupportedListTypes.tag,e]},type:nt.Pages}}var a=w.create(function(){var e={Tag:"tag",Count:"count",Link:"link"};S.create(e)});qr.extendPrototype({getTagFields:function(e){var t=a.getValue();return e?t.query(function(e){return!e.commonOnlyField}):t.queryAll()},fetchTags:function(e,t){hr.fetchListWidgetContent(this.getListName(),{type:yr.TagCloud},function(t){e(t.items)},t)},getCurrentItemTags:function(){var t=this,a=t.getListInfo(),r=[],o=t.getCurrentDisplayedItem(),s=o.isDummy(),l=o.tags;return f.eachItem(l,function(t,o){r.push({id:e(o),tag:o,link:s?n(a):i(o,a)})}),r},getMatchedTags:function(e,t){t=f.quickExtend({tagsToIgnore:{}},t);var n=t.tagsToIgnore,i=f.trim(e);return f.mapItem(hr.getListWidgetContent(this.getListName(),{type:yr.TagCloud,includeDrafts:t.includeDrafts}).items,function(e){var t=f.trim(e.tag).toLowerCase();return!n[t]&&t.indexOf(i)>=0?t:void 0})}}),hr.registerContentRequestHandler(yr.TagCloud,{hashFunction:function(e){return{type:e.type,includeDrafts:e.includeDrafts||!1,defaultMode:e.defaultMode}},handleRequest:function(e,t){var n={};return f.eachEntry(t,function(t,i){(e.includeDrafts||1===i.status)&&f.eachItem(i.tags,function(e,t){f.getOrInit(n,t,{tag:t,count:0}).count++})}),{items:f.getValues(n).orderBy(f.identity,f.createFieldsComparer([{sortBy:"count",sortType:Nt.Desc},{sortBy:"tag",comparer:f.stringsComparer}]))}},enrichFetchedContent:function(e,n){var i=e.getListInfo();return n.items=f.mapItem(n.items,function(e){return t(e,i)}),n}})}(),function(){function e(e,t){return function(n){var i=n.items;e._fetchedItems.syncrhonize(i),t({fetchedItems:i,totalCount:n.totalCount})}}qr.extendPrototype({createView:function(e){return new t(this,e)}});var t=C.extend("ListView",{init:function(e,t){t=f.extend({filters:[],sorts:[]},t),this._list=e,this._fetchedItemsCollection=jt.create(this._fetchedItems=$t.create()),this._filterFunction=ze.getFiltersCompositeFunction(t.filters),this._listViewQuery=Ur.create().withFilters(t.filters).withSorts(t.sorts)},updateItems:function(e){var t=this,n=t._fetchedItems;n.beginUpdate(),e=f.asArray(e);var i=ze.filterItems(e,t._filterFunction,{notPassedIdFunction:f.defaultIdFunction});i.passed.length>0&&n.put(i.passed),i.notPassed.length>0&&n.remove(i.notPassed),n.endUpdate()},removeItems:function(e){this._fetchedItems.remove(e)},fetchItems:function(t){t=f.quickExtend({from:0,to:1/0,onSuccess:cs,onError:cs},t);var n=this;$r.executeAsync(n._list,n._listViewQuery.between(t.from,t.to).withDefaultMode(t.defaultMode),e(n,t.onSuccess),t.onError)},bindTo:function(e){Me.connectObservableCollection(e,this._fetchedItemsCollection)},unbindFrom:function(e){Me.disconnectObservableCollection(e)}})}();var Ur=function(){var e=C.extend("ListQueryBuilder",{init:function(){this._filters=[],this._sorts=[]},_from:0,_to:1/0,getFilters:function(){return this._filters},getSorts:function(){return this._sorts},getFrom:function(){return this._from},getTo:function(){return this._to},isDefaultMode:function(){return this._isDefaultMode},andHasTag:function(e){return this._filters.push(Cr.CommonFilters.ByTag(e)),this},andHasCategory:function(e){return this._filters.push(Cr.CommonFilters.ByCategory(e)),this},andPublishedOnly:function(){return this._filters.push(Cr.CommonFilters.Published),this},andDraftsOnly:function(){return this._filters.push(Cr.CommonFilters.Drafts),this},andPinnedOnly:function(){return this._filters.push(Cr.CommonFilters.Pinned),this},andFeaturedOnly:function(){return this._filters.push(Cr.CommonFilters.Featured),this},andNotCurrentItem:function(e){return this._filters.push(Cr.CommonFilters.NotCurrentItem(e)),this},between:function(e,t){return this._from=e,this._to=t,this},sortByDate:function(e){return this._sorts.push(Cr.createSorter(Cr.FieldNames.Date,e)),this},sortByPinned:function(e){return this._sorts.push(Cr.createSorter(Cr.FieldNames.Pinned,e)),this},sortById:function(e){return this._sorts.push(Cr.createSorter(Cr.FieldNames.Id,e)),this},withFilters:function(e){return this._filters=f.valueOrDefault(e,[]),this},withSorts:function(e){return this._sorts=f.valueOrDefault(e,[]),this},withDefaultMode:function(e){return this._isDefaultMode=e,this}});return e.create=function(){return new e},e.createPublishedItemsQuery=function(){return(new e).andPublishedOnly()},e}(),$r=fs(function(){this.executeAsync=function(e,t,n,i){var a=t.getFrom();hr.fetchListWidgetContent(e.getListName(),{type:yr.PostsList,skip:a,take:t.getTo()-a,filters:t.getFilters(),sort:t.getSorts(),defaultMode:t.isDefaultMode()},n,i)},this.execute=function(e,t){var n=t.getFrom();return hr.getListWidgetContent(e.getListName(),{type:yr.PostsList,skip:n,take:t.getTo()-n,filters:t.getFilters(),sort:t.getSorts(),defaultMode:t.isDefaultMode()})},this.executeCount=function(e,t){return this.execute(e,t).totalCount},hr.registerContentRequestHandler(yr.PostsList,{hashFunction:function(e){return{type:e.type,filters:e.filters?f.filterKeys(e.filters,"serverFilters"):e.filters,sort:e.sort,skip:e.skip,take:e.take,defaultMode:e.defaultMode}},handleRequest:function(e,t){var n=ze.filterItems(t,ze.getFiltersCompositeFunction(e.filters)).passed,i=e.sort.clone();i.push(Cr.createSorter(Cr.FieldNames.Id)),n.sort(f.createFieldsComparer(i,{comparersMap:Cr.FieldSortingRules}));var a=e.skip,r=e.skip+e.take,o=n.length;if(a>=o){var s=r-a;a=f.divideNoReminder(o-1,s)*s,r=a+s}return{items:n.slice(a,r),totalCount:o}},enrichFetchedContent:function(e,t){return t.items=e._listFieldsConverter.getterMapper(t.items),t}})}),Wr={FloatLeft:1,FloatRight:2,Block:3},jr=function(){var e={},t=void 0,n=C.extend("CKObjectType",{init:function(e,t){this._typeName=e,f.quickExtend(this,t)},getName:function(){return this._typeName},hasCustomLayout:ds,isResizable:us,supportsFloating:us,autoMaintainRatio:ds,hasAdjustableRatio:ds,getWidthHeightRatio:function(){return Ue.Unknown},onDblClick:cs,processForEditing:cs,processForStoring:cs,processContent:cs,processForViewing:ds});return n.registerType=function(t,i){var a=new n(t,i);return e[t]=a,a},n.getFromCKObject=function(i){var a=i.getElement().attr("data-ck-object-type"),r=void 0;return a&&(r=e[a]),r||(t||(t=new n),r=t),r},n}(),Gr=function(){var e=C.extend("CKObject",{init:function(e,t){this.$element=e,this._ckeditorController=t},getCKEditorController:function(){return this._ckeditorController},getElementType:function(){return jr.getFromCKObject(this)},_synchronizeRatio:function(){var e=this.getElement(),t=this.getContentWrapperElement(),n=f(".ck-ratio",e);0===n.length&&(n=f("<div class='ck-ratio'></div>").prependTo(t));var i=this.getWidthHeightRatio();n.css({paddingBottom:i===Ue.Unknown?"":i+"%"}),t.addClass("lock-ratio")},_processContent:function(){var e=this.getElementType();e.autoMaintainRatio()&&this._synchronizeRatio(),this.getContentWrapperElement().addClass(e.getName()),e.processContent(this)},processForEditing:function(){this.$element.attr("contenteditable","false"),this._processContent(),this.getElementType().processForEditing(this)},processForStoring:function(){this.$element.removeAttr("contenteditable"),this.getElementType().processForStoring(this)},processForViewing:function(){return this._processContent(),this.getElementType().processForViewing(this)},setLayout:function(t){var n=this.$element;n.removeClass("ck-object-layout-right ck-object-layout-left ck-object-layout-block"),t===Wr.FloatLeft?n.addClass("ck-object-layout-left"):t===Wr.FloatRight?n.addClass("ck-object-layout-right"):n.addClass("ck-object-layout-block"),this._ckeditorController&&this._ckeditorController.contentChangedEvent.fireNew(),e.LayoutChangedEvent.fireNew(this)},deleteObject:function(){this._ckeditorController&&this._ckeditorController.removeContentObject(this)},handleDblClick:function(e){this.getElementType().onDblClick(e,this)},getWidth:function(){return parseInt(this.$element.attr("data-ck-width"))},setWidth:function(t){this.$element.attr("data-ck-width",t).css("width",t+"%"),this.getContentWrapperElement().css("width",t+"%"),e.SizeChangedEvent.fireNew(this)},setWidthHeightRatio:function(t){this.getElementType().hasAdjustableRatio()&&(this.$element.attr("data-ck-ratio",f.adjustFraction(1/t*100,2)),this._synchronizeRatio(),e.SizeChangedEvent.fireNew(this))},getWidthHeightRatio:function(){var e=this.getElementType();return e.hasAdjustableRatio()?parseFloat(this.$element.attr("data-ck-ratio")):e.getWidthHeightRatio(this)},getLayout:function(){var e=this.$element;return e.hasClass("ck-object-layout-left")?Wr.FloatLeft:e.hasClass("ck-object-layout-right")?Wr.FloatRight:Wr.Block},getAlignment:function(){var e=this.$element;return e.hasClass("ck-object-align-left")?ot.Left:e.hasClass("ck-object-align-right")?ot.Right:ot.Centered},setAlignment:function(t){var n=this.$element;n.removeClass("ck-object-align-left ck-object-align-right"),t===ot.Left?n.addClass("ck-object-align-left"):t===ot.Right&&n.addClass("ck-object-align-right"),this._ckeditorController&&this._ckeditorController.contentChangedEvent.fireNew(),e.AlignmentChangedEvent.fireNew(this)},getElement:function(){return this.$element},getRatioElement:function(){var e=this._ratioElement;return void 0===e&&this.getElementType().autoMaintainRatio()&&(this._ratioElement=e=f(".ck-ratio",this.$element)),e},getContentElement:function(){var e=this._contentElement;return void 0===e&&(this._contentElement=e=f(".ck-object",this.$element)),e},getContentWrapperElement:function(){var e=this._contentWrapperElement;return void 0===e&&(this._contentWrapperElement=e=f(".ck-object-wrapper",this.$element)),e},insert:function(t,n){var i,a=this._ckeditorController;i=t.is("li")?n===Xe.Below?"appendTo":"prependTo":n===Xe.Below?"insertAfter":"insertBefore",this.getElement()[i](t),!this.hasCustomLayout()&&t.is("li")&&this.setLayout(Wr.Block),a.contentChangedEvent.fireNew(a),e.ParentChanged.fireNew(this)},getToolbarPanel:function(){return this.getElementType().toolbarPanel},isResizable:function(){return this.getElementType().isResizable()},hasCustomLayout:function(){return this.getElementType().hasCustomLayout()}});return e.LayoutChangedEvent=x.create(),e.AlignmentChangedEvent=x.create(),e.ParentChanged=x.create(),e.SizeChangedEvent=x.create(),e.getFromElement=function(t,n){return t.hasClass("ck-object-wrapper")?t=t.parent():t.hasClass("ck-object")&&(t=t.closest(".ck-object-container")),new e(t,n)},e.equalityComparer=function(e,t){return e&&t?e.$element[0]===t.$element[0]:e===t},e.processCKObjectsForViewing=function(t){var n=!1;return f(".ck-object-container",t).each(function(){e.getFromElement(f(this)).processForViewing()&&(n=!0)}),n},e.processElementsForEditing=function(t){f(".ck-object-container",t).each(function(){e.getFromElement(f(this)).processForEditing()})},e.isCKElement=function(e){return e.hasClass("ck-object-container")},e}();!function(){var e="ck-object-image";jr.registerType(e,{enableResize:!0,lockRatio:!0,autoMaintainRatio:us,getWidthHeightRatio:function(e){var t=e.getContentElement(),n=t.attr("data-image-width"),i=t.attr("data-image-height");if(n&&i){var a=parseInt(n),r=parseInt(i);return f.adjustFraction(1/(a/r)*100,2)}return Ue.Unknown},onDblClick:cs,processForStoring:function(e){var t=e.getContentElement();t.removeAttr("data-cke-saved-src"),t.find(".image-ratio-lock").remove()},toolbarPanel:void 0})}(),function(){var e={Youtube:"youtube",Vimeo:"vimeo"},t="ck-object-video",n=f.includeTemplatesGroup("rich-content-video",{ContentElement:"content-element",VideoIframe:"video-iframe"});jr.registerType(t,{enableResize:!0,lockRatio:!0,autoMaintainRatio:us,hasAdjustableRatio:us,onDblClick:cs,toolbarPanel:void 0,processForEditing:function(e){var t=e.getContentElement(),n=t.attr("data-video-image");n&&t.css({backgroundImage:"url({0})".format(n),backgroundSize:"cover"}),t.find(".rich-content-video-iframe").remove()},processForStoring:function(e){e.getContentElement().removeAttr("style")},processForViewing:function(t){var i=t.getContentElement(),a=i.attr("data-video-id"),r=i.attr("data-video-type"),o="";switch(r){case e.Youtube:o=Te.getVideoEmbeddingUrl(a);break;case e.Vimeo:o=ke.getVideoEmbeddingUrl(a)}var s=i.find(".rich-content-video-iframe");return 0===s.length&&(s=f.useTemplate(n.VideoIframe).appendTo(i)),s.attr("src",o),!0}})}(),function(){var e="ck-object-hr";jr.registerType(e,{enableResize:!1,supportsFloating:ds,isResizable:ds,hasCustomLayout:us,processForStoring:function(e){e.getContentElement().removeAttr("data-cke-saved-src")},toolbarPanel:void 0})}(),function(){var e={Date:{name:"date",sortingFunction:f.datesComparer},CoverImage:{name:"coverImage"},Blurb:{name:"blurb",sortingFunction:f.stringsComparer},Author:{name:"author",sortingFunction:f.stringsComparer},Pinned:{name:"pinned",sortingFunction:f.numbersComparer},Featured:{name:"featured",sortingFunction:f.numbersComparer},CoverImageDescription:{name:"coverImageDescription",sortingFunction:f.stringsComparer}},t={title:"title",date:"date",author:"author",blurb:"blurb",content:"content",coverImage:"coverImage",coverImageDescription:"coverImageDescription"},n=w.create(function(){return{order:{type:mi.index.type,title:void 0,name:"order",hideInDynamicPage:!0},title:{type:mi.title.type,title:void 0,name:"title"},content:{type:mi.content.type,title:void 0,name:"content"},itemLink:{type:mi.link.type,title:void 0,name:"itemLink"}}});Cr.registerListDefinition({LocalBlog:{Icons:["blog","elements-category-post-fields"],FieldDefinitions:e,CommonFilters:{Pinned:ze.Filters.EqualFilter({fieldName:e.Pinned.name,value:!0}),Featured:ze.Filters.EqualFilter({fieldName:e.Featured.name,value:!0})},getDefaultItem:void 0,getAvailableFields:function(){var e=S.create(t);return e.queryAll()},createFieldsConverter:function(){return{setterMapper:function(e){var t={};return t[Cr.FieldNames.Date]=e.date,t[Cr.FieldNames.CoverImage]=e.coverImage,t[Cr.FieldNames.Blurb]=e.blurb,t[Cr.FieldNames.Author]=e.author,t[Cr.FieldNames.Pinned]=e.pinned,t[Cr.FieldNames.Featured]=e.featured,t[Cr.FieldNames.CoverImageDescription]=e.coverImageDescription,t},getterMapper:function(e,t){return{date:t[Cr.FieldNames.Date],coverImage:t[Cr.FieldNames.CoverImage],blurb:t[Cr.FieldNames.Blurb],author:t[Cr.FieldNames.Author],pinned:t[Cr.FieldNames.Pinned],featured:t[Cr.FieldNames.Featured],coverImageDescription:t[Cr.FieldNames.CoverImageDescription]}}}},getMandatoryFields:function(){return f.deepCloneObject(n.getValue())}}})}();var Xr={FieldSets:{Products:{productName:{iconClass:f.getIconClass("tool-category-text",Cn.Font),type:"hideableText",title:"Product Name",name:"productName",isDefaultField:!0,demoDataTitle:"Title",initialPropertiesValues:{page:{namedTextStyle:"bodyM",fontSize:20,font:er.createThemeFontBinding("body2"),fontColor:{variation:4,mainColor:2},tagName:et.H1}},mappingFunction:function(e){return f.valueOrDefault(e.name,"")}},productNameDetail:{iconClass:f.getIconClass("tool-category-text",Cn.Font),type:"hideableText",title:"Product Name",elementType:"text",name:"productNameDetail",isDefaultField:!0,demoDataTitle:"Title",initialPropertiesValues:{page:{namedTextStyle:"bodyM",fontSize:20,font:er.createThemeFontBinding("body2"),fontColor:{variation:4,mainColor:2},tagName:et.H1}},mappingFunction:function(e){return f.valueOrDefault(e.name,"")}},productBanner:{iconClass:f.getIconClass("fa-bookmark-o",Cn.Font),type:"hideableText",title:"Banner",name:"productBanner",isDefaultField:!0,demoDataTitle:"Banner",initialPropertiesValues:{page:{namedTextStyle:"bodyM",fontSize:20,font:er.createThemeFontBinding("body2"),fontColor:{variation:4,mainColor:2}},skinHierarchyBox:{formattedText:"Banner"}},mappingFunction:function(e){return f.valueOrDefault(e.banner,"")}},productImage:{iconClass:f.getIconClass("fa-picture-o",Cn.Font),type:"image",title:"Featured Image",name:"productImage",hideInDynamicPage:!0,isDefaultField:!0,mappingFunction:function(e){var t=e.images;return t&&t.length>0?{imageUrl:{imagePath:t[0].source,ownerID:null,storageServer:0,useImageProxy:!0,resizeOnImageProxy:!1,preferredSizeFunction:function(e){var n=t[0].sizes;if(n){for(var i=n[n.length-1],a=0;a<n.length;a++)if(Math.max(n[a].width,n[a].height)>e){i=n[a];break}if(i&&i.url)return Settings.ImageProxy+i.url}return Settings.ImageProxy+t[0].source},onErrorImage:{id:3697,imagePath:"58da313f7b3c6Qb7AWSd/Image-place-holder.png",ownerID:1000008141,storageServer:6,scaledVersions:[],imageWidth:400,imageHeight:166,isTemporary:0}}}:{imageUrl:{}}}},productImages:{iconClass:f.getIconClass("blog-cover-image",Cn.Font),type:"imageGallery",title:"Product Images",name:"productImages",isDefaultField:!0,template:"StoreGalleryTemplate",mappingFunction:function(e){return e.images?f.mapItem(e.images,function(t,n){var i,a;return t.sizes&&t.sizes.length>0?(i=Settings.ImageProxy+t.source,a=Settings.ImageProxy+t.sizes[0].url):i=a=Settings.ImageProxy+t.source,{id:ka.generateWebsiteId(),index:n+1,image:{imageUrl:{imageHighRes:i,imagePath:a,ownerID:null,storageServer:0,useImageProxy:!0,resizeOnImageProxy:!1,imageThumbnails:t.sizes}},alt:e.description||e.name||""}}):[]}},productDescription:{iconClass:f.getIconClass("fa-align-justify",Cn.Font),type:"hideableText",title:"Description",demoDataTitle:"Description",hideInDynamicPage:!0,name:"productDescription",isDefaultField:!0,initialPropertiesValues:{page:{namedTextStyle:"bodyM",fontSize:15,font:er.createThemeFontBinding("body2"),fontColor:{variation:3,mainColor:2}}},mappingFunction:function(e){return i(f.valueOrDefault(e.description,""))}},productDescriptionDetail:{iconClass:f.getIconClass("fa-align-justify",Cn.Font),type:"hideableText",title:"Description",demoDataTitle:"Description",name:"productDescriptionDetail",hideInTemplateEditor:!0,elementType:"text",isDefaultField:!0,initialPropertiesValues:{page:{namedTextStyle:"bodyM",fontSize:15,font:er.createThemeFontBinding("body2"),fontColor:{variation:3,mainColor:2}}},mappingFunction:function(e){return f.valueOrDefault(e.description,"")}},productPrice:{iconClass:f.getIconClass("fa-usd",Cn.Font),type:"hideableText",title:"Discount Price",isLabelEditable:!1,demoDataTitle:zr.getCurrencySymbol()+7.49,name:"productPrice",isDefaultField:!0,initialPropertiesValues:{page:{namedTextStyle:"bodyM",fontSize:15,font:er.createThemeFontBinding("body2"),fontColor:{variation:4,mainColor:2}}},mappingFunction:function(e){return null!==e.price?zr.formatPrice(e.price):""}},productBasePrice:{iconClass:f.getIconClass("fa-usd",Cn.Font)+" strikeout",type:"StorePrice",title:"Regular Price",name:"productBasePrice",isDefaultField:!0,demoDataTitle:zr.getCurrencySymbol()+9.99,initialPropertiesValues:{page:{namedTextStyle:"bodyM",fontSize:15,font:er.createThemeFontBinding("body2"),fontColor:{variation:4,mainColor:2}}},mappingFunction:function(e){return e.basePrice?e.price&&e.basePrice===e.price?"":zr.formatPrice(e.basePrice):""}},productDiscountPercentage:{iconClass:f.getIconClass("fa-percent",Cn.Font),type:"hideableText",demoDataTitle:"20% off",title:"Discount Percentage",name:"productDiscountPercentage",initialPropertiesValues:{page:{namedTextStyle:"bodyM",fontSize:15,font:er.createThemeFontBinding("body2"),fontColor:{variation:4,mainColor:2}}},isDefaultField:!0,mappingFunction:function(e){return e.discountPercentage?e.discountPercentage+"% off":""}},title:{type:"title",title:void 0,name:"title",hideInDynamicPage:!0,mappingFunction:function(e){return e.name}},urlAlias:{type:"title",title:void 0,name:"urlAlias",hideInDynamicPage:!0,mappingFunction:function(e){return e.id}},breadCrumb:{type:"breadcrumb",template:"BreadCrumbElement",title:void 0,iconClass:f.getIconClass("fa-angle-left",Cn.Font)},productVariants:{name:"productVariants",type:"StoreVariantsContainer",template:"StoreVariantsContainer",title:"store filters",iconClass:f.getIconClass("fa-angle-left",Cn.Font),mappingFunction:function(e){return e.options}},productStock:{iconClass:f.getIconClass("tool-category-text",Cn.Font),type:"title",title:"Product Stock",name:"productStock",isDefaultField:!0,mappingFunction:function(e){return f.valueOrDefault(e.stock,"")}},stockAmount:{name:"stockAmount",type:"title",hideInDynamicPage:!0,hideInTemplateEditor:!0,mappingFunction:function(e){return f.valueOrDefault(e.stock,-1)}},storeBuyButton:{iconClass:f.getIconClass("fa-shopping-cart",Cn.Font),name:"storeBuyButton",title:"Buy Button",hideInTemplateEditor:!0,type:"StoreBuyButton",template:"StoreBuyButtonTemplate"}}}};!function(){var e={Date:{name:"date",sortingFunction:f.datesComparer},CoverImage:{name:"coverImage"},Blurb:{name:"blurb",sortingFunction:f.stringsComparer},Pinned:{name:"pinned",sortingFunction:f.numbersComparer},Featured:{name:"featured",sortingFunction:f.numbersComparer},CoverImageDescription:{name:"coverImageDescription",sortingFunction:f.stringsComparer}};Cr.registerListDefinition({Store:{Icons:["store","elements-category-post-fields"],FieldDefinitions:e,CommonFilters:{},getEmptyItem:function(){var e={};return f.eachEntry(Xr.FieldSets.Products,function(t,n){e[n.name]=""}),e},getDefaultItem:void 0,getAvailableFields:function(){return Xr.FieldSets.Products},createFieldsConverter:function(){return{setterMapper:function(e){var t={};return t[Cr.FieldNames.Date]=e.date,t[Cr.FieldNames.CoverImage]=e.coverImage,t},getterMapper:function(e,t){return{date:t[Cr.FieldNames.Date],coverImage:t[Cr.FieldNames.CoverImage]}}}},getMandatoryFields:function(){return{}}}})}(),function(){ma.registerRequirementProcessor({process:function(e,t,n){var i={},a=f.grep(e,function(e){return e.require===ma.LoadingRequirements.ListsContent.name}),r=!0;f.eachItem(a,function(e,t){var n=t.requestContent,a=n.listName,o=Cr.getListByName(a).getListInfo();if(o){var s=f.getOrInit(i,a,{listId:o.listId,widgets:[]});r=!1,n.itemContent?s.item=n.itemContent:s.widgets.push(n.widgetContent)}}),r?t():hr.loadListsContent(i,function(){t()},function(e){R.getExceptionType(e)===N.EntityNotExistsException?n(e):(Re.handleAjaxException(e),t())})}})}();var Yr=fs(function(){function e(e){var t;if(""===e)t=va.getMainPageId();else{var n=va.findPageByUrlFragment(e);n?t=n.id:pa.navigateToPage(va.getMainPageId())}void 0!==t&&pa._changePage(t)}var t;this.initialize=function(e){t=f.valueOrDefault(e,va.getMainPageId())},this.handle=function(n,i){var a=n[0]||"";return i?En.getHash()?(a=f.trimPrefix(a,"!"),e(a)):pa._changePage(t):e(a),!0}}),Kr=fs(function(){function e(e,t,n){t.currentDisplayedItemAlias=e,ma.performOnPageLoading(ma.LoadingRequirements.ListsContent.create({listName:t.getListName(),itemContent:{alias:e,remoteService:n}})),ma.performWhenRequirementsLoaded(function(){t.refreshListItem(e)})}function t(e,t){var n=1,i=Cr.SupportedListTypes.page,a=i;if(e.length>1){var r=e[1].toLowerCase();f.withObject(Cr.SupportedListTypes,function(i){switch(r){case i.page:var o=e[2];o&&Ne.isPositive(o)&&(n=+o);break;case i.tag:var s=e[2];void 0!==s&&(t.currentDisplayedTag.setValue(s),e[3]===i.page&&(o=e[4],o&&Ne.isPositive(o)&&(n=+o)),a=i.tag);break;case i.category:var l=e[2];void 0!==l&&(t.currentDisplayedCategory.setValue(l),e[3]===i.page&&(o=e[4],o&&Ne.isPositive(o)&&(n=+o)),a=i.category)}})}var o=t.currentListType.getValue();t.currentListType.setValue(a);var s=t.currentDisplayedPage.setValue(n);o&&(o!==i||a!==i||s)&&ma.performWhenRequirementsLoaded(function(){t.primaryListChanged.fireNew()})}this.handle=function(n){var i,a=n[0]||"";if(i=""===a?va.getPageData(va.getMainPageId()):va.findPageByUrlFragment(a,!1)){var r=i.id;if(i.masterPageListName){var o=Cr.getListByName(i.masterPageListName),s=n[1];if(o)if(s&&!Cr.SupportedListTypes[s.toLocaleLowerCase()])if(r=o.getDynamicPageId(s),o.hasRemoteDataSource()){var l=o.getRemoteDataSource();e(s,o,l.getDetailItem(s))}else e(s,o);else t(n,o);return pa._changePage(r),!0}if(i.pageListName){var c="preview"===n[1];if(!c){var u=Cr.getListByName(i.pageListName);u&&u.resetToDummyItem()}return pa._changePage(r),!0}}return!1}}),Qr=fs(function(){this.handle=function(e,t){return t&&ne.PageNotFound?(pa.navigateToPage(va.getMainPageId()),!0):!1}}),Jr=fs(function(){this.initialize=function(e){pa.registerUrlHandlers([Qr,Kr,Yr],e)}}),Zr=fs(function(){this.createCssRules=function(e){var t={};return{rule:function(n,i){var a=t[n];a||(a=t[n]=f.rule("."+e+" "+n+" {}")),a.css(i)},prefixRule:function(n,i,a){var r=n+i,o=t[r];o||(o=t[r]=f.rule(n+"."+e+" "+i+" {}")),o.css(a)}}},this.calculateAdjustBrightnessSign=function(e,t,n){n=f.valueOrDefault(n,!1);var i=f.getCoordinateValue(e,Gt.Brightness),a=f.adjustFraction(i+t,3),r=n?0>a:a>1;return r?-1:1}}),eo=function(){function e(){var e=sa.getAllPageInstances();return f.mapEntry(e,function(e){return e.isFixed()&&ba.isElementVisible(e)?e:void 0})}return C.extend("CommonSlideNavigation",{init:function(e,t){function n(){var e=!i._fixedElementsData;t.close({animate:e,restoreScrolling:!1})}var i=this;i.controller=t;var a=i.panel=en.usePanel(e),r=[];i.ignoredOutsideElementsFilters=r;var o=t.deactivatingEventListenersGroup;x.createEventListener(va.Events.PageChanging,function(){n()}).addToGroup(o),x.createEventListener(a.requestDeactivationEvent,function(e){e?n():t.close()}).addToGroup(o)},open:function(t){t=f.quickExtend({animate:!0,disableDeactivation:!1,disableLink:!1,animationCompleteCallback:cs,closeAnimationCompleteCallback:cs},t);var n,i=this,a=i.panel,r=ss.getFooterHeight(),o=0,s=r;n=function(){var e=f.calculateWindowSize();return{width:e.width,height:e.height-r}};var l=n(),c=f.quickExtend({},t.navigationProperties,{pages:t.pages,pagesHierarchy:t.pagesHierarchy,selectedPageId:f.evaluateWhenFunction(t.selectedPageId),disableLink:t.disableLink,maxSize:l,instanceId:t.instanceId}),u=f("body");a.$element.appendTo(u),a.activate(c),u.on("touchmove.slide-navigation",function(e){e.preventDefault()});var d,g=x.createEventListener(f.getWindowSizeEvent(),function(){g.dispose(),g=void 0,i.closePanel(!1),i.open(f.quickExtend({},t,{animate:!1,animationCompleteCallback:cs}))}),p=O.create(!1,{valueChangeCallback:function(){t.animationCompleteCallback(),g&&g.activate()}}),h=f.getScrollOffset(),m={animate:t.animate,direction:c.direction,pushContent:c.pushContent,duration:c.animationSpeed,scrollingOffset:h,frameTop:o,frameBottom:s,placeHolderSize:l,animationCallback:function(){p.setTrue()}};if(c.pushContent){var v=na.getBodyElementWrapper(),y=e();y.length>0&&(d=[],f.eachItem(y,function(e,t){var n=t.$element,i=f("<div></div>").insertAfter(n);d.push({$element:n,$placeHolder:i,style:n.attr("style")});var a=n.css("top"),s=n.css("bottom");"auto"!==a&&0!==o&&n.css("top",parseInt(a)-o),"auto"!==s&&0!==r&&n.css("bottom",parseInt(s)-r),n.appendTo(v).addClass("animation-fixed")}))}var b=f.rememberScrolling(),C=Pt.animate(a.$element,m),I=f.getScrollingController();I.$scrollableForWrite.scrollTop(0),I.$scrollableForWrite.scrollLeft(0);var S=x.createEventListenersGroup();i._fixedElementsData=d,t.disableDeactivation||a.deactivateOnClickOutside({ignoredElementsFilters:i.ignoredOutsideElementsFilters}),S.activateAll(),i.closePanel=function(e,n,i){S.disposeAll(),g&&(g.dispose(),g=void 0),C.close({animate:e,closingCallback:function(){d&&f.eachItem(d,function(e,t){t.$element.removeClass("animation-fixed").setStyleAttr(t.style),t.$element.insertBefore(t.$placeHolder),t.$placeHolder.remove()})},closeCallback:function(){i&&b.restore(),a.deactivate(),u.off(".slide-navigation"),n&&n(),t.closeAnimationCompleteCallback()}})}},close:function(e){e=f.quickExtend({animate:!0,animationCompleteCallback:cs,restoreScrolling:!0},e),e.animationCompleteCallback=f.hookAfterMethod(e.animationCompleteCallback,function(){ba.invalidateAreas(f.getValues(sa.getAllPageInstances()),{updateSize:!1})}),this.closePanel(e.animate,e.animationCompleteCallback,e.restoreScrolling)}})}();!function(){Pr.registerNavigationDefinition("SlideNavigation",eo.extend("SlideNavigation",function(e){return{init:function(t){e.call(this,os.Default,t)}}}))}(),function(){var e=en.createDeferredPanel(function(){return to.createPanel()});Pr.registerNavigationDefinition("SlideNavigation2",eo.extend("SlideNavigation2",function(t){return{init:function(n){t.call(this,e,n)}}}))}();var to=fs(function(){function e(e){var n=i[e];return n||(n=i[e]=en.createController(t(e))),n}function t(t){function i(){return d.makeItemsList({idFunction:f.defaultIdFunction,template:n.PageItem,itemAddedCallback:function(n){var i=n.$item,o=n.item,s=n.data,l=f(".hierarchy-box",i);l.buttonClick(function(){if(!P){P=!0;var n=a.currentActivationArgs,i=n.pagesHierarchy,s=300,l=f.Color(Ka.evaluateColorBinding(n.backgroundColor)),c=In.getColorComponentValue(l,pt.L),u=.05,d=.5,p=d-c*(d-u);h.velocity({opacity:[p,0]},{duration:s-100,delay:100}),I=e(t+1);var m=I.$element;I.activate(f.quickExtend({},n,{pagesHierarchy:i.createSubHierarchy(o.id),requestBack:function(){P=!0,h.velocity({opacity:[0,p]},{duration:s}),r.addClass("during-animation"),m.addClass("in-animation").css({top:0,left:0,bottom:0,position:"absolute"}).velocity({left:[-C,0]},{duration:s,complete:function(){m.css({top:"",left:"",bottom:0,position:""}).removeClass("in-animation"),r.removeClass("during-animation"),P=!1,I.deactivate()}})}}));var v=I.requestDeactivationEvent.bind(function(e){P||a.requestDeactivation(e)});I.panelDeactivatedEvent.one(function(){v.unbind(),h.css({opacity:""}),r.removeClass("sub-panel-opened"),m.detach(),I=void 0}),r.addClass("during-animation sub-panel-opened"),m.appendTo(g).addClass("in-animation").css({top:0,right:"100%",bottom:0,position:"absolute"}).velocity({right:[0,"100%"]},{duration:s,complete:function(){m.css({top:"",left:"",bottom:0,position:""}).removeClass("in-animation"),r.removeClass("during-animation"),P=!1}})}}),s.$pageTitle=i.find(".page-title"),s.$titleContainer=f(".title-container",i)},itemUpdatedCallback:function(e,t){var n=e.item,i=e.data,r=a.currentActivationArgs,o=r.pagesHierarchy;if(e.$item.toggleClass("has-hierarchy",o.hasChildren(n.id)),r.disableLink)i.$lingWrapper&&(i.$titleContainer.unwrap(),delete i.$lingWrapper);else{var s=pa.getPageFullHtmlUrl(n.id);if(i.$lingWrapper)t&&i.$lingWrapper.attr("href",s);else{var l=f("<a class='no-decorations'></a>");l.addClass("internal-link"),l.click(function(){setTimeout(function(){a.requestDeactivation(!0)},0)}),l.attr("href",s);var c=i.$titleContainer;c.wrap(l),i.$lingWrapper=l}}t&&i.$pageTitle.text(n.title)}
}).addOrderingSupport({orderingValueSelector:function(e){return e.item.index}})}var a=en.createBaseController(),r=f.useTemplate(n.Panel,{level:t}),o=f(".side-bar",r),s=f(".header",r),l=f(".pages-container",r),c=f(".back-container",s),u=f(".close-icon-content",r),d=f(".pages-list",r),g=f(".panel-container",r),p=f(".panel-content",r),h=f(".panel-overlay",r);u.click(function(){a.requestDeactivation()});var m=Sn.create(l,{scrollbarClass:"slide-scrollbar"});m.setMoveScrolling({enableHorizontalScrolling:!1}),a.associateScrollingView(m);var v,y,b,C,I,S=i(),P=!1,w=-.05,E=-.15,T=-.2;c.buttonClick(function(){var e=a.currentActivationArgs;e.requestBack()});var x;return f.quickExtend(a,{$element:r,defaultActivationArgs:{},onActivated:function(e){var n=e.fontSize;v=f.Color(Ka.evaluateColorBinding(e.fontColor)),y=f.Color(Ka.evaluateColorBinding(e.secondColor));var i=f.Color(Ka.evaluateColorBinding(e.backgroundColor)),a=f.evaluateWhenFunction(e.selectedPageId),l=er.evaluateFontBinding(e.font),c=e.pages,d=e.pagesHierarchy;C=Math.min(e.width,e.maxSize.width);var g=Zr.calculateAdjustBrightnessSign(i,E,!0),h=Zr.calculateAdjustBrightnessSign(v,T,!0),m=In.adjustBrightness(i,function(e){return Math.max(e+w*g,.1)}),I=In.adjustBrightness(i,function(e){return e+E*g}),P=In.adjustBrightness(v,function(e){return e+T*h});if(o.css("backgroundColor",m.toCSS()),u.css({color:v.toCSS()}),r.toggleClass("color-negative",-1===Zr.calculateAdjustBrightnessSign(i,.2)).css({width:C}),p.css({color:v.toCSS(),fontSize:n,borderColor:I.toCSS(),fontFamily:null!==l?l:"",backgroundColor:i.toCSS()}),s.css({color:P.toCSS()}),0===t){x=f.valueOrCalculate(x,function(){return Zr.createCssRules("slide-navigation-panel-2")});var k=e.spacing,D=k/2;x.rule(".page-title",{paddingTop:D,paddingBottom:D}),x.rule(".hierarchy-separator",{backgroundColor:v.toCSS()}),x.rule(".hierarchy-hover-overlay",{backgroundColor:y.toCSS()})}var F=Me.isObservableCollection(c)?c.getItems():f.mapToDictionary(c,f.identity,f.defaultIdFunction),A=f.mapItem(d.getRootIds(),function(e){return F[e]});S.setItems(A),b=S.items[a],b&&b.$item.addClass("state-selected").find(".page-title").css({color:y.toCSS()})},onDeactivated:function(){b&&b.$item.removeClass("state-selected").find(".page-title").css({color:""}),I&&I.deactivate()}}),a}var n={Panel:{group:"slide-navigation-panel-2-templates",name:"slide-navigation-panel-2-template",isSimple:!0},PageItem:{group:"slide-navigation-panel-2-templates",name:"page-item-template",isSimple:!0}};this.createPanel=function(){return e(0)};var i={}}),no=function(){function e(e){e=f.quickExtend({},e);var n=e.positioningAlignments,i=e.positionHorizontalCallback,a=e.positionVerticalCallback,r=f.buildPositioningFunction(t);return f.eachItem(n.horizontals,function(e,t){var n={distance:t.distance,usageCallback:function(){i&&i(t.alignTo)}};r.alignHorizontally(t.side,t.alignTo,n)}),f.eachItem(n.verticals,function(e,t){var n={distance:t.distance,usageCallback:function(e){e.isPositioned||(t.side===gt.Top?t.alignTo===gt.Top?e.$element.css("height",e.positioningArea.height-e.relativeArea.top+e.positioningArea.top):e.$element.css("height",e.positioningArea.height-e.relativeArea.top+e.positioningArea.top-e.relativeArea.height):t.alignTo===gt.Top?e.$element.css("height",e.relativeArea.top-e.positioningArea.top):e.$element.css("height",e.relativeArea.top-e.positioningArea.top+e.relativeArea.height)),a&&a(t.alignTo)}};r.alignVertically(t.side,t.alignTo,n)}),r}var t=function(){return va.getCurrentPage().getArea(!0)},n={1:"down",2:"up",3:"right",4:"left"};return C.extend("CommonDropDownNavigation",{init:function(e,t,n){this.controller=n,this._ignoredOutsideElementsFilters=[".drop-down-navigation"],this._dropDownDesktopController=w.create(function(){return f.createDropPanelWindow(f.evaluateWhenFunction(e),{appendTo:va.getPageBody(),isDraggable:!1,stackWithWindows:!1,placeInsideWindow:!1,hidingFunctionBeforeShowing:cs,closeCallback:function(){n.close()}})}),this._dropDownMobileController=w.create(t);var i=n.deactivatingEventListenersGroup;x.createEventListener(va.Events.PageChanging,function(){n.close()}).addToGroup(i)},open:function(t){t=f.quickExtend({animate:!0,disableDeactivation:!1,disableLink:!1,animationCompleteCallback:cs,closeAnimationCompleteCallback:cs,openCallback:cs,isVertical:!1,mouseEnteredCallback:cs,mouseLeaveCallback:cs},t);var i=this;if(Ha.Flags.IsInMobileContext.isTrue()){var a=this._dropDownMobileController.get();a.open(i.getMobileProperties(t)),a.isOpened.once(!1,function(){i.controller.close()}),i.closingFunction=function(e){a.close(e)}}else{var r=this._dropDownDesktopController.getValue();r.close();var o=t.$element,s=t.closeAnimationCompleteCallback,l=O.createConditionalNegative({valueChangeCallback:function(e){e?t.mouseEnteredCallback():t.mouseLeaveCallback()}}),c=f.quickExtend(f.quickExtend({},t.navigationProperties),{isDropDown:!0,pages:t.pages,pagesHierarchy:t.pagesHierarchy,selectedPageId:f.evaluateWhenFunction(t.selectedPageId),disableLink:t.disableLink,instanceId:t.instanceId,customClickCallback:t.customClickCallback,mouseEnteredFlag:l}),u=this._ignoredOutsideElementsFilters.clone();u.push(o);var d,g,p,h;if(t.isVertical)h="right"===c.orientation?[{side:gt.Right,alignTo:gt.Left,distance:c.horizontalDistance},{side:gt.Left,alignTo:gt.Right,distance:c.horizontalDistance}]:[{side:gt.Left,alignTo:gt.Right,distance:c.horizontalDistance},{side:gt.Right,alignTo:gt.Left,distance:c.horizontalDistance}],d={horizontals:h,verticals:[{side:gt.Top,alignTo:gt.Top,distance:c.verticalTop},{side:gt.Bottom,alignTo:gt.Bottom,distance:c.verticalTop}]},g=function(e){v=e};else{var m=c.horizontalPosition;h={side:m,alignTo:m},m===gt.Left?h.distance=c.horizontalLeft:m===gt.Right&&(h.distance=c.horizontalRight),d={horizontals:[h],verticals:[{side:gt.Top,alignTo:gt.Bottom,distance:c.verticalDistance},{side:gt.Bottom,alignTo:gt.Top,distance:c.verticalDistance}]},p=function(e){v=e}}var v,y=e({positioningAlignments:d,positionHorizontalCallback:g,positionVerticalCallback:p});r.open(o,{positioningFunction:y,activationArgs:c,contextClass:"drop-down-navigation "+(t.isVertical?"vertical-orientation":"horizontal-orientation"),deactivateOnClickOutside:!t.disableDeactivation,ignoredElementsFilters:u,showingFunction:function(e,i){e.addClass("side-"+f.findKey(gt,v).toLowerCase()),gt.Bottom!==v&&gt.Top!==v||e.addClass("horizontal-"+f.findKey(gt,c.horizontalPosition).toLowerCase()),i.positioned&&i.positioned(),t.openCallback(e),t.animate&&0!==c.animationSpeed?St.slideIn(e,{duration:c.animationSpeed,direction:n[v],easing:"swing",complete:function(){t.animationCompleteCallback(),t.isTargetFixed&&f.usePositioningFunction(y,e,t.$element,i)}}):t.animationCompleteCallback()}});var b,C=x.createEventListener(f.getWindowSizeEvent(),function(){var e=r.panel.use(),t=e.$dropPanelWrapper;f.usePositioningFunction(y,t,o,e)}).activate(),I=void 0;t.isTargetFixed&&(I=f.uniqueID(),b=f.getScrollingController(),b.$scrollableForRead.on("scroll."+I,function(){var e=r.panel.use(),t=e.$dropPanelWrapper;f.usePositioningFunction(y,t,o,e)})),i.closingFunction=function(e){C.dispose(),I&&b.$scrollableForRead.off("scroll."+I),r.close(),e.animationCompleteCallback(),s()}}},close:function(e){e=f.quickExtend({animate:!0,animationCompleteCallback:cs},e),this.closingFunction(e)}})}();!function(){Pr.registerNavigationDefinition("DropDownNavigation",no.extend("DropDownNavigation",function(e){return{init:function(t){e.call(this,function(){return io.createPanel()},function(){return Pr.createNavigationController("SlideNavigation")},t)},getMobileProperties:function(e){var t=e.navigationProperties;return f.quickExtend({},e,{navigationProperties:{direction:t.mobileDirection,width:t.mobileWidth,spacing:t.spacing,pushContent:!1,height:t.mobileHeight,animationSpeed:t.animationSpeed,hierarchyOpened:t.hierarchyOpened,useHierarchy:t.useHierarchy,backgroundColor:t.backgroundColor,fontColor:t.fontColor,fontSize:t.fontSize,font:t.font}})}}}))}();var io=fs(function(){function e(e){var n=a[e];return n||(n=a[e]=en.createController(t(e))),n}function t(t){function a(e){var t=f.findFirst(I.items);return t&&(e=Math.min(t.$item.outerHeight(),e)),e}function s(e,n){e&&(n?e.setTrue("drop-down-navigation-"+t):setTimeout(function(){e.setFalse("drop-down-navigation-"+t)},0))}function l(e){e=f.Color(e);var t=Zr.calculateAdjustBrightnessSign(e,.12),n=In.adjustBrightness(e,function(e){return e+.06*t}),i=In.adjustBrightness(e,function(e){return e+.12*t});return{mainColor:e.toCSS(),hoverColor:n.toCSS(),selectedColor:i.toCSS()}}function c(e){var t={};return t[i]=e,t}function u(e,n,i,a,s,l){if(T.rule(".page-item > .item-block",c(e.mainColor)),l||(T.rule(".page-item.simple.state-selected > .item-block",c(e.selectedColor)),T.rule(".page-item.simple:hover > .item-block",c(e.hoverColor)),T.rule(".page-item.simple.opened > .item-block",c(e.hoverColor))),0===t){r.rule(".page-item",{paddingLeft:a+"px",paddingRight:a+"px"});var u=n/2;r.rule(".page-item > .item-block",{paddingTop:u+"px",paddingBottom:u+"px"}),l?(r.rule(".page-item.instance:first-child > .item-block",{paddingTop:0}),r.rule(".page-item.instance.last-item > .item-block",{paddingBottom:0}),r.rule(".page-item.instance:first-child > .item-block .sub-hierarchy-icon-container",{paddingBottom:u+"px"}),r.rule(".page-item.instance.last-item > .item-block .sub-hierarchy-icon-container",{paddingTop:u+"px"}),r.rule(".page-item.instance.last-item:first-child > .item-block .sub-hierarchy-icon-container",{paddingTop:0,paddingBottom:0})):r.rule(".page-item.simple.has-hierarchy .page-title",{maxWidth:i-40-2*a})}1===t&&(o.rule("> .content-container.right",{marginLeft:s+"px",marginRight:0}),o.rule("> .content-container.left",{marginLeft:0,marginRight:s+"px"}))}var d=en.createBaseController(),g=[],p=f.useTemplate(n.Panel,{level:t}),h=f(".pages-list",p),m=f(".border-box",p),v=f(".content-container",p);0===t&&p.on("mouseenter",function(){s(d.currentActivationArgs.mouseEnteredFlag,!0)}).on("mouseleave",function(){s(d.currentActivationArgs.mouseEnteredFlag,!1)});var y,b,C,I=h.makeItemsList({idFunction:f.defaultIdFunction,lastDisplayedItemClass:"last-item",itemCreationFunction:function(e,t){var i,a=d.currentActivationArgs,r=C==e.id,o=a.customClickCallback;if(a.useSkinButton){i=f.useTemplate(n.PageItemInstance);var s=i.find(".instance-content");t.data.$openContext=s;var l=a.createInstanceController(e);l.appendTo(s);var c=l.getInstance();E.push(c),o||c.setPropertyValue("urlAddress",{url:e.id,type:nt.Pages}),c.instanceController.createdFlag.onceTrue(function(){if(c.setNeverSelectedInClick(!0),c.getSkinInstance().setNeverSelectedInClick(!0),r&&sa.performOnInstancesInitialization(c.id,function(){c.getSkinInstance().userSelect(!0)}),!b){var e=c.getSkinInstance().getInstancesByField("title")[0];if(e){var t=e.getPropertyValue("fontColor"),n=Xa.getElementTextStyle(e);!t&&n&&(t=n.color),t&&(t=Ka.evaluateColorBinding(t,!0));var i=e.getPropertyValue("fontSize");!i&&n&&(i=n.fontSize),p.css({color:t,fontSize:i+"px"}),b=!0}}}),c.showElement(),y||(y=l.getSize()),t.data.instanceController=l}else if(i=f.useTemplate(n.PageItem,e),t.data.$openContext=i,r&&i.addClass("state-selected"),t.data.$pageTitle=i.find(".page-title"),!a.disableLink&&!o){var u=f("<a class='no-decorations item-block internal-link'></a>");u.attr("href",pa.getPageFullHtmlUrl(e.id));var g=f(".page-content",i);g.wrap(u),t.data.$lingWrapper=g.parent()}return i},itemUpdatedCallback:function(e,t){if(e.data.$pageTitle&&t){var n=e.item;e.data.$pageTitle.text(n.title),e.data.$lingWrapper&&e.data.$lingWrapper.attr("href",pa.getPageFullHtmlUrl(n.id))}}}).addOrderingSupport({orderingValueSelector:function(e){return e.item.index}}),S=!1,P=!1;I.onItemPartEvents("> .page-item .item-block","click",function(e,t,n){var i=d.currentActivationArgs;if(!i.disableLink){var a=i.customClickCallback;if(a)setTimeout(function(){d.requestDeactivation()},0),a(t.item.id);else{var r=t.dropPanelController;r&&P||setTimeout(function(){d.requestDeactivation()},0)}}P&&(n.stopPropagation(),n.preventDefault()),P=!1}),I.onItemPartEvents("> .page-item.has-hierarchy","mousedown",function(e,t){P=!1;var n=t.dropPanelController;n.isOpened()||(n.open(),S=!0,P=!0)}),I.onItemPartEvents("> .page-item.has-hierarchy","mouseenter",function(e,t){setTimeout(function(){t.dropPanelController.open()},0)}),I.onItemPartEvents("> .page-item.has-hierarchy","mouseleave",function(e,t){S||setTimeout(function(){t.dropPanelController.close()},0)});var w,E,T=Zr.createCssRules("drop-down-navigation-desktop-panel.level-"+t);return f.quickExtend(d,{$element:p,visualizers:g,defaultActivationArgs:{},onActivated:function(n){var i=Ka.evaluateColorBinding(n.backgroundColor),r=er.evaluateFontBinding(n.font),o=n.fontSize,s=n.borderWidth,c=Ka.evaluateColorBinding(n.borderColor,!0),d=n.width,g=n.spacing,v=Ka.evaluateColorBinding(n.fontColor,!0),S=n.borderRadius,P=n.orientation,T=n.innerDistance,x=n.useSkinButton,k=n.showDropDownArrow;C=f.evaluateWhenFunction(n.selectedPageId);var D=l(i);u(D,g,d,s,T,x);var F=Me.isObservableCollection(n.pages);if(x&&(E=[],de.disableOperationsRecording("dropdown-navigation"),Er.startRenderingBatch()),I.clear(),n.useHierarchy){var A=F?n.pages.getItems():f.mapToDictionary(n.pages,f.identity,f.defaultIdFunction),B=n.pagesHierarchy,V=B.getRootIds(),L=f.mapItem(V,function(e){return A[e]});if(I.setItems(L),S=a(S),B.hasHierarchy()){w=[];var M=x?s:0,O=f.buildPositioningFunction(function(){return va.getCurrentPage().getArea(!0)}).alignVertically(gt.Top,gt.Top,{distance:-s});"right"===P?O.alignHorizontally(gt.Right,gt.Left,{distance:M,usageCallback:function(e){e.$element.find(".drop-down-navigation-desktop-panel .content-container").removeClass("right").addClass("left")}}).alignHorizontally(gt.Left,gt.Right,{distance:M}):O.alignHorizontally(gt.Left,gt.Right,{distance:M}).alignHorizontally(gt.Right,gt.Left,{distance:M,usageCallback:function(e){e.$element.find(".drop-down-navigation-desktop-panel .content-container").removeClass("right").addClass("left")}}),f.eachItem(V,function(i,a){if(B.hasChildren(a)){var r=B.createSubHierarchy(a),o=f.mapEntry(r.getIds(),function(e,t){return A[t]}),s=I.items[a],l=s.$item;l.addClass("has-hierarchy");var c=f.createDropPanelWindow(e(t+1),{appendTo:l,contextClass:"drop-down-navigation",isDraggable:!1,stackWithWindows:!1,placeInsideWindow:!1,positioningFunction:O,activationArgs:f.quickExtend(f.quickExtend({},n),{backgroundColor:x?n.backgroundColor:D.hoverColor,pages:o,pagesHierarchy:r}),openCallback:function(){l.addClass("opened")},closeCallback:function(){l.removeClass("opened")},hidingFunctionBeforeShowing:cs,showingFunction:function(e,t){t.positioned&&t.positioned()},deactivateOnClickOutside:!0,ignoredElementsFilters:[".drop-down-navigation"]}),u={open:function(){c.open(s.data.$openContext)},close:function(){c.close()},isOpened:function(){return c.isOpened()}};s.dropPanelController=u,w.push(u)}})}}else I.setItems(F?n.pages.getItemsValues():n.pages),S=a(S);h.css({padding:s+"px 0",width:y?y.width+2*s:d}),m.css({borderColor:c,borderRadius:S+"px",borderWidth:s+"px"}),b||p.css({color:v,fontSize:o+"px"}),p.toggleClass("show-arrow",k),p.css({fontFamily:null!==r?r:"",borderRadius:S+"px",textAlign:P}),p.toggleClass("sub-hierarchy-left","right"===P);var z=I.orderedItems;if(z.length>0){var _=Math.max(S-s-1,0);z[0].$item.find("> .item-block").css({borderTopLeftRadius:_,borderTopRightRadius:_}),z[z.length-1].$item.find("> .item-block").css({borderBottomLeftRadius:_,borderBottomRightRadius:_})}x&&(Er.finishRenderingBatch(),de.enableOperationsRecording("dropdown-navigation"))},onDeactivated:function(){P=!1,v.addClass("right").removeClass("left"),w&&(f.eachItem(w,function(e,t){t.close()}),w=void 0);var e=d.currentActivationArgs,t=I.items[C];if(t)if(t.data.instanceController){var n=t.data.instanceController.getInstance();if(n&&!n.isDeleted){var i=n.getSkinInstance();i.isUserSelected()&&i.userSelect(!1)}}else t.$item.removeClass("state-selected");e.useSkinButton&&(ba.VisibilityUpdateBatch.start(),f.eachEntry(I.items,function(e,t){t.data.instanceController&&(t.data.instanceController.getInstance().hideElement(),t.data.instanceController.$element.detach())}),ba.VisibilityUpdateBatch.finish()),s(e.mouseEnteredFlag,!1),y=void 0,b=void 0,E=void 0},positioned:function(){d.currentActivationArgs.useSkinButton&&ba.updatePosition(E,{updateSize:!1})}}),d}var n={Panel:{group:"drop-down-navigation-desktop-panel-templates",name:"drop-down-navigation-desktop-panel-template",isSimple:!0},PageItem:{group:"drop-down-navigation-desktop-panel-templates",name:"page-item-template",isSimple:!0},PageItemInstance:{group:"drop-down-navigation-desktop-panel-templates",name:"page-item-instance-template",isSimple:!0}};this.createPanel=function(){return e(0)};var i="rgbaBackground",a={},r=Zr.createCssRules("drop-down-navigation-desktop-panel"),o=Zr.createCssRules("drop-down-navigation-desktop-panel.level-1")});!function(){Pr.registerNavigationDefinition("SkinDropDownNavigation",Pr.getNavigation("DropDownNavigation"))}(),function(){Pr.registerNavigationDefinition("DropDownNavigation2",no.extend("DropDownNavigation2",function(e){return{init:function(t){e.call(this,function(){return ao.createPanel()},function(){return Pr.createNavigationController("SlideNavigation2")},t)},getMobileProperties:function(e){var t=e.navigationProperties;return f.quickExtend({},e,{navigationProperties:{direction:t.mobileDirection,width:t.mobileWidth,spacing:t.spacing,pushContent:!1,animationSpeed:t.animationSpeed,backgroundColor:t.backgroundColor,secondColor:t.mobileSecondColor,fontColor:t.fontColor,fontSize:t.fontSize,font:t.font}})}}}))}();var ao=fs(function(){function e(e){var n=a[e];return n||(n=a[e]=en.createController(t(e))),n}function t(t){function a(e,n){e&&(n?e.setTrue("drop-down-navigation-"+t):setTimeout(function(){e.setFalse("drop-down-navigation-"+t)},0))}function o(e){if(0===t){var n=e/2;r.rule(".page-item .page-title",{paddingTop:n+"px",paddingBottom:n+"px"})}}var s=en.createBaseController(),l=[],c=f.useTemplate(n.Panel,{level:t}),u=f(".pages-list",c),d=f(".side-bar",c);0===t&&c.on("mouseenter",function(){a(s.currentActivationArgs.mouseEnteredFlag,!0)}).on("mouseleave",function(){a(s.currentActivationArgs.mouseEnteredFlag,!1)});var g,p=u.makeItemsList({idFunction:f.defaultIdFunction,itemCreationFunction:function(e,t){var i=t.data,a=s.currentActivationArgs,r=a.customClickCallback,o=f.useTemplate(n.PageItem,e);if(i.$pageTitle=o.find(".page-title"),!a.disableLink&&!r){var l=o.find(".page-content"),c=f("<a class='no-decorations item-block internal-link'></a>");c.attr("href",pa.getPageFullHtmlUrl(e.id)),l.wrap(c),i.$lingWrapper=l.parent()}return o},itemUpdatedCallback:function(e,t){if(e.data.$pageTitle&&t){var n=e.item;e.data.$pageTitle.text(n.title),e.data.$lingWrapper&&e.data.$lingWrapper.attr("href",pa.getPageFullHtmlUrl(n.id))}}}).addOrderingSupport({orderingValueSelector:function(e){return e.item.index}}),h=!1,m=!1;p.onItemPartEvents("> .page-item .item-block","click",function(e,t,n){var i=s.currentActivationArgs;if(!i.disableLink){var a=i.customClickCallback;if(a)setTimeout(function(){s.requestDeactivation()},0),a(t.item.id);else{var r=t.dropPanelController;r&&m||setTimeout(function(){s.requestDeactivation()},0)}}m&&(n.stopPropagation(),n.preventDefault()),m=!1}),p.onItemPartEvents("> .page-item.has-hierarchy","mousedown",function(e,t){m=!1;var n=t.dropPanelController;n.isOpened()||(n.open(),h=!0,m=!0)}),p.onItemPartEvents("> .page-item.has-hierarchy","mouseenter",function(e,t){setTimeout(function(){t.dropPanelController.open()},0)}),p.onItemPartEvents("> .page-item.has-hierarchy","mouseleave",function(e,t){h||setTimeout(function(){t.dropPanelController.close()},0)});var v;return f.quickExtend(s,{$element:c,visualizers:l,defaultActivationArgs:{},onActivated:function(n){var a=f.Color(Ka.evaluateColorBinding(n.backgroundColor)),r=er.evaluateFontBinding(n.font),s=n.fontSize,l=n.width,u=n.spacing,h=Ka.evaluateColorBinding(n.fontColor,!0);g=f.evaluateWhenFunction(n.selectedPageId);var m=Zr.calculateAdjustBrightnessSign(a,.15,!0),y=In.adjustBrightness(a,function(e){return Math.max(e+i*m,.1)});d.css("backgroundColor",y.toCSS()),o(u),p.clear();var b=Me.isObservableCollection(n.pages)?n.pages.getItems():f.mapToDictionary(n.pages,f.identity,f.defaultIdFunction),C=n.pagesHierarchy,I=C.getRootIds(),S=f.mapItem(I,function(e){return b[e]});if(p.setItems(S),C.hasHierarchy()){v=[];var P=f.buildPositioningFunction(function(){return va.getCurrentPage().getArea(!0)}).alignVertically(gt.Top,gt.Top).alignHorizontally(gt.Left,gt.Right).alignHorizontally(gt.Right,gt.Left);f.eachItem(I,function(i,a){if(C.hasChildren(a)){var r=C.createSubHierarchy(a),o=f.mapEntry(r.getIds(),function(e,t){return b[t]}),s=p.items[a],l=s.$item;l.addClass("has-hierarchy");var c=f.createDropPanelWindow(e(t+1),{appendTo:l,contextClass:"drop-down-navigation",isDraggable:!1,stackWithWindows:!1,placeInsideWindow:!1,positioningFunction:P,activationArgs:f.quickExtend(f.quickExtend({},n),{pages:o,pagesHierarchy:r}),openCallback:function(){l.addClass("opened")},closeCallback:function(){l.removeClass("opened")},deactivateOnClickOutside:!0,ignoredElementsFilters:[".drop-down-navigation"]}),u=c.open;c.open=function(){u.call(c,l)},s.dropPanelController=c,v.push(c)}})}var w=p.items[g];w&&w.$item.addClass("state-selected"),c.toggleClass("color-negative",-1===Zr.calculateAdjustBrightnessSign(a,.2)),c.css({backgroundColor:a.toCSS(),width:l,fontFamily:null!==r?r:"",color:h,fontSize:s})},onDeactivated:function(){m=!1,v&&(f.eachItem(v,function(e,t){t.close()}),v=void 0);var e=s.currentActivationArgs,t=p.items[g];t&&t.$item.removeClass("state-selected"),a(e.mouseEnteredFlag,!1)}}),s}var n={Panel:{group:"drop-down-navigation-desktop-panel-2-templates",name:"drop-down-navigation-desktop-panel-2-template",isSimple:!0},PageItem:{group:"drop-down-navigation-desktop-panel-2-templates",name:"page-item-template",isSimple:!0}};this.createPanel=function(){return e(0)};var i=-.05,a={},r=Zr.createCssRules("drop-down-navigation-desktop-panel-2")});!function(){Pr.registerNavigationDefinition("DropDownNavigation3",no.extend("DropDownNavigation3",function(e){return{init:function(t){e.call(this,function(){return os.Default},function(){return Pr.createNavigationController("SlideNavigation")},t)},getMobileProperties:function(e){var t=e.navigationProperties;return f.quickExtend({},e,{navigationProperties:{direction:t.mobileDirection,width:t.mobileWidth,spacing:t.spacing,pushContent:t.pushContent,height:t.mobileHeight,animationSpeed:t.animationSpeed,hierarchyOpened:t.hierarchyOpened,useHierarchy:t.useHierarchy,backgroundColor:t.backgroundColor,fontColor:t.fontColor,fontSize:t.fontSize,font:t.font}})}}}))}(),function(){Pr.registerNavigationDefinition("DropDownNavigation4",no.extend("DropDownNavigation4",function(e){return{init:function(t){e.call(this,ro.createPanel,function(){return Pr.createNavigationController("SlideNavigation3")},t)},getMobileProperties:function(e){var t=e.navigationProperties;return f.quickExtend({},e,{navigationProperties:{direction:t.mobileDirection,width:t.mobileWidth,spacing:t.spacing,pushContent:t.pushContent,height:t.mobileHeight,animationSpeed:t.animationSpeed,hierarchyOpened:t.hierarchyOpened,useHierarchy:t.useHierarchy,backgroundColor:t.backgroundColor,fontColor:t.fontColor,fontSize:t.fontSize,font:t.font,secondColor:t.secondColor,barWidth:t.barWidth,borderWidth:t.borderWidth}})}}}))}();var ro=fs(function(){function e(e){var n=i[e];return n||(n=i[e]=en.createController(t(e))),n}function t(t){function i(e,n){e&&(n?e.setTrue("drop-down-navigation-"+t):setTimeout(function(){e.setFalse("drop-down-navigation-"+t)},0))}function o(e,n,i,r){if(0===t){var o=i/2;a.rule(".page-item .page-title",{paddingTop:o+"px",paddingBottom:o+"px"}),a.rule(".item-side",{width:r,background:n}),a.rule(".title-container",{marginRight:r});var s=-.09,l=Zr.calculateAdjustBrightnessSign(e,s,!0),c=In.adjustBrightness(e,function(e){return e+l*s});a.rule(".page-item > .item-block",{borderTopColor:c}),a.prefixRule(".drop-down-navigation.side-left >","> .content-container > .decorator",{borderLeftColor:e}),a.prefixRule(".drop-down-navigation.side-right >","> .content-container > .decorator",{borderRightColor:e}),a.prefixRule(".drop-down-navigation.side-top >","> .content-container > .decorator",{borderTopColor:e}),a.prefixRule(".drop-down-navigation.side-bottom >","> .content-container > .decorator",{borderBottomColor:e})}}var s=en.createBaseController(),l=f.useTemplate(n.Panel,{level:t}),c=f(".pages-list",l);0===t&&l.on("mouseenter",function(){i(s.currentActivationArgs.mouseEnteredFlag,!0)}).on("mouseleave",function(){i(s.currentActivationArgs.mouseEnteredFlag,!1)});var u,d=c.makeItemsList({idFunction:f.defaultIdFunction,itemCreationFunction:function(e,t){var i=t.data,a=s.currentActivationArgs,r=a.customClickCallback,o=f.useTemplate(n.PageItem,e);if(i.$pageTitle=o.find(".page-title"),!a.disableLink&&!r){var l=o.find(".page-content"),c=f("<a class='no-decorations item-block internal-link'></a>");c.attr("href",pa.getPageFullHtmlUrl(e.id)),l.wrap(c),i.$lingWrapper=l.parent()}return o},itemUpdatedCallback:function(e,t){if(e.data.$pageTitle&&t){var n=e.item;e.data.$pageTitle.text(n.title),e.data.$lingWrapper&&e.data.$lingWrapper.attr("href",pa.getPageFullHtmlUrl(n.id))}}}).addOrderingSupport({orderingValueSelector:function(e){return e.item.index}}),g=!1,p=!1;d.onItemPartEvents("> .page-item .item-block","click",function(e,t,n){var i=s.currentActivationArgs;if(!i.disableLink){var a=i.customClickCallback;if(a)setTimeout(function(){s.requestDeactivation()},0),a(t.item.id);else{var r=t.dropPanelController;r&&p||setTimeout(function(){s.requestDeactivation()},0)}}p&&(n.stopPropagation(),n.preventDefault()),p=!1}),d.onItemPartEvents("> .page-item.has-hierarchy","mousedown",function(e,t){p=!1;var n=t.dropPanelController;n.isOpened()||(n.open(),g=!0,p=!0)}),d.onItemPartEvents("> .page-item.has-hierarchy","mouseenter",function(e,t){setTimeout(function(){t.dropPanelController.open()},0)}),d.onItemPartEvents("> .page-item.has-hierarchy","mouseleave",function(e,t){g||setTimeout(function(){t.dropPanelController.close()},0)});var h;return f.quickExtend(s,{$element:l,defaultActivationArgs:{},onActivated:function(n){var i=f.Color(Ka.evaluateColorBinding(n.backgroundColor)),a=f.Color(Ka.evaluateColorBinding(n.secondColor)),s=er.evaluateFontBinding(n.font),g=n.fontSize,p=n.width,m=n.spacing,v=Ka.evaluateColorBinding(n.fontColor,!0),y=n.barWidth;u=f.evaluateWhenFunction(n.selectedPageId),o(i,a,m,y),d.clear();var b=Me.isObservableCollection(n.pages)?n.pages.getItems():f.mapToDictionary(n.pages,f.identity,f.defaultIdFunction),C=n.pagesHierarchy,I=C.getRootIds(),S=f.mapItem(I,function(e){return b[e]});d.setItems(S),C.hasHierarchy()&&(h=[],f.eachItem(I,function(i,a){if(C.hasChildren(a)){var o=C.createSubHierarchy(a),s=f.mapEntry(o.getIds(),function(e,t){return b[t]}),l=d.items[a],c=l.$item;c.addClass("has-hierarchy");var u=f.createDropPanelWindow(e(t+1),{appendTo:c,contextClass:"drop-down-navigation vertical-orientation",isDraggable:!1,stackWithWindows:!1,placeInsideWindow:!1,positioningFunction:r,activationArgs:f.quickExtend(f.quickExtend({},n),{pages:s,pagesHierarchy:o}),deactivateOnClickOutside:!0,ignoredElementsFilters:[".drop-down-navigation"]}),g=u.open;u.open=function(){g.call(u,c)},l.dropPanelController=u,h.push(u)}}));var P=d.items[u];P&&P.$item.addClass("state-selected"),l.toggleClass("color-negative",-1===Zr.calculateAdjustBrightnessSign(i,.2)),c.css({backgroundColor:i.toCSS(),width:p,fontFamily:null!==s?s:"",color:v,fontSize:g})},onDeactivated:function(){p=!1,h&&(f.eachItem(h,function(e,t){t.close()}),h=void 0);var e=s.currentActivationArgs,t=d.items[u];t&&t.$item.removeClass("state-selected"),i(e.mouseEnteredFlag,!1)}}),s}var n={Panel:{group:"drop-down-navigation-desktop-panel-4-templates",name:"drop-down-navigation-desktop-panel-4-template"},PageItem:{group:"drop-down-navigation-desktop-panel-4-templates",name:"page-item-template"}};this.createPanel=function(){return e(0)};var i={},a=Zr.createCssRules("drop-down-navigation-desktop-panel-4"),r=f.buildPositioningFunction(function(){return va.getCurrentPage().getArea(!0)}).alignVertically(gt.Top,gt.Top).alignHorizontally(gt.Left,gt.Right,{usageCallback:function(e){e.$element.addClass("side-right")}}).alignHorizontally(gt.Right,gt.Left,{usageCallback:function(e){e.$element.addClass("side-left")}})});!function(){var e=en.createDeferredPanel(function(){return en.createPanel(oo)});Pr.registerNavigationDefinition("SlideNavigation3",eo.extend("SlideNavigation3",function(t){return{init:function(n){t.call(this,e,n)}}}))}();var oo=fs(function(){function e(e,t,r){for(var o=Zr.calculateAdjustBrightnessSign(t,4*n),s=Zr.calculateAdjustBrightnessSign(e,4*i,!0),l=(Zr.calculateAdjustBrightnessSign(r,4*a,!0),[]),c=[],u=[],d=0;4>d;d++){var g=0===d?t:In.adjustBrightness(t,function(e){return e+o*(n*d)});l.push(g.toCSS());var f=0===d?e:In.adjustBrightness(e,function(e){return e+s*(i*d)});c.push(f.toCSS());var p=0===d?r:In.adjustOpacity(r,function(e){return e-.2*d});u.push(p.toCSS())}return{sideColors:l,backgroundColors:c,fontColors:u,borderColor:In.adjustBrightness(e,function(e){return e+s*(3*i)}).toCSS(),borderColorOpened:In.adjustBrightness(e,function(e){return e+s*(2*i)}).toCSS()}}var t={Panel:{group:"slide-navigation-panel-3-templates",name:"slide-navigation-panel-3-template"},PageItem:{group:"slide-navigation-panel-3-templates",name:"page-item-template"}};this.create=function(){function n(){var e=l.makeItemsList({idFunction:f.defaultIdFunction,template:t.PageItem,itemAddedCallback:function(e){var t=e.$item,n=(e.item,e.data);n.$pageTitle=t.find(".page-title"),n.$titleContainer=f(".title-container",t)},itemUpdatedCallback:function(e,t){var n=e.item,a=e.data,r=i.currentActivationArgs;if(r.disableLink)a.$lingWrapper&&(a.$pageTitle.unwrap(),delete a.$lingWrapper);else{var o=pa.getPageFullHtmlUrl(n.id);if(a.$lingWrapper)t&&a.$lingWrapper.attr("href",o);else{var s=f("<a class='no-decorations'></a>");s.addClass("internal-link"),s.click(function(){setTimeout(function(){i.requestDeactivation(!0)},0)}),s.attr("href",o),a.$pageTitle.wrap(s),a.$lingWrapper=s}}t&&a.$pageTitle.text(n.title)}}).addOrderingSupport({orderingValueSelector:function(e){return e.item.index}}).addLayoutSupport(!0);return e.onItemPartEvents(".icon-container","click",function(e,t,n){var i=t.$wrapper,a=i.hasClass("open"),r=i.find(">.hierarchy-item-content >.hierarchy-children-container");i.toggleClass("open",!a),r.velocity(a?"slideUp":"slideDown",{duration:200}),n.stopPropagation(),n.preventDefault()}),e}var i=en.createBaseController(),a=f.useTemplate(t.Panel),r=f(".side-bar",a),o=(f(".header",a),f(".pages-container",a)),s=f(".close-icon-content",a),l=f(".pages-list",a);f(".panel-content",a);s.click(function(){i.requestDeactivation()});var c=Sn.create(o,{scrollbarClass:"slide-scrollbar"});c.setMoveScrolling({enableHorizontalScrolling:!1}),i.associateScrollingView(c);var u=n();i.associateItemsList(u);var d,g=zt.create(),p=Zr.createCssRules("slide-navigation-panel-3");return f.quickExtend(i,{$element:a,defaultActivationArgs:{},onActivated:function(t){for(var n=t.fontSize,i=f.Color(Ka.evaluateColorBinding(t.fontColor)),o=f.Color(Ka.evaluateColorBinding(t.secondColor)),s=f.Color(Ka.evaluateColorBinding(t.backgroundColor)),l=f.evaluateWhenFunction(t.selectedPageId),c=er.evaluateFontBinding(t.font),h=t.pages,m=t.pagesHierarchy,v=t.borderWidth,y=t.barWidth,b=Math.min(t.width,t.maxSize.width),C=t.spacing,I=C/2,S=e(s,o,i),P=S.sideColors,w=S.backgroundColors,E=S.fontColors,T=1;4>T;T++)p.rule(".hierarchy-level-{0} > .hierarchy-item-content > .hierarchy-item-container .item-side".format(T),{backgroundColor:P[T]}),p.rule(".hierarchy-level-{0} > .hierarchy-item-content > .hierarchy-item-container .page-item".format(T),{backgroundColor:w[T],color:E[T]}),p.rule(".hierarchy-level-{0} > .hierarchy-item-content > .hierarchy-item-container .page-item .page-title".format(T),{paddingLeft:25+20*T
});p.rule(".hierarchy-level-0 > .hierarchy-item-content > .hierarchy-item-container .title-container",{borderBottomWidth:v,borderBottomColor:S.borderColor}),p.rule(".hierarchy-level-0.open > .hierarchy-item-content > .hierarchy-item-container .title-container",{borderBottomColor:S.borderColorOpened}),p.rule(".page-title",{paddingTop:I,paddingBottom:I}),p.rule(".item-side",{bottom:v}),p.rule(".hover-overlay",{bottom:v}),p.rule(".close-icon-content",{right:15+y}),p.rule(".side-bar",{width:y}),p.rule(".item-side",{width:y}),p.rule(".title-container",{marginRight:y}),p.rule(".page-item.state-selected .hover-overlay",{right:y}),u.setLayout(void 0),g.setHierarchyCollection(m),u.setItems(h),u.setLayout(g),r.css({backgroundColor:P[0]}),a.css({width:b,color:E[0],fontSize:n,fontFamily:null!==c?c:"",backgroundColor:w[0]}).toggleClass("color-negative",-1===Zr.calculateAdjustBrightnessSign(w[0],.2)),d=u.items[l],d&&d.$item.addClass("state-selected")},onDeactivated:function(){d&&d.$item.removeClass("state-selected")}}),i};var n=.06,i=-.03,a=-.1}),so=function(){var e=C.extend("PercentageWidget",{appendTo:cs,setSettings:cs,setPercentage:cs,setSize:cs,remove:cs});return e}(),lo=function(){var e={color1:{mainColor:1,opacity:1,brightness:0},color2:{mainColor:2,opacity:1,brightness:0},color3:{mainColor:3,opacity:1,brightness:0},size1:20,size2:5,font:{themeFont:"heading1"}};return so.extend("CommonPercentageWidget",{init:function(t,n){this._$element=t,this._settings=f.quickExtend({},e,n.settings),this._percentage=n.percentage,this._size=n.size;var i=this;this._listener=x.createEventListener([Ka.ThemeColorsChanged,er.CurrentThemeFonts.valueChangedEvent],function(){i.repaint()})},appendTo:function(e){this._$element.appendTo(e),this._initialized=!0,this._listener.activate(),this.repaint()},_repaint:cs,repaint:function(){this._initialized&&this._repaint()},setSettings:function(t){this._settings=f.quickExtend({},e,t),this.repaint()},setPercentage:function(e){this._percentage=e,this.repaint()},setSize:function(e){this._size=e,this.repaint()},remove:function(){this._listener.dispose(),this._$element.detach()}})}(),co=fs(function(){var e={};this.registerTypeFactory=function(t,n){e[t]=n},this.create=function(t,n){return n=f.quickExtend({percentage:0},n),e[t].create(n)},this.getTypes=function(){return f.getKeys(e)}});!function(){var e=w.create(function(){var e=lo.extend("Percentage1",function(e){return{init:function(t){var n=f('<div class="percentage-1 stretched-to-fill content-centered vertically-center-children"><div class="shape-container stretched-to-fill"></div><div class="text"></div></div>');e.call(this,n,t);var i=f(".shape-container",n);this._donutController=Xn.create().appendTo(i),this._$text=f(".text",n)},_repaint:function(){var e=this,t=e._$text,n=e._settings,i=e._size,a=e._percentage,r=n.size2;e._$element.outerSize(i).css({color:Ka.evaluateColorBinding(n.color1,!0),fontSize:n.size1,fontFamily:er.evaluateFontBinding(n.font)}),t.text(a+"%"),this._donutController.paint(a,Ka.evaluateColorBinding(n.color2),Ka.evaluateColorBinding(n.color3),r,i)}}});return e.create=function(t){return new e(t)},e});co.registerTypeFactory("percentage1",{create:function(t){return e.getValue().create(t)}})}(),function(){var e=w.create(function(){var e=lo.extend("Percentage2",function(e){return{init:function(t){var n=f('<div class="percentage-2 stretched-to-fill content-centered vertically-center-children"><div class="percentage-line"><div class="percentage-value full-height"></div></div><div class="text"></div></div>');e.call(this,n,t);var i=f(".text",n),a=f(".percentage-line",n),r=f(".percentage-value",n);this._$text=i,this._$percentageLine=a,this._$percentageValue=r},_repaint:function(){var e=this,t=e._$text,n=e._$percentageLine,i=e._$percentageValue,a=e._settings,r=e._size,o=e._percentage,s=r.width;e._$element.css({color:Ka.evaluateColorBinding(a.color1,!0),fontSize:a.size1,fontFamily:er.evaluateFontBinding(a.font)}),t.text(o+"%");var l=t.outerWidth(),c=s-l-5;n.css({width:c,height:a.size2,background:Ka.evaluateColorBinding(a.color3,!0)}),i.css({width:o+"%",background:Ka.evaluateColorBinding(a.color2,!0)})}}});return e.create=function(t){return new e(t)},e});co.registerTypeFactory("percentage2",{create:function(t){return e.getValue().create(t)}})}(),function(){var e=w.create(function(){var e=lo.extend("Percentage3",function(e){return{init:function(t){var n=f('<div class="percentage-3 stretched-to-fill content-centered vertically-center-children"><div class="percentage-line positioned"><div class="percentage-value stretched-to-fill"></div><div class="text positioned"></div></div></div>');e.call(this,n,t);var i=f(".text",n),a=f(".percentage-line",n),r=f(".percentage-value",n);this._$text=i,this._$percentageLine=a,this._$percentageValue=r},_repaint:function(){var e=this,t=e._$text,n=e._$percentageLine,i=e._$percentageValue,a=e._settings,r=e._percentage;e._$element.css({color:Ka.evaluateColorBinding(a.color1,!0),fontSize:a.size1,fontFamily:er.evaluateFontBinding(a.font)}),t.text(r+"%"),n.css({background:Ka.evaluateColorBinding(a.color3,!0)}),i.css({width:r+"%",background:Ka.evaluateColorBinding(a.color2,!0)})}}});return e.create=function(t){return new e(t)},e});co.registerTypeFactory("percentage3",{create:function(t){return e.getValue().create(t)}})}(),function(){var e=w.create(function(){var e=f('<div class="percentage-item"></div>'),t=lo.extend("Percentage4",function(t){return{init:function(e){var n=f('<div class="percentage-4 stretched-to-fill content-centered"></div>');t.call(this,n,e)},_repaint:function(){var t=this,n=t._$element,i=t._settings,a=t._percentage;n.empty();for(var r=i.size1,o=i.size2,s=o/5,l=f.adjustFraction((100-s*(r-1))/r,2),c=a/(100/r),u=Math.floor(c),d=c%1*100,g=Ka.evaluateColorBinding(i.color1,!0),p=Ka.evaluateColorBinding(i.color2,!0),h=void 0,m=1;r>=m;m++){var v=m>u,y=e.clone().css({background:v?p:g,width:l+"%",marginRight:m===r?0:s+"%"}).appendTo(n);!h&&v&&(h=y)}d>0&&e.clone().css({background:g,width:d+"%"}).appendTo(h)}}});return t.create=function(e){return new t(e)},t});co.registerTypeFactory("percentage4",{create:function(t){return e.getValue().create(t)}})}(),function(){var e=w.create(function(){var e=f('<div class="percentage-item"></div>'),t=lo.extend("Percentage5",function(t){return{init:function(e){var n=f('<div class="percentage-5 stretched-to-fill content-centered vertically-center-children"></div>');t.call(this,n,e)},_repaint:function(){var t=this,n=t._$element,i=t._settings,a=t._percentage;n.empty();for(var r=i.size1,o=i.size2,s=n.outerSize(),l=Math.floor(Math.min(s.height,f.adjustFraction((s.width-o*(r-1))/r,2))),c=o,u=a/(100/r),d=Math.floor(u),g=u%1,p=Ka.evaluateColorBinding(i.color1,!0),h=Ka.evaluateColorBinding(i.color2,!0),m=void 0,v=1;r>=v;v++){var y=v>d,b=e.clone().css({background:y?h:p,width:l,height:l,marginRight:v===r?0:c}).appendTo(n);!m&&y&&(m=b)}if(g>0){var C=f('<div class="overflow-hidden full-height"></div>').css({width:f.adjustFraction(l*g,2)}).appendTo(m);e.clone().css({background:p,width:l,height:l}).appendTo(C)}}}});return t.create=function(e){return new t(e)},t});co.registerTypeFactory("percentage5",{create:function(t){return e.getValue().create(t)}})}(),function(){wa.addSiteInformationFix(1.1007,function(e){function t(e){var n=e.elementProperties.roll;n&&(e.elementProperties.connections={},e.elementProperties.connections[n.name]={},e.elementProperties.connections[n.name][n.targetId]={targetId:n.targetId,name:n.name,options:n.options}),e.elementProperties.roll=null,e.childElements&&f.each(e.childElements,function(e,n){t(n)})}e.templateStructure&&f.each(e.templateStructure.structures,function(e,n){t(n)}),e.pagesStructure&&f.each(e.pagesStructure.pages,function(e,n){f.each(n.structures,function(e,n){t(n)})}),e.masterPages&&f.each(e.masterPages,function(e,n){n.hierarchyInfo.structures&&f.each(n.hierarchyInfo.structures,function(e,n){t(n)})})})}(),function(){wa.addSiteInformationFix(1.1015,function(e){function t(e){var n=e.elementProperties.customStates;if(n){var i={};f.each(n,function(e,t){f.isPlainObject(t.ids)&&f.count(t.ids)>1&&(i[e]=t)}),e.elementProperties.customStates=i}e.childElements&&f.each(e.childElements,function(e,n){t(n)})}e.templateStructure&&f.each(e.templateStructure.structures,function(e,n){t(n)}),e.pagesStructure&&f.each(e.pagesStructure.pages,function(e,n){f.each(n.structures,function(e,n){t(n)})}),e.masterPages&&f.each(e.masterPages,function(e,n){n.hierarchyInfo.structures&&f.each(n.hierarchyInfo.structures,function(e,n){t(n)})})})}(),function(){wa.addSiteInformationFix(1.1013,function(e){function t(e){var n=e.type;n===ri.Menu.name&&e.elementProperties.dataTemplate?(e.elementProperties.dataTemplate.structures[0].type=ri.MenuButton.name,e.elementProperties.itemsTemplates&&f.each(e.elementProperties.itemsTemplates,function(e,t){t.structures[0].type=ri.MenuButton.name})):n===ri.Gallery.name&&e.elementProperties.dataTemplate&&!f.isEmptyObject(e.elementProperties.dataTemplate)&&(e.elementProperties.dataTemplate.structures[0].type=ri.ImageBox.name,e.elementProperties.itemsTemplates&&f.each(e.elementProperties.itemsTemplates,function(e,t){t.structures[0].type=ri.ImageBox.name})),e.childElements&&f.each(e.childElements,function(e,n){t(n)})}var n;e.templateStructure&&f.each(e.templateStructure.structures,function(e,n){t(n)}),e.pagesStructure&&f.each(e.pagesStructure.pages,function(e,i){n=i,f.each(i.structures,function(e,n){t(n)})}),e.masterPages&&f.each(e.masterPages,function(e,n){n.hierarchyInfo.structures&&f.each(n.hierarchyInfo.structures,function(e,n){t(n)})})})}(),function(){wa.addSiteInformationFix(1.1017,function(e){function t(e){var n=e.type;n===ri.Menu.name&&e.elementProperties.itemFields&&(e.elementProperties.itemFields.icon={type:"icon",title:"Icon",name:"icon",isDefaultField:!0},delete e.elementProperties.itemFields.image),n===ri.MenuButton.name&&e.elementProperties.fieldsMap&&f.each(e.elementProperties.fieldsMap,function(e,t){f.each(t,function(e,t){"image"===t.type&&(t.type="icon",t.title="Icon",t.name="icon")})}),e.childElements&&f.each(e.childElements,function(e,n){t(n)})}var n;e.templateStructure&&f.each(e.templateStructure.structures,function(e,n){t(n)}),e.pagesStructure&&f.each(e.pagesStructure.pages,function(e,i){n=i,f.each(i.structures,function(e,n){t(n)})}),e.masterPages&&f.each(e.masterPages,function(e,n){n.hierarchyInfo.structures&&f.each(n.hierarchyInfo.structures,function(e,n){t(n)})})})}(),function(){wa.addSiteInformationFix(1.1016,function(e){function t(e){var n=e.type;n!==ri.Menu.name&&n!==ri.Gallery.name||!e.elementProperties.dataTemplate||f.isEmptyObject(e.elementProperties.dataTemplate)||(e.elementProperties.fieldsTemplates={},e.elementProperties.fieldsTemplates.defaultTemplate=e.elementProperties.dataTemplate),e.childElements&&f.eachItem(e.childElements,function(e,n){t(n)})}var n;e.templateStructure&&f.eachItem(e.templateStructure.structures,function(e,n){t(n)}),e.pagesStructure&&f.eachItem(e.pagesStructure.pages,function(e,i){n=i,f.eachItem(i.structures,function(e,n){t(n)})}),e.masterPages&&f.eachItem(e.masterPages,function(e,n){n.hierarchyInfo.structures&&f.each(n.hierarchyInfo.structures,function(e,n){t(n)})})})}(),function(){wa.addSiteInformationFix(1.1024,function(e){function t(e){e.elementProperties.columnsGrid;e.elementProperties.columnsGrid.isEnabled=!0,e.elementProperties.columnsGrid.showAlways=!1}e.pagesStructure&&f.each(e.pagesStructure.pages,function(e,n){f.each(n.structures,function(e,n){t(n)})})})}(),function(){wa.addSiteInformationFix(1.1026,function(e){function t(e,n){var i=e.elementProperties,a=i.behaviours;a&&a.isTemplateBehaviour||(n&&ri[e.type].hasFeature(oi.TemplateItem)?(i.behaviours={isTemplateBehaviour:a?a:{},normalBehaviours:{}},f.each(i.behaviours.isTemplateBehaviour,function(e,t){t.options.isTemplateBehaviour=!0})):i.behaviours={normalBehaviours:a?a:{},isTemplateBehaviour:{}},e.childElements&&f.each(e.childElements,function(e,i){t(i,n)}))}var n;if(e.templateStructure){var i=e.templateStructure.structures;f.each(i,function(e,n){t(n,!0)});var a=e.templateStructure.connections;a&&i&&ri[i[0].type].hasFeature(oi.TemplateItem)&&(a.sourceConnections&&f.each(a.sourceConnections,function(e,t){t.options.isTemplateConenction=!0}),a.targetConnections&&f.each(a.targetConnections,function(e,t){t.options.isTemplateConenction=!0}))}e.pagesStructure&&f.each(e.pagesStructure.pages,function(e,i){n=i,f.each(i.structures,function(e,n){t(n)})}),e.masterPages&&f.each(e.masterPages,function(e,n){n.hierarchyInfo.structures&&f.each(n.hierarchyInfo.structures,function(e,n){t(n)})})})}(),function(){wa.addSiteInformationFix(1.1027,function(e){function t(e){e&&f.each(e,function(e,t){f.each(t,function(e,t){r(t)})})}function n(e,t){var o=e.id,s=e.elementProperties,l=s.behaviours,c=s.itemsData;c&&(f.each(c.connections,function(e,t){f.each(t,function(e,t){r(t)})}),f.each(c.behaviours,function(e,t){var n=c.connections[e];f.each(t,function(t,i){var r=a(i,o+e);n[r.id]=r})})),l&&(i(l.normalBehaviours,t,o),i(l.isTemplateBehaviour,t,o)),e.childElements&&f.each(e.childElements,function(e,i){n(i,t)})}function i(e,t,n){e&&f.each(e,function(e,i){var r=a(i,n),o=r.id;t.targetConnections&&(t.targetConnections[o]=r),t.sourceConnections&&(t.sourceConnections[o]=r)})}function a(e,t){var n=e.name;if(e.options){var i=e.options;"FlyToScreenBehaviour"===n?i.triggerType=Fi.PageLoad:i.stateName&&(i.triggerType=Fi.State,i.triggerName=i.stateName),i.transitionData&&(void 0!==i.transitionData.transitionDuration&&(i.animationDuration=i.transitionData.transitionDuration),i.transitionData.transitionDirection&&(i.animationDirection=i.transitionData.transitionDirection)),i.direction&&(i.animationDirection=i.direction)}return{id:f.uniqueID(),sourceElementID:t,targetElementID:t,behaviourName:n,options:i}}function r(e){var t=(e.id,e.options);e.behaviourName||(t.triggerType=Fi.Trigger,t.triggerName=e.triggerName,e.behaviourName=e.actionName,delete t.trigger,"ShowElement"!==e.actionName&&"HideElement"!==e.actionName||(t.animationType=wt.NoAnimation.name,t.animationDuration=0),"FadeIn"===e.actionName&&(e.behaviourName=Bi.ShowElement.name,t.animationType=wt.Fade.name),"FadeOut"===e.actionName&&(e.behaviourName=Bi.HideElement.name,t.animationType=wt.Fade.name),"SlideIn"===e.actionName&&(e.behaviourName=Bi.ShowElement.name),"SlideOut"===e.actionName&&(e.behaviourName=Bi.HideElement.name),delete e.actionName,t.slideOptions&&("Left"===t.slideOptions.name?t.animationType="SlideLeft":"Right"===t.slideOptions.name?t.animationType="SlideRight":"Up"===t.slideOptions.name?t.animationType="SlideUp":"Down"===t.slideOptions.name&&(t.animationType="SlideDown")),t.transitionData&&(void 0!==t.transitionData.transitionDuration&&(t.animationDuration=t.transitionData.transitionDuration),t.transitionData.transitionDirection&&(t.animationDirection=t.transitionData.transitionDirection)),t.direction&&(t.animationDirection=t.direction))}var o;if(e.templateStructure){var s=e.templateStructure.structures,l=e.templateStructure.connections;l&&t(l),f.each(s,function(e,t){n(t,l)})}e.pagesStructure&&f.each(e.pagesStructure.pages,function(e,i){o=i;var a=i.connections;t(a),f.each(i.structures,function(e,t){n(t,a)})}),e.masterPages&&f.each(e.masterPages,function(e,i){if(i.hierarchyInfo.structures){var a=i.hierarchyInfo.connections;t(a),f.each(i.hierarchyInfo.structures,function(e,t){n(t,a)})}})})}(),function(){wa.addSiteInformationFix(1.1032,function(e){function t(e){e&&f.each(e,function(e,t){f.each(t,function(e,t){i(t)})})}function n(e,t){var a=(e.id,e.elementProperties),r=a.itemsData;(a.entranceAnimation||a.exitAnimation)&&("SlideLeft"===a.entranceAnimation?(a.entranceAnimation=wt.Slide.name,a.entranceAnimationDirection="right"):"SlideRight"===a.entranceAnimation?(a.entranceAnimation=wt.Slide.name,a.entranceAnimationDirection="left"):"SlideUp"===a.entranceAnimation?(a.entranceAnimation=wt.Slide.name,a.entranceAnimationDirection="down"):"SlideDown"===a.entranceAnimation&&(a.entranceAnimation=wt.Slide.name,a.entranceAnimationDirection="up"),"SlideLeft"===a.exitAnimation?(a.exitAnimation=wt.Slide.name,a.exitAnimationDirection="left"):"SlideRight"===a.exitAnimation?(a.exitAnimation=wt.Slide.name,a.exitAnimationDirection="right"):"SlideUp"===a.exitAnimation?(a.exitAnimation=wt.Slide.name,a.exitAnimationDirection="up"):"SlideDown"===a.exitAnimation&&(a.exitAnimation=wt.Slide.name,a.exitAnimationDirection="down")),r&&f.each(r.connections,function(e,t){f.each(t,function(e,t){i(t)})}),e.childElements&&f.each(e.childElements,function(e,i){n(i,t)})}function i(e){if(e){var t=(e.id,e.options);"ShowElement"===e.behaviourName?("SlideLeft"===t.animationType?(t.animationSlideDirection="right",t.animationType="Slide"):"SlideRight"===t.animationType?(t.animationSlideDirection="left",t.animationType="Slide"):"SlideUp"===t.animationType?(t.animationSlideDirection="down",t.animationType="Slide"):"SlideDown"===t.animationType&&(t.animationSlideDirection="up",t.animationType="Slide"),t.animationDirection||(t.animationDirection={vertical:"top",horizontal:"left"})):"HideElement"===e.behaviourName&&("SlideLeft"===t.animationType?(t.animationSlideDirection="left",t.animationType="Slide"):"SlideRight"===t.animationType?(t.animationSlideDirection="right",t.animationType="Slide"):"SlideUp"===t.animationType?(t.animationSlideDirection="up",t.animationType="Slide"):"SlideDown"===t.animationType&&(t.animationSlideDirection="down",t.animationType="Slide"),t.animationDirection||(t.animationDirection={vertical:"top",horizontal:"left"})),"NavigateNext"!==e.behaviourName&&"NavigatePrev"!==e.behaviourName||("SlideLeft"===t.entranceAnimation?(t.entranceAnimation="Slide",t.entranceAnimationDirection="right"):"SlideRight"===t.entranceAnimation?(t.entranceAnimation="Slide",t.entranceAnimationDirection="left"):"SlideUp"===t.entranceAnimation?(t.entranceAnimation="Slide",t.entranceAnimationDirection="down"):"SlideDown"===t.entranceAnimation&&(t.entranceAnimation="Slide",t.entranceAnimationDirection="up"),"SlideLeft"===t.exitAnimation?(t.exitAnimation="Slide",t.exitAnimationDirection="left"):"SlideRight"===t.exitAnimation?(t.exitAnimation="Slide",t.exitAnimationDirection="right"):"SlideUp"===t.exitAnimation?(t.exitAnimation="Slide",t.exitAnimationDirection="up"):"SlideDown"===t.exitAnimation&&(t.exitAnimation="Slide",t.exitAnimationDirection="down")),"FlyToScreenBehaviour"===e.behaviourName?(e.behaviourName=Bi.ShowElement.name,t.animationType=wt.Fly.name,t.animationSlideDirection="left",t.animationDirection=t.direction,delete t.direction):"FlyOutScreenBehaviour"===e.behaviourName&&(e.behaviourName=Bi.HideElement.name,t.animationType=wt.Fly.name,t.animationSlideDirection="left",t.animationDirection=t.direction,delete t.direction)}}var a;if(e.templateStructure){var r=e.templateStructure.structures,o=e.templateStructure.connections;o&&t(o),f.each(r,function(e,t){n(t,o)})}e.pagesStructure&&f.each(e.pagesStructure.pages,function(e,i){a=i;var r=i.connections;t(r),f.each(i.structures,function(e,t){n(t,r)})}),e.masterPages&&f.each(e.masterPages,function(e,i){if(i.hierarchyInfo.structures){var a=i.hierarchyInfo.connections;t(a),f.each(i.hierarchyInfo.structures,function(e,t){n(t,a)})}})})}(),function(){wa.addSiteInformationFix(1.1035,function(e){function t(e){e&&f.each(e,function(e,t){f.each(t,function(e,t){for(var i in t){var a=t[i];for(var r in a){var o=a[r];n(o)}}})})}function n(e){e&&(e.transitionInEffect&&("SlideLeft"===e.transitionInEffect?(e.transitionSlideInDirection="right",e.transitionInEffect="Slide"):"SlideRight"===e.transitionInEffect?(e.transitionSlideInDirection="left",e.transitionInEffect="Slide"):"SlideUp"===e.transitionInEffect?(e.transitionSlideInDirection="down",e.transitionInEffect="Slide"):"SlideDown"===e.transitionInEffect&&(e.transitionSlideInDirection="up",e.transitionInEffect="Slide"),e.transitionSlideInDirection||(e.transitionSlideInDirection="right")),e.transitionOutEffect&&("SlideLeft"===e.transitionOutEffect?(e.transitionSlideOutDirection="left",e.transitionOutEffect="Slide"):"SlideRight"===e.transitionOutEffect?(e.transitionSlideOutDirection="right",e.transitionOutEffect="Slide"):"SlideUp"===e.transitionOutEffect?(e.transitionSlideOutDirection="up",e.transitionOutEffect="Slide"):"SlideDown"===e.transitionOutEffect&&(e.transitionSlideOutDirection="down",e.transitionOutEffect="Slide"),e.transitionSlideOutDirection||(e.transitionSlideOutDirection="right")))}var i;if(e.templateStructure){var a=(e.templateStructure.structures,e.templateStructure.customStatesProperties);a&&t(a)}e.pagesStructure&&f.each(e.pagesStructure.pages,function(e,n){i=n;var a=n.customStatesProperties;t(a)}),e.masterPages&&f.each(e.masterPages,function(e,n){if(n.hierarchyInfo.structures){var i=n.hierarchyInfo.customStatesProperties;t(i)}})})}(),function(){wa.addSiteInformationFix(1.1037,function(e){function t(e,n){if(n){var i=(e.id,e.elementProperties),a=i.itemsData;a&&(f.each(a.connections,function(t,i){f.each(i,function(i,a){n.targetConnections[i]=a;var r=e.id+Ke+t;a.sourceElementID===a.targetElementID&&(a.targetElementID=r),a.sourceElementID=r})}),delete i.itemsData),e.childElements&&f.each(e.childElements,function(e,i){t(i,n)})}}var n;if(e.templateStructure){var i=e.templateStructure.structures,a=e.templateStructure.connections;f.each(i,function(e,n){t(n,a)})}e.pagesStructure&&f.each(e.pagesStructure.pages,function(e,i){n=i;var a=i.connections;f.each(i.structures,function(e,n){t(n,a)})}),e.masterPages&&f.each(e.masterPages,function(e,n){if(n.hierarchyInfo.structures){var i=n.hierarchyInfo.connections;f.each(n.hierarchyInfo.structures,function(e,n){t(n,i)})}})})}(),function(){function e(e){var t=e.split(Ke);if(e.length>=26&&1===t.length){var n=13;"id"===e.slice(0,2)&&(n+=2),e=e.slice(0,n)+Ke+e.slice(n,e.length)}return e}wa.addSiteInformationFix(1.1038,function(t){function n(t,n){t.id;n&&f.each(n,function(t,n){f.each(n,function(t,n){var i=""+n.targetElementID,a=""+n.sourceElementID;n.targetElementID=e(i),n.sourceElementID=e(a)})})}var i;if(t.templateStructure){var a=t.templateStructure.structures,r=t.templateStructure.connections;f.each(a,function(e,t){n(t,r)})}t.pagesStructure&&f.each(t.pagesStructure.pages,function(e,t){i=t;var a=t.connections;f.each(t.structures,function(e,t){n(t,a)})}),t.masterPages&&f.each(t.masterPages,function(e,t){if(t.hierarchyInfo.structures){var i=t.hierarchyInfo.connections;f.each(t.hierarchyInfo.structures,function(e,t){n(t,i)})}})})}(),function(){wa.addSiteInformationFix(1.1043,function(e){function t(e){e.id;e.type===ri.Menu.name&&void 0===e.elementProperties.synchronizeWithPages&&(e.elementProperties.synchronizeWithPages=!0),e.childElements&&f.each(e.childElements,function(e,n){t(n)})}function n(e){var t=(e.id,e.elementProperties.textType);t&&("div"===t&&(t=et.DIV),e.elementProperties.tagName=t),e.childElements&&f.each(e.childElements,function(e,t){n(t)})}var i;if(e.templateStructure){var a=e.templateStructure.structures;f.each(a,function(e,t){n(t)})}e.pagesStructure&&f.each(e.pagesStructure.pages,function(e,a){i=a,f.each(a.structures,function(e,i){n(i),t(i)})}),e.masterPages&&f.each(e.masterPages,function(e,i){i.hierarchyInfo.structures&&f.each(i.hierarchyInfo.structures,function(e,i){n(i),t(i)})})})}(),function(){wa.addSiteInformationFix(1.1045,function(e){function t(e){var n=e.type;if(ri[n].hasFeature(oi.TemplateItem)){var i=e.elementProperties.fieldsMap;i&&f.each(i,function(e,t){t&&t[mi.image.getContentType()]&&(t[mi.title.getContentType()]={name:"title",title:"Title",type:"title"})})}e.childElements&&f.each(e.childElements,function(e,n){t(n)})}e.templateStructure&&f.each(e.templateStructure.structures,function(e,n){t(n)}),e.pagesStructure&&f.each(e.pagesStructure.pages,function(e,t){f.each(t.structures,cs)}),e.masterPages&&f.each(e.masterPages,function(e,t){t.hierarchyInfo.structures&&f.each(t.hierarchyInfo.structures,cs)})})}(),function(){wa.addSiteInformationFix(1.1047,function(e){function t(e){var n=(e.id,e.elementProperties),i=e.type;"page"===i?(n.childrenAnchor=ot.Centered,e.childElements&&f.each(e.childElements,function(e,n){t(n)})):n.sizeAndPosition.left-=480}e.pagesStructure&&f.each(e.pagesStructure.pages,function(e,n){f.each(n.structures,function(e,n){t(n)})}),e.masterPages&&f.each(e.masterPages,function(e,n){n.hierarchyInfo.structures&&f.each(n.hierarchyInfo.structures,function(e,n){t(n)})})})}(),function(){wa.addSiteInformationFix(1.1049,function(e){function t(e){var t=va.getCoordinatorHeirarchy().customStatesProperties;e&&f.each(e,function(e,n){var i=n.id;t&&t[i]&&f.each(t[i],function(e,t){"sizeAndPosition"===e&&t&&f.each(t,function(e,t){t&&f.each(t,function(e,t){t.stateValue.left-=480})})})})}e.pagesStructure&&f.each(e.pagesStructure.pages,function(e,n){f.each(n.structures,function(e,n){t(n.childElements)})}),e.masterPages&&f.each(e.masterPages,function(e,n){n.hierarchyInfo.structures&&t(n.hierarchyInfo.structures)})})}(),function(){wa.addSiteInformationFix(1.1065,function(e){function t(e){var n=e.elementProperties,i=ri[e.type],a=n.dataLayoutOptions;a&&(n.dataLayoutOptions=f.extend({},i.getPropertiesDefaultValues().dataLayoutOptions,a)),e.childElements&&f.each(e.childElements,function(e,n){t(n)})}e.templateStructure&&f.each(e.templateStructure.structures,function(e,n){t(n)}),e.pagesStructure&&f.each(e.pagesStructure.pages,function(e,n){f.each(n.structures,function(e,n){t(n)})}),e.masterPages&&f.each(e.masterPages,function(e,n){n.hierarchyInfo.structures&&f.each(n.hierarchyInfo.structures,function(e,n){t(n)})})})}(),function(){wa.addSiteInformationFix(1.1063,function(e){function t(e,n){var i=(e.id,e.elementProperties);ri[e.type]===ri.FormElement?(f.each(e.childElements,function(e,t){delete t.elementProperties.fillLayout,delete t.elementProperties.verticalLayout,delete t.elementProperties.horizontalLayout,ri[t.type]===ri.formFields?(t.elementProperties.horizontalAlign=ot.Left,t.elementProperties.sizeAndPosition.width=i.sizeAndPosition.width):t.elementProperties.sizeAndPosition=f.extend(t.elementProperties.sizeAndPosition,{top:20,left:0})}),e.elementProperties.horizontalAlign=ot.Right):e.childElements&&f.each(e.childElements,function(e,i){t(i,n)})}var n;if(e.templateStructure){var i=e.templateStructure.structures;f.each(i,function(e,n){t(n)})}e.pagesStructure&&f.each(e.pagesStructure.pages,function(e,i){n=i,f.each(i.structures,function(e,n){t(n)})}),e.masterPages&&f.each(e.masterPages,function(e,n){n.hierarchyInfo.structures&&f.each(n.hierarchyInfo.structures,function(e,n){t(n)})})})}(),function(){wa.addSiteInformationFix(1.1069,function(e){function t(e,n){e.id,e.elementProperties;if(ri[e.type]===ri.FormElement){var i,a=[];f.each(e.childElements,function(e,t){ri[t.type]===ri.formFields?(i=t,t.elementProperties.horizontalAlign=ot.Right):(t.elementProperties.sizeAndPosition.top=20,a.push(t))});var r=i.elementProperties.sizeAndPosition;e.childElements=a,f.each([oi.HasFormData,oi.HasArrangement,oi.DataList,oi.HasTemplates,oi.HasDataSource],function(t,n){f.each(n.properties,function(t){e.elementProperties[t]=i.elementProperties[t]})}),e.elementProperties.sizeAndPosition.width=r.width,e.elementProperties.horizontalAlign=ot.Left}else e.childElements&&f.each(e.childElements,function(e,i){t(i,n)})}var n;if(e.templateStructure){var i=e.templateStructure.structures;f.each(i,function(e,n){t(n)})}e.pagesStructure&&f.each(e.pagesStructure.pages,function(e,i){n=i,f.each(i.structures,function(e,n){t(n)})}),e.masterPages&&f.each(e.masterPages,function(e,n){n.hierarchyInfo.structures&&f.each(n.hierarchyInfo.structures,function(e,n){t(n)})})})}(),function(){wa.addSiteInformationFix(1.1077,function(e){function t(e,n){e.id,e.elementProperties;if(ri[e.type].hasFeature(oi.HasText)){var i=e.elementProperties.lineHeight,a=e.elementProperties.fontSize;switch(i.unit){case 2:i.percentages=i.unitValue?i.unitValue:120;break;case 1:i.percentages=a&&i.unitValue?Math.floor(i.unitValue/a*100):120;break;case Qe.Pixels:i.percentages=a&&i.pixels?Math.floor(i.pixels/a*100):120;break;case Qe.Normal:i.percentages=120;break;case Qe.Inherit:i.percentages=120}delete i.pixels,delete i.unitValue,i.percentages||(i.percentages=120),i.unit=Qe.Percentages}else e.childElements&&f.each(e.childElements,function(e,i){t(i,n)})}var n;if(e.templateStructure){var i=e.templateStructure.structures;f.each(i,function(e,n){t(n)})}e.pagesStructure&&f.each(e.pagesStructure.pages,function(e,i){n=i,f.each(i.structures,function(e,n){t(n)})}),e.masterPages&&f.each(e.masterPages,function(e,n){n.hierarchyInfo.structures&&f.each(n.hierarchyInfo.structures,function(e,n){t(n)})})})}(),function(){var e=1.2012;wa.addSiteInformationFix(e,function(e){function t(e){var t=va.getStaticPagesData(),n=f.count(t);e.type=ri.PagesMenu.name,e.elementProperties.name=e.elementProperties.name.replace("Menu",ri.PagesMenu.title);var i=n;e.elementProperties.dataLayout.name=e.elementProperties.dataLayout.name+"Menu";var a=oi.HasMoreButton.defaultProperties&&oi.HasMoreButton.defaultProperties.dataLayoutOptions?oi.HasMoreButton.defaultProperties.dataLayoutOptions():void 0;delete e.elementProperties.dataInfo,a&&(a.maxItems=i,e.elementProperties.dataLayoutOptions=f.extendMissing(e.elementProperties.dataLayoutOptions,a))}function n(e){var a=e.elementProperties;ri[e.type]===ri.Menu&&a.dataInfo&&a.dataInfo&&a.dataInfo.currentData&&"MasterPages"===a.dataInfo.currentData.type&&i?t(e):ri[e.type]===ri.PagesMenu?delete a.dataInfo:e.childElements&&f.each(e.childElements,function(e,t){n(t)})}var i=!0;if(e.templateStructure){var a=e.templateStructure.structures;i=a[0].type!==ri.Menu.name,f.each(a,function(e,t){n(t)})}else e.pagesStructure&&f.each(e.pagesStructure.pages,function(e,t){f.each(t.structures,function(e,t){n(t)})}),e.masterPages&&f.each(e.masterPages,function(e,t){t.hierarchyInfo.structures&&f.each(t.hierarchyInfo.structures,function(e,t){n(t)})})})}(),function(){wa.addSiteInformationFix(1.209,function(e){e.masterPages&&f.each(e.masterPages,function(e,t){function n(e){var t=e.id;delete i[t],e.childElements&&f.each(e.childElements,function(e,t){n(t)})}if(t.hierarchyInfo.structures){var i=f.mapToDictionary(t.hierarchyInfo.structures,f.returnValue,f.defaultIdFunction);f.each(t.hierarchyInfo.structures,function(e,t){t.childElements&&f.each(t.childElements,function(e,t){n(t)})});var a=[];f.each(t.hierarchyInfo.structures,function(e,t){i[t.id]&&a.push(i[t.id])}),t.hierarchyInfo.structures=a}})})}(),function(){wa.addSiteInformationFix(1.1092,function(e){function t(e,n){e.id,e.elementProperties;ri[e.type]===ri.FormElement?e.elementProperties.targetEmail="":e.childElements&&f.each(e.childElements,function(e,i){t(i,n)})}var n;if(e.templateStructure){var i=e.templateStructure.structures;f.each(i,function(e,n){t(n)})}e.pagesStructure&&f.each(e.pagesStructure.pages,function(e,i){n=i,f.each(i.structures,function(e,n){t(n)})}),e.masterPages&&f.each(e.masterPages,function(e,n){n.hierarchyInfo.structures&&f.each(n.hierarchyInfo.structures,function(e,n){t(n)})})})}(),function(){wa.addSiteInformationFix(1.209,function(e){function t(e,n){e.id,e.elementProperties;if(ri[e.type]===ri.label){e.elementProperties.formattedText=e.elementProperties.text,e.type=ri.freeText.name,e.elementProperties.verticalAlignment=e.elementProperties.verticalAlign,delete e.elementProperties.text,delete e.elementProperties.verticalAlign;var i=e.elementProperties.formattedText;i=i?""+i:"";var a=i.replace(/\n/g,"<br />");"\n"==i.charAt(i.length-1)&&(a+="&nbsp;"),e.elementProperties.formattedText=i}else e.childElements&&f.each(e.childElements,function(e,i){t(i,n)})}var n;e.pagesStructure&&f.each(e.pagesStructure.pages,function(e,i){n=i,f.each(i.structures,function(e,n){t(n)})}),e.masterPages&&f.each(e.masterPages,function(e,n){n.hierarchyInfo.structures&&f.each(n.hierarchyInfo.structures,function(e,n){t(n)})})})}(),function(){wa.addSiteInformationFix(1.2004,function(e){function t(e,n){e.id,e.elementProperties;if(ri[e.type]===ri.label||ri[e.type]===ri.freeText){var i;ri[e.type]===ri.label&&(i=e.elementProperties.text),ri[e.type]===ri.freeText&&(i=e.elementProperties.formattedText),
i=i?""+i:"";var a=i.replace(/\n/g,"<br />");"\n"==i.charAt(i.length-1)&&(a+="&nbsp;"),ri[e.type]===ri.label&&(e.elementProperties.text=i),ri[e.type]===ri.freeText&&(e.elementProperties.formattedText=i)}else e.childElements&&f.each(e.childElements,function(e,i){t(i,n)})}var n;if(e.templateStructure){var i=e.templateStructure.structures;f.each(i,function(e,n){t(n)})}e.pagesStructure&&f.each(e.pagesStructure.pages,function(e,i){n=i,f.each(i.structures,function(e,n){t(n)})}),e.masterPages&&f.each(e.masterPages,function(e,n){n.hierarchyInfo.structures&&f.each(n.hierarchyInfo.structures,function(e,n){t(n)})})})}(),function(){wa.addSiteInformationFix(1.2013,function(e){function t(e,n){e.id,e.elementProperties;ri[e.type]===ri.PagesMenu?e.elementProperties.dropDownOptions=f.extend({trigger:"click",backgroundColor:"transparent",moreButtonText:"More",spacing:0,isFixedSize:!1,width:120,height:50,animation:"NoAnimation",animationSpeed:1e3,slideDirection:"up",flyDirection:{vertical:"top",horizontal:"right"},positioningAlignments:"Bottom",positionHorizontalDistance:0,positionVerticalDistance:0},e.elementProperties.dropDownOptions):e.childElements&&f.each(e.childElements,function(e,i){t(i,n)})}var n;if(e.templateStructure){var i=e.templateStructure.structures;f.each(i,function(e,n){t(n)})}e.pagesStructure&&f.each(e.pagesStructure.pages,function(e,i){n=i,f.each(i.structures,function(e,n){t(n)})}),e.masterPages&&f.each(e.masterPages,function(e,n){n.hierarchyInfo.structures&&f.each(n.hierarchyInfo.structures,function(e,n){t(n)})})})}(),function(){wa.addSiteInformationFix(1.2024,function(e){e.pagesStructure&&va.Events.PageInitialized.one(function(){de.disableOperationsRecording("PageManager.Events.PageInitialized.1.2024"),fa.removeStateAffecting(va.getCurrentPage()),fa.removeStateAffected(va.getCurrentPage()),ia.removeInstanceConnections(va.getCurrentPage()),de.enableOperationsRecording("PageManager.Events.PageInitialized.1.2024")})})}(),function(){wa.addSiteInformationFix(1.2028,function(e){function t(e){var n=e.elementProperties;ri[e.type];n.dataInfo&&Zi[n.dataLayout.name]&&Zi[n.dataLayout.name].isPages&&e.type!==ri.Gallery.name&&e.type!==ri.VideoGallery.name&&e.type!==ri.PostsList.name&&(e.type=ri.DataListElement.name),e.type===ri.PagesMenu.name&&n.dropDownOptions&&n.dropDownOptions.animation===wt.NoAnimation.name&&(n.dropDownOptions.animation=wt.Slide.name,n.dropDownOptions.animationSpeed=400,n.dropDownOptions.slideDirection="up"),e.childElements&&f.each(e.childElements,function(e,n){t(n)})}e.templateStructure&&f.each(e.templateStructure.structures,function(e,n){t(n)}),e.pagesStructure&&f.each(e.pagesStructure.pages,function(e,n){f.each(n.structures,function(e,n){t(n)})}),e.masterPages&&f.each(e.masterPages,function(e,n){n.hierarchyInfo.structures&&f.each(n.hierarchyInfo.structures,function(e,n){t(n)})})})}(),function(){wa.addSiteInformationFix(1.2043,function(e){function t(e){e&&f.each(e,function(e,t){if(t.dataInfo)for(var n in t.dataInfo){var a=t.dataInfo[n];f.each(a,function(e,t){i(t.stateValue)})}})}function n(e){var t=e.elementProperties,a=ri[e.type];if(a.hasFeature(oi.DataList)){var r=t.dataInfo;i(r)}e.childElements&&f.each(e.childElements,function(e,t){n(t)})}function i(e){e&&e.currentData&&(e.currentData.items?f.each(e.currentData.items,function(e,t){f.each(t,function(e,n){n&&n.imagePath&&(t[e]={imageUrl:t[e]})})}):f.each(e.currentData,function(e,t){f.each(t,function(e,n){n&&n.imagePath&&(t[e]={imageUrl:t[e]})})}))}var a;if(e.isCoordinator){var a=e.customStatesProperties;t(a)}if(e.templateStructure){var a=e.templateStructure.customStatesProperties;f.each(e.templateStructure.structures,function(e,t){n(t)}),t(a)}e.pagesStructure&&f.each(e.pagesStructure.pages,function(e,i){var a=i.customStatesProperties;f.each(i.structures,function(e,t){n(t)}),t(a)}),e.masterPages&&f.each(e.masterPages,function(e,i){if(i.hierarchyInfo.structures){var a=i.hierarchyInfo.customStatesProperties;f.each(i.hierarchyInfo.structures,function(e,t){n(t)}),t(a)}})})}(),function(){wa.addSiteInformationFix(1.2092,function(e){function t(e){var n=e.id,i=e.elementProperties,a=e.type;ri[a]&&(ri[a].hasFeature(oi.PageSection)&&i.childrenAnchor!==ot.Centered||ri[a].isType(ri.userBox)&&i.fillLayout&&i.fillLayout.fillHorizontal&&i.childrenAnchor!==ot.Centered)?sa.performOnInstancesInitialization([n],function(e){la.layoutUpdateBatch.performOperation(function(){var t=sa.getInstanceByID(e[0]),n=ca.rememberLayout(t.getChildInstances(),{includeDockedElements:!1,rememberLeft:!0,rememberTop:!1,rememberWidth:!1,rememberHeight:!1});t.setPropertyValue("childrenAnchor",ot.Centered),la.layoutUpdateBatch.performOperation(function(){n.restoreLayout()})})}):e.childElements&&f.each(e.childElements,function(e,n){t(n)})}e.templateStructure&&f.each(e.templateStructure.structures,function(e,n){t(n)}),e.pagesStructure&&f.each(e.pagesStructure.pages,function(e,n){f.each(n.structures,function(e,n){t(n)})}),e.masterPages&&f.each(e.masterPages,function(e,n){n.hierarchyInfo.structures&&f.each(n.hierarchyInfo.structures,function(e,n){t(n)})})})}(),function(){wa.addSiteInformationFix(1.2036,function(e){function t(e){var n=e.elementProperties,i=ri[e.type];if(i.hasFeature(oi.DataList)){var a=n.dataLayout,r=n.dataInfo,o=n.dataLayoutOptions;Zi[a.name];a.name===Zi.PagesGrid.name&&r.currentData&&(o.elementsPerPage<o.cols&&(o.cols=o.elementsPerPage),f.count(r.currentData)<o.cols&&(o.cols=f.count(r.currentData),o.elementsPerPage=o.cols))}e.childElements&&f.each(e.childElements,function(e,n){t(n)})}e.templateStructure&&f.each(e.templateStructure.structures,function(e,n){t(n)}),e.pagesStructure&&f.each(e.pagesStructure.pages,function(e,n){f.each(n.structures,function(e,n){t(n)})}),e.masterPages&&f.each(e.masterPages,function(e,n){n.hierarchyInfo.structures&&f.each(n.hierarchyInfo.structures,function(e,n){t(n)})})})}(),function(){wa.addSiteInformationFix(1.2038,function(e){function t(e){var n=e.elementProperties,i=ri[e.type];if(i.hasFeature(oi.HasTemplates)){var a=n.fieldsTemplates;f.each(a,function(e,t){f.each(t,function(e,t){var n=qa.create(t.hierarchy).getStructureIds(),i=t.hierarchy.customStatesProperties;i&&f.each(i,function(e){n[e]||delete i[e]})})})}e.childElements&&f.each(e.childElements,function(e,n){t(n)})}e.templateStructure&&f.each(e.templateStructure.structures,function(e,n){t(n)}),e.pagesStructure&&f.each(e.pagesStructure.pages,function(e,n){f.each(n.structures,function(e,n){t(n)})}),e.masterPages&&f.each(e.masterPages,function(e,n){n.hierarchyInfo.structures&&f.each(n.hierarchyInfo.structures,function(e,n){t(n)})})})}(),function(){wa.addSiteInformationFix(16.24,function(e){function t(e,i){var a=(e.id,e.elementProperties,ri[e.type]);if(a&&a.hasFeature(oi.HasTemplates))e.elementProperties.fieldsTemplates=n(e.elementProperties.fieldsTemplates);else if(a&&a.hasFeature(oi.SkinElement)){var r=e.elementProperties.skinBinding;r&&r.hierarchy&&(r.hierarchy=ur.convertFieldsToTemplate(r.hierarchy),r.hierarchy=ur.convertTemplateToField(r.hierarchy,a.name))}else e.childElements&&f.each(e.childElements,function(e,n){t(n,i)})}function n(e){var t=ka.generateWebsiteId();return f.each(e,function(e,n){f.each(n,function(e,i){if(i.hierarchy){var a=i.hierarchy.structures[0].type;if(a!==ri.InputItem.name&&a!==ri.skinInputElement.name&&(t=ka.generateWebsiteId()),ri[a].hasFeature(oi.SkinElement)){var r=f.objectGet(i.hierarchy.structures[0],["elementProperties","skinBinding","hierarchy"]);r&&(r=ur.convertFieldsToTemplate(r),n[e].hierarchy=ur.convertTemplateToSkinTemplateWithFields(r,i.hierarchy.structures[0].type,t))}else n[e].hierarchy=ur.convertTemplateToSkinTemplateWithFields(i.hierarchy,void 0,t)}})}),e}var i;if(e.isCoordinator){var a=e.customStatesProperties;a&&f.each(a,function(e,t){t.fieldsTemplates&&f.each(t.fieldsTemplates,function(e,i){f.each(i,function(i){var a=t.fieldsTemplates[e][i].stateValue;t.fieldsTemplates[e][i].stateValue=n(a)})})})}if(e.templateStructure){var r=e.templateStructure.structures;f.each(r,function(e,n){t(n)});var a=e.templateStructure.customStatesProperties;a&&f.each(a,function(e,t){t.fieldsTemplates&&f.each(t.fieldsTemplates,function(e,i){f.each(i,function(i){var a=t.fieldsTemplates[e][i].stateValue;t.fieldsTemplates[e][i].stateValue=n(a)})})})}e.pagesStructure&&f.each(e.pagesStructure.pages,function(e,a){i=a,f.each(a.structures,function(e,n){t(n)});var r=a.customStatesProperties;r&&f.each(r,function(e,t){t.fieldsTemplates&&f.each(t.fieldsTemplates,function(e,i){f.each(i,function(i){var a=t.fieldsTemplates[e][i].stateValue;t.fieldsTemplates[e][i].stateValue=n(a)})})})}),e.masterPages&&f.each(e.masterPages,function(e,i){if(i.hierarchyInfo.structures){f.each(i.hierarchyInfo.structures,function(e,n){t(n)});var a=i.hierarchyInfo.customStatesProperties;f.each(a,function(e,t){t.fieldsTemplates&&f.each(t.fieldsTemplates,function(e,i){f.each(i,function(i){var a=t.fieldsTemplates[e][i].stateValue;t.fieldsTemplates[e][i].stateValue=n(a)})})})}})},1.2105),wa.addSiteInformationFix(1.2042,function(e){function t(e){e.id,e.elementProperties;e.type===ri.page.name&&(e.elementProperties.fixedBackground=!1)}var n;if(e.isCoordinator){var i=e.customStatesProperties;i&&f.each(i,function(e,t){t.fixedBackground&&f.each(t.fixedBackground,function(e,n){f.each(n,function(n){t.fixedBackground[e][n].stateValue=!1})})})}if(e.templateStructure){var a=e.templateStructure.structures;f.each(a,function(e,n){t(n)});var i=e.templateStructure.customStatesProperties;i&&f.each(i,function(e,t){t.fixedBackground&&f.each(t.fixedBackground,function(e,n){f.each(n,function(n){t.fixedBackground[e][n].stateValue=!1})})})}e.pagesStructure&&f.each(e.pagesStructure.pages,function(e,i){n=i,f.each(i.structures,function(e,n){t(n)});var a=i.customStatesProperties;a&&f.each(a,function(e,t){t.fixedBackground&&f.each(t.fixedBackground,function(e,n){f.each(n,function(n){t.fixedBackground[e][n].stateValue=!1})})})}),e.masterPages&&f.each(e.masterPages,function(e,n){if(n.pageProperties&&(n.pageProperties.fixedBackground=!1),n.mobilePageProperties&&(n.mobilePageProperties.fixedBackground=!1),n.hierarchyInfo.structures){f.each(n.hierarchyInfo.structures,function(e,n){t(n)});var i=n.hierarchyInfo.customStatesProperties;f.each(i,function(e,t){t.fixedBackground&&f.each(t.fixedBackground,function(e,n){f.each(n,function(n){t.fixedBackground[e][n].stateValue=!1})})})}})})}(),function(){wa.addSiteInformationFix(14.024,function(e){function t(e,n){var i=(e.id,e.elementProperties);if(ri[e.type]&&ri[e.type].hasFeature(oi.HasTemplates)){ri[e.type]!==ri.PostsList?i.itemFields&&!i.itemFields.alt&&f.each(e.elementProperties.fieldsTemplates,function(e,t){f.each(t,function(e,t){var n=t.hierarchy.structures[0].elementProperties.skinBinding;if(n&&n.type===ir.Inline){var a=n.hierarchy.structures[0].elementProperties.fieldsMap;a&&f.each(a,function(e,t){f.each(t,function(e){e+""==bi.Image+""&&(t[bi.Alt]={name:"alt",title:"Alt Tag",type:"alt"},i.itemFields.alt={name:"alt",title:"Alt Tag",type:"alt"})})})}})}):(i.itemFields&&i.itemFields.alt&&f.each(e.elementProperties.fieldsTemplates,function(e,t){f.each(t,function(e,t){var n=t.hierarchy.structures[0].elementProperties.skinBinding;if(n&&n.type===ir.Inline){var a=n.hierarchy.structures[0].elementProperties.fieldsMap;a&&f.each(a,function(e,t){f.each(t,function(e){e+""==bi.Image+""&&(delete t[bi.Alt],delete i.itemFields.alt)})})}})}),delete i.itemFields)}else e.childElements&&f.each(e.childElements,function(e,i){t(i,n)})}var n;if(e.templateStructure){var i=e.templateStructure.structures;f.each(i,function(e,n){t(n)})}e.pagesStructure&&f.each(e.pagesStructure.pages,function(e,i){n=i,f.each(i.structures,function(e,n){t(n)})}),e.masterPages&&f.each(e.masterPages,function(e,n){n.hierarchyInfo.structures&&f.each(n.hierarchyInfo.structures,function(e,n){t(n)})})})}(),function(){wa.addSiteInformationFix(1.2085,function(e){function t(e,i){e.id,e.elementProperties;ri[e.type]&&ri[e.type].hasFeature(oi.HasTemplates)?e.elementProperties.fieldsTemplates=n(e.elementProperties.fieldsTemplates):e.childElements&&f.each(e.childElements,function(e,n){t(n,i)})}function n(e){if("MenuButton"in e&&!("SkinNavigationButton"in e)){e.SkinNavigationButton={1418717701903:{id:"1418717701903",isDefault:!0,hierarchy:{id:1418719980168,structures:[{id:1418719980169,type:"SkinNavigationButton",elementProperties:{skinBinding:{type:"Inline",skinName:1418719980162,index:0,hierarchy:{structures:[{type:"skinHierarchyBox",id:"1418669758058",elementProperties:{tagName:"DIV",behaviours:null,isDisplayedInDesigner:!0,isLocked:!1,isAbsoluteVisible:!0,name:"Skin Element 2",baseName:null,connections:{},templateID:"template1418669758062",templateName:null,order:0,customStates:null,isElementWasEditedInMode:!1,attributes:null,metaProps:null,metaItemType:null,metaTitle:null,styleBindingId:1418719980162,styleBindingFields:{backgroundColor:{type:1,properties:{backgroundColor:{boundToProperty:!0,fields:{}}}},borderColor0:{type:1,properties:{borderColor:{boundToProperty:!1,fields:{left:!0,top:!0,bottom:!0,right:!0}}}},borderWidth0:{type:1,properties:{borderWidth:{boundToProperty:!1,fields:{left:!0,top:!0,bottom:!0,right:!0}}}},roundness:{type:1,properties:{roundness:{boundToProperty:!0,fields:{}}}},shadow:{type:1,properties:{shadow:{boundToProperty:!0,fields:{}}}},glow:{type:1,properties:{glow:{boundToProperty:!0,fields:{}}}},innerShadow:{type:1,properties:{innerShadow:{boundToProperty:!0,fields:{}}}},innerGlow:{type:1,properties:{innerGlow:{boundToProperty:!0,fields:{}}}}},isSupportsMobile:!1,isVisibleInMode:!0,isFixed:!1,topZIndex:0,elementOpacity:1,staticMargin:{horizontalMargin:0,verticalMargin:0},sizeAndPosition:{left:0,width:28,top:0,height:28},lastResizingSize:{width:28,height:28},glow:{spread:0,blur:0,color:"black"},innerGlow:{spread:0,blur:0,color:"black"},shadow:{top:0,left:0,spread:0,blur:0,color:"black"},innerShadow:{top:0,left:0,spread:0,blur:0,color:"black"},isEditableInExpress:!0,fieldsMap:{},display:"fixed",cellItem:null,cellHorizontalAlignment:"none",backgroundColor:"transparent",imageUrl:"",imageLayout:"stretchedToFill",imagePosition:{vertical:"center",horizontal:"center"},imageOpacity:1,backgroundOverlay:"transparent",verticalLayout:"normal",horizontalLayout:"normal",fillLayout:{fillVertical:!0,fillHorizontal:!0},margin:{top:0,left:0,bottom:0,right:0},isGrowable:{bottom:!1,right:!1},overflow:!1,rowsItems:null,startSelected:!1,openInNewTab:!1,openInTopWindow:!1,fitToContent:!1,verticalAlign:"center",horizontalAlign:"center",verticalContentAlign:"middle",horizontalContentAlign:"center",padding:{top:0,left:0,bottom:0,right:0},isVisible:!0,borderWidth:{top:0,left:0,bottom:0,right:0},roundness:{topLeft:0,bottomLeft:0,topRight:0,bottomRight:0},borderColor:{top:"Black",left:"Black",bottom:"Black",right:"Black"},borderStyle:{top:"solid",left:"solid",bottom:"solid",right:"solid"}},metaData:{position:{left:-50,top:0},size:{width:28,height:28}},childElements:[{type:"Icon",id:"1418669758061",elementProperties:{tagName:"DIV",behaviours:null,isDisplayedInDesigner:!0,isLocked:!1,isAbsoluteVisible:!0,name:"Icon 2",baseName:null,connections:{},templateID:"template1418669758062",templateName:null,order:1,customStates:null,isElementWasEditedInMode:!1,attributes:null,metaProps:null,metaItemType:null,metaTitle:null,styleBindingId:1418719980162,styleBindingFields:{iconColor1:{type:1,properties:{iconColor:{boundToProperty:!0,fields:{}}}}},isSupportsMobile:!1,isVisibleInMode:!0,isFixed:!1,topZIndex:0,elementOpacity:1,staticMargin:{horizontalMargin:0,verticalMargin:0},sizeAndPosition:{left:0,width:28,top:0,height:28},lastResizingSize:{width:28,height:28},glow:{spread:0,blur:0,color:"black"},innerGlow:{spread:0,blur:0,color:"black"},shadow:{top:0,left:0,spread:0,blur:0,color:"black"},innerShadow:{top:0,left:0,spread:0,blur:0,color:"black"},display:"fixed",cellItem:null,cellHorizontalAlignment:"none",backgroundColor:"transparent",verticalLayout:"normal",horizontalLayout:"normal",fillLayout:{fillVertical:!0,fillHorizontal:!0},margin:{top:0,left:0,bottom:0,right:0},padding:{top:0,left:0,bottom:0,right:0},startSelected:!1,openInNewTab:!1,openInTopWindow:!1,isVisible:!0,borderWidth:{top:0,left:0,bottom:0,right:0},roundness:{topLeft:0,bottomLeft:0,topRight:0,bottomRight:0},borderColor:{top:"Black",left:"Black",bottom:"Black",right:"Black"},borderStyle:{top:"solid",left:"solid",bottom:"solid",right:"solid"},rotationAngle:0,fitToContent:!1,verticalAlign:"center",horizontalAlign:"center",verticalContentAlign:"middle",horizontalContentAlign:"center",iconColor:{mainColor:2,variation:3,opacity:1,brightness:0},iconReference:{collectionName:"public-font-icons",iconName:"navigation2"},iconSize:"auto"},metaData:{position:{left:-50,top:0},size:{width:28,height:28}},isForBackground:!0,isForBorder:!0}],offset:{left:939,top:255},isForBackground:!0,hasBackgroundChild:!0,isForBorder:!0,hasBorderChilds:!0}],connections:{targetConnections:{},sourceConnections:{}},customStatesProperties:{},pageId:"1406762854386",version:1.2044,id:"1418669769376",relativePoint:{left:939,top:255},styleVersion:1418719980167,styleId:1418719980162,fieldsToData:{backgroundColor:{name:"backgroundColor",fieldType:"BackgroundColor",categoryId:"Colors",priority:0,title:"Background",options:{}},iconColor1:{name:"iconColor1",fieldType:"SolidColor",categoryId:"Colors",priority:1,title:"Icon Color",options:{}},borderColor0:{name:"borderColor0",fieldType:"SolidColor",categoryId:"Colors",priority:2,title:"Border",options:{}},borderWidth0:{name:"borderWidth0",fieldType:"Pixels",categoryId:"Border",priority:3,title:"Border Width",options:{fieldVisualizer:"Slider",visualizerOptions:{min:0,max:20}}},roundness:{name:"roundness",fieldType:"Roundness",categoryId:"Border",priority:4,title:"Roundness",options:{}},shadow:{name:"shadow",fieldType:"Shadow",categoryId:"Effects",priority:5,title:"Shadow",options:{}},glow:{name:"glow",fieldType:"Glow",categoryId:"Effects",priority:6,title:"Glow",options:{}},innerShadow:{name:"innerShadow",fieldType:"InnerShadow",categoryId:"Effects",priority:7,title:"Inner Shadow",options:{}},innerGlow:{name:"innerGlow",fieldType:"InnerGlow",categoryId:"Effects",priority:8,title:"Inner Glow",options:{}}},categoriesData:{Colors:{title:"Colors",priority:1,id:"Colors"},Border:{title:"Border",priority:3,id:"Border"},Effects:{title:"Effects",priority:4,id:"Effects"}},fieldsToValues:{},statesAnimations:{}}}}}],version:1.2044},detached:!1}};var t=e.SkinNavigationButton[1418717701903],n=f.objectGet(t.hierarchy.structures[0],["elementProperties","skinBinding","hierarchy"]);n&&(n=ur.convertFieldsToTemplate(n),t.hierarchy=ur.convertTemplateToSkinTemplateWithFields(n,t.hierarchy.structures[0].type))}return e}var i;if(e.isCoordinator){var a=e.customStatesProperties;a&&f.each(a,function(e,t){t.fieldsTemplates&&f.each(t.fieldsTemplates,function(e,i){f.each(i,function(i){var a=t.fieldsTemplates[e][i].stateValue;t.fieldsTemplates[e][i].stateValue=n(a)})})})}if(e.templateStructure){var r=e.templateStructure.structures;f.each(r,function(e,n){t(n)});var a=e.templateStructure.customStatesProperties;a&&f.each(a,function(e,t){t.fieldsTemplates&&f.each(t.fieldsTemplates,function(e,i){f.each(i,function(i){var a=t.fieldsTemplates[e][i].stateValue;t.fieldsTemplates[e][i].stateValue=n(a)})})})}e.pagesStructure&&f.each(e.pagesStructure.pages,function(e,a){i=a,f.each(a.structures,function(e,n){t(n)});var r=a.customStatesProperties;r&&f.each(r,function(e,t){t.fieldsTemplates&&f.each(t.fieldsTemplates,function(e,i){f.each(i,function(i){var a=t.fieldsTemplates[e][i].stateValue;t.fieldsTemplates[e][i].stateValue=n(a)})})})}),e.masterPages&&f.each(e.masterPages,function(e,i){if(i.hierarchyInfo.structures){f.each(i.hierarchyInfo.structures,function(e,n){t(n)});var a=i.hierarchyInfo.customStatesProperties;a&&f.each(a,function(e,t){t.fieldsTemplates&&f.each(t.fieldsTemplates,function(e,i){f.each(i,function(i){var a=t.fieldsTemplates[e][i].stateValue;t.fieldsTemplates[e][i].stateValue=n(a)})})})}})})}(),function(){wa.addSiteInformationFix(1.2058,function(e){function t(e,n){e.id,e.elementProperties;if(ri[e.type]&&ri[e.type]===ri.PagesMenu){var i=e.elementProperties.navigationButtonSettings;if(i&&i.navigationProperties&&i.navigationProperties.SlideNavigation){var a=i.navigationProperties.SlideNavigation;a.desktopDirection&&(a.direction=a.desktopDirection,delete a.desktopDirection),a.desktopWidth&&(a.width=a.desktopWidth,delete a.desktopWidth),a.mobileHeight&&(a.height=a.mobileHeight,delete a.mobileHeight),delete a.mobileWidth,delete a.mobileDirection}}else e.childElements&&f.each(e.childElements,function(e,i){t(i,n)})}function n(e){if(e&&e.navigationProperties&&e.navigationProperties.SlideNavigation){var t=e.navigationProperties.SlideNavigation;t.mobileDirection&&(t.direction=t.mobileDirection,delete t.mobileDirection),t.mobileWidth&&(t.width=t.mobileWidth,delete t.mobileWidth),t.mobileHeight&&(t.height=t.mobileHeight,delete t.mobileHeight),delete t.desktopWidth,delete t.desktopDirection}return e}var i;if(e.isCoordinator){var a=e.customStatesProperties;a&&f.each(a,function(e,t){t.navigationButtonSettings&&f.each(t.navigationButtonSettings,function(e,i){f.each(i,function(i){var a=t.navigationButtonSettings[e][i].stateValue;t.navigationButtonSettings[e][i].stateValue=n(a)})})})}if(e.templateStructure){var r=e.templateStructure.structures;f.each(r,function(e,n){t(n)});var a=e.templateStructure.customStatesProperties;a&&f.each(a,function(e,t){t.navigationButtonSettings&&f.each(t.navigationButtonSettings,function(e,i){f.each(i,function(i){var a=t.navigationButtonSettings[e][i].stateValue;t.navigationButtonSettings[e][i].stateValue=n(a)})})})}e.pagesStructure&&f.each(e.pagesStructure.pages,function(e,a){i=a,f.each(a.structures,function(e,n){t(n)});var r=a.customStatesProperties;r&&f.each(r,function(e,t){t.navigationButtonSettings&&f.each(t.navigationButtonSettings,function(e,i){f.each(i,function(i){var a=t.navigationButtonSettings[e][i].stateValue;t.navigationButtonSettings[e][i].stateValue=n(a)})})})}),e.masterPages&&f.each(e.masterPages,function(e,i){if(i.hierarchyInfo.structures){f.each(i.hierarchyInfo.structures,function(e,n){t(n)});var a=i.hierarchyInfo.customStatesProperties;a&&f.each(a,function(e,t){t.navigationButtonSettings&&f.each(t.navigationButtonSettings,function(e,i){f.each(i,function(i){var a=t.navigationButtonSettings[e][i].stateValue;t.navigationButtonSettings[e][i].stateValue=n(a)})})})}})})}(),function(){wa.addSiteInformationFix(1.2063,function(e){function t(e){e&&f.each(e,function(e,t){if(t.isFixed)for(var n in t.isFixed){var i=t.isFixed[n];f.each(i,function(e){t.isFixed[n][e].stateValue=!1})}})}var n;if(e.isCoordinator){var i=e.customStatesProperties;t(i)}if(e.templateStructure){var i=e.templateStructure.customStatesProperties;t(i)}e.pagesStructure&&f.each(e.pagesStructure.pages,function(e,i){n=i;var a=i.customStatesProperties;t(a)}),e.masterPages&&f.each(e.masterPages,function(e,n){if(n.hierarchyInfo.structures){var i=n.hierarchyInfo.customStatesProperties;t(i)}})})}(),function(){wa.addSiteInformationFix(1.208,function(e){function t(e,n){e.id,e.elementProperties;ri[e.type]&&ri[e.type].hasFeature(oi.HasTemplates)?e.type!==ri.PostsList.name&&e.type!==ri.TagCloud.name&&(delete e.metaData.dataItemSizeMobile,delete e.metaData.dataItemSizePc):e.childElements&&f.each(e.childElements,function(e,i){t(i,n)})}var n;if(e.templateStructure){var i=e.templateStructure.structures;f.each(i,function(e,n){t(n)})}e.pagesStructure&&f.each(e.pagesStructure.pages,function(e,i){n=i,f.each(i.structures,function(e,n){t(n)})}),e.masterPages&&f.each(e.masterPages,function(e,n){n.hierarchyInfo.structures&&f.each(n.hierarchyInfo.structures,function(e,n){t(n)})})})}(),function(){function e(e){var t=0;return"NoAnimation"!==e.animation&&(t=e.animationSpeed,t=50>t?0:200>=t?200:400>=t?400:800),{backgroundColor:e.backgroundColor,animationSpeed:t,verticalDistance:e.positionVerticalDistance,verticalTop:e.positionVerticalDistance,horizontalDistance:e.positionHorizontalDistance,horizontalLeft:e.positionHorizontalDistance,horizontalRight:e.positionHorizontalDistance,spacing:e.spacing,useSkinButton:!0}}wa.addSiteInformationFix(1.2087,function(t){function n(t){var i=t.elementProperties;if(t.type===ri.PagesMenu.name){if(i.dataLayout&&"NavigationButton"!==i.dataLayout.name){var a=i.dropDownOptions;if(a){i.moreButtonText=a.moreButtonText,i.showDropDownArrow=void 0!==a.showDropDownArrow?a.showDropDownArrow:!1;var r=e(a);i.dropDownNavigationSettings={navigation:"DropDownNavigation",navigationProperties:r},delete i.dropDownOptions}else if(i.dropDownNavigationSettings){var o=i.dropDownNavigationSettings;o.navigationProperties&&o.navigationProperties.DropDownNavigation&&void 0===o.navigationProperties.DropDownNavigation.useSkinButton&&(o.navigationProperties.DropDownNavigation.useSkinButton=!0)}}}else t.childElements&&f.each(t.childElements,function(e,t){n(t)})}function i(t){t&&f.each(t,function(t,n){if(n.dropDownOptions&&n.dropDownOptions[Ha.MobileStateName]){var i=n.dropDownOptions[Ha.MobileStateName].coordinator;if(i){var a=i.stateValue,r=e(a);f.objectSet(n,["dropDownNavigationSettings",Ha.MobileStateName,"coordinator","stateValue"],{navigation:"DropDownNavigation",navigationProperties:r}),f.objectSet(n,["moreButtonText",Ha.MobileStateName,"coordinator","stateValue"],a.moreButtonText),f.objectSet(n,["showDropDownArrow",Ha.MobileStateName,"coordinator","stateValue"],void 0!==a.showDropDownArrow?a.showDropDownArrow:!1)}}})}if(t.isCoordinator&&i(t.customStatesProperties),t.templateStructure){var a=t.templateStructure.structures;f.each(a,function(e,t){n(t)}),i(t.templateStructure.customStatesProperties)}t.pagesStructure&&f.each(t.pagesStructure.pages,function(e,t){f.each(t.structures,function(e,t){n(t)}),i(t.customStatesProperties)}),t.masterPages&&f.each(t.masterPages,function(e,t){t.hierarchyInfo.structures&&(f.each(t.hierarchyInfo.structures,function(e,t){n(t)}),i(t.hierarchyInfo.customStatesProperties))})})}(),function(){wa.addSiteInformationFix(1.2089,function(e){function t(e,n){e.id,e.elementProperties;if(!ri[e.type]||ri[e.type]!==ri.Gallery&&ri[e.type]!==ri.DataListElement&&ri[e.type]!==ri.VideoGallery)e.childElements&&f.each(e.childElements,function(e,i){t(i,n)});else{f.each(e.elementProperties.fieldsTemplates,function(e,t){f.each(t,function(e,t){var n=t.hierarchy?t.hierarchy.structures[0].elementProperties.skinBinding:void 0;if(n&&n.type===ir.Inline){var i=n.hierarchy.structures[0],a=i.elementProperties.fieldsMap;a&&f.each(a,function(e,t){e===i.id&&t&&!t[bi.Link]&&(t[bi.Link]={name:"link",type:"link",title:"Link"})})}})})}}var n;if(e.templateStructure){var i=e.templateStructure.structures;f.each(i,function(e,n){t(n)})}e.pagesStructure&&f.each(e.pagesStructure.pages,function(e,i){n=i,f.each(i.structures,function(e,n){t(n)})}),e.masterPages&&f.each(e.masterPages,function(e,n){n.hierarchyInfo.structures&&f.each(n.hierarchyInfo.structures,function(e,n){t(n)})})})}(),function(){wa.addSiteInformationFix(1.21,function(e){function t(e){var i=e.elementProperties;e.type===ri.HeaderElement.name?i.sectionName="Header":e.type===ri.FooterElement.name?i.sectionName="Footer":e.type===ri.SectionElement.name?n.push(e):e.childElements&&f.each(e.childElements,function(e,n){t(n)})}var n=[],i=!1;if(e.templateStructure){var a=e.templateStructure.structures;f.each(a,function(e,n){t(n)})}if(e.pagesStructure&&f.each(e.pagesStructure.pages,function(e,n){f.each(n.structures,function(e,n){t(n)})}),e.masterPages&&(f.each(e.masterPages,function(e,n){n.hierarchyInfo.structures&&f.each(n.hierarchyInfo.structures,function(e,n){t(n)})}),i=!0),n.length>0){n.sort(function(e,t){return e.elementProperties.order-t.elementProperties.order});for(var r=0;r<n.length;r++){var o=String.fromCharCode(65+r%26),s=n[r];s.elementProperties.sectionName=(i?"Site Section ":"Section ")+o}}})}(),function(){wa.addSiteInformationFix(1.2104,function(e){function t(e){var t=e.structures;f.each(t,function(e,t){n(t)}),a(e.customStatesProperties)}function n(e){var t=e.elementProperties;i(t),e.childElements&&f.each(e.childElements,function(e,t){n(t)})}function i(e){e&&f.each(e,function(n,i){if(e[n]=sa.fixThemeColor(n,i),"skinBinding"===n){var a=i;f.each(a.hierarchy.fieldsToValues,function(e,t){f.each(t,function(e,t){t.value&&t.value.themeBinding&&(t.value=sa.fixThemeColor(void 0,t.value))})}),a.hierarchy&&t(a.hierarchy)}if("fieldsTemplates"===n){var r=e.fieldsTemplates;f.each(r,function(e,n){f.each(n,function(e,n){n.hierarchy&&t(n.hierarchy)})})}})}function a(e){e&&f.each(e,function(e,n){f.each(n,function(e,n){f.each(n,function(n,i){f.each(i,function(n,i){if(i){if(i.stateValue=sa.fixThemeColor(e,i.stateValue),"skinBinding"===e){var a=i.stateValue;f.each(a.hierarchy.fieldsToValues,function(e,t){f.each(t,function(e,t){t.value&&t.value.themeBinding&&(t.value=sa.fixThemeColor(void 0,t.value))})}),t(a.hierarchy)}if("fieldsTemplates"===e){var r=i.stateValue;f.each(r,function(e,n){f.each(n,function(e,n){n.hierarchy&&t(n.hierarchy)})})}}})})})})}e.isCoordinator&&a(e.customStatesProperties),e.templateStructure&&t(e.templateStructure),e.pagesStructure&&f.each(e.pagesStructure.pages,function(e,t){f.each(t.structures,function(e,t){n(t)}),a(t.customStatesProperties)}),e.masterPages&&f.each(e.masterPages,function(e,t){t.hierarchyInfo.structures&&(f.each(t.hierarchyInfo.structures,function(e,t){n(t)}),a(t.hierarchyInfo.customStatesProperties)),i(t.pageProperties),i(t.mobilePageProperties)})})}(),function(){function e(e,r){if(t(r)){var o=n(e[r.binding],r.role);return r.binding===a.Color?i(o,r).toCSS():o}return r}function t(e){return e&&"object"==typeof e&&!!e.themeBinding}function n(e,t){return e.themeValues[t]}function i(e,t){var n=f.Color(e).toHSL();return void 0!==t.saturation?n=f.modifyCoordinate(n,Gt.Saturation,t.saturation):t.saturationDelta&&(n=f.adjustCoordinate(n,Gt.Saturation,t.saturationDelta)),void 0!==t.brightness?n=f.modifyCoordinate(n,Gt.Brightness,t.brightness):t.brightnessDelta&&(n=f.adjustCoordinate(n,Gt.Brightness,t.brightnessDelta)),void 0!==t.opacity?n=f.modifyCoordinate(n,Gt.Opacity,t.opacity):t.opacityDelta&&(n=f.adjustCoordinate(n,Gt.Opacity,t.opacityDelta)),n}var a={Font:"font",Color:"color"},r={backgroundOverlay:!0,backgroundColor:!0,fontColor:!0,textShadow:!0,borderColor:!0,lineColor:!0,glow:!0,innerGlow:!0,shadow:!0,innerShadow:!0,mapColor:!0,imageLoadingSettings:!0,iconColor:!0},o={color:{themeValues:{background1:"white",background2:"#C6E7FC",background3:"#31B6FD",text1:"black",text2:"#073E87",text3:"#4584D3",color1:"#A5D028",color2:"#5BD078",color3:"#F5C040",color4:"#05E0DB"}}};sa.fixThemeColor=function(t,n){if((!t||r[t])&&n&&"object"==typeof n&&!(n instanceof Array)){if(n.themeBinding===!0)return e(o,n);var i={};for(var a in n){var s=n[a];s&&"object"==typeof s&&s.themeBinding===!0?i[a]=e(o,s):i[a]=s}return i}return n}}(),function(){wa.addSiteInformationFix(1.2094,function(e){function t(e){e&&f.each(e,function(e,t){n[e]&&f.each(t,function(e,t){f.each(t,function(t,n){f.each(n,function(t,n){n&&"isVisibleInMode"===e&&(n.stateValue=!1)})})})})}var n={};if(e.isCoordinator&&t(e.customStatesProperties),e.templateStructure){e.templateStructure.structures;t(e.templateStructure.customStatesProperties)}e.pagesStructure&&f.each(e.pagesStructure.pages,function(e,n){t(n.customStatesProperties)}),e.masterPages&&f.each(e.masterPages,function(e,i){i.hierarchyInfo.structures&&(f.each(i.hierarchyInfo.structures,function(e,t){if(!ri[t.type].hasFeature(oi.PageSection)&&ri[t.type]!==ri.PageContentElement){var i=t.id;n[i]=!0}}),t(i.hierarchyInfo.customStatesProperties))})})}(),function(){var e=/-/g,t="ExternalApp";wa.addSiteInformationFix(1.2098,function(n){function i(n){var a=n.type;if(a&&0===a.indexOf(t)){var r=a.replace(e,"_");if(r!==a){var o=a.substr(t.length),s=r.substr(t.length);n.type=r;var l=n.elementProperties,c=f.quickExtend({},l);f.eachEntry(l,function(e,t){if(0===e.indexOf(o)){delete c[e];var n=s+e.substr(o.length);c[n]=t}}),n.elementProperties=c}}else n.childElements&&f.each(n.childElements,function(e,t){i(t)});
}if(n.templateStructure){var a=n.templateStructure.structures;f.each(a,function(e,t){i(t)})}n.pagesStructure&&f.each(n.pagesStructure.pages,function(e,t){f.each(t.structures,function(e,t){i(t)})}),n.masterPages&&f.each(n.masterPages,function(e,t){t.hierarchyInfo.structures&&f.each(t.hierarchyInfo.structures,function(e,t){i(t)})})},-11)}(),function(){wa.addSiteInformationFix(1.2113,function(e){function t(e){var u=e.type,d=ri[e.type];d&&d.hasFeature(oi.PageSection)&&(e.elementProperties.topZIndex=0),d&&d.hasFeature(oi.HasTemplates)?n(e.elementProperties.fieldsTemplates):"facebookLike"===u?i(e):"facebookComments"===u?a(e):"facebookActivity"===u?r(e):"facebookLikeBox"===u?o(e):"facebookFacePile"===u?s(e):"facebookSubscribe"===u?l(e):u!=="ExternalApp"+"{0}{1}".format("FacebookLikeboxApp",1)&&"ExternalAppfacebook_likebox_app1"!==u||c(e),e.childElements&&f.eachItem(e.childElements,function(e,n){t(n)})}function n(e){f.each(e,function(e,n){f.each(n,function(e,n){if(n.hierarchy){var i=f.objectGet(n.hierarchy.structures[0],["elementProperties","skinBinding","hierarchy"]);t(i?i.structures[0]:n.hierarchy.structures[0])}})})}function i(e){var t=e.elementProperties,n="{0}{1}".format("FacebookLikeApp",1);e.type="ExternalApp"+n;var i=t.likeUrl;i&&(t[n+"useCustomUrl"]=!0),t.facebookFaces===!0&&(t[n+"showFaces"]=!0),t[n+"layout"]=t.facebookButtonLayout,t[n+"url"]=i}function a(e){var t=e.elementProperties,n="{0}{1}".format("FacebookCommentsApp",1);e.type="ExternalApp"+n,t[n+"postLimit"]=t.numOfPosts}function r(e){var t=e.elementProperties,n="{0}{1}".format("FacebookActivityApp",1);e.type="ExternalApp"+n;var i=t.facebookActivityDomain;i&&(t[n+"useCustomUrl"]=!0),t[n+"url"]=i}function o(e){var t=e.elementProperties,n="{0}{1}".format("FacebookPagePluginApp",1);e.type="ExternalApp"+n;var i=t.facebookPageUrl;t[n+"showFaces"]=t.facebookFaces,t[n+"url"]=i,t[n+"showPosts"]=t.facebookStream}function s(e){var t=e.elementProperties,n="{0}{1}".format("FacebookPagePluginApp",1);e.type="ExternalApp"+n,t[n+"showFaces"]=!0,t[n+"url"]=t.facebookPageUrl,t[n+"showPosts"]=!1}function l(e){var t=e.elementProperties,n="{0}{1}".format("FacebookFollowApp",1);e.type="ExternalApp"+n,t[n+"showFaces"]=!0,t[n+"url"]=t.facebookPageUrl,t[n+"layout"]=t.facebookButtonLayout}function c(e){var t=e.elementProperties,n=e.type.substr(11),i="{0}{1}".format("FacebookPagePluginApp",1);e.type="ExternalApp"+i,t[i+"showFaces"]=t[n+"showFaces"],t[i+"url"]=t[n+"url"],t[i+"showPosts"]=t[n+"showPosts"]}if(e.isCoordinator){var u=e.customStatesProperties;u&&f.each(u,function(e,t){t.fieldsTemplates&&f.each(t.fieldsTemplates,function(e,i){f.each(i,function(i){var a=t.fieldsTemplates[e][i].stateValue;n(a)})})})}if(e.templateStructure){var d=e.templateStructure.structures;f.each(d,function(e,n){t(n)});var u=e.templateStructure.customStatesProperties;u&&f.each(u,function(e,t){t.fieldsTemplates&&f.each(t.fieldsTemplates,function(e,i){f.each(i,function(i){var a=t.fieldsTemplates[e][i].stateValue;n(a)})})})}e.pagesStructure&&f.eachItem(e.pagesStructure.pages,function(e,i){f.eachItem(i.structures,function(e,n){t(n)});var a=i.customStatesProperties;a&&f.each(a,function(e,t){t.fieldsTemplates&&f.each(t.fieldsTemplates,function(e,i){f.each(i,function(i){var a=t.fieldsTemplates[e][i].stateValue;n(a)})})})}),e.masterPages&&f.eachItem(e.masterPages,function(e,i){i.hierarchyInfo.structures&&f.eachItem(i.hierarchyInfo.structures,function(e,n){t(n)});var a=i.hierarchyInfo.customStatesProperties;a&&f.each(a,function(e,t){t.fieldsTemplates&&f.each(t.fieldsTemplates,function(e,i){f.each(i,function(i){var a=t.fieldsTemplates[e][i].stateValue;n(a)})})})})},-10)}(),function(){wa.addSiteInformationFix(1.2107,function(e){function t(e){var i=ri[e.type];i&&i.hasFeature(oi.HasTemplates)?n(e.elementProperties.fieldsTemplates):"youtube"===e.type?(e.elementProperties.videoType=Ze.Youtube,e.type=ri.VideoPlayer.name):e.childElements&&f.each(e.childElements,function(e,n){t(n)})}function n(e){f.each(e,function(e,n){f.each(n,function(e,n){if(n.hierarchy){var i=f.objectGet(n.hierarchy.structures[0],["elementProperties","skinBinding","hierarchy"]);t(i?i.structures[0]:n.hierarchy.structures[0])}})})}var i;if(e.isCoordinator){var a=e.customStatesProperties;a&&f.each(a,function(e,t){t.fieldsTemplates&&f.each(t.fieldsTemplates,function(e,i){f.each(i,function(i){var a=t.fieldsTemplates[e][i].stateValue;n(a)})})})}if(e.templateStructure){var r=e.templateStructure.structures;f.each(r,function(e,n){t(n)});var a=e.templateStructure.customStatesProperties;a&&f.each(a,function(e,t){t.fieldsTemplates&&f.each(t.fieldsTemplates,function(e,i){f.each(i,function(i){var a=t.fieldsTemplates[e][i].stateValue;n(a)})})})}e.pagesStructure&&f.each(e.pagesStructure.pages,function(e,a){i=a,f.each(a.structures,function(e,n){t(n)});var r=a.customStatesProperties;r&&f.each(r,function(e,t){t.fieldsTemplates&&f.each(t.fieldsTemplates,function(e,i){f.each(i,function(i){var a=t.fieldsTemplates[e][i].stateValue;n(a)})})})}),e.masterPages&&f.each(e.masterPages,function(e,i){if(i.hierarchyInfo.structures){f.each(i.hierarchyInfo.structures,function(e,n){t(n)});var a=i.hierarchyInfo.customStatesProperties;a&&f.each(a,function(e,t){t.fieldsTemplates&&f.each(t.fieldsTemplates,function(e,i){f.each(i,function(i){var a=t.fieldsTemplates[e][i].stateValue;n(a)})})})}})},-9)}(),function(){wa.addSiteInformationFix(1.2107,function(e){function t(e){var i=e.elementProperties,a=ri[e.type];if(a.hasFeature(oi.DataList)){var r=i.dataInfo,o=i.itemFields;n(r,o)}e.childElements&&f.eachItem(e.childElements,function(e,n){t(n)})}function n(e,t){e&&e.currentData&&(e.currentData.items?f.eachEntry(e.currentData.items,function(e,n){f.eachEntry(n,function(e,i){t[e]&&t[e].type===mi.video.name&&i&&!i.videoId&&(n[e]={videoId:i,videoType:Ze.Youtube})})}):f.eachEntry(e.currentData,function(e,n){f.eachEntry(n,function(e,i){t[e]&&t[e].type===mi.video.name&&i&&!i.videoId&&(n[e]={videoId:i,videoType:Ze.Youtube})})}))}if(e.templateStructure){e.templateStructure.customStatesProperties;f.each(e.templateStructure.structures,function(e,n){t(n)})}e.pagesStructure&&f.each(e.pagesStructure.pages,function(e,n){n.customStatesProperties;f.each(n.structures,function(e,n){t(n)})}),e.masterPages&&f.each(e.masterPages,function(e,n){if(n.hierarchyInfo.structures){n.hierarchyInfo.customStatesProperties;f.each(n.hierarchyInfo.structures,function(e,n){t(n)})}})})}(),function(){wa.addSiteInformationFix(1.2118,function(e){function t(e){var i=(e.type,ri[e.type]);i&&i.hasFeature(oi.DataList)&&!i.isType(ri.Menu)&&(e.elementProperties.overflow=!0,n(e.elementProperties.fieldsTemplates)),e.childElements&&f.eachItem(e.childElements,function(e,n){t(n)})}function n(e){f.each(e,function(e,t){f.each(t,function(e,t){t.hierarchy&&(t.hierarchy.structures[0].elementProperties.overflow=!0)})})}if(!(e.StructureVersion<=ka.BaseVersionToConvertOverFlowHidden)){if(e.templateStructure){var i=e.templateStructure.structures;f.each(i,function(e,n){t(n)})}e.pagesStructure&&f.eachItem(e.pagesStructure.pages,function(e,n){f.eachItem(n.structures,function(e,n){t(n)})}),e.masterPages&&f.eachItem(e.masterPages,function(e,n){n.hierarchyInfo.structures&&f.eachItem(n.hierarchyInfo.structures,function(e,n){t(n)})})}})}(),function(){wa.addSiteInformationFix(14.001,function(e){function t(e){e&&f.each(e,function(e,t){n(t.navigationButtonSettings,r),n(t.dropDownNavigationSettings,a)})}function n(e,t){e&&f.each(e,function(e,n){f.each(n,function(e,n){n.stateValue=t(n.stateValue)})})}function i(e,t){var n=e.elementProperties,o=e.type;"PagesMenu"===o&&n.navigationButtonSettings&&(n.navigationButtonSettings=r(n.navigationButtonSettings)),ri[o]&&ri[o].hasFeature(oi.HasMoreButton)&&n.dropDownNavigationSettings&&(n.dropDownNavigationSettings=a(n.dropDownNavigationSettings)),e.childElements&&f.each(e.childElements,function(e,n){i(n,t)})}function a(e){e=o(e,{width:150,spacing:20,mobileHeight:400,mobileDirection:"left",mobileWidth:250,animationSpeed:400,useHierarchy:!0,hierarchyOpened:!1,backgroundColor:{mainColor:1,opacity:1,brightness:0},fontColor:{mainColor:3,opacity:1,brightness:0},fontSize:15,borderRadius:0,borderWidth:0,borderColor:{mainColor:1,opacity:1,brightness:0},orientation:"center",horizontalPosition:gt.Center,horizontalLeft:0,horizontalRight:0,verticalDistance:0,horizontalDistance:0,verticalTop:0,innerDistance:0,font:{themeFont:"heading1"},useSkinButton:!1,showDropDownArrow:!0});var t=e.navigationProperties;return t&&t.useSkinButton&&(e.navigation="SkinDropDownNavigation"),e}function r(e){return o(e,{direction:"left",width:250,height:400,animationSpeed:400,hierarchyOpened:!1,useHierarchy:!0,pushContent:!1,backgroundColor:{mainColor:1,opacity:1,brightness:0},fontColor:{mainColor:3,opacity:1,brightness:0},fontSize:16,font:{themeFont:"heading1"}})}function o(e,t){var n=e.navigation,i=e.navigationProperties&&e.navigationProperties[n];return i||(i=e.navigationProperties),i=f.quickExtend({},t,i),{navigation:n,navigationProperties:i}}if(e.isCoordinator&&t(e.customStatesProperties),e.templateStructure){var s=e.templateStructure.structures;f.each(s,function(e,t){i(t)}),t(e.templateStructure.customStatesProperties)}e.pagesStructure&&f.each(e.pagesStructure.pages,function(e,n){f.each(n.structures,function(e,t){i(t)}),t(n.customStatesProperties)}),e.masterPages&&f.each(e.masterPages,function(e,n){n.hierarchyInfo.structures&&(f.each(n.hierarchyInfo.structures,function(e,t){i(t)}),t(n.hierarchyInfo.customStatesProperties))})})}(),function(){wa.addSiteInformationFix(1.212,function(e){function t(e){var n=(e.type,e.elementProperties),i=ri[e.type];if(i&&i.isType(ri.line)){var a=n.sizeAndPosition,r=n.lineWidth;a.width=a.width-2*r,a.height=a.height-2*r}e.childElements&&f.eachItem(e.childElements,function(e,n){t(n)})}if(!(e.StructureVersion>ka.BaseVersionToConvertOverFlowHidden)){if(e.templateStructure){var n=e.templateStructure.structures;f.each(n,function(e,n){t(n)})}e.pagesStructure&&f.eachItem(e.pagesStructure.pages,function(e,n){f.eachItem(n.structures,function(e,n){t(n)})}),e.masterPages&&f.eachItem(e.masterPages,function(e,n){n.hierarchyInfo.structures&&f.eachItem(n.hierarchyInfo.structures,function(e,n){t(n)})})}})}(),function(){wa.addSiteInformationFix(13.007,function(e){function t(e){var a=e.elementProperties,r=ri[e.type];if(r.hasFeature(oi.DataList)){var o=a.dataInfo,s=a.itemFields;n(o,s)}else if(r.isType(ri.VideoPlayer)){var l=a.videoId;a.videoId=i(l)}e.childElements&&f.eachItem(e.childElements,function(e,n){t(n)})}function n(e,t){e&&e.currentData&&(e.currentData.items?f.eachEntry(e.currentData.items,function(e,n){f.eachEntry(n,function(e,a){t[e]&&t[e].type===mi.video.name&&a&&a.videoId&&(n[e].videoId=i(a.videoId))})}):f.eachEntry(e.currentData,function(e,n){f.eachEntry(n,function(e,a){t[e]&&t[e].type===mi.video.name&&a&&a.videoId&&(n[e].videoId=i(a.videoId))})}))}function i(e){for(var t=["?","&","#","+",",","%"],n=0,i=t.length;i>n;++n)-1!=e.indexOf(t[n])&&(e=e.substring(0,e.indexOf(t[n])));return e}if(e.templateStructure){e.templateStructure.customStatesProperties;f.each(e.templateStructure.structures,function(e,n){t(n)})}e.pagesStructure&&f.each(e.pagesStructure.pages,function(e,n){n.customStatesProperties;f.each(n.structures,function(e,n){t(n)})}),e.masterPages&&f.each(e.masterPages,function(e,n){if(n.hierarchyInfo.structures){n.hierarchyInfo.customStatesProperties;f.each(n.hierarchyInfo.structures,function(e,n){t(n)})}})})}(),function(){wa.addSiteInformationFix(14.003,function(e){e.isCoordinator&&pa.UrlChangingOperation.executeOnBatchStart(function(){var e,t=Cr.getListByName("LocalBlog"),n=va.getDynamicPagesCount();if(void 0===t&&n>0)e=va.getDynamicPagesData(),f.eachEntry(e,function(e){va.removePages(e)});else if(void 0!==t){var i=t.getDynamicPageId();va.updatePageFieldsData(i,{title:"Post Page",urlAlias:"post-page"}),n>1&&(e=va.getDynamicPagesData(),f.eachEntry(e,function(e){e!=i&&va.removePages(e)}))}})})}(),function(){wa.addSiteInformationFix(14.019,function(e){function t(e){var a=(e.type,ri[e.type]);if(a&&(a.isType(ri.Gallery)||a.isType(ri.VideoGallery))){var r=[mi.title,mi.description,mi.link];a.isType(ri.Gallery)?r.unshift(mi.image):r.unshift(mi.video);var o=e.elementProperties,s=o.itemFields,l=f.objectGet(i,[e.id,"fieldsTemplates",Ha.MobileStateName,"coordinator","stateValue"]);if(a.isType(ri.Gallery)){var c=!1;if(f.eachEntry(o.itemFields,function(e,t){return"image"===t.type?(c=!0,!1):void 0}),!c)return e.type=ri.DataListElement.name,f.eachItem([o.fieldsTemplates,l],function(e,t){t&&(t.DataListItemTemplate=t.ImageBox,delete t.ImageBox,f.eachEntry(t.DataListItemTemplate,function(e,t){t.hierarchy.structures[0].type="skinDataItem"}))}),void delete s.alt}if(e.mapBetweenFields={},f.eachEntry(e.elementProperties.fieldsTemplates,function(t,i){f.eachEntry(i,function(t,i){var a=i.hierarchy.structures[0].elementProperties.skinBinding.hierarchy.structures[0],s=a.elementProperties.fieldsMap;f.eachItem(r,function(t,i){n(i,s,o,e)});var l=!1;f.eachEntry(s,function(e,t){f.eachEntry(t,function(e,t){return""+t.name=="link"?(l=!0,!1):void 0})}),l||f.objectSet(s,[a.id,bi.Link],{name:"link",title:"Link",type:"link",isDefaultField:!0})})}),a.isType(ri.Gallery)){var u=s.alt;delete s.alt,u&&(s.alt=u)}}e.childElements&&f.eachItem(e.childElements,function(e,n){t(n)})}function n(e,t,n,i){var a=e.name;if(n.itemFields[a])return void(n.itemFields[a].isDefaultField=!0);var r;if(f.each(n.itemFields,function(e,t){return t.type===a?(r=t,!1):void 0}),r){var o=r.name;i.mapBetweenFields[o]=a,delete n.itemFields[o],n.itemFields[a]=r,r.name=a,r.isDefaultField=!0,f.eachEntry(t,function(e,t){f.eachEntry(t,function(e,t){""+t.name==""+o&&(t.name=a)})}),f.eachEntry(n.dataInfo.currentData,function(e,t){var n=t[o];t[a]=n,delete t[o]})}else n.itemFields[a]={name:e.name,type:e.type,title:e.title,isDefaultField:!0}}var i;if(e.templateStructure){var a=e.templateStructure.structures;i=e.templateStructure.customStatesProperties,f.each(a,function(e,n){t(n)})}e.pagesStructure&&f.eachItem(e.pagesStructure.pages,function(e,n){i=n.customStatesProperties,f.eachItem(n.structures,function(e,n){t(n)})}),e.masterPages&&f.eachItem(e.masterPages,function(e,n){n.hierarchyInfo.structures&&(i=n.hierarchyInfo.customStatesProperties,f.eachItem(n.hierarchyInfo.structures,function(e,n){t(n)}))})})}(),function(){wa.addSiteInformationFix(14.018,function(e){function t(e){e&&f.each(e,function(e,t){n(t.navigationButtonSettings,a)})}function n(e,t){e&&f.each(e,function(e,n){f.each(n,function(e,n){n.stateValue=t(n.stateValue)})})}function i(e,t){var n=e.elementProperties,r=e.type;"PagesMenu"===r&&n.navigationButtonSettings&&(n.navigationButtonSettings=a(n.navigationButtonSettings)),e.childElements&&f.each(e.childElements,function(e,n){i(n,t)})}function a(e){var t=e.navigationProperties;if(t){var n=e.navigation;"SlideNavigation"===n?t.spacing=10:"SlideNavigation2"===n&&(t.spacing=20)}return e}if(e.isCoordinator&&t(e.customStatesProperties),e.templateStructure){var r=e.templateStructure.structures;f.each(r,function(e,t){i(t)}),t(e.templateStructure.customStatesProperties)}e.pagesStructure&&f.each(e.pagesStructure.pages,function(e,n){f.each(n.structures,function(e,t){i(t)}),t(n.customStatesProperties)}),e.masterPages&&f.each(e.masterPages,function(e,n){n.hierarchyInfo.structures&&(f.each(n.hierarchyInfo.structures,function(e,t){i(t)}),t(n.hierarchyInfo.customStatesProperties))})})}(),function(){wa.addSiteInformationFix(14.029,function(e){function t(e){var a=(e.type,ri[e.type]);e.type===ri.DataListElement&&(e.type=ri.DataListElement.name);var r=f.objectGet(i,[e.id,"fieldsTemplates",Ha.MobileStateName,"coordinator","stateValue"]);if(a.isType(ri.DataListElement))return void(r&&r.ImageBox&&(r.DataListItemTemplate=r.ImageBox,delete r.ImageBox,f.eachEntry(r.DataListItemTemplate,function(e,t){t.hierarchy.structures[0].type="skinDataItem"})));if(a&&(a.isType(ri.Gallery)||a.isType(ri.VideoGallery))){var o=[mi.title,mi.description,mi.link];a.isType(ri.Gallery)?o.unshift(mi.image):o.unshift(mi.video);var s=e.elementProperties;s.itemFields;r&&f.eachEntry(r,function(t,i){f.eachEntry(i,function(t,i){var a=i.hierarchy.structures[0].elementProperties.skinBinding.hierarchy.structures[0],r=a.elementProperties.fieldsMap;f.eachItem(o,function(t,i){n(i,r,s,e)});var l=!1;f.eachEntry(r,function(e,t){f.eachEntry(t,function(e,t){return""+t.name=="link"?(l=!0,!1):void 0})}),l||f.objectSet(r,[a.id,bi.Link],{name:"link",title:"Link",type:"link",isDefaultField:!0})})})}e.childElements&&f.eachItem(e.childElements,function(e,n){t(n)})}function n(e,t,n,i){var a=e.name;if(i.mapBetweenFields)f.eachEntry(t,function(e,t){f.eachEntry(t,function(e,t){i.mapBetweenFields[t.name]===a&&(t.name=a)})});else{var r,o=!1;if(f.eachEntry(t,function(e,t){f.eachEntry(t,function(e,t){""+t.type===a&&""+t.name!==a&&(r=t),""+t.name===a&&(o=!0)})}),o)return;if(r){var s=r.name;f.eachEntry(t,function(e,t){f.eachEntry(t,function(e,t){""+t.name==""+s&&(t.name=a)})})}}}var i;if(e.templateStructure){var a=e.templateStructure.structures;i=e.templateStructure.customStatesProperties,f.each(a,function(e,n){t(n)})}e.pagesStructure&&f.eachItem(e.pagesStructure.pages,function(e,n){i=n.customStatesProperties,f.eachItem(n.structures,function(e,n){t(n)})}),e.masterPages&&f.eachItem(e.masterPages,function(e,n){n.hierarchyInfo.structures&&(i=n.hierarchyInfo.customStatesProperties,f.eachItem(n.hierarchyInfo.structures,function(e,n){t(n)}))})})}(),function(){wa.addSiteInformationFix(14.037,function(e){function t(e){f.eachItem(r,function(t,n){var i=f.objectGet(e,[n,"usePagesLayout"]);i&&f.eachEntry(i,function(e,t){f.eachEntry(t,function(e,t){t.stateValue===!1&&(t.stateValue=!0)})})})}function n(e){var t=e.type;"PostsList"===t?i(e):e.childElements&&f.eachItem(e.childElements,function(e,t){n(t)})}function i(e){var t=e.elementProperties,n=t.primaryPostsList;n&&(a(t),r.push(e.id))}function a(e){var t=e.usePagesLayout;t===!1&&(e.usePagesLayout=!0)}var r=[];if(e.templateStructure){var o=e.templateStructure.structures;f.each(o,function(e,t){n(t)}),t(e.templateStructure.customStatesProperties)}else e.pagesStructure?f.each(e.pagesStructure.pages,function(e,i){var a=i.structures[0];n(a),t(i.customStatesProperties)}):e.masterPages&&f.each(e.masterPages,function(e,i){i.hierarchyInfo.structures&&(f.eachItem(i.hierarchyInfo.structures,function(e,t){n(t)}),t(i.hierarchyInfo.customStatesProperties))})})}(),function(){wa.addSiteInformationFix(15,function(e){function t(e){var i=e.elementProperties,a=ri[e.type];if(a.hasFeature(oi.DataList)){var r=i.dataInfo,o=i.itemFields;n(r,o)}else a.isType(ri.VideoPlayer)&&(i.videoUrl||(i.videoType===Ze.Vimeo?i.videoUrl="https://vimeo.com/"+i.videoId:i.videoUrl="https://youtu.be/"+i.videoId));e.childElements&&f.eachItem(e.childElements,function(e,n){t(n)})}function n(e,t){e&&e.currentData&&(e.currentData.items?f.eachEntry(e.currentData.items,function(e,n){f.eachEntry(n,function(e,i){t[e]&&t[e].type===mi.video.name&&i&&!i.videoUrl&&(n[e].videoType===Ze.Vimeo?n[e].videoUrl="https://vimeo.com/"+n[e].videoId:n[e].videoUrl="https://youtu.be/"+n[e].videoId)})}):f.eachEntry(e.currentData,function(e,n){f.eachEntry(n,function(e,i){t[e]&&t[e].type===mi.video.name&&i&&!i.videoUrl&&(n[e].videoType===Ze.Vimeo?n[e].videoUrl="https://vimeo.com/"+n[e].videoId:n[e].videoUrl="https://youtu.be/"+n[e].videoId)})}))}e.templateStructure&&f.eachItem(e.templateStructure.structures,function(e,n){t(n)}),e.pagesStructure&&f.eachItem(e.pagesStructure.pages,function(e,n){f.eachItem(n.structures,function(e,n){t(n)})}),e.masterPages&&f.eachItem(e.masterPages,function(e,n){n.hierarchyInfo.structures&&f.eachItem(n.hierarchyInfo.structures,function(e,n){t(n)})})})}(),function(){wa.addSiteInformationFix(15.002,function(e){function t(e){var i=e.elementProperties,a=ri[e.type];if(a.hasFeature(oi.DataList)){var r=i.dataInfo,o=i.itemFields;n(r,o)}else a.isType(ri.VideoPlayer)&&(i.videoImageUrl||(i.videoImageUrl=null));e.childElements&&f.eachItem(e.childElements,function(e,n){t(n)})}function n(e,t){e&&e.currentData&&(e.currentData.items?f.eachEntry(e.currentData.items,function(e,n){f.eachEntry(n,function(e,n){t[e]&&t[e].type===mi.video.name&&n&&!n.videoImageUrl&&(n.videoImageUrl=null)})}):f.eachEntry(e.currentData,function(e,n){f.eachEntry(n,function(e,n){t[e]&&t[e].type===mi.video.name&&n&&!n.videoImageUrl&&(n.videoImageUrl=null)})}))}e.templateStructure&&f.eachItem(e.templateStructure.structures,function(e,n){t(n)}),e.pagesStructure&&f.eachItem(e.pagesStructure.pages,function(e,n){f.eachItem(n.structures,function(e,n){t(n)})}),e.masterPages&&f.eachItem(e.masterPages,function(e,n){n.hierarchyInfo.structures&&f.eachItem(n.hierarchyInfo.structures,function(e,n){t(n)})})})}(),function(){wa.addSiteInformationFix(15.004,function(e){function t(e){e&&f.eachEntry(e,function(e,t){r[e]&&t.fieldsTemplates&&f.each(t.fieldsTemplates,function(e,t){f.each(t,function(e,t){n(t.stateValue)})})})}function n(e){var t=!1;return e&&f.eachEntry(e,function(e,n){return f.eachEntry(n,function(e,n){var i=n.hierarchy;if(i&&i.structures&&1===i.structures.length){var a=i.structures[0],r=a.elementProperties.skinBinding;if(r&&r.hierarchy&&r.hierarchy.connections){var o=r.hierarchy.connections;if(o&&o.targetConnections){var s=o.targetConnections,l=[];f.eachEntry(s,function(e,n){"showInCenter"===n.behaviourName&&(t=!0,l.push(e))}),f.eachItem(l,function(e,t){delete s[t]})}}}return!t}),!t}),t}function i(e,t){e.id;if(ri[e.type]&&ri[e.type]===ri.Gallery){var a=e.elementProperties,o=a.fieldsTemplates;r[e.id]=!0,n(o)&&(a.templateOpener=!0)}else e.childElements&&f.each(e.childElements,function(e,n){i(n,t)})}var a,r={};if(e.templateStructure){var o=e.templateStructure.structures;f.each(o,function(e,t){i(t)}),t(e.templateStructure.customStatesProperties)}e.pagesStructure&&f.each(e.pagesStructure.pages,function(e,n){a=n,f.each(n.structures,function(e,t){i(t)}),t(n.customStatesProperties)}),e.masterPages&&f.each(e.masterPages,function(e,n){n.hierarchyInfo.structures&&(f.each(n.hierarchyInfo.structures,function(e,t){i(t)}),t(n.hierarchyInfo.customStatesProperties))})})}(),function(){wa.addSiteInformationFix(16.2,function(e){function t(e){var n=(e.id,e.elementProperties);(n.entranceAnimation||n.exitAnimation)&&("SlideLeft"===n.entranceAnimation?(n.entranceAnimation=wt.Slide.name,n.entranceAnimationDirection="right"):"SlideRight"===n.entranceAnimation?(n.entranceAnimation=wt.Slide.name,n.entranceAnimationDirection="left"):"SlideUp"===n.entranceAnimation?(n.entranceAnimation=wt.Slide.name,n.entranceAnimationDirection="down"):"SlideDown"===n.entranceAnimation&&(n.entranceAnimation=wt.Slide.name,n.entranceAnimationDirection="up"),"SlideLeft"===n.exitAnimation?(n.exitAnimation=wt.Slide.name,n.exitAnimationDirection="left"):"SlideRight"===n.exitAnimation?(n.exitAnimation=wt.Slide.name,n.exitAnimationDirection="right"):"SlideUp"===n.exitAnimation?(n.exitAnimation=wt.Slide.name,n.exitAnimationDirection="up"):"SlideDown"===n.exitAnimation&&(n.exitAnimation=wt.Slide.name,n.exitAnimationDirection="down")),e.childElements&&f.each(e.childElements,function(e,n){t(n)})}var n;if(e.templateStructure){var i=e.templateStructure.structures;f.each(i,function(e,n){t(n)})}e.pagesStructure&&f.each(e.pagesStructure.pages,function(e,i){n=i,f.each(i.structures,function(e,n){t(n)})}),e.masterPages&&f.each(e.masterPages,function(e,n){n.hierarchyInfo.structures&&f.each(n.hierarchyInfo.structures,function(e,n){t(n)})})})}(),function(){wa.addSiteInformationFix(16.22,function(e){function t(e){var n=f.objectGet(e.elementProperties,"binding");n&&void 0===n.dataSourceName&&"currentItem"===n.dataItemID&&(n.dataSourceName=mr.LocalBlog),e.childElements&&f.eachItem(e.childElements,function(e,n){t(n)})}e.pagesStructure&&f.each(e.pagesStructure.pages,function(e,n){var i=n.structures[0],a=va.getPageData(i.id);a&&"LocalBlog"===a.pageListName&&t(i)})})}(),function(){wa.addSiteInformationFix(16.22,function(e){function t(e,t){return f.objectGet(e[t],[Ha.MobileStateName,"coordinator","stateValue"])}function n(e){var t=e.type;if("freeText"===t){var a=e.elementProperties,o=f.objectGet(a.binding,"dataFields"),l=f.objectGet(o,"1");l&&"content"===l.name&&(r=e.id,s=a.isSupportsMobile,e.type="RichContent",i(a),delete o[1],f.objectSet(o,bi.Content,{name:"content",type:mi.content.type,title:l.title}))}else e.childElements&&f.eachItem(e.childElements,function(e,t){n(t)})}function i(e){var t=a(ko,e);e.predefinedTextStyles=t,o=t}function a(e,t){var n=t.letterSpacing,i=f.objectGet(t.lineHeight,"percentages"),a=t.fontSize,r=t.font,o=t.fontColor,s=t.namedTextStyle,l=s&&Xa.getTextStyleInformation(s);null===a&&(a=l?l.fontSize:void 0),null===o&&(o=l?l.color:void 0),null===r&&(r=l?l.fontFamily:void 0);var c=f.deepCloneObject(e);c.normal=f.quickExtend(c.normal,{fontSize:a,fontFamily:r,color:o,lineHeight:i,letterSpacing:n});var u=c.normal.fontSize;return c.heading=f.quickExtend(c.heading,{fontSize:u+8,color:o,lineHeight:i,letterSpacing:n}),c["sub-heading"]=f.quickExtend(c["sub-heading"],{fontSize:u+3,color:o,lineHeight:i,letterSpacing:n}),c}var r,o,s;e.pagesStructure&&f.each(e.pagesStructure.pages,function(e,i){var l=i.structures[0],c=va.getPageData(l.id);if(c&&"LocalBlog"===c.pageListName&&(n(l),s)){var u=f.objectGet(i.customStatesProperties,r),d=t(u,"letterSpacing"),g=t(u,"lineHeight"),p=t(u,"fontSize"),h=t(u,"font"),m=t(u,"fontColor"),v=t(u,"namedTextStyle"),y=a(o,{fontSize:p,font:h,fontColor:m,lineHeight:g,letterSpacing:d,namedTextStyle:v});f.objectSet(u,["predefinedTextStyles",Ha.MobileStateName,"coordinator","stateValue"],y)}})})}(),function(){wa.addSiteInformationFix(16.23,function(e){function t(e){f.eachItem(o,function(t,i){n(!0,i,e)}),f.eachItem(s,function(t,i){n(!1,i,e)})}function n(e,t,n){var i=f.objectGet(n,[t,"dataLayoutOptions"]);i&&f.eachEntry(i,function(t,n){f.eachEntry(n,function(t,n){r(e,n.stateValue)})})}function i(e){var t=e.type;"PostsList"===t?a(e):e.childElements&&f.eachItem(e.childElements,function(e,t){i(t)})}function a(e){var t=e.elementProperties,n=t.primaryPostsList;r(n,t.dataLayoutOptions),n?o.push(e.id):s.push(e.id)}function r(e,t){var n=t.maxItemsCount;e&&void 0!==n?delete t.maxItemsCount:e||f.isNumeric(n)||(t.maxItemsCount=t.elementsPerPage)}var o=[],s=[];if(e.templateStructure){var l=e.templateStructure.structures;f.each(l,function(e,t){i(t)}),t(e.templateStructure.customStatesProperties)}else e.pagesStructure?f.each(e.pagesStructure.pages,function(e,n){var a=n.structures[0];i(a),t(n.customStatesProperties)}):e.masterPages&&f.each(e.masterPages,function(e,n){n.hierarchyInfo.structures&&(f.eachItem(n.hierarchyInfo.structures,function(e,t){i(t)}),t(n.hierarchyInfo.customStatesProperties))})})}();var uo=fs(function(){this.isSectionStructure=function(e){return"SectionElement"===e.type||"FooterElement"===e.type||"HeaderElement"===e.type}}),go=C.extend("IteratorContext",{init:function(){this._parents=[],this._structuresMap=[{}]},getParentStructure:function(){return this._parentStructure},isInCustomStateProperties:function(){return this._customStatePropertiesCounter>0},getFieldsTemplatesHierarchy:function(){return this._fieldsTemplatesHierarchy},isInSkinTemplate:function(){return this._skinBinding},isInFieldsTemplates:function(){return this._fieldsTemplates},isInMobileTemplate:function(){return this._isInMobileTemplate},getIteratedStructureById:function(e){return this._getCurrentStructureMap()[e]},getSkinParentStructure:function(){return this._skinBindingParentStructure},getSkinHierarchy:function(){return this._skinHierarchy},isInTemplate:function(){return this.isInSkinTemplate()&&this.isInFieldsTemplates()},isInSkinnedElement:function(){return this.isInSkinTemplate()&&!this.isInFieldsTemplates()},getTemplateOwnerStructure:function(){return this._fieldsTemplatesParentStructure},getTemplateOwnerId:function(){var e=this.getTemplateOwnerStructure();return e?e.id:void 0},getTemplateName:function(){return this._fieldsTemplatesName},getSkinnedElementId:function(){return this.getCurrentStructureId()},getCurrentStructure:function(){return this._currentStructure},getCurrentStructureId:function(){return this.getCurrentStructure().id},_parentStructure:void 0,_customStatePropertiesCounter:0,_fieldsTemplates:!1,_fieldsTemplatesName:void 0,_fieldsTemplatesId:void 0,_skinBinding:!1,_isInMobileTemplate:!1,_getCurrentStructureMap:function(){var e=this._structuresMap;return e[e.length-1]},_addStructure:function(e){var t=this._getCurrentStructureMap();if(e.id&&t[e.id]){U.notifyError(Error("Structure with id: "+e.id+" already iterated"));do e.id=f.uniqueID();while(t[e.id])}t[e.id]=e,this._currentStructure=e},_pushParent:function(e){this._parents.push(e),this._parentStructure=e},_popParent:function(){var e=this._parents;if(0===e.length)throw Error("Invalid parents use");e.pop(),0===e.length?this._parentStructure=void 0:this._parentStructure=e[e.length-1]},_setCustomStateProperties:function(){this._customStatePropertiesCounter++},_resetCustomStateProperties:function(){if(this._customStatePropertiesCounter--,this._customStatePropertiesCounter<0)throw Error("customStateProperties is not set")},_pushTemplate:function(){this._structuresMap.push({})},_popTemplate:function(){var e=this._structuresMap;if(0===e.length)throw Error("Invalid parents use");this._structuresMap.pop()},_setFieldsTemplates:function(e){if(this._fieldsTemplates)throw Error("fieldsTemplates is already set");this._fieldsTemplates=!0,this._fieldsTemplatesParentStructure=e,this._pushTemplate(e)},_resetFieldsTemplates:function(){if(!this._fieldsTemplates)throw Error("fieldsTemplates is not set");this._fieldsTemplates=!1,this._fieldsTemplatesParentStructure=void 0,this._popTemplate()},_setFieldsTemplatesName:function(e){this._fieldsTemplatesName=e},_resetFieldsTemplatesName:function(){this._fieldsTemplatesName=void 0},_setFieldsTemplatesHierarchy:function(e,t){this._fieldsTemplatesId=e,this._fieldsTemplatesHierarchy=t},_resetFieldsTemplatesHierarchy:function(){this._fieldsTemplatesId=void 0,this._fieldsTemplatesHierarchy=void 0},_setSkinBinding:function(e,t){if(this._skinBinding)throw Error("skinBinding is already set");this._skinBinding=!0,this._skinBindingParentStructure=e,this._skinHierarchy=t,this._pushTemplate(e)},_resetSkinBinding:function(){if(!this._skinBinding)throw Error("skinBinding is not set");this._skinBinding=!1,this._skinBindingParentStructure=void 0,this._skinHierarchy=void 0,this._popTemplate()},_setInMobileTemplate:function(){if(this._isInMobileTemplate)throw Error("_isInMobileTemplate is already set");this._isInMobileTemplate=!0},_resetInMobileTemplate:function(){if(!this._isInMobileTemplate)throw Error("skinBinding is not set");this._isInMobileTemplate=!1}});go.create=function(){return new go};var fo=fs(function(){function e(e,t,a,r){n(e.structures,t,a,r),i(e.customStatesProperties,t,a,r)}function t(t,n,i,a,r,o){if(a&&(n._setFieldsTemplates(t),f.eachEntry(a,function(t,a){n._setFieldsTemplatesName(t),f.eachEntry(a,function(t,a){var r=a.hierarchy;n._setFieldsTemplatesHierarchy(t,r),o(function(){e(r,n,i,o)},n),n._resetFieldsTemplatesHierarchy()}),n._resetFieldsTemplatesName()}),n._resetFieldsTemplates()),r&&"Inline"===r.type){var s=r.hierarchy;n._setSkinBinding(t,s),o(function(){e(s,n,i,o)},n),n._resetSkinBinding()}}function n(e,i,a,r){e&&f.eachItem(e,function(e,o){i._addStructure(o),a.structureCallback(o,i),i._pushParent(o);var s=o.elementProperties;t(o,i,a,s.fieldsTemplates,s.skinBinding,r),n(o.childElements,i,a,r),i._popParent()})}function i(e,n,i,r){e&&(n._setCustomStateProperties(),f.eachEntry(e,function(e,o){var s=n.getIteratedStructureById(e);i.customStatePropertiesCallback(o,s,n,e);var l=f.objectGet(o,["fieldsTemplates",a,"coordinator","stateValue"]),c=f.objectGet(o,["skinBinding",a,"coordinator","stateValue"]);(l||c)&&(n._setInMobileTemplate(),t(s,n,i,l,c,r),n._resetInMobileTemplate())}),n._resetCustomStateProperties())}this.iterate=function(t,n,i,a){i=f.quickExtend({structureCallback:cs,customStatePropertiesCallback:cs},i),a=f.quickExtend({templateHierarchyExecutor:f.noopWithCallback},a),e(t,n,i,a.templateHierarchyExecutor);
};var a="MobileResponsiveStateId1234"});"undefined"!=typeof global&&f.quickExtend(global,{IteratorContext:go,StructureIterator:fo});var po=function(){function e(e,t){var n=!1,i=e.type;return f.eachItem(t,function(e,t){return i===t?(n=!0,!1):void 0}),n}var t=C.extend("StructureCondition",{init:function(e,t){this._structureCallback=e,this._customStateCallback=t},beginIteration:cs,endIteration:cs,structure:function(e,t){return!!this._structureCallback(e,t)},customState:function(e,t,n){return!!this._customStateCallback(e,t,n)}}),n=t.extend("StructureCustomCondition",function(e){return{init:function(t){e.call(this,t)},beginIteration:function(){this._instancesMap={}},structure:function(e,t){var n=this._structureCallback(e,t);return n&&(this._instancesMap[e.id]=!0),n},customState:function(e,t){return!!this._instancesMap[t.id]}}});return t.elementType=function(t){return t=f.asArray(t),new n(function(n){return e(n,t)})},t.isProperty=function(e,n,i){return i=f.valueOrDefault(i,n),new t(function(t){return n(t.elementProperties[e],t)},function(t,n){var a=t[e],r=!1;return a?f.eachEntry(a,function(e,t){return f.eachEntry(t,function(t,a){return r=!!i(a.stateValue,n,e,t)||r,!r}),!r}):r=!!i(void 0,n),r})},t.create=function(e,n){return new t(e,n)},t.createCustom=function(e){return new n(e)},t.createOr=function(){for(var e=arguments.length,n=Array(e),i=0;e>i;i++)n[i]=arguments[i];return new t(function(e,t){var i=!1;return f.eachItem(n,function(n,a){i=a.structure(e,t)||i}),i},function(e,t,i){var a=!1;return f.eachItem(n,function(n,r){a=r.customState(e,t,i)||a}),a})},t}(),ho=function(){var e=C.extend("StructureTransform",{init:function(e,t){this._structureCallback=e,this._customStateCallback=t},beginIteration:cs,endIteration:cs,structure:function(e,t){return this._structureCallback(e,t)},customState:function(e,t,n){return this._customStateCallback(e,t,n)}});return e.elementType=function(t){return new e(function(e){e.type=f.evaluateWhenFunction(t,e)},cs)},e.setProperty=function(t,n,i){return new e(function(e){var i=e.elementProperties,a=f.evaluateWhenFunction(t,e),r=i[a],o=f.evaluateWhenFunction(n,r,e);void 0===o?void 0!==r&&delete i[a]:i[a]=o},function(e,n){var a=f.evaluateWhenFunction(t,n,e),r=e[a];if(r){var o=[];f.eachEntry(r,function(e,t){var a=[];f.eachEntry(t,function(t,r){var o=f.evaluateWhenFunction(i,r.stateValue,n,e,t);void 0===o?a.push(t):r.stateValue=o}),a.length>0&&(f.eachItem(a,function(e,n){delete t[n]}),f.isEmptyObject(t)&&o.push(e))}),o.length>0&&(f.eachItem(o,function(e,t){delete r[t]}),f.isEmptyObject(r)&&delete e[t])}})},e.getProperty=function(t,n){return new e(function(e,i){var a=f.evaluateWhenFunction(t,e);i._setInProperty(a),n(e.elementProperties[a],e,i),i._resetInProperty()},function(e,i,a){var r=f.evaluateWhenFunction(t,i,e),o=e[r];o&&(a._setInProperty(r),f.eachEntry(o,function(e,t){f.eachEntry(t,function(t,r){a._setInCustomProperty(e,t),n(r.stateValue,i,a),a._resetInCustomProperty()})}),a._resetInProperty(r))})},e.create=function(t,n){return new e(t,n)},e}(),mo=go.extend("StructureManagerContext",{_isInProperty:!1,_isInCustomProperty:!1,getPropertyName:function(){return this._propertyName},isInProperty:function(){return this._isInProperty},isInCustomProperty:function(){return this._isInCustomProperty},getPropertyStateName:function(){return this._propertyStateName},getPropertyAffectingInstanceID:function(){return this._affectingInstanceID},_setInProperty:function(e){if(this._isInProperty)throw Error("_isInProperty is already set");this._isInProperty=!0,this._propertyName=e},_resetInProperty:function(){if(!this._isInProperty)throw Error("_isInProperty is not set");this._isInProperty=!1,this._propertyName=void 0},_setInCustomProperty:function(e,t){if(this._isInCustomProperty)throw Error("_isInCustomProperty is already set");this._isInCustomProperty=!0,this._affectingInstanceID=t,this._propertyStateName=e},_resetInCustomProperty:function(){if(!this._isInCustomProperty)throw Error("_isInCustomProperty is not set");this._isInCustomProperty=!1,this._affectingInstanceID=void 0,this._propertyStateName=void 0}});mo.create=function(){return new mo};var vo=function(){function e(e,t,n,i,a){var r=!0;f.eachItem(e,function(e,t){r=r&&t.structure(i,a)}),r&&n&&f.eachItem(t,function(e,t){t.structure(i,a)})}function t(e,t,n,i,a,r){if(a){var o=!0;f.eachItem(e,function(e,t){o=o&&t.customState(i,a,r)}),o&&n&&f.eachItem(t,function(e,t){t.customState(i,a,r)})}}var n=C.extend("StructureManager",{init:function(e){e=f.quickExtend({iterateCoordinator:!0,iterateTemplate:!0,iteratePages:!0,iterateMaster:!0,structureTransform:!0,customStatesPropertiesTransform:!0,templateHierarchyTransform:!0,iterator:fo.iterate},e),this._iterator=e.iterator,this._structureTransform=e.structureTransform,this._customStatesPropertiesTransform=e.customStatesPropertiesTransform,this._templateHierarchyTransform=e.templateHierarchyTransform,this._conditions=[],this._transforms=[],this._options=e},addCondition:function(e){return this._conditions.push(e),this},addTransform:function(e){return this._transforms.push(e),this},forEachProperty:function(e,t){return this.addTransform(ho.getProperty(e,t))},iterate:function(e,t){t=f.quickExtend({afterTemplateHierarchyTransform:cs},t);var n=this._options,i=this;n.iterateCoordinator&&e.isCoordinator&&this._iterate(e,t),n.iterateTemplate&&e.templateStructure&&this._iterate(e.templateStructure,t),n.iteratePages&&e.pagesStructure&&f.eachItem(e.pagesStructure.pages,function(e,n){i._iterate(n,t)}),n.iterateMaster&&e.masterPages&&f.eachItem(e.masterPages,function(e,n){i._iterate(n.hierarchyInfo,t)})},_iterate:function(n,i){var a=this,r=a._conditions,o=a._transforms;f.eachItem(r,function(e,t){t.beginIteration()}),f.eachItem(o,function(e,t){t.beginIteration()});var s=a._iterator,l=a._templateHierarchyTransform,c=a._structureTransform,u=a._customStatesPropertiesTransform,d=i.afterTemplateHierarchyTransform,g=mo.create();s(n,g,{structureCallback:function(t,n){e(r,o,c,t,n)},customStatePropertiesCallback:function(e,n,i){t(r,o,u,e,n,i)}},{templateHierarchyExecutor:function(e,t){var n=t.getSkinHierarchy()||t.getFieldsTemplatesHierarchy();f.evaluateWhenFunction(l,t)&&e(),d(n,t)}}),f.eachItem(o,function(e,t){t.endIteration()}),f.eachItem(r,function(e,t){t.endIteration()})}});return n.create=function(e,t){return new n(f.valueOrDefault(t,fo.iterate),e)},n}(),yo=fs(function(){this.forEachElement=function(e,t){vo.create().addTransform(ho.create(function(e,n){t(n)},cs)).iterate({templateStructure:e})},this.forEachProperty=function(e,t,n){vo.create().addTransform(ho.getProperty(t,function(e,t,i){n(e,i)})).iterate({templateStructure:e})},this.forEachHierarchy=function(e,t){t(e),vo.create().iterate({afterTemplateHierarchyTransform:function(e,n){t(e,n)},templateStructure:e})}});"undefined"!=typeof global&&f.quickExtend(global,{StructureManager:vo,StructureCondition:po,StructureTransform:ho,StructureIteratorHelper:yo});var bo=fs(function(){function e(){a||(r=r.sort(function(e,t){return e.priority&&t.priority?e.priority-t.priority:e.priority?-1:t.priority?1:e.version-t.version}),a=!0)}function t(e,t){t.StructureVersion=ka.CurrentStructureVersion,t.version=ka.CurrentStructureVersion,t.templateStructure&&(t.templateStructure.version=ka.CurrentStructureVersion,t.templateStructure.StructureVersion=ka.CurrentStructureVersion)}function n(n,a){function l(e){c.push(e)}f.eachItem(o,function(e,t){t.condition(n)&&f.evaluateWhenFunction(t.structureManager).iterate(n)}),!a&&n.masterPages&&(i=n.masterPages[0]);var c=[];a?wa.fixTemplateInformation(n):wa.fixSiteInformation(n),s.getValue().iterate(n,{afterTemplateHierarchyTransform:function(e){var t={templateStructure:e,StructureVersion:void 0!==e.version?e.version:0};wa.fixTemplateInformation(t),l(t)}});var u=n.StructureVersion!==ka.CurrentStructureVersion;!u||a&&!n.StructureVersion||(e(),f.eachItem(r,function(e,t){(null===t.version||n.StructureVersion<t.version)&&t.structureFixCallback(n)})),u&&l(n),f.eachItem(c,t)}var i,a=!1,r=[],o=[],s=w.create(function(){return vo.create()});this.addStructureFix=function(e,t,n){r.push({priority:n?n:e,version:e,structureFixCallback:t})},this.addStructureScript=function(e,t){o.push({condition:e,structureManager:t})},this.siteInformationStructure=function(e){n(e,!1)},this.templateInformationStructure=function(e){n(e,!0)},this.getMasterStructure=function(){return i}});bo.addStructureScript(function(){return!("undefined"==typeof TemporaryImages||f.isEmptyObject(TemporaryImages))},function(){function e(e){if(e&&"object"==typeof e&&e.isTemporary){var t=TemporaryImages[e.id];if(t)return se.getImageInfoForSaving(t)}return e}var t={Gallery:!0,DataListElement:!0,VideoGallery:!0};return vo.create().addTransform(ho.setProperty("imageUrl",e,e)).addTransform(ho.setProperty("dataInfo",function(e,n){if(e&&"object"==typeof e){var i=e.currentData;i&&"object"==typeof i&&t[n.type]&&f.eachEntry(i,function(e,t){f.eachEntry(t,function(e,t){if(t&&"object"==typeof t){var n=t.imageUrl;if(n&&"object"==typeof n&&n.id&&n.isTemporary){var i=TemporaryImages[n.id];i&&(t.imageUrl=se.getImageInfoForSaving(i))}}})})}return e},f.identity))}),bo.addStructureFix(16,function(e){function t(e){return e.separator={borderColor:"#000000",borderStyle:"solid",borderWidth:1},e}return vo.create().addCondition(po.elementType("RichContent")).addTransform(ho.setProperty("predefinedTextStyles",t,t)).iterate(e)}),bo.addStructureFix(16.003,function(e){function t(e){return f.quickExtend(e,e.settings),delete e.settings,e}vo.create().addCondition(po.elementType("PercentageElement")).addTransform(ho.setProperty("percentageWidget",t,t)).iterate(e)}),bo.addStructureFix(16.006,function(e){function t(){return!1}vo.create().addCondition(po.elementType("FormElement")).addTransform(ho.setProperty("overflow",t,t)).iterate(e)}),bo.addStructureFix(16.008,function(e){if(e.masterPages&&f.each(e.masterPages,function(e,t){if(t.hierarchyInfo.structures){var n=f.grep(t.hierarchyInfo.structures,function(e){return"HeaderElement"===e.type})[0];if(n){var i=n.elementProperties.sizeAndPosition.height;f.each(t.hierarchyInfo.structures,function(e,t){uo.isSectionStructure(t)||"PageContentElement"===t.type||(t.elementProperties.sizeAndPosition.top+=i)})}}}),e.pagesStructure){var t=bo.getMasterStructure(),n=f.grep(t.hierarchyInfo.structures,function(e){return"HeaderElement"===e.type})[0];if(n){var i=n.elementProperties.sizeAndPosition.height;vo.create({}).addCondition(po.createCustom(function(e,t){var n=t.getParentStructure();return n&&"page"===n.type&&!uo.isSectionStructure(e)})).addTransform(ho.create(function(e){var t=e.elementProperties.sizeAndPosition;return t&&(t.top+=i),t},cs)).iterate(e)}}}),bo.addStructureFix(16.01,function(e){function t(){return{index:{type:"index",title:void 0,name:"index",isDefaultField:!0},fontIcon:{type:"fontIcon",title:void 0,name:"fontIcon",isDefaultField:!0},title:{type:"title",title:void 0,name:"title",isDefaultField:!0}}}vo.create().addCondition(po.elementType("SocialSharingElement")).addTransform(ho.setProperty("itemFields",t,cs)).iterate(e)}),bo.addStructureFix(16.012,function(e){function t(e,t){return e.height=t.metaData.size.height,e}vo.create().addCondition(po.elementType("FormElement")).addTransform(ho.setProperty("sizeAndPosition",t,t)).iterate(e)}),bo.addStructureFix(17,function(e){function t(e){if(e){var t=e.navigationProperties;f.eachItem(n,function(e,n){var i=t[n];if(i&&void 0!==i.gradient){var a;if(i.gradient.colorStops){var r=i.gradient.colorStops[0];r&&(a=r.value)}a||(a={mainColor:1,opacity:1,brightness:0}),t[n]=a}})}return e}var n=["backgroundColor","mobileSecondColor","fontColor","borderColor","secondColor"];return vo.create().addCondition(po.elementType(["PagesMenu","SectionMenu"])).addTransform(ho.setProperty("dropDownNavigationSettings",t,t)).iterate(e)}),bo.addStructureFix(17.004,function(e){function t(e){var t=e.SkinTagButton;return t&&(f.eachEntry(t,function(e,t){var n=t.hierarchy.structures[0];n.type="SkinItemTagButton",f.eachEntry(n.elementProperties.skinBinding.hierarchy.fieldsToValues,function(e,t){delete t.ElementSelectedState})}),e.SkinItemTagButton=t,delete e.SkinTagButton),e}return vo.create().addCondition(po.elementType("ItemTagsElement")).addTransform(ho.setProperty("fieldsTemplates",t,t)).iterate(e)}),function(){var e=w.create(function(){for(var e=new E(","),t=0;5>t;++t)e.append(".theme-text-color-4-{0}".format(t));return""+e});Ea.addListFix(mr.LocalBlog,14,function(t){var n=t.content;if(void 0!=n){var i=f(n).wrapAll("<div>").parent(),a=i.find(e.get());a.length>0&&(a.each(function(e,t){var n=f(t),i=n.children("u");i&&i.contents().unwrap(),n.contents().unwrap()}),t.content=i.html())}})}();var Co=fs(function(){var e={ImageThumb:{group:"carousel-thumbs-templates",name:"image-thumb-template"}},t=C.extend("ThumbItemBase",{$element:null,image:null,item:null,activated:!1,updated:!1,dimensions:null,_onCurrent:cs,init:function(e,t){t=f.quickExtend({itemCreationFunction:cs,onItemUpdated:cs},t),this.$wrapper=e,this.options=t,this._onItemUpdated=t.onItemUpdated,this.loadedFlag=O.create(!1)},create:function(){this.$element=f("<div></div>"),this.options.itemCreationFunction()},activate:function(e,t){this.activated=!0,this.update(e,t)},deactivate:function(){this.activated=!1},update:function(e,t){this.loadedFlag.setTrue(),this.updated=!0,t&&t(e),this._onItemUpdated(e)},load:function(e,t){this.loadedFlag.setTrue(),t&&t(e)},remove:function(){this.deactivate(),this.$element.remove()},onCurrent:function(e){this._onCurrent=e},resizeImageToContainer:function(){var e,t,n,i=this._image,a=this._imageData||{};t=this.dimensions,t||(e=f(i.parentNode),t={width:e.width(),height:e.height()}),t.width&&(n=gn.calculateImageSizeInLayout({width:a.imageWidth||i.naturalWidth,height:a.imageHeight||i.naturalHeight},cn.Cover,t),i.style.width=n.width+"px",i.style.height=n.height+"px",i.style.left=(t.width-n.width)/2+"px",i.style.top=(t.height-n.height)/2+"px")}}),n=t.extend("ImageThumb",{_image:null,_imageData:null,create:function(){this.$element=f.useTemplate(this.options.imageItemTemplate||e.ImageThumb),this._image=f("img",this.$element)[0]},update:function(e,t){if(this.activated&&!this.updated){var n=88,i=this._image,a=e.imagePath||se.resolveImageUrl(e.image.imageUrl,{height:n,width:16*n/9}),r=this;this._imageData=e.image&&e.image.imageUrl,i.src!=a?(i.onload=function(){r.resizeImageToContainer(),r.loadedFlag.setTrue(),t&&t(e)},i.onerror=function(){r.loadedFlag.setTrue(),t&&t(e)},r.loadedFlag.setFalse(),i.src=a):t&&t(e),this.updated=!0,this._onItemUpdated(e,this)}else t&&t(e)},load:function(e,t){var n=88,i=16*n/9;if(this.loadedFlag.getValue())t&&t(e);else{var a=new Image,r=this;a.onload=function(){r.loadedFlag.setTrue(),t&&t(e)},a.onerror=function(){r.loadedFlag.setTrue(),t&&t(e)},a.src=se.resolveImageUrl(e.image.imageUrl,{height:n,width:i})}}}),i=t.extend("VideoThumb",{videoId:null,_image:null,getVideoPlayerHelper:function(e){switch(e.video.videoType){case Ze.Youtube:return Te;case Ze.Vimeo:return ke}},create:function(){this.$element=f.useTemplate(this.options.videoItemTemplate||e.ImageThumb),this._image=f("img",this.$element)[0]},update:function(e,t){if(this.activated&&!this.updated){var n=this._image,i=e.video,a=this.getVideoPlayerHelper(e),r=this;i.videoId!==this.videoId?(this.videoId=i.videoId,n.onload=function(){r.resizeImageToContainer(),r.loadedFlag.setTrue(),t&&t(e)},n.onerror=function(){r.loadedFlag.setTrue(),t&&t(e)},r.loadedFlag.setFalse(),i.videoImageUrl?n.src=a.getVideoThumbUrl(i.videoImageUrl):a.getVideoImageUrl(i.videoId,function(e){i.videoImageUrl=e,n.src=a.getVideoThumbUrl(e)})):t&&t(e),this.updated=!0,this._onItemUpdated(e,this)}else t&&t(e)},load:function(e,t){if(this.loadedFlag.getValue())t&&t(e);else{var n=new Image,i=e.video,a=i.videoImageUrl,r=this.getVideoPlayerHelper(e),o=this;n.onload=function(){o.loadedFlag.setTrue(),t&&t(e)},n.onerror=function(){o.loadedFlag.setTrue(),t&&t(e)},a?n.src=r.getVideoThumbUrl(a):r.getVideoImageUrl(i.videoId,function(e){i.videoImageUrl=e,n.src=r.getVideoThumbUrl(e)})}}});this.createThumbsCarouselItem=function(e,a,r){return e.image||e.imagePath?new n(a,r):e.video?new i(a,r):new t(a,r)}}),Io=fs(function(){var e={ImageItem:{group:"slideshow-carousel-items-templates",name:"image-item-template"},VideoItem:{group:"slideshow-carousel-items-templates",name:"video-item-template"},VideoIframe:{group:"slideshow-carousel-items-templates",name:"video-iframe-template"}},t=C.extend("SlideShowCarouselItemBase",{$element:null,activated:!1,isCurrent:null,updated:!1,loadedFlag:null,loadingState:!1,$wrapper:null,init:function(e,t){t=f.quickExtend({template:null},t),this.$wrapper=e,this.options=t,this.$element=f.useTemplate(t.template),this.loadedFlag=O.create(!1),this.isCurrent=O.create(!1)},create:cs,activate:function(e,t){this.activated=!0,this.update(e,t)},deactivate:function(){this.activated=!1},update:function(e,t){this.loadedFlag.setTrue(),this.updated=!0,t&&t(e)},load:function(e,t){this.loadedFlag.setTrue(),t&&t(e)},toggleLoading:function(e,t){var n=!1;this.loadingState!==e&&(t&&e&&(n={className:"popup-loading-animation",overlayLayer:X.BeneathDialogs}),this.$element.loading(n),this.$wrapper.toggleClass("state-loading",e),this.loadingState=e)},remove:function(){this.deactivate(),this.$element.remove()},_updateAdditionalDataElements:function(e){var t=this.$element,n=e.title||"",i=e.description||"",a=e.link||{},r=a.url||null,o=e.index;this.currentTitle!==n&&(this.currentTitle=n,this.$title.html(n),t.toggleClass("no-title",!n)),this.currentDescription!==i&&(this.currentDescription=i,this.$description.html(i).ellipsis({updateContent:!0,doNotRender:!0}),t.toggleClass("no-description",!i)),this.currentLink!==r&&(this.currentLink=r,r&&(this.$link.attr("href",r),this.$link.attr("target",a.newTab?"_blank":"_self")),t.toggleClass("no-link",!r)),this.currentIndex!==o&&(this.currentIndex=o,this.$index.html(o))}}),n=t.extend("ImageItem",{image:null,create:function(){var e=this.$element;this.image=f("img",e)[0],this.$textContainer=f(".image-text",e),this.$title=f(".title",e),this.$description=f(".description",e),this.$index=f(".index",e),this.$link=f(".link",e)},update:function(e,t){if(this.activated&&!this.updated){var n,i=this.image,a=e.image.imageUrl,r=this;this._updateAdditionalDataElements(e),a?n=se.resolveImageUrl(a,{width:screen.availWidth,height:screen.availHeight}):e.imagePath?n=e.imagePath:(n="",r.loadedFlag.setTrue()),n&&i.src!==n?(i.onload=function(){r.loadedFlag.setTrue(),t&&t(e)},i.onerror=function(){r.loadedFlag.setTrue(),t&&t(e)},r.loadedFlag.setFalse(),i.src=n):t&&t(e),this.updated=!0}else t&&t(e)},load:function(e,t){if(this.loadedFlag.isFalse()){var n=new Image,i=this;n.onload=function(){i.loadedFlag.setTrue(),t&&t(e)},n.onerror=function(){i.loadedFlag.setTrue(),t&&t(e)},n.src=se.resolveImageUrl(e.image.imageUrl,{width:screen.availWidth,height:screen.availHeight})}else t&&t(e)}}),i=t.extend("VideoItem",{videoId:null,image:null,player:null,videoData:null,videoLoadedFlag:null,isPlaying:!1,privateVideoFallbackTimeoutHandle:0,create:function(){var e=this.$element,t=O.create(!1);this.videoWrapper=f(".video",e),this.image=f("img",e)[0],this.videoContainer=f(".video-container",e),this.$textContainer=f(".image-text",e),this.$title=f(".title",e),this.$description=f(".description",e),this.$index=f(".index",e),this.$link=f(".link",e),this.videoLoadedFlag=t},activate:function(e,t){var n=this;this.activated||(this.videoContainer.click(function(e){e.stopPropagation(),n.playVideo()}),this.isCurrent.valueChangedEvent.bind(function(e){!e&&n.player&&n.stopVideo()})),this.activated=!0,this.update(e,t)},playVideo:function(){var e=this,t=Ha.Flags.IsInMobileContext.isTrue();this.videoLoadedFlag.isTrue()?(!t&&this.player&&this.player.play(),this.togglePlaying(!0)):this.createPlayer(function(){e.isCurrent.isTrue()&&(t&&e.videoWrapper.css({"background-image":""}),e.player.play(),e.togglePlaying(!0),e.image.style.display="none")})},pauseVideo:function(){this.videoLoadedFlag.isTrue()&&this.player.pause(),this.isPlaying=!1},stopVideo:function(){this.videoLoadedFlag.isTrue()&&this.player.stopVideo(),this.togglePlaying(!1)},increaseVolume:function(){this.videoLoadedFlag.isTrue()&&this.player.increaseVolume()},decreaseVolume:function(){this.videoLoadedFlag.isTrue()&&this.player.decreaseVolume()},togglePlaying:function(e){this.isPlaying=e,this.videoContainer.toggleClass("playing",e)},createPlayer:function(t){var n=this.player,i=this;return n&&this.destroyPlayer(),this.toggleLoading(!0,!0),this.player=n=this.getVideoPlayerHelper(this.videoData).createPlayer({$container:this.videoContainer,videoID:this.videoId,loop:0,controls:1,isHtml5:!1,createIframe:function(){return f.useTemplate(e.VideoIframe)}}),n.whenReady(function(){i.whenPlayerReady(t)}),this.privateVideoFallbackTimeoutHandle=setTimeout(function(){i.whenPlayerReady(t)},1e4),n.toggleInitilized(!0),n.reload(),n},whenPlayerReady:function(e){this.videoLoadedFlag.isFalse()&&(clearTimeout(this.privateVideoFallbackTimeoutHandle),this.videoLoadedFlag.setTrue(),this.toggleLoading(!1,!0),e&&e())},destroyPlayer:function(){var e=this.player;clearTimeout(this.privateVideoFallbackTimeoutHandle),this.toggleLoading(!1,!0),this.videoLoadedFlag.setFalse(),this.isCurrent.setFalse(),e&&(e.unloadPlayer(),e.removePlayerIFrame(),this.player=null)},getVideoPlayerHelper:function(e){switch(e.videoType){case Ze.Youtube:return Te;case Ze.Vimeo:return ke}},loadCoverImage:function(e,t,n){var i=this.image,a=this;this.loadedFlag.setFalse(),i.onload=function(){a.loadedFlag.setTrue(),n&&n(e)},i.onerror=function(){a.loadedFlag.setTrue(),n&&n(e)},i.src=t},update:function(e,t){if(this.activated&&!this.updated){var n,i=e.video,a=this;this.videoData=e.video,this._updateAdditionalDataElements(e),i.videoId!==this.videoId?(this.videoId=i.videoId,i.videoImageUrl?(n=se.resolveImageUrl(i.videoImageUrl,{width:screen.availWidth,height:screen.availHeight},{forceRatioLocking:!1}),this.loadCoverImage(e,n,t)):this.getVideoPlayerHelper(i).getVideoImageUrl(i.videoId,function(r){i.videoImageUrl=r,n=se.resolveImageUrl(r,{width:screen.availWidth,height:screen.availHeight},{forceRatioLocking:!1}),a.loadCoverImage(e,n,t)})):t&&t(e),this.updated=!0}else t&&t(e)},load:function(e,t){if(this.loadedFlag.isFalse()){var n=new Image,i=e.video,a=i.videoImageUrl,r=this;n.onload=function(){r.loadedFlag.setTrue(),t&&t(e)},n.onerror=function(){r.loadedFlag.setTrue(),t&&t(e)},a?n.src=se.resolveImageUrl(a,{width:screen.availWidth,height:screen.availHeight},{forceRatioLocking:!1}):this.getVideoPlayerHelper(i).getVideoImageUrl(i.videoId,function(e){i.videoImageUrl=e,n.src=se.resolveImageUrl(e,{width:screen.availWidth,height:screen.availHeight},{forceRatioLocking:!1})})}else t&&t(e)}});this.createSlideShowCarouselItem=function(a,r,o){return a.image||a.imagePath?new n(r,{template:o.imageItemTemplate||e.ImageItem}):a.video?new i(r,{template:o.videoItemTemplate||e.VideoItem}):new t(r,{template:o.imageItemTemplate||e.ImageItem})}}),So=fs(function(){var e=C.extend("BaseRenderer",{options:null,carousel:null,_currentItem:null,_previousHalfStatePercentage:void 0,_minImageWidth:640,_minImageHeight:360,init:function(e){e=f.quickExtend({transitionSpeed:300,onTransitionStart:cs,onTransition:cs,onTransitionEnd:cs},e),void 0!==e.minImageWidth&&(this._minImageWidth=e.minImageWidth),void 0!==e.minImageHeight&&(this._minImageHeight=e.minImageHeight),this.options=e},attachToCarousel:function(e){return this.carousel=e,this},renderItem:function(e,t,n,i,a){var r=this.carousel;r&&(t&&(i||void 0===i||a)?(this._currentItem=e,this._transition(e,t,n,a)):(this._render(e,this._currentItem,n),this._currentItem=e)),this._previousHalfStatePercentage=-1===a?0:a},_getItemElementFromItem:function(e){return e&&e.$item||null},_getImageFromItem:function(e){return e&&e.itemView&&e.itemView.image||null},_getTextContainerFromItem:function(e){return e&&e.itemView&&e.itemView.$textContainer||null},_calculateDimensions:function(e,t){var n,i,a,r,o,s=e.item,l=this._minImageWidth,c=this._minImageHeight,u=this._getImageFromItem(e);return s.image?(a=s.image.imageUrl,n=a.imageWidth||u.naturalWidth,i=a.imageHeight||u.naturalHeight,r=this.options.imageBoxLayout||cn.FitWhenBigger):s.video&&(n=u.naturalWidth,i=u.naturalHeight,r=this.options.imageBoxLayout||cn.Fit),o=gn.calculateImageSizeInLayout({width:n,height:i},r,t),l&&(o.width=Math.max(l,o.width)),c&&(o.height=Math.max(c,o.height)),o},_render:cs}),t=e.extend("SlideFadeRenderer",{_render:function(e,t){var n=this.carousel.$element,i=this._getItemElementFromItem(e),a=this._getImageFromItem(e),r=f(a.parentNode),o={width:n.width(),height:n.height()},s=this._calculateDimensions(e,o);r.css({width:s.width,height:s.height,left:(o.width-s.width)/2,top:(o.height-s.height)/2,opacity:1,transform:"none"}),t&&t.index!==e.index&&this._getItemElementFromItem(t).css("display","none"),i.css("display","list-item")},_transition:function(e,t,n){var i,a,r=this,o=this.carousel.$element,s={width:o.width(),height:o.height()},l=this._getItemElementFromItem(e),c=this._getImageFromItem(e),u=f(c.parentNode),d=this._getItemElementFromItem(t),g=this._getImageFromItem(t),p=f(g.parentNode),h=this._calculateDimensions(e,s),m=this._calculateDimensions(t,s),v=h.width/2,y=m.width/2,b=(s.width-h.width)/2,C=(s.width-m.width)/2;n&&n>0||!n&&e.index>t.index?(i=b+v,a=C-y):(i=b-v,a=C+y),u.css({width:h.width,height:h.height,left:i,top:(s.height-h.height)/2,opacity:0,transform:"scale(0.5)"}),l.css({display:"list-item"}),u.velocity({left:[b,i],opacity:[1,0],scale:[1,.5]},{duration:300,queue:!1}),p.velocity({left:[a,C],opacity:[0,1],scale:[.5,1]},{duration:500,queue:!1,complete:function(){t.index!==r._currentItem.index&&d.hide()}})}}),n=e.extend("PopupMobileSlideShow",{_minImageWidth:0,_minImageHeight:0,_render:function(e,t){var n=e.$item,i=this._getItemElementFromItem(e),a=this._getImageFromItem(e),r=f(a.parentNode),o=this._getTextContainerFromItem(e),s={width:n.width(),height:n.height()},l=this._calculateDimensions(e,s);r.css({width:l.width,height:l.height,left:(s.width-l.width)/2,top:(s.height-l.height)/2,opacity:1}),t&&t.index!==e.index&&(this._getItemElementFromItem(t).css("display","none"),this._getTextContainerFromItem(t).css("display","none")),o.css("display","block"),i.css("display","list-item"),e.itemView.$description.ellipsis()},_transition:function(e,t,n,i){var a,r,o=this,s=e.$item,l={width:s.width(),height:s.height()},c=this._getItemElementFromItem(e),u=this._getImageFromItem(e),d=f(u.parentNode),g=this._getItemElementFromItem(t),p=this._getImageFromItem(t),h=f(p.parentNode),m=this._getTextContainerFromItem(e),v=this._getTextContainerFromItem(t),y=this._calculateDimensions(e,l),b=this._calculateDimensions(t,l),C=(l.width-y.width)/2,I=(l.width-b.width)/2,S=this._previousHalfStatePercentage||0;n&&n>0||!n&&e.index>t.index?(a=l.width,r=-b.width):(a=-y.width,r=l.width),S||(d.css({width:y.width,height:y.height,left:a,top:(l.height-y.height)/2,opacity:1}),c.css("display","list-item"),e.itemView.$description.ellipsis()),void 0===i?(S/=100,d.velocity("stop").velocity({left:C},{duration:500*(1-S),queue:!1}),h.velocity("stop").velocity({left:r,opacity:0},{duration:500*(1-S),queue:!1,complete:function(){t.index!==o._currentItem.index&&(m.css("display","block"),g.css("display","none"),v.css("display","none"))}})):-1===i?(d.velocity("stop").velocity({left:C,opacity:1},{duration:200,queue:!1}),h.velocity("stop").velocity({left:r,opacity:1},{duration:200,queue:!1,complete:function(){t.index!==o._currentItem.index&&(m.css("display","block"),g.css("display","none"),v.css("display","none"))}})):void 0!==i&&(i/=100,d.velocity("stop").css({left:a-(a-C)*i}),h.velocity("stop").css({left:I+(r-I)*i,opacity:1-i}))}});this.getBaseRenderer=function(){return e},this.getRenderer=function(e,i){switch(e){case"popupSlideShow":return new t(i);case"popupMobileSlideShow":return new n(i)}}}),Po=C.extend("ObservablePropertyBinding",{init:function(e,t){t=f.quickExtend({},t);var n=Ae.create(),i=t.observableObject?t.observableObject:_.create(),a=t.propertyName,r=e.properties[a],o=i.valueChangedEvent.bind(function(t){n.performOperation(function(){void 0===r.bindingValue&&(r.computedValue=void 0),r.bindingValue=t,fa.recomputePropertyValue(e,a)},"binding")});r.bindingObject=i,r.bindingConroller=this,this._instance=e,this._propertyName=a,this._observableObject=i,this._operationsBatch=n,this._event=o},clearBinding:function(){var e=this._instance,t=this._propertyName,n=e.properties[t];delete n.bindingValue,delete n.bindingConroller,this._event.unbind(),fa.recomputePropertyValue(e,t)},setValue:function(e){this._observableObject.setValue(e)},getValue:function(){return this._observableObject.getValue()},postponeUpdates:function(){this._operationsBatch.start()},unPostponeUpdates:function(){this._operationsBatch.finish()}});Po.create=function(e,t){return new Po(e,t)};var wo=fs(function(){this.Images={},this.loadImages=function(){var e=[];f.eachEntry(wo.Images,function(t,n){e.push(se.resolveImageUrl(n))}),Dt.loadImages(e)}});!function(){function e(e,t,n,i){i&&e.setPropertiesValues({baseName:t})}ai.registerDefinition(oi,{ElementBase:{properties:{tagName:{defaultValue:function(){return et.DIV}},behaviours:{defaultValue:gs,onChange:function(e,t){t?(f.count(t.normalBehaviours)>0||f.count(t.isTemplateBehaviours)>0)&&e.hasBehaviours.setTrue():e.hasBehaviours.setFalse()}},isLocked:{defaultValue:ds,onChange:function(e,t){e.isLocked.setValue(t,"property")}},name:{category:ci.Other,defaultValue:gs,onChange:e},baseName:{defaultValue:gs},templateID:{defaultValue:gs},templateName:{defaultValue:gs},order:{isStateProperty:us,defaultValue:gs},customStates:{defaultValue:gs,onChange:function(e,t){if(null!==t){var n=e.getPropertyValue("customStates"),i=f.deepCloneObject(e.getPropertyValue("customStates"));for(var a in i)if(!Oi[a]){var r=i[a],o=f.getValues(r.ids),s=Mi.registerComplexState(o);s||delete n[a]}}}},isElementWasEditedInMode:{isStateProperty:!0,defaultValue:ds}},methods:{},aggregatedMethods:{definitions:{onInitializing:cs,onInitialized:cs,onCreation:cs,onDetached:cs,onAttached:cs,onBeforePageOpen:cs,updateInstanceToViewPort:cs,removeInstanceFromViewPort:cs,adjustInstanceToViewPort:cs,switchToPreview:function(){var e=this;e.previewEventsListener.activateAndExecuteAll(),Ai.activateBehaviours(e)},onRemove:cs,onPropertyChange:cs,onPropertiesChanged:cs}}}})}(),function(){function e(){var e=this;if(i(e),e.previewEventsListener.add(x.createEventListener([Ha.Flags.IsInMobileContext.valueChangedEvent],function(){e.performWhenVisible(function(){e.isFixed()?e.addFixedState():e.data.fixedStateAdded&&e.removeFixedState()},e.id+"design-element-preview-listener")})),!this.isForTemplateUse()){t(e),e.duringResizing.valueChangedEvent.bind(function(t){e.canPushFlag.setValue(!t,"duringResizing")}),x.bind([e.zIndex.valueChangedEvent,e.customZIndex.valueChangedEvent,{event:e.propertyChangedEvent,name:"topZIndex"}],function(){var t=e.getPropertyValue("topZIndex"),n=e.zIndex.getValue(),i=e.customZIndex.getValue();n=n?n:0;var a="";i?a=i+(t?t:n):t?a=t+Z.MinPropertyZindex:n&&(a=n),e.data.currentZIndexValue!==a&&(e.data.currentZIndexValue=a,Vn.requestIndpendentWriteOperation(function(){e.$element.css("z-index",a),e.getMainBox().css("z-index",a)},e.id+"zindex"))}),e.canResize.setValue(e.hasFeature(oi.Resizable),"Resizable");var n=e.isDisplayed.isTrue();n||e.hideElement()}}function t(e){de.disableOperationsRecording("initializeLastResizingSize");var t=e.getStructureMetaData(),n=t?t.size:void 0;e.isFillVertical()||(n=e.getPropertyValue("sizeAndPosition")),e.properties.lastResizingSize.value=f.quickExtend({},n),fa.recomputePropertyValue(e,"lastResizingSize"),de.enableOperationsRecording("initializeLastResizingSize")}function i(e){e.isForTemplateUse()&&Z.IsMobileView||(e.elementEnterAreaEvent.bind(function(t){e.isInMobileMode()||Z.IsMobileClient||e.activateTrigger(Li.MouseEnterArea,t)}),e.elementLeaveAreaEvent.bind(function(t){e.isInMobileMode()||Z.IsMobileClient||e.activateTrigger(Li.MouseLeaveArea,t)}),e.influenceChanged.bindAndExecute(function(){
e.refreshTracking()}))}function a(e,t,n,i){var a=void 0===i;a&&1===t||e.animatePart(e.getVisibilityTargets(),{opacity:t},!0,n,{isInitialization:a})}function r(e,t){return e&&t?e.verticalMargin==t.verticalMargin&&e.horizontalMargin==t.horizontalMargin:!e&&!t}function o(e){la.refreshElementsLayout(e)}function s(e,t){return e&&t?e.width==t.width&&e.height==t.height:!e&&!t}function l(e,t){return e&&t?e.left==t.left&&e.top==t.top&&e.width==t.width&&e.height==t.height:!e&&!t}function c(e,t,n,i,a){var r=void 0===i;e.animatePart(e.$element,{sizeAndPosition:t},void 0,n,{isInitialization:r,complete:a})}ai.registerDefinition(oi,{DesignElement:{features:[],properties:{showHoverEffects:{defaultValue:us,isNotForCustomProperty:!0},skinInformation:{defaultValue:f.returnEmptyObject},isSupportsMobile:{defaultValue:ds,isNotForCustomProperty:!0},isVisibleInMode:{isStateProperty:!0,defaultValue:us,shouldRefreshIfNotVisible:!0,onChange:function(e,t,n,i){if(!e.isContent()&&!e.isForTemplateUse()){if(t?e.showElement():e.hideElement(),Ha.Flags.IsInMobileContext.isTrue()&&e.isMasterPageElement.isTrue()&&Ha.refreshMobileMasterSectionInstanceVisibilty(),!e.isInitialized&&void 0===i)return;if(Ha.Flags.IsInMobileContext.isTrue()&&fa.inStateEditingMode())if(t)Ha.addInstanceToMobile(e,!0);else{if(e.hasCellWrapper.isTrue()){var a=e.getCellItem(),r=a.getRowParent();if(r){var o,s={};a.getWidth();f.eachEntry(r.cellItems,function(e,t){t.id!==a.id&&(o=t.getInstance()),s[t.getInstance().id]=t.getWidth()});r.removeCells([a])}}Ra.removeInstancesFromContainer(e,{shouldRemoveFromViewPort:!0}),la.refreshElementsLayout(e.parentInstance)}}}},isFixed:{defaultValue:ds,isStateProperty:!1,onChange:function(e,t,n,i){var e=this;e.isInitialized&&void 0!==i&&Ha.Flags.IsInMobileContext.isFalse()&&!e.isForTemplateUse()&&Er.performUpdateOnRenderingFinished(function(){e.refreshFixedState()}),e.refreshCustomZIndex()}},topZIndex:{isStyleProperty:!0,isStateProperty:!0,supportsStatesTransitionAnimation:!0,getResetValue:f.returnZero,defaultValue:f.returnZero},elementOpacity:{isStyleProperty:!0,isStateProperty:!0,supportsStatesTransitionAnimation:!0,valueConverter:function(e){return void 0!==e?f.adjustFraction(e,3):e},defaultValue:f.returnOne,getResetValue:f.returnOne,onChange:a},staticMargin:{defaultValue:function(){return{horizontalMargin:"",verticalMargin:""}},isStateProperty:!0,isStyleProperty:!1,disableInDesign:!0,supportsStatesTransitionAnimation:!0,valueConverter:ka.createRoundPropertyValueConverter(["horizontalMargin","verticalMargin"]),priority:999,scaleProperty:function(e){return{horizontalMargin:e.x,verticalMargin:e.x}},onChange:o,comparer:r,category:ci.SizeAndPosition},sizeAndPosition:{defaultValue:function(){return{left:0,width:100,top:0,height:100}},isStateProperty:!0,isStyleProperty:!1,disableInDesign:!0,supportsStatesTransitionAnimation:!0,valueConverter:ka.createRoundPropertyValueConverter(["left","width","top","height"]),priority:999,scaleProperty:function(e){return{left:e.x,width:e.x,top:e.y,height:e.y}},customStateValueGetter:function(e,t,n,i){var a=Oi[i];return a&&a.responsiveState?t:(t||(t={left:0,top:0,width:e.width,height:e.height}),{left:t.left+e.left,top:t.top+e.top,width:t.width+e.width,height:t.height+e.height})},customStateValueSetter:function(e,t,n,i){var a=Oi[i];return a&&a.responsiveState?t:{left:t.left-e.left,top:t.top-e.top,width:t.width-e.width,height:t.height-e.height}},onChange:c,comparer:l,category:ci.SizeAndPosition},lastResizingSize:{defaultValue:function(){return{width:0,height:0}},isNotForCustomProperty:!0,shouldJoinToUndo:!0,isStateProperty:!0,priority:999,scaleProperty:function(e){return{width:e.x,height:e.y}},comparer:s,category:ci.SizeAndPosition},isVisibleInLastSection:{defaultValue:us,isStateProperty:!0,onChange:function(e,t){this.classesManager.set({"is-not-visible-in-last-section":!t})}},isVisibleInLastDataItem:{defaultValue:us,isStateProperty:!0,onChange:function(e,t){this.classesManager.set({"is-not-visible-in-last-data-item":!t})}}},methods:{},lazyInitializationProperties:{isRelativePositionedFlag:function(){var e=this;return O.create(!1,{valueChangeCallback:function(t){e.classesManager.set({"relative-element":t})}})},duringResizing:O.createFalse,isInDragging:O.createFalse,sizeElementClassesManager:function(){var e=this;return Ie.createClassesFlags(function(){return e.getElementSizeBox()})},contentBoxElementClassesManager:function(){var e=this;return Ie.createClassesFlags(function(){return e.$elementContentBox})}},aggregatedMethods:{definitions:{changeMobileSupportState:function(e){var t=this,n=fa.getEditableStyleProperties(),i=Ha.getMobileState();e?f.eachItem(n,function(e,n){fa.setValueInCustomState(t,t.properties[n],i,t.getPropertyValue(n))}):f.eachItem(n,function(e,n){fa.resetCustomStateProperty(t,i,n)})},onContentSizeChange:cs,onElementAddedToContainer:cs,addFixedState:function(){var e=this;e.data.fixedStateAdded=!0,e.$element.addClass("positioned-fixed"),f(window).bind("scroll."+e.id+"isFixed",function(){ba.invalidateAreas(e,{updateSize:!1})}),Z.PageHeightChanged.bindAndExecute(function(){ba.invalidateAreas(e,{updateSize:!1})},"isFixedPageHeightChanged"+e.id)},removeFixedState:function(){var e=this;e.data.fixedStateAdded&&(e.data.fixedStateAdded=!1,Z.PageHeightChanged.unbind("isFixedPageHeightChanged"+e.id),la.refreshElementsLayout(this),e.$element.removeClass("positioned-fixed"),f(window).unbind("scroll."+e.id+"isFixed"))}},aggregations:{adjustInstanceToViewPort:function(){this.setPropertyValue("isVisible",!0)},updateInstanceToViewPort:function(){this.data.isUpdatedToViewPort=!0,this.canResizeVertically.setValue(this.hasHeight(),"hasHeight"),this.childIndex.setValue(-1),this.setPropertyValue("isVisible",!0),this.shouldDisplayOnMobile()||this.isDisplayed.setValue(!1,"insideThePageButNoMasterTemplateOrSection")},removeInstanceFromViewPort:function(){this.canResizeVertically.setValue(!0,"hasHeight"),this.childIndex.setValue(-1),this.data.isUpdatedToViewPort=!1,this.isDisplayed.setValue(!0,"insideThePageButNoMasterTemplateOrSection")},onInitializing:e}},triggers:[Li.MouseEnter,Li.MouseLeave,Li.MouseEnterArea,Li.MouseLeaveArea],supportedStates:[Oi.MouseOverState,Oi.MouseOverStateArea]}});var u=ti.prototype;u.refreshCustomZIndex=function(){var e=this;e.isFixed()?e.customZIndex.setValue(Z.MinPropertyZindex):e.customZIndex.setValue(void 0)},u.hasBinding=ds,u.getNoneContentSize=function(){var e,t=this;e=t.hasFeature(oi.HasBorder)?t.getPropertyValue("borderWidth"):{left:0,top:0,bottom:0,right:0};var n=t.getPropertyValue("padding");return void 0===n&&(n={left:0,top:0,bottom:0,right:0}),{width:parseInt(e.left)+parseInt(e.right)+parseInt(n.left)+parseInt(n.right),height:parseInt(e.top)+parseInt(e.bottom)+parseInt(n.top)+parseInt(n.bottom),widthLeft:parseInt(e.left)+parseInt(n.left),heightTop:parseInt(e.top)+parseInt(n.top),widthRight:parseInt(e.left)+parseInt(n.left),heightBottom:parseInt(e.bottom)+parseInt(n.bottom)}},u.refreshFixedState=function(){var e=this,t=e.getPropertyValue("isFixed");if(t)ua.reattachInstances([e],va.getCurrentPage());else if(e.parentInstance===va.getCurrentPage()){var n=ua.getSectionByPosition(e.getPosition(!0));n||(n=wr.getLastMainSection()),n&&(e.isMasterPageElement.isFalse()||n.isMasterPageElement.isTrue())&&ua.reattachInstances([e],n)}},u.getLayoutAffectedInstances=function(){return this.getChildInstances()},u.calculateActualOffset=function(){var e=this,t=0,n=0;if(e.hasVerticalLayout()){var i=e.getPropertyValue("margin");t=i.top}else{var a=e.getPropertyValue("sizeAndPosition");t=a.top}if(e.hasHorizontalLayout()){var i=e.getPropertyValue("margin");n=i.left}else{var a=e.getPropertyValue("sizeAndPosition");n=a.left}var r=e.parentInstance.calculateActualOffset();return{top:r.top+t,left:r.left+n}},u.calculateActualSize=function(){var e=this,t=e.getPropertyValue("sizeAndPosition"),n=t.width,i=t.height,a=e.isFillVertical(),r=e.isFillHorizontal();if(a||r){var o=e.getPropertyValue("margin"),s=e.parentInstance.calculateActualSize();r&&(n=s.width-o.left-o.right),a&&(i=s.height-o.top-o.bottom)}return{width:n,height:i}},u.getLastResizingSize=function(){return this.calcualateLastResizingSize()},u.calcualateLastResizingSize=function(){var e=this.getPropertyValue("lastResizingSize"),t=this.getPropertyValue("margin"),n=t?t.top+t.bottom:0;if(this.isFillVertical()){var i=this.parentInstance.calcualateLastResizingSize();if(i=f.quickExtend({},i),i.height)return i.height=i.height-n,i}return e},u.setLastResizingSize=cs,u.hasHeight=us,u.hasWidth=us,u.isRelativePositioned=function(){return this.isRelativePositionedFlag.isTrue()},u.getMinSize=function(){return{height:5,width:5}},u.getMaxSize=function(){if(this.parentInstance&&Ha.Flags.IsInMobileContext.isTrue()&&(this.shouldBeWithLayoutOnMobile()||this.parentInstance.getAutoLayoutProperties().width)){var e=this.parentInstance.getPropertyValue("padding"),t=this.parentInstance.getMaxSize();return t.width=t.width!==1/0?t.width-e.left-e.right:t.width,t}return{height:1/0,width:1/0}},u.toggleVisibilityInMode=function(e){this.setPropertyValue("isVisibleInMode",e)},u.isVisibleInMode=function(){var e=this.parentInstance,t=e?e.isVisibleInMode():!0;return t&&this.getPropertyValue("isVisibleInMode")},u.getShadowTarget=function(){return this.getBorderBox()},u.refreshTracking=function(){if(!Z.IsMobileClient){var e=this;e.isForTemplateUse()||(ha.hasTargetConnectionsForTriggers(e,Li.MouseEnterArea,Li.MouseLeaveArea,Oi.MouseOverStateArea)?ba.trackMouseOver(e):ba.stopMouseOverTracking(e))}},u.handleContentSizeChange=function(){var e=this;e.onContentSizeChange(),x.fireLazyEvent(e,"contentSizeChangedEvent"),la.requestUpdatePosition(e.getChildInstances())},u.isFixed=function(){return this.getPropertyValue("isFixed")&&!Z.IsMobileView&&Ha.Flags.IsInMobileContext.isFalse()},u.isRootInstance=function(){var e=this,t=e.hasParent();return!t&&(e.isForTemplateUse()||sa.isRootInstance(e)&&e.isContent()||sa.getRootInstance()===e)},u.isAttachedToVisibleNode=function(){var e=this,t=e.hasParent(),n=e.isRootInstance();return(n||t&&e.parentInstance.isInstanceVisible())&&!e.isDeleted},u.getStaticMargin=function(e){e=f.quickExtend({vertically:!0,horizontally:!0},e);var t=this,n={},i=this.getPropertyValue("staticMargin"),a=t.getPropertyValue("cellHorizontalAlignment");a===lt.None&&(a=va.getCoordinator().getPropertyValue("cellsHorizontalAlignment"));var r=va.getCoordinator().getPropertyValue("cellsVerticalAlignment");if(e.horizontally)switch(a){case lt.Center:n.marginLeft=i.horizontalMargin;break;case lt.Left:n.marginLeft=i.horizontalMargin;break;case lt.Right:n.marginRight=i.horizontalMargin}if(e.vertically)switch(r){case st.Middle:n.marginTop=i.verticalMargin;break;case st.Top:n.marginTop=i.verticalMargin;break;case st.Bottom:n.marginBottom=i.verticalMargin}return n},u.isSupportsMobile=function(){return this.getPropertyValue("isSupportsMobile")},u.toggleMobileSupport=function(e){var t=this;de.beginAtomicBatch();var n=f.asArray(t);t.isType(ri.TabsPanel)&&f.merge(n,t.childInstances),f.eachItem(n,function(t,n){n.changeMobileSupportState(e),n.setPropertyValue("isSupportsMobile",e)}),de.endAtomicBatch()},u.renderElement=function(e){var t=this,n=!1;n=t.getPropertyValue("tagName"),n===et.DIV&&(n=!1),e.startInstanceRendering(t,"element-size-box"),n&&e.openTag(n,"html-element"),e.openTag("div","element-main-box design-element-main-box"),e.openTag("div","element-background-layer element-border-target design-element-background-layer"),e.closeTag(),e.openTag("div","element-border-box element-border-target element-padding-box design-element-border-box"),e.openTag("div","element-content-box design-element-content-box"),e.openTag("div","content-container content-container-type element-size-box element-size-target"),t.renderElementContent(e),t.renderElementChildren(e),e.closeTag(),e.closeTag(),e.closeTag(),e.closeTag(),n&&e.closeTag(),e.finishInstanceRendering()},u.renderElementChildren=cs,u.renderElementContent=cs,u.isConvertedToMobile=function(){return!this.isContent()},u.isUpdatedToViewPort=function(){return this.data.isUpdatedToViewPort},u.shouldBeHiddenInMode=ds,u.getAutoLayoutProperties=function(){if(this.hasFeature(oi.HasLayout)){if(this.isDataListItem()&&this.isRootInstance())return{left:!0,top:!0,width:this.isDataListItem()};var e=this.getPropertyValue("fillLayout"),t=this.getPropertyValue("verticalLayout"),n=this.getPropertyValue("horizontalLayout");return{left:e.fillHorizontal||n!==la.Layout.normal,top:e.fillVertical||t!==la.Layout.normal,width:e.fillHorizontal,height:e.fillVertical}}return{}},u.shouldDisplayOnMobile=function(){return this.isPageChildInstance()||!(this.parentInstance&&this.parentInstance.isType(ri.page)&&this.isMasterPageElement.isFalse())&&!this.getPropertyValue("isFixed")},Z.Events.LastEventOnInitiailizatGlobal.one(function(){f(document).on("mouseenter",".design-element",function(e){if(Ha.Flags.IsInMobileContext.isFalse()&&!Z.IsMobileClient){var t=n(this);t&&t.activateTrigger(Li.MouseEnter,e)}}).on("mouseleave",".design-element",function(e){if(Ha.Flags.IsInMobileContext.isFalse()&&!Z.IsMobileClient){var t=n(this);t&&t.activateTrigger(Li.MouseLeave,e)}})}),f.cssHooks.sizeAndPosition={get:function(e){var t=n(e);return t?t.getActualPropertyValue("sizeAndPosition"):void 0},set:function(e,t){var i=n(e);i&&(i.setActualPropertyValue("sizeAndPosition",t),la.refreshElementsLayout(i))}},f.fx.step.sizeAndPosition=function(e){f.cssHooks.sizeAndPosition.set(e.elem,{left:null===e.end.left?null:Math.floor(e.start.left+e.pos*(e.end.left-e.start.left)),top:null===e.end.top?null:Math.floor(e.start.top+e.pos*(e.end.top-e.start.top)),width:null===e.end.width?null:Math.floor(e.start.width+e.pos*(e.end.width-e.start.width)),height:null===e.end.height?null:Math.floor(e.start.height+e.pos*(e.end.height-e.start.height))})}}(),function(e){ei.extendProperties(e,{attributes:{defaultValue:gs},metaProps:{defaultValue:gs},metaItemType:{defaultValue:gs},metaTitle:{defaultValue:gs}}),ei.hookAggregatedMethods(e,{switchToPreview:function(){var e=this,t=e.$element,n=e.getPropertyValue("metaTitle"),i=e.getPropertyValue("metaItemType");i&&t.attr("itemtype",i),n&&t.attr("title",n)},switchToDesign:void 0})}(oi.DesignElement);var Eo={StyleBinding:1,PropertyBinding:2};!function(e){function t(e,t,n){var i=e.data.propertiesToStyleFieldsMap,a=e.getPropertyValue("styleBindingFields");return i&&i[t]&&(a[f.getKeys(i[t])[0]].type===n||!ur.isDuringEditing())}function n(e){e.styleBindingsGroup.clear();var t=(e.getPropertyValue("styleBindingId"),e.getPropertyValue("styleBindingFields"));if(e.hasBindingToFields()){var n={};e.data.propertiesToStyleFieldsMap=n,f.eachEntry(t,function(t,i){var a=or.getFieldValueChangedEvent(e,i,t);a&&x.createEventListener(a,function(){de.disableOperationsRecording("refreshStyleBinding"),f.eachEntry(i.properties,function(t){fa.refreshPrioritisedCustomStates(e,t),fa.recomputePropertyValue(e,t,!1)}),de.enableOperationsRecording("refreshStyleBinding")}).addToGroup(e.styleBindingsGroup),f.eachEntry(i.properties,function(e,i){var a=f.objectGet(n,[e,t]);a=f.quickExtend({},a,i),f.objectSet(n,[e,t],a)})}),f.eachEntry(n,function(t){fa.refreshPrioritisedCustomStates(e,e.properties[t])}),ba.isElementVisible(e)?e.styleBindingsGroup.activateAndExecuteAll():e.styleBindingsGroup.deactivateAll()}}ei.extendProperties(e,{styleBindingId:{defaultValue:gs},styleBindingFields:{defaultValue:gs}}),ei.extendElementInstanceMethods({hasBindingToFields:function(){var e=this.getPropertyValue("styleBindingId"),t=this.getPropertyValue("styleBindingFields");return e&&t&&f.count(t)>0},setSkinInstanceBox:function(e){this.data.skinInstanceBox=e},getSkinInstanceBox:function(){return ur.isDuringEditing()&&ur.getCurrentInstance()?ur.getCurrentInstance():this.data.skinInstanceBox},getMainSkinInstance:function(){var e=this.getSkinInstanceBox();return e?e.getMainSkinInstance():void 0},getStyleFieldData:function(e,t){t=f.extend({},t);var n=this,i=t.stateName,a=t.sourceId,r=t.defaultValue,o=t.customStateData,s={value:f.extendIfObject(r),animation:void 0},l=n.properties[e],c=n.getStyleFieldsNames(e),u=n.getPropertyValue("styleBindingFields");if(f.eachEntry(c,function(e,t){if(t){var r=u[e],o=or.evaluateSkinFieldStateValue(n,{bindingData:r,fieldName:e,stateName:i,sourceId:a});if(o){var l=f.extendIfObject(o.value),c=f.extendIfObject(o.animation);void 0!==l&&(t.boundToProperty?s.value=l:f.eachEntry(t.fields,function(e){f.objectSet(s,["value",e],l)})),s.animation=f.extendValueWithDefaultValue(c,s.animation)}}}),void 0!==l.descriptor.valueConverter&&void 0!==s.value&&null!==s.value)for(var d=f.asArray(l.descriptor.valueConverter),g=0;g<d.length;g++)s.value=d[g](s.value);return void 0===s.value&&o&&f.isPlainObject(o.stateValue)&&(s.value=f.extend({},o.stateValue)),s},setStyleBindingId:function(e){this.setPropertyValue("styleBindingId",e)},getStyleBindingId:function(){return this.getPropertyValue("styleBindingId")},getPrioritizedStates:function(e){var t=this,n=t.data.propertiesToStyleFieldsMap,i=[],a=t.getSkinInstanceBox();if(n&&a){var r=n[e],o=t.getStyleBindingId(),s=t.getPropertyValue("styleBindingFields"),l=f.getKeys(r);if(s[l[0]].type===Eo.StyleBinding){var c=lr.getStatesInformation(o,l,function(e){return e.affectingInstanceID=a.id,e.styleFieldState=!0,e});i=f.merge(c,i)}}return i},isPropertyBoundToStyleField:function(e){return t(this,e,Eo.StyleBinding)},getStyleFieldsNames:function(e){var t=this.data.propertiesToStyleFieldsMap;return t?t[e]:void 0},refreshStyleBinding:function(){n(this)}}),ei.hookAggregatedMethods(e,{onCreation:function(){this.styleBindingsGroup=x.createEventListenersGroup()},onPropertiesChanged:function(e){var t=this;t.isInitialized&&f.containsOneOfKeys(e,"styleBindingId","styleBindingFields")&&n(t)},switchToPreview:function(){var e=this,t=e.data.propertiesToStyleFieldsMap;t&&f.eachEntry(t,function(t){fa.refreshPrioritisedCustomStates(e,e.properties[t])})},onInitialized:function(){var e=this;e.bindings.push(e.visibilityChangedEvent.bind(function(){la.ElementsFramesUpdateBatch.whenFinished(function(){ba.isElementVisible(e)?e.styleBindingsGroup.activateAndExecuteAll():e.styleBindingsGroup.deactivateAll()},e.id+"propertiesbindingvisibilty")})),n(e)}})}(oi.DesignElement),function(e){function t(e){var t=e.getActualPropertyValue("glow"),n=e.getActualPropertyValue("innerGlow"),a=e.getActualPropertyValue("dropShadow"),r=e.getActualPropertyValue("dropInnerShadow");e.getShadowTarget().css("boxShadow",i(t,n,a,r))}function i(e,t,n,i){var a=new E(",");return e&&(e.blur>0||e.spread>0)&&a.append("0 0 {0}px {1}px {2}",e.blur,e.spread,e.color),t&&(t.blur>0||t.spread>0)&&a.append("inset 0 0 {0}px {1}px {2}",t.blur,t.spread,t.color),n&&(0!=n.left||0!=n.top||n.blur>0||n.spread>0)&&a.append("{0}px {1}px {2}px {3}px {4}",n.left,n.top,n.blur,n.spread,n.color),i&&(0!=i.left||0!=i.top||i.blur>0||i.spread>0)&&a.append("inset {0}px {1}px {2}px {3}px {4}",i.left,i.top,i.blur,i.spread,i.color),""+a}ei.extendProperties(e,{shadow:{title:void 0,isStateProperty:!0,isStyleProperty:!0,supportsThemeBinding:["color"],supportsStatesTransitionAnimation:!0,valueConverter:ka.createRoundPropertyValueConverter(["blur","spread","top","left"]),defaultValue:function(){return{top:0,left:0,spread:0,blur:0,color:"black"}},category:ci.Shadow,onChange:function(e,t,n){e.isInitialized&&t&&(t=f.extend({},t,{color:Ka.evaluateColorBinding(t.color,!0)}),e.animatePart(e.$element,{dropShadow:t},!1,n))}},glow:{title:void 0,isStateProperty:!0,isStyleProperty:!0,supportsStatesTransitionAnimation:!0,supportsThemeBinding:["color"],defaultValue:function(){return{spread:0,blur:0,color:"black"}},valueConverter:ka.createRoundPropertyValueConverter(["blur","spread"]),onChange:function(e,t,n){e.isInitialized&&t&&(t=f.extend({},t,{color:Ka.evaluateColorBinding(t.color,!0)}),e.animatePart(e.$element,{glow:t},!1,n))},category:ci.Shadow}}),ei.hookAggregatedMethods(e,{onInitialized:function(){var e,t,n=this,a=f.quickExtend({},n.getPropertyValue("glow")),r=f.quickExtend({},n.getPropertyValue("shadow"));n.hasFeature(oi.HasInnerShadow)&&(e=f.quickExtend({},n.getPropertyValue("innerGlow")),t=f.quickExtend({},n.getPropertyValue("innerShadow")),t.color=Ka.evaluateColorBinding(t.color,!0),e.color=Ka.evaluateColorBinding(e.color,!0),n.setActualPropertyValue("innerGlow",e),n.setActualPropertyValue("dropInnerShadow",t)),a.color=Ka.evaluateColorBinding(a.color,!0),r.color=Ka.evaluateColorBinding(r.color,!0),n.setActualPropertyValue("glow",a),n.setActualPropertyValue("dropShadow",r);var o=i(a,e,r,t);""!==o&&n.getShadowTarget().css("boxShadow",o)}}),f.eachItem(["glow","innerGlow","dropShadow","dropInnerShadow"],function(e,i){f.cssHooks[i]={get:function(e){var t=n(e);return t?t.getActualPropertyValue(i):void 0},set:function(e,a){var r=n(e);if(r){var o=r.getActualPropertyValue(i);r.setActualPropertyValue(i,f.extend({},o,a)),t(r)}}},f.fx.step[i]=function(e){e.colorInit||(e.startColor=f.getRGBA(e.start.color),e.endColor=f.getRGBA(e.end.color),e.begin=f.quickExtend({},e.start),e.colorInit=!0);var t="rgba("+Math.max(Math.min(parseInt(e.pos*(e.endColor[0]-e.startColor[0])+e.startColor[0],10),255),0)+","+Math.max(Math.min(parseInt(e.pos*(e.endColor[1]-e.startColor[1])+e.startColor[1],10),255),0)+","+Math.max(Math.min(parseInt(e.pos*(e.endColor[2]-e.startColor[2])+e.startColor[2],10),255),0)+","+Math.max(Math.min(parseFloat(e.pos*(e.endColor[3]-e.startColor[3])+e.startColor[3],10),1),0)+")",n={blur:e.begin.blur+e.pos*(e.end.blur-e.begin.blur),spread:e.begin.spread+e.pos*(e.end.spread-e.begin.spread),color:t};"dropShadow"!==i&&"dropInnerShadow"!==i||(n.top=e.start.top+e.pos*(e.end.top-e.start.top),n.left=e.start.left+e.pos*(e.end.left-e.start.left)),f.cssHooks[i].set(e.elem,n)}})}(oi.DesignElement),function(e){ei.extendProperties(e,{isParallaxBackground:{defaultValue:ds},parallaxBackgroundSpeed:{defaultValue:function(){return.5}},isParallaxElement:{defaultValue:function(){return{isActive:!1,speed:1,delay:0}}},effectsOptions:{defaultValue:function(){return{isParallax:!1,oneTimeAnimation:!1,duration:1200,startDistance:200,startVisibility:.8,distance:300,measureDistanceType:be.Visibility,delay:0,distanceDelay:0,runInLoop:!1,flyDirection:qe.Right,direction:"horizontal",movementDistanceHorizontally:200,movementDistanceVertically:0,autoStartDistanceSettings:!0,autoDistanceSettings:!0}}},effects:{defaultValue:gs}}),ei.extendElementInstanceMethods({getInitializedTargetConnections:function(){var t=this,n=t.getBaseInitializedTargetConnections();if(t.hasFeature(e)){var i=t.getPropertyValue("effectsOptions"),a=t.getPropertyValue("effects");if(a&&a.length>0&&"None"!==a[0].name){var r=t.id+"parallaxEffect",o={id:r,sourceElementID:t.id,behaviourName:"ScrollingEffect",options:f.quickExtend({triggerType:Fi.PageLoad,effects:a},i)};n[r]=o}if(t.getPropertyValue("isParallaxBackground")&&f.isPlainObject(t.getPropertyValue("imageUrl"))&&t.hasFeature(oi.PageSection)&&!t.isFixed()){var r=t.id+"parallaxBackground",o={id:r,sourceElementID:t.id,behaviourName:"ParallaxImage",options:{triggerType:Fi.PageLoad}};n[r]=o}var s=t.getPropertyValue("isParallaxElement");if(s.isActive&&!t.isFixed()){var r=t.id+"parallaxElement",o={id:r,sourceElementID:t.id,behaviourName:"ParallaxElement",options:{triggerType:Fi.PageLoad,speed:s.speed,delay:s.delay}};n[r]=o}}return n}})}(oi.DesignElement),function(e){function t(e,t){var n=e.getPropertyValue("binding"),i={};f.eachEntry(n.dataFields,function(e,n){e===bi.Data+""?i[e]=t:i[e]=t[n.name]}),e.onBoundValueReady(i,t),e.isInRefreshingBinding.setFalse("refreshBinding")}function n(e){e.isInRefreshingBinding.setFalse("refreshBinding")}ei.extendProperties(e,{dataFields:{},binding:{isNotForCustomProperty:!0,defaultValue:gs,onChange:function(e,t,n,i){i&&e.data.callbackID&&pi[i.dataSourceName]&&e.data.callbackID.unbind(),e.isInRefreshingBinding.setTrue("bindingChanged"),fa.UpdateBatch.start(),e.data.propertiesBindings&&(f.eachEntry(e.data.propertiesBindings,function(e,t){t.clearBinding()}),delete e.data.propertiesBindings),t&&t.dataSourceName&&(e.data.propertiesBindings=e.createBindingFieldsToProperties(),pi[t.dataSourceName]&&(e.data.callbackID=pi[t.dataSourceName].itemUpdatedEvent.bind(t.dataItemID,function(){e.refreshBinding()}))),e.refreshBinding(),fa.UpdateBatch.finish(),e.isInRefreshingBinding.setFalse("bindingChanged")}}}),ei.extendElementInstanceMethods({setPropertyValueWithOrWithOutBinding:function(e,t,n){var i=this;i.data.propertiesBindings&&i.data.propertiesBindings[t]?i.data.propertiesBindings[t].setValue(e):n||i.setPropertyValue(t,e)},setBindingValueToProperty:function(e,t,n){var i=this;i.data.propertiesBindings&&i.data.propertiesBindings[t]?i.data.propertiesBindings[t].setValue(e):n||i.setPropertyValue(t,e)},setBindingValuesToProperties:function(e){var t=this;f.eachEntry(e,function(e,n){t.setBindingValueToProperty(n,e)})},isBoundToProperty:function(e){return ui[e].isBound(this)},setBinding:function(e,t,n){this.setPropertiesValues({binding:{dataSourceName:e,dataFields:n,dataItemID:t}})},refreshBinding:function(){var e=this;e.performWhenVisible(function(){var i=e.getPropertyValue("binding");i&&pi[i.dataSourceName]&&(e.isInRefreshingBinding.setTrue("refreshBinding"),pi[i.dataSourceName].fetchDataItem(i.dataItemID,i.dataFields,function(n){t(e,n)},function(t){n(e,t)}))},e.id+"refreshBinding-has-simple-binding")},isBound:function(e){var t=this.getPropertyValue("binding");return null!==t&&void 0!==t.dataFields[e]},getBindingFields:function(e){var t=this.getPropertyValue("binding"),n=["dataFields"];return void 0!==e&&n.push(e),f.objectGet(t,n,function(e){return!e})},createBindingFieldsToProperties:f.returnEmptyObject}),ei.extendAggregatedDefinitions(e,{onBoundValueReady:cs}),ei.hookAggregatedMethods(e,{onCreation:function(){this.isInRefreshingBinding=O.createConditionalNegative()},onRemove:function(){var e=this,t=e.getPropertyValue("binding");t&&null!==t&&e.data.callbackID&&pi[t.dataSourceName]&&pi[t.dataSourceName].getCollectionItems().itemUpdatedEvent.unbind(e.data.callbackID)},onInitialized:function(){this.refreshBinding()}})}(oi.DesignElement),function(){ai.registerDefinition(oi,{HasSkinBinding:{methods:{getSkinBinding:cs,getSkinId:function(){var e=this.getSkinBinding();void 0!==e.index?e.index:"";return e.skinName+e.index},getStyleObject:function(){var e=this.getSkinBinding(),t=lr.getStyle(e.skinName+e.index);return t},isSupportsMobile:function(){return this.getStyleObject().isSupportsMobile()&&this.getPropertyValue("isSupportsMobile")||this.isMobileOnlyStyle()},isMobileOnlyStyle:ds},aggregatedMethods:{aggregations:{changeMobileSupportState:function(e){this.isMobileOnlyStyle()||this.getStyleObject().toggleMobileSupport(e,!0)},onInitializing:function(){var e=this,t=e.getSkinBinding(),n=this.getSkinId();if(!lr.isStyleExist(n)){var i=or.getSkinHierarchy(t);if(!i)return void sa.removeInstances([e]);var a=i.fieldsToValues,r=i.statesAnimations;lr.addStyle(n,a,r)}}}}}})}(),function(){ai.registerDefinition(oi,{HasResponsiveItem:{defaultProperties:{display:function(){return rt.Fixed}},properties:{display:{isStateProperty:!0,onChange:function(e,t){var n=t===rt.Fixed;e.canResizeHorizontally.setValue(n,"displayProperty")}},cellItem:{isStateProperty:!0,notForUndoProperty:!0,defaultValue:gs},cellHorizontalAlignment:{isStateProperty:!0,defaultValue:function(){return lt.None},onChange:function(e){e.refreshCellHorizontalAlignment()}}},methods:{shouldBeBlockElementInMobile:ds,isBlock:function(){return this.getPropertyValue("display")===rt.Block||this.isFillHorizontal()},addToCellItem:function(){var e=this;this.$element.appendTo(this.getCellItem().getElementContainer()),e.classesManager.set({"is-in-cell-item":!0}),e.sizeElementClassesManager.set({"is-cell-item-size-box":!0}),e.contentBoxElementClassesManager.set({"is-cell-item":!0}),this.refreshCellHorizontalAlignment(),e.hasFeature(oi.HasLayout)&&e.propertyChangedEvent.bindAndExecute("display",function(){var t=e.getPropertyValue("display")===rt.Fixed;e.classesManager.set({"design-element-inline-block":t}),e.sizeElementClassesManager.set({"is-size-box-inline-block":t}),la.refreshElementsLayout(e)},"mobileFillLayout")},removeElementFromCellItem:function(){this.$element.detach(),this.classesManager.set({"is-in-cell-item":!1,"design-element-inline-block":!1}),this.sizeElementClassesManager.set({"is-cell-item-size-box":!1,"is-size-box-inline-block":!1}),this.contentBoxElementClassesManager.set({"is-cell-item":!1})},reAttachElementToContainer:function(){this.$element.appendTo(this.$container),this.classesManager.set({"is-in-cell-item":!1,"design-element-inline-block":!1}),this.sizeElementClassesManager.set({"is-cell-item-size-box":!1,"is-size-box-inline-block":!1}),this.contentBoxElementClassesManager.set({"is-cell-item":!1}),this.propertyChangedEvent.unbind("mobileFillLayout"),this.canResizeHorizontally.setValue(!0,"mobileFillLayout")},getCellItem:function(){return this.data.cellItem},setCellItem:function(e){this.data.cellItem=e,this.hasCellWrapper.setValue(void 0!==e&&null!==e)},refreshCellHorizontalAlignment:function(){if(this.getCellItem()){var e=this.getPropertyValue("cellHorizontalAlignment");e!==lt.None?this.getCellItem().$element.css({"text-align":"{0}".format(e)}):this.getCellItem().$element.css({"text-align":""})}},updateCellItemData:function(e){this.setPropertyValue("cellItem",e?e.getDataForSave():null)},getCellItemData:function(){return this.getPropertyValue("cellItem")},removeCellItem:function(){this.updateCellItemData(null),delete this.data.cellItem},shouldBeWithLayoutOnMobile:function(){return!this.isContent()},getMaxSize:function(){var e=this;if(Ha.Flags.IsInMobileContext.isTrue()&&e.shouldBeWithLayoutOnMobile()){if(e.hasCellWrapper.isTrue()&&e.getCellItem()&&!e.isDataListItem()&&!e.parentInstance.isType(ri.userBox)&&!e.parentInstance.isType(ri.Tab)){var t=va.getCoordinator().getPropertyValue("innerRowPadding");return{height:1/0,width:e.getCellItem().getCellWidth()-2*t}}if(this.parentInstance){var n=this.parentInstance.getPropertyValue("padding");n=f.quickExtend({top:0,bottom:0,left:0,right:0},n);var i=this.parentInstance.getMaxSize();return this.parentInstance.hasFeature(oi.PageSection)?{height:i.height,width:Ra.getRowContentWidth()-n.left-n.right}:(i.width=i.width!==1/0?i.width-n.left-n.right:i.width,this.parentInstance.hasFeature(oi.HasResponsiveItem)&&this.parentInstance.isBlock()||this.parentInstance.getAutoLayoutProperties().width||this.parentInstance.isType(ri.group)?i:{height:i.height,width:Math.min(i.width,this.parentInstance.getPropertyValue("sizeAndPosition").width-n.left-n.right)})}}return{height:1/0,width:1/0}},isRelativePositioned:function(){var e=this;return e.isRelativePositionedFlag.isTrue()||Ha.Flags.IsActivated.isTrue()&&this.isConvertedToMobile()},getAutoLayoutProperties:function($super){var e=$super.call(this);return this.hasCellWrapper.isTrue()?f.quickExtend(e,{left:this.isBlock(),width:this.isBlock()}):this.isRelativePositioned()&&this.isBlock()?f.quickExtend(e,{left:!0,width:!0}):e}}}})}(),function(){function e(e){var t=e.data.thumbsResolver?e.data.thumbsResolver.DataSourceResolver:void 0;return t?t.resolveDataSourceDefinition(e):e.getDataSourceDefinition()}ai.registerDefinition(oi,{HasDataSource:{properties:{dataInfo:{defaultValue:gs,isNotForCustomProperty:!0,priority:-997,supportsBinding:!0,isBound:function(e){return e.isBound(mi.dataInfo.getContentType())},onChange:function(e,t){if(t&&e.elementType===ri.Menu&&void 0===t.itemsMap&&t.currentData&&(t.currentData.itemsMap&&!f.isEmptyObject(t.currentData.itemsMap)?t.itemsMap=t.currentData.itemsMap:t.itemsMap={},t.currentData.itemsMap=void 0),e.isInitialized){e.getDataSource().setDataInfo();var n=e.getDataSource().getAllDataItems(),i={},a=e.getPropertyValue("itemsStyle");a&&(f.eachEntry(a,function(e,t){n[e]&&(i[e]=t)}),e.setPropertyValue("itemsStyle",i))}}},itemFields:{}},methods:{getDataSource:function(){return this.data.dataSource},getDataSourceName:function(){return this.getDataSource().name},getDataSourceDefinition:function(){return hi.InlineDataSource},createBindingFieldsToProperties:function($super){
var e=this,t=$super.call(e),n=mi.dataInfo.getContentType();return e.isBound(n)&&(t[ui.dataInfo.name]=Po.create(e,{propertyName:ui.dataInfo.name})),t},hasBinding:function(){return ui.dataInfo.isBound(this)}},aggregatedMethods:{definitions:{onDataSourceRefresh:cs},aggregations:{onCreation:function(){var t=this,n=t.data.dataSource=fi.loadDataSource(e(t),t.id,void 0,t);t.instanceRemoving.one(function(){n.clear(),delete pi[n.name]}),_r.tryPreLoadDataSource(t)},onInitialized:function(){this.getDataSource().setDataInfo()},onBoundValueReady:function(e){var t=mi.dataInfo.getContentType();this.setBindingValueToProperty(void 0===e[t]?null:e[t],ui.dataInfo.name)}}}}})}(),function(){ai.registerDefinition(oi,{HasDynamicDataSource:{properties:{dynamicItemsPanel:{defaultValue:gs},currentDataSource:{defaultValue:gs},manageItemsPanel:{defaultValue:gs},masterDetailDialog:{defaultValue:gs},dynamicDataSourceProperty:{defaultValue:gs}},methods:{},aggregatedMethods:{aggregations:{}}}})}(),function(){function e(e,t,n){var i=e.$element;i.stop("propertyPadding",!0);var a={instancePadding:{left:t.left,top:t.top,bottom:t.bottom,right:t.right}};void 0===n?i.css(a):(i.animate(a,{duration:n.transitionDuration,queue:"propertyPadding"}),i.dequeue("propertyPadding"))}function t(e,t){e.handleContentSizeChange(t),la.refreshElementsLayout(e)}ai.registerDefinition(oi,{HasPadding:{properties:{padding:{isStateProperty:!0,isStyleProperty:!0,priority:996,defaultValue:function(){return{top:0,left:0,bottom:0,right:0}},valueConverter:ka.createRoundPropertyValueConverter(["top","left","bottom","right"]),category:ci.Padding,supportsStatesTransitionAnimation:!0,onChange:e,scaleProperty:function(e){return{bottom:e.y,right:e.x,top:e.y,left:e.x}}}}}}),f.cssHooks.instancePadding={get:function(e){var t=n(e);return t?t.getActualPropertyValue("padding"):void 0},set:function(e,i){var a=n(e);a&&(a.getPaddingBox().css({paddingLeft:i.left,paddingTop:i.top,paddingBottom:i.bottom,paddingRight:i.right}),a.setActualPropertyValue("padding",i),t(a))}},f.fx.step.instancePadding=function(e){f.cssHooks.instancePadding.set(e.elem,{left:null===e.end.left?null:Math.floor(e.start.left+e.pos*(e.end.left-e.start.left)),top:null===e.end.top?null:Math.floor(e.start.top+e.pos*(e.end.top-e.start.top)),bottom:null===e.end.bottom?null:Math.floor(e.start.bottom+e.pos*(e.end.bottom-e.start.bottom)),right:null===e.end.right?null:Math.floor(e.start.right+e.pos*(e.end.right-e.start.right))})}}(),function(){ai.registerDefinition(oi,{HasBackgroundOverlay:{properties:{backgroundOverlay:{isStyleProperty:!0,isStateProperty:!0,supportsStatesTransitionAnimation:!0,supportsThemeBinding:!0,defaultValue:f.returnTransparent,getResetValue:f.returnTransparent,category:ci.Background,onChange:function(e,t,n,i){t=Ka.evaluateColorBinding(t,!0);var a=e.getBackgroundLayer(oa.BackgroundOverlay);if("transparent"===t||a||(a=e.addBackgroundLayer(oa.BackgroundOverlay,function(){var e=new E;return e.append('<span class="element-overlay-layer element-border-target" style="background-color: transparent;">'),e.conditionalAppend(!1,'<span class="element-background-target-explorer"></span>'),e.append("</span>"),f(""+e)}),e.setBorderTarget(a)),a){var r=f.getBackgroundType(t),o=f.getBackgroundType(i);r===xo.Color&&o===xo.Color||(n=void 0);var s=void 0===o,l=a;s||l.clearBackground(),r===xo.Gradient?l.setGradient(f.valueOrDefault(t.orientation,ct.Vertical),t.gradient):e.animatePart(l,{rgbaBackground:t},!1,n,{isInitialization:s})}}}}}})}();var To={StopTransition:1,IgnoreNavigation:2,EnqueueNavigation:3};!function(){function e(){var e=this;e.stopAutoNavigation();var t=e.getAutoNavigationDuration();t>0&&(e.data.autoNavigationDuration=window.setInterval(function(){ba.isElementVisible(e)&&e.navigate(1),e.isDeleted&&e.stopAutoNavigation()},1e3*t))}function t(){var e=this;e.data.autoNavigationDuration&&(window.clearInterval(e.data.autoNavigationDuration),e.data.autoNavigationDuration=void 0)}ai.registerDefinition(oi,{Navigatable:{properties:{pagesData:{},pagesFields:{category:ci.Other,onChange:function(e,t,n){var i=e.getFieldsInformation(),a=e.getFieldsCollection();a.postponeUpdates(),n&&f.eachEntry(n,function(e){t[e]||i.remove(e)}),f.eachEntry(t,function(e,t){n&&n[e]||i.put(t)}),a.unPostponeUpdates()},defaultValue:function(){return{index:{type:"index",title:void 0,name:"index",isDefaultField:!0},title:{type:"title",title:void 0,name:"title",isDefaultField:!0}}},isStateProperty:!0},entranceAnimation:{category:ci.OwningType,defaultValue:function(){return wt.Slide.name},isStateProperty:!0},entranceAnimationSpeed:{category:ci.OwningType,defaultValue:function(){return ht.Fast},isStateProperty:!0},entranceAnimationDirection:{category:ci.OwningType,defaultValue:function(){return Z.AnimationDirections.Left},isStateProperty:!0},exitAnimation:{category:ci.OwningType,defaultValue:function(){return wt.Slide.name},isStateProperty:!0},exitAnimationSpeed:{category:ci.OwningType,defaultValue:function(){return ht.Fast},isStateProperty:!0},exitAnimationDirection:{category:ci.OwningType,defaultValue:function(){return Z.AnimationDirections.Right},isStateProperty:!0},transitionOrder:{defaultValue:function(){return vn.Simultaneously},isStateProperty:!1},autoNavigationDuration:{isStateProperty:!0,defaultValue:function(){return 0},category:ci.OwningType,onChange:function(e){e.startAutoNavigation()}},navigationDuringTransitionBehaviour:{defaultValue:function(){return To.StopTransition},isStateProperty:!1}},methods:{navigateTo:cs,navigateToTabIndex:function(e,t,n,i){this.showItem(e,t,n,i)},navigate:function(e,t,n,i){var a=this,r=a.getNavigatableInstances(),o=r.length;if(n=f.valueOrDefault(n,cs),o>=1){var s=(a.getCurrentItem().getChildIndex()+e)%o;0>s&&(s+=o),a.navigateToTabIndex(s,t,n,i)}else n()},showItem:cs,getUrlAddressForPage:cs,getNavigatableInstances:function(){return this.childInstances},getAutoNavigationDuration:function(){return 0},getItemsCollection:function(){return this.data.itemsCollection},getFieldsCollection:function(){return this.data.fieldsCollection},getItemsInformation:function(){return this.data.itemsInforamtion},getFieldsInformation:function(){return this.data.fieldsInformation},getElementDataContent:function(){return this.getCurrentItem().getElementContent()},startAutoNavigation:e,stopAutoNavigation:t,getCurrentPageIndex:function(){var e=this,t=e.getCurrentItem(),n=0;return t&&(n=t.getChildIndex(),(!n||0>n)&&(n=0)),n}},lazyInitializationProperties:{currentItemChangedEvent:x.create,currentItemFinishChanging:x.create,itemsRefreshed:x.create},aggregatedMethods:{aggregations:{switchToPreview:function(){this.currentItemChangedEvent.fireNew({prevItem:void 0,currentItem:this.getCurrentItem()}),this.startAutoNavigation()},onCreation:function(){var e=this;e.data.itemsInforamtion=new $t,e.data.itemsCollection=jt.create(e.data.itemsInforamtion),e.data.fieldsInformation=new $t({idFunction:function(e){return e.name}}),e.data.fieldsCollection=jt.create(e.data.fieldsInformation)},onInitialized:function(){var e=this;e.data.itemsCollection.itemsChangedEvent.bindAndExecute(function(){0!==e.getNavigatableInstances().length&&(de.disableOperationsRecording("instance.data.itemsCollection.itemsChangedEvent"),aa.beginReorderingBatch(),f.eachEntry(e.data.itemsCollection.getItems(),function(e,t){var n=sa.getInstanceByID(t.id);n&&(n.setPropertyValue("name",t.title),n.setPropertyValue("order",t.index))}),aa.endReorderingBatch(),de.enableOperationsRecording("instance.data.itemsCollection.itemsChangedEvent"))}),e.data.fieldsInformation.itemsRemovedEvent.bind(function(t){var n=e.data.itemsInforamtion.getItemsValues();f.eachItem(n,function(e,n){f.eachItem(t,function(e,t){delete n[t.name]})}),e.data.itemsInforamtion.put(n)})}}}}})}(),function(){ai.registerDefinition(oi,{Selectable:void 0})}(),function(){function e(e){a(e)}function t(e){var t=e.getBackgroundLayer(oa.BackgroundImage);if(!t){t=e.addBackgroundLayer(oa.BackgroundImage,function(){return e.getImageLayerTemplate()});var n=Tt.createDisplayController(t);e.data.imageLayerDisplayController=n,n.setValue(e.showImageLayer.isTrue())}return t}function n(e){var n=e.data.imageBox;return n||(n=t(e).makeImageBoxNew({autoLoad:!1,layout:s(e),viewPort:e.data.imageBoxViewport,position:e.getPropertyValue("imagePosition")}),n.setVirtualViewport(e.data.imageBoxVirtualViewport),e.data.imageBox=n,e.actualPropertyValueChanged.bindAndExecute("borderRadius",function(){var t=e.getActualPropertyValue("borderRadius");t||(t={topLeft:0,topRight:0,bottomLeft:0,bottomRight:0}),n.setBorderRadius(t)}),e.actualPropertyValueChanged.bindAndExecute("borderWidth",function(){e.handleImageBoxBorderWidthChange()}),e.visibilityChangedEvent.bindAndExecute(function(){o(e)}),n.viewportChangedEvent.bind(function(){a(e)}),e.onImageBoxCreated(n)),n}function i(e){return e.split(" ").map(function(e){return e[0]}).join("").slice(0,3)}function a(e,t){var n=u(e);Vn.requestIndpendentWriteOperation(function(){r(e,t,n)},e.id+"updateCurrentImage")}function r(e,t,a){var r=e.getPropertyValue("imageUrl"),s=null,l=null,u=!1,d="",g=void 0,f=e.getImageBox();if(""!==r&&null!==r&&void 0!==r){f=n(e);var p=f.getViewportForLayout();if(0===p.width||0===p.height)return;if(void 0!==r.imageWidth&&void 0!==r.imageHeight&&(g={width:r.imageWidth,height:r.imageHeight}),r.onErrorImage&&f.stateChangedEvent.bind(function(t){t===un.ImageError&&e.setPropertyValueWithOrWithOutBinding(r.onErrorImage,"imageUrl")}),""===r.imagePath&&r.hasPlaceholder){u=!0,d=r.title;var h=f.$element[0],m=h.clientHeight?h.clientHeight+"px":"";return void f.$element.children().html('<div style="background-color:rgba(0,0,0,0.25);border-radius:50%;line-height:'+m+';text-align:center;color:white;">'+i(d)+"</div>")}l=se.resolveImageUrl(r,void 0,a);var v=c(e);s=v?v.resolveDataSourceDefinition(r,p,f.getLayout(),g):se.resolveImageUrlBasedOnLayout(r,p,f.getLayout(),g,a)}var y=e.data.currentBaseImageUrl===l&&e.data.currentImageUrl!==s;t&&(y=!0),e.data.currentImageUrl=s,e.data.currentBaseImageUrl=l,f&&(f.setImage({imageUrl:s,imageSize:g}),o(e,y))}function o(e,t){if(ba.isElementVisible(e)){var n=e.getImageBox();n&&n.loadImage(t)}}function s(e){var t=e.getPropertyValue("imageLayout");return t===cn.Custom?e.getPropertyValue("customLayout"):t}function l(e,n,i,a){var r=void 0===a;r&&1===n||e.animatePart(t(e),{opacity:n},!0,i,{isInitialization:r})}function c(e){return e.data.thumbsResolver?e.data.thumbsResolver.ImageResolver:void 0}function u(e){var t=void 0;return e.isTypeOf(ri.VideoPlayer)&&(t=e.getImageLoadingOptions()),t}ai.registerPropertiesCategories({BackgroundImage:{title:void 0,iconClass:"sprite-icon sprite-property-category-image"}}),ai.registerDefinition(oi,{HasImage:{properties:{imageUrl:{title:"Image",isStyleProperty:!0,isStateProperty:!0,defaultValue:f.returnEmptyString,supportsBinding:!0,isBound:function(e){return e.isBound(mi.image.getContentType())||e.isBound(mi.icon.getContentType())||e.isBound(mi.video.getContentType())},onChange:e,category:ci.BackgroundImage},imageLayout:{title:"Image Layout",isStyleProperty:!0,isStateProperty:!0,isBound:function(e){return e.isBound(mi.image.getContentType())||e.isBound(mi.icon.getContentType())||e.isBound(mi.video.getContentType())},defaultValue:function(){return cn.Cover},category:ci.BackgroundImage},imagePosition:{title:"Image Position",isStyleProperty:!0,isStateProperty:!0,defaultValue:function(){return{vertical:"center",horizontal:"center"}},isBound:function(e){return e.isBound(mi.image.getContentType())||e.isBound(mi.icon.getContentType())||e.isBound(mi.video.getContentType())},category:ci.BackgroundImage},origImage:{title:"OrigImage",isStyleProperty:!0,isStateProperty:!0,defaultValue:f.returnEmptyString,supportsBinding:!1,onChange:cs,category:ci.BackgroundImage},customLayout:{title:"Custom Layout",isStateProperty:!0,defaultValue:cs,category:ci.BackgroundImage},imageOpacity:{title:"Image Opacity",isStyleProperty:!0,isStateProperty:!0,supportsStatesTransitionAnimation:!0,getResetValue:f.returnOne,defaultValue:f.returnOne,valueConverter:function(e){return void 0===e&&(e=1),f.adjustFraction(e,3)},onChange:l,category:ci.BackgroundImage}},methods:{useImageLayer:function(){return t(this)},getImageLayerTemplate:function(){return f('<div class="element-background-image design-element-background-image"></div>')},forceImageBoxCreation:ds,getImageBox:function(){return this.data.imageBox},handleImageBoxBorderWidthChange:function(){var e=this,t=e.data.imageBox,n=e.getActualPropertyValue("borderWidth");n||(n={left:0,top:0,right:0,bottom:0}),t.setBorderWidth(n)},setImageBoxVirtualViewport:function(e){this.data.imageBoxVirtualViewport=e;var t=this.getImageBox();t&&t.setVirtualViewport(e)},setImageBoxViewport:function(e,t){this.data.imageBoxViewport=e;var n=this.getImageBox();n&&n.setViewPort(e,t)}},aggregatedMethods:{definitions:{onImageBoxCreated:function(){this.imageBoxCreatedFlag.setTrue()}},aggregations:{onCreation:function(){var e=this;e.imageBoxCreatedFlag=O.create(!1),e.showImageLayer=O.createConditionalPositive({valueChangeCallback:function(t){var n=e.data.imageLayerDisplayController;n&&n.setValue(t)}})},onPropertiesChanged:function(e){var t=this,n=t.getImageBox();n&&(f.containsOneOfKeys(e,"imageLayout","customLayout")&&(n.setLayout(s(t)),a(t)),f.containsOneOfKeys(e,"imagePosition")&&n.setPosition(t.getPropertyValue("imagePosition")))},onInitializing:function(){var e=this;this.data.currentImageUrl=null,this.data.currentBaseImageUrl=null,this.forceImageBoxCreation()&&Vn.requestIndpendentWriteOperation(function(){n(e)},e.id+"initializeImageBox")}}}}})}();var xo={Color:1,Gradient:2,Image:3,Texture:4};!function(e){e.getBackgroundType=function(t){if(void 0!==t){if(e.isPlainObject(t)){if(void 0!==t.color)return xo.Color;if(void 0!==t.gradient)return xo.Gradient;if(void 0!==t.imagePath)return xo.Image}return xo.Color}}}(p),function(){function e(e,t,n,i,a){var r=void 0===a,o=e.getBackgroundTarget();r||o.clearBackground(),t=Ka.evaluateColorBinding(t),i===xo.Gradient?o.setGradient(f.valueOrDefault(t.orientation,ct.Vertical),t.gradient):(t=f.Color(t).toCSS(),e.animatePart(o,{rgbaBackground:t},!1,n,{isInitialization:r}))}ai.registerPropertiesCategories({Background:{title:void 0,iconClass:"sprite-icon sprite-property-category-background",shortTitle:"Background"}}),ai.registerDefinition(oi,{HasBackground:{properties:{backgroundColor:{isStyleProperty:!0,isStateProperty:!0,supportsStatesTransitionAnimation:!0,supportsThemeBinding:!0,defaultValue:f.returnTransparent,getResetValue:f.returnTransparent,category:ci.Background,onChange:function(t,n,i,a){var r=f.getBackgroundType(n),o=f.getBackgroundType(a);r===xo.Color&&o===xo.Color||(i=void 0),t.handleBackgroundUpdate(t.$element,n,i,r,o)||e(t,n,i,r,o)}}},methods:{handleBackgroundUpdate:ds}}})}(),function(){ai.registerDefinition(oi,{HasBackgroundImage:{features:[oi.HasImage,oi.HasBackgroundOverlay],methods:{autoCalculateBackgroundViewPort:us},aggregatedMethods:{aggregations:{changeMobileSupportState:function(e){var t=this,n=Ha.getMobileState();e?fa.setValueInCustomState(t,t.properties.imageUrl,n,t.getPropertyValue("imageUrl")):fa.resetCustomStateProperty(t,n,"imageUrl")},onInitializing:function(){var e=this,t=x.createEventListenersGroup();e.sizeChangedEvent.bind(function(){e.autoCalculateBackgroundViewPort()&&Vn.requestIndpendentWriteOperation(function(){e.setImageBoxViewport(e.getSize())},e.id+"setImageBoxViewport")});var n=f.weakID(),i=x.createEventListener([Fa.ViewPortChanged,e.sizeChangedEvent],function(){Er.performOnFramesLayoutUpdade(function(){if(a.isTrue()){var t=e.getSize(),n=Fa.getViewPort();e.setImageBoxVirtualViewport({width:t.width,height:Math.max(t.height,n.height)})}},n)}).addToGroup(t),a=O.createConditionalPositive();a.setFalse("ElementVisible"),a.setFalse("HasParallaxBackground"),a.createValueListener(function(e){e?i.activateAndExecuteNew():i.deactivate()}).activate().addToGroup(t),x.createEventListener(e.visibilityChangedEvent,function(){var t=ba.isElementVisible(e);a.setValue(t,"ElementVisible")}).addToGroup(t).activateAndExecuteNew();var r=O.createConditionalPositive();r.setFalse("EnabledByUser"),r.setFalse("Supported"),r.createValueListener(function(t){a.setValue(t,"HasParallaxBackground"),t||e.setImageBoxVirtualViewport(void 0)}).addToGroup(t).activate(),x.createEventListener({name:"isParallaxBackground",event:e.propertyChangedEvent},function(){r.setValue(e.getPropertyValue("isParallaxBackground"),"EnabledByUser")}).addToGroup(t).activateAndExecuteNew(),x.createEventListener([Ha.Flags.IsInMobileContext.valueChangedEvent],function(){r.setValue(Ha.Flags.IsInMobileContext.isFalse(),"Supported")}).addToGroup(t).activateAndExecuteNew(),e.instanceRemoving.one(function(){t.disposeAll()})}}}}})}(),function(){function e(e){e.data.prevArrangementOptions=e.dataLayoutController.getLastArrangementOptionsByCurrentDevice(),e.hasFeature(oi.Navigatable)&&e.getItemsCollection().postponeUpdates()}function t(e){e.hasFeature(oi.Navigatable)&&e.getItemsCollection().unPostponeUpdates(),x.fireLazyEvent(e,"reArrangingFinished"),e.reArrangingFinishedWasFired=!0}function n(e){var t=e.dataLayoutController.getLastArrangementOptions();if(t&&t.options){var n=t.options,i=e.getSize(),a=e.data.prevArrangementOptions,o=n.shouldPush;o&&pr.recalaculateSiblingsAndParentAreas();var s=Aa.adjustDataListToContent(e);if(la.refreshElementsLayout(e),e.alignHorizontal(),e.alignVertical(),o&&s){var l=pr.supportsPreCalculationOfDiffHeights(),c=l?e.calculateDiffHeight(i,s,a.contentSize,t.contentSize):void 0;void 0!==c&&0!==c&&pr.requestPushing(e,c)}la.requestUpdatePosition(e.getDescendingInstances(!0))}r(e)}function i(e,t){t=f.quickExtend({},e.getArrangementOptions(),t),e.dataLayoutController.reArrangeTheLayout(t)}function a(e){e.reArrangementDisabled.setValue(!0,"inRearrange"),de.disableOperationsRecording("beforeChangingDomFactory"),Er.startRenderingBatch()}function r(e){Er.finishRenderingBatch(),de.enableOperationsRecording("beforeChangingDomFactory"),e.reArrangementDisabled.setValue(!1,"inRearrange")}ai.registerDefinition(oi,{HasArrangement:{methods:{calculateDiffHeight:function(e,t){return t.height-e.height},alignHorizontal:function(){var e=this;if(e.hasHorizontalAlign()){var t=e.getPropertyValue("horizontalAlign");e.data.$arrangementContentHolder.css("text-align",t),ba.invalidateAreas(e.getDescendingInstances(),{updateSize:!1})}},addChildElement:function(e){return e.isContent()?this.data.$arrangementContentHolder.append(e.$element):this.getElementContent().append(e.$element)},creationFunction:function(e){var t=new E;t.append('<div class="absolute-fill">'),t.append('<div class="arrangement-content-holder absolute-fill"></div>'),t.append('<div class="relative-child-elements-content-holder positioned"></div>'),t.append("</div>");var n=f(""+t);return e.data.$arrangementContentHolder=f(".arrangement-content-holder",n).toggleLayerEventsForwarding(!0),e.data.$relativeChildElementContentHolder=f(".relative-child-elements-content-holder",n).toggleLayerEventsForwarding(!0),n},reArrangeTheTemplates:function(e){var t=this;if(t.isInstanceVisible()){t.dataLayoutController.getArrangement();i(t,f.quickExtend(e,{shouldFetch:t.data.shouldFetch})),t.data.shouldFetch=void 0}},requestArrangement:function(e){var t=this;e=f.extend({shouldFetch:!0},e),e.shouldFetch&&(t.data.shouldFetch=!0),t.reArrangementDisabled.isTrue()||na.IsElementInFullScreen.isTrue()||t.addArrangementRequest(e)},addArrangementRequest:function(e){var t=this;la.LayoutContentOperationsSet.requestOperation(function(){t.reArrangeTheTemplates(e)},t.getArrangementRequestName())},getArrangementRequestName:function(){return this.id+"requestArrangement"},getArrangementOptions:function(){var e=this.getPropertyValue("dataLayoutOptions");return f.extend({},e,{instanceContentSize:this.getContentSize(),scale:void 0,keepItemSize:!0})},getCalculatedPropertyValue:function($super,e){return"dataItemSize"===e?this.dataLayoutController.getLastArrangementOptionsByCurrentDevice().fixedSize:$super.call(this,e)},setCalculatedPropertyValue:function($super,e,t,n,i){var a=this;"dataItemSize"===e?pr.Flags.EnablePushing.onceTrue(function(){de.disableOperationsRecording("dataItemSize"+a.id),a.requestArrangement({fixedSize:t,shouldPush:!0}),de.enableOperationsRecording("dataItemSize"+a.id)}):$super.call(a,e,t,n,i)}},aggregatedMethods:{aggregations:{onCreation:function(){var i=this,o=ns.create(i),s=f.firstArgProxy(a,i);i.dataItemsController=o,i.dataLayoutController=is.create(o,{onArrangementStarted:f.firstArgProxy(e,i),onArrangementFinished:f.firstArgProxy(t,i),startInitializingLayoutCallback:s,finishInitializingLayoutCallback:f.firstArgProxy(r,i),startArrangingCallback:s,finishArrangingCallback:f.firstArgProxy(n,i),setParentContent:function(e){i.data.$arrangementContentHolder.empty().append(e)},getContainerSize:function(){return i.getContentSize()}})},onPropertiesChanged:function(e){var t=this;if(f.containsOneOfKeys(e,"dataLayout")){var n=t.getPropertyValue("dataLayout");t.dataLayoutController.setArrangement(n.name)}},onInitializing:function(){var e=this;e.dataItemsController.initialize();var t=e.getPropertyValue("dataLayout");t&&t.name&&e.dataLayoutController.setArrangement(t.name)}}},properties:{dataLayout:{isStateProperty:!0,priority:-998,defaultValue:gs},dataLayoutOptions:{defaultValue:function(){return{elementsPerPage:4,lineSpacing:15,cols:2,rows:5,columnSpacing:15,colsSpacing:15,rowsSpacing:15,rotation:0,R:100}},isStateProperty:!0,priority:-998,valueConverter:ka.createRoundPropertyValueConverter(["lineSpacing","columnSpacing","colsSpacing","rowsSpacing","R","numberOfRows"]),scaleProperty:function(e){return{lineSpacing:e.x,columnSpacing:e.y,colsSpacing:e.x,rowsSpacing:e.y,R:e.x}}}},calculatedProperties:["dataItemSize"]}})}(),function(){ai.registerDefinition(oi,{HasContent:{methods:{hasVerticalAlign:ds,hasHorizontalAlign:ds,alignHorizontal:function(){var e=this;if(e.hasHorizontalAlign()){var t=e.getPropertyValue("horizontalAlign");e.getElementContent().positionHorizontally(t,void 0,{skipPositionCheck:!0})}la.refreshElementsLayout(e.childInstances)},alignVertical:function(){var e=this;e.hasVerticalAlign()&&e.getElementContent().positionVertically(this.getPropertyValue("verticalAlign"),void 0,{skipPositionCheck:!0}),la.refreshElementsLayout(e.childInstances)},alignContentHorizontal:function(){if(this.hasContentHorizontalAlign()){var e=this.getPropertyValue("horizontalContentAlign");e!==lt.None?this.getElementContent().css({"text-align":"{0}".format(e)}):this.getElementContent().css({"text-align":""})}},hasContentHorizontalAlign:ds,getElementDataContentSize:function(e){var t,n=this.getElementDataContent();e&&(t=n.css("font-family"),n.css("font-family","arial"));var i=n.outerSize();return e&&n.css("font-family",t),i},calculateSizeContent:function(e){var t=this;if(t.InstancePropertiesInitialized.isTrue()){e=e||this.getElementDataContentSize();var n=t.getNoneContentSize(),i=t.getSize(),a=i.height-n.height,r=e.height-a;if(0!==r)return i=f.quickExtend({},i),i.height=i.height+r,i}else;},getNewContentSize:function(e){return this.calculateNewContentSize(e)},calculateNewContentSize:function(e){e=f.extend({horizontally:!0,vertically:!0},e);var t,n=this;if(n.hasFeature(oi.DataList))t=n.dataLayoutController.getSize();else{var i=n.getElementDataContent();if(!i)return;t=i.outerSize()}if(t){var a,r,o=n.getNoneContentSize();return e.horizontally&&(a=void 0===e.minWidth||t.width+o.width>e.minWidth?t.width+o.width:e.minWidth),e.vertically&&(r=void 0===e.minHeight||t.height+o.height>e.minHeight?t.height+o.height:e.minHeight),{width:a,height:r}}},adjustSizeToContent:function(e){e=f.extend({horizontally:!0,vertically:!0},e);var t=this,n=t.getNewContentSize({minWidth:e.minWidth,minHeight:e.minHeight});return n?(la.LayoutContentOperationsSet.requestOperation(function(){t.hasFeature(oi.DataList)&&t.reArrangementDisabled.setValue(!0,"adjustingSize"),ca.setInstancesSize(t,{width:e.horizontally?n.width:void 0,height:e.vertically?n.height:void 0},{preserveVerticalMargins:!0,preserveHorizontalMargins:!0}),t.hasFeature(oi.DataList)&&t.reArrangementDisabled.setValue(!1,"adjustingSize")},t.id+"adjustDataListToContent"),n):void 0},getElementDataContent:function(){return this.getElementContent()},whenInstanceContentHeightChanged:function(e,t){t=f.extend({forceUpdate:!1,onlyGrow:!1,adjustForWidth:!1},t);var n=t.forceUpdate,i=this;if(n||!i.duringResizing.isTrue()&&!i.data.disableElementSizeUpdate){var a=ba.getElementSize(i),r=i.calculateNormalizedHeight(e,t.adjustForWidth);if(t.onlyGrow&&!t.adjustForWidth&&(r=Math.max(a.height,r)),r!==a.height){de.disableOperationsRecording("contentChange"),Er.startRenderingBatch(),pr.recalaculateSiblingsAndParentAreas(),i.isFillVertical()||la.LayoutContentOperationsSet.requestOperation(function(){ca.setInstancesSize(i,{height:r},{preserveVerticalMargins:!0})},i.id+"whenInstanceContentHeightChanged");var o=r-a.height;pr.requestPushing(i,o),Er.finishRenderingBatch(),de.enableOperationsRecording("contentChange")}}},calculateNormalizedHeight:function(e,t){var n=this,i=n.getSize(),a=n.getNoneContentSize(),r=e+a.height;if(t)return r;var o,s=n.getLastResizingSize(),l=s?f.valueOrDefault(s.height,0):0;return o=Ha.Flags.IsInMobileContext.isTrue()&&0===l?Math.max(i.height,r):Math.max(l<=i.height?l:i.height,r)}},properties:{verticalAlign:{isStateProperty:!0,isStyleProperty:!0,category:ci.Layout,defaultValue:function(){return at.Centered},onChange:function(e){e.alignVertical()}},horizontalAlign:{isStateProperty:!0,isStyleProperty:!0,category:ci.Layout,defaultValue:function(){return ot.Centered},onChange:function(e){e.alignHorizontal(),ba.invalidateAreas(e.getDescendingInstances(),{updateSize:!1})}},horizontalContentAlign:{isStateProperty:!0,isStyleProperty:!0,category:ci.Layout,defaultValue:function(){return ot.Centered},onChange:function(e){e.alignContentHorizontal(),ba.invalidateAreas(e.getDescendingInstances(),{updateSize:!1})}}}}})}(),function(){ai.registerDefinition(oi,{HasTemplates:{properties:{fieldsTemplates:{isStateProperty:!0,defaultValue:f.returnEmptyObject,preSaveProcessing:function(e){return f.eachEntry(e,function(e,t){f.eachEntry(t,function(e,t){var n=t.hierarchy.structures[0].elementProperties.skinBinding;if(n&&n.hierarchy){var i=n.skinName+n.index,a=lr.getStyle(i);if(a){var r=lr.getStyleInformation(i);n.hierarchy.fieldsToValues=r.fields,n.hierarchy.statesAnimations=r.statesAnimations}}})}),e},comparer:function(e,t){var n=!0;return f.eachEntry(e,function(e,i){return f.eachEntry(i,function(i,a){return t[e]&&t[e][a.id]?void 0:(n=!1,!1)}),n?void 0:!1}),n},priority:-998,onChange:function(e){e.refreshTemplates()}}},methods:{getSkinBinding:function(){var e=this.getDefaultTemplate();return f.cloneObject(e.hierarchy.structures[0].elementProperties.skinBinding)},isMobileOnlyStyle:function(){return!!fa.getPropertyValueInCustomState(this.properties.fieldsTemplates,Ha.MobileStateName,va.getCoordinator().id,this)},updateSkinBindingFromEditingTemplate:function(e,t,n){var i=this;if(i.hasFeature(oi.HasFormData)){var a=f.extend({},i.getPropertyValue("fieldsTemplates"));delete a.TextArea,i.setPropertyValue("fieldsTemplates",a)}return i.replaceTemplate(t,{fieldName:n?n:e.getFieldName()}),i},refreshTemplates:function(){de.disableOperationsRecording("refreshTemplates");var e=this;f.eachItem(e.getItemsControllers(),function(t,n){var i=n.getDataItemId(),a=e.getDataSource().getItem(i),r=e.getDefaultTemplate(a.fieldTypeName).hierarchy;r.id!==n.getTemplateStructure().id&&(n.setTemplateStructure(r),e.resetItemTemplateSize(n,!0))}),de.enableOperationsRecording("refreshTemplates")},refreshTemplatesSize:function(e){var t=this;f.eachItem(t.getItemsControllers(),function(n,i){t.resetItemTemplateSize(i,e)})},resetItemTemplateSize:function(e,t){var n=this,i=n.getPropertyValue("itemsStyle"),a=e.getDataItemId(),r=n.getDataSource().getItem(a),o=n.getDefaultTemplate(r?r.fieldTypeName:void 0).hierarchy;(t||o.id!==e.getTemplateStructure().id)&&i[a]&&e.setSize(f.extend({},i[a].sizeAndPosition))},getDefaultTemplate:function(e){e=e?e:this.elementType.itemName;var t=f.getValues(this.getFieldsTemplates()[e])[0];return t},getFieldsTemplates:function(){var e=this.getPropertyValue("fieldsTemplates"),t=f.quickExtend({},e);return f.eachEntry(e,function(e,n){t[e]=f.quickExtend({},n)}),t}},features:[oi.HasSkinBinding]}})}(),function(){function e(e,t,n){if(fa.notifyCalculatedPropertyChange(e,"calculatedTextColor"),null===t){var i=Xa.getElementTextStyle(e);i&&(t=i.color)}null===t?e.getTextElements().css("color",""):(t=Ka.evaluateColorBinding(t,!0),e.animatePart(e.getTextElements(),{color:t},!1,n))}function t(e,t,n){if(fa.notifyCalculatedPropertyChange(e,"calculatedFontSize"),null===t){var i=Xa.getElementTextStyle(e);i&&(t=i.fontSize)}null===t?e.getTextElements().css("font-size",""):e.animatePart(e.getTextElements(),{"font-size":t},!1,n,{step:function(){e.refreshTextLayout()},complete:function(){e.refreshTextLayout()}})}function n(e,t,n,i){if(null===n)e.getTextElements().css(t,"");else{var a={};a[t]=n,e.animatePart(e.getTextElements(),a,!1,i,{step:function(){e.refreshTextLayout()},complete:function(){e.refreshTextLayout()}})}}function i(e,t){switch(t.unit){case Qe.Percentages:e.getTextElements().css("line-height",t.percentages/100);break;default:e.getTextElements().css("line-height",1.2)}}function a(e,t){if(fa.notifyCalculatedPropertyChange(e,"calculatedFontFamily"),null===t){var n=Xa.getElementTextStyle(e);n&&(t=n.fontFamily)}t=er.evaluateFontBinding(t),e.getTextElements().css("font-family",null!==t?t:"")}function r(e,t){e.hasFeature(oi.HasRichContent)||e.getTextElements().toggleClass("label-text-bold",t.bold===!0).toggleClass("label-text-underline",t.underline===!0).toggleClass("label-text-italic",t.italic===!0)}ai.registerPropertiesCategories({TextStyle:{title:void 0,shortTitle:void 0,iconClass:"sprite-icon sprite-property-category-text"}}),ai.registerDefinition(oi,{HasText:{className:"has-text",properties:{namedTextStyle:{defaultValue:gs,isStateProperty:!0,isStyleProperty:!0,onChange:function(e){la.layoutUpdateBatch.start(),fa.invalidateProperty(e,"font"),fa.invalidateProperty(e,"fontSize"),fa.invalidateProperty(e,"fontColor"),la.layoutUpdateBatch.finish()}},fontColor:{category:ci.TextStyle,isStateProperty:!0,isStyleProperty:!0,isTextStyleProperty:!0,defaultValue:function(){return"black"},supportsStatesTransitionAnimation:!0,supportsThemeBinding:function(e,t){if(null!==e)return Ka.isColorBinding(e);var n=Xa.getElementTextStyle(t);return n?Ka.isColorBinding(n.color):!1},onChange:e},textShadow:{isStateProperty:!0,isStyleProperty:!0,supportsThemeBinding:function(e){return e?f.any(e,function(e){return Ka.isColorBinding(e.color)}):!1},supportsStatesTransitionAnimation:!1,category:ci.TextStyle,defaultValue:function(){return[]},valueConverter:function(e){return e&&e.length>0?f.quickUnique(e,function(e){return"{0}-{1}-{2}-{3}".format(e.top,e.left,e.blur,e.color)}):e},onChange:function(e,t,n,i){var a=void 0===i;if(!a||t.length>0){var r;if(t.length>0){for(var o=[],s=0;s<t.length;s++){var l=t[s],c=Ka.evaluateColorBinding(l.color,!0);c=c?f.Color(c).toCSS():"black",o.push("{0}px {1}px {2}px {3}".format(f.valueOrDefault(l.left,0),f.valueOrDefault(l.top,0),f.valueOrDefault(l.blur,0),c))}r=o.join(",")}else r="none";e.getTextElements().css({textShadow:r})}}},lineHeight:{isStateProperty:!0,isStyleProperty:!0,category:ci.TextStyle,defaultValue:function(){return{pixels:14,percentages:120,unit:Qe.Percentages}},onChange:i,scaleProperty:function(e){return{pixels:e.y}}},letterSpacing:{isStateProperty:!0,isStyleProperty:!0,category:ci.TextStyle,defaultValue:function(){return 0},supportsStatesTransitionAnimation:!0,onChange:function(e,t,i){n(e,"letter-spacing",t,i)},valueConverter:ka.createRoundPropertyValueConverter(),scaleProperty:function(e){return e.y}},fontSize:{isStateProperty:!0,isStyleProperty:!0,isTextStyleProperty:!0,category:ci.TextStyle,defaultValue:function(){return 30},supportsStatesTransitionAnimation:!0,onChange:t,valueConverter:ka.createRoundPropertyValueConverter(),scaleProperty:function(e){
return e.y}},font:{category:ci.TextStyle,defaultValue:function(){return"Arial"},supportsThemeFontBinding:function(e,t){if(null!==e)return er.isFontBinding(e);var n=Xa.getElementTextStyle(t);return n?er.isFontBinding(n.fontFamily):!1},isStateProperty:!0,isStyleProperty:!0,isTextStyleProperty:!0,onChange:a},contentTextTransform:{title:"Text Transform",isStateProperty:!1,isStyleProperty:!0,category:ci.TextStyle,defaultValue:function(){return $e.None},onChange:function(e,t){e.getTextElements().toggleClass("has-text-transform-uppercase",t===$e.Uppercase).toggleClass("has-text-transform-capitalize",t===$e.Capitalize),e.refreshTextLayout()}},isBold:{title:"Bold",isStateProperty:!0,isStyleProperty:!0,category:ci.TextStyle,defaultValue:ds,onChange:function(e,t){e.getTextElements().toggleClass("has-text-is-bold",!!t),e.refreshTextLayout()}},isItalic:{title:"Italic",isStateProperty:!0,isStyleProperty:!0,category:ci.TextStyle,defaultValue:ds,onChange:function(e,t){e.getTextElements().toggleClass("has-text-is-italic",!!t),e.refreshTextLayout()}},isUnderline:{title:"Underline",isStateProperty:!0,isStyleProperty:!0,category:ci.TextStyle,defaultValue:ds,onChange:function(e,t){e.getTextElements().toggleClass("has-text-is-underline",!!t),e.refreshTextLayout()}},textStyle:{isStateProperty:!0,isStyleProperty:!0,category:ci.TextStyle,defaultValue:function(){return{bold:!1,underline:!1,italic:!1}},onChange:r},textDirection:{isStateProperty:!1,isStyleProperty:!0,category:ci.TextStyle,defaultValue:function(){return it.LeftToRight},onChange:function(e,t){e.getTextElements().toggleClass("dir-ltr",t===it.LeftToRight),e.getTextElements().toggleClass("dir-rtl",t===it.RightToLeft)}}},calculatedProperties:["calculatedFontFamily","calculatedFontSize","calculatedTextColor"],methods:{refreshTextLayout:cs,getTextElements:function(){return f([])},alignHorizontal:function(){var e=this;if(e.hasHorizontalAlign()){var t=e.getPropertyValue("horizontalAlign");this.getTextElements().css({"text-align":null!==t?t:""})}},calculateFontSize:function(){var e=this,t=e.getPropertyValue(ui.fontSize.name);if(null===t){var n=Xa.getElementTextStyle(e);n&&(t=n.fontSize)}return null===t&&(t=0),t},calculateDecimalLineHeight:function(){var e=this,t=e.getPropertyValue(ui.lineHeight.name),n=1.2;switch(t.unit){case Qe.Percentages:n=t.percentages/100}return n},getCalculatedPropertyValue:function($super,e){switch(e){case"calculatedFontFamily":return Xa.evaluateElementTextStyle(this,Ua.FontFamily,this.getPropertyValue("font"));case"calculatedFontSize":return Xa.evaluateElementTextStyle(this,Ua.FontSize,this.getPropertyValue("fontSize"));case"calculatedTextColor":return Xa.evaluateElementTextStyle(this,Ua.TextColor,this.getPropertyValue("fontColor"));default:return $super.call(this,e)}},setCalculatedPropertyValue:function($super,e,t,n,i){switch(e){case"calculatedFontFamily":this.setPropertyValue("font",t);break;case"calculatedFontSize":this.setPropertyValue("fontSize",t);break;case"calculatedTextColor":this.setPropertyValue("fontColor",t);break;default:$super.call(this,e,t,n,i)}}},aggregatedMethods:{aggregations:{onInitializing:function(){var e=this;e.getPropertyValue("lineHeight");e.data.textStyleClass=Ie.createContextClass({getTarget:function(){return e.getTextElements()}})}}}}})}(),function(){function e(e,t,n){n&&e.parentInstance&&e.parentInstance.isType(ri.page)&&(e.$container=e.parentInstance.addChildElement(e)),la.refreshElementsLayout(e)}function t(e,t,n,i,a){e.animatePart(e.$element,{layoutMargin:t},void 0,n,{complete:a})}ai.registerDefinition(oi,{HasLayout:{properties:{verticalLayout:{category:ci.Layout,defaultValue:function(){return la.Layout.normal},isStateProperty:!0,priority:998,onChange:function(t,n,i,a){la.beginLayoutUpdateBatch(),e(t,n,a),la.endLayoutUpdateBatch()}},horizontalLayout:{category:ci.Layout,isStateProperty:!0,priority:998,defaultValue:function(){return la.Layout.normal},onChange:function(t,n,i,a){la.beginLayoutUpdateBatch(),e(t,n,a),la.endLayoutUpdateBatch()}},fillLayout:{comparer:function(e,t){return(e&&t||e===t)&&e.fillHorizontal===t.fillHorizontal&&e.fillVertical===t.fillVertical},priority:997,isStateProperty:!0,category:ci.Layout,defaultValue:function(){return{fillVertical:!1,fillHorizontal:!1}},onChange:function(t,n,i,a){la.beginLayoutUpdateBatch(),t.classesManager.set({"block-element":n.fillHorizontal}),e(t,n,a),la.endLayoutUpdateBatch()}},margin:{isStateProperty:!0,defaultValue:function(){return{top:0,left:0,bottom:0,right:0}},supportsStatesTransitionAnimation:!0,priority:997,valueConverter:ka.createRoundPropertyValueConverter(["top","left","bottom","right"]),scaleProperty:function(e){return{bottom:e.y,right:e.x,top:e.y,left:e.x}},category:ci.Margin,onChange:t}},calculatedProperties:["horizontalDocking","verticalDocking"],methods:{isFillHorizontal:function(){var e=this,t=e.getPropertyValue("fillLayout");return t?t.fillHorizontal:!1},isFillVertical:function(){var e=this,t=e.getPropertyValue("fillLayout");return t?t.fillVertical:!1},hasHorizontalLayout:function(){return this.getPropertyValue("horizontalLayout")!==la.Layout.normal||this.isFillHorizontal()},hasVerticalLayout:function(){return this.getPropertyValue("verticalLayout")!==la.Layout.normal||this.isFillVertical()},isVerticallyDocked:function(e){return e?this.getPropertyValue("verticalLayout")===e:this.getPropertyValue("verticalLayout")!==la.Layout.normal},getParentContentSize:function(){return this.hasCellWrapper.isTrue()?this.getCellItem().getArea():ba.getContentSize(this.parentInstance)},getCalculatedPropertyValue:function($super,e){switch(e){case"horizontalDocking":var t=this.getPropertyValue("fillLayout","fillHorizontal");if(t)return ut.Stretched;var n=this.getPropertyValue("horizontalLayout");switch(n){case la.Layout.dockLeft:return ut.Left;case la.Layout.centered:return ut.Centered;case la.Layout.dockRight:return ut.Right;default:return ut.None}case"verticalDocking":var i=this.getPropertyValue("fillLayout","fillVertical");if(i)return dt.Stretched;var a=this.getPropertyValue("verticalLayout");switch(a){case la.Layout.dockTop:return dt.Top;case la.Layout.centered:return dt.Centered;case la.Layout.dockBottom:return dt.Bottom;default:return dt.None}default:return $super.call(this,e)}},setCalculatedPropertyValue:function($super,e,t,n,i){switch(e){case"horizontalDocking":switch(this.setPropertyFieldValue("fillLayout","fillHorizontal",t===ut.Stretched),t){case ut.Left:this.setPropertyValue("horizontalLayout",la.Layout.dockLeft);break;case ut.Right:this.setPropertyValue("horizontalLayout",la.Layout.dockRight);break;case ut.Centered:this.setPropertyValue("horizontalLayout",la.Layout.centered);break;case ut.None:this.setPropertyValue("horizontalLayout",la.Layout.normal)}break;case"verticalDocking":switch(this.setPropertyFieldValue("fillLayout","fillVertical",t===dt.Stretched),t){case dt.Top:this.setPropertyValue("verticalLayout",la.Layout.dockTop);break;case dt.Bottom:this.setPropertyValue("verticalLayout",la.Layout.dockBottom);break;case dt.Centered:this.setPropertyValue("verticalLayout",la.Layout.centered);break;case dt.None:this.setPropertyValue("verticalLayout",la.Layout.normal)}break;default:$super.call(this,e,t,n,i)}}},aggregatedMethods:{aggregations:{updateInstanceToViewPort:function(){this.hasFeature(oi.HasResponsiveItem)&&this.shouldBeWithLayoutOnMobile()&&this.setPropertyFieldValue("fillLayout","fillHorizontal",!1)},adjustInstanceToViewPort:function(){this.hasFeature(oi.HasResponsiveItem)&&this.shouldBeWithLayoutOnMobile()&&(this.setPropertyFieldsValues("fillLayout",{fillVertical:!1,fillHorizontal:!1}),this.setPropertyValue("verticalLayout",la.Layout.normal),this.setPropertyValue("horizontalLayout",la.Layout.normal),this.setPropertyValue("margin",0))},onInitialized:function(){var e=this;x.bind([e.duringResizing.valueChangedEvent,e.isInDragging.valueChangedEvent],function(){var t=e.duringResizing.isTrue()||e.isInDragging.isTrue(),n=e.data.marginMarkings;if(n)for(var i in n)n[i].quickToggle(t)})}}}}}),f.cssHooks.layoutMargin={get:function(e){var t=n(e);return t?t.currentMargin:void 0},set:function(e,t){var i=n(e);i&&(i.currentMargin=t,la.refreshElementsLayout(i))}},f.fx.step.layoutMargin=function(e){f.cssHooks.layoutMargin.set(e.elem,{left:null===e.end.left?null:Math.floor(e.start.left+e.pos*(e.end.left-e.start.left)),top:null===e.end.top?null:Math.floor(e.start.top+e.pos*(e.end.top-e.start.top)),right:null===e.end.right?null:Math.floor(e.start.right+e.pos*(e.end.right-e.start.right)),bottom:null===e.end.bottom?null:Math.floor(e.start.bottom+e.pos*(e.end.bottom-e.start.bottom))})}}(),function(){ai.registerDefinition(oi,{Resizable:void 0})}(),function(){ai.registerDefinition(oi,{UserSelectable:{className:"user-selectable-element",properties:{startSelected:{title:"Start Selected",defaultValue:ds,category:ci.Other,isNotForCustomProperty:!0}},methods:{setNeverSelectedInClick:function(e){this.data.neverSelected=e},isUserSelected:function(){return this.data.isUserSelected},userSelect:function(e){void 0===e&&(e=!this.data.isUserSelected),this.data.isUserSelected=e,this.data.isUserSelected?this.activateTrigger(Li.Selected):this.activateTrigger(Li.Unselected)},shouldTrackUserSelection:us},aggregatedMethods:{aggregations:{onBeforePageOpen:function(){var e=this;if(void 0!==this.data.isUserSelected&&e.shouldInitInstanceOnPageChange()&&!e.data.neverSelected&&e.shouldTrackUserSelection()){var t=e.getPropertyValue("startSelected");this.data.isUserSelected=!t,e.userSelect(t)}},switchToPreview:function(){var e=this.getPropertyValue("startSelected");e&&this.userSelect(!0)}}},triggers:[Li.Selected,Li.Unselected],supportedStates:[Oi.ElementSelectedState]}}),Z.Events.LastEventOnInitiailizatGlobal.one(function(){f(document).on("vclick",".design-element.user-selectable-element",function(){var e=n(this);e&&!e.data.neverSelected&&e.shouldTrackUserSelection()&&e.userSelect()})})}(),function(){function e(e,t){if(e.removeUrl(),e.refreshCursor(),e.isLinkEnabled()&&t&&t.url){var n=pa.resolveUrl(t),i=t.type,a=e.getMainBox();if(i===nt.RSS&&(ne.IsSitePreview||ne.IsTemplate))a.bind("click.link",function(){alert("RSS button works only in the published version of your site.")}),e.data.bindToLink=!0;else{var r=f("<a class='design-element-link-part no-decorations'></a>").bind("click",function(e){i!==nt.Pages&&e.stopPropagation()});e.getPropertyValue("openInTopWindow")?r.attr("target","_top"):(e.getPropertyValue("openInNewTab")||i===nt.RSS||ui.urlAddress.isBound(e)&&i!==nt.Pages)&&r.attr("target","_blank"),i===nt.Pages&&r.addClass("internal-link"),e.getPropertyValue("shouldUnderlineChildren")&&r.addClass("has-underline-children"),r.attr("href",n),a.wrap(r),e.data.wrapWithLink=!0}}}function t(t,n){if(t.isInPreview()&&e(t,n),t.data.pageDeletedForUrlBinding&&t.data.pageDeletedForUrlBinding.unbind(),n&&n.type===nt.Pages){var i=va.getPageData(n.url);i?t.data.pageDeletedForUrlBinding=va.Events.PageDeleted.bind(function(e){e===n.url&&(de.disableOperationsRecording("changingUrlAddress"),t.setPropertyValue("urlAddress",null),de.enableOperationsRecording("changingUrlAddress"))}):(de.disableOperationsRecording("changingUrlAddress"),t.setPropertyValue("urlAddress",null),de.enableOperationsRecording("changingUrlAddress"))}}var i={True:{"webzai-clickable-behaviour":!0},False:{"webzai-clickable-behaviour":!1}};ai.registerDefinition(oi,{Clickable:{className:"clickable-element",properties:{urlAddress:{defaultValue:gs,supportsBinding:!0,isNotForCustomProperty:!0,isBound:function(e){return e.isBound(mi.link.getContentType())},valueConverter:function(e){return"string"!=typeof e?e:{url:e,type:nt.Web}},onChange:t},openInNewTab:{defaultValue:ds},openInTopWindow:{defaultValue:ds},shouldUnderlineChildren:{defaultValue:ds}},methods:{isLinkEnabled:function(){var e,t,n=this;if(n.isContent()){if(e=n.getMainSkinInstance(),e&&e.hasFeature(oi.DataListItem)&&(t=e.getItemMainParent(),t&&t.hasFeature(oi.HasPopup)))return!t.isPopupEnabled()}else if(!n.hasFeature(oi.DataList)&&n.hasFeature(oi.HasPopup))return!n.isPopupEnabled();return!0},hasBinding:function($super){return $super.call(this)||ui.urlAddress.isBound(this)},hasButtonBehaviour:function(){var e=this,t=e.getPropertyValue("urlAddress"),n=t&&t.url;return n||ha.hasTargetConnectionsInPagesForTriggers(e,va.getCurrentPage(),Li.MouseDown,Li.MouseClick,Li.MouseUp)||fa.isStyleAffectingInPage(e,va.getCurrentPage(),Oi.MouseDownState)||fa.isStyleAffectingInPage(e,va.getCurrentPage(),Oi.ElementSelectedState)||f.count(e.getPropertyValue("customStates"))>0},refreshCursor:function(){var e=this;e.hasButtonBehaviour()?e.classesManager.set(i.True):e.classesManager.set(i.False)},createBindingFieldsToProperties:function($super){var e=this,t=$super.call(e),n=mi.link.getContentType();return this.isBound(n)&&(t[ui.urlAddress.name]=Po.create(e,{propertyName:ui.urlAddress.name})),t},removeUrl:function(){var e=this;if(e.data.wrapWithLink){var t=e.getMainBox();t.unwrap(),e.data.wrapWithLink=!1}else e.data.bindToLink&&(e.getMainBox().unbind("click.link"),e.data.bindToLink=!1)}},aggregatedMethods:{aggregations:{onInitialized:function(){this.refreshCursor()},switchToPreview:function(){var t=this;window.setTimeout(function(){e(t,t.getPropertyValue("urlAddress"))},0)},onBoundValueReady:function(e){var t=mi.link.getContentType();this.isBound(t)&&this.setBindingValueToProperty(void 0===e[t]?null:e[t],ui.urlAddress.name)}}},features:[oi.UserSelectable],triggers:[Li.MouseClick,Li.MouseDown,Li.MouseUp],supportedStates:[Oi.MouseDownState]}}),Z.Events.LastEventOnInitiailizatGlobal.one(function(){f(document).on("vmousedown",".design-element.clickable-element",function(e){var t=n(this);t&&(t.activateTrigger(Li.MouseDown,e),f(document).one("vmouseup",function(e){window.setTimeout(function(){t.activateTrigger(Li.MouseUp,e)},0)}))}).on("click",".design-element.clickable-element",function(e){var t=n(this);t&&(t.activateTrigger(Li.MouseClick,e),f(e.target).hasAncestor("a, :input, audio, video")||f.onVirtualClickHandled(e))}).on("click",".popup-overlay a._item-link",cs)})}(),function(){ai.registerDefinition(oi,{Editable:void 0})}(),function(){function e(){var e=this;e.isOverflowHidden.valueChangedEvent.bindAndExecute(function(){var t=e.isOverflowHidden.getValue();t?e.getContentLayer().addClass("overflow-hidden"):e.getContentLayer().removeClass("overflow-hidden")})}ai.registerDefinition(oi,{HasOverFlow:{lazyInitializationProperties:{isOverflowHidden:O.createFalse},aggregatedMethods:{aggregations:{onInitializing:e}},properties:{overflow:{isStyleProperty:!0,defaultValue:ds,category:ci.Other,onChange:function(e){e.setOverFlow()}}},methods:{setOverFlow:function(){var e=this,t=e.getPropertyValue("overflow");e.isOverflowHidden.setValue(t)}}}})}(),function(){ai.registerDefinition(oi,{ItemsContainer:{properties:{isGrowable:{defaultValue:function(){return{bottom:!1,right:!1}},category:ci.Other},rowsItems:{isStateProperty:!0,notForUndoProperty:!0,defaultValue:gs}},features:[oi.HasOverFlow],methods:{addRowToContainer:function(e){var t=this.getPropertyValue("rowsItems");t||(t={}),t=f.deepCloneObject(t),t[e.id]=e.getDataForSave(),this.setPropertyValue("rowsItems",t)},removeRowFromContainer:function(e){var t=this.getPropertyValue("rowsItems");t&&(t=f.deepCloneObject(t),delete t[e.id],this.setPropertyValue("rowsItems",t))},getRowsFromContainer:function(){var e=this,t=this.getPropertyValue("rowsItems"),n=[];return t&&(f.eachEntry(t,function(t,i){var a=Ra.getRowById(i.id);a&&a.containerInstance===e&&n.push(a)}),n=n.orderBy(function(e){return e.getCellsArray()[0].getInstance().childIndex.getValue()})),n},hasRowsFromContainer:function(){var e=this,t=this.getPropertyValue("rowsItems"),n=!1;return t&&f.eachEntry(t,function(t,i){var a=Ra.getRowById(i.id);return a&&a.containerInstance===e?(n=!0,!1):void 0}),n},append:cs,reorderChildElements:function(){if(this.hasOrder.getValue()){var e=f([]),t=this.getChildInstances();if(0===t.length)return;if(Ha.Flags.IsInMobileContext.isTrue()&&this.canContainerRows()){if(!this.hasRowsFromContainer())return;for(var n,i,a={},r=[],o=f([]),s=0;s<t.length;s++){var l=t[s];if(l.hasFeature(oi.HasResponsiveItem)&&l.shouldBeWithLayoutOnMobile()&&l.getCellItem()&&l.hasCellWrapper.isTrue()){var c=l.getCellItem(),u=c.getRowParent();u&&(0===o.length&&(i=u),a[u.id]||(a[u.id]=f([]),r.push(u),o.pushElements(u.$element),n=u),a[u.id].pushElements(c.getElement()))}}r.length>0&&(f.eachItem(r,function(e,t){t.markChilds()}),i.toggleFirstRow(!0),n.toggleLastRow(!0),o.applyDOMOrder(),f.eachEntry(a,function(e,t){t.applyDOMOrder()}))}else{for(var s=0;s<t.length;s++)e.pushElements(t[s].$element);e.applyDOMOrder()}}},addChildElement:function(e){return this.getContentLayer().append(e.$element)},renderElementChildren:function(e){for(var t=this,n=t.childInstances,i=n.length,a=0;i>a;a++){var r=n[a];r.renderElement(e)}},canContainerRows:function(){return!this.isContent()}},lazyInitializationProperties:{childElementAdded:x.create},aggregatedMethods:{aggregations:{},definitions:{onChildElementRemoved:function(e){Z.Events.ChildElementRemoved.fire(this,e)},onChildElementAdded:function(e,t){sa.Events.ElementAddedToContainer.fireNew(e);var n=this;t&&t.isInDrop&&e.setPropertiesValues({verticalLayout:la.Layout.normal,horizontalLayout:la.Layout.normal,fillLayout:{fillHorizontal:!1,fillVertical:!1},isFixed:!1}),aa.reassignElementsOrders(),ba.visibilityTreeAttach(e),x.fireLazyEvent(n,"childElementAdded",e)}}}}})}(),function(){function e(e,t){var n={animation:e,animationOptions:{duration:t}};ba.isElementVisible(this)?this.hideElement(n):this.showElement(n)}function t(e,t,n){if(void 0!==n&&f.isPlainObject(n.transitionEffect)&&(n.transitionEffect=n.transitionEffect.name),n&&n.transitionDuration){var i={animation:n.transitionEffect,animationOptions:{duration:n.transitionDuration,direction:n.transitionSlideDirection,flyDirection:n.transitionFlyDirection}};t?e.showElement(i):e.hideElement(i)}else t?e.showElement():e.hideElement()}ai.registerPropertiesCategories({Visibility:{title:void 0,iconClass:"sprite-icon sprite-property-category-visibility"}}),ai.registerDefinition(oi,{Hideable:{methods:{toggleVisibility:e},properties:{isVisible:{shouldRefreshIfNotVisible:!0,isStateProperty:!0,defaultValue:us,category:ci.Visibility,supportsStatesTransitionAnimation:!0,onChange:t}},lazyInitializationProperties:{isVisibleFlag:O.createTrue},aggregatedMethods:{aggregations:{onBeforePageOpen:function(){var e,t=this;e=Ha.Flags.IsInMobileContext.isTrue()?t.getPropertyMobileValue("isVisible"):t.getPropertyNormalValue("isVisible"),t.shouldInitInstanceOnPageChange()&&void 0!==e&&!t.isContent()&&fa.updateComputedValue(t,t.properties.isVisible,e)},onInitialized:function(){var e=this;e.previewEventsListener.add(x.createEventListener([Ha.Flags.IsInMobileContext.valueChangedEvent],function(){Er.performUpdateOnRenderingFinished(function(){var t=e.getPropertyValue("isVisible");t===!1?e.hideElement():e.isInstanceVisible()||e.showElement()},e.id+"hideable-visibi-preview")}))}}}}})}(),function(){function e(e,t,n,i){if(t){var a=void 0===i,r=0!==t.top||0!==t.left||0!==t.right||0!==t.bottom;!a||r?e.animatePart(e.$element,{instanceBorderWidth:t},!1,n,{isInitialization:a}):(e.setActualPropertyValue("borderWidth",{left:0,top:0,right:0,bottom:0}),la.refreshElementsLayout(e),la.requestUpdatePosition(e))}}function t(e,t,n,i){if(t&&f.support.borderRadius){var a=0!==t.topLeft||0!==t.topRight||0!==t.bottomLeft||0!==t.bottomRight,r=void 0===i;!r||a?e.animatePart(e.$element,{instanceBorderRadius:t},!1,n,{isInitialization:r}):e.setActualPropertyValue("borderRadius",{topLeft:0,topRight:0,bottomLeft:0,bottomRight:0})}}function i(e,t,n,i){if(t){var a={borderTopColor:Ka.evaluateColorBinding(t.top,!0),borderBottomColor:Ka.evaluateColorBinding(t.bottom,!0),borderLeftColor:Ka.evaluateColorBinding(t.left,!0),borderRightColor:Ka.evaluateColorBinding(t.right,!0)},r=void 0===i,o=e.getBorderBox();e.animatePart(o,a,!0,n,{isInitialization:r}),fa.notifyCalculatedPropertyChange(e,"lineColor")}}function a(e,t){t&&e.getBorderBox().css({borderTopStyle:t.top,borderBottomStyle:t.bottom,borderLeftStyle:t.left,borderRightStyle:t.right})}function r(e){return e=o(e),s(e)}ai.registerPropertiesCategories({Border:{title:void 0,iconClass:"sprite-icon sprite-property-category-border",shortTitle:"Border"},Roundness:{title:void 0,iconClass:"sprite-icon sprite-property-category-roundness"}}),ai.registerDefinition(oi,{HasBorder:{properties:{borderWidth:{isStateProperty:!0,isStyleProperty:!0,scaleProperty:function(e){return{bottom:e.y,right:e.x,top:e.y,left:e.x}},getResetValue:f.returnEmptyBorderObject,defaultValue:f.returnEmptyBorderObject,valueConverter:ka.createRoundPropertyValueConverter(["top","left","bottom","right"]),category:ci.Border,supportsStatesTransitionAnimation:!0,onChange:e},roundness:{isStateProperty:!0,isStyleProperty:!0,supportsStatesTransitionAnimation:!0,getResetValue:f.returnEmptyRoundnessObject,defaultValue:f.returnEmptyRoundnessObject,scaleProperty:function(e){return{bottomRight:e.x,topRight:e.x,topLeft:e.x,bottomLeft:e.x}},valueConverter:ka.createRoundPropertyValueConverter(["topLeft","bottomLeft","topRight","bottomRight"]),category:ci.Roundness,onChange:t},borderColor:{isStateProperty:!0,isStyleProperty:!0,getResetValue:f.returnBlackBorderObject,defaultValue:f.returnBlackBorderObject,valueConverter:r,supportsStatesTransitionAnimation:!0,supportsThemeBinding:["top","left","bottom","right"],category:ci.Border,onChange:i},borderStyle:{isStateProperty:!0,isStyleProperty:!0,getResetValue:function(){return f.convertValueToObject("solid",["top","left","bottom","right"])},defaultValue:function(){return f.convertValueToObject("solid",["top","left","bottom","right"])},category:ci.Border,onChange:a}},calculatedProperties:["lineColor"],methods:{getCalculatedPropertyValue:function($super,e){switch(e){case"lineColor":return this.getPropertyValue("borderColor","top")}return $super.call(this,e)},setCalculatedPropertyValue:function($super,e,t,n,i){switch(e){case"lineColor":return void this.setPropertyValue("borderColor",t,n,i)}$super.call(this,e,t,n,i)}},aggregatedMethods:{aggregations:{onInitializing:function(){var e=this;e.borderTargetAddedEvent.bind(function(t){var n=e.getActualPropertyValue("borderWidth");n&&t.css({"border-top-width":n.top,"border-left-width":n.left,"border-bottom-width":n.bottom,"border-right-width":n.right});var i=e.getActualPropertyValue("borderRadius");i&&t.css({borderRadiusTopLeft:i.topLeft,borderRadiusTopRight:i.topRight,borderRadiusBottomLeft:i.bottomLeft,borderRadiusBottomRight:i.bottomRight})})}}}}});var o=ka.createStringToObjectValueConverter(["top","left","bottom","right"]),s=ka.createValueToObjectValueConverter(["top","left","bottom","right"]);f.cssHooks.instanceBorderWidth={get:function(e){var t=n(e);return t&&t.getActualPropertyValue("borderWidth")},set:function(e,t){var i=n(e);if(i){i.setActualPropertyValue("borderWidth",t),i.getBorderTarget().css({borderTopWidth:t.top+"px",borderLeftWidth:t.left+"px",borderBottomWidth:t.bottom+"px",borderRightWidth:t.right+"px"});var a=i.getActualPropertyValue("borderRadius");i.hasFeature(oi.ItemsContainer)&&a&&!f.borderWidthEqualityComparer(i.data.borderWidth,t)&&(i.data.borderRadius=a,i.data.borderWidth=t,f.updateInnerBorderRadius(i.getContentLayer(),a,t)),i.handleContentSizeChange(),la.refreshElementsLayout(i)}}},f.fx.step.instanceBorderWidth=function(e){f.cssHooks.instanceBorderWidth.set(e.elem,{left:null===e.end.left?null:Math.floor(e.start.left+e.pos*(e.end.left-e.start.left)),top:null===e.end.top?null:Math.floor(e.start.top+e.pos*(e.end.top-e.start.top)),right:null===e.end.right?null:Math.floor(e.start.right+e.pos*(e.end.right-e.start.right)),bottom:null===e.end.bottom?null:Math.floor(e.start.bottom+e.pos*(e.end.bottom-e.start.bottom))})},f.cssHooks.instanceBorderRadius={get:function(e){var t=n(e);return t&&t.getActualPropertyValue("borderRadius")},set:function(e,t){var i=n(e);if(i&&(i.setActualPropertyValue("borderRadius",t),i.getBorderTarget().css({borderRadiusTopLeft:t.topLeft,borderRadiusTopRight:t.topRight,borderRadiusBottomLeft:t.bottomLeft,borderRadiusBottomRight:t.bottomRight}),i.hasFeature(oi.ItemsContainer)&&t&&!f.borderRadiusEqualityComparer(i.data.borderRadius,t))){var a=i.getActualPropertyValue("borderWidth");i.data.borderRadius=t,i.data.borderWidth=a,f.updateInnerBorderRadius(i.getContentLayer(),t,a)}}},f.fx.step.instanceBorderRadius=function(e){f.cssHooks.instanceBorderRadius.set(e.elem,{topLeft:null===e.end.topLeft?null:Math.floor(e.start.topLeft+e.pos*(e.end.topLeft-e.start.topLeft)),topRight:null===e.end.topRight?null:Math.floor(e.start.topRight+e.pos*(e.end.topRight-e.start.topRight)),bottomLeft:null===e.end.bottomLeft?null:Math.floor(e.start.bottomLeft+e.pos*(e.end.bottomLeft-e.start.bottomLeft)),bottomRight:null===e.end.bottomRight?null:Math.floor(e.start.bottomRight+e.pos*(e.end.bottomRight-e.start.bottomRight))})}}(),function(){ai.registerDefinition(oi,{HasOutline:{properties:{lineWidth:{isStateProperty:!0,isStyleProperty:!0,getResetValue:f.returnOne,defaultValue:f.returnOne,category:ci.Border,valueConverter:ka.createRoundPropertyValueConverter(),scaleProperty:function(e){return e.x}},lineColor:{isStateProperty:!0,isStyleProperty:!0,supportsThemeBinding:!0,defaultValue:function(){return"Black"},category:ci.Border},lineStyle:{isStateProperty:!0,isStyleProperty:!0,defaultValue:function(){return"solid"},category:ci.Border}},methods:{isLineAffectsSize:ds},aggregatedMethods:{aggregations:{}}}})}(),function(){ai.registerDefinition(oi,{HasEmptyState:{lazyInitializationProperties:{inEmptyStateFlag:O.createConditionalPositive},methods:{addFailedToLoadMessage:function(e,t){var n=this;n.$element.toggleClass("element-empty-state",!1);var i;i=t?e?'Sorry we can\'t load the feed from {0}, <span class="is-action">try again</span>'.format(e):'Sorry we can\'t load the feed, <span class="is-action">try again</span>':e?"Sorry we can't load the feed from {0}, try again later".format(e):"Sorry we can't load the feed, try again later";var a=f('<div class="inner-text">'+i+"</div>"),r=f('<div class="failed-to-load-message"></div>');r.append(a),n.$element.append(r),t&&(a.on("click",t),r.css("zIndex",100))}},aggregatedMethods:{aggregations:{onInitialized:function(){var e=this,t=x.createEventListener(e.inEmptyStateFlag.valueChangedEvent,function(){Er.performUpdateOnRenderingFinished(function(){var t=e.inEmptyStateFlag.isTrue();e.$element.toggleClass("element-empty-state",t),e.isForTemplateUse()&&e.isDisplayed.setValue(!t,"isEmptyState"),f.eachItem(e.childInstances,function(e,n){n.isDisplayed.setValue(!t,"isEmptyState")})},"toggleChildInstancesDisplay"+e.id)}).activateAndExecute();e.instanceRemoving.one(function(){t.dispose()})}}}}})}(),function(){function e(e,t){var n=!1,i=!0,a=!1,r=!1;if(f.containsOneOfKeys(t,"fieldsTemplates","dataLayout")&&(n=!0,r=!0,"dataLayout"in t&&e.hasFeature(oi.HasFormData)&&(i=!1)),t.usePagesLayout&&(n=!0,a=!0,r=!0),t.dataLayoutOptions){n=!0,r=!0;var o=e.dataLayoutController.getArrangement(),s=(o.category===ta.Vertical,o.category===ta.Grid,t.dataLayoutOptions.oldValue),l=t.dataLayoutOptions.value;s&&s.cols===l.cols&&s.rows===l.rows||(i=!1),s&&s.elementsPerPage===l.elementsPerPage||(a=!0),s&&s.maxItems===l.maxItems&&s.maxItemsCount===l.maxItemsCount||(a=!0)}n&&e.requestArrangement({keepItemSize:i,shouldFetch:a,shouldPush:r})}ai.registerDefinition(oi,{DataList:{properties:{itemsStyle:{isStateProperty:!0,shouldRefreshIfNotVisible:!0,notForUndoProperty:!0,defaultValue:f.returnEmptyObject}},methods:{shouldBeBlockElementInMobile:us,getDataItemInstanceId:function(e){return this.id+Ke+e},alignHorizontal:function(){var e=this;if(e.hasHorizontalAlign()){var t=e.getPropertyValue("horizontalAlign");e.$elementContentContainer.css("text-align",t),ba.invalidateAreas(e.getDescendingInstances(),{updateSize:!1})}},hasHorizontalAlign:function(){var e=this.getPropertyValue("dataLayout");return Zi[e.name].category===ta.Grid||Zi[e.name].category===ta.Rows||Zi[e.name].category===ta.Columns},getInstanceController:function(e){var t=this;return t.dataItemsController.getInstanceController(e)},getMinSize:function(){var e=this,t=e.dataLayoutController.getMinSize();return{height:t.height,width:t.width}},reorderChildElements:function(){if(this.hasOrder.getValue()){for(var e=f([]),t=this.getChildInstances(),n=0;n<t.length;n++)!t[n].hasFeature(oi.DataListItem)&&t[n].isContent()&&e.pushElements(t[n].$element);e.applyDOMOrder();for(var e=f([]),n=0;n<t.length;n++)t[n].hasFeature(oi.DataListItem)||t[n].isContent()||!t[n].isInstanceVisible()||e.pushElements(t[n].$element);e.applyDOMOrder()}},getItemsControllers:function(){return this.dataItemsController.getAllControllers()},getPcTemplateSize:function(){var e=f.objectGet(this.dataLayoutController.getLastArrangementOptionsDevice(),["pc","fixedSize"]);return e=e?e:this.getStructureMetaData().dataItemSizePc},adjustDataListToMobile:function(){var e=this;Aa.arrangeDataListToMobileFirstTime(e)},calculateItemSizeOnMobile:function(e){var t=this.getPcTemplateSize();return{height:t?f.maxValue([t.height,30]):30,width:e.width}},updateDataListToMobile:function(){var e=this;la.LayoutContentOperationsSet.isLocked(e.getArrangementRequestName())||(e.dataLayoutController.resetLayout(),e.dataLayoutController.shouldRearrangeWhenItemSizeChanged()&&e.refreshTemplatesSize(!0),e.getDataSource().invalidateAllItems(),e.requestArrangement(),la.LayoutContentOperationsSet.lockRequest(e.getArrangementRequestName()))},removeDataListFromMobile:function(){var e=this;de.disableOperationsRecording("removeInstanceFromViewPort"),e.dataLayoutController.resetLayout(),e.getDataSource().invalidateAllItems(),e.dataLayoutController.shouldRearrangeWhenItemSizeChanged()&&e.refreshTemplatesSize(!0),e.requestArrangement({keepItemSize:!0,shouldPush:!0}),la.LayoutContentOperationsSet.lockRequest(e.getArrangementRequestName()),de.enableOperationsRecording("removeInstanceFromViewPort")},shouldRequestArrangementFromSizeChange:function(){return!la.isInFinishingLayoutContentUpdate()},setContentSizeChangeBinding:function(){var e=this;e.contentSizeChangedEvent.bind(function(){var t=e.getContentSize(),n=e.dataLayoutController.getLastArrangementInstanceSizeByDevice();if(!f.sizesEqual({width:0,height:0},t)&&!f.sizesEqual(n,t)){var i=!0;e.requestArrangement({keepItemSize:i,shouldFetch:!1,shouldPush:i})}})},canContainerRows:ds,shouldReferToStateValue:function($super,e,t,n){return"sizeAndPosition"===e&&sa.getInstanceByID(n).isContent()?!1:$super.call(this,e,t,n)}},features:[oi.HasArrangement,oi.HasDataSource,oi.ItemsContainer,oi.HasPadding,oi.HasContent,oi.HasTemplates,oi.HasEmptyState],lazyInitializationProperties:{reArrangementDisabled:O.createConditionalNegative,reArrangingFinished:x.create,totalCountObservable:function(){var e=this;return _.createNumerical(void 0,{valueChangeCallback:function(t){e.inEmptyStateFlag.setValue(0===t)}})}},aggregatedMethods:{definitions:{setItem:cs},aggregations:{onCreation:function(){this.reArrangingFinishedWasFired=!1},onDataSourceRefresh:function(){var e=this;e.requestArrangement({shouldPush:!0})},adjustInstanceToViewPort:function(){var e=this;e.setPropertyValue("margin",0),e.adjustDataListToMobile()},updateInstanceToViewPort:function(){var e=this;e.performWhenVisible(function(){e.updateDataListToMobile()},"updateDataListToMobile-data-list")},removeInstanceFromViewPort:function(){var e=this;e.performWhenVisible(function(){Er.performOnFramesLayoutUpdade(function(){e.removeDataListFromMobile()},"updateDataListToMobile-data-list"+e.id)},"updateDataListToMobile-data-list")},onPropertiesChanged:function(t){var n=this;n.isInitialized&&(f.containsOneOfKeys(t,"dataInfo")&&!f.containsOneOfKeys(t,"fieldsTemplates")||e(n,t))},onInitializing:function(){var e=this;e.hasHorizontalAlignFlag.setTrue(),e.setContentSizeChangeBinding();var t=e.getDataSource(),n=t.getCollectionItems(),i=x.createEventListener(e.visibilityChangedEvent,function(){var i=ba.isElementVisible(e);i?(e.reArrangementDisabled.setValue(!1,"visibilityChangedEvent"),n.unPostponeUpdates(),
t.refreshOperationsBarrier.unPostponeOperations()):(n.postponeUpdates(),t.refreshOperationsBarrier.postponeOperations(),e.reArrangementDisabled.setValue(!0,"visibilityChangedEvent"))});i.activateAndExecute(),e.instanceRemoving.one(function(){i.deactivate()})}}}}})}(),function(){var e={properties:{rotationAngle:{isStateProperty:!0,isStyleProperty:!0,supportsStatesTransitionAnimation:!0,defaultValue:function(){return 0},category:ci.Rotation,onChange:function(e,t,n){e.setRotation(t,n)}}},methods:{canRotate:function(){return!this.canMove||this.canMove.isTrue()},setRotation:function(e,t){var n=this;if(n.canRotate()){var i=0!==e,a=!n.isInitialized;if(!a||i){var r=n.getMainBox(),o=e;t&&"left"===t.transitionDirection&&(o=-(360-e));var s=0===o?"":"rotate({0}deg)".format(o),l={};l[f.support.transformCSS]=s,n.animatePart(r,{transform:s},l,t,{isInitialization:a,complete:function(){if(n.getPropertyNormalValue("rotationAngle")===e){var t=e?"rotate({0}deg)".format(e):"";r.css({transform:t})}la.requestUpdatePosition(n)}})}}}}};ai.registerDefinition(oi,{Rotatable:e})}(),function(){ai.registerDefinition(oi,{HasContentOverlay:{}})}(),function(){ai.registerDefinition(oi,{HasInput:{methods:{getValue:cs,setValue:cs,clear:cs}}})}(),function(){ai.registerDefinition(oi,{FormInput:{features:[oi.HasInput],methods:{}}})}(),function(){ai.registerDefinition(oi,{Focusable:{triggers:[Li.GotFocus,Li.LostFocus],supportedStates:[Oi.ElementFocusedState],aggregatedMethods:{aggregations:{onInitialized:function(){var e=this,t=e.$element;t.focusin(function(t){e.activateTrigger(Li.GotFocus,t)}),t.focusout(function(n){f.beginInvoke(function(){f(document.activeElement).hasAncestor(t)||e.activateTrigger(Li.LostFocus,n)})})}}}}})}(),function(){ai.registerDefinition(oi,{Growable:{aggregatedMethods:{aggregations:{onInitialized:function(){function e(){return n.calculateSizeContent()}function t(e){e&&n.whenInstanceContentHeightChanged(e.height)}var n=this;n.getContentLayer().addClass("overflow-hidden"),Yi.stopPooling("initialize"),n.data.growableAttached=Yi.attach(n,e,t),Yi.postponeSamples(n,"inDesign"),Yi.startPooling("initialize");var i=x.createEventListener([n.visibilityChangedEvent],function(){var e=!ba.isElementVisible(n);e?Yi.postponeSamples(n,"isMobileActivateListener"):Yi.unPostponeSamples(n,"isMobileActivateListener")});i.activateAndExecute(),n.instanceRemoved.bind(function(){i.deactivate()})},onRemove:function(){Yi.detach(this.data.growableAttached)},switchToPreview:function(){var e=this;Yi.unPostponeSamples(e,"inDesign")}}}}})}(),function(){ai.registerDefinition(oi,{HasGrowableContent:{className:"has-rich-content",features:[oi.HasContent,oi.Resizable],methods:{findUsedFonts:f.returnEmptyArray,pollNotLoadedFontsCallback:function(){this.refreshContentSize()},pollForNotLoadedFonts:function(){var e=this;e.data.loadingFonts||(e.data.loadingFonts={}),Vn.requestReadOperation(function(){f.eachItem(e.findUsedFonts(),function(t,n){var i=n.toLowerCase();Pn.isFontLoaded(i)||e.data.loadingFonts[i]||(e.data.loadingFonts[i]=!0,Pn.onFontLoaded(i,{successCallback:function(){e.performWhenVisible(function(){e.pollNotLoadedFontsCallback()},e.id+"visibilityEventBinding")},timeout:15e3}))})},e.id+"pollForNotLoadedFonts")},refreshContentSize:function(){var e=this;e.isInitialized&&ba.isElementVisible(e)&&(la.refreshElementsLayout(e),Er.performOnLayoutUpdate(function(){Vn.requestReadOperation(function(){if(e.isInstanceVisible()){var t=!1;if(f.browser.safari){var n=e.findUsedFonts();if(n&&n.length>0){var i="string"==typeof n[0]&&n[0].toLowerCase();Pn.isFontLoaded(i)||(t=!0)}}var a=e.getElementDataContentSize(t),r=e.contentHeight.getValue(),o=a.height,s=e.getSize(),l=e.getNoneContentSize(),c=e.contentHeight.setValue(o),u=r>s.height,d=o+l.height>s.height;if(c||u||d){if(e.propertiesRefreshingState&&!Ha.updateBatch.isActive())return;var g=Ha.Flags.IsInMobileContext.isTrue()&&e.isTypeOf(ri.freeText),p=e.getParents(),h=!1;f(p).each(function(e,t){t.elementType===ri.SkinButtonElement&&(h=!0)}),e.whenInstanceContentHeightChanged(o,{onlyGrow:void 0===r&&!0||h,adjustForWidth:g})}x.fireLazyEvent(e,"contentHeightRefreshedEvent")}},e.id+"refreshContentSize")},e.id+"refreshContentSize"))}},lazyInitializationProperties:{contentHeight:_.createNumerical,contentHeightRefreshedEvent:x.create},aggregatedMethods:{aggregations:{onInitialized:function(){var e=this,t=x.createEventListener(e.contentSizeChangedEvent,function(){e.refreshContentSize()}),n=x.createEventListener(e.visibilityChangedEvent,function(){var n=ba.isElementVisible(e);n?(t.activateAndExecute(),e.pollForNotLoadedFonts(e)):t.deactivate()}).activateAndExecute();e.instanceRemoving.one(function(){n.dispose(),t.dispose()})}}}}})}(),function(){function e(e,t){var n=e.getShape();n&&n.setPropertyValue("lineWidth",t)}function t(e,t){t=f.Color(Ka.evaluateColorBinding(t)).toHEX();var n=e.getShape();n&&n.setPropertyValue("strokeColor",t)}ai.registerDefinition(oi,{Shape:{features:[oi.HasGrowableContent],methods:{getCanvas:function(){return this.data.canvas},getShape:function(){return this.data.shape},createContent:function(){var e=this,t=e.data.canvas=Yt.create();return e.data.shape=e.createShape(t).toggleLayout(Xt.FillHorizontally,!0).toggleLayout(Xt.FillVertically,!0),t.$element.addClass("absolute-fill")},creationFunction:function(e){return e.createContent()},handleBackgroundUpdate:function(e,t,n){return t=Ka.evaluateColorBinding(t),this.getShape()?(this.animatePart(this.$element,{shapeBackground:t},void 0,n),!0):!1},createShape:cs},aggregatedMethods:{aggregations:{onPropertyChange:function(n,i){switch(n.name){case"lineWidth":e(this,i);break;case"lineColor":t(this,i)}},onInitialized:function(){var e=this,t=e.getCanvas();t&&e.contentSizeChangedEvent.bind(function(){Er.performUpdateOnRenderingFinished(function(){e.getCanvas().refreshSize(ba.getContentSize(e))},"canvas-content-size-changed"+e.id)})}}}}}),f.cssHooks.shapeBackground={get:function(e){var t=n(e);return t&&t.data.currentShapeBackground},set:function(e,t){var i=n(e);if(i){var a=i.getShape();void 0!==a&&(i.data.currentShapeBackground=f.Color(t),a.setPropertyValue("backgroundColor",t))}}},f.fx.step.shapeBackground=function(e){if(!e.colorInit){var t=f.cssHooks.shapeBackground.get(e.elem);e.end=f.Color(e.end).toRGB(),t||(e.start=e.end),e.colorInit=!0}f.cssHooks.shapeBackground.set(e.elem,"rgba("+Math.max(Math.min(parseInt(e.pos*(e.end[0]-e.start[0])+e.start[0],10),255),0)+","+Math.max(Math.min(parseInt(e.pos*(e.end[1]-e.start[1])+e.start[1],10),255),0)+","+Math.max(Math.min(parseInt(e.pos*(e.end[2]-e.start[2])+e.start[2],10),255),0)+","+Math.max(Math.min(parseFloat(e.pos*(e.end[3]-e.start[3])+e.start[3],10),1),0)+")")}}(),function(){function e(e){var t=e.getSvgController();if(t){var n=e.getSvgController().getElementPropertyValue(null,"fontFamily");return n?n:"Arial"}return"Arial"}function t(e,t){var n=e.getSvgController();n&&n.updateShapePropertyValue("fontFamily",t)}function n(e){var t=e.getSvgController();if(!t)return null;var n=t.getElementPropertyValue(null,"text");if(!n){var i=t.$element.find("text");if(!i||!i[0])return null;var a=(new XMLSerializer).serializeToString(i[0]);n=f(a)[0].innerHTML}return n}function i(e,t){var n=e.getSvgController();n&&n.updateShapePropertyValue("text",t)}function a(e){var t=e.getSvgController();if(t){var n=t.getElementPropertyValue(null,"textDirection");return n?n:"left"}return"left"}function r(e,t){var n=e.getSvgController();n&&n.getSvgController().updateShapePropertyValue("textDirection",t)}ai.registerDefinition(oi,{SvgShape:{className:"svg-shape-element",features:[oi.HasContent,oi.Editable],aggregatedMethods:{aggregations:{onInitialized:function(){var e=this,t=!1,n=!1,i=x.createBindingsCollection(),a=e.createSvgShapeController();e.data._svgController=a,a.$element.appendTo(e.$elementContent),Dr.addToLastSavedShapesList(e.id,e.getShapeReference()),e.contentSizeChangedEvent.bind(function(){n||Er.performOnLayoutUpdate(function(){var n=e.getContentSize();t=!0,a.updateSize(n),t=!1},"updateSvgControllerSize"+e.id)}).addToCollection(i),a.sizeChangedEvent.bind(function(){if(!t){var n=a.calculateArea(),i={width:n.width,height:n.height},r=e.getNoneContentSize();i.width+=r.width,i.height+=r.height,ca.setInstancesSize(e,i)}}).addToCollection(i),e.instanceRemoving.one(function(){i.unbindAll()})}}},properties:{svgProperties:{defaultValue:f.returnEmptyObject,isStateProperty:!0,supportsBinding:!0,onChange:function(e,t){e.isInitialized&&(de.disableOperationsRecording("svgProperties"),e.getSvgController().updateShapeProperty(t),fa.notifyCalculatedPropertyChange(e,"svgFontFamily"),fa.notifyCalculatedPropertyChange(e,"svgText"),fa.notifyCalculatedPropertyChange(e,"svgTextDirection"),de.enableOperationsRecording("svgProperties"))}}},calculatedProperties:["svgFontFamily","svgText","svgTextDirection"],methods:{getCalculatedPropertyValue:function($super,t){var i=this;switch(t){case"svgFontFamily":return e(i);case"svgText":return n(i);case"svgTextDirection":return a(i)}return $super.call(i,t)},setCalculatedPropertyValue:function($super,e,n,a,o){var s=this;switch(e){case"svgFontFamily":t(s,n);break;case"svgText":i(s,n);break;case"svgTextDirection":r(s,n)}$super.call(s,e,n,a,o)},getShapeReference:cs,getSvgController:function(){return this.data._svgController}}}})}(),function(){ai.registerDefinition(oi,{TemplatePagesList:{defaultProperties:{dataLayoutOptions:function(){return{lineSpacing:15,cols:3,columnSpacing:15,colsSpacing:15,rowsSpacing:15,elementsPerPage:4,rotation:0,R:100}}},properties:{usePagesLayout:{defaultValue:us,isStateProperty:!0}},features:[oi.Navigatable],methods:{getArrangementOptions:function($super){var e=$super.call(this);return e.usePagesLayout=this.getPropertyValue("usePagesLayout"),e.maintainHeightInPreview=this.shouldMaintainHeightInPreview(),e},shouldMaintainHeightInPreview:ds,hasContentHorizontalAlign:ds,navigateTo:function(e,t,n,i){var a=this.getPropertyValue("dataLayout");return Zi[a.name].navigateTo(this.dataLayoutController,e,t,n,i)},getCurrentItem:function(){var e=this.getPropertyValue("dataLayout");return Zi[e.name].getCurrentItem(this.dataLayoutController)},getElementDataContent:function(){var e=this.getCurrentItem();return e?e.getElementContent():void 0},showItem:function(e,t,n,i){var a=this.getPropertyValue("dataLayout");return Zi[a.name].showItem(this.dataLayoutController,e,t,n,i)},changeCurrentItem:function(e,t,n,i){var a=this;a.performWhenVisible(function(){a.reArrangementDisabled.setValue(!0,"changeCurrentItem"),a.showItem(e,t,n,i),a.reArrangementDisabled.setValue(!1,"changeCurrentItem")},a.id+"changeCurrentItem")},getNavigatableInstances:function(){var e=this.getPropertyValue("dataLayout");return Zi[e.name].getNavigatableInstances(this.dataLayoutController)},calculateItemSizeOnMobile:function(e){var t=this.getPcTemplateSize();return{height:t?f.maxValue([e.width/t.width*t.height,30]):e.height,width:e.width}}},aggregatedMethods:{aggregations:{adjustInstanceToViewPort:function(){var e=this;e.setPropertyValue("dataLayout",{name:Zi.PagesColumn.name}),e.setPropertyFieldsValues("dataLayoutOptions",{cols:1,columnSpacing:10})},onPropertiesChanged:function(e){var t=this;if(t.InstancePropertiesInitialized.isTrue()&&t.data.pagesInstance){la.beginLayoutUpdateBatch(),fa.UpdateBatch.start();var n=f.intersectSets(e,oi.Navigatable.properties);for(var i in n){var a=n[i].name,r=e[a];r&&t.data.pagesInstance.setPropertyValue(a,r.value)}fa.UpdateBatch.finish(),la.endLayoutUpdateBatch()}},onInitializing:function(){var e=this;x.bind([e.resizingStarted],function(){e.getItemsCollection().postponeUpdates()}),x.bind([e.resizingStopped],function(){e.getItemsCollection().unPostponeUpdates()})}}}}})}(),function(){ai.registerDefinition(oi,{HasChildrenLayoutAnchor:{properties:{childrenAnchor:{isStyleProperty:!1,isNotForCustomProperty:!0,defaultValue:function(){return ot.Left},onChange:function(e){la.refreshElementsLayout(e.getChildInstances())}}},methods:{getAnchorLatyout:function(){return this.getPropertyValue("childrenAnchor")}}}})}(),function(){function e(t,n){n.isTemplateItemContent()||(n.setIsContent(!0),n.setTemplateItemContent(t),n.hasFeature(oi.ItemsContainer)&&n.childElementAdded.bind(function(n){f.eachItem(n.getDescendingInstances(),function(n,i){e(t,i)})}))}ai.registerDefinition(oi,{TemplateItem:{className:"template-item",methods:{getInstancesByField:function(e){var t=[],n=this.getPropertyValue("fieldsMap");return f.eachEntry(n,function(n,i){var a=sa.getInstanceByID(n);f.eachEntry(i,function(n,i){i.name==e&&t.push(a)})}),t}},aggregatedMethods:{aggregations:{onInitializing:function(){var t=this;f.eachItem(this.getDescendingInstances(!0),function(n,i){e(t,i)})}}},properties:{fieldsMap:{title:"fieldsMap",defaultValue:f.returnEmptyObject,category:ci.Other}}}})}(),function(){ai.registerDefinition(oi,{DataListItem:{className:"data-list-item",methods:{getAutoLayoutProperties:function($super){return f.quickExtend($super.call(this),{top:!0,left:!0,width:!0})},getDataSource:function(){return this.getItemMainParent().getDataSource()},toggleMobileSupport:function(e){de.beginAtomicBatch(),this.getItemMainParent().toggleMobileSupport(e),de.endAtomicBatch()},isVisibleInMode:us,isDataListItem:function(){return void 0!==this.data.dataItemID},getDataItemId:function(){return this.data.dataItemID},getDataItem:function(){return this.getItemMainParent().getDataSource().fetchDataItem(this.getDataItemId())},isSupportsMobile:function(){return this.getItemMainParent().isSupportsMobile()},isMobileOnlyStyle:function(){return this.getItemMainParent().isMobileOnlyStyle()},getFieldName:function(){var e=this.getDataItem();return e.fieldTypeName?e.fieldTypeName:this.getItemMainParent().elementType.itemName},setDataItemId:function(e){this.data.dataItemID=e},getItemMainParent:function(){return this.data.dataListParent},updateSkinBindingFromEditingTemplate:function(e,t,n){return this.getItemMainParent().updateSkinBindingFromEditingTemplate(e,t,n)},changeElementSize:function(e){this.$elementSizeBox.css(e)},setTemplateStructure:function(e,t,n){de.disableOperationsRecording("setTemplateStructure"),this.data.instanceController.setTemplateStructure(e,t,n);var i=this.data.instanceController.getInstance();return de.enableOperationsRecording("setTemplateStructure"),i},getInstanceController:function(){return this.data.instanceController}},aggregatedMethods:{aggregations:{onInitialized:function(){var e=this;e.sizeElementClassesManager.set({"data-list-item":!0})}}}}})}(),function(){var e={properties:{menuHide:{isNotForCustomProperty:!0,defaultValue:cs,notForUndoProperty:!0},sectionName:{isNotForCustomProperty:!0,defaultValue:f.returnEmptyString},pageContentType:{isNotForCustomProperty:!0,defaultValue:function(){return Do.MainContent},notForUndoProperty:!0}},defaultProperties:{fillLayout:function(){return{fillVertical:!1,fillHorizontal:!1}},sizeAndPosition:function(){return{height:200,width:0,top:0,left:0}},childrenAnchor:function(){return ot.Centered}},methods:{isPageChildInstance:us,refreshFixedState:cs,isReattchable:ds,creationFunction:cs,isRelativePositioned:us,hasHeight:function(){return!(Ha.Flags.IsInMobileContext.isTrue()&&this.hasRowsFromContainer())},isMainSection:function(){return this.getPropertyValue("pageContentType")===Do.MainContent},calculateActualOffset:function(){var e,t=this,n=0,i=0;e=this.isMainSection()?wr.getCurrentPageMainOrderedSections():wr.getCurrentPageSideBarOrderedSections();var a=0;f.eachItem(e,function(e,n){if(n===t)return!1;var i=n.calculateActualSize();a+=i.height});var r=t.parentInstance.calculateActualOffset();return{top:r.top+n,left:r.left+i}},calculateActualSize:function(){var e=this,t=e.getPropertyValue("sizeAndPosition"),n=e.parentInstance.calculateActualSize(),i=n.width,a=t.height;return{width:i,height:a}},getAutoLayoutProperties:function(){return{left:!0,top:!0,width:!0,height:!this.hasHeight()}}},aggregatedMethods:{aggregations:{onChildElementRemoved:function(e){e.classesManager.set({"is-section-child":!1,"positioned-fixed":!1})},onChildElementAdded:function(e){e.classesManager.set({"is-section-child":!0,"positioned-fixed":e.isFixed()&&!0})},onDetached:function(){var e=va.getCurrentPage();fa.invalidateProperty(e,"sizeAndPosition",void 0,e.getPropertyValue("sizeAndPosition"))},onRemove:function(){var e=this;if(!e.isForTemplateUse()){wr.removeSectionInstance(this);var t=va.getCurrentPage(),n=t.getPageContentInstance(),i=n.getVisibleSectionsByPage(t);0===i.length&&sa.addSection(n)}},onInitialized:function(){var e=this;e.propertyChangedEvent.bind("order",function(){e.isInitialized&&Er.performLayoutOrderUpdate(function(){ba.invalidateAreas(e,{updateSize:!1})},"reorder section"+e.id)}),e.instanceRemoved.bind(function(){ba.invalidatePositioningRootOffset(),ba.invalidateAreas(f.getValues(sa.getAllPageInstances()))})},onInitializing:function(){var e=this;e.canResizeHorizontally.setFalse(),e.sizeChangedEvent.bind(function(){Z.PageHeightChanged.fireNew()}),e.isForTemplateUse()||e.visibilityChangedEvent.bindAndExecute(function(){var t=e.isInstanceVisible();t?wr.addSectionInstance(e):wr.removeSectionInstance(e)}),e.$element.addClass("section-element"),e.getElementSizeBox().addClass("section-element-size-box"),e.canMove.setValue(!1)}}}};ai.registerDefinition(oi,{PageSection:e})}(),function(){ai.registerDefinition(oi,{HasInnerShadow:{properties:{innerGlow:{isStateProperty:!0,isStyleProperty:!0,supportsStatesTransitionAnimation:!0,supportsThemeBinding:["color"],valueConverter:ka.createRoundPropertyValueConverter(["blur","spread"]),scaleProperty:function(e){return{blur:e.x,spread:e.x}},defaultValue:function(){return{spread:0,blur:0,color:"black"}},onChange:function(e,t,n){e.isInitialized&&t&&(t=f.quickExtend({},t,{color:Ka.evaluateColorBinding(t.color,!0)}),e.animatePart(e.$element,{innerGlow:t},!1,n))},category:ci.Shadow},innerShadow:{isStateProperty:!0,isStyleProperty:!0,supportsStatesTransitionAnimation:!0,supportsThemeBinding:["color"],valueConverter:ka.createRoundPropertyValueConverter(["blur","spread","top","left"]),scaleProperty:function(e){return{blur:e.x,spread:e.x,top:e.y,left:e.x}},defaultValue:function(){return{top:0,left:0,spread:0,blur:0,color:"black"}},category:ci.Shadow,onChange:function(e,t,n){e.isInitialized&&t&&(t=f.extend({},t,{color:Ka.evaluateColorBinding(t.color,!0)}),e.animatePart(e.$element,{dropInnerShadow:t},!1,n))}}}}})}(),function(){var e={ElementContent:{group:"iframe-content-templates",name:"iframe-content-template",isSimple:!0}};ai.registerDefinition(oi,{IFrameContent:{features:[oi.HasContent],methods:{getIFrameUrl:f.returnEmptyString,isScrollableIFrame:ds,shouldRenderIFrame:us,reloadIFrame:function(e){var t=this;e=f.valueOrCalculate(e,function(){return t.getIFrameUrl()}),t.data.$iframe.attr("src",e)},creationFunction:function(){var t=this;if(t.shouldRenderIFrame()){var n=t.isScrollableIFrame(),i=f.useTemplate(e.ElementContent,{url:t.getIFrameUrl(),scrolling:n?"yes":"no"});t.data.$iframeContainer=i;var a=t.data.$iframe=i.find(".iframe-content-element");return a.attr("allow","autoplay; fullscreen"),a.addClass("state-invisible"),a.load(function(){a.removeClass("state-invisible")}),i}return f('<div class="iframe-content-block"></div>')}},aggregatedMethods:{aggregations:{}}}})}(),function(){ai.registerDefinition(oi,{ConnectableExternalApp:{aggregatedMethods:{aggregations:{onCreation:function(){this.featureConnections={}}}},methods:{getAppConnectableFeatures:function(){return this.getAppDefinition().connectableFeatures},getAppConnectableFeature:function(e){return this.getAppConnectableFeatures()[e]},callConnectedFeatureFunction:function(e,t,n,i){var a=this.featureConnections[e];a&&a.instance.callFeatureFunction(e,t,n,this.createCallInfo(),i)},connectFeatureInstance:function(e,t){var n=this;if(!t.hasFeature(oi.FeatureExternalApp))throw Error("Invalid use");var i=t.getAppFeature(e);if(!i)throw Error("Instance: {0} doesn't implement feature: {1}".format(t.id,e));var a=t.appFeaturesEvent.bind(e,function(t,i,a){n.getApiManager().fireConnectedFeatureEvent(e,t,i,a)});n.featureConnections[e]={instance:t,eventBinding:a}},disconnectFeatureInstance:function(e){var t=this,n=t.featureConnections[e];n&&(n.eventBinding.unbind(),delete t.featureConnections[e])}}}})}(),function(){function e(e){var t=e.getAppDefinition();return t.growableSettings?t.growableSettings.view?!0:(t.growableSettings.design,void 0):!0}ai.registerDefinition(oi,{ExternalApp:{features:[oi.IFrameContent],defaultProperties:{},properties:{appProperties:{}},lazyInitializationProperties:{isIframeInitialized:O.createFalse,isIframeNotLoaded:O.createFalse,connectableFeaturesEvent:x.createNamedEvents},aggregatedMethods:{aggregations:{onRemove:function(){var e=this;e.data.apiManager&&(e.data.apiManager.deactivate(),delete e.data.apiManager)},switchToPreview:function(e){e&&this.reloadApp()},updateInstanceToViewPort:function(){this.reloadApp()},removeInstanceFromViewPort:function(){this.reloadApp()},onInitializing:function(){var e=this;if(e.shouldRenderIFrame()){var t={apiInitialize:function(){e.isIframeInitialized.setTrue()}};e.data.apiManager=new Qa({instance:e,$iframe:e.data.$iframe,callbacks:t});var n=e.getAppDefinition();n.resizingSettings&&(n.resizingSettings.canResizeVertically===!1&&e.canResizeVertically.setFalse(),n.resizingSettings.canResizeHorizontally===!1&&e.canResizeHorizontally.setFalse()),e.InstancePropertiesInitialized.onceTrue(function(){f.eachEntry(e.getAppSettings(),function(t){e.isQueryParamSetting(t)&&e.bindAppSettingProperty(t,function(){e.reloadApp()})})}),e.resizingStopped.bind(function(){e.data.lastDocumentSize&&n.resizingSettings.canResizeVertically===!1&&e.setDocumentSize(e.data.lastDocumentSize)}),e.visibilityChangedEvent.bind(function(){e.isInstanceVisible()&&e.reloadApp()}),setTimeout(function(){e.isIframeInitialized.isFalse()&&e.isIframeNotLoaded.setTrue()},5e3)}}}},methods:{isGrowingEnabled:function(){return e(this)},setDocumentSize:function(t){e(this)&&(de.disableOperationsRecording("setDocumentSize"),this.data.lastDocumentSize=t,this.whenInstanceContentHeightChanged(t.height),de.enableOperationsRecording("setDocumentSize"))},calculateNormalizedHeight:function(e){var t=this,n=t.getNoneContentSize();return e+n.height},setAppSize:function(e){de.disableOperationsRecording("setAppSize");var t=this.getNoneContentSize();ca.setInstancesSize(this,{width:e.width+t.width,height:e.height+t.height}),de.enableOperationsRecording("setAppSize")},setAppContentSize:function(e){this.data.$iframeContainer.css({width:e.width,height:e.height})},createCallInfo:function(){var e=this,t=e.getAppDefinition(),n={instanceId:e.id,app:{id:t.id,version:t.version,name:t.name}};return n},getAppDefinition:function(){return this.elementType.appDefinition},getAppSettingPrefix:function(){return this.getAppDefinition().appSettingPrefix},getAppSettings:function(){return this.getAppDefinition().settings},getAppSettingValue:function(e){var t=this.getAppSettings(),n=this.getPropertyValue(this.getAppDefinition().appSettingPrefix+e),i=t[e];return i&&"color"===i.type?f.Color(Ka.evaluateColorBinding(n)).toHEX():n},setAppSettingValue:function(e,t){var n=this.getAppSettings();n.hasOwnProperty(e)&&this.setPropertyValue(this.getAppSettingPrefix()+e,t)},isQueryParamSetting:function(e){return-1!=f.inArray(e,this.elementType.querySettings)},getApiManager:function(){return this.data.apiManager},reloadApp:function(e){var t=this,n=[va.PageChangingOperation];Ae.whenAllFinished(n,function(){t.reloadIFrame(t.getIFrameUrl(e))},t.id+"reloadApp")},shouldRenderIFrame:function(){return!this.isForTemplateUse()},getIFrameUrl:function(e){var t=this.getAppDefinition(),n=t.queryParams;n&&(e=f.quickExtend({},e),f.eachEntry(n,function(t,n){e[t]=f.evaluateWhenFunction(n)}));var i={wzSize:this.getContentSize()};return Za.createIframeUrl(this,{frameId:this.id,baseUrl:t.getUrl(),apiType:"app",additionalParams:e,encodedParams:i})},bindAppSettingProperty:function(e,t,n){var i=this.getAppSettingPrefix();return this.bindPropertyChange(i+e,t,n)},getMinSize:function($super){var e=this.getAppDefinition();return e.resizingSettings&&e.resizingSettings.minSize?e.resizingSettings.minSize:$super.call(this)},getMaxSize:function($super){var e=this.getAppDefinition();return e.resizingSettings&&e.resizingSettings.maxSize?e.resizingSettings.maxSize:$super.call(this)}}}})}(),function(){ai.registerDefinition(oi,{FeatureExternalApp:{aggregatedMethods:{aggregations:{onCreation:function(){this.appFeaturesEvent=x.createNamedEvents()}}},methods:{getAppFeatures:function(){return this.getAppDefinition().implementedFeatures},getAppFeature:function(e){return this.getAppFeatures()[e]},getInternalFeatureName:function(e){return f.findFirst(this.getAppFeatures(),function(t,n){return n.isInternal&&n.featureInternalType===e})},fireFeatureEvent:function(e,t,n){this.appFeaturesEvent.fire(e,this,t,n,this.createCallInfo())},callFeatureFunction:function(e,t,n,i,a){this.getApiManager().callFeatureFunction(e,t,n,i,a)},bindFeatureEvent:function(e,t){return this.appFeaturesEvent.bind(e,t)}}}})}(),function(){ai.registerDefinition(oi,{NavigatableExternalApp:{features:[],methods:{navigate:function(e,t,n,i){this.callFeatureFunction(this.data.navigatableFeatureName,"navigate",{navigationDelta:e,useAnimation:t,animationOptions:i},{},n)}},aggregatedMethods:{aggregations:{onInitializing:function(){this.data.navigatableFeatureName=this.getInternalFeatureName("NavigatableExternalApp")}}}}})}(),function(){function e(e,t){t.setNeverSelectedInClick(!0),t.getSkinInstance().setNeverSelectedInClick(!0),e.onItemSet(t)}function t(e,t){return void 0!==e.getInstanceController(t)}ai.registerDefinition(oi,{HasMenu:{methods:{refreshSelectedItem:function(){var e=this;Er.performUpdateOnRenderingFinished(function(){if(e.isInstanceVisible()){var n=e.getPotentialSelectedMenuItemId(),i=e.data.currentItemSelected;if(i&&i.getDataItemId()!==n){var a=i.getSkinInstance();a.userSelect(!1)}if(n&&t(e,n)){var r=e.getInstanceController(n),o=r.getInstance();e.data.currentItemSelected=o,o.getSkinInstance().userSelect(!0)}}},e.id+"onItemChanged-hasmenu")}},aggregatedMethods:{aggregations:{setItem:function(t){var n=this;t.data.onHasMenuITemCreated=t.instanceController.createdFlag.onceTrue(function(){e(n,t)}),t.instanceRemoving.one(function(){t.data.onHasMenuITemCreated.unbind()})},onInitializing:function(){var e=this,t=e.getDataSource().currentItemChangedEvent.bindAndExecute(function(){e.performWhenVisible(function(){e.refreshSelectedItem()},e.id+"currentItemChangedEvent-visibility")});e.instanceRemoving.one(function(){t.unbind()})}}}}})}(),function(){ai.registerDefinition(oi,{HasNavigation:{properties:{navigation:{isStateProperty:!0,defaultValue:f.returnFixedValue("SlideNavigation"),onChange:function(e,t){var n=e.data.navigationController;n&&n.replaceNavigation(t)}},navigationProperties:{isStateProperty:!0,defaultValue:function(){return{direction:"left",width:250,height:400,animationSpeed:400,hierarchyOpened:!1,useHierarchy:!0,pushContent:!1,backgroundColor:{mainColor:1,opacity:1,brightness:0},fontColor:{mainColor:3,opacity:1,brightness:0},fontSize:16,font:{themeFont:"heading1"}}}}},methods:{hasButtonBehaviour:us},aggregatedMethods:{aggregations:{switchToPreview:function(){var e=this;e.$element.bind("click.navigation",function(){e.data.navigationController.isOpened.isFalse()?e.data.navigationController.open({$element:e.$element,instanceId:e.id,navigationProperties:e.getPropertyValue("navigationProperties")}):e.data.navigationController.close()})},onRemove:function(){var e=this.data.navigationController;e&&e.remove()},onInitializing:function(){this.data.navigationController=Pr.createNavigationController(this.getPropertyValue("navigation"))}}}}})}(),function(){function e(e){return{dataItemID:e.id,dataSourceName:e.id,styleBindingId:e.getSkinId()}}ai.registerDefinition(oi,{SkinElement:{className:"skin-element",features:[oi.ItemsContainer,oi.HasSkinBinding],properties:{skinBinding:{defaultValue:gs,title:"Skin Binding",preSaveProcessing:function(e){if(e&&e.type===ir.Inline){var t=e.skinName+e.index,n=lr.getStyle(t);if(n){var i=lr.getStyleInformation(t);i&&(e.hierarchy.fieldsToValues=i.fields,e.hierarchy.statesAnimations=i.statesAnimations)}}return e},onChange:function(e,t,n,i){e.skinUpdateEventBindings&&e.skinUpdateEventBindings.unbind(),i&&i.type===ir.Inline&&lr.removeStyle(i.skinName+i.index);var a=f.objectGet(t.hierarchy);a&&f.eachEntry(a.fieldsToData,function(e){a.fieldsToValues[e]||delete a.fieldsToData[e]}),e.skinUpdateEventBindings=or.Events.SkinHierarchyUpdated.bindAndExecute(e.getSkinId(),function(){e.performWhenVisible(function(){e.setSkinInstanceControllerFromBinding()},e.id+"skinBinding")})}}},methods:{setOverFlow:function($super){var e=this;$super.call(e);var t=e.getSkinInstance();t&&t.setOverFlow()},initiailizeDelegatedContentBinding:function(e){var t=this;t.instanceController.createdEvent.bindAndExecute(function(){t.instanceController.createdFlag.isTrue()&&Er.performOnFramesLayoutUpdade(e,t.id+"initiailizeDelegatedContentBinding")})},getNoneContentSize:f.returnZeroSize,getLayoutAffectedInstances:function($super){var e=Oe.clone($super.call(this));return e.push(this.getSkinInstance()),e},getInstancesBindingsByField:function(e){return this.getSkinInstance().getInstancesBindingsByField(e)},setSkinInstanceControllerFromBinding:function(){var e=this,t=e.getPropertyValue("skinBinding");de.disableOperationsRecording("setSkinInstanceControllerFromBinding"),lr.isStyleExist(e.getSkinId())||lr.addStyle(e.getSkinId(),e.getSkinFieldsValues(),e.getSkinStatesAnimations());var n=or.getSkinHierarchy(t);e.instanceController.extendDataSourceOptionsWith({styleBindingId:e.getSkinId()}),e.instanceController.setTemplateStructure(n),e.instanceController.initialize(),e.instanceController.appendTo(e.getElementContent(),e),de.enableOperationsRecording("setSkinInstanceControllerFromBinding")},getMainSkinInstance:function(){return this},getSkinInstance:function(){return this.instanceController.getTemplateStructure()||this.setSkinInstanceControllerFromBinding(),this.instanceController.getInstance()},getSkinSupportedStates:function(){return[Oi.MouseOverState,Oi.MouseDownState]},reorderChildElements:cs,getSkinBinding:function(){return f.cloneObject(this.getPropertyValue("skinBinding"))},getSkinId:function(){var e=this.getSkinBinding();void 0!==e.index?e.index:"";return e.skinName+e.index},creationFunction:function(){return f("<div class='absolute-fill'></div>")},getSkinFieldsValues:function(){var e=this.getPropertyValue("skinBinding"),t=or.getSkinHierarchy(e),n=t?t.fieldsToValues:void 0;return n?n:{}},getSkinStatesAnimations:function(){var e=this.getPropertyValue("skinBinding"),t=or.getSkinHierarchy(e),n=t?t.statesAnimations:void 0;return n?n:{}},extendDataSourceOptionsWith:function(e,t){this.instanceController.extendDataSourceOptionsWith(e,t)},setStructureProcessor:function(e,t){this.instanceController.setStructureProcessor(e,t)}},lazyInitializationProperties:{instanceController:function(){var t=this;return No.create(void 0,{className:"skin-instance-controller",parentInstanceId:t.id,dataSourceOptions:e(t),templateOptions:{isContent:!0,isLoading:!0,generateNewID:!0,thumbsResolver:t.data.thumbsResolver}})}},aggregatedMethods:{aggregations:{updateInstanceToViewPort:function(){var e=this;e.data.removingSkinElementFromMobile&&(e.data.removingSkinElementFromMobile.unbind(),e.data.removingSkinElementFromMobile=void 0),e.performWhenVisible(function(){sa.performOnInstancesInitialization([e.id],function(){f.eachItem(e.getSkinInstance().getDescendingInstances(!0),function(e,t){sa.performOnInstancesInitialization([t.id],function(){t.refreshStyleBinding()})})})},"updateInstanceToViewPortskinElement"+e.id)},removeInstanceFromViewPort:function(){var e=this;e.abortPerformWhenVisible("updateInstanceToViewPortskinElement"+e.id),e.data.removingSkinElementFromMobile=Ha.Events.AfterSwitchBetweenDevices.bind(function(){e.data.removingSkinElementFromMobile.unbind(),e.data.removingSkinElementFromMobile=void 0,e.performWhenVisible(function(){sa.performOnInstancesInitialization([e.id],function(){
f.eachItem(e.getSkinInstance().getDescendingInstances(!0),function(e,t){sa.performOnInstancesInitialization([t.id],function(){t.refreshStyleBinding()})})})},"updateInstanceToViewPortskinElement"+e.id)})}}}}})}(),function(){ai.registerDefinition(oi,{CommonDataListSkinItem:{features:[oi.SkinElement,oi.DataListItem,oi.HasResponsiveItem,oi.Resizable,oi.Selectable,oi.HasLayout,oi.Clickable,oi.Hideable,oi.HasPadding,oi.HasContent],methods:{setOverFlow:function(){var e=this,t=e.getItemMainParent();t&&(e.isOverflowHidden.setValue(t.isOverflowHidden.getValue()),e.instanceController.initializeFlag.onceTrue(function(){Er.performUpdateOnRenderingFinished(function(){var t=e.getSkinInstance();t&&t.setOverFlow()},e.id+"setOverFlow")}))}},aggregatedMethods:{aggregations:{onInitialized:function(){var e=this,t=e.getItemMainParent();t&&t.isOverflowHidden.valueChangedEvent.bindAndExecute(function(){e.setOverFlow()})}}}}})}(),function(){ai.registerDefinition(oi,{RemoteDataListSkinItem:{features:[oi.CommonDataListSkinItem]}})}();var ko={heading:{fontSize:25,fontFamily:{themeFont:"heading1"},color:"#000000",lineHeight:120,letterSpacing:0},"sub-heading":{fontSize:20,fontFamily:{themeFont:"heading2"},color:"#000000",lineHeight:120,letterSpacing:0},normal:{fontSize:15,fontFamily:{themeFont:"body1"},color:"#000000",lineHeight:120,letterSpacing:0},link:{color:"#1968d3",hoverColor:"#4393ff",useUnderline:!0},marked:{color:"#0A0707",backgroundColor:"#E8FF3B"},separator:{borderColor:"#000000",borderStyle:"solid",borderWidth:1}};!function(){function e(e){var t=e.getDomId(),n={};return{rule:function(e,i,a){var r=n[e];r||(r=n[e]=f.rule((a?"#body-element ":"")+"#"+t+" "+e+" {}")),r.css(i)}}}function t(e,t,n){var i=e.instanceCssRules,a=Ga.getValue(t),r=a.contentType;switch(r){case Wa.Text:var o={color:Ka.evaluateColorBinding(n.color,!0),"font-family":er.evaluateFontBinding(n.fontFamily),"font-size":n.fontSize,"line-height":n.lineHeight/100,"letter-spacing":n.letterSpacing};a.isDefault?e.getElementDataContent().css(o):i.rule(".theme-inline-text-style-"+t,o);break;case Wa.Link:i.rule("a",{color:Ka.evaluateColorBinding(n.color,!0),"text-decoration":n.useUnderline?"underline":"none"},!0),i.rule("a:hover",{color:"transparent"===n.hoverColor?"":Ka.evaluateColorBinding(n.hoverColor,!0)},!0);break;case Wa.Marked:i.rule(".theme-inline-text-style-"+t,{color:"transparent"===n.color?"":Ka.evaluateColorBinding(n.color,!0),"background-color":Ka.evaluateColorBinding(n.backgroundColor,!0)});break;case Wa.Separator:i.rule("hr",{borderColor:Ka.evaluateColorBinding(n.borderColor,!0),borderWidth:n.borderWidth,borderStyle:n.borderStyle})}}ai.registerDefinition(oi,{HasMultiStyles:{properties:{predefinedTextStyles:{isStateProperty:!0,isStyleProperty:!0,defaultValue:function(){return ko},onChange:function(e){var n=e.getPropertyValue(ui.predefinedTextStyles.name);f.eachEntry(n,function(n,i){t(e,n,i)})}}},aggregatedMethods:{aggregations:{onCreation:function(){var t=this;t.instanceCssRules=e(t)}}}}})}(),function(){ai.registerDefinition(oi,{HasRichContent:{className:"has-rich-content",features:[oi.HasGrowableContent,oi.Editable,oi.Clickable],methods:{setRichContent:function(e){var t=this;e=tr.startProcessing(e).processLinks().processCKObjectsForViewing().finish().getProcessedContent(),t.getElementDataContent().html(e),t.refreshRichContentState()},refreshRichContentState:function(){var e=this.getElementDataContent();e.chooseClass(e.hasVisualContent(),"has-content","no-content")}}}})}(),function(){function e(e){e.data.payPalHolder=f.useTemplate(t.ElementContent),e.data.payPalButtonController=Sa.createButton();var n=e.getPropertyValue("paypalOptions"),i=e.getPropertyValue("paypalData");return e.data.payPalButtonController.refresh(Xi.Types.PayPal,n,i.type,e.data.payPalHolder),e.data.payPalHolder}var t={ElementContent:{id:"paypal-button-template"}};ai.registerDefinition(oi,{PaypalFeature:{properties:{paypalData:{defaultValue:function(){return{type:Sa.ButtonTypes.buynow.value,accountType:Xi.Types.PayPal}},isNotForCustomProperty:!0,supportsBinding:!0,isBound:function(e){return e.isBound&&e.isBound(mi.paypal.getContentType())},onChange:function(e,t){if(e.InstancePropertiesInitialized.isTrue()){var n=e.getPropertyValue("paypalOptions");e.data.payPalButtonController.refresh(Xi.Types.PayPal,n,t.type,e.data.payPalHolder)}}},paypalOptions:{isNotForCustomProperty:!0,defaultValue:function(){return{item_name:"Product Name",currency_code:"USD",shipping:0,tax:0,amount:5,quantity:1}},supportsBinding:!0,isBound:function(e){return e.isBound&&e.isBound(mi.paypal.getContentType())},onChange:function(e,t){if(e.InstancePropertiesInitialized.isTrue()){var n=e.getPropertyValue("paypalData");e.data.payPalButtonController.refresh(Xi.Types.PayPal,t,n.type,e.data.payPalHolder)}}}},methods:{hasButtonBehaviour:us,hasBinding:function(){return ui.paypalData.isBound(this)&&ui.payPal.isBound(this)},creationFunction:e,createBindingFieldsToProperties:function($super){var e=this,t=$super.call(e);return this.isBound(mi.paypal.getContentType())&&(t[ui.paypalData.name]=Po.create(e,{propertyName:ui.paypalData.name}),t[ui.paypalOptions.name]=Po.create(e,{propertyName:ui.paypalOptions.name})),t}},aggregatedMethods:{aggregations:{switchToPreview:function(){this.data.payPalButtonController.activate(this)},onBoundValueReady:function(e){var t=this;t.isBound(mi.paypal.getContentType())&&t.setBindingValueToProperty({paypalData:void 0===e[mi.paypal.getContentType()]?ui.paypalData.defaultValue():e[mi.paypal.getContentType()].paypalData,paypalOptions:void 0===e[mi.paypal.getContentType()]?ui.paypalOptions.defaultValue():e[mi.paypal.getContentType()].paypalOptions})}}}}})}(),function(){function e(e){e.data.payPalHolder=f.useTemplate(t.ElementContent);var n=Sa.createButton();e.data.payPalButtonController=n;e.getPropertyValue("paypalAccount");return e.data.payPalButtonController.refresh(Xi.Types.PayPal,{},"view",e.data.payPalHolder),e.data.payPalHolder}var t={ElementContent:{id:"paypal-button-template"}};ai.registerDefinition(oi,{CheckOutFeature:{properties:{paypalAccount:{isNotForCustomProperty:!0,defaultValue:function(){return Xi.Types.PayPal},onChange:function(e){if(e.InstancePropertiesInitialized.isTrue()){var t=e.getPropertyValue("checkOutOptions");e.data.payPalButtonController.refresh(Xi.Types.PayPal,t,"view",e.data.payPalHolder)}}},checkOutOptions:{isNotForCustomProperty:!0,defaultValue:function(){return{notify_url:""}},onChange:function(e,t){if(e.InstancePropertiesInitialized.isTrue()){e.getPropertyValue("paypalAccount");e.data.payPalButtonController.refresh(Xi.Types.PayPal,t,"view",e.data.payPalHolder)}}}},methods:{hasButtonBehaviour:us,creationFunction:e},aggregatedMethods:{aggregations:{switchToPreview:function(){this.data.payPalButtonController.activate(this)}}}}})}(),function(){function e(e,t){function n(){s&&r.appendTo(c.$element)}function i(){var e=c.getInstance();u.add(e.instanceController.createdFlag.onceTrue(function(){s=e.getSkinInstance().getInstancesByField("title")[0],s&&(u.add(s.propertiesChanged.bind(function(e){f.containsOneOfKeys(e,"fontColor","fontSize","namedTextStyle")&&a(s)})),a(),l&&n())}))}function a(){var e="#000",n=s.getPropertyValue("fontColor"),i=Xa.getElementTextStyle(s);!n&&i&&(n=i.color),n&&(e=n,e=Ka.evaluateColorBinding(e,!0));var a=s.getPropertyValue("fontSize")||14;!a&&i&&(a=i.fontSize);var r;switch(t.arrowSide){case gt.Bottom:r="angle-down";break;case gt.Top:r="angle-up";break;case gt.Right:r="angle-right";break;case gt.Left:r="angle-left"}o.css({fontSize:a,color:e}),Ir.applyIcon(o,{collectionName:"public-font-icons",iconName:r})}t=f.quickExtend({arrowSide:gt.Bottom,controller:void 0},t);var r,o,s,l,c=t.controller,u=x.createBindingsCollection();u.add(e.propertyChangedEvent.bindAndExecute("showDropDownArrow",function(){l=e.getPropertyValue("showDropDownArrow"),l?r?n():(r=f('<div class="right-block menu-sub-hierarchy menu-button-cursor-pointer vertically-center-children"><span class="menu-sub-hierarchy-arrow"></span></div>'),o=f(".menu-sub-hierarchy-arrow",r),u.add(c.initializeFlag.onceTrue(i))):r&&r.detach()}));var d=!1,g={remove:function(){d||(d=!0,r&&r.remove(),u.unbindAll())}};return c.removedEvent.one(function(){g.remove()}),g}function t(e,t){t=f.quickExtend({instanceCreatedCallback:cs},t);var n={};return{createInstanceController:function(i){var a=i.id,r=n[a];if(!r){var o=e.getDefaultTemplate().hierarchy;r=No.create(o,{fieldName:e.elementType.itemName,dataSourceOptions:{dataItem:i,dataItemID:i.id,dataSourceName:e.getDataSourceName()},templateOptions:{isContent:!0,isLoading:!0,rootsIds:[e.id+Ke+"temp"+Ke+a],generateNewID:!0},isForTemplateUse:!1});var s=e.dataLayoutController.getLastArrangementOptionsByCurrentDevice();r.setSize(s.fixedSize),n[a]=r,t.instanceCreatedCallback(r)}return r},remove:function(){f.eachEntry(n,function(e,t){t.removeController()})}}}function n(e){function t(t){i.activate(),t.data.isMoreButton=!0,t.instanceRemoving.one(function(){i.deactivate()}),t.getItemMainParent=function(){return e},t.setNeverSelectedInClick(!0),t.instanceController.initializeFlag.onceTrue(function(){t.getSkinInstance().setNeverSelectedInClick(!0);var n=t.getSkinInstance().getPropertyValue("fieldsMap"),i=e.getPropertyValue("moreButtonText");t.instanceController.createdFlag.onceTrue(function(){f.eachEntry(n,function(n,a){var r=sa.getInstanceByID(n),o=!1;f.eachEntry(a,function(n,a){if(n==bi.Text&&"title"===a.name){o=!0,fa.removeStateAffected(r,function(e,t,n,i){return"text"===i}),r.setPropertyValue("binding",null),r.data.textBinding=Po.create(r,{propertyName:"text"}),r.data.textBinding.setValue(i);var s=e.propertyChangedEvent.bind("moreButtonText",function(e){r.data.textBinding.setValue(e)});t.instanceRemoved.one(function(){s.unbind()})}}),o||sa.removeInstances(r)})})})}var n=No.create(e.getDefaultTemplate().hierarchy,{parentInstanceId:e.id,dataSourceOptions:{dataItemID:""+f.uniqueID()},templateOptions:{initialProperties:{all:{binding:null}},isContent:!0,isLoading:!0,generateNewID:!0}}),i=x.createEventListener([{event:e.propertyChangedEvent,name:"fieldsTemplates"}],function(){var i=e.getDefaultTemplate().hierarchy;i.id!==n.getTemplateStructure().id&&(n.setTemplateStructure(i),t(n.getInstance()))}),a=n.getInstance();return t(a),n}ai.registerDefinition(oi,{HasMoreButton:{properties:{dropDownNavigationSettings:{isStateProperty:!0,defaultValue:function(){return{navigation:"DropDownNavigation",navigationProperties:{width:150,spacing:20,mobileHeight:400,mobileDirection:"left",mobileWidth:250,animationSpeed:400,useHierarchy:!0,hierarchyOpened:!1,backgroundColor:{mainColor:1,opacity:1,brightness:0},fontColor:{mainColor:3,opacity:1,brightness:0},fontSize:15,borderRadius:0,borderWidth:0,borderColor:{mainColor:1,opacity:1,brightness:0},orientation:"center",horizontalPosition:gt.Center,horizontalLeft:0,horizontalRight:0,verticalDistance:0,horizontalDistance:0,verticalTop:0,innerDistance:0,font:{themeFont:"heading1"},useSkinButton:!1,showDropDownArrow:!0}}}},moreButtonText:{isStateProperty:!0,defaultValue:cs},showDropDownArrow:{isStateProperty:!0,defaultValue:ds}},defaultProperties:{itemFields:function(){return{index:{type:"index",title:void 0,name:"index",isDefaultField:!0},title:{type:"title",title:void 0,name:"title",isDefaultField:!0}}},sizeAndPosition:function(){return{width:400,height:400,top:0,left:0}},dataLayout:function(){return{name:Zi.HorizontalMenu.name}},dataLayoutOptions:function(){return{lineSpacing:15,columnSpacing:15,colsSpacing:15,rowsSpacing:15,rotation:0,cols:3,R:100,maxItems:6}}},methods:{getArrangementOptions:function($super){var e=this,t=e.data;return f.quickExtend($super.call(e),{dropDownNavigationSettings:e.getPropertyValue("dropDownNavigationSettings"),createSubHierarchyElement:t.createSubHierarchyElement,createMoreItemsController:t.createMoreItemsController,createItemsController:t.createItemsController})}},aggregatedMethods:{aggregations:{switchToPreview:function(e){e&&this.requestArrangement()},onInitializing:function(){var i=this,a=i.data;a.createMoreItemsController=f.firstArgProxy(n,i),a.createSubHierarchyElement=f.firstArgProxy(e,i),a.createItemsController=f.firstArgProxy(t,i)}}}}})}(),function(){ai.registerDefinition(oi,{DelegatedContent:{features:[oi.HasGrowableContent],methods:{getDelegatedContentInstance:cs,getElementDataContent:function($super){var e=this,t=e.getDelegatedContentInstance();return t?t.$element:$super.call(e)},refreshContentSize:function($super){var e=this.getDelegatedContentInstance();e?void 0!==e.contentHeight.getValue()&&$super.call(this):$super.call(this)},getElementDataContentSize:function($super){var e=this,t=e.getDelegatedContentInstance();if(t){var n=t.getSize(),i=e.getSize();n.height=Math.max(n.height,t.contentHeight.getValue());var a=i.width-n.width,r=i.height-n.height;return{width:n.width+a,height:t.contentHeight.getValue()+r}}return $super.call(e)},initiailizeDelegatedContentBinding:function(e){var t=this;Er.performOnFramesLayoutUpdade(e,t.id+"initiailizeDelegatedContentBinding")}},aggregatedMethods:{aggregations:{onInitialized:function(){var e=this;e.initiailizeDelegatedContentBinding(function(){var t=e.getDelegatedContentInstance();t&&t.contentHeightRefreshedEvent.bind(function(){e.refreshContentSize()})})}}}}})}(),function(){function e(e,t){var n,i,a;return Ha.Flags.IsInMobileContext.isTrue()?(n=e.data.mobilePopupController,!n&&t&&(n=e.data.mobilePopupController=_n.MobilePopup.create(e.id,{items:e.getPopupItemsCollectionForInitialization(),isVideo:e.isType(ri.VideoGallery)||e.isType(ri.VideoPlayer),isElement:e.isType(ri.JMMLElement),isMobile:!0}))):(n=e.data.popupController,!n&&t&&(i=e.getPropertyValue("popupType"),a=e.getPropertyValue("popupSettings")||{},(a.popupType=i)&&(a=a.settings),n=ya.create(e.id,i,{items:e.getPopupItemsCollectionForInitialization(),isVideo:e.isType(ri.VideoGallery)||e.isType(ri.VideoPlayer),isMobile:!1},a),e.data.popupController=n)),n}function t(e){var t,n=e.getPropertyValue("templateOpener");e.$element.toggleClass("popupOpener",n),n?e.data.popupBinding=e.triggerActivated.bind(Li.MouseClick.name,function(n){t=i(e,n),void 0!==t&&e.showPopup({currentItem:t})}):e.data.popupBinding&&e.data.popupBinding.unbind()}function i(e,t){var i;if(e.isType(ri.image)||e.isType(ri.VideoPlayer))return e.getClickedIndex?e.getClickedIndex():0;if((e.isType(ri.Gallery)||e.isType(ri.VideoGallery))&&(i=f(t.target).closest(".design-element.data-list-item"),i.length>0)){var a=n(i[0]);if(a)return a.getDataItem()}}ai.registerDefinition(oi,{HasPopup:{features:[oi.Clickable],className:"has-popup",properties:{templateOpener:{defaultValue:ds,isNotForCustomProperty:!0,onChange:function(e){t(e)}},popupType:{defaultValue:function(){return ya.defaultPopupName}},popupSettings:{}},methods:{isPopupDisabled:ds,showPopup:function(t){if(!this.isPopupDisabled()){var n,i,a=this,r=e(a,!0),o=(Ha.Flags.IsInMobileContext.isTrue(),_.create()),s=x.createEventListener([va.Events.PageChanging,na.Events.ViewModeChanged,Ha.Events.SwitchingBetweenDevices],function(){r.hide(!1)}).activate();i=x.createEventListener(f.getWindowSizeEvent(),function(){o.setValue(f.getWindowArea())}),i.activateAndExecute(),t=f.quickExtend({currentItem:0,items:a.getPopupItems(),shouldResetItems:a.shouldResetItems,containerArea:o,hostContainer:n,closeCallback:function(){s.dispose(),i.dispose()}},t),r.show(t)}},getPopupItemsCollectionForInitialization:cs,getPopupItems:cs,isPopupEnabled:function(){return this.getPropertyValue("templateOpener")},hasButtonBehaviour:function($super){return $super.call(this)||!this.hasFeature(oi.DataList)&&this.isPopupEnabled()}},aggregatedMethods:{aggregations:{onRemove:function(){var t=this,n=e(t);n&&n.dispose()}}}}})}(),function(){ai.registerDefinition(oi,{HasPopupElement:{features:[oi.HasPopup],properties:{elementPopupEnabled:{isStateProperty:!0,defaultValue:us},elementPopupTimeout:{defaultValue:function(){return 1e3}},elementPopupVisible:{defaultValue:ds}},defaultProperties:{popupType:{defaultValue:function(){return"ElementPopup"}}},methods:{showElementInPopup:function(){var e=this;e.$elementParent=e.$element.parent(),Ha.Flags.IsInMobileContext.isFalse()?(e.setCalculatedPropertyValue("horizontalDocking",ut.Centered),e.setCalculatedPropertyValue("verticalDocking",dt.Centered),e.setPropertyFieldValue("margin","top",0),e.setPropertyFieldValue("margin","left",0)):(e.setCalculatedPropertyValue("horizontalDocking",ut.Left),e.setCalculatedPropertyValue("verticalDocking",dt.Center)),e.setPropertyValue("isVisible",!1),e.properties.isVisible.value=!1;var t=1e3*(e.getPropertyValue("elementPopupTimeout")||0);if(e.getPropertyValue("elementPopupEnabled")){e.popUpTimeout=setTimeout(function(){Er.startRenderingBatch(),e.setPropertyValue("isVisible",!0),e.showElement(),e.showPopup({currentItem:e}),Er.finishRenderingBatch();var t=e.data.popupController||e.data.mobilePopupController;t.$container.on("click",function(n){0===e.$element.has(n.target).length&&t.hide(!0)})},t);var n=x.createEventListener(va.Events.PageChanged,function(){window.clearTimeout(e.popUpTimeout),n.deactivate()});n.activate()}},getPopupItemsCollectionForInitialization:function(){return this.$element}},aggregatedMethods:{aggregations:{}}}})}(),function(){ai.registerDefinition(oi,{SkinSelectable:{methods:{getSkinSupportedStates:function(){return[Oi.ElementSelectedState,Oi.MouseOverState,Oi.MouseDownState]},userSelect:function($super,e){void 0===e&&(e=!this.data.isUserSelected),$super.call(this,e),this.getSkinInstance().userSelect(e)}}}})}(),function(){ai.registerDefinition(oi,{HasFormData:{features:[oi.HasInnerShadow,oi.HasResponsiveItem,oi.Resizable,oi.Selectable,oi.HasBackground,oi.HasBackgroundImage,oi.HasLayout,oi.Focusable,oi.Hideable,oi.HasBorder],properties:{formID:{defaultValue:gs},formOptions:{defaultValue:function(){return{clearOnSubmit:!0}}}},defaultProperties:{dataLayout:function(){return{name:"Rows"}},dataLayoutOptions:function(){return{cols:1,rows:5,colsSpacing:10,rowsSpacing:10,oneColumn:!0}},itemFields:function(){return{index:{type:"index",title:void 0,name:"index",isDefaultField:!0},labelText:{type:"title",title:void 0,name:"labelText",isDefaultField:!0}}}},methods:{getNewContentSize:function(e){return e.vertically=!1,this.calculateNewContentSize(e)},calculateDiffHeight:function(e,t,n,i){return n?i.height-n.height:0},calculateActualSize:function(){var e=this;return e.$element.elementContentSize()}},aggregatedMethods:{aggregations:{onInitializing:function(){var e=this;null===e.getPropertyValue("formID")&&(de.disableOperationsRecording("changingFormId"),e.setPropertyValue("formID",ka.generateWebsiteId()),de.enableOperationsRecording("changingFormId"))}}}}})}(),function(){ai.registerDefinition(oi,{HasFormDataList:{properties:{},methods:{getDefaultTemplate:function(e){var t=this.elementType.itemName,n=f.getValues(this.getFieldsTemplates()[e])[0];return n||(n=f.getValues(this.getFieldsTemplates()[t])[0]),n},hasHeight:function(){var e=this;return e.inEmptyStateFlag.isTrue()},hasVerticalAlign:ds,hasHorizontalAlign:ds,getDataSourceDefinition:function(){return hi.FormElementView},alignContentHorizontal:function(){if(this.hasContentHorizontalAlign()){var e=this.getPropertyValue("horizontalContentAlign");e!==lt.None?this.data.$relativeChildElementContentHolder.css({"text-align":"{0}".format(e)}):this.data.$relativeChildElementContentHolder.css({"text-align":""})}},hasContentHorizontalAlign:us,reorderChildElements:function(){if(this.hasOrder.getValue()){for(var e=f([]),t=this.getChildInstances(),n=0;n<t.length;n++)!t[n].hasFeature(oi.DataListItem)&&t[n].isContent()&&e.pushElements(t[n].$element);e.applyDOMOrder(),e=f([]);for(var n=0;n<t.length;n++)t[n].hasFeature(oi.DataListItem)||t[n].isContent()||!t[n].isInstanceVisible()||e.pushElements(t[n].$element);e.applyDOMOrder()}},adjustDataListToMobile:function(){var e=this;e.setPropertyValue("dataLayout",Zi.OneColumn),this.setPropertyFieldsValues("dataLayoutOptions",{rowsSpacing:10}),e.getDataSource().invalidateAllItems(),e.requestArrangement({keepItemSize:!1}),la.LayoutContentOperationsSet.lockRequest(e.getArrangementRequestName())},setContentSizeChangeBinding:function(){var e=this;e.contentSizeChangedEvent.bind(function(){if(e.shouldRequestArrangementFromSizeChange()){var t=e.getContentSize(),n=e.dataLayoutController.getLastArrangementInstanceSizeByDevice();f.sizesEqual({width:0,height:0},t)||n&&n.width===t.width||e.requestArrangement({keepItemSize:!1,shouldFetch:!1})}})},renderElementChildren:function(e){var t=this,n=(t.id,t.childInstances),i=n.length;e.openTag("div","element-content positioned"),e.addTag("div","arrangement-content-holder positioned","$arrangementContentHolder"),e.openTag("div","relative-child-elements-content-holder positioned","$relativeChildElementContentHolder");for(var a=0;i>a;a++){var r=n[a],o=!r.isContent()&&!r.hasFeature(oi.DataListItem);o?e.openTag("div","block positioned form-element-child",void 0,r.id+"form-child"):void 0,r.renderElement(e),o?e.closeTag():void 0}e.closeTag(),e.closeTag()},creationFunction:cs,addChildElement:function(e){if(e.isContent()||e.hasFeature(oi.DataListItem))return this.data.$relativeChildElementContentHolder.append(e.$element);e.$element.wrap(f("<div id='{0}' class='block positioned form-element-child'></div>".format(e.id+"form-child")));var t=e.$element.parent();return this.data.$relativeChildElementContentHolder.append(t)}},features:[oi.DataList],aggregatedMethods:{aggregations:{onChildElementAdded:function(e){var t=this;e.isContent()||e.isType(ri.skinInputElement)||(de.disableOperationsRecording("form-child-init"),e.isRelativePositionedFlag.setTrue(),e.isType(ri.SkinCheckBoxButtonElement)?(e.setPropertyValue("display",rt.Block),e.hasWidth=ds,e.canDelete=ds):(e.classesManager.set({"inline-block-element":!0}),e.isTypeOf(ri.SkinButtonElement)||ia.connectElement(e.id,t.id,Bi.SubmitForm.name,{triggerName:Li.MouseClick.name,triggerType:Fi.Trigger})),e.instanceRemoved.one(function(){la.requestUpdatePosition(t)}),e.data.formChild=!0,e.canPushFlag.setValue(!1,"formChild"),e.hasOrder.setValue(!1,"formChild"),e.customZIndex.setValue(Z.MinPropertyZindex),de.enableOperationsRecording("form-child-init"))},onChildElementRemoved:function(e){var t=this,n=e.elementType.name===ri.SkinCheckBoxButtonElement.name&&t.elementType.name===ri.FormElement.name;if(!e.isContent()&&!n){de.disableOperationsRecording("form-child-init"),e.isRelativePositionedFlag.setFalse(),e.classesManager.set({"inline-block-element":!1}),e.setPropertyValue("display",rt.Fixed);var i="#"+e.id+"form-child";f(i).remove(),de.enableOperationsRecording("form-child-init")}},onInitialized:function(){var e=this;x.createEventListener([e.reArrangingFinished,{event:e.propertyChangedEvent,name:"verticalLayout"}],function(){Er.performOnLayoutUpdate(function(){de.disableOperationsRecording("updateFormSize"),ca.setInstancesSize(e,e.getSize(),{preserveVerticalMargins:!0,preserveHorizontalMargins:!0}),de.enableOperationsRecording("updateFormSize")})}).activate()}}}}})}(),function(){ai.registerDefinition(oi,{HasDataBinding:{properties:{dataBinding:{isNotForCustomProperty:!0,defaultValue:gs,onChange:function(e){e.isForTemplateUse()||(fa.UpdateBatch.start(),e.initializeDataBinding(),fa.UpdateBatch.finish())}}},methods:{getDataBindingKey:function(){var e=this,t=e.getPropertyValue("dataBinding");return t&&t.value&&"string"==typeof t.value?""+t.value:null},getBindingStoreLevel:function(e){var t=this;return e||(e=t.getDataBindingKey()),Mr.getBindingStoreLevel(e)},hasDataBinding:function(){return null!==this.getDataBindingKey()&&null!==this.dataBindingProperty},deleteDataBinding:function(){var e=this;e.dataBindingProperty&&(e.dataBindingProperty&&e.data.dataBindingChangedID&&e.dataBindingProperty.valueChangedEvent.unbind(e.data.dataBindingChangedID),0!==e.dataBindingProperty.level&&Mr.deleteDataBinding(e.dataBindingProperty),delete e.dataBindingProperty)},getDataBinding:function(){var e=this;if(!e.hasDataBinding())return null;var t=e.getDataBindingKey();return t&&e.dataBindingProperty?e.dataBindingProperty.getValue():null},getDataBindingValue:function(e){var t=this,n=t.getDataBinding();if(n&&void 0!==n.value&&null!==n.value)return n.value;if(e===!0&&(null===n||0!==n.level)){var i=t.getDataBindingKey();if(i)return Mr.getDataBindingValue(i)}return null},initializeDataBinding:function(){var e=this;e.performWhenVisible(function(){var t=e.getDataBindingKey();if(t){var n=e.getBindingStoreLevel(t),i=null,a=t;if(n>0){if(i=Mr.getDataBindingId(e,n),!i)return;a=Mr.getDataBindingKey(t,n,i)}if(!e.dataBindingProperty||e.dataBindingProperty.key!==a||e.dataBindingProperty.level!==n){e.dataBindingProperty&&e.data.dataBindingChangedID&&e.dataBindingProperty.valueChangedEvent.unbind(e.data.dataBindingChangedID);var r=null;n>0&&e.dataBindingProperty&&(r=e.dataBindingProperty),e.dataBindingProperty=Mr.getDataBinding(t,n,i),e.dataBindingProperty&&(null!==r&&(e.dataBindingProperty.setValue(r.getValue()),Mr.deleteDataBindingIfNotInUse(r)),e.dataBindingProperty.valueChangedEvent&&(e.data.dataBindingChangedID=e.dataBindingProperty.valueChangedEvent.bind(function(){e.isUpdatingDataBindingValue.isFalse()&&e.updateElementWithDataBindingValue()})))}e.updateElementWithDataBindingValue()}},e.id+"initializeDataBinding-has-data-binding")},updateElementWithDataBindingValue:function(){var e=this,t=e.getDataBindingValue(!1);void 0!==t&&null!==t&&e.onDataBindingReady(t)},updateDataBinding:cs,allowUpdateDataBindingValue:ds},aggregatedMethods:{definitions:{onDataBindingReady:cs},aggregations:{onElementAddedToContainer:function(){var e=this.getDataBindingKey();if(e){var t=this.getBindingStoreLevel(e);1!==t&&2!==t||this.initializeDataBinding()}},onCreation:function(){var e=this;e.isUpdatingDataBindingValue=O.createConditionalNegative(),f.each(e.properties,function(t,n){if(n.descriptor.dataBindingKey){var i=Mr.getDataBindingValue(n.descriptor.dataBindingKey);i&&(n.descriptor.onDataBindingValueInit&&n.descriptor.onDataBindingValueInit(i),e.setPropertyValue(n.descriptor.name,i))}})}}}}})}(),function(){function e(e){for(var t=[{base:"A",letters:/[\u0041\u24B6\uFF21\u00C0\u00C1\u00C2\u1EA6\u1EA4\u1EAA\u1EA8\u00C3\u0100\u0102\u1EB0\u1EAE\u1EB4\u1EB2\u0226\u01E0\u00C4\u01DE\u1EA2\u00C5\u01FA\u01CD\u0200\u0202\u1EA0\u1EAC\u1EB6\u1E00\u0104\u023A\u2C6F]/g},{base:"AA",letters:/[\uA732]/g},{base:"AE",letters:/[\u00C6\u01FC\u01E2]/g},{base:"AO",letters:/[\uA734]/g},{base:"AU",letters:/[\uA736]/g},{base:"AV",letters:/[\uA738\uA73A]/g},{base:"AY",letters:/[\uA73C]/g},{base:"B",letters:/[\u0042\u24B7\uFF22\u1E02\u1E04\u1E06\u0243\u0182\u0181]/g},{base:"C",letters:/[\u0043\u24B8\uFF23\u0106\u0108\u010A\u010C\u00C7\u1E08\u0187\u023B\uA73E]/g},{base:"D",letters:/[\u0044\u24B9\uFF24\u1E0A\u010E\u1E0C\u1E10\u1E12\u1E0E\u0110\u018B\u018A\u0189\uA779]/g},{base:"DZ",letters:/[\u01F1\u01C4]/g},{base:"Dz",letters:/[\u01F2\u01C5]/g},{base:"E",letters:/[\u0045\u24BA\uFF25\u00C8\u00C9\u00CA\u1EC0\u1EBE\u1EC4\u1EC2\u1EBC\u0112\u1E14\u1E16\u0114\u0116\u00CB\u1EBA\u011A\u0204\u0206\u1EB8\u1EC6\u0228\u1E1C\u0118\u1E18\u1E1A\u0190\u018E]/g},{base:"F",letters:/[\u0046\u24BB\uFF26\u1E1E\u0191\uA77B]/g},{base:"G",letters:/[\u0047\u24BC\uFF27\u01F4\u011C\u1E20\u011E\u0120\u01E6\u0122\u01E4\u0193\uA7A0\uA77D\uA77E]/g},{base:"H",letters:/[\u0048\u24BD\uFF28\u0124\u1E22\u1E26\u021E\u1E24\u1E28\u1E2A\u0126\u2C67\u2C75\uA78D]/g},{base:"I",letters:/[\u0049\u24BE\uFF29\u00CC\u00CD\u00CE\u0128\u012A\u012C\u0130\u00CF\u1E2E\u1EC8\u01CF\u0208\u020A\u1ECA\u012E\u1E2C\u0197]/g},{base:"J",letters:/[\u004A\u24BF\uFF2A\u0134\u0248]/g},{base:"K",letters:/[\u004B\u24C0\uFF2B\u1E30\u01E8\u1E32\u0136\u1E34\u0198\u2C69\uA740\uA742\uA744\uA7A2]/g},{base:"L",letters:/[\u004C\u24C1\uFF2C\u013F\u0139\u013D\u1E36\u1E38\u013B\u1E3C\u1E3A\u0141\u023D\u2C62\u2C60\uA748\uA746\uA780]/g},{base:"LJ",letters:/[\u01C7]/g},{base:"Lj",letters:/[\u01C8]/g},{base:"M",letters:/[\u004D\u24C2\uFF2D\u1E3E\u1E40\u1E42\u2C6E\u019C]/g},{base:"N",letters:/[\u004E\u24C3\uFF2E\u01F8\u0143\u00D1\u1E44\u0147\u1E46\u0145\u1E4A\u1E48\u0220\u019D\uA790\uA7A4]/g},{base:"NJ",letters:/[\u01CA]/g},{base:"Nj",letters:/[\u01CB]/g},{base:"O",letters:/[\u004F\u24C4\uFF2F\u00D2\u00D3\u00D4\u1ED2\u1ED0\u1ED6\u1ED4\u00D5\u1E4C\u022C\u1E4E\u014C\u1E50\u1E52\u014E\u022E\u0230\u00D6\u022A\u1ECE\u0150\u01D1\u020C\u020E\u01A0\u1EDC\u1EDA\u1EE0\u1EDE\u1EE2\u1ECC\u1ED8\u01EA\u01EC\u00D8\u01FE\u0186\u019F\uA74A\uA74C]/g},{base:"OI",letters:/[\u01A2]/g},{base:"OO",letters:/[\uA74E]/g},{base:"OU",letters:/[\u0222]/g},{base:"P",letters:/[\u0050\u24C5\uFF30\u1E54\u1E56\u01A4\u2C63\uA750\uA752\uA754]/g},{base:"Q",letters:/[\u0051\u24C6\uFF31\uA756\uA758\u024A]/g},{base:"R",letters:/[\u0052\u24C7\uFF32\u0154\u1E58\u0158\u0210\u0212\u1E5A\u1E5C\u0156\u1E5E\u024C\u2C64\uA75A\uA7A6\uA782]/g},{base:"S",letters:/[\u0053\u24C8\uFF33\u1E9E\u015A\u1E64\u015C\u1E60\u0160\u1E66\u1E62\u1E68\u0218\u015E\u2C7E\uA7A8\uA784]/g},{base:"T",letters:/[\u0054\u24C9\uFF34\u1E6A\u0164\u1E6C\u021A\u0162\u1E70\u1E6E\u0166\u01AC\u01AE\u023E\uA786]/g},{base:"TZ",letters:/[\uA728]/g},{base:"U",letters:/[\u0055\u24CA\uFF35\u00D9\u00DA\u00DB\u0168\u1E78\u016A\u1E7A\u016C\u00DC\u01DB\u01D7\u01D5\u01D9\u1EE6\u016E\u0170\u01D3\u0214\u0216\u01AF\u1EEA\u1EE8\u1EEE\u1EEC\u1EF0\u1EE4\u1E72\u0172\u1E76\u1E74\u0244]/g},{base:"V",letters:/[\u0056\u24CB\uFF36\u1E7C\u1E7E\u01B2\uA75E\u0245]/g},{base:"VY",letters:/[\uA760]/g},{base:"W",letters:/[\u0057\u24CC\uFF37\u1E80\u1E82\u0174\u1E86\u1E84\u1E88\u2C72]/g},{base:"X",letters:/[\u0058\u24CD\uFF38\u1E8A\u1E8C]/g},{base:"Y",letters:/[\u0059\u24CE\uFF39\u1EF2\u00DD\u0176\u1EF8\u0232\u1E8E\u0178\u1EF6\u1EF4\u01B3\u024E\u1EFE]/g},{base:"Z",letters:/[\u005A\u24CF\uFF3A\u0179\u1E90\u017B\u017D\u1E92\u1E94\u01B5\u0224\u2C7F\u2C6B\uA762]/g},{base:"a",letters:/[\u0061\u24D0\uFF41\u1E9A\u00E0\u00E1\u00E2\u1EA7\u1EA5\u1EAB\u1EA9\u00E3\u0101\u0103\u1EB1\u1EAF\u1EB5\u1EB3\u0227\u01E1\u00E4\u01DF\u1EA3\u00E5\u01FB\u01CE\u0201\u0203\u1EA1\u1EAD\u1EB7\u1E01\u0105\u2C65\u0250]/g},{base:"aa",letters:/[\uA733]/g},{base:"ae",letters:/[\u00E6\u01FD\u01E3]/g},{base:"ao",letters:/[\uA735]/g},{base:"au",letters:/[\uA737]/g},{base:"av",letters:/[\uA739\uA73B]/g},{base:"ay",letters:/[\uA73D]/g},{base:"b",letters:/[\u0062\u24D1\uFF42\u1E03\u1E05\u1E07\u0180\u0183\u0253]/g},{base:"c",letters:/[\u0063\u24D2\uFF43\u0107\u0109\u010B\u010D\u00E7\u1E09\u0188\u023C\uA73F\u2184]/g},{base:"d",letters:/[\u0064\u24D3\uFF44\u1E0B\u010F\u1E0D\u1E11\u1E13\u1E0F\u0111\u018C\u0256\u0257\uA77A]/g},{base:"dz",letters:/[\u01F3\u01C6]/g},{base:"e",letters:/[\u0065\u24D4\uFF45\u00E8\u00E9\u00EA\u1EC1\u1EBF\u1EC5\u1EC3\u1EBD\u0113\u1E15\u1E17\u0115\u0117\u00EB\u1EBB\u011B\u0205\u0207\u1EB9\u1EC7\u0229\u1E1D\u0119\u1E19\u1E1B\u0247\u025B\u01DD]/g},{base:"f",letters:/[\u0066\u24D5\uFF46\u1E1F\u0192\uA77C]/g},{base:"g",letters:/[\u0067\u24D6\uFF47\u01F5\u011D\u1E21\u011F\u0121\u01E7\u0123\u01E5\u0260\uA7A1\u1D79\uA77F]/g},{base:"h",letters:/[\u0068\u24D7\uFF48\u0125\u1E23\u1E27\u021F\u1E25\u1E29\u1E2B\u1E96\u0127\u2C68\u2C76\u0265]/g},{base:"hv",letters:/[\u0195]/g},{base:"i",letters:/[\u0069\u24D8\uFF49\u00EC\u00ED\u00EE\u0129\u012B\u012D\u00EF\u1E2F\u1EC9\u01D0\u0209\u020B\u1ECB\u012F\u1E2D\u0268\u0131]/g},{base:"j",letters:/[\u006A\u24D9\uFF4A\u0135\u01F0\u0249]/g},{base:"k",letters:/[\u006B\u24DA\uFF4B\u1E31\u01E9\u1E33\u0137\u1E35\u0199\u2C6A\uA741\uA743\uA745\uA7A3]/g},{base:"l",letters:/[\u006C\u24DB\uFF4C\u0140\u013A\u013E\u1E37\u1E39\u013C\u1E3D\u1E3B\u017F\u0142\u019A\u026B\u2C61\uA749\uA781\uA747]/g},{base:"lj",letters:/[\u01C9]/g},{base:"m",letters:/[\u006D\u24DC\uFF4D\u1E3F\u1E41\u1E43\u0271\u026F]/g},{base:"n",letters:/[\u006E\u24DD\uFF4E\u01F9\u0144\u00F1\u1E45\u0148\u1E47\u0146\u1E4B\u1E49\u019E\u0272\u0149\uA791\uA7A5]/g},{base:"nj",letters:/[\u01CC]/g},{base:"o",letters:/[\u006F\u24DE\uFF4F\u00F2\u00F3\u00F4\u1ED3\u1ED1\u1ED7\u1ED5\u00F5\u1E4D\u022D\u1E4F\u014D\u1E51\u1E53\u014F\u022F\u0231\u00F6\u022B\u1ECF\u0151\u01D2\u020D\u020F\u01A1\u1EDD\u1EDB\u1EE1\u1EDF\u1EE3\u1ECD\u1ED9\u01EB\u01ED\u00F8\u01FF\u0254\uA74B\uA74D\u0275]/g},{
base:"oi",letters:/[\u01A3]/g},{base:"ou",letters:/[\u0223]/g},{base:"oo",letters:/[\uA74F]/g},{base:"p",letters:/[\u0070\u24DF\uFF50\u1E55\u1E57\u01A5\u1D7D\uA751\uA753\uA755]/g},{base:"q",letters:/[\u0071\u24E0\uFF51\u024B\uA757\uA759]/g},{base:"r",letters:/[\u0072\u24E1\uFF52\u0155\u1E59\u0159\u0211\u0213\u1E5B\u1E5D\u0157\u1E5F\u024D\u027D\uA75B\uA7A7\uA783]/g},{base:"s",letters:/[\u0073\u24E2\uFF53\u00DF\u015B\u1E65\u015D\u1E61\u0161\u1E67\u1E63\u1E69\u0219\u015F\u023F\uA7A9\uA785\u1E9B]/g},{base:"t",letters:/[\u0074\u24E3\uFF54\u1E6B\u1E97\u0165\u1E6D\u021B\u0163\u1E71\u1E6F\u0167\u01AD\u0288\u2C66\uA787]/g},{base:"tz",letters:/[\uA729]/g},{base:"u",letters:/[\u0075\u24E4\uFF55\u00F9\u00FA\u00FB\u0169\u1E79\u016B\u1E7B\u016D\u00FC\u01DC\u01D8\u01D6\u01DA\u1EE7\u016F\u0171\u01D4\u0215\u0217\u01B0\u1EEB\u1EE9\u1EEF\u1EED\u1EF1\u1EE5\u1E73\u0173\u1E77\u1E75\u0289]/g},{base:"v",letters:/[\u0076\u24E5\uFF56\u1E7D\u1E7F\u028B\uA75F\u028C]/g},{base:"vy",letters:/[\uA761]/g},{base:"w",letters:/[\u0077\u24E6\uFF57\u1E81\u1E83\u0175\u1E87\u1E85\u1E98\u1E89\u2C73]/g},{base:"x",letters:/[\u0078\u24E7\uFF58\u1E8B\u1E8D]/g},{base:"y",letters:/[\u0079\u24E8\uFF59\u1EF3\u00FD\u0177\u1EF9\u0233\u1E8F\u00FF\u1EF7\u1E99\u1EF5\u01B4\u024F\u1EFF]/g},{base:"z",letters:/[\u007A\u24E9\uFF5A\u017A\u1E91\u017C\u017E\u1E93\u1E95\u01B6\u0225\u0240\u2C6C\uA763]/g}],n=0;n<t.length;n++)e=e.replace(t[n].letters,t[n].base);return e}function t(){var e=this,t=e.getParameterProperties(),n={};return t&&t.length>0&&t.forEach(function(t){var i=t.propertyName,a=t.propertyKey,r=t.parameterName,o=e.getPropertyValue(i);o&&a&&o.hasOwnProperty(a)&&(o=o[a]),n[r]=o}),n}function n(e){var t=this;e===!0?t.$element.loading({className:"popup-loading-animation",overlayLayer:X.AboveAll}):t.$element.loading(!1)}ai.registerDefinition(oi,{SmartDataList:{className:"smart-data-list-element",properties:{},methods:{ToSeoUrl:function(t,n){n=n||"-";var i=(""+t).toLowerCase();return i=e(i),i=i.split(/\&+/).join(n+"and"+n),i=i.split(/[^a-z0-9]/).join(n),i=i.split(/-+/).join(n),i=i.trim(n)},removeDataSource:function(){var e=this,t=e.getDataSource();t.clear(),e.data.dataSource=void 0,delete pi[t.name]},refreshDataSource:function(){var e=this;e.data.dataSource&&e.removeDataSource(),e.dataItemsController.clear();var t=e.getDataSourceDefinition(),i=e.data.dataSource=fi.loadDataSource(t,e.id,void 0,e);if(e.dataItemsController.initialize(),i.setDataInfo(),_r.tryPreLoadDataSource(e),i.getDataService){var a=i.getDataService();a.flags.IsLoading.valueChangedEvent.bind(n.bind(e))}},onSmartDataLoaded:function(e){var t=this,n=t.getItemsControllers();fa.UpdateBatch.begin(),t.setPropertyValue("dataInfo",{itemsMap:{},currentData:e}),fa.UpdateBatch.end();var i=Cr.getListFromInstanceElementType(t.elementType);if(i){var a=i.getListInfo();n&&n.length>0&&f.eachItem(n,function(e,t){var i=n[t.index],r=t;if(r){var o=i.instance,s="";r.title&&(s=pa.convertToSeoUrl(r.title,"-"));var l={url:{masterListPageId:a.connectedListPage,suffixFragments:[r.id,s]},type:"Pages"};o?(o.setPropertyValue("urlAddress",l),o.canEdit.setFalse()):i.initializeFlag.onceTrue(function(){i.instance.setPropertyValue("urlAddress",l)})}})}}},aggregatedMethods:{aggregations:{onInitialized:function(){var e=this,i=e.getDataSource();if(i&&i.getDataService){var a=i.getDataService();if(a&&(a.flags.IsLoading.valueChangedEvent.bind(n.bind(e)),a.events.LoadingFinished.bind(function(t){e.onSmartDataLoaded(t)}),a.events.LoadingFailed.bind(function(t){e.addFailedToLoadMessage(i.getName?i.getName():void 0,t)}),!e.isType(ri.StoreFront))){var r=t.call(e);a.populate(i,r)}}}}},features:[oi.HasResponsiveItem,oi.Resizable,oi.Selectable,oi.HasBackground,oi.HasBackgroundImage,oi.HasLayout,oi.Hideable,oi.HasBorder,oi.DataList,oi.TemplatePagesList]}})}(),function(){function e(e){return Ha.Flags.IsInMobileContext.isTrue()?e.data.mobilePopupControllers:e.data.popupControllers}function t(e,t,n,i){var a,r,o;return Ha.Flags.IsInMobileContext.isTrue()?(e.data.mobilePopupControllers||(e.data.mobilePopupControllers={}),n&&(a=e.data.mobilePopupControllers[n.id]),!a&&t&&(a=_n.MobilePopup.create(e.id,{items:i||e.getPopupItemsCollectionForInitialization(),isVideo:e.isType(ri.VideoGallery)||e.isType(ri.VideoPlayer)||e.isType(ri.YoutubeChannel),isMobile:!0}),n&&(e.data.mobilePopupControllers[n.id]=a))):(e.data.popupControllers||(e.data.popupControllers={}),n&&(a=e.data.popupControllers[n.id]),!a&&t&&(r=e.getPropertyValue("popupType"),o=e.getPropertyValue("popupSettings")||{},(o.popupType=r)&&(o=o.settings),a=ya.create(e.id,r,{items:i||e.getPopupItemsCollectionForInitialization(),isVideo:e.isType(ri.VideoGallery)||e.isType(ri.VideoPlayer)||e.isType(ri.YoutubeChannel),isMobile:!1},o),n&&(e.data.popupControllers[n.id]=a))),a}ai.registerDefinition(oi,{HasDataListPopup:{features:[oi.HasPopup],className:"has-datalist-popup",methods:{isPopupDisabled:ds,showPopup:function(e){if(!this.isPopupDisabled()){var i,a,r=this,o=r.getChildDataSourceDefinition();if(e&&e.currentItem&&(a=e.currentItem),o){var s=new $t,l=fi.loadDataSource(o,r.id,void 0,r);if(l.setDataInfo(),!a){var c=f(".design-element.data-list-item",r.$element);if(!(c.length>0))return;var u=n(c[0]);u&&(a=u.getDataItem())}a&&(a.index=0),i=t(r,!0,a,s)}else i=t(r,!0);var d,g,p=(Ha.Flags.IsInMobileContext.isTrue(),_.create()),h=x.createEventListener([va.Events.PageChanging,na.Events.ViewModeChanged,Ha.Events.SwitchingBetweenDevices],function(){i.hide(!1)}).activate();if(g=x.createEventListener(f.getWindowSizeEvent(),function(){p.setValue(f.getWindowArea())}),g.activateAndExecute(),e=f.quickExtend({currentItem:0,items:[],containerArea:p,hostContainer:d,closeCallback:function(){h.dispose(),g.dispose()}},e),l){var m=l.getDataService();m.populate(l,{item:a},function(t){if(r.popupItemsMappingFunction){var n=t.getCollection().getItemsValues();s.syncrhonize(r.popupItemsMappingFunction(n))}else s.syncrhonize(t.getCollection().getItemsValues());e.currentItem=void 0,i.show(e)})}else i.show(e)}},isPopupEnabled:function(){return this.getPropertyValue("templateOpener")},hasButtonBehaviour:function($super){return $super.call(this)||!this.hasFeature(oi.DataList)&&this.isPopupEnabled()}},aggregatedMethods:{aggregations:{onRemove:function(){var t=this,n=e(t);if(n)for(var i=0;i<n.length;i++){var a=n[i];a&&a.dispose()}}}}}})}(),function(){ai.registerDefinition(oi,{HasInitialSettings:{methods:{},aggregatedMethods:{aggregations:{}}}})}(),function(){ai.registerDefinition(oi,{HasDialog:{className:"has-dialog",methods:{createDialog:function(e,t){t&&(t.stopPropagation(),t.preventDefault());var n=this;n.data.dialogContainer&&n.closeDialog(),e=f.extend({$element:f("<div></div>"),$header:f("<div></div>"),title:"",top:0,classes:""},e),this.options=e;var i=f("<div></div>");e.$header&&e.$header.addClass("header").appendTo(i),f("<div>"+e.title+"</div>").addClass("title").appendTo(i),e.$element&&e.$element.addClass("content").appendTo(i),e.classes&&i.addClass(e.classes),n.data.dialogContainer=i},openDialog:function(){var e=this;if(this.dialogController=Ft.open(e.data.dialogContainer),this.dialogController.$overlay.click(function(){e.closeDialog()}),e.options.top){this.dialogController.$dialogContainer.css("top",e.options.top+"px"),this.dialogController.$dialogContainer.css("marginTop","0")}return this.dialogController},closeDialog:function(){var e=this;Ft.close(e.data.dialogContainer),e.onDialogClosed()},setDialogContent:function(e){var t=this,n=f(".content",t.data.dialogContainer);n.replaceWith(e.addClass("content"))},setDialogTitle:function(e){var t=this,n=f(".title",t.data.dialogContainer);n.text(e)},setDialogHeaderContent:function(e){var t=this,n=f(".header",t.data.dialogContainer);n.replaceWith(e.addClass("header"))},onDialogClosed:cs}}})}(),function(){ai.registerDefinition(oi,{HasDesktopRows:{methods:{addToContainer:function(){var e=this;e.data.hasContainers||(e.data.hasContainers=!0,Ra.addInstancesToContainer(e,e.childInstances,void 0))},removeFromContainer:function(){var e=this;Ra.removeInstancesFromContainer(e),e.data.hasContainers=!1}},aggregatedMethods:{aggregations:{onInitializing:function(){for(var e=this,t=e.childInstances,n=0;n<t.length;n++){var i=t[n],a=i.getPropertyValue("cellItem");a&&(a.id+="-"+e.id)}},onInitialized:function(){var e=this;Ha.Flags.IsInMobileContext.isFalse()&&e.addToContainer()}}}}})}(),function(){ai.registerDefinition(oi,{HasDynamicHeightBox:{methods:{updateSize:function(){var e=this;setTimeout(function(){if(!Ha.Flags.IsInMobileContext.isTrue()){var t=ba.getElementSize(e);de.disableOperationsRecording("contentChange"),Er.startRenderingBatch(),pr.recalaculateSiblingsAndParentAreas(),e.$elementContentContainer.css("minHeight","auto");var n=e.$elementContentContainer.outerSize().height;la.LayoutContentOperationsSet.requestOperation(function(){ca.setInstancesSize(e,{height:n},{preserveVerticalMargins:!0})},e.id+"whenInstanceContentHeightChanged");var i=n-t.height;pr.requestPushing(e,i),Er.finishRenderingBatch(),de.enableOperationsRecording("contentChange")}},0)}},aggregatedMethods:{aggregations:{onInitializing:function(){var e=this,t=e.getPropertyValue("sizeAndPosition");e.$element.css("height",t.height+"px")},onInitialized:function(){var e=this;e.$element.css("height","auto")}}}}})}(),function(){ai.registerDefinition(oi,{HasAppMarketHost:{methods:{sendMessage:function(e){var t=document.getElementById(e.dest);t&&Rr.postMessageHelper.sendMessage(t.contentWindow,e,e.type,"")},getStyles:function(){var e=this,t=Ka.evaluateColorBinding(e.getPropertyValue("backgroundColor"),!0),n=Ka.evaluateColorBinding(e.getPropertyValue("fontColor"),!0),i=er.evaluateFontBinding(e.getPropertyValue("font"),!0),a=Gi.getSiteFonts().filter(function(e){return e.fontFamily===i})[0],r=a&&a.fileNamePrefix?se.resolveFontUrl(a):"",o=""+e.getPropertyValue("fontSize")+"px";return{font:{fontUrl:r,fontFamily:i,fontSize:o},colors:{text:n,background:t}}},getProperties:function(){var e=this,t=e.getPropertyValue("externalProperties");if(t){var n=Nr.mapExternalProperties(t);return n}return null},sendInit:function(){var e=this,t=e.id+"frame";e.data.$iframe[0].setAttribute("id",t),this.sendMessage({type:"Init",dest:t,styles:e.getStyles(),properties:e.getProperties(),user:Nr.getCookie("user")})}},aggregatedMethods:{aggregations:{onInitializing:function(){var e=this;e.data.$iframe.load(function(){e.sendInit(),e.propertiesChanged.bind(function(t){if(t.namedTextStyle&&e.isInitialized){var n=e.getCalculatedPropertyValue("calculatedFontSize"),i=e.getCalculatedPropertyValue("calculatedFontFamily").themeFont;if(i){i=i[0].toUpperCase()+i.substring(1);var a=er.ThemeFonts[i]._currentValue;e.setPropertyValue("font",a)}var r=e.getCalculatedPropertyValue("calculatedTextColor");e.setPropertyValue("fontSize",n),e.setPropertyValue("textColor",r)}e.sendInit()})})}}}}})}(),function(){ai.registerDefinition(oi,{HasExternalProperties:{methods:{setPropertiesOnInstance:function(e){var t=this;t.setPropertyValue("appMarketAppUrl",e.url)}},aggregatedMethods:{aggregations:{onInitializing:function(){var e=this;Nr.getInitialElementProperties(e),Nr.Events.ElementDataChanged.bindAndExecute(function(t){t=t||Nr.elementProperties,t&&f.each(t,function(t,n){if(n&&n.elementId){var i=n.elementId.split(","),a=i[i.length-1];a===e.id&&e.setPropertiesOnInstance(n)}})})}}}}})}();var Do={MainContent:1,SideBar:2},Fo=function(){var e=C.extend("PageContentLayout",{init:function(e,t){var n=this;n._options=t=f.quickExtend({},t),n._pageContentInstance=e,n.name=t.name,n.id=f.weakID(),n._pageToMainContainers={},n._pageToSideBarContainers={},n._prevPage},getLayoutOptions:function(){return this._options},attachToContainer:function(){var e=this;e._$content.appendTo(e._pageContentInstance.getContentLayer())},getSectionsWrapper:function(e){switch(e){case Do.MainContent:return this._$mainSectionsWrapper;case Do.SideBar:return this._$sideBarSectionsWrapper;default:return}},hasSideBar:ds,initialize:function(e){var t=this;t._$content=this.__renderContent(),t._$mainSectionsContainer=f(".main-sections-container",t._$content),t._$mainSectionsWrapper=f("<div class='sections-wrapper'></div>").appendTo(t._$mainSectionsContainer),t.hasSideBar()&&(t._$sideBarSectionsContainer=f(".side-bar-sections-container",t._$content),t._$sideBarSectionsWrapper=f("<div class='sections-wrapper'></div>").appendTo(t._$sideBarSectionsContainer)),t.__initialize(f.quickExtend({},t._options,e)),t._pageBinding=va.Events.PageLoaded.bindAndExecute(function(){var e=t._pageContentInstance,n=t._prevPage,i=va.getCurrentPage(),a=t._pageToMainContainers,r=t._pageToSideBarContainers;if(i){if(e.getPageId()===i.id&&n!==i){n&&(r[n.id]&&r[n.id].detach(),a[n.id]&&a[n.id].detach());var o=t.__getMainContainer(i),s=t.__getSideBarContainer(i);o.appendTo(t._$mainSectionsWrapper),t.hasSideBar()&&s.appendTo(t._$sideBarSectionsWrapper)}t._prevPage=i}}),this.isInitialized=!0},__initialize:cs,__renderContent:cs,reorderSections:function(e){if(this.isInitialized){for(var t=f([]),n=f([]),i=0;i<e.length;i++){var a=e[i];ba.isElementVisible(a)&&(a.elementType===ri.SectionElement||a.isTypeOf(ri.HtmlSectionElement))&&(a.isMainSection()?t.pushElements(a.$element):n.pushElements(a.$element))}t.applyDOMOrder(),n.applyDOMOrder()}},addSection:function(e,t){var n=this;return e.isMainSection()?n.addSectionToMain(e,t):n.addSectionToSideBar(e,t)},addSectionToMain:function(e,t){var n=this;return n.__addSectionToMain(e,t)},__addSectionToMain:function(e){e.isDisplayed.setFalse("no-main")},__getMainContainer:function(e){return this._pageToMainContainers[e.id]||(this._pageToMainContainers[e.id]=f("<div class='positioned'></div>")),this._pageToMainContainers[e.id]},addSectionToSideBar:function(e,t){var n=this;return n.__addSectionToSideBar(e,t)},__getSideBarContainer:function(e){return this._pageToSideBarContainers[e.id]||(this._pageToSideBarContainers[e.id]=f("<div class='positioned'></div>")),this._pageToSideBarContainers[e.id]},__addSectionToSideBar:function(e){e.isDisplayed.setFalse("no-sidebar")},removeSection:function(e){e.detach(),e.isDisplayed.setTrue("no-sidebar"),e.isDisplayed.setTrue("no-main")},remove:function(){var e=this;f.eachEntry(wr.CurrentMainPageSections.getItems(),function(t,n){(n.instance.isType(ri.SectionElement)||n.instance.isTypeOf(ri.HtmlSectionElement))&&e.removeSection(n.instance)}),f.eachEntry(wr.CurrentSideBarPageSections.getItems(),function(t,n){(n.instance.isType(ri.SectionElement)||n.instance.isTypeOf(ri.HtmlSectionElement))&&e.removeSection(n.instance)}),this._pageBinding&&this._pageBinding.unbind(),this._$content.remove()}});return e.create=function(e,t,n){n.name=e;var i=Fr[e];return i?i.create(t,n):void 0},e}();!function(){var e={Element:{group:"base-page-content-element-templates",name:"base-page-content-element-template"}},t=Fo.extend("BasePageContentLayout",{__initialize:cs,__renderContent:function(){return f.useTemplate(e.Element)},__addSectionToMain:function(e,t){var n=this,i=n.__getMainContainer(t);return e.$element.appendTo(i),i}});Ar.registerPageContentLayout("BasePageContentLayout",t)}(),function(){var e={Element:{group:"side-bar-page-content-element-templates",name:"side-bar-page-content-element-template"}},t=Fo.extend("SideBarPageContentLayout",{__initialize:function(e){e=f.quickExtend({sideBarWidth:200,contentWidth:754,side:gt.Left},e);var t=e.sideBarWidth,n=e.contentWidth-t,i=e.side===gt.Left,a=f(".side-bar-background-layer",this._$content);this._$sideBarSectionsContainer.css("width",t),a.css("width",t),this._$mainSectionsContainer.css("width",n),this._$content.addClass(i?"left-side-bar":"right-side-bar"),i||this._$sideBarSectionsContainer.appendTo(this._$content)},hasSideBar:us,__renderContent:function(){return f.useTemplate(e.Element)},__addSectionToMain:function(e,t){var n=this,i=n.__getMainContainer(t);return e.$element.appendTo(i),i},__addSectionToSideBar:function(e,t){var n=this;e.isDisplayed.setTrue("no-sidebar");var i=n.__getSideBarContainer(t);return e.$element.appendTo(i),i}});Ar.registerPageContentLayout("SideBarPageContentLayout",t)}(),function(){function e(e,t,n){var i=f.valueOrDefaultArray(n,[t&&t.title,"Default Text"]);e.setBindingValueToProperty(""+i,ui.text.name)}function t(e){var t=!1,n=f.useTemplate(p.Element,{tagName:e.getPropertyValue("tagName"),editable:t}),i=e.data;return i.verticalContextValue=Ie.createContextClass({getTarget:function(){return e.getTextElements()}}),i.$textContent=f(".text-content",n).dotdotdot({height:function(){var t=e.getContentSize();return t&&t.height},ignoredHeight:function(){return Math.ceil(e.calculateDecimalLineHeight()*e.calculateFontSize())}}),e.instanceRemoving.one(function(){i.$textContent.trigger("destroy.dot")}),i.$label=n,i.isLabelEditable=t,t&&(i.$textInput=f(".element-text-input",n)),n}function n(){var e=this,t=e.data;e.hasHorizontalAlignFlag.setTrue(),e.hasVerticalAlignFlag.setTrue(),e.contentSizeChangedEvent.bind(function(){s(e)}),t.isLabelEditable&&(t.$textInput.keypress(function(){i(e)}).keydown(function(){i(e)}),e.$element.click(function(e){t.currentMode==h.EditMode&&e.target!=t.$textInput[0]&&t.$textInput.focus()})),d(e),o(e),r(e)}function i(e){window.setTimeout(function(){a(e)},0)}function a(e){e.data.currentMode==h.EditMode&&e.setPropertyValueWithOrWithOutBinding(e.data.$textInput.val(),ui.text.name)}function r(e){e.data.loadingFonts||(e.data.loadingFonts={}),Vn.requestReadOperation(function(){var t=e.getPropertyValue("font");t||(t=e.getPropertyValue("calculatedFontFamily")),t=er.evaluateFontBinding(t),Pn.isFontLoaded(t)||e.data.loadingFonts[t]||(e.data.loadingFonts[t]=!0,Pn.onFontLoaded(t,{successCallback:function(){e.performWhenVisible(function(){d(e),c(e),delete e.data.loadingFonts[t]},e.id+"visibilityEventBinding")},timeout:15e3}))},e.id+"pollFontUpdate")}function o(e){e.$element.removeClass("state-editing");var t=e.data;t.currentMode!==h.ViewMode&&(t.currentMode=h.ViewMode,t.isLabelEditable&&t.$textInput.quickHide().unbind("keydown.rtl"),t.$textContent.quickShow(),c(e))}function s(e){e.data.currentMode==h.EditMode?l(e):c(e)}function l(e){var t=e.getPropertyValue("text");t!==e.data.$textInput.val()&&e.data.$textInput.val(t);var n;n=e.data.$textInput.measureText(""!==e.data.normalizedText?e.data.normalizedText:"&nbsp;",!1),e.data.$textInput.css({height:n.height})}function c(e){Vn.requestIndpendentWriteOperation(function(){window.clearTimeout(e.data.refreshTextContentTimeout),e.data.refreshTextContentTimeout=window.setTimeout(function(){u(e)},0)},e.id+"dotdotdot")}function u(e){e.data.$textContent.html(e.data.normalizedText)}function d(e){var t,n=e.getPropertyValue("text");t=n?""+n:"",t=f.escapeHTML(t);var i=t.replace(/\n/g,"<br />");"\n"==t.charAt(t.length-1)&&(i+="&nbsp;"),e.data.normalizedText=i}function g(e){var t=e.$element;e.performWhenVisible(function(){Er.performUpdateOnRenderingFinished(function(){if(e.isInstanceVisible()){var n=e.getSize();t.width(n.width+1).width(n.width-1)}},e.id+"explorerHack")},e.id+"explorerHack")}var p={Element:{useTemplate:function(e){var t=(e.type,e.editable),n=new E;return n.append('<div class="label-element absolute-fill vertically-align-children" style="overflow: hidden;">'),n.append('<span class="text-content element-text-container"></span>'),t&&n.append('<textarea class="element-text-input element-text-container"></textarea>'),n.append("</div>"),f(""+n)}}};ai.registerDefinition(ri,{label:{className:"label-element",properties:{text:{defaultValue:cs,category:ci.TextStyle,isStateProperty:!0,supportsBinding:!0,isBound:function(e){return e.isBound(mi.title.getContentType())||e.isBound(mi.description.getContentType())},getBindingType:function(e){var t;return e.isBound(mi.title.getContentType())?t=mi.title.getContentType():e.isBound(mi.description.getContentType())&&(t=mi.description.getContentType()),t},onChange:function(e){d(e)}},textType:{isStyleProperty:!0,defaultValue:function(){return tt.None.value}},trimText:{isStateProperty:!0,isStyleProperty:!0,defaultValue:ds,category:ci.TextStyle}},features:[oi.HasInnerShadow,oi.HasResponsiveItem,oi.Resizable,oi.Clickable,oi.Selectable,oi.HasBackground,oi.HasBackgroundImage,oi.Hideable,oi.HasLayout,oi.HasPadding,oi.HasContent,oi.HasText,oi.Editable,oi.HasBorder,oi.Rotatable,oi.HasDataBinding],methods:{creationFunction:t,refreshTextLayout:function(){s(this)},hasBinding:function(){return ui.text.isBound(this)},getTextElements:function(){var e=f([]),t=this.data;return t.isLabelEditable&&e.pushElements(t.$textInput),e.pushElements(t.$textContent),e},getElementDataContent:function(){return this.data.$textContent},hasHorizontalAlign:us,hasVerticalAlign:us,alignVertical:function(){var e=this;if(e.hasVerticalAlign()){var t,n=e.getPropertyValue("verticalAlign");switch(n){case at.Centered:t="vertically-centered";break;case at.Top:t="vertically-top";break;case at.Bottom:t="vertically-bottom"}e.data.verticalContextValue.set(t)}},createBindingFieldsToProperties:function($super){var e=this,t=$super.call(e),n=mi.title.getContentType(),i=mi.description.getContentType();return(this.isBound(n)||this.isBound(i))&&(t[ui.text.name]=Po.create(e,{propertyName:ui.text.name})),t}},aggregatedMethods:{aggregations:{onInitializing:n,onBoundValueReady:function(t){var n=this,i=ui.text.getBindingType(n);if(void 0!==i){var a=n.getBindingFields(i);e(n,a,t[i])}},onDataBindingReady:function(e){var t=this;t.setBindingValueToProperty(""+e,ui.text.name)},onPropertiesChanged:function(e){var t=this;f.containsOneOfKeys(e,"fontSize","text","textStyle","verticalAlign","lineHeight")&&s(t),f.containsOneOfKeys(e,"font")&&r(t),f.browser.msie&&t.isInitialized&&f.containsOneOfKeys(e,"horizontalAlign")&&g(t)}}}}});var h={ViewMode:"view-mode",EditMode:"edit-mode"}}(),function(){function e(e){var t=Math.max(0,e.getPropertyValue("sectionPadding")),n=Math.max(0,e.getPropertyValue("sectionVerticalPadding")),i=e.data.sectionPaddingCssRule;i||(i=f.rule(".{0} .content-container.content-container-type.element-size-box.section-element-size-box {}".format(Wi.MobileDesktopViewClass)),e.data.sectionPaddingCssRule=i),i.css({padding:"{0}px {1}px".format(n,t)})}var t={className:"coordinator-element",title:"Coordinator",isNotDesignElement:!0,features:[],properties:{pageContentWidth:{defaultValue:function(){return 960}},siteStatesGroups:{title:"States Groups",category:ci.Other,defaultValue:gs},responsiveStates:{defaultValue:gs},sitePresetPalettes:{defaultValue:function(){return[]}},themeFonts:{defaultValue:function(){return{heading1:"Questrial",heading2:"Questrial",body1:"Arial",body2:"Arial"}}},textStyles:{defaultValue:function(){return{title:{fontSize:23,fontFamily:{themeFont:"heading1"},color:"#000000",isBold:!1,isItalic:!1},menu:{fontSize:15,fontFamily:{themeFont:"body2"},color:"#000000",isBold:!1,isItalic:!1},pageTitle:{fontSize:50,fontFamily:{themeFont:"heading1"},color:"#000000",isBold:!1,isItalic:!1},headingXL:{fontSize:72,fontFamily:{themeFont:"heading1"},color:"#000000",isBold:!1,isItalic:!1},headingL:{fontSize:25,fontFamily:{themeFont:"heading1"},color:"#000000",isBold:!1,isItalic:!1},headingM:{fontSize:24,fontFamily:{themeFont:"heading2"},color:"#000000",isBold:!1,isItalic:!1},headingS:{fontSize:20,fontFamily:{themeFont:"heading2"},color:"#000000",isBold:!1,isItalic:!1},bodyL:{fontSize:19,fontFamily:{themeFont:"body1"},color:"#000000",isBold:!1,isItalic:!1},bodyM:{fontSize:15,fontFamily:{themeFont:"body2"},color:"#000000",isBold:!1,isItalic:!1},bodyS:{fontSize:14,fontFamily:{themeFont:"body2"},color:"#000000",isBold:!1,isItalic:!1},bodyXS:{fontSize:10,fontFamily:{themeFont:"body2"},color:"#000000",isBold:!1,isItalic:!1}}}},themeColors:{defaultValue:function(){return Ka.generatePalette(["#69D2E7","#A7DBD8","#E0E4CC","#F38630","#FA6900"])}},skins:{comparer:ds,preSaveProcessing:function(e){return f.eachEntry(e,function(e,t){f.each(t,function(t,n){if(n){var i=e+t,a=lr.getStyle(i);if(a){var r=lr.getStyleInformation(i);f.eachEntry(n,function(e,t){t&&f.eachEntry(t,function(e,t){t&&(t.fieldsToValues=r.fields,t.statesAnimations=r.statesAnimations)})})}}})}),e},defaultValue:function(){var e={};return e[ri.skinImageElement.name]=f.createArrayWithValue(null,4),e}},contentWidth:{isStateProperty:!0,defaultValue:function(){return 960},onChange:function(e,t){null!==t&&Z.PageContentWidthChanged.fireNew()}},columnsGrid:{isStateProperty:!0,defaultValue:function(){return{margin:10,gutter:20,columnsNumber:12,color:"#92C348",showAlways:!1,isEnabled:!1,opacity:20}},onChange:function(e,t){void 0===t.isEnabled&&(e.properties.columnsGrid.value.isEnabled=!0,e.properties.columnsGrid.value.showAlways=!1)}},innerRowsSpacing:{isStateProperty:!0,defaultValue:function(){return 5},onChange:function(e,t){var n=e.data.innerRowsSpacing;n||(n=f.rule(".{0} .row-element.desc-row {}".format(Wi.MobileDesktopViewClass)),e.data.innerRowsSpacing=n),n.css({"margin-bottom":"{0}px".format(t)})}},rowsSpacing:{isStateProperty:!0,defaultValue:function(){return 5},onChange:function(e,t){var n=e.data.rowCssRule;n||(n=f.rule(".{0} .row-element.root-row {}".format(Wi.MobileDesktopViewClass)),e.data.rowCssRule=n),n.css({"margin-bottom":"{0}px".format(t)})}},cellsSpacing:{isStateProperty:!0,defaultValue:function(){return 2},onChange:function(e,t){var n=e.data.cellCssRule;n||(n=f.rule(".{0} .design-element .cell-element {}".format(Wi.MobileDesktopViewClass)),e.data.cellCssRule=n),n.css({"margin-right":"{0}%".format(t)})}},sectionPadding:{isStateProperty:!0,defaultValue:function(){return 0},onChange:e},sectionVerticalPadding:{isStateProperty:!0,defaultValue:function(){return 0},onChange:e},pagePadding:{isStateProperty:!0,defaultValue:function(){return 20},onChange:function(e,t){var n=e.data.paddingCssRule;n||(n=f.rule(".{0} .page-element-border-box {}".format(Wi.MobileDesktopViewClass)),e.data.paddingCssRule=n),n.css({padding:"0px {0}px".format(t)})}},innerRowPadding:{isStateProperty:!0,defaultValue:function(){return 5},onChange:function(e,t){var n=e.data.innerRowPadding;n||(n=f.rule(".{0} .row-element .cell-element-container {}".format(Wi.MobileDesktopViewClass)),e.data.innerRowPadding=n),n.css({padding:"{0}px".format(t)})}},cellsVerticalAlignment:{isStateProperty:!0,defaultValue:function(){return st.Middle},onChange:function(e,t){var n=e.data.cellsVerticalAlignment;n||(n=f.rule(".{0} .design-element .cell-element {}".format(Wi.MobileDesktopViewClass)),e.data.cellsVerticalAlignment=n),n.css({"vertical-align":"{0}".format(t)})}},cellsHorizontalAlignment:{isStateProperty:!0,defaultValue:function(){return lt.Center},onChange:function(e,t){var n=e.data.cellsHorizontalAlignment;n||(n=f.rule(".{0} .design-element .cell-element {}".format(Wi.MobileDesktopViewClass)),e.data.cellsHorizontalAlignment=n),n.css({"text-align":"{0}".format(t)})}},isSiteWasEditedInMode:{isStateProperty:!0,defaultValue:ds},listsData:{notForUndoProperty:!0,defaultValue:f.returnEmptyObject},freeVideoElements:{notForUndoProperty:!0,defaultValue:cs}},methods:{getSkin:function(e){var t=e.skinName,n=e.index,i=f.valueOrDefault(e.skinNameVariationType,ar.Default),a=f.valueOrDefault(e.device,rr.Desktop),r=f.objectGet(this.getPropertyValue("skins"),[t,n,i,a]);return r||a!==rr.Mobile||(r=f.objectGet(this.getPropertyValue("skins"),[t,n,i,rr.Desktop])),r},updateSkin:function(e,t){t=f.extend({skinNameVariationType:ar.Default,device:rr.Desktop,index:0},t);var n=t.skinName,i=t.index,a=t.skinNameVariationType,r=t.device,o=this.getPropertyValue("skins");o=f.objectSetAndClone(o,[n,i,a,r],e),this.setPropertyValue("skins",o),or.Events.SkinHierarchyUpdated.fire(n+i)}}};ai.registerDefinition(ri,{coordinator:t})}(),function(){ai.registerDefinition(ri,{EditorCoordinator:{isNotDesignElement:!0,properties:{},methods:{}}})}(),function(){function e(e,t,n){var i=f.valueOrDefaultArray(n,[t&&t.title,"Default Text"]);e.setBindingValueToProperty(""+i,ui.formattedText.name)}function t(){var e=this;e.hasHorizontalAlignFlag.setTrue()}function n(e){var t=f.useTemplate(o.Element);e.data.$richTextElementContent=t,e.data.$richTextContent=f(".rich-text-content",t);var n=f(".rich-text-positioning-wrapper",t);e.data.positioningClass=Ie.createContextClass(n),e.data.$positioningWrapper=n;return t}function i(e){var t=e.contentHeight.getValue();e.data.isVerticallyCentered&&void 0!==t&&Er.requestIndpendentWriteOperation(function(){var t=e.contentHeight.getValue();e.data.isVerticallyCentered&&void 0!==t&&(e.data.$positioningWrapper.css("margin-top",-t/2),e.$container.scrollTop(0))},e.id+"refreshVerticalAlignment")}function a(e,t){e.data._ignoreTextPropertyChange||(e.setRichContent(t),e.updateDataBindingValue&&e.updateDataBindingValue(t))}function r(e){switch(e){case at.Bottom:return"vertical-alignment-bottom";case at.Centered:return"vertical-alignment-center";default:return"vertical-alignment-top"}}var o={Element:{useTemplate:function(){var e=new E;return e.append('<div class="rich-text-element-content absolute-fill" style="background: none;">'),e.append('<div class="rich-text-positioning-wrapper">'),e.append('<div class="rich-text-content common-rich-content-style"></div>'),e.append("</div>"),e.append("</div>"),f(""+e)}}},s="You can edit text on your website by double clicking on a text box on your website. Alternatively, when you select a text box a settings menu will appear. Selecting 'Edit Text' from this menu will also allow you to edit the text within this text box. Remember to keep your wording friendly, approachable and easy to understand as if you were talking to your customer";ai.registerDefinition(ri,{freeText:{properties:{formattedText:{isNotForCustomProperty:!0,defaultValue:function(){return s},supportsBinding:!0,isBound:function(e){var t=this;return void 0!==t.getBindingType(e)},getBindingType:function(e){var t;return e.isBound(mi.title.getContentType())?t=mi.title.getContentType():e.isBound(mi.description.getContentType())?t=mi.description.getContentType():e.isBound(mi.StorePrice.getContentType())&&(t=mi.StorePrice.getContentType()),t},onChange:a},verticalAlignment:{isStateProperty:!0,defaultValue:function(){return at.Top},onChange:function(e,t){e.data.positioningClass.set(r(t)),e.data.isVerticallyCentered=t===at.Centered,t!==at.Centered?e.data.$positioningWrapper.css("margin-top",""):i(e)}}},defaultProperties:{backgroundColor:function(){return"transparent"},fontColor:function(){return"Black"},fontSize:function(){return 12},horizontalAlign:function(){return ot.Left},sizeAndPosition:function(){return{width:200,height:160,top:0,left:0}}},features:[oi.HasInnerShadow,oi.HasResponsiveItem,oi.Selectable,oi.HasBackground,oi.HasBackgroundImage,oi.Hideable,oi.HasLayout,oi.HasBorder,oi.HasPadding,oi.Rotatable,oi.HasRichContent,oi.HasText,oi.HasDataBinding],methods:{refreshTextLayout:function(e){this.refreshContentSize(e),i(this)},creationFunction:n,hasHorizontalAlign:us,getTextElements:function(){return this.data.$richTextElementContent},getElementDataContent:function(){return this.data.$richTextContent},hasBinding:function(){var e=this;return void 0!==e.getBindingType()},getBindingType:function(){var e=this;return ui.formattedText.getBindingType(e)},findUsedTextStyles:function(){var e=this,t=e.data.$richTextContent,n=f.makeDictionaryFromKeys(f.map(t.findUsedClasses(Xa.TextStyleClassNames),function(e){return Xa.getTextStyleFromClass(e)}),!0),i=e.getPropertyValue("namedTextStyle");return i&&(n[i]=!0),f.getKeys(n)},findUsedFonts:function(){var e=this,t=e.data.$richTextContent,n=f.map(t.findUsedInlineStyles("font-family"),function(e){return f.parseFontFamilyFromStyleValue(e)}),i=e.findUsedTextStyles(),a=f.map(i,function(e){var t=Xa.getTextStyleInformation(e);if(t){var n=er.evaluateFontBinding(t.fontFamily);if(n)return n.toLowerCase()}}),r=f.map(t.findUsedClasses(er.FontFamilyClassNames.get()),function(e){var t=er.evaluateFontBinding(er.getFontBindingFromClass(e));return t?t.toLowerCase():void 0}),o=f.merge(n,f.merge(a,r));return o.push(er.evaluateFontBinding(e.getPropertyValue("calculatedFontFamily"))),f.getKeys(f.makeDictionaryFromKeys(o,!0))},createBindingFieldsToProperties:function($super){var e=this,t=$super.call(e);return(e.isBound(mi.title.getContentType())||e.isBound(mi.description.getContentType()))&&(t[ui.formattedText.name]=Po.create(e,{
propertyName:ui.formattedText.name})),t}},aggregatedMethods:{aggregations:{onInitializing:t,updateInstanceToViewPort:function(){this.refreshContentSize()},removeInstanceFromViewPort:function(){var e=this;e.isBoundToProperty("formattedText")||e.refreshContentSize()},onBoundValueReady:function(t){var n=this,i=ui.formattedText.getBindingType(n);if(void 0!==i){var a=n.getBindingFields(i);e(n,a,t[i])}},onDataBindingReady:function(e){var t=this;t.setBindingValueToProperty(""+e,ui.formattedText.name)},onPropertiesChanged:function(e){var t=this,n=["textStyle","lineHeight","formattedText"],i=["font","namedTextStyle"];t.isInitialized&&(f.containsOneOfKeys(e,n)&&t.refreshContentSize(),f.containsOneOfKeys(e,i)&&Vn.requestReadOperation(function(){Pn.onFontLoaded(er.evaluateFontBinding(t.getPropertyValue("calculatedFontFamily")),{successCallback:function(){t.refreshContentSize()},timeout:15e3})},t.id+"onPropertiesChanged - onFontLoaded"))},onInitialized:function(){var e=this,t=e.contentHeight.createValueListener(function(){i(e)}),n=e.visibilityChangedEvent.bindAndExecute(function(){var n=ba.isElementVisible(e);n&&Er.performOnLayoutVisibilityUpdate(function(){n=ba.isElementVisible(e),n&&t.toggleActivation(n,!0)},e.id+"visibilityEventBindingRichTextNew")});e.instanceRemoving.one(function(){n.unbind(),t.deactivate()})}}}}})}(),function(){var e={Element:{getTemplateString:function(){return'<div class="rich-content common-rich-content-style"></div>'}}};ai.registerDefinition(ri,{RichContent:{className:"rich-content-element",properties:{htmlContent:{isNotForCustomProperty:!0,onChange:function(e,t){e.setRichContent(t),e.refreshContentSize()},getBindingType:function(){return mi.content.getContentType()}}},features:[oi.HasInnerShadow,oi.HasResponsiveItem,oi.Selectable,oi.HasBackground,oi.HasBackgroundImage,oi.Hideable,oi.HasLayout,oi.HasBorder,oi.HasPadding,oi.HasRichContent,oi.HasMultiStyles],methods:{creationFunction:function(){return f.useTemplate(e.Element)},hasBinding:function(){var e=this;return e.isBound(e.getBindingType())},getBindingType:function(){return ui.htmlContent.getBindingType()},createBindingFieldsToProperties:function($super){var e=this,t=$super.call(e);return e.hasBinding()&&(t[ui.htmlContent.name]=Po.create(e,{propertyName:ui.htmlContent.name})),t},findUsedFonts:function(){var e=this,t=e.getPropertyValue(ui.predefinedTextStyles.name);return f.mapEntry(t,function(e){return er.evaluateFontBinding(e.fontFamily)})}},aggregatedMethods:{aggregations:{onBoundValueReady:function(e){var t=this,n=t.getBindingType(),i=t.getBindingFields(n);if(void 0!==i){var a=e[n],r=f.valueOrDefault(a,i.title);t.setBindingValueToProperty(r,ui.htmlContent.name)}},onInitialized:function(){var e=this,t=x.createEventListener({name:ui.predefinedTextStyles.name,event:e.propertyChangedEvent},function(){e.pollForNotLoadedFonts(),e.refreshContentSize()}).activate();e.instanceRemoving.one(function(){t.dispose()})}}}}})}(),function(){function e(e){var t={dateMillis:e.getPropertyValue(ui.dateMillis.name),dateSeparator:e.getPropertyValue(ui.dateSeparator.name),dateFormat:e.getPropertyValue(ui.dateFormat.name)},n=t.dateFormat.replace(/-/g,t.dateSeparator);t.dateMillis?e.dateValueObject.setValue(Rt.formatDateMillis(t.dateMillis,n)):e.dateValueObject.setValue("")}ai.registerDefinition(ri,{date:{properties:{dateFormat:{isNotForCustomProperty:!0,defaultValue:function(){return Ht[0].format},onChange:e},dateSeparator:{isNotForCustomProperty:!0,defaultValue:function(){return qt[0].value},onChange:e},dateMillis:{isNotForCustomProperty:!0,defaultValue:function(){return Date.now()},isBound:function(e){var t=this;return void 0!==t.getBindingType(e)},getBindingType:function(e){var t;return e.isBound(mi.date.getContentType())&&(t=mi.date.getContentType()),t},onChange:e}},ancestorElementType:ri.freeText,methods:{hasBinding:function(){var e=this;return void 0!==e.getBindingType()},getBindingType:function(){var e=this;return ui.dateMillis.getBindingType(e)},createBindingFieldsToProperties:function($super){var e=this,t=$super.call(e),n=mi.date.getContentType();return this.isBound(n)&&(t[ui.dateMillis.name]=Po.create(e,{propertyName:ui.dateMillis.name})),t}},aggregatedMethods:{aggregations:{onCreation:function(){var e=this;e.dateValueObject=Po.create(e,{propertyName:ui.formattedText.name})},onBoundValueReady:function(e){var t=this,n=t.getBindingType();void 0!==n&&t.setBindingValueToProperty(Rt.getDateStringMillis(e[n]),ui.dateMillis.name)}}}}})}(),function(){function e(e){var t=e.getPropertyValue(ui.dateRange.name);t=f.valueOrDefault(t,[Date.now()]);var n={fromDate:t[0],toDate:t[1],dateRangeSeparator:e.getPropertyValue(ui.dateRangeSeparator.name),specificDateFormat:e.getPropertyValue(ui.specificDateFormat.name),dateRangeFormat:e.getPropertyValue(ui.dateRangeFormat.name)},i=n.specificDateFormat.replace(/-/g,n.dateRangeSeparator),a=Rt.formatDateMillis(n.fromDate,i),r=n.toDate?Rt.formatDateMillis(n.toDate,i):"Present";e.dateRangeValueObject.setValue(n.dateRangeFormat.format(a,r))}ai.registerDefinition(ri,{DateRange:{title:"Date Range",properties:{dateRangeFormat:{isNotForCustomProperty:!0,defaultValue:function(){return Ut[0].format},onChange:e},specificDateFormat:{isNotForCustomProperty:!0,defaultValue:function(){return Ht[0].format},onChange:e},dateRangeSeparator:{isNotForCustomProperty:!0,defaultValue:function(){return qt[0].value},onChange:e},dateRange:{isNotForCustomProperty:!0,defaultValue:function(){return[Date.now()]},isBound:function(e){var t=this;return void 0!==t.getBindingType(e)},getBindingType:function(e){var t;return e.isBound(mi.dateRange.getContentType())&&(t=mi.dateRange.getContentType()),t},onChange:e}},ancestorElementType:ri.freeText,methods:{hasBinding:function(){var e=this;return void 0!==e.getBindingType()},getBindingType:function(){var e=this;return ui.dateRange.getBindingType(e)},createBindingFieldsToProperties:function($super){var e=this,t=$super.call(e),n=mi.dateRange.getContentType();return this.isBound(n)&&(t[ui.dateRange.name]=Po.create(e,{propertyName:ui.dateRange.name})),t}},aggregatedMethods:{aggregations:{onCreation:function(){var e=this;e.dateRangeValueObject=Po.create(e,{propertyName:ui.formattedText.name})},onBoundValueReady:function(e){var t=this,n=t.getBindingType();void 0!==n&&t.setBindingValueToProperty(e[n],ui.dateRange.name)}}}}})}(),function(){function e(e){var n=f.unite(e.useImageLayer(),e.$elementBackgroundLayer),a=!!f.support.backgroundSize;a?n.addClass("fixed-attachment-background"):n.addClass("sticky-background"),e.data.fixedBackgroundTargetsClass=Ie.createContextClass({getTarget:function(){return n}}),e.sizeChangedEvent.bind(function(){e.isFixedBackground.isTrue()?i(e):e.setImageBoxViewport(e.getSize())});var r=x.createEventListener([Fa.ViewPortChanged],function(){Vn.requestIndpendentWriteOperation(function(){var r=Fa.getViewPort();a?e.setImageBoxViewport(f.getWindowSize(),!0):e.setImageBoxViewport(r,!0),i(e),t(e,n)},e.id+"viewPortListener")});e.isFixedBackground.valueChangedEvent.bindAndExecute(function(){e.isFixedBackground.isTrue()?r.activateAndExecute():(r.deactivate(),Vn.requestIndpendentWriteOperation(function(){e.setImageBoxViewport(e.getSize())},"setImageBoxViewport"+e.id))})}function t(e,t){Vn.requestIndpendentWriteOperation(function(){if(n(e)){var i=Fa.getViewPort();if(e.getPropertyValue("fixedBackground")&&se.resolveImageUrl(e.getPropertyValue("imageUrl"))){e.imageBoxCreatedFlag.onceTrue(function(){e.getImageBox().toggleForceBackgroundImage(Fa.IsFullScreen.isFalse())});!!f.support.backgroundSize;t.css({width:i.width,height:"100%",top:i.top,left:i.left,"margin-left":""})}else t.css({width:"",height:"",top:"",left:"","margin-left":""})}},"instance.idrefreshBackgroundTargetsLayout")}function n(e){if(Fa.IsFullScreen.isTrue())return!1;if(e.isFixedBackground.isFalse())return!1;var t=ba.getElementArea(e,!0);return!!t}function i(e){Vn.requestIndpendentWriteOperation(function(){if(n(e)){var t=Fa.getViewPort(),i=ba.getElementArea(e,!0),a=i.top-t.top,r=t.height-(a+i.height),o=e.data.fixedBackgroundTargetsClass;return a>0?o.set("fixed-to-top"):r>0?o.set("fixed-to-bottom"):o.set("fixed-to-center")}},e.id+"updateInnerScreenFixedTargets")}function a(e){if(e===va.getCurrentPage()){var t=va.getPageData(e.id);r(_e.isListPage(t)?Cr.getListPageTitle(t):t.pageTitle||t.title)}}function r(e){var t="{0}";window.document.title=t.format(e)}function o(e){if(e===va.getCurrentPage()){var t=va.getPageData(e.id).description;f("#meta-description").attr("content",t)}}function s(e){if(e===va.getCurrentPage()){var t=va.getPageData(e.id).keyWords;f("#meta-keywords").attr("content",t)}}function l(e){if(e===va.getCurrentPage()){var t=va.getPageData(e.id).metaTags;u&&f(u).remove(),u=f.addHtmlCodeToTheHead(t)}}var c={Element:{group:"page-element-templates",name:"page-element-template"}};Z.PageHeightChanged=x.create(),Z.PageContentWidthChanged=x.create(),ai.registerDefinition(ri,{page:{features:[oi.Resizable,oi.HasContent,oi.Selectable,oi.ItemsContainer,oi.HasChildrenLayoutAnchor,oi.HasBackground,oi.HasBackgroundImage],defaultProperties:{padding:function(){return f.convertValueToObject(0,["top","left","bottom","right"])},backgroundColor:function(){return"white"},sizeAndPosition:function(){return{width:null,height:1068,top:null,left:null}},childrenAnchor:function(){return ot.Centered}},properties:{gridLines:{defaultValue:function(){return[]}},fixedBackground:{defaultValue:ds,isStateProperty:!0,onChange:function(e,t){e.isForTemplateUse()||e.isFixedBackground.setValue(t)}},statesGroups:{category:ci.Other,defaultValue:gs,onChange:function(e){var t=e.getPropertyValue("statesGroups");if(t&&null!==t){var n=va.getCoordinator(),i=n.getPropertyValue("siteStatesGroups"),a=f.extend({},t,i);n.setPropertyValue("siteStatesGroups",a)}}}},calculatedProperties:["pageTitle"],methods:{getMinSize:f.returnZeroSize,hasHeight:ds,calculateActualSize:function(){var e=f.getWindowSize(),t=e.width,n=0;return{width:t,height:n}},getContentLayer:function($super){return Ha.Flags.IsInMobileContext.isFalse()?$super.call(this):f(".master-page-mobile-content-container ",this.$element)},getMaxSize:function(){return{height:1/0,width:1/0}},isRelativePositioned:us,forceImageBoxCreation:us,autoCalculateBackgroundViewPort:ds,getImageLayerTemplate:function(){return f('<div class="element-background-image"></div>')},refreshPageMetaData:function(){var e=this;a(e),o(e),s(e),l(e)},getPaddingBox:function(){return this.$paddingBox},attachPage:function(){var e=this;e.$container||sa.addInstanceToRoot(e)},reorderChildElements:function($super){if(this.hasOrder.getValue()){var e=this.getChildInstances(),t=this.getPageContentInstance();t.getPageContentLayout().reorderSections(e),Ha.Flags.IsInMobileContext.isTrue()&&$super.call(this)}},handleImageBoxBorderWidthChange:function(){var e=this,t=e.data.imageBox,n=e.getActualPropertyValue("borderWidth"),i={left:0,top:0,right:0,bottom:0};e.getPropertyValue("fixedBackground")?t.setBorderWidth(i):(n||(n=i),t.setBorderWidth(n))},addChildElement:function(e){var t=this;return e.addElementToPage(t)},getFooterInstanceHeight:function(){var e=this.getFooterInstance();return e&&ba.isElementVisible(e)?e.getActualPropertyValue("sizeAndPosition").height:0},getHeaderInstanceHeight:function(){var e=this.getHeaderInstance();return e&&ba.isElementVisible(e)?e.getActualPropertyValue("sizeAndPosition").height:0},getFooterInstance:function(){return this.data.footerInstance},getHeaderInstance:function(){return this.data.headerInstance},setFooterInstance:function(e){var t=this;t.data.footerInstance=e,t.isForTemplateUse()||va.Flags.FooterExists.setValue(void 0!==e)},setHeaderInstance:function(e){var t=this;t.data.headerInstance=e,t.isForTemplateUse()||va.Flags.HeaderExists.setValue(void 0!==e)},getPageContentInstance:function(){return this.pageContentInstance},setPageContentInstance:function(e){this.pageContentInstance=e},removePageContentInstance:function(){this.pageContentInstance=void 0},creationFunction:function(e){var t=f.useTemplate(c.Element);return e.data.pageContentContainer=t,e.data.$footerSection=f(".footer-section",e.$element),e.data.$headerSection=f(".header-section",e.$element),t},renderElement:function(e){var t=this,n=(t.id,t.elementType);n.typeClass,new E;e.startInstanceRendering(t,"page-element"),e.openTag("div","element-main-box positioned"),e.openTag("div","element-background-layer positioned absolute-fill element-border-target design-element-border-target"),e.closeTag(),e.openTag("div","page-element-border-box element-border-target positioned design-element-border-box"),e.addTag("div","header-section page-section positioned"),e.openTag("div","element-content-box element-padding-box positioned"),e.openTag("div","page-element-size-box element-size-box positioned element-size-target"),e.addTag("div","master-page-mobile-content-container"),e.openTag("div","page-content-container content-container-type"),t.renderElementChildren(e),e.closeTag(),e.closeTag(),e.closeTag(),e.addTag("div","footer-section page-section positioned"),e.closeTag(),e.closeTag(),e.finishInstanceRendering()},getAutoLayoutProperties:function(){return{left:!0,top:!0,width:!0}},getCalculatedPropertyValue:function($super,e){switch(e){case"pageTitle":return va.getPageData(this.id).pageTitle}return $super.call(this,e)},setCalculatedPropertyValue:function($super,e,t,n,i){switch(e){case"pageTitle":return void va.updatePageFieldsData(this.id,{pageTitle:t})}$super.call(this,e,t,n,i)},handleBackgroundUpdate:ds},aggregatedMethods:{aggregations:{onCreation:function(){var e=this;e.pageContentInstances={},e.isFixedBackground=O.create(!1,{valueChangeCallback:function(t){var n=f.unite(e.useImageLayer(),e.$elementBackgroundLayer);n.toggleClass("fixed-page-background",t),t||(n.css({width:"",height:"",top:"",left:"","margin-left":""}),n.removeClass("fixed-to-top fixed-to-bottom fixed-to-center"))}})},onChildElementRemoved:function(e){e.classesManager.set({"is-page-child":!1,"positioned-fixed":!1})},onChildElementAdded:function(e){var t=this;e.classesManager.set({"is-page-child":!0}),e.hasFeature(oi.PageSection)&&fa.invalidateProperty(t,"sizeAndPosition",void 0,t.getPropertyValue("sizeAndPosition"))},switchToPreview:function(){var e=this;e.data.isLoaded=!1},onInitializing:function(){var t=this;t.isVisible=!1,t.canMove.setValue(!1),e(t)},onInitialized:function(){var e=this;e.isForTemplateUse()||(va.Flags.HeaderExists.setValue(void 0!==e.getHeaderInstance()),va.Flags.FooterExists.setValue(void 0!==e.getFooterInstance()))}}},supportedStates:[Oi.BeforeLoadedState,Oi.BeforeOpenedState]}});var u}(),function(){function e(e,t){Er.performUpdateOnRenderingFinished(function(){var n=e.getPropertyValue("iconSize");if("auto"===n){var i=ba.getContentSize(e);n=Math.min(i.height,i.width)*(1/Math.sqrt(2))}e.animatePart(e.data.$icon,{"font-size":n,"margin-top":-n/2},!1,t)},e.id+"updateIconSize")}ai.registerDefinition(ri,{Icon:{features:[oi.HasInnerShadow,oi.HasResponsiveItem,oi.Resizable,oi.Selectable,oi.HasBackground,oi.HasLayout,oi.HasPadding,oi.Clickable,oi.Hideable,oi.HasBorder,oi.Rotatable,oi.HasContent],properties:{iconColor:{isStyleProperty:!0,isStateProperty:!0,supportsStatesTransitionAnimation:!0,supportsThemeBinding:!0,defaultValue:function(){return"black"},onChange:function(e,t,n){t=Ka.evaluateColorBinding(t,!0),e.animatePart(e.data.$icon,{color:t},!0,n)}},iconReference:{defaultValue:gs,isStateProperty:!0,supportsBinding:!0,isBound:function(e){return e.isBound(mi.fontIcon.getContentType())},onChange:function(e,t){Ir.applyIcon(e.data.$icon,t)}},iconSize:{defaultValue:function(){return 24},isStateProperty:!0,supportsStatesTransitionAnimation:!0,onChange:function(t,n,i){e(t,i)}}},methods:{hasBinding:function(){return ui.iconReference.isBound(this)},creationFunction:function(e){var t=f("<div class='icon-element-content'></div>");return e.data.$icon=t,t},createBindingFieldsToProperties:function($super){var e=this,t=$super.call(e),n=mi.fontIcon.getContentType();return e.isBound(n)&&(t[ui.iconReference.name]=Po.create(e,{propertyName:ui.iconReference.name})),t}},aggregatedMethods:{aggregations:{adjustInstanceToViewPort:function(){this.setPropertyValue("iconSize","auto")},onBoundValueReady:function(e){var t=this,n=mi.fontIcon.getContentType();if(t.isBound(n)){var i=void 0===e[n]?null:e[n];this.setBindingValueToProperty(i,ui.iconReference.name)}},onInitialized:function(){var t=this,n=x.createEventListener(t.contentSizeChangedEvent,function(){var n=t.getPropertyValue("iconSize");"auto"===n&&e(t)}),i=t.visibilityChangedEvent.bindAndExecute(function(){var e=ba.isElementVisible(t);e?n.activateAndExecute():n.deactivate()});t.instanceRemoving.one(function(){i.unbind(),n.dispose()})}}}}})}(),function(){function e(e,t){var n=Math.max(1,t),i=e.getPropertyValue("orientation");e.data.$line.css({"border-bottom-width":i===ct.Horizontal?n+"px":"","border-left-width":i===ct.Vertical?n+"px":""}),e.data.$line.makeCentered({horizontally:i===ct.Vertical,vertically:i===ct.Horizontal,preComputedSize:{width:n,height:n},skipPositionCheck:!0})}function t(e,t){t=Ka.evaluateColorBinding(t,!0);var n=e.getPropertyValue("orientation");e.data.$line.css({"border-bottom-color":n===ct.Horizontal?t:"","border-left-color":n===ct.Vertical?t:""})}function n(e,t){var n=e.getPropertyValue("orientation");e.data.$line.css({"border-bottom-style":n===ct.Horizontal?t:"","border-left-style":n===ct.Vertical?t:""})}ai.registerDefinition(ri,{line:{features:[oi.HasInnerShadow,oi.HasResponsiveItem,oi.HasPadding,oi.HasContent,oi.Resizable,oi.Rotatable,oi.Selectable,oi.HasLayout,oi.Hideable,oi.HasOutline,oi.Clickable],properties:{orientation:{category:ci.Line,isStateProperty:!0,defaultValue:function(){return ct.Horizontal},onChange:function(t,n){t.data.$line.toggleClass("vertical",n===ct.Vertical).toggleClass("horizontal",n===ct.Horizontal),t.data.$line.clearCentering(),e(t,t.getPropertyValue("lineWidth"))}}},methods:{getShadowTarget:function(){return this.data.$line},creationFunction:function(e){var t=f("<div class='line-element-line'></div>");return e.data.$line=t,t},shouldBeHiddenInMode:function(){return this.getPropertyValue("orientation")===ct.Vertical}},aggregatedMethods:{aggregations:{onPropertyChange:function(i,a){switch(i.name){case"lineWidth":e(this,a);break;case"lineColor":t(this,a);break;case"lineStyle":n(this,a)}}}}}})}(),function(){function e(e,t){var i=Math.max(0,t);n&&e.getBorderTarget().css({"border-top-width":i+"px","border-left-width":i+"px","border-bottom-width":i+"px","border-right-width":i+"px"}),la.refreshElementsLayout(e),la.requestUpdatePosition(e)}function t(e,t){n&&(t=Ka.evaluateColorBinding(t),e.getBorderBox().css("border-color",t))}var n;if(f.support.borderRadius){var i=document.createElement("div");i.style.cssText="-webkit-border-radius: 50%;-moz-border-radius: 50%;border-radius: 50%;-ms-border-radius:50%;",n=""!=i.style.cssText}else n=!1;ai.registerDefinition(ri,{Ellipse:{features:[oi.HasInnerShadow,oi.HasResponsiveItem,oi.Selectable,oi.HasLayout,oi.Hideable,oi.HasOutline,oi.HasBackground,oi.Clickable,oi.Shape],methods:{isLineAffectsSize:us,createShape:function(e){return e.addEllipse()},shouldBeHiddenInMode:us,creationFunction:function(e){return n?void 0:e.createContent()}},aggregatedMethods:{aggregations:{onPropertyChange:function(n,i){switch(n.name){case"lineWidth":e(this,i);break;case"lineColor":t(this,i)}},onInitializing:function(){var e=this;n?(e.getBorderBox().addClass("border-radius-ellipse"),e.getBackgroundTarget().addClass("border-radius-ellipse")):e.getBorderBox().addClass("canvas-ellipse")}}}}})}(),function(){ai.registerDefinition(ri,{Triangle:{features:[oi.HasInnerShadow,oi.HasResponsiveItem,oi.Rotatable,oi.Selectable,oi.HasLayout,oi.Hideable,oi.HasOutline,oi.HasBackground,oi.Clickable,oi.Shape],properties:{shapeAngle:{isStyleProperty:!1,isStateProperty:!0,supportsStatesTransitionAnimation:!1,defaultValue:function(){return 0},onChange:function(e,t){e.getShape().setPropertyValue("angle",t)}}},methods:{createShape:function(e){return e.addTriangle()},shouldBeHiddenInMode:us}}})}(),function(){ai.registerDefinition(ri,{Rectangle:{features:[oi.HasInnerShadow,oi.HasResponsiveItem,oi.Resizable,oi.Selectable,oi.HasBackground,oi.HasBackgroundImage,oi.HasLayout,oi.Clickable,oi.Hideable,oi.HasBorder,oi.Rotatable],methods:{creationFunction:function(){return f("<div></div>").addClass("absolute-fill")},shouldBeHiddenInMode:us}}})}(),function(){ai.registerDefinition(ri,{Star:{features:[oi.HasInnerShadow,oi.HasResponsiveItem,oi.Rotatable,oi.Selectable,oi.HasLayout,oi.Hideable,oi.HasOutline,oi.HasBackground,oi.Clickable,oi.Shape],aggregatedMethods:{aggregations:{}},properties:{points:{isStyleProperty:!1,isStateProperty:!0,supportsStatesTransitionAnimation:!1,defaultValue:5,onChange:function(e,t){e.getShape().setPropertyValue("points",t)}},angle:{isStyleProperty:!1,isStateProperty:!0,supportsStatesTransitionAnimation:!1,defaultValue:function(){return 0},onChange:function(e,t){e.getShape().setPropertyValue("angle",t)}}},methods:{createShape:function(e){return e.addStar()},shouldBeHiddenInMode:us}}})}(),function(){ai.registerDefinition(ri,{Polygon:{features:[oi.HasInnerShadow,oi.HasResponsiveItem,oi.Rotatable,oi.Selectable,oi.HasLayout,oi.Hideable,oi.HasOutline,oi.HasBackground,oi.Clickable,oi.Shape],aggregatedMethods:{aggregations:{}},properties:{sideLength:{isStyleProperty:!1,isStateProperty:!0,supportsStatesTransitionAnimation:!1,defaultValue:function(){return 150},onChange:function(e,t){e.getShape().setPropertyValue("sideLength",t)}},angles:{isStyleProperty:!1,isStateProperty:!0,supportsStatesTransitionAnimation:!1,defaultValue:function(){return 6},onChange:function(e,t){e.getShape().setPropertyValue("angles",t)}}},methods:{createShape:function(e){return e.addPolygon()},shouldBeHiddenInMode:us}}})}(),function(){ai.registerDefinition(ri,{Trapezoid:{features:[oi.HasInnerShadow,oi.HasResponsiveItem,oi.Rotatable,oi.Selectable,oi.HasLayout,oi.Hideable,oi.HasOutline,oi.HasBackground,oi.Clickable,oi.Shape],properties:{baseOrientation:{isStyleProperty:!1,isStateProperty:!0,supportsStatesTransitionAnimation:!1,defaultValue:function(){return 0},onChange:function(e,t){e.getShape().setPropertyValue("baseOrientation",t)}},topSize:{isStyleProperty:!1,isStateProperty:!0,supportsStatesTransitionAnimation:!1,defaultValue:function(){return 50},onChange:function(e,t){e.getShape().setPropertyValue("topSize",t)}}},methods:{createShape:function(e){return e.addTrapezoid()},shouldBeHiddenInMode:us}}})}(),function(){ai.registerDefinition(ri,{Parallelogram:{features:[oi.HasInnerShadow,oi.HasResponsiveItem,oi.Rotatable,oi.Selectable,oi.HasLayout,oi.Hideable,oi.HasOutline,oi.HasBackground,oi.Clickable,oi.Shape],properties:{slantDirection:{isStyleProperty:!1,isStateProperty:!0,supportsStatesTransitionAnimation:!1,defaultValue:function(){return 0},onChange:function(e,t){e.getShape().setPropertyValue("slantDirection",t)}},gapSize:{isStyleProperty:!1,isStateProperty:!0,supportsStatesTransitionAnimation:!1,defaultValue:function(){return 30},onChange:function(e,t){e.getShape().setPropertyValue("gapSize",t)}}},methods:{createShape:function(e){return e.addParallelogram()},shouldBeHiddenInMode:us}}})}(),function(){ai.registerDefinition(ri,{Arrow:{features:[oi.HasInnerShadow,oi.HasResponsiveItem,oi.Rotatable,oi.Selectable,oi.HasLayout,oi.Hideable,oi.HasOutline,oi.HasBackground,oi.Clickable,oi.Shape],properties:{sweepAngle:{isStyleProperty:!1,isStateProperty:!0,supportsStatesTransitionAnimation:!1,defaultValue:90,onChange:function(e,t){e.getShape().setPropertyValue("sweepAngle",t)}},baseThicknessPercent:{isStyleProperty:!1,isStateProperty:!0,supportsStatesTransitionAnimation:!1,defaultValue:function(){return 0},onChange:function(e,t){e.getShape().setPropertyValue("baseThicknessPercent",t)}},baseLengthPercent:{isStyleProperty:!1,isStateProperty:!0,supportsStatesTransitionAnimation:!1,defaultValue:function(){return 0},onChange:function(e,t){e.getShape().setPropertyValue("baseLengthPercent",t)}},arrowDirection:{isStyleProperty:!1,isStateProperty:!0,supportsStatesTransitionAnimation:!1,defaultValue:function(){return 0},onChange:function(e,t){e.getShape().setPropertyValue("arrowDirection",t)}}},methods:{createShape:function(e){return e.addArrow()},shouldBeHiddenInMode:us}}})}(),function(){ai.registerDefinition(ri,{SpeechBubble:{title:"Speech Bubble",features:[oi.HasInnerShadow,oi.HasResponsiveItem,oi.Rotatable,oi.Selectable,oi.HasLayout,oi.Hideable,oi.HasOutline,oi.HasBackground,oi.Clickable,oi.Shape],properties:{pointOrientation:{title:"Point Orientation",isStyleProperty:!1,isStateProperty:!0,supportsStatesTransitionAnimation:!1,defaultValue:180,onChange:function(e,t){e.getShape().setPropertyValue("pointOrientation",t)}},cornerRadius:{title:"Corner Radius",isStyleProperty:!1,isStateProperty:!0,supportsStatesTransitionAnimation:!1,defaultValue:70,onChange:function(e,t){e.getShape().setPropertyValue("cornerRadius",t)}},baseOffset:{title:"Base Offset",isStyleProperty:!1,isStateProperty:!0,supportsStatesTransitionAnimation:!1,defaultValue:70,onChange:function(e,t){e.getShape().setPropertyValue("baseOffset",t)}},baseOffsetPercent:{title:"Base Offset Percent",isStyleProperty:!1,isStateProperty:!0,supportsStatesTransitionAnimation:!1,defaultValue:20,onChange:function(e,t){e.getShape().setPropertyValue("baseOffsetPercent",t)}},baseWidth:{title:"Base Width",isStyleProperty:!1,isStateProperty:!0,supportsStatesTransitionAnimation:!1,defaultValue:function(){return 0},onChange:function(e,t){e.getShape().setPropertyValue("baseWidth",t)}},tipHeight:{title:"Tip Height",isStyleProperty:!1,isStateProperty:!0,supportsStatesTransitionAnimation:!1,defaultValue:function(){return 0},onChange:function(e,t){e.getShape().setPropertyValue("tipHeight",t)}},tipOffset:{title:"Tip Offset",isStyleProperty:!1,isStateProperty:!0,supportsStatesTransitionAnimation:!1,defaultValue:function(){return 0},onChange:function(e,t){e.getShape().setPropertyValue("tipOffset",t)}}},methods:{createShape:function(e){return e.addSpeechBubble()},shouldBeHiddenInMode:us}}})}(),function(){var e={Element:{useTemplate:function(){var e=new E;return e.append('<div class="svg-content-element absolute-fill vertically-center-children content-centered" style="background: none;">'),e.append("</div>"),f(""+e)}}};ai.registerDefinition(ri,{SvgElement:{features:[oi.Resizable,oi.Selectable,oi.Rotatable,oi.HasBackground,oi.Clickable,oi.Hideable,oi.HasResponsiveItem,oi.HasLayout,oi.SvgShape],properties:{shapeReference:{defaultValue:f.returnEmptyObject,isStateProperty:!0,supportsBinding:!0},elementRole:{defaultValue:f.returnEmptyObject}},aggregatedMethods:{aggregations:{onInitialized:function(){var e=this,t=e.getPropertyValue("elementRole");if(!f.getKeys(t).length){var n=e.getSvgController().element;t=Qt.getElementRole(n),e.setPropertyValue("elementRole",t)}},updateInstanceToViewPort:function(){this.data.pcShapeReference=this.getSvgController().createShapeReference()}}},methods:{creationFunction:function(){return f.useTemplate(e.Element)},createSvgShapeController:function(){var e=this,t=e.getPropertyValue("shapeReference");if(!j.inlinesvg){var n=Qt.getSvgImage(t);t.shape="<img src='{0}'>".format(n)}return Zt.create(t)},getShapeReference:function(){return this.getPropertyValue("shapeReference")}}}})}(),function(){var e={Element:{useTemplate:function(){var e=new E;return e.append('<div class="svg-content-element absolute-fill vertically-center-children content-centered" style="background:none">'),e.append("</div>"),f(""+e)}},ChangeShapeSection:{useTemplate:function(){return f("<div class='change-shape-section'><div class='change-shape-section-text'></div><div class='change-shape-section-button'></div></div>")}}};ai.registerDefinition(ri,{LogoElement:{features:[oi.Resizable,oi.Selectable,oi.Rotatable,oi.HasBackground,oi.Clickable,oi.Hideable,oi.HasResponsiveItem,oi.SvgShape],properties:{logoReference:{defaultValue:f.returnEmptyObject,isStateProperty:!0,supportsBinding:!0,preSaveProcessing:function(e,t){var n=t.getSvgController();return n?n.createShapeReference():void 0}}},methods:{creationFunction:function(){return f.useTemplate(e.Element)},createSvgShapeController:function(){var e,t=this,n=t.getPropertyValue("logoReference");if(j.inlinesvg)t.data._getSvgPartByRole=function(){e||(e=Qt.setInnerObjectsProperties(n.shape))};else{var i=Qt.getSvgImage(n);n.shape="<img src='{0}' title='{1}'>".format(i,"SVG Shape")}return Zt.create(n)},getShapeReference:function(){return this.getPropertyValue("logoReference")}}}})}(),function(){function e(e){e.ignoreGroupUpdate.isTrue()||e.isGroupDisabled()||e.groupUpdateBatch.performInstanceOperation(function(){sa.HierarchyChangedUpdateBatch.performInstanceOperation(function(){var t=e.childInstances;t.length>1?e.refreshGroupArea():1===t.length?(e.ignoreGroupUpdate.setValue(!0,"updatingGroup"),ua.releaseGroup(e),sa.removeInstances([e]),e.ignoreGroupUpdate.setValue(!1,"updatingGroup")):0===t.length&&sa.removeInstances([e])},e,"updateGroup")},e,"updateGroup")}ai.registerDefinition(ri,{group:{features:[oi.HasResponsiveItem,oi.Selectable,oi.Clickable,oi.HasLayout,oi.ItemsContainer,oi.Hideable],methods:{getMainBox:function(){return this.$elementContentBox},getShadowTarget:function(){return this.$elementContentBox},disableGroup:function(e){this.groupDisabled.setValue(!0,e)},enableGroup:function(e){this.groupDisabled.setValue(!1,e)},startGroupUpdating:function(){this.groupUpdateBatch.start()},hasHeight:function(){return!this.isRelativePositioned()},hasWidth:function(){return!this.isRelativePositioned()},finishGroupUpdating:function(){this.groupUpdateBatch.finish()},isGroupDisabled:function(){return this.groupDisabled.isTrue()},renderElement:function(e){var t=this,n=!1;n=t.getPropertyValue("tagName"),n===et.DIV&&(n=!1),e.startInstanceRendering(t,"group-element"),n&&e.openTag(n,"html-element"),e.openTag("div","element-content-box design-element-content-box"),e.openTag("div","content-container content-container-type element-size-box element-size-target"),t.renderElementChildren(e),e.closeTag(),e.closeTag(),n&&e.closeTag(),e.finishInstanceRendering()}},aggregatedMethods:{aggregations:{onCreation:function(){var t=this;t.autoAdjustSize=O.createConditionalPositive(),t.ignoreGroupUpdate=O.createConditionalNegative(),t.groupDisabled=O.createConditionalNegative(),t.groupUpdateBatch=Ae.create({batchFinishCallback:function(){e(t)}})},updateInstanceToViewPort:function(){var e=this;e.data.groupInstances=e.childInstances,e.startGroupUpdating(),ua.reattachInstances(e.childInstances,e.parentInstance,{rememberWidth:!1,rememberHeight:!1}),f.eachItem(e.data.groupInstances,function(e,t){t.data.groupInstanceInMobile=t}),e.isDisplayed.setValue(!1,"group"),ba.visibilityTreeDetach(e)},removeInstanceFromViewPort:function(){var e=this;e.isDisplayed.setValue(!0,"group"),ba.visibilityTreeAttach(e),f.eachItem(e.data.groupInstances,function(e,t){t.data.groupInstanceInMobile=void 0}),sa.addElementToContainerElement(e,e.data.groupInstances),Ha.updateBatch.performOperationWhenBatchStart(function(){e.finishGroupUpdating()})},onRemove:function(){f.eachItem(this.childInstances,function(e,t){t.data.rearrangeGroupId&&(t.propertyChangedEvent.unbind(t.data.rearrangeGroupId),t.data.rearrangeGroupId=void 0)})},onChildElementAdded:function(e){e.refreshTracking(),e.$element.toggleLayerEventsCatching(!0),this.parentInstance&&this.parentInstance.hasFeature(oi.PageSection)&&e.classesManager.set({"is-section-child":!0})},onChildElementRemoved:function(e){e.$element.toggleLayerEventsCatching(!1)},switchToPreview:function(){f.eachItem(this.childInstances,function(e,t){t.propertyChangedEvent.unbind(t.data.rearrangeGroupId),t.data.rearrangeGroupId=void 0})},onInitialized:function(){var e=this;e.$element.toggleLayerEventsForwarding(!0),Ha.Flags.IsInMobileContext.valueChangedEvent.bind(function(){var t=Ha.Flags.IsInMobileContext.getValue();t?e.hideElement():e.showElement()})}}}}})}();var Ao={embed:1,popup:2,scrollBox:3};!function(){ai.registerDefinition(ri,{JMMLElement:{className:"jmml-element",
itemName:"TextInputField",features:[oi.ItemsContainer,oi.HasFormData,oi.HasPopupElement],properties:{JMML_targetEmail:{defaultValue:gs},JMML_submitSuccessText:{defaultValue:cs},JMML_submitErrorText:{defaultValue:cs},JMML_Layout:{isStateProperty:!0,defaultValue:function(){return"popup"}},JMML_Popup_TimeOut:{isNotForCustomProperty:!0,defaultValue:function(){return 10}},JMML_Parent_Section_Id:{defaultValue:gs}},defaultProperties:{elementPopupEnabled:us},methods:{shouldDisplayOnMobile:us,getJMMLType:function(){var e=this,t=e.getPropertyValue("JMML_Layout");if(Ha.Flags.IsInMobileContext.isTrue()){var n=e.getPropertyMobileValue("JMML_Layout");n||"scrollbox"!==t||(n="popup"),t=n}return a(t||"popup")},getCloseButton:function(){var e=this,t=f.grep(e.childInstances,function(e){return e.isType(ri.SkinButtonElement)&&"closeButton"===e.getPropertyValue("metaItemType")});return 1===t.length?t[0]:!1},getSubmitSuccessTarget:gs,getSubmitSuccessText:function(){var e=this;return e?e.getPropertyValue("JMML_submitSuccessText"):null},getSubmitErrorText:function(){var e=this;return e?e.getPropertyValue("JMML_submitErrorText"):null},fixElementInBottom:function(){var e=this;e.setPropertyValue("topZIndex",1),e.setCalculatedPropertyValue("verticalDocking",dt.Bottom);var t=0;t+=ss.getFooterHeight(),e.setPropertyFieldValue("margin","bottom",t),e.addFixedState()},isFixed:function(){var e=this;if(Ha.Flags.IsInMobileContext.isTrue())return e.getPropertyValue("isFixed");var t=e.getJMMLType();return t===Ao.scrollBox||e.getPropertyValue("isFixed")}},aggregatedMethods:{aggregations:{onInitialized:function(){var e=this,t=e.getJMMLType(),n=e.getCloseButton();t===Ao.scrollBox?(n.triggerActivated.one(Li.MouseClick.name,function(){e.hideElement()}),e.fixElementInBottom()):t===Ao.popup&&(n&&n.hideElement(),e.showElementInPopup())}}}}})}(),function(){ai.registerDefinition(ri,{JMMLSkinInputElement:{className:"skin-input-element",defaultProperties:{skinBinding:function(){return{skinName:"skinInputElement",type:ir.Global}}},properties:{labelText:{defaultValue:""}},features:[oi.HasInput,oi.SkinElement,oi.HasResponsiveItem,oi.Resizable,oi.Selectable,oi.HasLayout,oi.Clickable,oi.Hideable,oi.HasPadding,oi.HasContent],methods:{getSkinSupportedStates:function(){return[Oi.ElementFocusedState,Oi.MouseOverState,Oi.MouseDownState]},clear:function(){var e=this.getInputField();return e.clear()},getValue:function(){var e=this.getInputField();return e.getValue()},setValue:function(){var e=this.getInputField();e.getValue()},getInputField:function(){var e=this.data.formInput;return e||(e=this.refreshFormInput()),e},getLabelText:function(){return this.childInstances[0].childInstances[1].getPropertyValue("text")},refreshFormInput:function(){var e=this,t=e.getDescendingInstances(!1);return f.eachItem(t,function(t,n){!e.data.formInput&&n.hasFeature(oi.FormInput)&&(e.data.formInput=n)}),e.data.formInput},setLabelProperties:function(){var e=this,t=e.childInstances[0].childInstances[1],n=e.getPropertyValue("labelText");n&&t.setPropertyValue("text",n)}},aggregatedMethods:{aggregations:{onInitialized:function(){var e=this;Er.performUpdateOnRenderingFinished(function(){var t=e.childInstances[0];t.childInstances.length?e.setLabelProperties():t.childElementAdded.bind(function(t){t.elementType===ri.label&&e.setLabelProperties()})})}}}}})}(),function(){function e(e){la.LayoutContentOperationsSet.isLocked(e.getArrangementRequestName())||(e.getDataSource().invalidateAllItems(),e.requestArrangement(),la.LayoutContentOperationsSet.lockRequest(e.getArrangementRequestName()))}function t(e){de.disableOperationsRecording("removeInstanceFromViewPort"),e.dataLayoutController.resetLayout(),e.getDataSource().invalidateAllItems(),e.requestArrangement({keepItemSize:!0,shouldPush:!0}),la.LayoutContentOperationsSet.lockRequest(e.getArrangementRequestName()),de.enableOperationsRecording("removeInstanceFromViewPort")}function n(e){var t=e.getPropertyValue("dataInfo");if(e.isConnectedToNavigatable()&&e.isMasterPageElement.isTrue()){var n=t.currentData,i=sa.getInstanceByID(n.id),a=!!i&&i.getPageId()===va.getCurrentPageId(),r=e.isDisplayed.getValue();e.isDisplayed.setValue(a,"DataNotInitialized"),a&&!r&&e.requestArrangement()}}ai.registerDefinition(ri,{Menu:{className:"menu-element",itemName:"MenuButton",features:[oi.HasResponsiveItem,oi.Resizable,oi.Selectable,oi.HasBackground,oi.HasBackgroundImage,oi.HasLayout,oi.Hideable,oi.HasBorder,oi.DataList,oi.HasMenu],properties:{},defaultProperties:{fitToContent:ds,sizeAndPosition:function(){return{width:400,height:400,top:0,left:0}},tagName:function(){return et.NAV},itemFields:function(){return{index:{type:"index",title:void 0,name:"index",isDefaultField:!0},title:{type:"title",title:void 0,name:"title",isDefaultField:!0}}},dataLayoutOptions:function(){return{lineSpacing:15,columnSpacing:15,colsSpacing:15,rowsSpacing:15,rotation:0,cols:3,R:100}}},methods:{unSelectAll:function(){var e=this;f.eachItem(e.getItemsControllers(),function(e,t){var n=t.getInstance();sa.performOnInstancesInitialization(n.id,function(){n.userSelect(!1)})})},hasContentHorizontalAlign:ds,getDataSourceDefinition:function(){return hi.MenuElementView},onItemSet:function(e){var t=this,n=t.getDataSource().dataSourceInfo;if(n){var i,a=t.getDataSource().dataSourceInfo.currentData.type;switch(a){case di.NavigableInstance.name:e.hasOrder.setValue(!1,"menuChild");var r=t.getNavigableInstance(),o=r.getUrlAddressForPage(e.getDataItem().index);o?(e.setPropertyValue(ui.urlAddress.name,o),e.$element.unbind(".navigable")):(e.setPropertyValue(ui.urlAddress.name,null),i=function(){var t=e.getDataItemId(),n=sa.getInstanceByID(t);n.getPageId()===va.getCurrentPageId()&&sa.getInstanceByID(t).showParents()})}i&&e.$element.on("mouseup.navigable",function(){i()})}},getPotentialSelectedMenuItemId:function(){var e=this,t=e.getDataSource(),n=t.dataSourceInfo;if(n){var i=t.dataSourceInfo.currentData.type;switch(i){case di.NavigableInstance.name:var a=this.getNavigableInstance();if(a){var r=a.getCurrentItem();if(r)return r.id}return;case di.MasterPages.name:return va.getCurrentPageId()}}},isConnectedToNavigatable:function(){var e=this.getPropertyValue("dataInfo");return e&&e.currentData&&e.currentData.type===di.NavigableInstance.name},getNavigableInstance:function(){var e=this.getPropertyValue("dataInfo");return this.isConnectedToNavigatable()?sa.getInstanceByID(e.currentData.id):null},addArrangementRequest:function(e){var t=this;la.LayoutContentOperationsSet.requestEndOperation(function(){t.reArrangeTheTemplates(e)},t.getArrangementRequestName())},updateDataListToMobile:function(){var t=this;e(t)},removeDataListFromMobile:function(){var e=this;t(e)}},aggregatedMethods:{aggregations:{adjustInstanceToViewPort:function(){var e=this;e.setPropertyValue("dataLayout",{name:Zi.SquareGrid.name}),e.setPropertyFieldsValues("dataLayoutOptions",{cols:3,colsSpacing:10,rowsSpacing:10})},onRemove:function(){this.data.refreshMenuDisplaying&&this.data.refreshMenuDisplaying.dispose()},onPropertiesChanged:function(e){var t=this;t.isInitialized&&f.containsOneOfKeys(e,"dataInfo")&&n(t)},onInitializing:function(){var e=this;e.data.refreshMenuDisplaying=x.createEventListener([va.Events.PageChanged],function(){n(e)}),e.isMasterPageElement.valueChangedEvent.bindAndExecute(function(){var t=e.isMasterPageElement.isTrue();t?e.data.refreshMenuDisplaying.activate():e.data.refreshMenuDisplaying.deactivate()})},onInitialized:function(){var e=this;e.$element.addVisibilityStates(),e.previewEventsListener.add(x.createEventListener([e.totalCountObservable.valueChangedEvent],function(){Er.performUpdateOnRenderingFinished(function(){var t=e.getNavigableInstance();if(t&&t.isType(ri.PostsList)){var n=e.totalCountObservable.getValue();e.$element.toggleVisibility(!(1===n&&e.isConnectedToNavigatable()))}},e.id+"postlist-visibility-preview")}))}}}}})}(),function(){function e(e,t){var n=e.getPropertyValue("navigationButtonSettings");t.navigationBinding.setValue(n.navigation),t.navigationPropertiesBinding.setValue(n.navigationProperties)}function t(t){la.layoutUpdateBatch.start(),fa.UpdateBatch.start();var n=t.getNavigationButtonTemplate().hierarchy,i=ts.addTemplateInstance({elementForCreation:n},t,{isContent:!0,isLoading:!0,generateNewID:!0,initialProperties:{all:{fillLayout:{fillVertical:!0,fillHorizontal:!0}}}}),a=i.instances[0];a.canMove.setFalse("SkinNavigationButton"),a.canResize.setFalse("SkinNavigationButton");var r=Po.create(a,{propertyName:ui.navigationProperties.name}),o=Po.create(a,{propertyName:ui.navigation.name}),s=Po.create(a,{propertyName:ui.skinBinding.name}),l={instance:a,navigationBinding:o,navigationPropertiesBinding:r,skinBinding:s,remove:function(){sa.removeInstances(a)}};return e(t,l),fa.UpdateBatch.finish(),la.layoutUpdateBatch.finish(),l}function n(e,n,i){de.disableOperationsRecording("dataLayoutChange");var a=e.dataLayoutController,r=i&&i.name===Zi.NavigationButton.name,o=n&&n.name===Zi.NavigationButton.name;if(o&&!r){e.inEmptyStateFlag.setFalse("SkinNavigationButton"),e.reArrangementDisabled.setTrue("SkinNavigationButton"),e.data.navigationButton=t(e),a.setArrangement(n.name),a.refreshLayout(),e.isInMobileMode()&&e.setPropertyValue("display",rt.Fixed);var s=e.getImageBox();s?s.$element.addClass("element-background-layer-hidden"):e.imageBoxCreatedFlag.onceTrue(function(){var t=e.getImageBox();t&&t.$element.addClass("element-background-layer-hidden")},"hideimagebox"),e.getDataSource().refresh(),fa.resetInstanceStyleProperties(e)}else if(!o&&r){e.inEmptyStateFlag.setTrue("SkinNavigationButton"),fa.resetInstanceStyleProperties(e),a.setArrangement(n.name),e.reArrangementDisabled.setFalse("SkinNavigationButton"),e.data.navigationButton.remove(),delete e.data.navigationButton;var s=e.getImageBox();s&&s.$element.removeClass("element-background-layer-hidden"),e.getDataSource().refresh()}de.enableOperationsRecording("dataLayoutChange")}function i(e){de.disableOperationsRecording("removeMenuFromViewPort"),e.dataLayoutController.resetLayout(),e.getDataSource().invalidateAllItems(),fa.UpdateBatch.whenFinished(function(){la.LayoutContentOperationsSet.unLockRequest(e.getArrangementRequestName()),e.requestArrangement({keepItemSize:!0,shouldPush:!0}),la.LayoutContentOperationsSet.lockRequest(e.getArrangementRequestName())},e.id+"requestArrangement"),la.LayoutContentOperationsSet.lockRequest(e.getArrangementRequestName()),de.enableOperationsRecording("removeMenuFromViewPort")}ai.registerDefinition(ri,{PagesMenu:{itemName:"MenuButton",className:"menu-element",features:[oi.HasResponsiveItem,oi.Resizable,oi.Selectable,oi.HasBackground,oi.HasBackgroundImage,oi.HasLayout,oi.Hideable,oi.HasBorder,oi.DataList,oi.HasMenu,oi.HasMoreButton],methods:{isNavigationButton:function(){var e=this.getPropertyValue("dataLayout","name");return e===Zi.NavigationButton.name},disableStyleProperties:function(){return this.isNavigationButton()},shouldBeBlockElementInMobile:function(){return!this.isNavigationButton()},getSkinBinding:function(){var e=this.isNavigationButton()?this.getNavigationButtonTemplate():this.getDefaultTemplate();return f.cloneObject(e.hierarchy.structures[0].elementProperties.skinBinding)},getNavigationButtonTemplate:function(){return f.getValues(this.getFieldsTemplates().SkinNavigationButton)[0]},refreshTemplates:function(){var e=this;de.disableOperationsRecording("refreshTemplates"),e.isInitialized&&e.isNavigationButton()&&e.data.navigationButton?(e.data.navigationButton.remove(),e.data.navigationButton=t(e)):oi.HasTemplates.methods.refreshTemplates.apply(this,arguments),de.enableOperationsRecording("refreshTemplates")},getDataSourceDefinition:function(){return hi.PageMenuElementView},onItemSet:function(e){e.setPropertyValue("urlAddress",{url:e.getDataItemId(),type:nt.Pages})},getPotentialSelectedMenuItemId:function(){return va.getCurrentPageId()},removeDataListFromMobile:function(){var e=this;i(e)},updateDataListToMobile:function($super){var e=this,t=e.dataLayoutController.getArrangement();t&&t.name===Zi.NavigationButton.name&&e.getPropertyValue("dataLayout").name!==Zi.NavigationButton.name&&e.reArrangementDisabled.setFalse("SkinNavigationButton"),$super.call(e)}},properties:{navigationButtonSettings:{isStateProperty:!0,defaultValue:function(){return{navigation:"SlideNavigation",navigationProperties:{direction:"left",width:250,height:400,spacing:10,animationSpeed:400,hierarchyOpened:!1,useHierarchy:!0,pushContent:!1,backgroundColor:{mainColor:1,opacity:1,brightness:0},fontColor:{mainColor:3,opacity:1,brightness:0},fontSize:16,font:{themeFont:"heading1"}}}},onChange:function(t,n,i,a){a&&t.data.navigationButton&&e(t,t.data.navigationButton)}}},defaultProperties:{tagName:function(){return et.NAV}},aggregatedMethods:{aggregations:{adjustInstanceToViewPort:function(){var e=this;e.setPropertyValue("dataLayout",{name:Zi.NavigationButton.name}),e.isNavigationButton()||(ca.setInstancesSize(e,{width:30,height:30}),e.data.disableAdjustWidthToMobile=!0)},updateInstanceToViewPort:function(){var e=this.data.navigationButton;e&&fa.invalidateElement(e.instance)},removeInstanceFromViewPort:function(){var e=this.data.navigationButton;e&&fa.invalidateElement(e.instance)},onInitializing:function(){var e=this,t=e.getPropertyValue("dataLayout");n(e,t);var i=e.propertyChangedEvent.bind("dataLayout",function(t,i){void 0!==i&&n(e,t,i)});e.instanceRemoving.one(function(){i.unbind()})}}}}})}(),function(){function e(e){return e.data.currentSectionScrollId}function t(e,t){var n=e.getPropertyValue("scrollingAnimationDuration"),i=sa.getInstanceByID(t);i&&sa.scrollToInstanceInPreview(i,{animationDuration:n})}function n(e,t){var n=e.data.currentSectionScrollId,i=n;if(t){var a=t.id,r=e.getDataSource(),o=r.getItem(a);if(o)i=a;else if(!n){var s=r.getSortedItems();s&&s.length>0&&(i=s[0].id)}}else i=void 0;n!==i&&(e.data.currentSectionScrollId=i,e.refreshSelectedItem())}ai.registerDefinition(ri,{SectionMenu:{itemName:"MenuButton",className:"sections-menu-element",features:[oi.HasResponsiveItem,oi.Resizable,oi.Selectable,oi.HasBackground,oi.HasBackgroundImage,oi.HasLayout,oi.Hideable,oi.HasBorder,oi.DataList,oi.HasMenu,oi.HasMoreButton],methods:{refreshCustomZIndex:cs,refreshFixedState:cs,getDataSourceDefinition:function(){return hi.SectionMenuElementView},onItemSet:function(e){e.hasOrder.setFalse("sectionButton")},getPotentialSelectedMenuItemId:function(){return Ha.Flags.IsInMobileContext.isFalse()&&this.getPropertyValue("showSelection")?this.data.currentSectionScrollId:void 0},getArrangementOptions:function($super){var e=this,t=e.data;return f.quickExtend($super.call(e),{dropDownItemClick:t.scrollToSection,currentSelectedItem:t.getCurrentSelectedSection})}},properties:{scrollingAnimationDuration:{isStateProperty:!0,defaultValue:function(){return 400}},showSelection:{isStateProperty:!0,defaultValue:us}},defaultProperties:{sizeAndPosition:function(){return{width:400,height:400,top:0,left:0}}},aggregatedMethods:{aggregations:{onInitializing:function(){var i=this,a=i.data;a.sectionScrollCallback=f.firstArgProxy(n,i),a.scrollToSection=f.firstArgProxy(t,i),a.getCurrentSelectedSection=f.firstArgProxy(e,i)},onInitialized:function(){var e=this;this.previewEventsListener.add(x.createEventListener([e.visibilityChangedEvent,Ha.Flags.IsInMobileContext.valueChangedEvent],function(){Er.performUpdateOnRenderingFinished(function(){if(e.isInstanceVisible()){wr.addSectionScrollListener(e.data.sectionScrollCallback);var t=va.getCurrentPage().getPageContentInstance();e.isFixed()?e.customZIndex.setValue(Z.MinPropertyZindex+1):e.getPosition().top<t.getPosition().top||e.getPosition().top>t.getArea().bottom?e.customZIndex.setValue(Z.MinPropertyZindex+1):e.customZIndex.setValue(Z.MinPropertyZindex/2+1)}else wr.removeSectionScrollListener(e.data.sectionScrollCallback)},e.id+"switch-preview-sections-menu-element")}))}}}}})}();var Bo={Capitalize:{value:"capitalize"},Lowercase:{value:"lowercase"},Uppercase:{value:"uppercase"}};!function(){ai.registerDefinition(ri,{TagCloud:{className:"tag-cloud-element",itemName:"SkinTagButton",features:[oi.HasResponsiveItem,oi.Resizable,oi.Selectable,oi.HasBackground,oi.HasBackgroundImage,oi.HasLayout,oi.Hideable,oi.HasBorder,oi.DataList,oi.HasMenu],properties:{textTransform:{defaultValue:f.returnFixedValue(Bo.Capitalize.value),isStateProperty:!0,onChange:function(e,t){e.getContentLayer().css("text-transform",t)}}},defaultProperties:{dataInfo:function(){return{listName:mr.LocalBlog}},dataLayout:function(){return{name:Zi.Horizontal.name}},dataLayoutOptions:function(){return{lineSpacing:15,columnSpacing:15,colsSpacing:15,rowsSpacing:15,rotation:0,cols:3,R:100,maxItems:6}}},methods:{getDataSourceDefinition:function(){return hi.TagCloudView},onItemSet:cs,getPotentialSelectedMenuItemId:function(){var e=this,t=_e.getListControllerFromInstance(e);if(_e.isMasterListPage(va.CurrentPageData.getValue())&&t.isTypeOf(Cr.SupportedListTypes.tag)){var n=e.getDataSource().getCollectionItems().getItems(),i=t.currentDisplayedTag.getValue(),a=f.findFirst(n,function(e,t){return t.tag===i});return a?a.id:void 0}},getLoadingRequirements:function(){var e=this,t=_e.getListControllerFromInstance(e);return t?ma.LoadingRequirements.ListsContent.create({listName:t.getListName(),widgetContent:{elementId:e.id,type:yr.TagCloud}}):void 0}},aggregatedMethods:{aggregations:{}}}})}(),function(){ai.registerDefinition(ri,{ItemTagsElement:{itemName:"SkinItemTagButton",ancestorElementType:ri.TagCloud,methods:{getDataSourceDefinition:function(){return hi.ListItemTagsView},getLoadingRequirements:cs}}})}(),function(){function e(e,t,n){var i,a,r=e.getDataSource().getViewInfo(!1,n),o=e.getPropertyValue(ui.dataLayoutOptions.name,"elementsPerPage"),s=e.isPrimary(),l=!1;return s?(i=o*(t.currentDisplayedPage.getValue()-1),a=o,l=i>0||!t.isTypeOf(Cr.SupportedListTypes.page)):(i=0,a=e.getPropertyValue(ui.dataLayoutOptions.name,"maxItemsCount")),{elementId:e.id,type:yr.PostsList,filters:r.filters,sort:r.sorts,skip:i,take:a,itemsPerPage:o,mandatory:l}}ai.registerDefinition(ri,{PostsList:{className:"posts-list-element",itemName:"ListViewItemTemplate",properties:{primaryPostsList:{defaultValue:ds}},defaultProperties:{dataInfo:function(){return{listName:mr.LocalBlog,showPinned:!0,filterType:Vo.RecentPosts,specificTag:""}}},features:[oi.HasResponsiveItem,oi.Resizable,oi.Selectable,oi.HasBackground,oi.HasBackgroundImage,oi.HasLayout,oi.Hideable,oi.HasBorder,oi.DataList,oi.TemplatePagesList],methods:{shouldMaintainHeightInPreview:function(){return!!this.isPrimary()},getDataSourceDefinition:function(){return hi.PostsListView},isPrimary:function(){var e=this;return e.getPropertyValue(ui.primaryPostsList.name)},getUrlAddressForPage:function(e){var t=this;if(t.isPrimary()){var n=_e.getListControllerFromInstance(t);return n.getPageLink(e)}},getLoadingRequirements:function(t){var n=this,i=_e.getListControllerFromInstance(n);return i?ma.LoadingRequirements.ListsContent.create({listName:i.getListName(),widgetContent:e(n,i,_e.isDynamicPage(t))}):void 0},calculateItemSizeOnMobile:function(e){var t=this.getPcTemplateSize();return{height:t?t.height*t.width/e.width:e.height,width:e.width}},navigateToTabIndex:function($super,e,t,n,i){var a=this;if(!a.isPrimary())return $super.call(a,e,t,n,i);var r=_e.getListControllerFromInstance(a);pa.navigateToPage(r.getPageLink(e+1).url)},getCurrentPageIndex:function($super){var e=this;if(e.isPrimary()){var t=_e.getListControllerFromInstance(e);return t.currentDisplayedPage.getValue()-1}return $super.call(e)}},aggregatedMethods:{aggregations:{onInitializing:function(){var e=this;if(!e.isForTemplateUse()){var t=x.createEventListener(e.currentPageId.valueChangedEvent,function(){va.isDynamicPage(e.currentPageId.getValue())?e.getDataSource().inDynamicPage.setTrue():e.getDataSource().inDynamicPage.setFalse()}).activateAndExecute();e.instanceRemoving.one(function(){t.dispose()})}}}}}})}();var Vo={RecentPosts:"RecentPosts",FeaturedPosts:"FeaturedPosts",PinnedPosts:"PinnedPosts"};!function(){VideoDataSourceEnum={DataList:0,YoutubeChannelDataSource:1,YoutubePlaylistDataSource:2,YoutubeUploadsDataSource:3},ai.registerDefinition(ri,{VideoGallery:{properties:{videoDataSource_Settings:{title:"Channel",defaultValue:function(){return{name:"",value:""}}},videoDataSource_Source:{title:"DataSource",defaultValue:function(){return VideoDataSourceEnum.DataList}}},className:"data-list-element",itemName:"DataListItemTemplate",defaultProperties:{itemFields:function(){return{index:{type:"index",title:void 0,name:"index",isDefaultField:!0},video:{type:"video",title:void 0,name:"video",isDefaultField:!0},title:{type:"title",title:void 0,name:"title",isDefaultField:!0},description:{type:"description",title:void 0,name:"description",isDefaultField:!0}}}},features:[oi.SmartDataList,oi.HasDataBinding,oi.HasDataListPopup,oi.HasDynamicDataSource],methods:{isPopupDisabled:function(){return this.inEmptyStateFlag.isTrue()},getPopupItemsCollectionForInitialization:function(){var e,t=this.getDataSource().collectionItems,n=new $t;return n.connectObservableCollection(t,{mapItem:function(t){return e=t.link,e?f.quickExtend({},t,{link:{url:pa.resolveUrl(e),newTab:e.type!==nt.Pages}}):t}}),n},updateDataBinding:function(){var e=this;if(e.allowUpdateDataBindingValue()){var t={videoDataSource_Settings:e.getPropertyValue("videoDataSource_Settings"),videoDataSource_Source:e.getPropertyValue("videoDataSource_Source")};e.updateDataBindingValue(t)}},getChildDataSourceDefinition:function(e){var t=this;switch(void 0===e&&(e=t.getPropertyValue("videoDataSource_Source")),e){case 1:return hi.YoutubePlaylistDataSource;case 2:return!1;case 3:return hi.YoutubePlaylistDataSource;default:return!1}},getDataSourceDefinition:function(e){var t=this;switch(void 0===e&&(e=t.getPropertyValue("videoDataSource_Source")),e){case 1:return hi.YoutubeChannelDataSource;case 2:return hi.YoutubePlaylistDataSource;case 3:return hi.YoutubeChannelDataSource;default:return hi.VideoGalleryElementView}},getParameterProperties:function(){var e=[];return e.push({propertyName:"videoDataSource_Settings",propertyKey:"value",parameterName:"channelId"}),e},popupItemsMappingFunction:function(e){var t=[],n=Ha.Flags.IsInMobileContext.isTrue();return n?e:e?(f.eachItem(e,function(e,n){var i=f.cloneObject(n);i.description=n.title,i.title="",t.push(i)}),t):[]}},aggregatedMethods:{aggregations:{}}}})}(),function(){GalleryDataSourceEnum={DataList:0,Facebook:1,Tumblr:2,Flickr:3,Instagram:4,InstagramDirect:5},ai.registerDefinition(ri,{Gallery:{className:"gallery-element",itemName:"ImageBox",properties:{galleryDataSource_Settings:{title:"Page",defaultValue:function(){return{}}},galleryDataSource_Source:{title:"DataSource",defaultValue:function(){return GalleryDataSourceEnum.DataList}}},defaultProperties:{itemFields:function(){return{index:{type:"index",title:void 0,name:"index",isDefaultField:!0},image:{type:"image",title:void 0,name:"image",isDefaultField:!0},title:{type:"title",title:void 0,name:"title",isDefaultField:!0},description:{type:"description",title:void 0,name:"description",isDefaultField:!0},link:{type:"link",title:void 0,name:"link",isDefaultField:!0}}},dynamicDataSourceProperty:function(){return"galleryDataSource_Settings"}},features:[oi.SmartDataList,oi.HasDataBinding,oi.HasDataListPopup,oi.HasDynamicDataSource],methods:{isPopupDisabled:function(){return this.inEmptyStateFlag.isTrue()},updateDataBinding:function(){var e=this;if(e.allowUpdateDataBindingValue()){var t={galleryDataSource_Settings:e.getPropertyValue("galleryDataSource_Settings"),galleryDataSource_Source:e.getPropertyValue("galleryDataSource_Source")};e.updateDataBindingValue(t)}},getChildDataSourceDefinition:function(e){var t=this;switch(void 0===e&&(e=t.getPropertyValue("galleryDataSource_Source")),e){case 1:return hi.FacebookPhotosAlbumDataSource;default:return!1}},getDataSourceDefinition:function(e){var t=this;switch(void 0===e&&(e=t.getPropertyValue("galleryDataSource_Source")),e){case GalleryDataSourceEnum.Facebook:return hi.FacebookPhotosDataSource;case GalleryDataSourceEnum.Tumblr:return hi.TumblrPhotosDataSource;case GalleryDataSourceEnum.Flickr:return hi.FlickrPhotosDataSource;case GalleryDataSourceEnum.Instagram:return hi.InstagramPhotosDataSource;default:return hi.GalleryElementView}},getParameterProperties:function(){var e=[];return e.push({propertyName:"galleryDataSource_Settings",propertyKey:"value",parameterName:"pageId"}),e},getPopupItemsCollectionForInitialization:function(){var e,t=this,n=t.getDataSource().collectionItems,i=new $t;return i.connectObservableCollection(n,{mapItem:function(t){return e=t.link,e?f.quickExtend({},t,{link:{url:pa.resolveUrl(e),newTab:e.type!==nt.Pages}}):t}}),i},popupItemsMappingFunction:function(e){var t=[],n=Ha.Flags.IsInMobileContext.isTrue();return n?e:e?(f.eachItem(e,function(e,n){var i=f.cloneObject(n);i.description=n.title,i.title="",t.push(i)}),t):[]}},aggregatedMethods:{aggregations:{}}}})}(),function(){ai.registerDefinition(ri,{MenuCardElement:{className:"menu-card-element",itemName:"ImageBox",defaultProperties:{itemFields:function(){return{index:{type:"index",title:void 0,name:"index",isDefaultField:!0},title:{type:"title",title:"title",name:"title",isDefaultField:!0},description:{type:"description",title:"description",name:"description",isDefaultField:!0},price:{type:"title",title:"price",name:"price",isDefaultField:!0},image:{type:"image",title:"image",name:"image",isDefaultField:!0}}}},features:[oi.HasResponsiveItem,oi.Resizable,oi.Selectable,oi.HasBackground,oi.HasBackgroundImage,oi.HasLayout,oi.Hideable,oi.HasBorder,oi.DataList,oi.TemplatePagesList],methods:{getDataSourceDefinition:function(){return hi.MenuCardElementView}}}})}(),function(){ai.registerDefinition(ri,{SocialIconsElement:{className:"social-icons-element",itemName:"SkinSocialIconItem",defaultProperties:{itemFields:function(){return{index:{type:"index",title:void 0,name:"index",isDefaultField:!0},fontIcon:{type:"fontIcon",title:void 0,name:"fontIcon",isDefaultField:!0},link:{type:"link",title:void 0,name:"link",isDefaultField:!0}}},dataInfo:function(){return{isSynced:!1,collectionName:"Collection1",currentData:{facebook:{id:"facebook",title:"Facebook",iconType:"facebook",index:0,link:{url:"http://www.facebook.com",type:nt.Web}},googlePlus:{id:"googlePlus",title:"Google+",iconType:"googlePlus",index:1,link:{url:"http://plus.google.com",type:nt.Web}},twitter:{id:"twitter",title:"Twitter",iconType:"twitter",index:2,link:{url:"http://www.twitter.com",type:nt.Web}},linkedin:{id:"linkedin",title:"LinkedIn",iconType:"linkedin",index:3,link:{url:"http://www.linkedin.com",type:nt.Web}}},iconsMap:{facebook:{iconDisplayed:!0},googlePlus:{iconDisplayed:!0},twitter:{iconDisplayed:!0},linkedin:{iconDisplayed:!0},pinterest:{iconDisplayed:!1},reddit:{iconDisplayed:!1},instagram:{iconDisplayed:!1},youtube:{iconDisplayed:!1},flickr:{iconDisplayed:!1},soundCloud:{iconDisplayed:!1},tripAdvisor:{iconDisplayed:!1},picasa:{iconDisplayed:!1},behance:{iconDisplayed:!1},etsy:{iconDisplayed:!1},tumblr:{iconDisplayed:!1},dribbble:{iconDisplayed:!1},vimeo:{iconDisplayed:!1},vk:{iconDisplayed:!1},renren:{iconDisplayed:!1},weibo:{iconDisplayed:!1}}}}},features:[oi.HasResponsiveItem,oi.Resizable,oi.Selectable,oi.HasBackground,oi.HasBackgroundImage,oi.HasLayout,oi.Hideable,oi.HasBorder,oi.DataList],methods:{getDataSourceDefinition:function(){return hi.SocialIconsElementView}}}})}(),function(){function e(e,t){e.$element.on("click.socialSharePreview",function(){var t=e.getInstance(),n=t.data.dataItemID;Tr.share(n,window.location)})}ai.registerDefinition(ri,{SocialSharingElement:{className:"social-sharing-element",itemName:"SkinSocialIconItem",defaultProperties:{itemFields:function(){return{index:{type:"index",title:void 0,name:"index",isDefaultField:!0},fontIcon:{type:"fontIcon",title:void 0,name:"fontIcon",isDefaultField:!0},title:{type:"title",title:void 0,name:"title",isDefaultField:!0}}},dataInfo:function(){return{collectionName:"Collection1",currentData:{facebook:{id:"facebook",title:"Share",iconType:"facebook",index:0},googlePlus:{id:"googlePlus",title:"Google+",iconType:"googlePlus",index:1},twitter:{id:"twitter",title:"Share",iconType:"twitter",index:2},linkedin:{id:"linkedin",title:"Share",iconType:"linkedin",index:3}},iconsMap:{facebook:{iconDisplayed:!0},googlePlus:{iconDisplayed:!0},twitter:{iconDisplayed:!0},linkedin:{iconDisplayed:!0}}}}},features:[oi.HasResponsiveItem,oi.Resizable,oi.Selectable,oi.HasBackground,oi.HasBackgroundImage,oi.HasLayout,oi.Hideable,oi.HasBorder,oi.DataList],methods:{getDataSourceDefinition:function(){return hi.SocialSharingElementView}},aggregatedMethods:{aggregations:{switchToPreview:function(){var t=!1;f.eachItem(this.getItemsControllers(),function(n,i){e(i,t)})}}}}})}(),function(){ai.registerDefinition(ri,{SocialLinksElement:{className:"social-links-element",title:"Social Links Icons",itemName:"SkinSocialIconItem",itemTitle:"Social Link Icon",defaultProperties:{itemFields:function(){return{index:{type:"index",title:"Index",name:"index",isDefaultField:!0},fontIcon:{type:"fontIcon",title:"fontIcon",name:"fontIcon",isDefaultField:!0},title:{type:"title",title:"Title",name:"title",isDefaultField:!0}}},dataInfo:function(){return{collectionName:"Collection1",currentData:{facebook:{id:"facebook",title:"Facebook",iconType:"facebook",index:0},googlePlus:{id:"googlePlus",title:"Google+",iconType:"googlePlus",index:1},twitter:{id:"twitter",title:"Twitter",iconType:"twitter",index:2},linkedin:{id:"linkedin",title:"LinkedIn",iconType:"linkedin",index:3},pinterest:{id:"pinterest",title:"Pinterest",iconType:"pinterest",index:4},reddit:{id:"reddit",title:"Reddit",iconType:"reddit",index:5},instagram:{id:"instagram",title:"Instagram",iconType:"instagram",index:6},youtube:{id:"youtube",title:"Youtube",iconType:"youtube",index:7},flickr:{id:"flickr",title:"Flickr",iconType:"flickr",index:8},soundCloud:{id:"soundCloud",title:"Sound Cloud",iconType:"soundCloud",index:9},tripAdvisor:{id:"tripAdvisor",title:"Trip Advisor",iconType:"tripAdvisor",index:9},picasa:{id:"picasa",title:"Picasa",iconType:"picasa",index:10},behance:{id:"behance",title:"Behance",iconType:"behance",index:11},etsy:{id:"etsy",title:"Etsy",iconType:"etsy",index:12},tumblr:{id:"tumblr",title:"Tumblr",iconType:"tumblr",index:13},dribbble:{id:"dribbble",title:"Dribbble",iconType:"dribbble",index:14},vimeo:{id:"vimeo",title:"Vimeo",iconType:"vimeo",index:15},vk:{id:"vk",title:"VK",iconType:"vk",index:16},renren:{id:"renren",title:"Renren",iconType:"renren",index:17},weibo:{id:"weibo",title:"Weibo",iconType:"weibo",index:18}},iconsMap:{facebook:{iconDisplayed:!0},googlePlus:{iconDisplayed:!0},twitter:{iconDisplayed:!0},linkedin:{iconDisplayed:!0},pinterest:{iconDisplayed:!1},reddit:{iconDisplayed:!1},instagram:{iconDisplayed:!1},youtube:{iconDisplayed:!1},flickr:{iconDisplayed:!1},soundCloud:{iconDisplayed:!1},tripAdvisor:{iconDisplayed:!1},picasa:{iconDisplayed:!1},behance:{iconDisplayed:!1},etsy:{iconDisplayed:!1},tumblr:{iconDisplayed:!1},dribbble:{iconDisplayed:!1},vimeo:{iconDisplayed:!1},vk:{iconDisplayed:!1},renren:{iconDisplayed:!1},weibo:{iconDisplayed:!1}}}}},features:[oi.HasResponsiveItem,oi.Resizable,oi.Selectable,oi.HasBackground,oi.HasBackgroundImage,oi.HasLayout,oi.Hideable,oi.HasBorder,oi.DataList],methods:{getDataSourceDefinition:function(){return hi.SocialSharingElementView}}}})}(),function(){function e(e){var t=f.useTemplate(n.Element);return e.data.textInput=t.find(".text-input"),t}function t(){var e=this;e.hasHorizontalAlignFlag.setTrue()}var n={Element:{id:"text-input-field-element-template"}};ai.registerDefinition(ri,{TextInputField:{className:"TextInputField",defaultProperties:{sizeAndPosition:function(){return{width:200,height:30,top:0,left:0}},horizontalAlign:function(){return ot.Left},fontColor:function(){return"#666666"},padding:function(){return f.convertValueToObject(3,["top","left","bottom","right"])},fontSize:function(){return 13}},features:[oi.HasInnerShadow,oi.Resizable,oi.Selectable,oi.HasBackground,oi.HasPadding,oi.HasBackgroundImage,oi.HasContent,oi.Clickable,oi.HasText,oi.Hideable,oi.HasLayout,oi.HasBorder,oi.HasContentOverlay,oi.FormInput,oi.Focusable],
methods:{getTextElements:function(){return this.data.textInput},hasHorizontalAlign:us,clear:function(){this.data.textInput.val("")},getValue:function(){return this.data.textInput.val()},setValue:function(e){this.data.textInput.val(e)},creationFunction:e},aggregatedMethods:{aggregations:{onContentSizeChange:function(){var e=this;Vn.requestReadOperation(function(){var t=e.data.textInput.height();Vn.requestIndpendentWriteOperation(function(){e.data.textInput.css("line-height",t+"px")},e.id+"onContentSizeChange")},e.id+"onContentSizeChange")},onInitializing:t}}}})}(),function(){function e(e){var t=f.useTemplate(n.Element);return e.data.textArea=t.find(".text-area"),t}function t(){var e=this;e.hasHorizontalAlignFlag.setTrue()}var n={Element:{id:"text-area-element-template"}};ai.registerDefinition(ri,{TextArea:{defaultProperties:{sizeAndPosition:function(){return{width:200,height:30,top:0,left:0}},horizontalAlign:function(){return ot.Left},fontColor:function(){return"#666666"},padding:function(){return f.convertValueToObject(3,["top","left","bottom","right"])},fontSize:function(){return 13}},features:[oi.HasInnerShadow,oi.HasPadding,oi.HasContent,oi.Resizable,oi.Selectable,oi.Clickable,oi.HasBackground,oi.HasBackgroundImage,oi.HasText,oi.Hideable,oi.HasLayout,oi.HasBorder,oi.HasContentOverlay,oi.FormInput,oi.Focusable],methods:{getTextElements:function(){return this.data.textArea},hasHorizontalAlign:us,clear:function(){this.data.textArea.val("")},getValue:function(){return this.data.textArea.val()},setValue:function(e){this.data.textArea.val(e)},creationFunction:e},aggregatedMethods:{aggregations:{onInitializing:t}}}})}(),function(){ai.registerDefinition(ri,{templateBox:{className:"template-box",defaultProperties:{backgroundColor:function(){return"white"}},features:[oi.HasPadding,oi.HasContent,oi.Resizable,oi.Selectable,oi.HasBackground,oi.HasBackgroundImage,oi.HasLayout,oi.ItemsContainer,oi.Clickable,oi.Hideable,oi.HasBorder,oi.DataListItem],methods:{creationFunction:function(){return f("<div></div>").addClass("absolute-fill")}}}})}(),function(){function e(e,t){e.getMapController().setOptions({draggable:t,scrollwheel:t})}function t(e,t,n,i){var a=this,r=a.getPropertyValue("markers"),o=nr.getFreemiumBannerLimitation(),s=!!o;Object.keys(r).length<=1||s?Fe.loadBasicMap(e,n,i,a):Fe.useGoogleMapAPI(function(){Fe.loadApi(e,n,i)},t)}function n(){var e=this,n=e.data.mapController=Fe.createMap(this.data.$dataContent,{},window.Settings.GoogleMapsApiKey||null);e.data.ignorePropertiesChange=!1,setTimeout(function(){t.call(e,e.data.$dataContent,window.Settings.GoogleMapsApiKey,{},n)},0),e.mapStyleObject.setValue({mapColor:{stylers:[{hue:""},{saturation:""},{lightness:""}]}}),i(e,!0)}function i(e,t){e.data.$mapOverlay.quickToggle(t)}function a(e){var t=[],n=e.mapStyleObject.getValue();for(var i in n)t.push(n[i]);return t}function r(e,t){var n=e.getMarkersCollection().getItems();for(var i in n)n[i].setOptions({draggable:t})}function o(e,t){if("transparent"===t)e.mapStyleObject.setValue({mapColor:{stylers:[{hue:""},{saturation:""},{lightness:""}]}}),e.data.mapController.setOptions({styles:a(e)});else if(t){"string"==typeof t&&(t=f.Color(t)),t=Ka.evaluateColorBinding(t);var n=f.color.RGB.toHEX(t);t=f.color.RGB.toHSL(t),e.data.mapController&&(e.mapStyleObject.setValue({mapColor:{stylers:[{hue:n},{saturation:parseInt(200*t[1]-100)},{lightness:parseInt(200*t[2]-100)}]}}),e.data.mapController.setOptions({styles:a(e)}))}}var s={ElementContent:{useTemplate:function(){var e=new E;return e.append('<div class="google-map-element no-localization absolute-fill" style="overflow:hidden;">'),e.append('<div class="google-map-container gmap3" style="width:100%; height:100%;"></div>'),e.append("</div>"),f(""+e)}}};ai.registerDefinition(ri,{googleMap:{properties:{zooming:{defaultValue:function(){return 8},isStateProperty:!0,category:ci.Other,onChange:function(e,t){!e.data.mapController||e.data.ignorePropertiesChange||isNaN(t)||e.data.mapController.setZoom(t)}},mapPosition:{isStateProperty:!0,defaultValue:function(){return[41.866236,-87.617094]},onChange:function(e,t){e.data.mapController&&!e.data.ignorePropertiesChange&&(setTimeout(function(){e.data.mapController.setCenter(t)}),e.updateDataBinding())}},mapType:{isStateProperty:!0,defaultValue:function(){return De.Roadmap},onChange:function(e,t){e.data.mapController&&e.data.mapController.setOptions({mapTypeId:t})}},isStreetView:{isStateProperty:!0,defaultValue:ds},streetViewData:{title:"Street View Data",isStateProperty:!0,defaultValue:!1},streetViewVisible:{isStateProperty:!0,defaultValue:us,onChange:function(e,t){e.data.mapController&&e.data.mapController.setOptions({streetViewControl:t})}},positionVisible:{title:"Position Visible",isStateProperty:!0,defaultValue:us,onChange:function(e,t){e.data.mapController&&e.data.mapController.setOptions({panControl:t})}},mapTypeVisible:{isStateProperty:!0,defaultValue:us,onChange:function(e,t){e.data.mapController&&e.data.mapController.setOptions({mapTypeControl:t})}},mapColor:{isStateProperty:!0,isStyleProperty:!0,supportsThemeBinding:!0,getResetValue:f.returnTransparent,defaultValue:f.returnTransparent,onChange:function(e,t){o(e,t)}},mapDraggable:{isStateProperty:!0,defaultValue:ds},markers:{defaultValue:f.returnEmptyObject,onChange:function(e,t){!e.data.ignorePropertiesChange&&e.data.mapController&&(e.data.mapController.setMarkers(f.quickExtend({},t)),e.updateDataBinding())}}},features:[oi.HasResponsiveItem,oi.HasPadding,oi.HasContent,oi.Resizable,oi.Hideable,oi.Clickable,oi.Selectable,oi.HasLayout,oi.Editable,oi.HasBorder,oi.HasDataBinding],methods:{getMapController:function(){return this.data.mapController},refreshMapPosition:function(){var e=this;fa.invalidateProperty(e,"mapPosition")},getMarkersCollection:function(){return this.getMapController().markers},creationFunction:function(e){var t=f.useTemplate(s.ElementContent);return e.data.$dataContent=f(".google-map-container",t),e.data.$mapOverlay=f(".map-overlay",t),t},updateDataBinding:function(){var e=this;if(e.allowUpdateDataBindingValue()===!0){var t={markers:e.getPropertyValue("markers"),mapPosition:e.getPropertyValue("mapPosition")};e.updateDataBindingValue(t)}}},aggregatedMethods:{aggregations:{onCreation:function(){this.mapStyleObject=_.create()},updateInstanceToViewPort:function(){var e=this;e.performWhenVisible(function(){e.refreshMapPosition(),r(e,!1)},e.id+"refreshMapPosition")},removeInstanceFromViewPort:function(){var e=this;e.performWhenVisible(function(){e.refreshMapPosition(),r(e,!0)},e.id+"refreshMapPosition")},switchToPreview:function(){var t=this;e(t,t.getPropertyValue("mapDraggable")),i(t,!1),r(t,!1)},onInitialized:function(){var e=this;e.$element.on("mousewheel",function(e){e.stopPropagation()}),x.bind([e.sizeChangedEvent,e.visibilityChangedEvent],function(){Er.performUpdateOnRenderingFinished(function(){e.getMapController().refreshSize(),e.data.mapController.setCenter(e.getPropertyValue("mapPosition"))},"refreshMap"+e.id)});e.getMapController().setStreetView(e.getPropertyValue("isStreetView"),e.getPropertyValue("streetViewData"))},onInitializing:n,onDataBindingReady:function(e){var t=this;e&&(e.markers&&t.setPropertyValue("markers",e.markers),e.mapPosition&&t.setPropertyValue("mapPosition",e.mapPosition))}}}}})}(),function(){ai.registerDefinition(ri,{userBox:{className:"userBox",features:[oi.HasInnerShadow,oi.HasResponsiveItem,oi.HasPadding,oi.Resizable,oi.Selectable,oi.HasBackground,oi.HasBackgroundImage,oi.HasLayout,oi.ItemsContainer,oi.HasChildrenLayoutAnchor,oi.Clickable,oi.Hideable,oi.HasBorder,oi.Rotatable],methods:{creationFunction:cs,hasHeight:function(){if(this.hasCellWrapper.isTrue()&&this.isRelativePositioned()){var e=f.grep(this.childInstances,function(e){return e.isInstanceVisible()});if(e.length>0)return!1}return!0},hasWidth:us,checkResizeVerticallyAllowed:function(){var e=this.getChildInstances();if(e&&e.length>0){var t=f.grep(e,function(e){return e.isInstanceVisible()});if(t.length>0){var n=t[t.length-1];n.canResizeVertically.isFalse()&&this.canResizeVertically.setValue(!1,"lastChildIsNotResizable")}}}},aggregatedMethods:{aggregations:{updateInstanceToViewPort:function(){0===this.childInstances.length&&this.isDisplayed.setValue(!1,"noInstancesInContainer")},removeInstanceFromViewPort:function(){0===this.childInstances.length&&this.isDisplayed.setValue(!0,"noInstancesInContainer")},onInitialized:function(){var e=this,t=x.createEventListener([Ha.Events.AfterSwitchBetweenDevices],function(){var t=Ha.Flags.IsInMobileContext.getValue(),n=e.getChildInstances(),i=f.grep(n,function(e){return e.isInstanceVisible()});if(i&&0!==i.length){var a=i[n.length-1];t?(e.checkResizeVerticallyAllowed(),a&&a.propertyChangedEvent.bind("order",function(){e.checkResizeVerticallyAllowed()})):(e.canResizeVertically.setValue(!0,"resetLastChildIsNotResizable"),a&&a.propertyChangedEvent.unbind("order"))}});t.activate(),e.instanceRemoved.bind(function(){t.deactivate()})}}}}})}(),function(){function e(e){var t=e.getPropertyValue("videoImageUrl");t?(e.inEmptyStateFlag.setValue(!1),de.disableOperationsRecording("videoImageChange"),"string"==typeof t&&(t={imagePath:t,storageServer:0}),e.imageValueObject.setValue(se.getImageInfoForSaving(t)),de.enableOperationsRecording("videoImageChange")):e.data.helper.checkVideoExists(e.getPropertyValue("videoId"),function(t){if(t.status===!0&&t.imageUrl){de.disableOperationsRecording("videoImageChange"),"string"==typeof t.imageUrl&&(t.imageUrl={imagePath:t.imageUrl,storageServer:0}),e.imageValueObject.setValue(se.getImageInfoForSaving(t.imageUrl)),de.beginAtomicBatch(),fa.UpdateBatch.start();var n=t.videoImageUrl,i=t.videoUrl;e.setBindingValueToProperty(i,"videoUrl"),e.setBindingValueToProperty(n,"videoImageUrl"),fa.UpdateBatch.finish(),de.endAtomicBatch(),de.enableOperationsRecording("videoImageChange")}else e.inEmptyStateFlag.setValue(!0)})}function t(e){var t;return e.getPropertyValue("templateOpener")?!0:(t=e.getMainSkinInstance(),t&&t.getItemMainParent().getPropertyValue("templateOpener"))}function n(){var e=this;o(e),e.inEmptyStateFlag.setValue(!1),e.data.$videoIconHolder=i(),e.data.$videoIcon=f(".icon-holder",e.data.$videoIconHolder),e.data.$videoIconHolder.click(function(n){t(e)||(n.preventDefault(),n.stopPropagation(),e.play(),e.data.$videoIconHolder.toggleDisplayed(!1))}),e.data.$videoIconHolder.prependTo(e.$elementContentContainer),e.data.videoBindings=x.createBindingsCollection(),e.instanceRemoving.one(function(){C(e)}),Z.IsMobileClient||a(e),e.previewEventsListener.add(x.createEventListener([e.visibilityChangedEvent,Ha.Flags.IsInMobileContext.valueChangedEvent],function(){Er.performUpdateOnRenderingFinished(function(){e.isInstanceVisible()?(e.inEmptyStateFlag.isFalse()&&(e.isAutoPlay()?e.play():!Z.IsMobileClient||t(e)?a(e):r(e)),e.data.batchOperationsSet.executeOperations(),e.data.batchOperationsSet.deactivate("videoPreview")):(e.data.batchOperationsSet.activate("videoPreview"),a(e))},"previewEventsListener"+e.id)}))}function i(){var e=new E;return e.append('<div class="video-icon-holder content-centered absolute-fill vertically-center-children">'),e.append("<span>"),e.append('<span class="icon-holder block">'),e.append('<span class="icon image-sprite-video-play-button inline-block"></span>'),e.append("</span>"),e.append("</span>"),e.append("</div>"),f.useSimpleTemplate(""+e)}function a(e){if(!e.isForTemplateUse()){var t=c(e);t.unloadPlayer()}e.data.videoPlayerHolder.toggleDisplayed(!1,"showPreviewInfo"),e.data.$videoIconHolder.toggleDisplayed(!0),e.showImageLayer.setValue(!0,"showPreviewInfo")}function r(e){e.showImageLayer.setValue(!1,"showPreviewInfo"),e.data.$videoIconHolder.toggleDisplayed(!1),e.data.videoPlayerHolder.toggleDisplayed(!0,"showPreviewInfo");var t=c(e);t.toggleInitilized(!0),t.isReady||t.reload()}function o(e){if(!e.isForTemplateUse()){d(e);var t=l(e).createPlayer(p(e));u(e,t)}}function s(e){var t=e.getPropertyValue("videoType");switch(t){case Ze.Youtube:e.data.helper=Te;break;case Ze.Vimeo:e.data.helper=ke}}function l(e){return e.data.helper}function c(e){return e.data.videoPlayer}function u(e,t){e.data.videoPlayer=t}function d(e){e.data.videoPlayer&&(e.data.videoPlayer.unloadPlayer(),C(e),delete e.data.videoPlayer)}function g(e){var t=e.getPropertyValue("videoId");if(t)for(var n=["?","&","#","+",",","%"],i=0,a=n.length;a>i;++i)-1!=t.indexOf(n[i])&&(t=t.substring(0,t.indexOf(n[i])));return t}function p(e){var t=e.id,n=e.getPropertyValue("useLoop"),i=g(e);return{$container:e.data.videoPlayerHolder,createIframe:h,videoID:i,instanceId:t,controls:e.getPropertyValue("useController")?1:0,loop:n?1:0,playlist:n?i:"",wmode:"transparent",isHtml5:!1,$iframe:f.useTemplate(S.VideoIframe)}}function h(){return f.useTemplate(S.VideoIframe)}function m(e){var t=f.useTemplate(S.ElementContent);return e.data.videoPlayerHolder=t.addDisplayingStates(),t}function v(e){e.data.batchOperationsSet.requestOperation(function(){r(e),I(e,e.getPropertyValue("useLoop")),c(e).play()},"changePlayerState")}function y(e){a(e)}function b(e){e.data.batchOperationsSet.requestOperation(function(){c(e).pause()},"changePlayerState")}function C(e){e.data.videoBindings&&e.data.videoBindings.unbindAll();var t=c(e);t&&t.whenReady(function(){c(e).$iframe.remove()})}function I(e,t){e.data.batchOperationsSet.requestOperation(function(){c(e).setLoop(t)},"setLoop")}f.quickExtend(Z.Events,{VideoStateChanged:x.create()});var S={ElementContent:{group:"video-player-templates",name:"video-player-template",isSimple:!0},VideoIframe:{group:"video-player-templates",name:"video-iframe-element-template",isSimple:!0}},P={creationFunction:m,play:function(){try{v(this)}catch(e){v(this),ee.warn("video play error - ")}},stop:function(){try{y(this)}catch(e){y(this),ee.warn("video stop error - ")}},pause:function(){try{b(this)}catch(e){b(this),ee.warn("video pause error - ")}},hasBinding:function(){return ui.videoId.isBound(this)},isAutoPlay:function(){return!Z.IsMobileView&&this.getPropertyValue("autoPlay")&&!this.getPropertyValue("templateOpener")&&Ha.Flags.IsInMobileContext.isFalse()},createBindingFieldsToProperties:function($super){var e=this,t=$super.call(e);return e.isBound(mi.video.getContentType())&&(t[ui.videoType.name]=Po.create(e,{propertyName:ui.videoType.name}),t[ui.videoId.name]=Po.create(e,{propertyName:ui.videoId.name}),t[ui.videoUrl.name]=Po.create(e,{propertyName:ui.videoUrl.name}),t[ui.videoImageUrl.name]=Po.create(e,{propertyName:ui.videoImageUrl.name})),t},getPopupItems:function(){var e,t=this,n=t.getPropertyValue("urlAddress");return n&&(e={url:pa.resolveUrl(n),newTab:n.type!==nt.Pages}),[{id:t.id,index:1,link:e,video:{videoType:t.getPropertyValue("videoType"),videoImageUrl:t.getPropertyValue("videoImageUrl"),videoId:t.getPropertyValue("videoId")}}]},getImageLoadingOptions:function(){return{forceRatioLocking:!1}}};ai.registerDefinition(ri,{VideoPlayer:{className:"video-player",defaultProperties:{templateOpener:ds,backgroundColor:function(){return"Transparent"},opacity:function(){return 1},sizeAndPosition:function(){return{width:150,height:110,top:0,left:0}}},properties:{videoType:{isNotForCustomProperty:!0,category:ci.Other,defaultValue:function(){return Ze.Youtube},isBound:function(e){return e.isBound&&e.isBound(mi.video.getContentType())}},videoId:{defaultValue:gs,isNotForCustomProperty:!0,supportsBinding:!0,isBound:function(e){return e.isBound&&e.isBound(mi.video.getContentType())}},videoUrl:{defaultValue:gs,isNotForCustomProperty:!0,supportsBinding:!0,isBound:function(e){return e.isBound&&e.isBound(mi.video.getContentType())}},videoImageUrl:{defaultValue:gs,isNotForCustomProperty:!0,supportsBinding:!0,isBound:function(e){return e.isBound&&e.isBound(mi.video.getContentType())}},autoPlay:{category:ci.Other,defaultValue:ds},useController:{isStateProperty:!0,category:ci.Other,defaultValue:us},useLoop:{isStateProperty:!0,category:ci.Other,defaultValue:ds}},features:[oi.HasResponsiveItem,oi.HasContent,oi.Resizable,oi.Selectable,oi.HasBackgroundImage,oi.HasLayout,oi.Hideable,oi.HasBorder,oi.HasContentOverlay,oi.HasEmptyState,oi.HasPopup],methods:P,aggregatedMethods:{aggregations:{onCreation:function(){var e=this;e.imageValueObject=Po.create(e,{propertyName:ui.imageUrl.name}),e.imageLayoutObject=Po.create(e,{propertyName:ui.imageLayout.name}),e.imageLayoutObject.setValue(cn.Cover),e.data.batchOperationsSet=An.create(function(e){e()})},onInitializing:function(){var e=this;s(e)},onInitialized:n,onBoundValueReady:function(e){var t=this;if(t.isBound(mi.video.getContentType())){var n=void 0===e[mi.video.getContentType()]?void 0:e[mi.video.getContentType()];if(n){var i=n.videoType,a=n.videoId,r=n.videoUrl,o=n.videoImageUrl;t.setBindingValuesToProperties({videoType:i,videoId:a,videoUrl:r,videoImageUrl:o})}}},onPropertiesChanged:function(t){var n=this;n.InstancePropertiesInitialized.isTrue()&&(this.isForTemplateUse()||(f.containsOneOfKeys(t,"videoType")&&(l(n)&&c(n).unloadPlayer(),n.data.videoPlayerHolder.empty(),s(n)),f.containsOneOfKeys(t,"useController","videoType","videoId","useLoop")&&(o(n),c(n).setOptions(p(n),!1)))),f.containsOneOfKeys(t,"videoType")&&s(n),f.containsOneOfKeys(t,"videoImageUrl")&&e(n)}}}}})}(),function(){function e(e){var t=e.getImageBox();if(t){var n=e.getPropertyValue("alt");n?t.setAlt(n):t.setAlt(void 0)}}ai.registerPropertiesCategories({"Image Loading":{title:void 0,iconClass:"sprite-icon sprite-property-category-text"}});var t={getImageSizeInLayout:function(){return this.getImageBox().getImageSizeInLayout()},hasBinding:function(){return ui.imageUrl.isBound(this)},hideImageLoadingOverlay:function(){var e=this.data.imageLoadingOverlayController;e&&e.hide()},showImageLoadingOverlay:function(){var e=this;Er.performUpdateOnRenderingFinished(function(){var t=e.getPropertyValue("imageLoadingSettings");if(t.showOverlay){var n=e.data.imageLoadingOverlayController;if(!n){var i=e.addBackgroundLayer(oa.BackgroundImageOverlay,function(){var e=new E;return e.append('<div class="image-loading-overlay stretched-to-fill element-border-target">'),e.conditionalAppend(!1,'<div class="explorer-background"></div>'),e.append('<div class="loading-image stretched-to-fill"></div>'),e.append("</div>"),f(""+e)}),a=i.find(".loading-image").makeImageBoxNew({layout:cn.Original,autoLoad:!0}),r=x.createEventListener(e.sizeChangedEvent,function(){a.setViewPort(e.getSize())}),o=i;e.setBorderTarget(i);var s=Tt.createDisplayController(i);s.setValue(!1),n={show:function(){r.activateAndExecute();var t=e.getPropertyValue("imageLoadingSettings");a.setImage(se.resolveImageUrl(t.overlayImage));var n=Ka.evaluateColorBinding(t.overlayBackground);o.clearBackground(),In.isGradient(n)?o.applyGradientColor(n):o.css("rgbaBackground",n),s.setValue(!0)},hide:function(){r.deactivate(),s.setValue(!1)}},e.data.imageLoadingOverlayController=n}n.show()}},e.id+"showOverlay")},createBindingFieldsToProperties:function($super){var e=this,t=$super.call(e),n=mi.image.getContentType();e.isBound(n)&&(t[ui.imageUrl.name]=Po.create(e,{propertyName:ui.imageUrl.name}),t[ui.imageLayout.name]=Po.create(e,{propertyName:ui.imageLayout.name}),t[ui.imagePosition.name]=Po.create(e,{propertyName:ui.imagePosition.name}));var i=mi.title.getContentType(),a=mi.description.getContentType(),r=mi.alt.getContentType();return(e.isBound(i)||e.isBound(a)||e.isBound(r))&&(t[ui.alt.name]=Po.create(e,{propertyName:ui.alt.name})),t},getPopupItems:function(){var e,t=this,n=t.getPropertyValue("urlAddress");return n&&(e={url:pa.resolveUrl(n),newTab:n.type!==nt.Pages}),[{id:t.id,index:1,link:e,image:{imageUrl:t.getPropertyValue("imageUrl")}}]}};ai.registerDefinition(ri,{image:{className:"image-element",defaultProperties:{templateOpener:ds,backgroundColor:function(){return"transparent"},borderColor:function(){return f.convertValueToObject("black",["top","left","bottom","right"])},borderWidth:function(){return f.convertValueToObject(0,["top","left","bottom","right"])},opacity:function(){return 0},sizeAndPosition:function(){return{width:200,height:200,top:0,left:0}},imageUrl:cs},features:[oi.HasInnerShadow,oi.HasResponsiveItem,oi.Resizable,oi.Selectable,oi.Hideable,oi.HasBackground,oi.HasLayout,oi.HasPopup,oi.HasImage,oi.HasBorder,oi.Rotatable,oi.HasBackgroundOverlay,oi.HasDataBinding],properties:{imageLoadingOverlay:{isStateProperty:!1,isStyleProperty:!0,defaultValue:function(){return{background:"rgba(255,255,255,0.7)",imageInfo:{image:wo.Images.CircleBall}}}},imageLoadingSettings:{isStateProperty:!1,isStyleProperty:!0,supportsThemeBinding:!0,defaultValue:function(){return{hideImage:!1,showOverlay:!1,showingAnimation:void 0,overlayBackground:"rgba(255,255,255,0.7)",overlayImage:wo.Images.CircleBall}}},alt:{defaultValue:gs,supportsBinding:!0,isBound:function(e){return e.isBound(mi.title.getContentType())||e.isBound(mi.description.getContentType())||e.isBound(mi.alt.getContentType())},onChange:function(t){e(t)}}},methods:t,aggregatedMethods:{aggregations:{adjustInstanceToViewPort:function(){var e=this.getSize();if(e){var t=e.width<340?e.width:340;ca.setInstancesSize(this,{width:t,height:t/e.width*e.height})}},onBoundValueReady:function(e){var t,n=this,i=mi.image.getContentType(),a=mi.icon.getContentType(),r=mi.title.getContentType(),o=mi.description.getContentType(),s=mi.alt.getContentType(),l={};n.isBound(i)?(t=e[i]?e[i]:{},f.quickExtend(l,{imageUrl:void 0===e[i]?xr.getPresetAsset(yt.DefaultImage).imageData:t.imageUrl,imageLayout:t.imageLayout,imagePosition:t.imagePosition})):n.isBound(a)&&(t=e[a]?e[a]:{},f.quickExtend(l,{imageUrl:void 0===e[a]?xr.getDefaultIcon():t.imageUrl,imageLayout:t.imageLayout,imagePosition:t.imagePosition})),n.isBound(s)&&f.quickExtend(l,{alt:void 0===e[s]?null:e[s]}),n.isBound(s)&&e[s]||(n.isBound(r)?f.quickExtend(l,{alt:void 0===e[r]?null:e[r]}):n.isBound(o)&&f.quickExtend(l,{alt:void 0===e[o]?null:e[o]})),f.eachItem(["imageLayout","imagePosition"],function(e,t){l[t]||n.setBindingValueToProperty(void 0,t,!0)}),n.setBindingValuesToProperties(l)},onImageBoxCreated:function(t){var n=this;t.trackStates(un.LoadingImage,{setCallback:function(){n.showImageLoadingOverlay()},unsetCallback:function(){n.hideImageLoadingOverlay()}}),e(this);var i=window.navigator.platform.toLowerCase(),a=window.navigator.userAgent.toLowerCase();if(0===i.indexOf("mac")&&-1!=a.indexOf("safari")&&-1===a.indexOf("chrome")){var r=n.$element[0],o=r.style.visibility;r.style.visibility="hidden",Er.performUpdateOnRenderingFinished(function(){r.style.visibility=o})}},onInitialized:function(){var e=this;e.sizeChangedEvent.bindAndExecute(function(){Vn.requestIndpendentWriteOperation(function(){e.setImageBoxViewport(e.getSize())},e.id+"setImageBoxViewport")})},onDataBindingReady:function(e){var t=this;e&&t.setBindingValueToProperty(""+e,ui.imageUrl.name)}}}}})}(),function(){function e(e){if(this.getNavigatableInstances().length>1){var t=this.data.currentTab;this.navigate(1,!1),sa.removeInstances(t),e()}}var t=["backgroundColor","backgroundOverlay","imageUrl","imageLayout","imagePosition","padding","roundness","borderWidth","borderStyle","borderColor","shadow","innerShadow","borderColor","glow","innerGlow"],n=f.makeDictionaryFromKeys(t,!0);t.push("childrenAnchor");var i=f.makeDictionaryFromKeys(["childrenAnchor"],!0);f.quickExtend(n,{lineColor:!0}),ai.registerDefinition(ri,{TabsPanel:{className:"switch-panel-element",features:[oi.HasInnerShadow,oi.HasResponsiveItem,oi.HasPadding,oi.HasContent,oi.Resizable,oi.Selectable,oi.HasLayout,oi.ItemsContainer,oi.HasChildrenLayoutAnchor,oi.Clickable,oi.Hideable,oi.HasBorder,oi.Navigatable],calculatedProperties:t,methods:{navigateTo:function(e,t,n,i){this.showItem(e,t,n,i)},getAutoNavigationDuration:function(){return this.getPropertyValue("autoNavigationDuration")},addItem:function(e){e=f.extend({withCallOut:!1,initialProperties:{all:{}}},e),Z.Events.ElementsAdding.fireNew(),e.initialProperties.all.name=e.tabName;var t=this.getCurrentItem();t&&(e.initialProperties.all=f.deepCloneObject(f.extend({},e.initialProperties.all,{backgroundColor:t.getPropertyValue("backgroundColor")})),f.eachEntry(i,function(n){e.initialProperties.all[n]=f.deepCloneObject(t.getPropertyValue(n))}));var n=ts.addTemplateInstance({elementForCreation:{structures:[{type:ri.Tab.name,elementProperties:{order:aa.getMaxOrder(),backgroundColor:"#333",borderColor:"#000"}}]}},this.$element,e);return n.instances[0]},showItem:function(e,t,n,i){function a(){t&&f.eachItem(d.getDescendingInstances(!1),function(e,t){t.data.isTrackOverInTransition===!0&&ba.trackMouseOver(t)}),la.requestUpdatePosition(s)}function r(e){e.isDisplayed.setValue(!1,"hidden")}function o(){s.data.duringAnimatedTransition=!1,s.data.animatedTabsOrder=void 0,n(),de.disableOperationsRecording("onTransitionFinish");var e=s.data.pendingTransition;e&&(s.data.pendingTransition=void 0,s.showItem(e.tabSelector,e.performAnimation,e.navigateCallback,e.animationOptions)),Z.Events.NavigationFinished.fireNew(),de.enableOperationsRecording("onTransitionFinish")}var s=this;if(ba.isElementVisible(this)){var l=s.getPropertyValue("navigationDuringTransitionBehaviour");if(s.data.duringAnimatedTransition)switch(l){case To.StopTransition:var c=s.data.animatedTabsOrder;if(c)for(var u=0;u<c.length;u++)c[u].stopVisibilityAnimations();break;case To.IgnoreNavigation:return;case To.EnqueueNavigation:s.data.pendingTransition={tabSelector:e,performAnimation:t,navigateCallback:n,animationOptions:i}}de.disableOperationsRecording("navigateInTabsElement"),void 0===t&&(t=!0),void 0===n&&(n=cs),ba.isElementVisible(this)||(t=!1);var d=void 0;if(isFinite(e)){var g=this.getChildInstances();d=g[Math.max(0,Math.min(g.length-1,e))]}else"string"==typeof e?d=sa.getInstanceByID(e):e&&(d=sa.getInstanceByID(e.id));var p;if(this.data.currentTab&&(p=sa.getInstanceByID(this.data.currentTab.id)),d&&p!==d){if(s.stopAutoNavigation(),p&&d.$element.insertAfter(p.$element),this.data.currentTab=d,s.currentItemChangedEvent.fireNew({prevItem:p,currentItem:d}),Z.Events.NavigableTabChanged.fireNew(s),t){s.data.duringAnimatedTransition=!0,f.eachItem(d.getDescendingInstances(!1),function(e,t){ba.isTrackOver(t)&&(t.data.isTrackOverInTransition=!0,ba.stopMouseOverTracking(t))});var h=i&&i.transitionOrder?i.transitionOrder:this.getPropertyValue("transitionOrder"),m=i&&i.entranceAnimation?i.entranceAnimation:this.getPropertyValue("entranceAnimation"),v=i&&i.entranceAnimationSpeed?i.entranceAnimationSpeed:this.getPropertyValue("entranceAnimationSpeed"),y=i&&i.entranceAnimationDirection?i.entranceAnimationDirection:this.getPropertyValue("entranceAnimationDirection"),b=void 0,C=void 0,I=void 0;if(p&&(b=i&&i.exitAnimation?i.exitAnimation:this.getPropertyValue("exitAnimation"),C=i&&i.exitAnimationSpeed?i.exitAnimationSpeed:this.getPropertyValue("exitAnimationSpeed"),I=i&&i.exitAnimationDirection?i.exitAnimationDirection:this.getPropertyValue("exitAnimationDirection")),h!==vn.Simultaneously&&p)h===vn.EnterBeforeExit?(s.data.animatedTabsOrder=[d,p],d.data.disableShowingHiding=!0,d.isDisplayed.setValue(!0,"hidden"),d.data.disableShowingHiding=!1,d.showElement({animation:m,animationOptions:{duration:v,direction:y},complete:function(){a(),p.hideElement({animation:b,animationOptions:{duration:C,direction:I},complete:function(){r(p),o(),s.startAutoNavigation()}})}})):(s.data.animatedTabsOrder=[p,d],p.hideElement({animation:b,animationOptions:{duration:C,direction:I},complete:function(){r(p),d.data.disableShowingHiding=!0,d.isDisplayed.setValue(!0,"hidden"),d.data.disableShowingHiding=!1,d.showElement({animation:m,animationOptions:{duration:v,direction:y},complete:function(){a(),o(),s.startAutoNavigation()}})}}));else{s.data.animatedTabsOrder=[d],p&&s.data.animatedTabsOrder.push(p);var S;d.data.disableShowingHiding=!0,d.isDisplayed.setValue(!0,"hidden"),d.data.disableShowingHiding=!1;var P=d.showElement({animation:m,animationOptions:{duration:v,direction:y},complete:a});p&&(S=p.hideElement({animation:b,animationOptions:{duration:C,direction:I},complete:function(){r(p)}})),f.when(P,S).done(function(){o(),s.startAutoNavigation()})}}else void 0!==p&&(p.hideElement(),r(p)),d.isDisplayed.setValue(!0,"hidden"),a(),n(),s.startAutoNavigation();s.currentItemFinishChanging.fireNew({prevItem:p,currentItem:d}),s.parentInstance&&s.parentInstance.onTabChange&&s.parentInstance.onTabChange.fireNew({prevItem:p,currentItem:d}),de.enableOperationsRecording("navigateInTabsElement")}else de.enableOperationsRecording("navigateInTabsElement"),n(),la.requestUpdatePosition(s)}},removeCurrentItem:e,removeItem:function(e,t){t||(t=cs),e===this.data.currentTab?this.removeCurrentItem(t):(sa.removeInstances(e),t())},creationFunction:cs,getCurrentItem:function(){return this.data.currentTab?this.data.currentTab:this.childInstances[0]},getCalculatedPropertyValue:function($super,e){if(n[e]||i[e]){var t=this.getCurrentItem();return t?t.getPropertyValue(e):void 0}return $super.call(this,e)},setCalculatedPropertyValue:function($super,e,t,a,r){var o=this;if(i[e])f.eachItem(o.childInstances,function(n,i){i.setPropertyValue(e,t,a,n===o.childInstances.length-1?r:void 0)});else if(n[e]){var s=this.getCurrentItem();s&&s.setPropertyValue(e,t,a,r)}else $super.call(o,e,t,a,r)}},aggregatedMethods:{aggregations:{onChildElementAdded:function(e){var t=this,n=f.getIndexOfElementInArray(e,t.childInstances,function(e,t){return e.id===t.id}),i={id:e.id,title:e.getPropertyValue("name"),type:di.NavigableInstance.name,index:n+1};e.bindPropertyChangeId=e.bindPropertyChange("name",function(){t.getItemsInformation().updateItemFields(e.id,{title:e.getPropertyValue("name")})},"tabNameChanged"),void 0===t.data.currentTab?(t.data.currentTab=e,t.currentItemChangedEvent.fireNew({prevItem:void 0,currentItem:e})):e.isDisplayed.setValue(!1,"hidden"),t.getItemsInformation().put(i)},onChildElementRemoved:function(e){this.getItemsInformation().remove(e.id);var t=f.getValues(f.duplicateDitionary(this.getItemsInformation().getItems())).orderBy(function(e){return e.index});f.eachItem(t,function(e,t){t.index=e+1}),this.getItemsInformation().put(t),this.data.currentTab===e&&this.navigate(-1,!1),e.unbindPropertyChange("name",e.bindPropertyChangeId)},switchToPreview:function(e){var t=this;e&&t.showItem(0,!1)},onRemove:function(){this.getItemsInformation().clear()},onInitializing:function(){var e=this;this.sizeChangedEvent.bind(function(){la.refreshElementsLayout(e.childInstances)})}}}},Tab:{className:"tab-element",features:[oi.HasInnerShadow,oi.HasPadding,oi.HasContent,oi.ItemsContainer,oi.HasChildrenLayoutAnchor,oi.HasBorder,oi.HasBackground,oi.HasBackgroundImage],methods:{isFillHorizontal:us,isFillVertical:us,creationFunction:function(){return f("<div></div>").addClass("absolute-fill")},hasWidth:ds,hasHeight:ds,getAutoLayoutProperties:function(){return{left:!0,top:!0,width:!0,height:!0}}},aggregatedMethods:{aggregations:{onInitializing:function(){this.canMove.setValue(!1)}}}}})}(),function(){ai.registerDefinition(ri,{Button:{className:"button-element",features:[oi.HasInnerShadow,oi.HasPadding,oi.HasContent,oi.Resizable,oi.Selectable,oi.HasBackground,oi.Clickable,oi.HasBackgroundImage,oi.HasLayout,oi.Hideable,oi.HasBorder,oi.HasResponsiveItem,oi.ItemsContainer,oi.HasChildrenLayoutAnchor],properties:{buttonType:{defaultValue:function(){return Je.ActionButton}}},methods:{creationFunction:function(e){return e.data.$content=f("<div></div>").addClass("absolute-fill"),e.data.$content}}}})}(),function(){ai.registerDefinition(ri,{Flash:{features:[oi.HasResponsiveItem,oi.Resizable,oi.Selectable,oi.HasBackground,oi.HasBackgroundImage,oi.HasLayout,oi.Clickable,oi.Hideable,oi.HasBorder,oi.Rotatable,oi.HasPadding,oi.HasContent,oi.HasContentOverlay,oi.HasEmptyState],properties:{flashAsset:{defaultValue:f.returnEmptyString,onChange:function(e,t){var n={};n.wmode="transparent",Ee.embedSWF(se.resolveAssetUrl(t),e.data.flashID,"100%","100%","9.0.0",!1,!1,n,!1)}}},methods:{shouldBeHiddenInMode:us,creationFunction:function(e){return e.data.flashID="f"+f.uniqueID(),e.data.$flash=f("<div id='{0}'></div>".format(e.data.flashID)).addClass("absolute-fill").addClass("no-wrap"),
e.data.$flash}}}})}(),function(){function e(e){if(e.data.appIframe){var t=e.getPropertyValue("appInfo");if(t){var n;if(t.remoteUrl)n=t.remoteUrl,n.indexOf("://")<0&&(n="http://"+n);else{var i=se.getAssetsFolder(t.ownerID,ae.AzureBlob,oe.App);n=null!=t.ownerID?i+t.fileName:i+t.appFolder+t.fileName}e.data.appIframe.attr("src",n)}else e.data.appIframe.attr("src","")}}ai.registerDefinition(ri,{App:{features:[oi.Resizable,oi.Selectable,oi.HasBackground,oi.HasBackgroundImage,oi.HasLayout,oi.Clickable,oi.Hideable,oi.HasBorder,oi.Rotatable,oi.HasPadding,oi.HasContent,oi.HasContentOverlay,oi.HasResponsiveItem],defaultProperties:{},properties:{autoScrollbars:{defaultValue:ds,onChange:function(t,n){var i=f('<iframe class="app-iframe {1}" frameborder="0" marginheight="0" marginwidth="0" width="100%" height="100%" scrolling="{0}" allow="autoplay; fullscreen"></iframe>'.format(n?"yes":"no",n?"auto-scrollbars":""));t.data.appIframe=i,t.data.$iframeContainer.empty().append(i),e(t)}},appInfo:{defaultValue:gs,isStateProperty:!1,onChange:function(t){e(t)}}},methods:{creationFunction:function(e){var t=f("<div class='absolute-fill'></div>");return e.data.$iframeContainer=t,t}},aggregatedMethods:{aggregations:{}}}})}(),function(){ai.registerDefinition(ri,{DataListElement:{className:"data-list-element",title:"Data List",itemName:"DataListItemTemplate",itemTitle:"Data List Item",defaultProperties:{itemFields:function(){return{index:{type:"index",title:"Index",name:"index",isDefaultField:!0}}}},features:[oi.HasResponsiveItem,oi.Resizable,oi.Selectable,oi.HasBackground,oi.HasBackgroundImage,oi.HasLayout,oi.Hideable,oi.HasBorder,oi.DataList,oi.TemplatePagesList],methods:{getDataSourceDefinition:function(){return hi.DataListElementView},calculateItemSizeOnMobile:function(e){var t=this.getPcTemplateSize();return{height:t?t.height*t.width/e.width:e.height,width:e.width}}}}})}(),function(){ai.registerDefinition(ri,{paypalButton:{className:"paypalButton",title:"PayPal Button",features:[oi.HasInnerShadow,oi.HasResponsiveItem,oi.HasPadding,oi.HasContent,oi.Resizable,oi.Selectable,oi.HasBackground,oi.Clickable,oi.HasBackgroundImage,oi.HasLayout,oi.Hideable,oi.HasBorder,oi.ItemsContainer,oi.PaypalFeature]}})}(),function(){ai.registerDefinition(ri,{checkOutButton:{className:"checkOutButton",defaultProperties:{backgroundColor:function(){return"Transparent"},opacity:function(){return 1},sizeAndPosition:function(){return{width:90,height:30,top:0,left:0}}},features:[oi.HasInnerShadow,oi.HasPadding,oi.HasContent,oi.Resizable,oi.Selectable,oi.HasBackground,oi.Clickable,oi.HasBackgroundImage,oi.HasResponsiveItem,oi.HasLayout,oi.Hideable,oi.HasBorder,oi.ItemsContainer,oi.HasChildrenLayoutAnchor,oi.CheckOutFeature]}})}(),function(){ai.registerDefinition(ri,{FormElement:{className:"form-element",itemName:"TextInputField",features:[oi.HasFormData,oi.HasFormDataList],properties:{targetEmail:{defaultValue:gs},submitAddress:{},submitError:{defaultValue:cs},submitText:{defaultValue:cs},joinMyMailingList:{defaultValue:ds},hasRecaptcha:{defaultValue:ds()}},calculatedProperties:["isJoinMyMailingListEnabled"],methods:{getJMMLButton:function(){return f.grep(this.childInstances,function(e){return e.elementType.name===ri.SkinCheckBoxButtonElement.name})[0]},getCalculatedPropertyValue:function($super,e){return"isJoinMyMailingListEnabled"===e?this.getPropertyValue("joinMyMailingList"):$super.call(this,e)},getJoinMyMailingListValue:function(){return this.getPropertyValue("isJoinMyMailingListEnabled")?this.getJMMLButton().getValue():!1},getSubmitSuccessTarget:function(){var e=this;return e?e.getPropertyValue("submitAddress"):null},getSubmitSuccessText:function(){var e=this;return e?e.getPropertyValue("submitText"):null},getSubmitErrorText:function(){var e=this;return e?e.getPropertyValue("submitError"):null},renderCaptcha:function(){var e=this,t=f.grep(this.childInstances,function(e){return e.elementType.name!==ri.skinInputElement.name&&e.elementType.name!==ri.SkinCheckBoxButtonElement.name});if(t.length>0){var n=t[0];if(e._hasCaptcha=!0,window.onCaptchaSubmit=function(){n._captchaElement.removeClass("captcha-error")},window.grecaptcha){var i=window.grecaptcha.render("captcha-button-"+e.id,{sitekey:Settings.RecaptchaSiteKey,callback:window.onCaptchaSubmit});n._widgetId=i}e.setPropertyValue("hasRecaptcha",!0)}},tryRenderCaptcha:function(){var e=this,t=f.grep(this.childInstances,function(e){return e.elementType.name!==ri.skinInputElement.name&&e.elementType.name!==ri.SkinCheckBoxButtonElement.name});if(t.length>0){var n=t[0];n._captchaElement=f('<div class="captcha-element" id="captcha-button-'+e.id+'"></div>'),n.$container.parent().prepend(n._captchaElement)}e.isForTemplateUse()||(window.hasCaptcha||(window.captchaInstanceQueue=[],window.onCaptchaLoadCallback=function(){f.eachItem(window.captchaInstanceQueue,function(e,t){t.renderCaptcha()})},f('<script src="https://www.google.com/recaptcha/api.js?onload=onCaptchaLoadCallback" async defer></script>').appendTo("body"),window.hasCaptcha=!0),window.grecaptcha?e.renderCaptcha():window.captchaInstanceQueue.push(e))}},aggregatedMethods:{aggregations:{onInitialized:function(){var e=this;if(e.getPropertyValue("hasRecaptcha"))e.tryRenderCaptcha();else if(!e._hasCaptcha){var t=e.$element;t.focusin(function(){e._hasCaptcha||e.tryRenderCaptcha()})}var n=e.contentSizeChangedEvent.bind(function(){de.beginAtomicBatch(!1,"Changing the content size of the form"),Er.performUpdateOnRenderingFinished(function(){de.disableOperationsRecording("push form"),pr.requestPushing(e),de.enableOperationsRecording("push form")}),de.endAtomicBatch()});e.instanceRemoving.one(function(){n.unbind()})}}}}})}(),function(){ai.registerDefinition(ri,{PasswordFormElement:{className:"password-form-element",itemName:"TextInputField",features:[oi.HasFormData,oi.HasFormDataList],properties:{},methods:{}}})}(),function(){ai.registerDefinition(ri,{ButtonsGroup:{className:"buttons-group",itemName:"MenuButton",features:[oi.Resizable,oi.Selectable,oi.HasBackground,oi.HasBackgroundImage,oi.HasLayout,oi.Hideable,oi.HasResponsiveItem,oi.HasBorder,oi.DataList],defaultProperties:{fitToContent:ds,sizeAndPosition:function(){return{width:400,height:400,top:0,left:0}},itemFields:function(){return{index:{type:"index",title:void 0,name:"index",isDefaultField:!0},title:{type:"title",title:void 0,name:"title",isDefaultField:!0},icon:{type:"icon",title:void 0,name:"icon",isDefaultField:!0}}},dataLayoutOptions:function(){return{lineSpacing:15,columnSpacing:15,colsSpacing:15,rowsSpacing:15,rotation:0,cols:3,R:100}}},properties:{buttonsType:{name:"buttonsType",defaultValue:function(){return Lo.RadioButtons.value}},enableButtonToggling:{name:"enableButtonToggling",defaultValue:us}},methods:{hasContentHorizontalAlign:ds,unSelectAll:function(){var e=this;f.eachItem(e.getItemsControllers(),function(e,t){var n=t.getInstance();sa.performOnInstancesInitialization(n.id,function(){n.userSelect(!1)})})},getDataSourceDefinition:function(){return hi.ButtonsGroupView},refreshSelectedItem:function(e){var t=this,n=t.getInstanceController(e);if(n&&n.isInitialized()){var i=n.getInstance();if(i){var a=t.getPropertyValue("buttonsType");switch(a){case Lo.RadioButtons.value:f.eachItem(t.getItemsControllers(),function(e,t){var n=t.getInstance();n.id!==i.id&&sa.performOnInstancesInitialization(n.id,function(){n.userSelect(!1)})}),sa.performOnInstancesInitialization(i.id,function(){var e=t.getPropertyValue("enableButtonToggling");e?i.userSelect(!0):i.userSelect(!i.isUserSelected())});break;case Lo.ToggleGroup.value:sa.performOnInstancesInitialization(i.id,function(){i.userSelect(!i.isUserSelected())})}}else t.unSelectAll()}}},aggregatedMethods:{aggregations:{adjustInstanceToViewPort:function(){var e=this;e.setPropertyValue("dataLayout",{name:Zi.SquareGrid.name}),e.setPropertyFieldsValues("dataLayoutOptions",{cols:3,colsSpacing:10,rowsSpacing:10})},switchToPreview:function(){var e=this;e.$element.on("click",".design-element.button-element",function(){var t=n(f(this));t&&t.elementType===ri.MenuButton&&e.getPageId()===va.getCurrentPageId()&&e.refreshSelectedItem(t.getDataItemId())})},setItem:function(e){e.setNeverSelectedInClick(!0)}}}}})}();var Lo={ToggleGroup:{title:void 0,value:1},RadioButtons:{title:void 0,value:2}};!function(){function e(e){var t=e.getPropertyNormalValue("order");if(e.isMasterPageElement.isTrue()){var n=Pa.getPageMasterRootsOrders(va.getCurrentPageId(),!0)[e.id];return n}return t}var t,n;ai.registerDefinition(ri,{FooterElement:{className:"footer-element",features:[oi.HasInnerShadow,oi.HasPadding,oi.Resizable,oi.Selectable,oi.HasBackground,oi.HasBackgroundImage,oi.HasLayout,oi.ItemsContainer,oi.HasChildrenLayoutAnchor,oi.PageSection,oi.HasBorder],defaultProperties:{resizingGripPosiotion:function(){return"s"},tagName:function(){return et.FOOTER},sectionName:function(){return"Footer"}},methods:{getCalculatedOrder:function(){return aa.getMaxOrder()},addElementToPage:function(e){var t=this,n=t.$element,i=t.data.pageInstance;return i&&i.setFooterInstance(void 0),e.setFooterInstance(t),t.data.pageInstance=e,e.data.$footerSection.append(n),e.data.$footerSection}},aggregatedMethods:{aggregations:{addFixedState:function(){var e=this;e.isFixed()&&(n||(n=f.rule(".page-element-border-box {}")),e.data.switchToPreviewFooter=x.bindAndExecute([e.sizeChangedEvent,e.visibilityChangedEvent],function(){Er.performOnFramesLayoutUpdade(function(){var t=va.getCurrentPage();ba.isElementVisible(e)?n.css({"padding-bottom":"{0}px".format(e.getSize().height)}):n.css({"padding-bottom":"{0}px".format(0)}),la.refreshElementsLayout(t.childInstances),ba.invalidateAreas(t)},e.id+"_sectionsPaddingBottomCssRule")}))},removeFixedState:function(){var e=this;n||(n=f.rule(".page-element-border-box {}")),x.unbind(e.data.switchToPreviewFooter),n.css({"padding-bottom":"{0}px".format(0)}),ba.invalidateAreas(e)},onRemove:function(){var e=va.getCurrentPage().getFooterInstance();e&&e.id===this.id&&va.getCurrentPage().setFooterInstance(void 0),la.refreshElementsLayout(va.getCurrentPage())},onInitializing:function(){var e=this;this.isMasterPageElement.isFalse()&&Pa.setAsMasterPageRoots(this),e.sizeChangedEvent.bind(function(){var e=va.getCurrentPage();la.refreshElementsLayout(e.childInstances)})}}}},HeaderElement:{className:"header-element",features:[oi.HasInnerShadow,oi.HasPadding,oi.Resizable,oi.Selectable,oi.HasBackground,oi.HasBackgroundImage,oi.HasLayout,oi.ItemsContainer,oi.HasChildrenLayoutAnchor,oi.PageSection,oi.HasBorder],defaultProperties:{resizingGripPosiotion:function(){return"s"},tagName:function(){return et.HEADER},sectionName:function(){return"Header"}},methods:{getCalculatedOrder:function(){return-aa.getMaxOrder()},addElementToPage:function(e){var t=this,n=t.$element,i=t.data.pageInstance;return i&&i.setHeaderInstance(void 0),e.setHeaderInstance(t),t.data.pageInstance=e,e.data.$headerSection.append(n),e.data.$headerSection}},aggregatedMethods:{aggregations:{addFixedState:function(){var e=this;e.isFixed()&&(t||(t=f.rule(".page-element-border-box {}")),e.data.switchToPreviewHeader=x.bindAndExecute([e.sizeChangedEvent,e.visibilityChangedEvent],function(){Er.performOnFramesLayoutUpdade(function(){var n=va.getCurrentPage();ba.isElementVisible(e)?t.css({"padding-top":"{0}px".format(e.getSize().height)}):t.css({"padding-top":"{0}px".format(0)}),ba.invalidateAreas(n)},e.id+"_sectionspaddingTopCssRule")}))},removeFixedState:function(){var e=this;x.unbind(e.data.switchToPreviewHeader),t||(t=f.rule(".page-element-border-box {}")),x.unbind(e.data.switchToPreviewFooter),t.css({"padding-top":"{0}px".format(0)}),la.refreshElementsLayout(e)},onRemove:function(){var e=va.getCurrentPage(),t=e.getHeaderInstance();t&&t.id===this.id&&e.setHeaderInstance(void 0),la.refreshElementsLayout(va.getCurrentPage())},onInitializing:function(){var e=this;this.isMasterPageElement.isFalse()&&Pa.setAsMasterPageRoots(this),e.sizeChangedEvent.bind(function(){var e=va.getCurrentPage();la.refreshElementsLayout(e.childInstances)})}}}},SectionElement:{className:"page-section-element",features:[oi.HasInnerShadow,oi.HasPadding,oi.Resizable,oi.Selectable,oi.HasBackground,oi.HasBackgroundImage,oi.HasLayout,oi.ItemsContainer,oi.HasChildrenLayoutAnchor,oi.PageSection,oi.HasBorder],defaultProperties:{resizingGripPosiotion:function(){return"s"},tagName:function(){return et.SECTION},sizeAndPosition:function(){return{height:600}},backgroundColor:function(){return"transparent"},sectionName:function(){return"Section"}},methods:{getCalculatedOrder:function($super){var t=this;if(Ha.Flags.IsInMobileContext.isTrue()){var n;if(this.isMasterPageElement.isTrue())return n=Pa.getPageMasterRootsOrders(va.getCurrentPageId())[this.id];var i=fa.getPropertyValueInCustomState(t.properties.order,Ha.MobileStateName,va.getCoordinator().id,t);if(void 0===i||void 0===i.stateValue||!f.isNumeric(i.stateValue)){var a=f.grep(t.parentInstance.childInstances,function(e){return e.hasFeature(oi.PageSection)}).sort(function(t,n){return e(t)-e(n)}),r=0;if(f.eachItem(a,function(e,n){return r=e,n===t?!1:void 0}),r){var o=a[r-1],s=o.getCalculatedOrder();return s+.01}return-1e3}return i.stateValue}var l=$super.call(t);return l},getMinSize:function(){return{height:this.data.calculatedMinHeight?this.data.calculatedMinHeight:0,width:0}},getPageContentInstance:function(){return va.getCurrentPage().getPageContentInstance()},addElementToPage:function(e){var t=this,n=t.getPageContentInstance(),i=n.addSectionElement(e,t);return ba.invalidateAreas(t,{updateSize:!1}),i},getDisplayName:function(){return this.getPropertyValue("sectionName")}},aggregatedMethods:{aggregations:{switchToPreview:function(){var e=this;la.refreshElementsLayout(e)},onRemove:function(){var e=this;if(!e.isForTemplateUse()){var t=e.getPageContentInstance(),n=va.getPage(e.getPageId());t.removeSectionElement(n,e)}},onInitializing:function(){var e=this;e.sizeChangedEvent.bind(function(){var t=va.getCurrentPage(),n=e.getPageContentInstance();ba.invalidateAreas(n?[t,n]:t)}),e.visibilityChangedEvent.bind(function(){var t=va.getCurrentPage(),n=e.getPageContentInstance();ba.invalidateAreas(n?[t,n]:t)})}}}}})}();var Mo=fs(function(){function e(e,t){if(e){var n=t.features;f.eachItem(e,function(e,t){oi.hasOwnProperty(t)&&n.push(oi[t])})}}function t(e,t){if(e){var n=t.features;f.eachItem(e,function(e,t){oi.hasOwnProperty(t)&&n.removeItem(oi[t])})}}function n(e,t){if(e){var n=t.methods;f.eachEntry(e,function(e,i){"aggregatedMethods"===e?t.aggregatedMethods=i:"onInitializing"===e?t.aggregatedMethods={aggregations:{onInitializing:i}}:n[e]=i})}}function i(e){var t=e.defaultValue,n={title:e.title,defaultValue:f.isFunction(t)?t:f.returnFixedValue(t)};switch(e.hasOwnProperty("shouldJoinToUndo")&&(n.shouldJoinToUndo=e.shouldJoinToUndo),e.stateType){case"custom":n.isStateProperty=!0;break;case"single":n.isNotForCustomProperty=!0}return n}function a(e,t,n){var a=t.properties,r=t.extensions.querySettings;for(var o in e){var s=e[o];a[n+o]=i(s),s.isQueryParam&&r.push(o)}}function r(e,t){f.isEmptyObject(e)||t.features.push(oi.ConnectableExternalApp)}function o(e,t){var n=t.features;f.isEmptyObject(e)||(n.push(oi.FeatureExternalApp),f.eachEntry(e,function(e,t){n.push(oi[t.featureTypeName])}))}function s(e,t){if(e){var n=t.defaultProperties;f.eachEntry(e,function(e,t){n[e]=function(){return t}})}}function l(e){var t={};return f.quickExtend(t,{title:e.name,features:[oi.HasInnerShadow,oi.Selectable,oi.HasBackground,oi.HasPadding,oi.HasBackgroundImage,oi.HasLayout,oi.Hideable,oi.HasBorder,oi.Rotatable,oi.HasContentOverlay,oi.HasResponsiveItem,oi.ExternalApp],extensions:{querySettings:[],appDefinition:e},defaultProperties:{},properties:{},methods:{}}),t}this.createElement=function(i){var c=l(i);e(i.features,c),t(i.excludeFeatures,c),s(i.defaultProperties,c),a(i.settings,c,i.appSettingPrefix),n(i.methods,c),o(i.implementedFeatures,c),r(i.connectableFeatures,c);var u={};return u[i.elementTypeName]=c,u}});!function(){function e(e){var n,i=va.getCurrentPage();i&&(n=e.getSectionsByPage(i));var a=e.getPropertyValue("contentLayout"),r=a.name;r||(r=a),e.pageContentLayout&&e.pageContentLayout.remove(),e.pageContentLayout=Fr[r].create(e,f.quickExtend({},a,t())),e.pageContentLayout.initialize(),n&&n.length>0&&sa.addElementToContainerElement(i,n)}function t(){return{}}ai.registerDefinition(ri,{PageContentElement:{className:"page-content-element",features:[oi.HasPadding,oi.HasContent,oi.Resizable,oi.Selectable,oi.HasBackground,oi.HasBackgroundImage,oi.HasLayout,oi.ItemsContainer,oi.HasChildrenLayoutAnchor,oi.Hideable,oi.HasBorder],defaultProperties:{resizingGripPosiotion:function(){return"s"},sizeAndPosition:function(){return{height:200,width:960,top:0,left:0}}},properties:{isContentTypeFluid:{defaultValue:us},contentLayout:{defaultValue:function(){return{name:Fr.BasePageContentLayout.name,side:gt.Left,sideBarWidth:200}},onChange:function(e,t,n,i){void 0!==i&&this.refreshContentLayout()}}},methods:{addElementToPage:function(e){var t=this,n=e.data.pageContentContainer,i=t.$element;return i.appendTo(n),n},refreshContentLayout:function(){e(this),this.getPageContentLayout().attachToContainer(),la.refreshElementsLayout(va.getCurrentPage()),this.contentLayoutChangedEvent.fire()},getPageContentLayout:function(){return this.pageContentLayout},isPageChildInstance:us,getMinSize:f.returnZeroSize,isReattchable:ds,creationFunction:cs,isRelativePositioned:us,hasHeight:ds,hasWidth:ds,changeElementSize:function(e){var t=this.getPropertyValue("isContentTypeFluid");t||this.$element.css(e),this.$elementSizeBox.css(e)},addSectionElement:function(e,t){var n=this.data.sectionsByPage;return f.objectSetIfUndefined(n,e.id,f.returnEmptyObject),f.objectSet(n,[e.id,t.id],t),this.pageContentLayout.addSection(t,e)},removeSectionElement:function(e,t){var n=this.data.sectionsByPage;delete n[e.id][t.id],this.pageContentLayout.removeSection(t)},getSectionsByPage:function(e){var t=this.data.sectionsByPage,n=f.objectGet(t,[e.id]);return n?f.getValues(n):[]},getVisibleSectionsByPage:function(e){var t=this.getSectionsByPage(e);return f.grep(t,function(e){return e.isInstanceVisible()})},renderElement:function(e){var t=this;e.startInstanceRendering(t,"positioned"),e.openTag("div","element-main-box positioned"),e.openTag("div","element-background-layer element-border-target design-element-border-target"),e.closeTag(),e.openTag("div","element-border-box element-border-target positioned design-element-border-box"),e.openTag("div","element-content-box design-element-content-box element-padding-box positioned"),e.openTag("div","page-content-element-size-box element-size-box positioned element-size-target"),e.openTag("div","page-content-content-container content-container-type positioned"),t.renderElementChildren(e),e.closeTag(),e.closeTag(),e.closeTag(),e.closeTag(),e.closeTag(),e.finishInstanceRendering(t)},getAutoLayoutProperties:function($super){return f.quickExtend($super.call(this),{top:!0,left:!0})}},aggregatedMethods:{aggregations:{onInitializing:function(){this.isMasterPageElement.isFalse()&&Pa.setAsMasterPageRoots([this]),this.getPageContentLayout().attachToContainer()},onCreation:function(){this.data.sectionsByPage={},this.contentLayoutChangedEvent=x.create(),e(this)},adjustInstanceToViewPort:function(){this.setPropertyValue("margin",0)},onDetached:function(){var e=va.getCurrentPage();fa.invalidateProperty(e,"sizeAndPosition",void 0,e.getPropertyValue("sizeAndPosition"))},onElementAddedToContainer:function(e){e.setPageContentInstance(this)},onRemove:function(){this.parentInstance.removePageContentInstance(this)},switchToPreview:function(){la.refreshElementsLayout(this)}}}}})}(),function(){function e(e){e.setSkinInstanceBox(e),e.data.instanceController?e.data.instanceController.createdFlag.onceTrue(function(){t(e)}):t(e)}function t(e){var t={},n={},i=[];f.eachItem(e.getDescendingInstances(!0),function(a,r){var o=r.getPropertyValue("styleBindingFields");o&&(f.eachEntry(o,function(e,i){f.eachEntry(i,function(i){f.objectSet(t,[r.id,e],i),n[e]||(n[e]=[]),n[e].push(r)})}),i.push(r)),r.setSkinInstanceBox(e)}),e.data.skinStyleAffectedInstances=i,e.data.instanceIdToFieldsToPropertiesMap=t,e.data.boundFieldsToInstances=n,x.fireLazyEvent(e,"influenceChanged")}ai.registerDefinition(ri,{skinHierarchyBox:{className:"skin-hierarchy-box",features:[oi.HasInnerShadow,oi.TemplateItem,oi.Focusable,oi.HasResponsiveItem,oi.Resizable,oi.Selectable,oi.HasBackground,oi.HasBackgroundImage,oi.ItemsContainer,oi.Clickable,oi.HasContent,oi.HasPadding,oi.Hideable,oi.HasBorder],methods:{setOverFlow:function($super){var e=this,t=e.getMainSkinInstance();t?e.isOverflowHidden.setValue(t.isOverflowHidden.getValue()||e.getPropertyValue("overflow")):$super.call(e)},creationFunction:cs,getStyleStateAffectedInstances:function(){return this.data.skinStyleAffectedInstances?this.data.skinStyleAffectedInstances:[]},getInstancesBindingsByField:function(e){var t=this;return t.data.boundFieldsToInstances?t.data.boundFieldsToInstances[e]:void 0},getMainSkinInstance:function(){return this.data.skinInstance},getAutoLayoutProperties:function(){return this.parentInstance?{left:!0,top:!0,width:!0,height:!0}:{}},shouldTrackUserSelection:ds},aggregatedMethods:{aggregations:{onInitializing:function(){var t=this;t.data.skinInstance=t.parentInstance,e(t)}}}}})}(),function(){ai.registerDefinition(ri,{skinInputElement:{className:"skin-input-element",defaultProperties:{skinBinding:function(){return{skinName:"skinInputElement",type:ir.Global}}},features:[oi.CommonDataListSkinItem,oi.HasInput],methods:{getSkinSupportedStates:function(){return[Oi.ElementFocusedState,Oi.MouseOverState,Oi.MouseDownState]},clear:function(){var e=this.getInputField();return e.clear()},getValue:function(){var e=this.getInputField();return e.getValue()},setValue:function(){var e=this.getInputField();e.getValue()},getInputField:function(){var e=this.data.formInput;return e||(e=this.refreshFormInput()),e},refreshFormInput:function(){var e=this,t=e.getDescendingInstances(!1);return f.eachItem(t,function(t,n){!e.data.formInput&&n.hasFeature(oi.FormInput)&&(e.data.formInput=n)}),e.data.formInput}},aggregatedMethods:{aggregations:{onInitialized:function(){var e=this;e.instanceController.createdEvent.bind(function(){e.refreshFormInput()})}}}}})}(),function(){ai.registerDefinition(ri,{skinListViewItem:{className:"skin-list-view-element",defaultProperties:{skinBinding:function(){return{skinName:"skinListViewItem",type:ir.Global}}},features:[oi.RemoteDataListSkinItem]}})}(),function(){ai.registerDefinition(ri,{skinImageElement:{className:"skin-image-element",defaultProperties:{itemFields:function(){return{image:{type:"image",title:void 0,name:"image",isDefaultField:!0}}},dataInfo:function(){return{currentData:{image:xr.getPresetAsset(yt.DefaultImage).imageData}}},skinBinding:function(){return{skinName:"skinImageElement",type:ir.Global}}},features:[oi.HasDataSource,oi.SkinElement,oi.HasResponsiveItem,oi.Resizable,oi.Selectable,oi.HasLayout,oi.Clickable,oi.Hideable,oi.HasContent],delegatedDefinitionsProperties:[ri.image,oi.HasImage],methods:{},aggregatedMethods:{aggregations:{}}}})}();var Oo={None:"None",NavigateNext:"NavigateNext",NavigatePrev:"NavigatePrev",NavigateTo:"NavigateTo",SubmitForm:"SubmitForm",PlayVideo:"PlayVideo",StopVideo:"StopVideo"};!function(){ai.registerDefinition(ri,{SkinButtonElement:{className:"skin-button-element",properties:{buttonAction:{isNotForCustomProperty:!0,defaultValue:function(){return{type:Oo.None,data:void 0}}}},defaultProperties:{skinBinding:function(){return{skinName:"SkinButtonElement",index:0,type:ir.Global}},formattedText:cs,verticalAlignment:function(){return at.Centered},iconSize:function(){return"auto"}},features:[oi.HasInnerShadow,oi.HasDataSource,oi.Clickable,oi.Editable,oi.DelegatedContent,oi.SkinElement,oi.HasResponsiveItem,oi.Selectable,oi.HasLayout,oi.Hideable],customDelegatedProperties:["iconReference","formattedText"],methods:{getDelegatedContentInstance:function(){var e=this,t=e.getInstancesBindingsByField("formattedText");return t&&t.length>0?t[0]:void 0},getInitializedTargetConnections:function($super){var e=this,t=$super.call(e),n=e.getPropertyValue("buttonAction"),i=n.data,a=n.type;if(Bi[a]){var r=e.id+"buttonAction",o=i.targetId,s={id:r,sourceElementID:e.getSkinInstance().id,targetElementID:o,behaviourName:a,options:i.options};t[r]=s}return t},getSkinSupportedStates:function(){return[Oi.MouseOverState,Oi.MouseDownState]},hasButtonBehaviour:us},aggregatedMethods:{aggregations:{switchToPreview:function(){this.data.visbilityListener&&this.data.visbilityListener.activateAndExecute()},onInitialized:function(){var e,t,n=this;n.propertyChangedEvent.bindAndExecute("buttonAction",function(){e?e.unbind():void 0,t?t.dispose():void 0,delete n.data.visbilityListener;var i=n.getPropertyValue("buttonAction"),a=i.data;if(a&&a.targetId){var r=a.targetId;sa.performOnInstancesCreated([r],function(){var i=sa.getInstanceByID(r);e=i.instanceRemoved.bind(function(){var e=n.getPropertyValue("buttonAction"),t=e.data;t.targetId===i.id&&sa.removeInstances([n])}),t=x.createEventListener([i.visibilityChangedEvent],function(){var e=n.getPropertyValue("buttonAction"),t=e.data;t.targetId===i.id&&(i.isInstanceVisible()?n.isDisplayed.setTrue("targetIsVisible"):n.isDisplayed.setFalse("targetIsVisible"))}),n.data.visbilityListener=t})}n.instanceRemoved.bind(function(){e?e.unbind():void 0,t?t.dispose():void 0})})},updateInstanceToViewPort:function(){var e=this;e.refreshContentSize()},removeInstanceFromViewPort:function(){var e=this;e.refreshContentSize()}}}}})}(),function(){ai.registerDefinition(ri,{skinDataItem:{className:"skin-data-item-element",defaultProperties:{skinBinding:function(){return{skinName:"skinDataItem",type:ir.Global}}},features:[oi.CommonDataListSkinItem],methods:{}}})}(),function(){ai.registerDefinition(ri,{skinGalleryItem:{className:"skin-gallery-element",defaultProperties:{skinBinding:function(){return{skinName:"skinGalleryItem",type:ir.Global}}},features:[oi.CommonDataListSkinItem]}}),ai.registerDefinition(ri,{skinGrowableGalleryItem:{className:"skin-gallery-element",defaultProperties:{skinBinding:function(){return{skinName:"skinGrowableGalleryItem",type:ir.Global}}},features:[oi.SkinElement,oi.DataListItem,oi.HasResponsiveItem,oi.Resizable,oi.Selectable,oi.HasLayout,oi.Clickable,oi.Hideable,oi.HasPadding,oi.HasContent]}})}(),function(){ai.registerDefinition(ri,{skinMenuButtonItem:{className:"skin-menu-button-element",defaultProperties:{skinBinding:function(){return{skinName:"skinMenuButtonItem",type:ir.Global}}},features:[oi.CommonDataListSkinItem,oi.SkinSelectable],methods:{hasButtonBehaviour:us,getFieldName:function(){return"MenuButton"},getSkinSupportedStates:function(){return[Oi.ElementSelectedState,Oi.MouseOverState,Oi.MouseDownState]}}}})}(),function(){ai.registerDefinition(ri,{skinVideoItem:{className:"skin-image-element",defaultProperties:{skinBinding:function(){return{skinName:"skinVideoItem",type:ir.Global}}},features:[oi.CommonDataListSkinItem]}})}(),function(){ai.registerDefinition(ri,{SkinSocialIconItem:{className:"skin-social-icon-element",defaultProperties:{skinBinding:function(){return{skinName:"SkinSocialIconItem",type:ir.Global,index:0}}},features:[oi.CommonDataListSkinItem],methods:{hasButtonBehaviour:us,getSkinSupportedStates:function(){return[Oi.MouseOverState,Oi.MouseDownState]}}}})}(),function(){ai.registerDefinition(ri,{SkinTagButton:{className:"skin-tag-button-element",features:[oi.RemoteDataListSkinItem,oi.SkinSelectable],methods:{getSkinSupportedStates:function(){return[Oi.ElementSelectedState,Oi.MouseOverState,Oi.MouseDownState]}}}})}(),function(){ai.registerDefinition(ri,{SkinItemTagButton:{className:"skin-item-tag-button-element",features:[oi.RemoteDataListSkinItem],methods:{getSkinSupportedStates:function(){return[Oi.MouseOverState,Oi.MouseDownState]}}}})}(),function(){ai.registerDefinition(ri,{SkinListCategoryButton:{className:"skin-list-category-button-element",title:"Category Button",defaultProperties:{skinBinding:function(){return{skinName:"SkinCategoryButton",type:ir.Global}}},features:[oi.RemoteDataListSkinItem,oi.SkinSelectable],methods:{getSkinSupportedStates:function(){return[Oi.ElementSelectedState,Oi.MouseOverState,Oi.MouseDownState]}}}})}(),function(){ai.registerDefinition(ri,{SkinSectionButton:{className:"skin-section-button-element",defaultProperties:{skinBinding:function(){return{skinName:"SkinSectionButton",type:ir.Global}}},features:[oi.CommonDataListSkinItem,oi.SkinSelectable],aggregatedMethods:{aggregations:{switchToPreview:function(){var e=this,t=0,n=e.getItemMainParent();n&&(t=n.getPropertyValue("scrollingAnimationDuration"));var i=sa.getInstanceByID(e.getDataItemId());i&&e.$element.on("vclick."+e.id,function(){sa.scrollToInstanceInPreview(i,{animationDuration:t})})}}},methods:{getFieldName:function(){return"MenuButton"},getSkinSupportedStates:function(){return[Oi.ElementSelectedState,Oi.MouseOverState,Oi.MouseDownState]},hasButtonBehaviour:us}}})}(),function(){ai.registerDefinition(ri,{MenuButton:{className:"button-element",extensions:{skinTypeName:ri.skinMenuButtonItem.name},features:[oi.HasPadding,oi.HasContent,oi.Resizable,oi.Selectable,oi.HasBackground,oi.HasBackgroundImage,oi.ItemsContainer,oi.Clickable,oi.Hideable,oi.HasBorder,oi.DataListItem],methods:{creationFunction:function(e){return e.data.$content=f("<div></div>").addClass("absolute-fill"),e.data.$content}}}})}(),function(){ai.registerDefinition(ri,{ImageBox:{className:"image-item-element",extensions:{skinTypeName:ri.skinGalleryItem.name},features:[oi.HasPadding,oi.HasContent,oi.Resizable,oi.Selectable,oi.HasBackground,oi.HasBackgroundImage,oi.ItemsContainer,oi.Clickable,oi.Hideable,oi.HasBorder,oi.DataListItem],methods:{creationFunction:function(e){return e.data.$content=f("<div></div>").addClass("absolute-fill"),e.data.$content}}}})}(),function(){ai.registerDefinition(ri,{DataListItemTemplate:{className:"data-list-item-element",title:"Data List Item",itemTitle:"Data List Item",extensions:{skinTypeName:ri.skinDataItem.name},features:[oi.HasInnerShadow,oi.HasPadding,oi.HasContent,oi.Resizable,oi.Selectable,oi.HasBackground,oi.HasBackgroundImage,oi.ItemsContainer,oi.Clickable,oi.Hideable,oi.HasBorder,oi.DataListItem],methods:{creationFunction:function(e){return e.data.$content=f("<div></div>").addClass("absolute-fill"),e.data.$content}}}})}(),function(){ai.registerDefinition(ri,{ListViewItemTemplate:{className:"list-view-item-element",title:"List View Item",itemTitle:"List View Item",extensions:{skinTypeName:ri.skinListViewItem.name},features:[oi.HasPadding,oi.HasContent,oi.Resizable,oi.Selectable,oi.HasBackground,oi.HasBackgroundImage,oi.ItemsContainer,oi.Clickable,oi.Hideable,oi.HasBorder,oi.DataListItem],methods:{creationFunction:function(e){return e.data.$content=f("<div></div>").addClass("absolute-fill"),e.data.$content}}}})}(),function(){ai.registerDefinition(ri,{InputItem:{className:"input-element",extensions:{skinTypeName:ri.skinInputElement.name},features:[oi.HasPadding,oi.HasContent,oi.Resizable,oi.Selectable,oi.HasBackground,oi.HasBackgroundImage,oi.ItemsContainer,oi.Clickable,oi.Hideable,oi.HasBorder,oi.Focusable,oi.DataListItem],methods:{creationFunction:function(e){return e.data.$content=f("<div></div>").addClass("absolute-fill"),e.data.$content},clear:function(){var e=this.getInputField();return e.clear()},getValue:function(){var e=this.getInputField();return e.getValue()},getInputField:function(){return this.data.formInput}},aggregatedMethods:{aggregations:{onInitialized:function(){var e=this,t=e.getDescendingInstances(!1);f.eachItem(t,function(t,n){!e.data.formInput&&n.hasFeature(oi.FormInput)&&(e.data.formInput=n)})}}}}})}(),function(){ai.registerDefinition(ri,{JMMLInputItem:{className:"input-element",extensions:{skinTypeName:"jmmlSkinInputElement"},features:[oi.HasPadding,oi.HasContent,oi.Resizable,oi.Selectable,oi.HasBackground,oi.HasBackgroundImage,oi.ItemsContainer,oi.Clickable,oi.Hideable,oi.HasBorder,oi.Focusable],methods:{
creationFunction:function(e){return e.data.$content=f("<div></div>").addClass("absolute-fill"),e.data.$content},clear:function(){var e=this.getInputField();return e.clear()},getValue:function(){var e=this.getInputField();return e.getValue()},getInputField:function(){return this.data.formInput}},aggregatedMethods:{aggregations:{onInitialized:function(){var e=this,t=e.getDescendingInstances(!1);f.eachItem(t,function(t,n){!e.data.formInput&&n.hasFeature(oi.FormInput)&&(e.data.formInput=n)})}}}}})}(),function(){ai.registerDefinition(ri,{SkinNavigationButton:{features:[oi.HasDataSource,oi.SkinElement,oi.HasResponsiveItem,oi.Resizable,oi.Selectable,oi.HasLayout,oi.Clickable,oi.Hideable,oi.HasContent,oi.HasNavigation],delegatedDefinitionsProperties:[ri.Icon],methods:{getFieldName:function(){return"SkinNavigationButton"},hasButtonBehaviour:us},aggregatedMethods:{aggregations:{}}}})}(),function(){var e={id:"TwitterFollowApp",version:1,name:void 0,url:function(){return f.combinePaths(Settings.AppsIframeRoot,"/extern/twitter-app/twitter-app.html")},isCacheDisabled:!1,type:"ui",manages:[{title:void 0,type:"main",showElementSettings:!0}],excludeFeatures:["HasBackground","HasPadding","HadBackgroundImage","HasBorder","HasBackgroundOverlay"],defaultProperties:{sizeAndPosition:{width:300,height:24,top:0,left:0}},settingCategories:[{title:void 0,settings:{widgetType:{defaultValue:"twitterFollow",isDisableUserEdit:!0,isQueryParam:!0},defaultUser:{defaultValue:"twitter",isDisableUserEdit:!0,isQueryParam:!0},followUser:{title:void 0,type:"text-box",defaultValue:"twitter",isQueryParam:!0},showCount:{title:void 0,type:"check-box",defaultValue:!0,isQueryParam:!0,stateType:"custom"},showScreenName:{title:void 0,type:"check-box",defaultValue:!0,isQueryParam:!0,stateType:"custom"}}}],features:["HasInitialSettings"],methods:{getUserPropertyName:function(){return this.getAppSettingPrefix()+"followUser"},getAutoCompleteDialogTitle:void 0}},t={id:"TwitterFollow",apps:[e]};Ja.addAppContainer(t)}(),function(){var e={id:"TwitterTweetApp",version:1,name:void 0,url:function(){return f.combinePaths(Settings.AppsIframeRoot,"/extern/twitter-app/twitter-app.html")},isCacheDisabled:!1,type:"ui",manages:[{title:void 0,type:"main",showElementSettings:!0}],excludeFeatures:["HasBackground","HasPadding","HadBackgroundImage","HasBorder","HasBackgroundOverlay"],defaultProperties:{sizeAndPosition:{width:107,height:20,top:0,left:0}},settingCategories:[{title:void 0,settings:{widgetType:{defaultValue:"twitterTweet",isDisableUserEdit:!0,isQueryParam:!0},useCustomUrl:{title:void 0,type:"check-box",defaultValue:!1,isQueryParam:!0},tweetUrl:{title:void 0,type:"text-box",defaultValue:"http://www.twitter.com",isQueryParam:!0,bindState:{type:"setting",state:"enabling",settingName:"useCustomUrl",value:!1,negative:!0}},tweetVia:{title:void 0,type:"text-box",defaultValue:"",isQueryParam:!0},customTweetText:{title:void 0,type:"text-box",defaultValue:"",isQueryParam:!0},countLayout:{title:void 0,type:"combo-box",values:[{title:void 0,value:"horizontal"},{title:void 0,value:"vertical"},{title:void 0,value:"none"}],defaultValue:"horizontal",isQueryParam:!0,stateType:"custom"}}}],features:[]},t={id:"TwitterTweet",apps:[e]};Ja.addAppContainer(t)}(),function(){var e={id:"FacebookShareApp",version:1,name:void 0,url:function(){return f.combinePaths(Settings.AppsIframeRoot,"/extern/facebook-widget-app/facebook-widget-app.html")},isCacheDisabled:!1,type:"ui",manages:[{title:void 0,type:"main",showElementSettings:!0}],excludeFeatures:["HasBackground","HasPadding","HadBackgroundImage","HasBorder","HasBackgroundOverlay"],defaultProperties:{sizeAndPosition:{width:84,height:20,top:0,left:0}},queryParams:{appId:function(){return f.valueOrDefault(Settings.FacebookAppID,Z.FacebookAppID)}},settingCategories:[{title:void 0,settings:{widgetType:{defaultValue:"facebookShare",isDisableUserEdit:!0,isQueryParam:!0},useCustomUrl:{title:void 0,type:"check-box",defaultValue:!1,isQueryParam:!0},url:{title:void 0,type:"text-box",defaultValue:"http://www.facebook.com",isQueryParam:!0,bindState:{type:"setting",state:"enabling",settingName:"useCustomUrl",value:!1,negative:!0}},layout:{title:void 0,type:"combo-box",values:[{title:void 0,value:"button_count"},{title:void 0,value:"box_count"},{title:void 0,value:"button"},{title:void 0,value:"icon_link"},{title:void 0,value:"icon"},{title:void 0,value:"link"}],defaultValue:"button_count",isQueryParam:!0,stateType:"custom"}}}]},t={id:"FacebookShare",apps:[e]};Ja.addAppContainer(t)}(),function(){var e={id:"FacebookLikeApp",version:1,name:void 0,url:function(){return f.combinePaths(Settings.AppsIframeRoot,"/extern/facebook-widget-app/facebook-widget-app.html")},isCacheDisabled:!1,type:"ui",manages:[{title:void 0,type:"main",showElementSettings:!0}],excludeFeatures:["HasBackground","HasPadding","HadBackgroundImage","HasBorder","HasBackgroundOverlay"],defaultProperties:{sizeAndPosition:{width:76,height:20,top:0,left:0}},queryParams:{appId:function(){return f.valueOrDefault(Settings.FacebookAppID,Z.FacebookAppID)}},settingCategories:[{title:void 0,settings:{widgetType:{defaultValue:"facebookLike",isDisableUserEdit:!0,isQueryParam:!0},useCustomUrl:{title:void 0,type:"check-box",defaultValue:!1,isQueryParam:!0},url:{title:void 0,type:"text-box",defaultValue:"http://www.facebook.com",isQueryParam:!0,bindState:{type:"setting",state:"enabling",settingName:"useCustomUrl",value:!1,negative:!0}},layout:{title:void 0,type:"combo-box",values:[{title:void 0,value:"button_count"},{title:void 0,value:"standard"},{title:void 0,value:"box_count"},{title:void 0,value:"button"}],defaultValue:"button_count",isQueryParam:!0,stateType:"custom"},actionType:{title:void 0,type:"combo-box",values:[{title:void 0,value:"like"},{title:void 0,value:"recommend"}],defaultValue:"like",isQueryParam:!0},showFaces:{title:void 0,type:"check-box",defaultValue:!1,isQueryParam:!0,bindState:{type:"setting",state:"displaying",settingName:"layout",value:"standard",stateType:"custom"}}}}],features:["HasInitialSettings"],methods:{getUserPropertyName:function(){return this.getAppSettingPrefix()+"url"},getAutoCompleteDialogTitle:void 0,handleDialogResult:void 0,getPlaceholderText:void 0}},t={id:"FacebookLike",apps:[e]};Ja.addAppContainer(t)}(),function(){var e={id:"FacebookFollowApp",version:1,name:void 0,url:function(){return f.combinePaths(Settings.AppsIframeRoot,"/extern/facebook-widget-app/facebook-widget-app.html")},isCacheDisabled:!1,type:"ui",manages:[{title:void 0,type:"main",showElementSettings:!0}],excludeFeatures:["HasBackground","HasPadding","HadBackgroundImage","HasBorder","HasBackgroundOverlay"],defaultProperties:{sizeAndPosition:{width:90,height:20,top:0,left:0}},settingCategories:[{title:void 0,settings:{widgetType:{defaultValue:"facebookFollow",isDisableUserEdit:!0,isQueryParam:!0},appId:{defaultValue:function(){return f.valueOrDefault(Settings.FacebookAppID,Z.FacebookAppID)},isDisableUserEdit:!0,isQueryParam:!0},url:{title:void 0,type:"text-box",defaultValue:"http://www.facebook.com",isQueryParam:!0},layout:{title:void 0,type:"combo-box",values:[{title:void 0,value:"button_count"},{title:void 0,value:"standard"},{title:void 0,value:"box_count"},{title:void 0,value:"button"}],defaultValue:"button_count",isQueryParam:!0,stateType:"custom"},colorScheme:{title:void 0,type:"combo-box",values:[{title:void 0,value:"light"},{title:void 0,value:"dark"}],defaultValue:"light",isQueryParam:!0,bindState:{type:"setting",state:"enabling",settingName:"layout",value:"standard"},stateType:"custom"},showFaces:{title:void 0,type:"check-box",defaultValue:!1,isQueryParam:!0,bindState:{type:"setting",state:"displaying",settingName:"layout",value:"standard"},stateType:"custom"}}}],features:["HasInitialSettings"],methods:{getUserPropertyName:function(){return this.getAppSettingPrefix()+"url"},getAutoCompleteDialogTitle:void 0,handleDialogResult:void 0,getInitialSettingsValue:void 0}},t={id:"FacebookFollow",apps:[e]};Ja.addAppContainer(t)}(),function(){var e={id:"FacebookCommentsApp",version:1,name:void 0,url:function(){return f.combinePaths(Settings.AppsIframeRoot,"/extern/facebook-widget-app/facebook-widget-app.html")},isCacheDisabled:!1,type:"ui",resizingSettings:{minSize:{width:50,height:50}},growableSettings:{view:!0,design:!1},manages:[{title:void 0,type:"main",showElementSettings:!0}],excludeFeatures:["HasBackground","HasPadding","HadBackgroundImage","HasBorder","HasBackgroundOverlay"],defaultProperties:{sizeAndPosition:{width:400,height:140,top:0,left:0}},queryParams:{appId:function(){return f.valueOrDefault(Settings.FacebookAppID,Z.FacebookAppID)}},settingCategories:[{title:void 0,settings:{widgetType:{defaultValue:"facebookComments",isDisableUserEdit:!0,isQueryParam:!0},width:{defaultValue:"100%",isDisableUserEdit:!0,isQueryParam:!0},postLimit:{title:void 0,type:"numeric",defaultValue:10,min:1,max:1/0,isQueryParam:!0,stateType:"custom"},colorScheme:{title:void 0,type:"combo-box",values:[{title:void 0,value:"light"},{title:void 0,value:"dark"}],defaultValue:"light",isQueryParam:!0,stateType:"custom"}}}],features:["Resizable"]},t={id:"FacebookComments",apps:[e]};Ja.addAppContainer(t)}(),function(){var e={id:"FacebookActivityApp",version:1,name:void 0,url:function(){return f.combinePaths(Settings.AppsIframeRoot,"/extern/facebook-widget-app/facebook-widget-app.html")},isCacheDisabled:!1,type:"ui",manages:[{title:void 0,type:"main",showElementSettings:!0}],excludeFeatures:["HasBackground","HasPadding","HadBackgroundImage","HasBorder","HasBackgroundOverlay"],resizingSettings:{canResizeVertically:!1,minSize:{width:160,height:20}},defaultProperties:{sizeAndPosition:{width:300,height:300,top:0,left:0}},queryParams:{appId:function(){return f.valueOrDefault(Settings.FacebookAppID,Z.FacebookAppID)}},settingCategories:[{title:void 0,settings:{widgetType:{isDisableUserEdit:!0,defaultValue:"facebookActivityFeed",isQueryParam:!0},useCustomUrl:{title:void 0,type:"check-box",defaultValue:!1,isQueryParam:!0},url:{title:void 0,type:"text-box",defaultValue:"www.facebook.com",isQueryParam:!0,bindState:{type:"setting",state:"enabling",settingName:"useCustomUrl",value:!1,negative:!0}},width:{defaultValue:"100%",isDisableUserEdit:!0,isQueryParam:!0},limitPostAge:{title:void 0,type:"check-box",defaultValue:!1,isQueryParam:!0},maxAge:{title:void 0,type:"numeric",defaultValue:0,min:0,max:180,isQueryParam:!0,bindState:{type:"setting",state:"enabling",settingName:"limitPostAge",value:!1,negative:!0}},colorScheme:{title:void 0,type:"combo-box",values:[{title:void 0,value:"light"},{title:void 0,value:"dark"}],defaultValue:"light",isQueryParam:!0,stateType:"custom"}}}],features:["Resizable"]},t={id:"FacebookActivity",apps:[e]};Ja.addAppContainer(t)}(),function(){var e={id:"FacebookLikeboxApp",version:1,name:void 0,url:function(){return f.combinePaths(Settings.AppsIframeRoot,"/extern/facebook-widget-app/facebook-widget-app.html")},isCacheDisabled:!1,type:"ui",resizingSettings:{canResizeVertically:!1,minSize:{width:290,height:20}},manages:[{title:void 0,type:"main",showElementSettings:!0}],excludeFeatures:["HasBackground","HasPadding","HadBackgroundImage","HasBorder","HasBackgroundOverlay"],defaultProperties:{sizeAndPosition:{width:400,height:70,top:0,left:0}},queryParams:{appId:function(){return f.valueOrDefault(Settings.FacebookAppID,Z.FacebookAppID)}},settingCategories:[{title:void 0,settings:{widgetType:{defaultValue:"facebookLikeBox",isDisableUserEdit:!0,isQueryParam:!0},url:{title:void 0,type:"text-box",defaultValue:"http://www.facebook.com/facebook",isQueryParam:!0},colorScheme:{title:void 0,type:"combo-box",values:[{title:void 0,value:"light"},{title:void 0,value:"dark"}],defaultValue:"light",isQueryParam:!0,stateType:"custom"},showFaces:{title:void 0,type:"check-box",defaultValue:!1,isQueryParam:!0,stateType:"custom"},showHeader:{defaultValue:!1,isQueryParam:!0,isDisableUserEdit:!0},showPosts:{title:void 0,type:"check-box",defaultValue:!1,isQueryParam:!0,stateType:"custom"}}}],features:["Resizable"]},t={id:"FacebookLikebox",apps:[e]};Ja.addAppContainer(t)}(),function(){var e={id:"FacebookPagePluginApp",version:1,name:void 0,url:function(){return f.combinePaths(Settings.AppsIframeRoot,"/extern/facebook-widget-app/facebook-widget-app.html")},isCacheDisabled:!1,type:"ui",resizingSettings:{minSize:{width:280,height:130},maxSize:{width:500}},manages:[{title:void 0,type:"main",showElementSettings:!0}],excludeFeatures:["HasBackground","HasPadding","HadBackgroundImage","HasBorder","HasBackgroundOverlay"],defaultProperties:{sizeAndPosition:{width:340,height:224,top:0,left:0}},queryParams:{appId:function(){return f.valueOrDefault(Settings.FacebookAppID,Z.FacebookAppID)}},settingCategories:[{title:void 0,settings:{widgetType:{defaultValue:"facebookPagePlugin",isDisableUserEdit:!0,isQueryParam:!0},url:{title:void 0,type:"text-box",defaultValue:"http://www.facebook.com/facebook",isQueryParam:!0},showFaces:{title:void 0,type:"check-box",defaultValue:!0,isQueryParam:!0,stateType:"custom"},showPosts:{title:void 0,type:"check-box",defaultValue:!1,isQueryParam:!0,stateType:"custom"},hideCover:{title:void 0,type:"check-box",defaultValue:!1,isQueryParam:!0,stateType:"custom"},width:{defaultValue:340,isDisableUserEdit:!0,isQueryParam:!0},height:{defaultValue:224,isDisableUserEdit:!0,isQueryParam:!0}}}],features:["Resizable","HasInitialSettings"],methods:{getUserPropertyName:function(){return this.getAppSettingPrefix()+"url"},getAutoCompleteDialogTitle:void 0,handleDialogResult:void 0,getPlaceholderText:void 0}},t={id:"FacebookPagePlugin",apps:[e]};Ja.addAppContainer(t)}(),function(){var e={id:"TwitterFeedApp",version:1,name:void 0,url:function(){return f.combinePaths(Settings.AppsIframeRoot,"/extern/twitter-app/twitter-app.html")},isCacheDisabled:!1,type:"ui",resizingSettings:{canResizeVertically:!1,minSize:{width:40,height:0}},manages:[{title:void 0,type:"main",showElementSettings:!0}],excludeFeatures:["HasBackground","HasPadding","HadBackgroundImage","HasBorder","HasBackgroundOverlay"],defaultProperties:{sizeAndPosition:{width:224,height:400,top:0,left:0}},settingCategories:[{title:void 0,settings:{widgetType:{defaultValue:"twitterFeed",isDisableUserEdit:!0,isQueryParam:!0},user:{title:void 0,type:"text-box",defaultValue:"twitter",isQueryParam:!0},theme:{title:void 0,type:"combo-box",values:[{title:void 0,value:"light"},{title:void 0,value:"dark"}],defaultValue:"light",isQueryParam:!0,stateType:"custom"},limitTweets:{title:void 0,type:"check-box",defaultValue:!1,isQueryParam:!0,stateType:"custom"},tweetLimit:{title:void 0,type:"numeric",defaultValue:5,min:1,max:20,isQueryParam:!0,bindState:{type:"setting",state:"enabling",settingName:"limitTweets",value:!1,negative:!0},stateType:"custom"},height:{title:void 0,type:"numeric",defaultValue:400,min:40,max:2e3,isQueryParam:!0,bindState:{type:"setting",state:"enabling",settingName:"limitTweets",value:!1,negative:!1},stateType:"custom"},hasTimeline:{type:"check-box",defaultValue:!0,isDisableUserEdit:!0,shouldJoinToUndo:!0}}}],features:["Resizable","HasEmptyState","HasDataBinding"],methods:{getEmptyTemplateInfo:void 0,getDataBindingKey:function(){return Mr.Keys.Instance.Social.TwitterFeed},allowUpdateDataBindingValue:us,updateDataBinding:function(){var e=this;if(e.allowUpdateDataBindingValue()){var t=e.getPropertyValue(e.getUserPropertyName());e.updateDataBindingValue(t)}},getUserPropertyName:function(){return this.getAppSettingPrefix()+"user"},aggregatedMethods:{aggregations:{onInitializing:function(){var e=this;e.inEmptyStateFlag.setValue(!e.getAppSettingValue("hasTimeline"))},onInitializedInDesigner:void 0,onDataBindingReady:function(e){var t=this;Er.performUpdateOnRenderingFinished(function(){t.setPropertyValue(t.getUserPropertyName(),e)})}}}}},t={id:"TwitterFeed",apps:[e]};Ja.addAppContainer(t)}(),function(){var e={id:"LinkedinShareApp",version:1,name:void 0,url:function(){return f.combinePaths(Settings.AppsIframeRoot,"/extern/linkedin-app/linkedin-app.html")},isCacheDisabled:!1,type:"ui",manages:[{title:void 0,type:"main",showElementSettings:!0}],excludeFeatures:["HasBackground","HasPadding","HadBackgroundImage","HasBorder","HasBackgroundOverlay"],defaultProperties:{sizeAndPosition:{width:107,height:25,top:0,left:0}},settingCategories:[{title:void 0,settings:{widgetType:{defaultValue:"linkedinShare",isDisableUserEdit:!0,isQueryParam:!0},useCustomUrl:{title:void 0,type:"check-box",defaultValue:!1,isQueryParam:!0},shareUrl:{title:void 0,type:"text-box",defaultValue:"http://www.linkedin.com",isQueryParam:!0,bindState:{type:"setting",state:"enabling",settingName:"useCustomUrl",value:!1,negative:!0}},showCount:{title:void 0,type:"combo-box",values:[{title:void 0,value:"right"},{title:void 0,value:"top"},{title:void 0,value:"none"}],defaultValue:"right",isQueryParam:!0}}}],features:[]},t={id:"LinkedinShare",apps:[e]};Ja.addAppContainer(t)}(),function(){var e={id:"LinkedinFollowApp",version:1,name:void 0,url:function(){return f.combinePaths(Settings.AppsIframeRoot,"/extern/linkedin-app/linkedin-app.html")},isCacheDisabled:!1,type:"ui",manages:[],resizingSettings:{minSize:{width:60,height:20}},defaultProperties:{sizeAndPosition:{width:156,height:20,top:0,left:0}},settingCategories:[{title:void 0,settings:{widgetType:{defaultValue:"linkedinFollow",isDisableUserEdit:!0,isQueryParam:!0},followUser:{title:void 0,type:"text-box",defaultValue:"1337",isQueryParam:!0},showCount:{title:void 0,type:"combo-box",values:[{title:void 0,value:"right"},{title:void 0,value:"top"},{title:void 0,value:"none"}],defaultValue:"right",isQueryParam:!0}}}],features:[]},t={id:"LinkedinFollow",apps:[e]};Ja.addAppContainer(t)}(),function(){var e={id:"linkedin_company_profile_app",version:1,name:void 0,url:function(){return f.combinePaths(Settings.AppsIframeRoot,"/extern/linkedin-app/linkedin-app.html")},isCacheDisabled:!1,type:"ui",manages:[],defaultProperties:{sizeAndPosition:{width:160,height:20,top:0,left:0}},settingCategories:[{title:void 0,settings:{widgetType:{defaultValue:"linkedinCompanyProfile",isDisableUserEdit:!0,isQueryParam:!0},companyId:{title:void 0,type:"text-box",defaultValue:"1337",isQueryParam:!0},widgetText:{title:void 0,type:"text-box",defaultValue:"Linkedin",isQueryParam:!0},panelBehavior:{title:void 0,type:"combo-box",values:[{title:void 0,value:"hover"},{title:void 0,value:"click"}],defaultValue:"hover",isQueryParam:!0},showConnections:{title:void 0,type:"check-box",defaultValue:!0,isQueryParam:!0}}}],features:["Resizable"]},t={id:"linkedin-company-profile",apps:[e]};Ja.addAppContainer(t)}(),function(){var e={id:"GooglePlusOneApp",version:1,name:void 0,url:function(){return f.combinePaths(Settings.AppsIframeRoot,"/extern/google-app/google-app.html")},isCacheDisabled:!1,type:"ui",manages:[{title:void 0,type:"main",showElementSettings:!0}],excludeFeatures:["HasBackground","HasPadding","HadBackgroundImage","HasBorder","HasBackgroundOverlay"],resizingSettings:{canResizeVertically:!1,minSize:{width:38,height:24},maxSize:{width:264,height:62}},defaultProperties:{sizeAndPosition:{width:264,height:24,top:0,left:0}},settingCategories:[{title:void 0,settings:{widgetType:{defaultValue:"googlePlusOne",isDisableUserEdit:!0,isQueryParam:!0},useCustomUrl:{title:void 0,type:"check-box",defaultValue:!1,isQueryParam:!0},url:{title:void 0,type:"text-box",defaultValue:"http://www.google.com",isQueryParam:!0,bindState:{type:"setting",state:"enabling",settingName:"useCustomUrl",value:!1,negative:!0}},width:{defaultValue:264,isDisableUserEdit:!0,isQueryParam:!0},dataSize:{defaultValue:"standard",isDisableUserEdit:!0,isQueryParam:!0},dataAnnotation:{title:void 0,type:"combo-box",values:[{title:void 0,value:"inline"},{title:void 0,value:"bubble"},{title:void 0,value:"none"},{title:void 0,value:"tall"}],defaultValue:"inline",isQueryParam:!0,stateType:"custom"}}}],features:["Resizable","HasInitialSettings"],methods:{getUserPropertyName:function(){return this.getAppSettingPrefix()+"url"},getAutoCompleteDialogTitle:void 0,handleDialogResult:void 0,getPlaceholderText:void 0}},t={id:"GooglePlusOne",apps:[e]};Ja.addAppContainer(t)}(),function(){var e={id:"GoogleFollowApp",version:1,name:void 0,url:function(){return f.combinePaths(Settings.AppsIframeRoot,"/extern/google-app/google-app.html")},isCacheDisabled:!1,type:"ui",resizingSettings:{minSize:{width:80,height:20}},manages:[{title:void 0,type:"main",showElementSettings:!0}],excludeFeatures:["HasBackground","HasPadding","HadBackgroundImage","HasBorder","HasBackgroundOverlay"],defaultProperties:{sizeAndPosition:{width:118,height:20,top:0,left:0}},settingCategories:[{title:void 0,settings:{widgetType:{defaultValue:"googleFollow",isDisableUserEdit:!0,isQueryParam:!0},followUser:{title:void 0,type:"text-box",defaultValue:"+Google",isQueryParam:!0},height:{defaultValue:20,isDisableUserEdit:!0,isQueryParam:!0},dataAnnotation:{title:void 0,type:"combo-box",values:[{title:void 0,value:"bubble"},{title:void 0,value:"vertical-bubble"},{title:void 0,value:"none"}],defaultValue:"bubble",isQueryParam:!0,stateType:"custom"}}}],features:["HasInitialSettings"],methods:{getUserPropertyName:function(){return this.getAppSettingPrefix()+"followUser"},getAutoCompleteDialogTitle:void 0}},t={id:"GoogleFollow",apps:[e]};Ja.addAppContainer(t)}(),function(){var e={id:"GoogleShareApp",version:1,name:void 0,url:function(){return f.combinePaths(Settings.AppsIframeRoot,"/extern/google-app/google-app.html")},isCacheDisabled:!1,type:"ui",manages:[{title:void 0,type:"main",showElementSettings:!0}],excludeFeatures:["HasBackground","HasPadding","HadBackgroundImage","HasBorder","HasBackgroundOverlay"],resizingSettings:{canResizeVertically:!1,minSize:{width:57,height:20},maxSize:{width:240,height:60}},defaultProperties:{sizeAndPosition:{width:200,height:68,top:0,left:0}},settingCategories:[{title:void 0,settings:{widgetType:{defaultValue:"googleShare",isDisableUserEdit:!0,isQueryParam:!0},dataAction:{defaultValue:"share",isDisableUserEdit:!0,isQueryParam:!0},useCustomUrl:{title:void 0,type:"check-box",defaultValue:!1,isQueryParam:!0},url:{title:void 0,type:"text-box",defaultValue:"http://www.google.com",isQueryParam:!0,bindState:{type:"setting",state:"enabling",settingName:"useCustomUrl",value:!1,negative:!0}},width:{defaultValue:200,isDisableUserEdit:!0,isQueryParam:!0},dataAnnotation:{title:void 0,type:"combo-box",values:[{title:void 0,value:"inline"},{title:void 0,value:"bubble"},{title:void 0,value:"vertical-bubble"},{title:void 0,value:"none"}],defaultValue:"inline",isQueryParam:!0,stateType:"custom"}}}],features:["Resizable"]},t={id:"GoogleShare",apps:[e]};Ja.addAppContainer(t)}(),function(){var e={id:"ecwid_app",version:1,name:void 0,url:function(){return f.combinePaths(Settings.AppsIframeRoot,"/extern/ecwid-app/ecwid.html")},isCacheDisabled:!1,type:"ui",styleSupport:!0,resizingSettings:{canResizeVertically:!1},defaultProperties:{sizeAndPosition:{width:960,height:400,top:0,left:-480}},settingCategories:[{title:void 0,settings:{storeId:{defaultValue:5194001,isDisableUserEdit:!0,isQueryParam:!0},categoriesPerRow:{title:void 0,type:"numeric",defaultValue:3,min:1,max:1/0,isQueryParam:!0,stateType:"custom"},categoryView:{title:void 0,type:"combo-box",values:[{title:void 0,value:"grid"},{title:void 0,value:"list"},{title:void 0,value:"table"}],defaultValue:"grid",isQueryParam:!0,stateType:"custom"},tableNumber:{title:void 0,type:"numeric",defaultValue:20,min:1,max:1/0,isQueryParam:!0,stateType:"custom"},listNumber:{title:void 0,type:"numeric",defaultValue:10,min:1,max:1/0,isQueryParam:!0,stateType:"custom"},gridColumnNumber:{title:void 0,type:"numeric",defaultValue:3,min:1,max:1/0,isQueryParam:!0,stateType:"custom"},gridRowNumber:{title:void 0,type:"numeric",defaultValue:3,min:1,max:1/0,isQueryParam:!0,stateType:"custom"}}}],features:["Resizable"]};Ja.addAppContainer({id:"ecwid",apps:[e]})}(),function(){var e={id:"embed_html_app",version:1,name:void 0,url:function(){return f.combinePaths(Settings.AppsIframeRoot,"/extern/embed-html/embed-html.html")},isCacheDisabled:!1,useSessionParams:!0,type:"ui",manages:void 0,styleSupport:!0,defaultProperties:{sizeAndPosition:{width:400,height:400,top:0,left:-480}},settingCategories:[{isDisableUserEdit:!0,settings:{html:{stateType:"single",defaultValue:""},headerHtml:{stateType:"single",defaultValue:""}}}],methods:{onInitializing:function(){var e=this,t=e.getAppSettingValue("html");e.inEmptyStateFlag.setValue(!t)},getEmptyTemplateInfo:void 0},features:["Resizable","HasEmptyState"]};Ja.addAppContainer({id:"embed_html",apps:[e]})}(),function(){ai.registerDefinition(ri,{EmbedIFrameElement:{features:[oi.HasInnerShadow,oi.HasResponsiveItem,oi.Resizable,oi.Selectable,oi.HasBackground,oi.HasLayout,oi.HasPadding,oi.Hideable,oi.HasBorder,oi.Rotatable,oi.HasContentOverlay,oi.IFrameContent,oi.HasEmptyState],properties:{iFrameUrl:{isNotForCustomProperty:!0,defaultValue:f.returnEmptyString(),onChange:function(e,t){e.isInitialized&&e.reloadIFrame(t)}}},defaultProperties:{sizeAndPosition:function(){return{width:400,height:400,top:0,left:0}}},methods:{getIFrameUrl:function(){var e=this.getPropertyValue("iFrameUrl");return e&&"string"==typeof e&&"https:"===window.location.protocol&&(e=e.replace("http:","https:")),e},isScrollableIFrame:us},aggregatedMethods:{aggregations:{onInitializing:function(){var e=this,t=e.getPropertyValue("iFrameUrl");e.inEmptyStateFlag.setValue(!t)}}}}})}(),function(){var e={id:"SoundcloudPlayerApp",version:1,name:void 0,url:function(){return f.combinePaths(Settings.AppsIframeRoot,"/extern/soundcloud-app/soundcloud-app.html")},isCacheDisabled:!1,type:"ui",resizingSettings:{minSize:{width:60,height:40}},manages:[{title:void 0,type:"main",showElementSettings:!0}],excludeFeatures:["HasBackground","HasPadding","HadBackgroundImage","HasBorder","HasBackgroundOverlay"],defaultProperties:{sizeAndPosition:{width:450,height:300,top:0,left:0}},settingCategories:[{title:void 0,settings:{trackUrl:{title:void 0,type:"text-box",defaultValue:"https://soundcloud.com/user-642461330/222066-foolboymedia-acid-lounge",isQueryParam:!0},trackId:{defaultValue:void 0,isDisableUserEdit:!0,isQueryParam:!0},height:{defaultValue:300,isDisableUserEdit:!0,isQueryParam:!0},autoPlay:{title:void 0,type:"check-box",defaultValue:!1,isQueryParam:!0}}}],features:["Resizable"]},t={id:"SoundcloudPlayer",apps:[e]};Ja.addAppContainer(t)}(),function(){ai.registerDefinition(ri,{newPaypalButton:{className:"paypalButton",features:[oi.PaypalFeature],ancestorElementType:ri.SkinButtonElement,customDelegatedProperties:["iconReference","formattedText"]}})}(),function(){ai.registerDefinition(ri,{newCheckoutButton:{className:"checkOutButton",features:[oi.CheckOutFeature],ancestorElementType:ri.SkinButtonElement,customDelegatedProperties:["iconReference","formattedText"]}})}(),function(){ai.registerDefinition(ri,{RssButton:{className:"rss-button",ancestorElementType:ri.SkinButtonElement,customDelegatedProperties:["iconReference","formattedText"],methods:{}}})}(),function(){ai.registerDefinition(ri,{StackDataListElement:{className:"data-list-element",title:"Stack Data List",itemName:"DataListItemTemplate",itemTitle:"Data List Item",features:[oi.HasResponsiveItem,oi.Resizable,oi.Selectable,oi.HasBackground,oi.HasBackgroundImage,oi.HasLayout,oi.Hideable,oi.HasBorder,oi.DataList],methods:{getDataSourceDefinition:function(){return hi.StackDataListElementView},calculateItemSizeOnMobile:function(e){var t=this.getPcTemplateSize();return{height:t?t.height*t.width/e.width:e.height,width:e.width}}},aggregatedMethods:{aggregations:{}}}})}(),function(){ai.registerDefinition(ri,{WorkHistoryDataListElement:{title:"Work History",itemTitle:"Work Item",itemName:"DataListItemTemplate",ancestorElementType:ri.StackDataListElement,defaultProperties:{itemFields:function(){return{index:{type:"index",title:"Index",name:"index",isDefaultField:!0},dateRange:{type:"dateRange",title:"Date Range",name:"dateRange",isDefaultField:!0},jobTitle:{type:"title",title:"Job Title",name:"jobTitle",isDefaultField:!0},jobDescription:{type:"description",title:"Job Description",name:"jobDescription",isDefaultField:!0},companyName:{type:"title",title:"Company Name",name:"companyName",isDefaultField:!0}}}},methods:{},aggregatedMethods:{aggregations:{}}}})}(),function(){ai.registerDefinition(ri,{SkillsDataListElement:{title:"Skills",itemTitle:"Skill",itemName:"DataListItemTemplate",ancestorElementType:ri.StackDataListElement,defaultProperties:{itemFields:function(){return{index:{type:"index",title:"Index",name:"index",isDefaultField:!0},skillTitle:{type:"title",title:"Skill Title",name:"skillTitle",isDefaultField:!0},skillLevel:{type:"percentage",title:"Skill Level",name:"skillLevel",isDefaultField:!0}}}},methods:{},aggregatedMethods:{aggregations:{onPropertiesChanged:function(e){var t=this;if(f.containsOneOfKeys(e,"itemFields")){var n=t.getPropertyValue("itemFields");n.skillLevel?n.skillLevel.type="percentage":void 0}}}}}})}(),function(){ai.registerDefinition(ri,{EducationHistoryDataListElement:{title:"Education",itemTitle:"Education",itemName:"DataListItemTemplate",ancestorElementType:ri.StackDataListElement,defaultProperties:{itemFields:function(){return{index:{type:"index",title:"Index",name:"index",isDefaultField:!0},dateRange:{type:"dateRange",title:"Date Range",name:"dateRange",isDefaultField:!0},degreeName:{type:"title",title:"Degree Name",name:"degreeName",isDefaultField:!0},educationDescription:{type:"description",title:"Education Description",name:"educationDescription",isDefaultField:!0},schoolName:{type:"title",title:"School Name",name:"schoolName",isDefaultField:!0}}}},methods:{},aggregatedMethods:{aggregations:{}}}})}(),function(){ai.registerDefinition(ri,{CertificationsDataListElement:{title:"Certifications",itemTitle:"Certification",itemName:"DataListItemTemplate",ancestorElementType:ri.StackDataListElement,defaultProperties:{itemFields:function(){return{index:{type:"index",title:"Index",name:"index",isDefaultField:!0},date:{type:"date",title:"Date",name:"date",isDefaultField:!0},certificationName:{type:"title",title:"Certification Name",name:"certificationName",isDefaultField:!0},certificationDescription:{type:"description",title:"Certification Description",name:"certificationDescription",isDefaultField:!0}}}},methods:{},aggregatedMethods:{aggregations:{}}}})}(),function(){ai.registerDefinition(ri,{VolunteerExperienceDataListElement:{title:"Volunteer Experience",itemTitle:"Voluntee Experience",itemName:"DataListItemTemplate",ancestorElementType:ri.StackDataListElement,defaultProperties:{itemFields:function(){return{index:{type:"index",title:"Index",name:"index",isDefaultField:!0},dateRange:{type:"dateRange",title:"Date Range",name:"dateRange",isDefaultField:!0},organizationName:{type:"title",title:"Organization Name",name:"organizationName",isDefaultField:!0},description:{type:"description",title:"Description",name:"description",isDefaultField:!0},role:{type:"title",title:"Role",name:"role",isDefaultField:!0},cause:{type:"title",title:"Cause",name:"cause",isDefaultField:!0}}}},methods:{},aggregatedMethods:{aggregations:{}}}})}(),function(){ai.registerDefinition(ri,{AccomplishmentsDataListElement:{title:"Accomplishments Experience",itemTitle:"Accomplishment",itemName:"DataListItemTemplate",ancestorElementType:ri.StackDataListElement,defaultProperties:{itemFields:function(){return{index:{type:"index",title:"Index",name:"index",isDefaultField:!0},date:{type:"date",title:"Date",name:"date",isDefaultField:!0},accomplishmentTitle:{type:"title",title:"Accomplishment Title",name:"accomplishmentTitle",isDefaultField:!0},description:{type:"description",title:"Description",name:"description",isDefaultField:!0}}}},methods:{},aggregatedMethods:{aggregations:{}}}})}(),function(){function e(e,t,n){var i=e.data.percentageController;i&&n&&n.type!==t.type&&(i.remove(),i=void 0),i?i.setSettings(t):(i=e.data.percentageController=co.create(t.type,{settings:t,percentage:e.getPropertyValue("percentageValue"),size:e.getContentSize()}),i.appendTo(e.data.$percentageContent));
}ai.registerDefinition(ri,{PercentageElement:{title:"Percentage Element",features:[oi.HasResponsiveItem,oi.Resizable,oi.Selectable,oi.HasBackground,oi.HasLayout,oi.HasPadding,oi.Clickable,oi.Hideable,oi.HasBorder,oi.Rotatable,oi.HasContent,oi.HasContentOverlay],properties:{percentageValue:{isStateProperty:!0,defaultValue:function(){return 50},onChange:function(e,t){e.isInitialized&&e.data.percentageController.setPercentage(t)},isBound:function(e){return void 0!==this.getBindingType(e)},getBindingType:function(e){return e.isBound(mi.percentage.getContentType())?mi.percentage.getContentType():void 0}},percentageWidget:{isStateProperty:!0,defaultValue:function(){return{type:"percentage1",color1:{mainColor:0,opacity:1,brightness:0,variation:!1},color2:{mainColor:0,opacity:1,brightness:.2,variation:!1},color3:{mainColor:0,opacity:1,brightness:.4,variation:!1},size1:20,size2:5,font:{themeFont:"heading1"}}},onChange:function(t,n,i,a){t.isInitialized&&e(t,n,a)}}},methods:{creationFunction:function(e){return e.data.$percentageContent=f('<div class="percentage-content"></div>')},hasBinding:function(){return void 0!==this.getBindingType()},getBindingType:function(){var e=this;return ui.percentageValue.getBindingType(e)},createBindingFieldsToProperties:function($super){var e=$super.call(this),t=mi.percentage.getContentType();return this.isBound(t)&&(e.percentageValue=Po.create(this,{propertyName:"percentageValue"})),e}},aggregatedMethods:{aggregations:{onBoundValueReady:function(e){var t=this,n=t.getBindingType();void 0!==n&&t.setBindingValueToProperty(e[n],"percentageValue")},onContentSizeChange:function(){var e=this;e.isInitialized&&e.data.percentageController.setSize(e.getContentSize())},onInitialized:function(){var t=this;e(t,t.getPropertyValue("percentageWidget")),t.instanceRemoving.one(function(){t.data.percentageController.remove()})},onInitializing:function(){var e=this;e.instanceRemoving.one(cs)}}}}})}(),function(){ai.registerDefinition(ri,{HtmlElement:{features:[oi.HasInnerShadow,oi.HasResponsiveItem,oi.Selectable,oi.HasBackground,oi.HasBackgroundImage,oi.Hideable,oi.HasLayout,oi.HasBorder,oi.HasPadding,oi.Rotatable,oi.HasGrowableContent],properties:{htmlType:{onChange:cs}},methods:{getDisplayName:function(){return this.htmlElementObject.getDisplayName()},getElementDataContentSize:function(){return this.htmlElementObject.getSize()}},aggregatedMethods:{aggregations:{onCreation:function(){var e=this,t=e.getPropertyValue("htmlType");t&&(e.htmlElementObject=Vr[t.name].create(),e.htmlElementObject.initialize())},onInitialized:function(){var e=this;e.htmlElementObject.appendTo(e.getContentLayer()),e.visibilityChangedEvent.bindAndExecute(function(){e.isInstanceVisible()?e.htmlElementObject.activate():e.htmlElementObject.deactivate()}),e.instanceRemoved.one(function(){e.htmlElementObject.dispose()})}}}}})}(),function(){ai.registerDefinition(ri,{HtmlSectionElement:{className:"html-section-element",features:[oi.ItemsContainer,oi.PageSection],methods:{hasHeight:ds,getPageContentInstance:function(){return va.getCurrentPage().getPageContentInstance()},addElementToPage:function(e){var t=this,n=t.getPageContentInstance(),i=n.addSectionElement(e,t);return ba.invalidateAreas(t,{updateSize:!1}),i}},ancestorElementType:ri.HtmlElement,aggregatedMethods:{aggregations:{onRemove:function(){var e=this;if(!e.isForTemplateUse()){var t=e.getPageContentInstance(),n=va.getPage(e.getPageId());t.removeSectionElement(n,e)}}}}}})}(),function(){ai.registerDefinition(ri,{SkinToggleButtonElement:{className:"skin-toggle-button-element",ancestorElementType:ri.SkinButtonElement,features:[oi.SkinSelectable],methods:{getValue:function(){return!!this.isUserSelected()}}}})}(),function(){ai.registerDefinition(ri,{SkinCheckBoxButtonElement:{className:"skin-checkbox-button-element",ancestorElementType:ri.SkinToggleButtonElement,features:[oi.HasInput],customDelegatedProperties:["formattedText"],methods:{getCalculatedOrder:function(){return this.data.formChild?-(1/0):void 0},getValue:function(){return!!this.isUserSelected()},setValue:function(e){this.userSelect(e)},clear:function(){this.setValue(!1)}}}})}(),function(){function e(){var e,t=this,n=t.instance,i=f('<div class="out-of-stock-overlay"><div class="out-of-stock-message">Out of Stock</div></div>'),a=n.childInstances&&n.childInstances[0].childInstances;if(a&&a.length>0)for(var r=0;r<a.length;r++){var o=a[r];if(o.elementType===ri.image){e=o.$element;break}}e?e.append(i):t.$element.append(i);var s=e||t.$element;s.hover(function(){s.addClass("out-of-stock")},function(){s.removeClass("out-of-stock")})}ai.registerDefinition(ri,{StoreFront:{className:"store-front-element",itemName:"ImageBox",properties:{StoreFrontCategoryId:{title:"Category",isStateProperty:!1,isStyleProperty:!1,defaultValue:gs,onChange:function(e,t){e.setCategoryId(t)}},IsPartOfStoreSection:{isNotForCustomProperty:!0,defaultValue:cs()}},defaultProperties:{dataInfo:function(){return{listType:mr.Store,specificCategory:""}}},features:[oi.SmartDataList],methods:{getDataSourceDefinition:function(){return hi.StoreFrontDataSource},setFilters:function(e){this.loadNewProducts(0,!0,void 0,e)},setSorting:function(e){var t=this;t.data.sorting=e,this.loadNewProducts(0,!0,t.data.categoryId,t.data.filters)},setCategoryId:function(e){var t=this;t.loadNewProducts(0,!0,e,{})},scrollToElementTop:function(e){var t=sa.getPageInstancesByType(ri.StoreCategoriesContainer);t.length>0&&ba.isElementVisible(t[0])&&(e=t[0]),!e||e.elementType!==ri.StoreFront&&e.elementType!==ri.StoreCategoriesContainer||window.scrollTo(0,ba.getElementOffset(e,!0).top)},loadNewProducts:function(e,t,n,i){var a=this;zr.Flags.SettingsLoaded.onceTrue(function(){if(!zr.Flags.HasStore.isFalse()){i=a.data.filter=i||void 0,e=e||0;var r=a.data.sorting;a.data.hasLoadedProducts=!1;var o=a.data.categoryId=n,s=a.getDataSource(),l=s.getDataService();if(l){var c=a.getPropertyValue("dataLayoutOptions"),u=c.elementsPerPage||void 0,d=u?e*u:0,g=t;if(t)a.inEmptyStateFlag.valueChangedEvent.fireNew(),l.populate(s,{categoryId:o,callLimit:u,addDummyItems:g,filters:i,callOffset:0,sorting:r},function(){a.data.hasLoadedProducts=!0,a.inEmptyStateFlag.valueChangedEvent.fireNew()});else{if(!s.supportsLoadMore())return;var f=s._currentProductCount;f&&(d=Math.min(f-1,d)),l.loadMore(s,{categoryId:o,callLimit:u,callOffset:d,filters:i,sorting:r})}}}})},getCurrentListController:function(){return Cr.getListByName(Ia.getStoreInformation().listName)},getCurrentCategory:function(){var e=this,t=e.getCurrentListController();if(t&&_e.isMasterListPage(va.CurrentPageData.getValue())){var n=t.currentDisplayedCategory.getValue();return n?n:void 0}},addNoProductsHandler:function(){var e=this,t=f('<div style="margin-top:-30px;" class="inner-text"></div>'),n=Ka.getThemeColor(4,2),i=f('<div class="description">No Products</div>').appendTo(t),a=f('<div style="color:'+n+';font-size:14px;" class="is-action">Return to "'+zr.allItemsName+'"</div>');a.appendTo(t);var r=f('<div class="failed-to-load-message"></div>');r.append(t);var o=function(){e.setCategoryId(""),zr.setCurrentCategory("")},s=x.createEventListener(e.inEmptyStateFlag.valueChangedEvent,function(t){e.data.hasLoadedProducts&&Er.performUpdateOnRenderingFinished(function(){var n;if(n=void 0!==t?t:e.inEmptyStateFlag.isTrue(),e.$element.toggleClass("element-empty-state",!1),n){var s=zr.getCategoryById(zr.currentCategory);s?(i.text("No products available for "+s.name),a.show(),a.unbind("click",o),a.bind("click",o)):(i.text("No Products"),a.hide()),e.$element.append(r)}else r.remove()})}).activateAndExecute();e.instanceRemoving.one(function(){s.dispose()})},onSmartDataLoaded:function(t,n){var i=this,a=Ia.getStoreInformation(),r=i.getItemsControllers();r&&r.length>0&&f.eachItem(t,function(t,n){var o=r[n.index];if(o){var s=n,l=o.$element;if(s){var c=o.instance,u="";s.productName&&(u=i.ToSeoUrl(s.productName,"-"));var d=s.id;s.navId&&(d=s.navId);var g={url:{masterListPageId:a.connectedListPage,suffixFragments:[d,u],keepCases:!0},type:"Pages"};c?(c.setPropertyValue("urlAddress",g),c.canEdit.setFalse()):s.productName&&o.initializeFlag.onceTrue(function(){o.instance.setPropertyValue("urlAddress",g)}),0===s.stockAmount&&o.initializeFlag.onceTrue(function(){Er.performUpdateOnRenderingFinished(function(){e.call(o)})})}l.click(function(){zr.setCurrentProduct(s)})}})}},aggregatedMethods:{aggregations:{onInitialized:function(){function e(){if(Ha.Flags.IsInMobileContext.isTrue()&&t.getPropertyValue("usePagesLayout")===!1){var e=t.getPropertyValue("dataLayoutOptions");e.elementsPerPage=8,t.setPropertyValue("dataLayoutOptions",e),t.setPropertyValue("usePagesLayout",!0)}}var t=this;if(!zr.canShowStore())return void t.hideElement();t.addNoProductsHandler();var n=t.getDataSource();if(n){e();var i=n.getDataService();if(i){var a=t.getPropertyValue("StoreFrontCategoryId");if(Z.Events.NavigableTabChanged.bind(function(e){var n=e.getParent();if(n&&n.elementType===ri.StoreFront){var i=e.data.currentTab,a=e.getChildInstances(),r=a.indexOf(i);t.loadNewProducts(r,!1,t.data.categoryId);var n=e.getParent();t.scrollToElementTop(n)}}),zr.Flags.EditingModeEnabled.valueChangedEvent.bind(function(e){e||t.loadNewProducts(0,!0,t.getPropertyValue("StoreFrontCategoryId"))}),a)t.loadNewProducts(0,!0,a);else{var r=void 0,o=t.getCurrentCategory();o&&(r=o),t.loadNewProducts(0,!0,r)}zr.Flags.HasStore.isFalse()?zr.Events.StoreInitialized.bind(function(){t.loadNewProducts(0,!0,a)}):zr.Events.StoreReinitialized.bind(function(){t.loadNewProducts(0,!0,a)})}}}}}}})}(),function(){function e(e,t,n){var i=f.valueOrDefaultArray(n,[t&&t.title,"Default Text"]);void 0===i||""===i?e.$element.css("visibility","hidden"):(e.setBindingValueToProperty(""+i,ui.text.name),e.$element.css("visibility","visible"))}function t(t,n){var i=this,a=ui.formattedText.getBindingType(i);if(void 0!==a){var r=i.getBindingFields(a);e(i,r,t[a])}else if("object"==typeof n){a=bi.Data;var r=i.getBindingFields(a);e(i,r,t[a]&&t[a].productBasePrice)}}ai.registerDefinition(ri,{hideableText:{ancestorElementType:ri.label,methods:{},aggregatedMethods:{aggregations:{onBoundValueReady:t}}},growableText:{ancestorElementType:ri.freeText,methods:{getElementDataContentSize:function(){var e=this,t=this.getElementDataContent(),n=t.outerSize();return e._maxHeight&&n.height>e._maxHeight&&(n.height=e._maxHeight),n}},aggregatedMethods:{aggregations:{onInitializing:function(){var e=this,t=e.getPropertyValue("sizeAndPosition");e._maxHeight=t.height},onBoundValueReady:function(e,t){var n=this,i=ui.formattedText.getBindingType(n);if(void 0!==i){var a=n.getBindingFields(i),r=e[i],o=f.valueOrDefaultArray(r,[a&&a.title,"Default Text"]);n.setBindingValueToProperty(""+o,ui.formattedText.name);var s=n.data;n.setPropertyValue("formattedText",""+o),n.refreshContentSize();var l="object"==typeof t.link?t.link.url:t.link;Er.performUpdateOnRenderingFinished(function(){s.$richTextContent=f(".rich-text-content",n.$element).dotdotdot({height:function(){var e=n.getContentSize();return e&&e.height},ignoredHeight:function(){return Math.ceil(n.calculateDecimalLineHeight()*n.calculateFontSize())},after:t.link?f('<a target="_blank" href="'+l+'">More</a>'):""})},n.id+"dotdotdot")}}}}}}),ai.registerDefinition(ri,{hideableTextDetail:{ancestorElementType:ri.freeText,className:"hideable-text-detail",methods:{},aggregatedMethods:{aggregations:{onBoundValueReady:t}}}})}(),function(){function e(e,t,n){if(n&&n.label){e.showElement();var i=n.label;e.setBindingValueToProperty(i,ui.text.name)}else e.hideElement()}ai.registerDefinition(ri,{Location:{ancestorElementType:ri.label,aggregatedMethods:{aggregations:{onBoundValueReady:function(t){var n=this,i=bi.Location;if(void 0!==i){var a=n.getBindingFields(i);e(n,a,t[i])}}}}}})}(),function(){ai.registerDefinition(ri,{DateTime:{ancestorElementType:ri.date,methods:{getBindingType:function(){return mi.dateTime.getContentType()}}}})}(),function(){ai.registerDefinition(ri,{StorePrice:{className:"store-price-element",ancestorElementType:ri.hideableText,properties:{isLineThrough:{title:"Line-through",isStateProperty:!0,isStyleProperty:!0,category:ci.TextStyle,defaultValue:ds,onChange:function(e,t){f(".text-content.element-text-container",e.$element).toggleClass("has-text-is-line-through",!!t),e.refreshTextLayout()}}},defaultProperties:{sizeAndPosition:function(){return{width:200,height:30,top:0,left:0}},horizontalAlign:function(){return ot.Left},fontSize:function(){return 13},isLineThrough:us},aggregatedMethods:{aggregations:{onInitialized:function(){var e=this;return f.browser.mozilla&&f(".text-content.element-text-container",e.$element).addClass("default-font"),!1}}}}})}(),function(){ai.registerDefinition(ri,{StoreCategoriesBreadcrumb:{className:"store-breadcrumb-element",itemName:"ImageBox",properties:{StoreCategoriesBreadcrumb_TargetStoreFrontElementId:{title:"Products list",isStateProperty:!1,isStyleProperty:!1,defaultValue:gs}},features:[oi.HasResponsiveItem,oi.Selectable,oi.Hideable,oi.HasLayout,oi.HasGrowableContent,oi.ItemsContainer],methods:{clearContainer:function(){var e=this;e.$elementContentBox.empty(),e.$elementContentBox.removeClass("with-children")},creationFunction:cs,getDataSource:gs,getSkinSupportedStates:function(){return[Oi.ElementSelectedState,Oi.MouseOverState,Oi.MouseDownState]},getCurrentListController:function(){return Cr.getListByName(Ia.getStoreInformation().listName)},getStoreFrontInstances:function(){var e=sa.getPageInstancesByType(ri.StoreFront);return e.length>0?e:null},navigateToCategory:function(e){var t=this,n=t.getStoreFrontInstances();n.length>0&&f.eachItem(n,function(t,n){n.setCategoryId(e)}),zr.setCurrentCategory(e)},getBreadcrumbElementsRecursive:function(e,t){var n=this;if(e){var i;e.child?(i=f("<span class='bread-crumb-element with-child cursor-pointer'><span class='underline'>{0}</span></span>".format(f.fn.trimMiddle(e.name))),i.click(function(){n.navigateToCategory(e.id)})):i=f("<span class='bread-crumb-element cursor-pointer'><span class='has-text-is-bold'>{0}</span></span>".format(f.fn.trimMiddle(e.name))),t.append(i),t.addClass("with-children"),e.child&&(i.addClass("with-child"),n.getBreadcrumbElementsRecursive(e.child,t))}},renderData:function(e){var t=this;t.clearContainer(),t.getBreadcrumbElementsRecursive(e,t.$elementContentBox)}},aggregatedMethods:{aggregations:{onInitialized:function(){var e=this;e.setPropertyValue("dataLayout",Zi.PagesColumn),e.clearContainer(),zr.Events.CurrentCategoryChanged.bind(function(){e.renderData(zr.getCurrentCategoryTree())});var t=zr.getCurrentCategoryTree();t&&e.renderData(t)}}}}})}(),function(){ai.registerDefinition(ri,{StoreCategoriesContainer:{className:"store-categories-container",itemName:"ImageBox",ancestorElementType:ri.userBox,features:[oi.HasContent,oi.HasDesktopRows,oi.HasDynamicHeightBox,oi.HasText],properties:{showVariants:{isStateProperty:!1,isStyleProperty:!1,defaultValue:ds},showSorting:{isStateProperty:!1,isStyleProperty:!1,defaultValue:ds},showCategories:{isStateProperty:!1,isStyleProperty:!1,defaultValue:us}},methods:{toggleBackground:function(e){var t=this;t.$elementBackgroundTarget.css("display",e?"block":"none"),t.getImageBox()?t.getImageBox().$element.css("display",e?"block":"none"):e||t.imageBoxCreatedFlag.onceTrue(function(){var e=t.getImageBox();e&&e.$element.addClass("element-background-layer-hidden")},"hideimagebox")},toggleElementsWithType:function(e,t){for(var n=this,i=n.childInstances,a=0;a<i.length;a++){var r=i[a];e.indexOf(r.elementType)>-1&&(t?r.$element.css("display",""):r.$element.css("display","none"))}n.updateSize()},toggleCategoriesElements:function(e){var t=this;e&&t.getPropertyValue("showCategories")===!1&&(e=!1);var n=[ri.line,ri.StoreCategories,ri.StoreCategoriesBreadcrumb,ri.StoreSelectedFilters];t.toggleElementsWithType(n,e)},toggleFilterElements:function(e){var t=this,n=[];if(e){var i=[],a=[];t.getPropertyValue("showVariants")===!1?a.push(ri.StoreFilters):i.push(ri.StoreFilters),t.getPropertyValue("showSorting")===!1?a.push(ri.StoreSortingFilter):i.push(ri.StoreSortingFilter),t.toggleElementsWithType(i,!0),t.toggleElementsWithType(a,!1)}else n=[ri.StoreFilters,ri.StoreSortingFilter];t.toggleElementsWithType(n,e)},toggleAllElements:function(e){for(var t=this,n=t.childInstances,i=0;i<n.length;i++){var a=n[i];a.$element.css("display",e?"block":"none")}t.updateSize()},manageCategoryChanges:function(){var e=this;zr.Events.SelectedFiltersChanged.bind(function(){e.updateSize()}),zr.Events.CurrentCategoryChanged.bind(function(){e.updateSize()})},checkForFiltersOrCategories:function(){var e=this,t=zr.Flags.HasVariants.getValue(),n=zr.Flags.HasCategories.getValue();e.data.hasAnyCatsVariantsOrStock=n||t,e.toggleFilterElements(t),e.toggleCategoriesElements(n);var i=e.getPropertyValue("showSorting")===!1,a=e.getPropertyValue("showVariants")===!1||!t,r=e.getPropertyValue("showCategories")===!1||!n,o=i&&a&&r;if(!e.data.hasAnyCatsVariantsOrStock||o){var s=!1;e.toggleAllElements(s),e.toggleBackground(s),e.updateSize()}else e.toggleBackground(!0),e.updateSize()}},aggregatedMethods:{aggregations:{onInitialized:function(){var e=this;e.$element.removeClass("clickable-element"),e.propertyChangedEvent.bindAndExecute("fontColor",function(t){t=t||e.getPropertyValue("fontColor"),t&&e.$element.css("color",Ka.evaluateColorBinding(t,!0))}),e.manageCategoryChanges();var t=Ha.Flags.IsInMobileContext.isTrue();t&&e.$element.addClass("mobile-view"),zr.Events.FiltersChanged.bindAndExecute(function(){e.checkForFiltersOrCategories()}),zr.Events.CategoriesChanged.bind(function(){e.checkForFiltersOrCategories()})}}}}})}(),function(){var e="active",t="ontouchstart"in window;ai.registerDefinition(ri,{StoreCategories:{className:"store-categories-element",itemName:"ImageBox",properties:{StoreCategories_TargetStoreFrontElementId:{title:"Products list",isStateProperty:!1,isStyleProperty:!1,defaultValue:gs}},features:[oi.HasResponsiveItem,oi.Selectable,oi.Hideable,oi.HasLayout,oi.HasGrowableContent,oi.ItemsContainer,oi.HasDialog],methods:{creationFunction:cs,getDataSourceDefinition:function(){return hi.StoreFiltersDataSource},getDataSource:gs,getStoreFrontInstances:function(){var e=sa.getPageInstancesByType(ri.StoreFront);return e.length>0?e:null},getSkinSupportedStates:function(){return[Oi.ElementSelectedState,Oi.MouseOverState,Oi.MouseDownState]},getCurrentListController:function(){return Cr.getListByName(Ia.getStoreInformation().listName)},getPotentialSelectedMenuItemId:function(){var e=this,t=e.getCurrentListController();if(_e.isMasterListPage(va.CurrentPageData.getValue())){var n=e.getDataSource().getCollectionItems().getItems(),i=t.currentDisplayedCategory.getValue(),a=f.findFirst(n,function(e,t){return t.id===i});return a?a.id:void 0}},unSelectAll:function(e){f.eachItem(e,function(e,t){var n=t.instance.getSkinInstance();n.userSelect(!1)})},navigateToCategory:function(e){var t=this,n=t.getStoreFrontInstances();n.length>0&&f.eachItem(n,function(t,n){n.getPropertyValue("StoreFrontCategoryId")||n.setCategoryId(e)}),zr.setCurrentCategory(e)},addSelectedStateByID:function(t){var n=this;f(".category-element",n.$element).removeClass(e),setTimeout(function(){var i=f("#category-"+t,n.$element);i.addClass(e);var a=i.closest(".category-root");a.addClass(e)},0)},addClickHandler:function(e,t){var n=this;e.click(function(e){if(!e.target.classList.contains("categories-backdrop")){e.stopPropagation();var i=t.id;n.navigateToCategory(i)}})},addSubCategories:function(e,t,n){n=n||0;for(var i=t.$container,a=this,r=e.some(function(e){return e.subCategories&&e.subCategories.length>0}),o=0;o<e.length;o++){var s,l=e[o],c=f('<div class="element-container"></div>'),u=f('<div class="category-element" id="category-'+e[o].id+'"></div>');if(n>0){var d=15*n+"px";u.addClass("submenu-inner-child"),s=f('<span style="padding-left:'+d+'">'+f.fn.trimMiddle(l.name)+"</span>")}else s=f("<span>"+f.fn.trimMiddle(l.name)+"</span>");u.append(s),c.append(u);var t={$container:c,$title:s,$dropDownContainer:t.$dropDownContainer};a.addClickHandler(u,l,t);var g=n+1;l.subCategories&&l.subCategories.length>0?(1===g&&u.addClass("submenu-with-children"),a.addSubCategories(l.subCategories,t,g)):r&&1===g&&u.addClass("submenu-with-children"),i.append(c)}},getListElements:function(e){for(var t=f("<div></div>"),n=0;n<e.length;n++){var i=e[n],a=i.subCategories&&i.subCategories.length>0;f('<li class="popover-item'+(a?" has-page":"")+'" data-index="'+n+'">'+f.fn.trimMiddle(i.name)+"</li>").appendTo(t)}return t},getCategoryTitle:function(e,t){return t=t||"",e.child?(t+=e.name+" > ",this.getCategoryTitle(e.child,t)):t?t+e.name:e.name},findItemById:function(e,t){var n=this;t=t||n.data.clonedItems;for(var i=0;i<t.length;i++){var a=t[i];if(a.subCategories&&a.subCategories.length>0){if(a.id===e)return a;var r=n.findItemById(e,a.subCategories);if(r)return r}}return null},createMainCategoriesMobilePage:function(e,t){var n=this;if(e.subCategories&&e.subCategories.length>0)n.createCategoriesPage(e.subCategories,e.id,t);else{var i=e.id;n.navigateToCategory(i),t.changeSelectedText(f.fn.trimMiddle(e.name,15)),t.$element.removeClass("active"),n.closeDialog()}},createListItemsClick:function(e,t,n){var i=this,a=f(".popover-item",e);a.click(function(e){e.preventDefault();var a=t[~~e.currentTarget.getAttribute("data-index")];i.createMainCategoriesMobilePage(a,n)})},createCategoriesPage:function(e,t,n){var i,a=this,r=Ka.getThemeColor(4,2);if(t?(i=f('<div style="height:40px;line-height: 40px;font-weight: bold;color:'+r+';">< BACK</div>'),i.click(function(e){e.preventDefault();var i=a.findItemById(t),r=i.parentId?a.findItemById(i.parentId).subCategories:a.data.clonedItems;a.createCategoriesPage(r,i.parentId,n)})):(i=f('<div style="height:40px;line-height: 40px;font-weight: bold;color:'+r+';">X CLOSE</div>'),i.click(function(e){e.preventDefault(),n.$element.removeClass("active"),a.closeDialog()})),a.setDialogHeaderContent(i),t){var o=zr.getCurrentCategoryTree(t,!1),s=a.getCategoryTitle(o);a.setDialogTitle(s)}else a.setDialogTitle("Categories");var l=e.slice();if(t)l.push({id:t,name:"All "+s});else{var c={name:zr.allItemsName,id:""};l.push(c)}a.data.currentPage=a.getListElements(l,n),a.createListItemsClick(a.data.currentPage,l,n),a.setDialogContent(a.data.currentPage)},renderMobileElement:function(e){var t=this,n={label:"View",defaultValue:zr.allItemsName},i=zo.create({data:n}),a=i.$element;t.data.selectfieldElement=a,t.createDialog({classes:"popover",top:20}),t.createCategoriesPage(e,void 0,i),a.click(function(e){e.preventDefault(),t.openDialog()});var r=f('<div class="store-filters-element no-background"></div>');return r.append(a),r},renderDesktopElement:function(n){function i(e){e.currentTarget.classList.add("hover")}function a(e){e.currentTarget.classList.remove("hover")}for(var r=this,o=f('<ul class="element-container cf"></ul>'),s=0;s<n.length;s++){var l,c=n[s];l=f('<li class="category-root category-element" id="category-'+n[s].id+'"></li>');var u=f("<span>"+f.fn.trimMiddle(c.name)+"</span>");if(0===s&&l.addClass(e),l.append(u),o.append(l),r.addClickHandler(l,c),c.subCategories&&c.subCategories.length>0){t?l.click(function(e){f(this).data("clicked_once")?(a(e),f(this).data("clicked_once",!1)):(e.preventDefault(),i(e),f(this).data("clicked_once",!0))}):l.hover(function(e){i(e)},function(e){a(e)}),l.addClass("with-children");var d=f('<div class="subcategories"></div>');if(t){var g=f('<div class="categories-backdrop"></div>');g.click(function(){d.removeClass("hover")}),d.append(g)}l.append(d),r.addSubCategories(c.subCategories,{$container:d,$title:u,$dropDownContainer:l})}}return r.addHoverEffects(),o},renderElementInMode:function(e,t){var n,i=this;return n=e?i.renderMobileElement(t):i.renderDesktopElement(t)},renderData:function(e){var t=e.slice(),n=this;t&&0!==t.length?n.showElement():n.hideElement();var i=n.$element,a={name:zr.allItemsName,id:""};Ha.Flags.IsInMobileContext.isFalse()&&t.unshift(a),n.data.clonedItems=t;var r;r=n.renderElementInMode(Ha.Flags.IsInMobileContext.isTrue(),t),i.empty(),i.append(r)},addHoverEffects:function(){var e=this,n=Ka.getThemeColor(4,2);t||f(".category-element",e.$element).hover(function(e){e.currentTarget.style.color=n},function(e){e.currentTarget.style.color=""})},onDialogClosed:function(){var e=this;e.data.selectfieldElement.removeClass("active")}},aggregatedMethods:{aggregations:{onInitialized:function(){var e=this,t=zr.getAvailableCategories();t.length>0&&e.renderData(t),zr.Events.CategoriesChanged.bind(function(t){e.renderData(t)}),zr.Events.CurrentCategoryChanged.bind(function(t){e.addSelectedStateByID(t)})}}}}})}(),function(){ai.registerDefinition(ri,{StoreSubCategories:{className:"store-categories-element",itemName:"ImageBox",features:[oi.DataList],methods:{getDataSourceDefinition:function(){return hi.StoreCategoriesDataSource},getSkinSupportedStates:function(){return[Oi.ElementSelectedState,Oi.MouseOverState,Oi.MouseDownState]},getPotentialSelectedMenuItemId:function(){var e=this,t=e.getCurrentListController();if(_e.isMasterListPage(va.CurrentPageData.getValue())){var n=e.getDataSource().getCollectionItems().getItems(),i=t.currentDisplayedCategory.getValue(),a=f.findFirst(n,function(e,t){return t.id===i});return a?a.id:void 0}},onSmartDataLoaded:function(){var e=this,t=Ia.getStoreInformation(),n=e.getItemsControllers();if(n&&n.length>0){f.eachItem(n,function(n,i){var a=i._dataSourceOptions.dataItem;if(a){var r=i.instance,o="";a.categoryName&&(o=e.ToSeoUrl(a.categoryName,"-"));var s=a.id,l={url:{masterListPageId:t.connectedListPage,suffixFragments:[Cr.SupportedListTypes.category,s],keepCases:!0},type:"Pages"};r?(r.setPropertyValue("urlAddress",l),r.canEdit.setFalse()):i.initializeFlag.onceTrue(function(){i.instance.setPropertyValue("urlAddress",l)})}i.$element.click(function(){zr.setCurrentProduct(a)})});var i=e.getPotentialSelectedMenuItemId();if(i){var a=e.getInstanceController(i),r=a.instance.getSkinInstance();r.userSelect(!0)}}},getCurrentListController:function(){return Cr.getListByName(Ia.getStoreInformation().listName)},unSelectAll:function(e){f.eachItem(e,function(e,t){var n=t.instance.getSkinInstance();n.userSelect(!1)})}},aggregatedMethods:{aggregations:{onInitialized:function(){var e=this,t=e.getDataSource();if(t){var n=t.getDataService();n&&(n.events.LoadingFinished.bind(function(){var t=e.getItemsControllers();t&&t.length>0&&f.eachItem(t,function(n,i){i.$element.click(function(){var n=(e.getPropertyValue("StoreCategories_TargetStoreFrontElementId"),sa.getPageInstancesByType(ri.StoreFront));n.length>0&&f.eachItem(n,function(e,t){t.setCategoryId(i.getDataItemId())}),e.unSelectAll(t);var a=i.instance.getSkinInstance();a.userSelect(!0)})})}),zr.Flags.EditingModeEnabled.valueChangedEvent.bind(function(){n.populate(t,{parentId:null})}),e.propertyChangedEvent.bindAndExecute("StoreFrontCategoryId",function(){n.populate(t,{parentId:null})}))}}}}}})}(),function(){ai.registerDefinition(ri,{StoreFiltersContainer:{className:"store-categories-element",itemName:"ImageBox",ancestorElementType:ri.userBox}})}(),function(){ai.registerDefinition(ri,{StoreFilters:{className:"store-filters-element",itemName:"ImageBox",properties:{StoreFilters_TargetStoreFrontElementId:{title:"Products list",isStateProperty:!1,isStyleProperty:!1,defaultValue:gs}},features:[oi.HasResponsiveItem,oi.Selectable,oi.Hideable,oi.HasLayout,oi.HasGrowableContent,oi.ItemsContainer,oi.HasDialog],methods:{creationFunction:cs,getDataSourceDefinition:function(){return hi.StoreFiltersDataSource},getDataSource:gs,addFilterToList:function(e,t,n){var i=this.data.availableFilters[e];if(i){i.mappedFilters||(i.mappedFilters={}),i.mappedFilters[n.choiceId]=n;var a=i.mappedFilters[n.choiceId];a.element=t,a.active=!1}},checkFilterStates:function(e){var t=this;for(var n in e){var i=e[n],a=t.data.availableFilters[n].mappedFilters;for(var r in i){var o=i[r];a[r].active=o;var s=a[r].element;s.prop("checked",o),s.trigger("change")}}},getActiveFilters:function(){var e=this,t=e.data.availableFilters,n={};for(var i in t){var a=t[i].mappedFilters;for(var r in a){var o=a[r];o.active&&(n[i]||(n[i]={}),n[i][r]=!0)}}return n},setFilters:function(e,t){for(var n=this,i=f("input",t),a=0;a<i.length;a++){var r=i[a],o=r.checked;e[r.id].active=o}var s=n.getActiveFilters(),l=sa.getPageInstancesByType(ri.StoreFront);l.length>0&&f.eachItem(l,function(e,t){t.setFilters(s)}),zr.setSelectedFilters(s)},onFilterClick:function(e,t){if(!Ha.Flags.IsInMobileContext.isTrue()){var n=this,i=e.currentTarget,a=n.data.availableFilters[t];e.currentTarget.checked?a.mappedFilters[i.id].active=!0:a.mappedFilters[i.id].active=!1;var r=n.getActiveFilters(),o=sa.getPageInstancesByType(ri.StoreFront);this.filterTimeout&&window.clearTimeout(this.filterTimeout),f("*").css("cursor","progress"),this.filterTimeout=window.setTimeout(function(){f("*").css("cursor","default"),o.length>0&&f.eachItem(o,function(e,t){t.setFilters(r)}),zr.setSelectedFilters(r)},2e3)}},getSkinSupportedStates:function(){return[Oi.ElementSelectedState,Oi.MouseOverState,Oi.MouseDownState]},getCurrentListController:function(){return Cr.getListByName(Ia.getStoreInformation().listName)},updateSelectText:cs,unSelectAll:function(e){f.eachItem(e,function(e,t){var n=t.instance.getSkinInstance();n.userSelect(!1)})},renderElementInMode:function(e,t,n){if(n.empty(),t){var i=Object.keys(e).length;if(i>0){var a=u.call(this,e);n.append(a)}}else for(var r in e){var o=e[r];if(o.attributes){var s=c.call(this,o,n).$element;n.append(s)}}},renderFilters:function(e){var t=this;e&&0!==e.length?t.showElement():t.hideElement();var n=t.$element;t.renderElementInMode(e,Ha.Flags.IsInMobileContext.isTrue(),n)},initElement:function(){var e=this;e.hideElement(),e.setPropertyValue("dataLayout",Zi.PagesColumn);var t=zr.getAvailableFilters();t.length>0&&(e.data.availableFilters=t,e.renderFilters(t)),zr.Events.FiltersChanged.bind(function(t){e.data.availableFilters=t,e.renderFilters(t)}),zr.Events.SelectedFiltersChanged.bind(function(t){e.checkFilterStates(t)})}},aggregatedMethods:{aggregations:{onInitialized:function(){var e=this;e.initElement()}}}}})}(),function(){ai.registerDefinition(ri,{StoreSortingFilter:{ancestorElementType:ri.StoreFilters,methods:{initElement:function(){var e=this,t={attributes:[{choiceId:"",name:"Featured"},{choiceId:"pricedes",name:"Price high to low"},{choiceId:"priceasc",name:"Price low to high"}],name:"Sort",optionId:"__sorting",label:"Sort by"},n=e.$element;n.addClass("no-background"),n.empty(),t.defaultValue=t.attributes&&t.attributes[0].name,t.smallWidth=!0,t.onToggle=function(t){e.$element.toggleClass("open",t)};var i=c.call(this,t,n),a=i.$element;n.append(a)},onFilterClick:function(e){var t=e.currentTarget.id,n=sa.getPageInstancesByType(ri.StoreFront);n.length>0&&f.eachItem(n,function(e,n){n.setSorting(t)}),this.$element.removeClass("open")},updateSelectText:function(e,t){f(".select",t).html('<span class="filter-label">Sort by: </span><span class="filter-text">'+e.currentTarget.innerText+"</span>")}}}})}(),function(){ai.registerDefinition(ri,{StoreSelectedFilters:{className:"store-selected-filters-element",itemName:"ImageBox",properties:{StoreSelectedFilters_TargetStoreFrontElementId:{title:"Selected Filters",isStateProperty:!1,isStyleProperty:!1,defaultValue:gs}},features:[oi.HasResponsiveItem,oi.Selectable,oi.Hideable,oi.HasLayout,oi.HasGrowableContent,oi.ItemsContainer,oi.HasBackground],methods:{creationFunction:cs,addClickInPreviewMode:function(e,t){e.click(function(e){e.preventDefault(),t()})},getDataSourceDefinition:function(){return hi.StoreFiltersDataSource},getDataSource:gs,changeFilters:function(e){var t=sa.getPageInstancesByType(ri.StoreFront);t.length>0&&f.eachItem(t,function(t,n){n.setFilters(e)}),zr.setSelectedFilters(e)},getSkinSupportedStates:function(){return[Oi.ElementSelectedState,Oi.MouseOverState,Oi.MouseDownState]},getCurrentListController:function(){return Cr.getListByName(Ia.getStoreInformation().listName)},updateSelectText:cs,createFilterLabel:function(e,t,n){var i,a=this,r=zr.getAvailableFilters(),o=r[t],s="#eee",l=a.getPropertyValue("backgroundColor");
if(l&&(s=Ka.evaluateColorBinding(l,!0)),o&&o.isColor&&"multi"!==e)i=f('<span style="border:1px solid #a5a5a5;background-color:'+e.replace("_","#")+'" class="cursor-pointer filter-label"></span>');else if(o&&o.mappedFilters&&o.mappedFilters[e]){var c=o.mappedFilters[e].name;i=f('<span class="cursor-pointer filter-label" style="background-color:'+s+';">'+c+"</span>")}else i=f('<span class="cursor-pointer filter-label" style="background-color:'+s+';">'+e+"</span>");return a.addClickInPreviewMode(i,function(){n[t][e]=!1,a.changeFilters(n)}),i},disableAllFilters:function(e){var t=this;for(var n in e){var i=e[n];for(var a in i)e[n][a]=!1}t.changeFilters(e)},renderSelectedFilters:function(e){var t=this,n=t.$elementContentBox;if(n.empty(),e&&!f.isEmptyObject(e)){var i=0;for(var a in e){var r=e[a];if(Object.keys(r).length>0){var o=[];for(var s in r)r[s]&&o.push(s);for(var l=0;l<o.length;l++){var c=o[l],u=t.createFilterLabel(c,a,e);n.append(u),i++}}}if(i>0){var d=Ka.getThemeColor(4,2),g=f('<span class="clear-all cursor-pointer" style="color:'+d+'">clear filters</span>');t.addClickInPreviewMode(g,function(){t.disableAllFilters(e)}),n.append(g)}}}},aggregatedMethods:{aggregations:{onInitialized:function(){var e=this;e.setPropertyValue("dataLayout",Zi.PagesColumn),zr.Events.SelectedFiltersChanged.bindAndExecute(function(t){t&&e.renderSelectedFilters(t)}),e.propertyChangedEvent.bindAndExecute("backgroundColor",function(t){if(t){var n=f(".filter-label",e.$element);n.css("backgroundColor",Ka.evaluateColorBinding(t,!0))}})}}}}})}();var zo=fs(function(){var e={SelectField:{id:"select-field-template"}};this.create=function(t){t=f.extend({data:{}},t);var n=t.data,i=f.useTemplate(e.SelectField,{name:n.name}),a=f(".filter-click-background",i);a.click(function(){i.removeClass("active"),n.onToggle&&n.onToggle(!1)});var r=f(".real-dropdown",i);r.click(function(){i.toggleClass("active"),n.onToggle&&n.onToggle(i.hasClass("active"))});var o=f(".select",i);return n.label&&o.html('<span class="filter-label">'+n.label+': </span><span class="filter-text">'+(n.defaultValue||"")+"</span>"),this.controller={$element:i,$select:o,changeSelectedText:this.changeSelectedText,onDropDownClick:this.onDropDownClick},this.controller},this.changeSelectedText=function(e){f(".filter-text",this.$element).text(e)},this.onDropDownClick=cs}),_o=fs(function(){var e={Popover:{id:"popover-template"}};this.create=function(t){t=f.extend({smallWidth:!1},t);var n=(t.data,f.useTemplate(e.Popover)),i=n;t.smallWidth&&i.addClass("small-width");var a=f(".element-container",n),r=f(".title",n),o=f(".header-content",n);return this.controller={$element:n,$contentContainer:a,$title:r,$headerContent:o,addHeaderContent:this.addHeaderContent,clearHeaderContent:this.clearHeaderContent,clearContent:this.clearContent,changeTitle:this.changeTitle,addContent:this.addContent},this.controller},this.addContent=function(e){this.$contentContainer.append(e)},this.clearContent=function(){this.$contentContainer.empty()},this.changeTitle=function(e){this.$title.text(e)},this.clearHeaderContent=function(){this.$headerContent.empty()},this.addHeaderContent=function(e){this.$headerContent.append(e)}});!function(){function e(e){var t=Ka.getThemeColor(4,3);e.css("outline","2px solid "+t);var n=Ka.getThemeColor(0,0);e.css("border","2px solid "+n),e.css("padding","0")}function t(e){e.css("outline","2px solid #ccc"),e.css("padding","2px"),e.css("border","0")}function n(n,i,a){var o=this,s=f('<div class="store-variant-square"></div>'),l=Ka.getThemeColor(0,0),c=Ka.getThemeColor(3,3);if(s.css("color",c),s.css("background-color",l),n.color?"multi"===n.color?s.addClass("multi-color-background"):s.css("backgroundColor",n.color):s.text(n.name),n.selected?e(s):t(s),n.inStock===!1)if(s.addClass("out-of-stock"),n.color)try{n.color&&In.getLuma(n.color)>=128&&s.addClass("dark")}catch(u){}else s.css("backgroundColor","#ccc");return s.click(function(){zr.refreshDynamicPage(n.productId)}),n.hover?s.hover(function(){if(!n.selected){for(var t=i.index(),l=a.children(),c=t+1;c<l.length;c++)l[c].remove();for(var c=0;c<n.hover.length;c++)a.append(r.call(o,n.hover[c],a));e(s)}},function(){if(!n.selected){for(var e=i.index(),l=o._originalData,c=a.children(),u=e+1,d=u;d<c.length;d++)c[d].remove();for(var d=u;d<l.length;d++)a.append(r.call(o,l[d],a));t(s)}}):s.hover(function(){n.selected||e(s)},function(){n.selected||t(s)}),s}function i(e){var t=e.choices,n=e.name,i=f('<div class="dropdown-wrapper"></div>'),a=f('<div class="fake-dropdown"></div>');i.css("border","2px solid #ccc");var r=f('<div class="fake-select">Select '+n+"</div>");a.append(r),i.append(a);var o=f('<div class="real-dropdown"></div>');i.append(o);var s=f("<select></select>"),l=f('<option value="">'+r.text()+"</option>");s.append(l);for(var c=0;c<t.length;c++){var u=t[c],d="";u.inStock===!1&&(d=" (Out of Stock)");var g=f('<option value="'+u.productId+'">'+u.name+d+"</option>");s.append(g),u.selected&&(r.text(g.text()),l.remove(),g.attr("selected","selected"))}return o.append(s),s.change(function(e){e.currentTarget.value&&zr.refreshDynamicPage(e.currentTarget.value)}),i}function a(e){for(var t=0;t<e.length;t++)if(e[t].name&&e[t].name.length>5)return!0;return!1}function r(e,t){var r=this,o=e.choices;if(!o||0!==o.length){var s=f('<div class="store-variant-row"></div>'),l=this.getPropertyValue("fontColor");void 0!==l.mainColor&&(l=Ka.getThemeColor(l.mainColor,l.variation));var c=f('<div style="color:'+l+'" class="store-variant-name">'+e.name+"<div>");s.append(c);for(var u,d=a(o),g=o.length>5,p=o[0].color,h=e.optionId,m=r._originalData,v=0;v<m.length;v++){var y=m[v];if(y.choices)for(var b=0;b<y.choices.length;b++){var C=y.choices[b];if(C.hover)for(var I=0;I<C.hover.length;I++){var S=C.hover[I];S.optionId===h&&(d=d||a(S.choices),g=g||S.choices.length>5)}}}if(!d&&!g||p)for(var b=0;b<o.length;b++)u=n.call(this,o[b],s,t),s.append(u);else u=i.call(this,e,s,t),s.append(u);return s}}function o(e){for(var t=this._startWidth||360,n=f('<div class="element-filter-container" style="width:'+t+'px;"></div>'),i=0;i<e.length;i++){var a=r.call(this,e[i],n);n.append(a)}return n}f.fn.elementHeight=function(e,t){return f.fn.elementHeight.fakeEl||(f.fn.elementHeight.fakeEl=f('<span class="'+t+'">').hide().appendTo(document.body)),f.fn.elementHeight.fakeEl.empty(),f.fn.elementHeight.fakeEl.append(e),f.fn.elementHeight.fakeEl.height()},ai.registerDefinition(ri,{StoreVariantsContainer:{className:"store-variants-container",itemName:"ImageBox",properties:{variantHeight:{title:"Page",defaultValue:function(){return 0}}},defaultProperties:{dataLayout:function(){return{name:"OneColumn"}},dataLayoutOptions:function(){return{cols:1,rows:5,colsSpacing:10,rowsSpacing:10,oneColumn:!0}}},features:[oi.HasInnerShadow,oi.HasResponsiveItem,oi.Selectable,oi.HasBackground,oi.HasBackgroundImage,oi.Hideable,oi.HasLayout,oi.HasBorder,oi.HasPadding,oi.HasText,oi.Rotatable,oi.HasGrowableContent,oi.ItemsContainer],methods:{creationFunction:cs,getDataSourceDefinition:function(){return hi.StoreFiltersDataSource},getDataSource:gs,getSkinSupportedStates:function(){return[Oi.ElementSelectedState,Oi.MouseOverState,Oi.MouseDownState]},getCurrentListController:function(){return Cr.getListByName(Ia.getStoreInformation().listName)},renderVariants:function(e){var t=this;t.setPropertyValue("textStyles",va.getCoordinator().getPropertyValue("textStyles").bodyS),t._originalData=e;var n=o.call(this,e),i=f.fn.elementHeight(n,"store-variants-container");n.css("position","absolute"),n.css("height",i+"px"),t.data.$filterList=n,t.$element.append(t.data.$filterList),t.refreshContentSize(),t.setPropertyValue("variantHeight",i)},calculateNormalizedHeight:function(e){var t=this,n=t.getNoneContentSize();return e+n.height},getElementDataContentSize:function(){var e=this,t=this.getElementDataContent();return t?{width:360,height:e.getPropertyValue("variantHeight")}:{width:0,height:0}},getElementDataContent:function(){return this.data.$filterList},getNoneContentSize:function(){return{width:0,height:0,widthLeft:0,heightTop:0,widthRight:0,heightBottom:0}},hideVariants:function(){var e=this;e.setPropertyValue("variantHeight",0),e.refreshContentSize()}},aggregatedMethods:{aggregations:{onBoundValueReady:function(e,t){var n=this;sa.removeInstances(n.childInstances),n.data.$filterList&&n.data.$filterList.remove(),de.beginAtomicBatch(!1),Er.startRenderingBatch(),fa.UpdateBatch.start(),t.productVariants&&t.productVariants.length>0?(zr.setCurrentVariants(t.productVariants),n.renderVariants(t.productVariants)):(!t.productVariants||t.productVariants&&0===t.productVariants.length)&&(zr.setCurrentVariants([]),n.hideVariants()),fa.UpdateBatch.finish(),Er.finishRenderingBatch(),de.endAtomicBatch()}}}}}),ai.registerDefinition(ri,{StoreDetailFiltersContainer:{ancestorElementType:ri.StoreVariantsContainer}})}(),function(){ai.registerDefinition(ri,{StoreCartButton:{className:"store-show-cart-button-element",ancestorElementType:ri.SkinButtonElement,customDelegatedProperties:["iconReference"],features:[oi.HasText],methods:{creationFunction:function(e){return e.data.$content=f("<div></div>").addClass("absolute-fill").addClass("show-cart-button"),e.data.$content},getOrCreateFixedDiv:function(){var e=this;return e.data.fixedDiv?e.data.fixedDiv:(e.data.fixedDiv=f('<div style="position:fixed;bottom:10px;right:10px;height:56px;width:56px;z-index: 1000000;"></div>'),e.data.fixedDiv)},addFixedStateMobile:function(){var e=this;Ha.Flags.IsInMobileContext.valueChangedEvent.bindAndExecute(function(){e.getPropertyValue("hasFloatingButtonEnabled")&&Ha.Flags.IsInMobileContext.isTrue()&&setTimeout(function(){var t=f("#body-element"),n=e.getOrCreateFixedDiv();t.append(n),e.parentInstance&&1===e.parentInstance.childInstances.length&&e.parentInstance.childInstances[0].id===e.id&&e.parentInstance.$element.hide(),n.append(e.$element)},100)})},createFloatingButton:function(){var e=this;e.setPropertyValue("topZIndex",1),e.setCalculatedPropertyValue("verticalDocking",dt.Bottom);var t=e.getPropertyValue("sizeAndPosition"),n=Math.max(t.height,56);n+=ss.getFooterHeight(),e.setPropertyFieldValue("margin","bottom",n);var i=Math.max(t.width,56);e.setCalculatedPropertyValue("horizontalDocking",ut.Right),e.setPropertyFieldValue("margin","right",i),e.addFixedState()},shouldDisplayOnMobile:us},properties:{hasFloatingButtonEnabled:{defaultValue:ds}},aggregatedMethods:{aggregations:{onAttached:function(){var e=this;return zr.canShowStore()?(e.addFixedStateMobile(),void window.setTimeout(function(){e.getPropertyValue("hasFloatingButtonEnabled")&&Ha.Flags.IsInMobileContext.isFalse()&&e.createFloatingButton(),e.$element.addClass(zr.getCartButtonSelector()),zr.initializeCartButton({amountLabel:e.$element.find(".has-content"),amountLabelSelector:".has-content"}),f(".clickable-element",e.$element).on("click",function(e){e.preventDefault(),e.stopPropagation(),window.AMStore&&window.AMStore.openShoppingCart()})},1500)):(e.hideElement(),void(Ha.Flags.IsInMobileContext.isTrue()&&e.parentInstance&&1===e.parentInstance.childInstances.length&&e.parentInstance.childInstances[0].id===e.id&&e.parentInstance.$element.hide()))}}}}})}(),function(){ai.registerDefinition(ri,{StoreBuyButton:{className:"store-show-buy-button-element",ancestorElementType:ri.userBox,customDelegatedProperties:["iconReference"],features:[oi.HasText],properties:{StoreBuyButtonText:{isNotForCustomProperty:!0,defaultValue:function(){return{AddToCart:void 0,OutOfStock:void 0,StockAmount:void 0,Item:void 0,Items:void 0,PleaseSelect:void 0}}}},methods:{setBuyButtonState:function(e){var t,n=this,i=n.button,a=zr.getStoreInformation().translations||{};if(i){var r=i.getStyleObject();e?(i.setPropertyValue("formattedText",a.AddToCart||"Add to cart"),t=Ka.createThemeColorBinding(4,{variation:3,opacity:1}),r.removeDisabledState("MouseOverState"),r.removeDisabledState("MouseDownState")):(i.setPropertyValue("formattedText",a.OutOfStock||"Out of stock"),t=Ka.createThemeColorBinding(4,{variation:3,opacity:.4}),r.setDisabledState("MouseOverState"),r.setDisabledState("MouseDownState")),r.getFieldData("backgroundColor").observableValue.setValue(t)}},setTextElementData:function(e,t){this.textElement&&(this.textElement.setPropertyValue("formattedText",e),t&&St.shake(this.textElement.$element,{times:5,distance:10,duration:60,direction:"left"}))},hideTextElement:function(){this.textElement&&this.textElement.$element.hide()},showTextElement:function(){this.textElement&&this.textElement.$element.show()},handleStockData:function(e){var t=this,n=e.stockAmount,i=4,a=-1!==n,r=0===n,o=i>n;if(r)t.setBuyButtonState(!1),t.hideTextElement();else if(a&&o)if(t.showTextElement(),t.setBuyButtonState(!0),zr.getFirstUnselectedVariant(e.productVariants))t.setTextElementData("");else{var s=zr.getStoreInformation().translations||{},l="Only "+n+" "+(n>1?"items":"item")+" in stock";if(s.StockAmount){var c=n>1?s.Items:s.Item;l=s.StockAmount.format(n,c)}t.setTextElementData(l)}else t.setBuyButtonState(!0),t.hideTextElement()},findChildren:function(){var e=this;f.eachItem(e.childInstances,function(t,n){n.elementType===ri.freeText?e.textElement=n:n.elementType===ri.SkinButtonElement&&(e.button=n)}),e.button&&(e.button.updateLabel=function(t,n){e.showTextElement(),e.setTextElementData(t,n)})}},aggregatedMethods:{aggregations:{onBoundValueReady:function(e,t){var n=this;n._init||n.findChildren(),n._init=!0,n.handleStockData(t)}}}}})}(),function(){ai.registerDefinition(ri,{StoreGalleryElement:{className:"store-gallery-element",customDelegatedProperties:["iconReference"],features:[oi.HasDataSource],methods:{getDataSourceDefinition:function(){return hi.StoreFrontDataSource},getClickedItem:function(e,t){var i;if(i=f(t.target).closest(".design-element.data-list-item"),i.length>0){var a=n(i[0]);if(a)return a.getDataItem()}},initClickHandler:function(){var e=this;e.mainImage&&e.gallery&&(e.lastClickedIndex={index:0},e.gallery.triggerActivated.bind(Li.MouseClick.name,function(t){var n=e.getClickedItem(e.gallery,t);if(void 0!==n){var i=function(e){var t=n.image.imageUrl.imageThumbnails;if(t){for(var i=t[t.length-1],a=0;a<t.length;a++)if(Math.max(t[a].width,t[a].height)>e){i=t[a];break}var r=i.url}else r=n.image.imageUrl.imagePath;return r.indexOf("//")>-1?Settings.ImageProxy+r:se.resolveImageUrl(n.image.imageUrl)};e.lastClickedIndex=n.index,n.image.imageUrl.imageHighRes?e.mainImage.setPropertyValue("imageUrl",{imagePath:n.image.imageUrl.imageHighRes||n.image.imageUrl.imagePath,useImageProxy:!0,resizeOnImageProxy:!1,preferredSizeFunction:i}):e.mainImage.setPropertyValue("imageUrl",{imagePath:n.image.imageUrl,useImageProxy:!0,resizeOnImageProxy:!1,preferredSizeFunction:i})}}),e.mainImage.getClickedIndex=function(){return{index:e.lastClickedIndex}},e.gallery.$element.addClass("webzai-clickable-behaviour"),e.mainImage.shouldResetItems=us,e.mainImage.getPopupItems=function(){var t=e.gallery,n=[],i=t.getPropertyValue("dataInfo");return i&&i.currentData&&(n=i.currentData),f.map(n,function(e){if(null!==e){var t=e.image.imageUrl;if(t)return{image:{imageUrl:{imagePath:t.imageHighRes||t.imagePath,useImageProxy:!0,resizeOnImageProxy:!1,preferredSizeFunction:function(e){for(var n=t.imageThumbnails||[],i={url:t.imageHighRes||t.imagePath},a=0;a<n.length;a++)if(Math.max(n[a].width,n[a].height)>e){i=n[a];break}return i.url.indexOf("//")>-1?Settings.ImageProxy+i.url:se.resolveImageUrl(t)}}},index:e.index,id:e.id}}})})},initDataChangeHandler:function(){var e=this;e.mainImage&&e.gallery&&(e.gallery.onBoundValueReady=function(t){if(e.mainImage&&e.gallery){e.lastClickedIndex={index:0};var n=this.getDataSource();if(n&&n.setDataItems){var i=t[bi.Data],a=i.productImage.imageUrl;e.mainImage.setPropertyValue("imageUrl",a),f.isEmptyObject(a)?e.mainImage.hideElement():e.mainImage.showElement();var r=i.productDescription||i.title||"";e.mainImage.setPropertyValue("alt",r),i.productImages.length<2?e.gallery.hideElement():e.gallery.showElement(),e.gallery.setPropertyValue("dataInfo",{}),n.setDataItems(i.productImages)}}})},findGalleryChildren:function(){var e=this;f.eachItem(e.childInstances,function(t,n){n.elementType===ri.image?e.mainImage=n:n.elementType===ri.Gallery&&(e.gallery=n)}),e.mainImage&&e.gallery&&(e.mainImage.hasBinding=us,e.mainImage.setPropertyValue("binding",e.getPropertyValue("binding")),e.gallery.hasBinding=us,e.gallery.setPropertyValue("binding",e.getPropertyValue("binding")))}},ancestorElementType:ri.userBox,aggregatedMethods:{aggregations:{onAttached:function(){var e=this;zr.canShowStore()||e.hideElement()},onBoundValueReady:function(e,t){var n=this;n._init||(n.findGalleryChildren(),n.initDataChangeHandler(),n.initClickHandler()),n._init=!0,n.gallery&&n.gallery.onBoundValueReady(e,t)}}}}})}(),function(){ai.registerDefinition(ri,{BreadcrumbElement:{className:"breadcrumb-element",ancestorElementType:ri.userBox,customDelegatedProperties:["iconReference"],aggregatedMethods:{aggregations:{onInitialized:function(){var e=this;f.eachItem(e.childInstances,function(t,n){n.elementType===ri.freeText?e.textEl=n:n.elementType===ri.Icon&&(e.iconEl=n)}),e.iconEl&&e.iconEl.$element.css("minWidth","26px");var t=Ia.getStoreInformation(),n={url:{masterListPageId:t.isOnePageList?va.getMainPageId():t.connectedListPage,suffixFragments:[]},type:"Pages"},i=va.getPageData(n.url);pa.resolveUrl(n);if(e.textEl){var a=e.textEl.getPropertyValue("formattedText");"_pageName_"!==a&&void 0!==a||e.textEl.setPropertyValue("formattedText",i.title)}e.setPropertyValue("shouldUnderlineChildren",!0),e.setPropertyValue("urlAddress",n)}}}}})}(),function(){PhotosDataSourceEnum={Facebook:0,Flickr:1,Tumblr:2},ai.registerDefinition(ri,{FacebookPhotos:{className:"facebook-photos-element",itemName:"ImageBox",properties:{facebookPhotos_Settings:{title:"Page",defaultValue:function(){return{}},dataBindingKey:Mr.Keys.Instance.Social.Facebook},photosDataSource_Source:{title:"DataSource",defaultValue:function(){return PhotosDataSourceEnum.Facebook}}},features:[oi.SmartDataList,oi.HasDataBinding,oi.HasDataListPopup],methods:{getChildDataSourceDefinition:function(){return hi.FacebookPhotosAlbumDataSource},getDataSourceDefinition:function(){var e=this,t=e.getPropertyValue("eventsDataSource_Source");switch(t){default:return hi.FacebookPhotosDataSource}},getParameterProperties:function(){return[{propertyName:"facebookPhotos_Settings",propertyKey:"value",parameterName:"pageId"}]},popupItemsMappingFunction:function(e){var t=[],n=Ha.Flags.IsInMobileContext.isTrue();return n?e:e?(f.eachItem(e,function(e,n){var i=f.cloneObject(n);i.description=n.title,i.title="",t.push(i)}),t):[]}}}})}(),function(){ai.registerDefinition(ri,{YoutubeChannel:{className:"youtube-channel-element",itemName:"ImageBox",defaultProperties:{templateDataListOpener:us},properties:{youtubeChannel_Settings:{title:"Channel",defaultValue:function(){return{}},dataBindingKey:Mr.Keys.Instance.Social.YoutubeChannelId}},features:[oi.SmartDataList,oi.HasDataListPopup,oi.HasDataBinding],methods:{getChildDataSourceDefinition:function(){return hi.YoutubePlaylistDataSource},getDataSourceDefinition:function(){return hi.YoutubeChannelDataSource},getParameterProperties:function(){return[{propertyName:"youtubeChannel_Settings",propertyKey:"value",parameterName:"channelId"}]}}}})}(),function(){ai.registerDefinition(ri,{FacebookMediaElement:{className:"facebook-media-element",customDelegatedProperties:["iconReference"],features:[oi.HasDataSource],methods:{getDataSourceDefinition:function(){return hi.FacebookTimelineDataSource},addImage:function(e,t,n){var i=this;this.getPropertyValue("sizeAndPosition");if(e.append('<div class="type-image" style="width:100%;height:100%;background-image:url('+t+')"></div>'),n){var a={type:nt.Web,url:n};i.setPropertyValue("urlAddress",a)}},addInlineVideo:function(e,t,n,i){function a(){if(e.empty(),i){if(i===r.data.videoTypes.YouTube||i===r.data.videoTypes.Share){var n=e.width(),a=e.height(),o=f('<iframe src="'+t+'" width="'+n+'" height="'+a+'"></iframe>');e.append(o)}}else{var s=f('<video controls autoplay style="width:100%;height:100%;" class="type-video"><source src="'+t+'"  type="video/mp4" /></video>');e.append(s)}}var r=(this.getPropertyValue("sizeAndPosition"),this),o="play-button viewer-font-icon viewer-font-icon-popup-play-2",s=f('<div class="type-image" style="width:100%;height:100%;background-image:url('+n+')"><div class="link-icon"><div class="'+o+'"></div></div>');s.click(a),e.append(s)},addLink:function(e,t,n){var i=this,a=(this.getPropertyValue("sizeAndPosition"),"play-button viewer-font-icon viewer-font-icon-link"),r=f('<div class="type-image" style="width:100%;height:100%;background-image:url('+n+')"></div><div class="link-icon"><div class="'+a+'"></div></div>');if(t){var o={type:nt.Web,url:t};i.setPropertyValue("urlAddress",o)}e.append(r)},addStatus:function(e,t){t.attachments&&t.attachments.data&&t.attachments.data[0]&&t.attachments.data[0].media&&t.attachments.data[0].media.image&&t.attachments.data[0].media.image.src?this.addImage(e,t.attachments.data[0].media.image.src):this.addImage(e,"//graph.facebook.com/"+t.from.id+"/picture?type=large")}},ancestorElementType:ri.userBox,aggregatedMethods:{aggregations:{onBoundValueReady:function(e,t){var n=this,i=n.$elementContentContainer;if(n.data.videoTypes={YouTube:1,Share:2},i.empty(),t.media){var a=t.media,r=a.type,o=a.attachments&&a.attachments.data[0];"photo"===r||"event"===r?n.addImage(i,a.full_picture,a.link):"video"===r?"video_inline"===o.type||"video_direct_response"===o.type?n.addInlineVideo(i,a.source,a.full_picture):"video_share_youtube"===o.type?n.addInlineVideo(i,a.source,a.full_picture,n.data.videoTypes.YouTube):"video_share"===o.type&&n.addInlineVideo(i,a.source,a.full_picture,n.data.videoTypes.Share):"link"===r?n.addLink(i,a.link,a.full_picture):"status"===r&&n.addStatus(i,a)}else t.image&&n.addImage(i,t.image.imageUrl.imagePath)}}}}})}(),function(){ai.registerDefinition(ri,{FacebookTimeline:{className:"facebook-timeline-element",itemName:"ImageBox",properties:{facebookTimeline_Settings:{title:"Page",defaultValue:function(){return{}},dataBindingKey:Mr.Keys.Instance.Social.Facebook}},features:[oi.SmartDataList,oi.HasDataBinding],methods:{getDataSourceDefinition:function(){return hi.FacebookTimelineDataSource},getParameterProperties:function(){return[{propertyName:"facebookTimeline_Settings",propertyKey:"value",parameterName:"pageId"}]},getDataBindingKey:function(){return Mr.Keys.Instance.Social.Facebook},onSmartDataLoaded:cs,updateDataBinding:function(){var e=this;if(e.allowUpdateDataBindingValue()){var t=e.getPropertyValue("facebookTimeline_Settings");e.updateDataBindingValue(t)}}},aggregatedMethods:{aggregations:{onDataBindingReady:function(e){var t=this;t.setPropertyValue("facebookTimeline_Settings",e)}}}}})}(),function(){ai.registerDefinition(ri,{TwitterFeed:{className:"twitter-feed-element",itemName:"ImageBox",properties:{twitter_Settings:{title:"Page",defaultValue:function(){return{name:"arminvanbuuren",value:"arminvanbuuren"}},dataBindingKey:Mr.Keys.Instance.Social.Twitter}},features:[oi.SmartDataList,oi.HasDataBinding],methods:{getDataSourceDefinition:function(){return hi.TwitterDataSource},getDataBindingKey:function(){return""}}}})}(),function(){ReviewsEnum={Google:0},ai.registerDefinition(ri,{Reviews:{className:"reviews-source-element",itemName:"ImageBox",properties:{reviewsDataSource_Settings:{title:"Page",defaultValue:function(){return{name:"Scala's Bistro",value:"ChIJk6jRv46AhYARbE6mIQ6VDsg"}}},reviewsDataSource_Source:{title:"DataSource",defaultValue:function(){return ReviewsEnum.Google}}},defaultProperties:{itemFields:function(){return{title:{iconClass:f.getIconClass("tool-category-text",Cn.Font),type:"title",title:void 0,name:"title",isDefaultField:!0},description:{type:"description",title:void 0,name:"description",isDefaultField:!0},date:{type:"dateTime",title:void 0,name:"dateTime",isDefaultField:!0},location:{type:"location",title:"location",name:"location",isDefaultField:!0},image:{type:"image",title:void 0,name:"image"},link:{type:"link",title:void 0,name:"link",isDefaultField:!0}}}},features:[oi.SmartDataList,oi.HasDataBinding,oi.HasDynamicDataSource],methods:{getDataSourceDefinition:function(e){var t=this;switch(void 0===e&&(e=e||t.getPropertyValue("reviewsDataSource_Source")),e){default:return hi.GoogleReviewsDataSource}},getParameterProperties:function(){var e=[];return e.push({propertyName:"reviewsDataSource_Settings",propertyKey:"value",parameterName:"value"}),e}}}})}(),function(){EventsDataSourceEnum={Facebook:0,Meetup:1,BandsInTown:2,Eventful:3,DataList:4},ai.registerDefinition(ri,{EventsDataSource:{className:"events-data-source-element",itemName:"ImageBox",properties:{eventsDataSource_Settings:{title:"Page",defaultValue:function(){return{}}},eventsDataSource_Source:{title:"DataSource",defaultValue:function(){return EventsDataSourceEnum.Facebook}}},defaultProperties:{itemFields:function(){return{title:{iconClass:f.getIconClass("tool-category-text",Cn.Font),type:"title",title:void 0,name:"title",isDefaultField:!0},description:{type:"description",title:void 0,name:"description",isDefaultField:!0},date:{type:"date",title:void 0,name:"date",isDefaultField:!0},location:{type:"location",title:"Location",name:"location",isDefaultField:!0},image:{type:"image",title:void 0,name:"image"},link:{type:"link",title:void 0,name:"link",isDefaultField:!0}}}},features:[oi.SmartDataList,oi.HasDataBinding,oi.HasDynamicDataSource],methods:{getDataBindingKey:function(){return Mr.Keys.Instance.DataSource.Events},updateDataBinding:function(){var e=this;if(e.allowUpdateDataBindingValue()){var t={eventsDataSource_Settings:e.getPropertyValue("eventsDataSource_Settings"),eventsDataSource_Source:e.getPropertyValue("eventsDataSource_Source")};e.updateDataBindingValue(t)}},getDataSourceDefinition:function(e){var t=this;switch(void 0===e&&(e=e||t.getPropertyValue("eventsDataSource_Source")),e){case 1:return hi.MeetupEventsDataSource;case 2:return hi.BandsInTownEventsDataSource;case 3:return hi.EventfulEventsDataSource;case 4:return hi.DataListElementView;default:return hi.FacebookEventsDataSource}},getParameterProperties:function(){var e=[];return e.push({propertyName:"eventsDataSource_Settings",propertyKey:"value",parameterName:"value"}),e}},aggregatedMethods:{aggregations:{}}}})}(),function(){MusicDataSourceEnum={RSS:0,ITunes:1,DataList:2},ai.registerDefinition(ri,{MusicDataSource:{className:"music-data-source-element",itemName:"ImageBox",properties:{musicDataSource_Settings:{title:"Page",defaultValue:function(){return{name:"",value:""}}},musicDataSource_Source:{title:"DataSource",defaultValue:function(){return MusicDataSourceEnum.RSS}}},defaultProperties:{itemFields:function(){return{title:{iconClass:f.getIconClass("tool-category-text",Cn.Font),type:"title",title:void 0,name:"title",isDefaultField:!0},description:{type:"description",title:void 0,name:"description",isDefaultField:!0},date:{type:"dateTime",title:void 0,name:"dateTime",isDefaultField:!0},image:{type:"image",title:void 0,name:"image"},link:{type:"link",title:void 0,name:"link",isDefaultField:!0}}}},features:[oi.SmartDataList,oi.HasDataBinding,oi.HasDynamicDataSource],methods:{getDataSourceDefinition:function(e){var t=this;switch(void 0===e&&(e=e||t.getPropertyValue("musicDataSource_Source")),e){case 1:return hi.ITunesDataSource;case 2:return hi.DataListElementView;default:return hi.RSSMusicDataSource}},getParameterProperties:function(){var e=[];return e.push({propertyName:"musicDataSource_Settings",propertyKey:"value",parameterName:"value"}),e}}}})}(),function(){NewsDataSourceEnum={RSS:0,DataList:1},ai.registerDefinition(ri,{NewsDataSource:{className:"news-data-source-element",itemName:"ImageBox",properties:{newsDataSource_Settings:{title:"Page",defaultValue:function(){return{name:"http://rss.nytimes.com/services/xml/rss/nyt/HomePage.xml",value:"http://rss.nytimes.com/services/xml/rss/nyt/HomePage.xml"}}},newsDataSource_Source:{title:"DataSource",defaultValue:function(){return NewsDataSourceEnum.RSS}}},defaultProperties:{itemFields:function(){return{title:{iconClass:f.getIconClass("tool-category-text",Cn.Font),type:"title",title:void 0,name:"title",isDefaultField:!0},description:{type:"description",title:void 0,name:"description",isDefaultField:!0},date:{type:"dateTime",title:void 0,name:"dateTime",isDefaultField:!0},image:{type:"image",title:void 0,name:"image"},link:{type:"link",title:void 0,name:"link",isDefaultField:!0}}}},features:[oi.SmartDataList,oi.HasDataBinding,oi.HasDynamicDataSource],methods:{getDataSourceDefinition:function(e){var t=this;switch(void 0===e&&(e=e||t.getPropertyValue("newsDataSource_Source")),e){case 1:return hi.DataListElementView;default:return hi.RSSNewsDataSource}},getParameterProperties:function(){var e=[];return e.push({propertyName:"newsDataSource_Settings",propertyKey:"value",parameterName:"value"}),e}}}})}(),function(){ai.registerDefinition(ri,{AppMarket:{className:"app-market-element",features:[oi.HasInnerShadow,oi.HasResponsiveItem,oi.Resizable,oi.Selectable,oi.HasBackground,oi.HasLayout,oi.HasPadding,oi.Hideable,oi.HasBorder,oi.Rotatable,oi.HasContentOverlay,oi.IFrameContent,oi.HasAppMarketHost,oi.HasText,oi.HasExternalProperties],properties:{appMarketAppUrl:{isNotForCustomProperty:!0,defaultValue:f.returnEmptyString(),onChange:function(e,t){e.isInitialized&&e.reloadIFrame(t)}},externalProperties:{isNotForCustomProperty:!0,defaultValue:function(){return{}}},appMarketElementProperties:{onChange:cs}},defaultProperties:{backgroundColor:function(){return Ka.getThemeColor(0,0)},fontColor:function(){return Ka.getThemeColor(2,2)},fontSize:function(){return 14}},methods:{getIFrameUrl:function(){var e=this,t=e.getPropertyValue("appMarketAppUrl");return t}},aggregatedMethods:{aggregations:{}}}})}(),ya.registerPopupImplementation("DefaultPopup",fs(function(){var e={Overlay:{group:"default-popup-templates",name:"popup-overlay-template"},CarouselImageItemTemplate:{group:"default-popup-templates",name:"popup-carousel-image-item-template"},CarouselVideoItemTemplate:{group:"default-popup-templates",name:"popup-carousel-video-item-template"}};this.defaultSettings={openingAnimation:"FadeIn",closingAnimation:"FadeOut",animationSpeed:500,backgroundColor:"rgba(0,0,0,0.85)",textBackgroundColor:"rgba(0,0,0,0.5)",fontFamily:"Open Sans",textColor:"#ffffff",linkTextColor:"#ffffff",controlsColor:"#ffffff",showTitle:!0,showDescription:!0,showThumbs:!0},this.updatePopupSettingField=function(e,t,n){var i,a,r,o=e.$element;switch(t){case"openingAnimation":e.setAnimationPropertyValue("opening",n);break;case"closingAnimation":e.setAnimationPropertyValue("closing",n);break;case"animationSpeed":e.setAnimationPropertyValue("duration",n);break;case"backgroundColor":n=f.Color(Ka.evaluateColorBinding(n)),i=In.getBrightness(n),r=In.getCompositeColorOpacity(n),a=In.adjustBrightness(n,function(e){return.25>e?e+.1:e-.1}).toHEX(),e.setOverflowOpacity(r),e.$overflow.css({background:n.toHEX(),opacity:r}),f("._popup-control-background",o).css("background",.25>i?"#fff":"#000"),f("._popup-image-background",o).css("background",a);break;case"textBackgroundColor":n=f.Color(Ka.evaluateColorBinding(n)),f("._popup-text-background-color",o).css({background:n.toHEX(),opacity:In.getCompositeColorOpacity(n)});break;case"fontFamily":f("._popup-font-family",o).css("font-family",er.evaluateFontBinding(n));break;case"textColor":n=f.Color(Ka.evaluateColorBinding(n)).toHEX(),f("._popup-text-color",o).css("color",n);break;case"linkTextColor":n=f.Color(Ka.evaluateColorBinding(n)).toHEX(),f("._popup-link-text-color",o).css("color",n);break;case"controlsColor":n=f.Color(Ka.evaluateColorBinding(n)),i=In.getBrightness(n),a=i>.5?"black":"rgba(255,255,255,0.5)",f("._popup-control-element",o).css({color:n.toHEX(),textShadow:"0 0 1px "+a});break;case"showTitle":o.toggleClass("no-title",!n);break;case"showDescription":o.toggleClass("no-description",!n);break;case"showThumbs":e.toggleThumbs(n)}},this.create=function(t,n,i){var a,r=f.useTemplate(e.Overlay);return n.implementation={
className:"default",overlayTemplate:r,carouselImageItemTemplate:e.CarouselImageItemTemplate,carouselVideoItemTemplate:e.CarouselVideoItemTemplate,thumbsDimensions:{1024:{width:120,height:80},defaultSize:{width:166,height:110}},onItemsChanged:function(e){setTimeout(function(){f(".total-items",r).html(e.itemsCount)},10)}},a=_n.create(n),_n.createSettingsBinding(this,a,t,i),a}})),ya.registerPopupImplementation("ElementPopup",fs(function(){var e={Overlay:{group:"default-popup-templates",name:"popup-overlay-template"},CarouselImageItemTemplate:{group:"default-popup-templates",name:"popup-carousel-image-item-template"},CarouselVideoItemTemplate:{group:"default-popup-templates",name:"popup-carousel-video-item-template"}};this.defaultSettings={openingAnimation:"FadeIn",closingAnimation:"FadeOut",animationSpeed:500,backgroundColor:"rgba(0,0,0,0.85)",textBackgroundColor:"rgba(0,0,0,0.5)",fontFamily:"Open Sans",textColor:"#ffffff",linkTextColor:"#ffffff",controlsColor:"#ffffff",showTitle:!0,showDescription:!0,showThumbs:!1},this.updatePopupSettingField=function(e,t,n){var i,a,r,o=e.$element;switch(t){case"openingAnimation":e.setAnimationPropertyValue("opening",n);break;case"closingAnimation":e.setAnimationPropertyValue("closing",n);break;case"animationSpeed":e.setAnimationPropertyValue("duration",n);break;case"backgroundColor":n=f.Color(Ka.evaluateColorBinding(n)),i=In.getBrightness(n),r=In.getCompositeColorOpacity(n),a=In.adjustBrightness(n,function(e){return.25>e?e+.1:e-.1}).toHEX(),e.setOverflowOpacity(r),e.$overflow.css({background:n.toHEX(),opacity:r}),f("._popup-control-background",o).css("background",.25>i?"#fff":"#000"),f("._popup-image-background",o).css("background",a);break;case"textBackgroundColor":n=f.Color(Ka.evaluateColorBinding(n)),f("._popup-text-background-color",o).css({background:n.toHEX(),opacity:In.getCompositeColorOpacity(n)});break;case"fontFamily":f("._popup-font-family",o).css("font-family",er.evaluateFontBinding(n));break;case"textColor":n=f.Color(Ka.evaluateColorBinding(n)).toHEX(),f("._popup-text-color",o).css("color",n);break;case"linkTextColor":n=f.Color(Ka.evaluateColorBinding(n)).toHEX(),f("._popup-link-text-color",o).css("color",n);break;case"controlsColor":n=f.Color(Ka.evaluateColorBinding(n)),i=In.getBrightness(n),a=i>.5?"black":"rgba(255,255,255,0.5)",f("._popup-control-element",o).css({color:n.toHEX(),textShadow:"0 0 1px "+a});break;case"showTitle":o.toggleClass("no-title",!n);break;case"showDescription":o.toggleClass("no-description",!n);break;case"showThumbs":e.toggleThumbs(n)}},this.create=function(t,n,i){var a,r=f.useTemplate(e.Overlay);return n.implementation={className:"default",overlayTemplate:r},n.isElement=!0,a=_n.create(n),_n.createSettingsBinding(this,a,t,i),a}})),_n.MobilePopup=fs(function(){var e={Overlay:{group:"mobile-image-popup-templates",name:"popup-overlay-template"},CarouselImageItemTemplate:{group:"mobile-image-popup-templates",name:"popup-carousel-image-item-template"},CarouselVideoItemTemplate:{group:"mobile-image-popup-templates",name:"popup-carousel-video-item-template"},ThumbTemplate:{group:"mobile-image-popup-templates",name:"popup-thumb-template"}},t=So.getBaseRenderer().extend("MobileVideoPopupRenderer",{_render:function(e,t){var n=this._getItemElementFromItem(e),i=this._getImageFromItem(e),a=f(i.parentNode);a.css({left:0,backgroundImage:"url("+i.src+")"}),t&&t.index!==e.index&&this._getItemElementFromItem(t).css("display","none"),n.css("display","list-item")},_transition:function(e,t,n){var i,a,r=this,o=e.$item,s={width:o.width(),height:o.height()},l=this._getItemElementFromItem(e),c=this._getImageFromItem(e),u=f(c.parentNode),d=this._getItemElementFromItem(t),g=this._getImageFromItem(t),p=f(g.parentNode);n&&n>0||!n&&e.index>t.index?(i=s.width,a=-s.width):(i=-s.width,a=s.width),u.css({left:i,backgroundImage:"url("+c.src+")"}),l.css("display","list-item"),u.velocity("stop").velocity({left:[0,i]},{duration:500,queue:!1}),p.velocity("stop").velocity({left:[a,0]},{duration:500,queue:!1,complete:function(){t.index!==r._currentItem.index&&d.css("display","none")}})}});this.defaultSettings={backgroundColor:"#000000",primaryTextColor:"#ffffff",secondaryTextColor:"#ffffff"},this.create=function(n,i){function a(e,t){var n=t.$element,i=e.title||"",a=e.description||"";f(".title",n).html(i),t.moreLessActivated||(f(".show-more",n).click(function(e){r(e,n,!0)}),f(".show-less",n).click(function(e){r(e,n,!1)}),t.onCurrent(function(){C=n}),t.moreLessActivated=!0),a!==t.currentDescription&&(f(".description",n).html(a),f("._description",n).ellipsis({updateContent:!0,doNotRender:!0}),t.currentDescription=a)}function r(e,t,n){e.preventDefault(),e.stopPropagation(),t.toggleClass("show-full-text",n),o(t)}function o(e){S?S.scrollTo(e,{animateScrolling:w,deltaY:-15}):w?p.animate({scrollTop:e.position().top-15},200):p.scrollTop(e.position().top-15)}function s(e){void 0===e&&(e=!w),e!==w&&(S&&S.toggleAutoRefresh(e),e&&C&&o(C),g.toggleClass("visible",e),I.toggleClass("visible",!e),w=e)}function l(e,t){var n=t.title||"",i=t.index,a=e.getItemsLength(),r=t.link||{};v.html(n),a>1&&(y.html(i),b.html(a)),r.url&&(I.attr("href",r.url),I.attr("target",r.newTab?"_blank":"_self")),I.toggleClass("has-link",!!r.url)}function c(){var e,t,n;h.removeClass("show-full-text"),f("._description",d).ellipsis();for(var i=0,a=h.length;a>i;i++)e=f(h[i]),t=f("._title",e)[0],n=f("ellipsis",e),e.toggleClass("has-long-text",!!n.length||t.offsetWidth<t.scrollWidth)}var u,d,g,p,h,m,v,y,b,C,I,S,P,w=!1;return d=f.useTemplate(e.Overlay),g=f(".footer",d),p=f(".thumbs-container",d),m=f("._thumbs-toggle",d),v=f(".header-title",d),y=f(".index",d),b=f(".total",d),I=f(".item-link",d),m.click(function(){s()}),i.implementation={className:"mobile-popup",supportsMobile:!0,verticalThumbs:!0,overlayTemplateMobile:d,carouselImageItemTemplateMobile:e.CarouselImageItemTemplate,carouselVideoItemTemplateMobile:e.CarouselVideoItemTemplate,carouselRendererMobile:i.isVideo?new t:So.getRenderer("popupMobileSlideShow"),thumbsImageItemTemplate:e.ThumbTemplate,thumbsVideoItemTemplate:e.ThumbTemplate,thumbsDimensions:{defaultSize:{width:76,height:76}},thumbsCustomScrolling:!0,onShow:function(){h=f(".image-thumb",d),c()},onThumbItemUpdate:function(e,t){a(e,t)},onResize:function(){c()},onCurrentItemChange:function(e,t){P&&P.index==t.index||(P=t,t&&l(e,t),s(!1))},onClose:function(){s(!1),h.removeClass("show-full-text")}},u=_n.create(i)}}),ya.registerPopupImplementation("Popup1",fs(function(){var e={Overlay:{group:"popup-1-templates",name:"popup-overlay-template"},CarouselImageItemTemplate:{group:"popup-1-templates",name:"popup-carousel-image-item-template"},CarouselVideoItemTemplate:{group:"popup-1-templates",name:"popup-carousel-video-item-template"}};this.defaultSettings={openingAnimation:"FadeIn",closingAnimation:"FadeOut",animationSpeed:500,backgroundColor:"rgba(0,0,0,0.85)",sidebarBackgroundColor:"#2c2c2c",fontFamily:"Droid sans",textColor:"#ffffff",linkTextColor:"#ffffff",navigationArrowsColor:"#ffffff",showThumbs:!0,showShareButtons:!0},this.updatePopupSettingField=function(e,t,n){var i,a,r,o=e.$element;switch(t){case"openingAnimation":e.setAnimationPropertyValue("opening",n);break;case"closingAnimation":e.setAnimationPropertyValue("closing",n);break;case"animationSpeed":e.setAnimationPropertyValue("duration",n);break;case"backgroundColor":n=f.Color(Ka.evaluateColorBinding(n)),i=In.getBrightness(n),r=In.getCompositeColorOpacity(n),e.setOverflowOpacity(r),e.$overflow.css({background:n.toHEX(),opacity:r}),f("._popup-control-background",o).css("background",.25>i?"#fff":"#000");break;case"sidebarBackgroundColor":n=f.Color(Ka.evaluateColorBinding(n)),f("._popup-sidebar-background",o).css("background",n.toHEX()),f("._popup-scrollbar .slide-area",o).css("background",In.adjustBrightness(n,function(e){return.15>e?e+.1:e-.1}).toHEX());break;case"fontFamily":f("._popup-font-family",o).css("font-family",er.evaluateFontBinding(n));break;case"textColor":n=f.Color(Ka.evaluateColorBinding(n)),a=n.toHEX(),f("._popup-text-color",o).css("color",a),f("._popup-sidebar-element",o).css({color:a,borderColor:a}),f("._popup-scrollbar .scrollbar-handle",o).css("background",In.adjustBrightness(n,function(e){return.5>e?Math.max(0,e-.1):Math.min(1,e+.1)}).toHEX());break;case"linkTextColor":n=f.Color(Ka.evaluateColorBinding(n)).toHEX(),f("._popup-link-text-color",o).css("color",n);break;case"navigationArrowsColor":n=f.Color(Ka.evaluateColorBinding(n)),i=In.getBrightness(n),a=i>.5?"black":"rgba(255,255,255,0.5)",f("._popup-control-element",o).css({color:n.toHEX(),textShadow:"0 0 1px "+a});break;case"showThumbs":e.toggleThumbs(n);break;case"showShareButtons":o.toggleClass("show-share-buttons",n)}},this.create=function(t,n,i){function a(e){var t,n=e.image&&se.resolveImageUrl(e.image.imageUrl),i=e.video&&e.video.videoUrl,a=n||i;a&&(a=a.replace("/x/cdn/?",""),t=encodeURIComponent(a),c.attr("href","https://www.facebook.com/sharer/sharer.php?u={0}".format(t)),u.attr("href","https://twitter.com/home?status={0}".format(t)),d.attr("href","https://pinterest.com/pin/create/button/?url=&media={0}".format(t))),l.toggleClass("has-share-link",a&&!0||!1)}function r(e,t){var n=t.title||"Image title",i=t.description||"Image description",a=t.link||{},r=t.index,o=e.getItemsLength();p.html(n),g.toggleClass("no-title",!n),h.html(i),g.toggleClass("no-description",!i),a.url&&b.attr("href",a.url).attr("target",a.newTab?"_blank":"_self"),g.toggleClass("no-link",!a.url),o>1&&(v.html(r),y.html(o)),m.toggle(o>1)}var o,s,l,c,u,d,g,p,h,m,v,y,b,C;return s=f.useTemplate(e.Overlay),l=f(".social-share-links",s),c=f(".facebook",l),u=f(".twitter",l),d=f(".pinterest",l),g=f(".item-text",s),p=f(".title",g),h=f(".description",g),b=f(".link",g),m=f(".numbers-container",g),v=f(".index",m),y=f(".total-items",m),C=Sn.create(f(".scrollable-text-inner",s),{scrollbarClass:"popup-scrollbar _popup-scrollbar"}),n.implementation={className:"popup-1",supportsMobile:!1,overlayTemplate:s,carouselImageItemTemplate:e.CarouselImageItemTemplate,carouselVideoItemTemplate:e.CarouselVideoItemTemplate,carouselRenderer:So.getRenderer("popupMobileSlideShow"),thumbsDimensions:{defaultSize:{width:110,height:73}},onCurrentItemChange:function(e,t){C.scrollToOffset(0,!1),t&&(a(t),r(e,t))},onShow:function(){C.toggleAutoRefresh(!0)},onClose:function(){C.toggleAutoRefresh(!1)}},o=_n.create(n),_n.createSettingsBinding(this,o,t,i),o}})),ya.registerPopupImplementation("Popup2",fs(function(){var e={Overlay:{group:"popup-2-templates",name:"popup-overlay-template"},CarouselImageItemTemplate:{group:"popup-2-templates",name:"popup-carousel-image-item-template"},CarouselVideoItemTemplate:{group:"popup-2-templates",name:"popup-carousel-video-item-template"},ThumbItemTemplate:{group:"popup-2-templates",name:"popup-thumb-item-template"}};this.defaultSettings={openingAnimation:"FadeIn",closingAnimation:"FadeOut",animationSpeed:500,backgroundColor:"rgba(0,0,0,0.85)",sidebarBackgroundColor:"#fff",textColor:"#080808",linkTextColor:"#323232",readMoreTextColor:"#4787b8",navigationArrowsColor:"#ffffff",showThumbs:!0,showShareButtons:!0},this.updatePopupSettingField=function(e,t,n){var i,a,r,o=e.$element;switch(t){case"openingAnimation":e.setAnimationPropertyValue("opening",n);break;case"closingAnimation":e.setAnimationPropertyValue("closing",n);break;case"animationSpeed":e.setAnimationPropertyValue("duration",n);break;case"backgroundColor":n=f.Color(Ka.evaluateColorBinding(n)),i=In.getBrightness(n),r=In.getCompositeColorOpacity(n),e.setOverflowOpacity(r),e.$overflow.css({background:n.toHEX(),opacity:r}),f("._popup-control-background",o).css("background",.1>i?"#fff":"#000");break;case"sidebarBackgroundColor":n=f.Color(Ka.evaluateColorBinding(n)),a=n.toHEX(),f("._popup-sidebar-background",o).css("background",a),f("._popup-thumb-cover",o).css("border-color",a),f("._popup-scrollbar .slide-area",o).css("background",In.adjustBrightness(n,function(e){return.15>e?e+.1:e-.1}).toHEX());break;case"textColor":n=f.Color(Ka.evaluateColorBinding(n)),a=n.toHEX(),f("._popup-text-color",o).css("color",a),f("._popup-sidebar-element",o).css({color:a,borderColor:a}),f("._popup-scrollbar .scrollbar-handle",o).css("background",In.adjustBrightness(n,function(e){return.5>e?Math.max(0,e-.2):Math.min(1,e+.2)}).toHEX());break;case"linkTextColor":n=f.Color(Ka.evaluateColorBinding(n)).toHEX(),f("._popup-link-text-color",o).css("color",n);break;case"readMoreTextColor":n=f.Color(Ka.evaluateColorBinding(n)).toHEX(),f("._popup-read-more-text-color",o).css("color",n);break;case"navigationArrowsColor":n=f.Color(Ka.evaluateColorBinding(n)),i=In.getBrightness(n),a=n.toHEX(),f("._popup-control-element",o).css({color:a,textShadow:"0 0 1px "+(i>.5?"black":"rgba(255,255,255,0.5)")}),f("._popup-navigation-button-background",o).css("background",a);break;case"showThumbs":e.toggleThumbs(n);break;case"showShareButtons":o.toggleClass("show-share-buttons",n)}},this.create=function(t,n,i){function a(e){var t,n=e.image&&se.resolveImageUrl(e.image.imageUrl),i=e.video&&e.video.videoUrl,a=n||i;a&&(a=a.replace("/x/cdn/?",""),t=encodeURIComponent(a),p.attr("href","https://www.facebook.com/sharer/sharer.php?u={0}".format(t)),h.attr("href","https://twitter.com/home?status={0}".format(t)),m.attr("href","https://pinterest.com/pin/create/button/?url=&media={0}".format(t))),g.toggleClass("has-share-link",a&&!0||!1)}function r(e,t,n){var i=e.link||{};i.url&&(t.attr("href",i.url),t.attr("target",i.newTab?"_blank":"_self")),n.toggleClass("no-link",!i.url)}function o(e,t){var n=t.title||"Image title",i=t.description||"Image description",a=!1;v.velocity({opacity:0},{duration:100,queue:!1,complete:function(){v.removeClass("long-text"),y.html(n),C.html(i),r(t,b,v),y[0].scrollHeight>y.innerHeight()&&(a=!0,y.ellipsis({updateContent:!0})),C[0].getBoundingClientRect().bottom>v[0].getBoundingClientRect().bottom&&(a=!0,C.ellipsis({updateContent:!0,container:v[0]})),S.html(n),w.html(i),r(t,P,I),a&&setTimeout(function(){v.toggleClass("long-text",!0)},0),v.velocity({opacity:1},{duration:100,queue:!1})}})}function s(){d.addClass("show-full-text"),k.scrollToOffset(0)}function l(){d.removeClass("show-full-text")}function c(e){u._showThumbs?k.scrollTo(f(".current",x),{animateScrolling:e}):k.scrollToOffset(0,!1)}var u,d,g,p,h,m,v,y,b,C,I,S,P,w,E,T,x,k;return d=f.useTemplate(e.Overlay),g=f(".social-share-links",d),p=f(".facebook",g),h=f(".twitter",g),m=f(".pinterest",g),v=f(".item-text",d),y=f(".title",v),b=f(".link",v),C=f(".description",v),I=f(".full-item-text",d),S=f(".title",I),P=f(".link",I),w=f(".description",I),E=f(".read-more",v),T=f(".read-less",I),x=f(".thumbs-container",d),k=Sn.create(f(".thumbs-scroller-container-inner",d),{scrollbarClass:"popup-scrollbar _popup-scrollbar"}),E.makeSimpleButton().buttonClick(function(){s()}),T.makeSimpleButton().buttonClick(function(){l(),c(!1)}),n.implementation={className:"popup-2",supportsMobile:!1,verticalThumbs:!0,overlayTemplate:d,carouselImageItemTemplate:e.CarouselImageItemTemplate,carouselVideoItemTemplate:e.CarouselVideoItemTemplate,thumbsImageItemTemplate:e.ThumbItemTemplate,thumbsVideoItemTemplate:e.ThumbItemTemplate,carouselRenderer:So.getRenderer("popupMobileSlideShow"),thumbsDimensions:{defaultSize:{width:140,height:88}},thumbsCustomScrolling:!0,onCurrentItemChange:function(e,t){l(),t&&(a(t),o(e,t)),e.getItemsLength()>1&&c(!0)},onShow:function(){k.toggleAutoRefresh(!0)},onClose:function(){k.toggleAutoRefresh(!1)}},u=_n.create(n),_n.createSettingsBinding(this,u,t,i),u}})),ya.registerPopupImplementation("Popup3",fs(function(){var e=100,t={Overlay:{group:"popup-3-templates",name:"popup-overlay-template"},CarouselImageItemTemplate:{group:"popup-3-templates",name:"popup-carousel-image-item-template"},CarouselVideoItemTemplate:{group:"popup-3-templates",name:"popup-carousel-video-item-template"}},n=So.getBaseRenderer().extend("Popup3Renderer",{_minImageWidth:0,_minImageHeight:0,_getSideItem:function(e,t){var n,i=this.carousel,a=i._itemsList.orderedItems,r=(e||this._currentItem).index;return n=t>0?i._slideShow.getNextSlideIndex(r):i._slideShow.getPreviousSlideIndex(r),void 0!==n?a[n]:void 0},_render:function(t,n,i,a,r){var o,s,l,c,u,d,g,p,h=this,m=this._getSideItem(t,-1),v=this._getSideItem(t,1),y=m&&m.itemView.loadedFlag,b=v&&v.itemView.loadedFlag,C=this._getItemElementFromItem(t),I=this._getImageFromItem(t),S=f(I.parentNode),P={width:C.width(),height:C.height()},w={width:.8*P.width,height:.8*P.height},E=this._calculateDimensions(t,P);a||n&&n.index!==t.index&&this._hidePreviousItem(n),C.css("display","list-item"),a?(S.css({width:E.width,height:E.height,left:(P.width-E.width)/2,top:(P.height-E.height)/2,opacity:0}),S.velocity("stop").velocity({opacity:[1,0]},{duration:300,queue:!1,complete:function(){r&&r()}})):S.css({width:E.width,height:E.height,left:(P.width-E.width)/2,top:(P.height-E.height)/2}),m&&y.onceTrue(function(){o=h._getItemElementFromItem(m),s=h._getImageFromItem(m),l=f(s.parentNode),c=h._calculateDimensions(m,w),o.css("display","list-item"),a?(l.css({width:c.width,height:c.height,left:-c.width-e-200,top:(P.height-c.height)/2}),l.velocity("stop").velocity({left:[-c.width-e,-c.width-e-200]},{duration:300,queue:!1})):l.css({width:c.width,height:c.height,left:-c.width-e,top:(P.height-c.height)/2})}),v&&b.onceTrue(function(){u=h._getItemElementFromItem(v),d=h._getImageFromItem(v),g=f(d.parentNode),p=h._calculateDimensions(v,w),u.css("display","list-item"),a?(g.css({width:p.width,height:p.height,left:P.width+e+200,top:(P.height-p.height)/2}),g.velocity("stop").velocity({left:[P.width+e,P.width+e+200]},{duration:300,queue:!1})):g.css({width:p.width,height:p.height,left:P.width+e,top:(P.height-p.height)/2})}),t.itemView.$textContainer.css("width",E.width)},_transition:function(e,t,n,i){var a=this,r=this.carousel;void 0===n&&(n=e.index>t.index?1:-1),void 0===i&&(r.toggleSetSlideLock(!0),t&&t.index!==this._getSideItem(e,-n).index?this._hidePreviousItem(t,!0,function(){a._render(e,t,n,!0,function(){r.toggleSetSlideLock(!1)})}):this._transitionToNearest(e,t,n,function(){r.toggleSetSlideLock(!1)}))},_hidePreviousItem:function(e,t,n){var i,a,r,o,s,l,c=this._getSideItem(e,-1),u=this._getSideItem(e,1),d=this._getItemElementFromItem(e),g=this._getItemElementFromItem(c),p=this._getItemElementFromItem(u);t?(c&&(i=this._getImageFromItem(c),a=f(i.parentNode),r=parseInt(a.css("left"))),u&&(o=this._getImageFromItem(u),s=f(o.parentNode),l=parseInt(s.css("left"))),c&&a.velocity("stop").velocity({left:[r-200,r]},{duration:300,queue:!1}),u&&s.velocity("stop").velocity({left:[l+200,l]},{duration:300,queue:!1}),d.velocity("stop").velocity({opacity:[0,1]},{duration:300,queue:!1,complete:function(){d.css({display:"none",opacity:1}),c&&g.css("display","none"),u&&p.css("display","none"),n&&n()}})):(d.css("display","none"),c&&g.css("display","none"),u&&p.css("display","none"))},_transitionToNearest:function(t,n,i,a){var r,o,s,l,c,u,d,g,p,h,m,v,y,b=this,C=this._getItemElementFromItem(t),I={width:C.width(),height:C.height()},S={width:.8*I.width,height:.8*I.height},P=this._getImageFromItem(t),w=f(P.parentNode),E=this._getImageFromItem(n),T=f(E.parentNode),x=this._getSideItem(t,i),k=this._getSideItem(n,-i),D=this._calculateDimensions(t,I),F=this._calculateDimensions(n,S),A=(I.width-D.width)/2,B=(I.width-F.width)/2;x&&(r=this._getItemElementFromItem(x),o=this._getImageFromItem(x),s=f(o.parentNode),l=this._calculateDimensions(x,S)),k&&(c=this._getItemElementFromItem(k),u=this._getImageFromItem(k),d=f(u.parentNode),g=this._calculateDimensions(k,S)),i>0?(p=I.width+e,h=-F.width-e,x&&(m=I.width+p-A+e,v=I.width+e),k&&(y=-g.width+h-e)):(p=-D.width-e,h=I.width+e,x&&(m=-l.width+p-e,v=-l.width-e),k&&(y=I.width+h-B+e)),x&&(s.css({width:l.width,height:l.height,left:m,top:(I.height-l.height)/2}),r.css("display","list-item")),t.itemView.$textContainer.css("width",D.width),w.velocity("stop").velocity({width:D.width,height:D.height,left:A,top:(I.height-D.height)/2},{duration:400,queue:!1}),x&&s.velocity("stop").velocity({left:v},{duration:400,queue:!1}),k&&d.velocity("stop").velocity({left:y},{duration:400,queue:!1}),T.velocity("stop").velocity({width:F.width,height:F.height,left:h,top:(I.height-F.height)/2},{duration:400,queue:!1,complete:function(){k&&n.index!==b._currentItem.index&&c.css("display","none"),a&&a()}})}});this.defaultSettings={openingAnimation:"FadeIn",closingAnimation:"FadeOut",animationSpeed:500,backgroundColor:"rgba(0,0,0,0.85)",fontFamily:"PT Sans",textColor:"#ffffff",linkTextColor:"#ffffff",controlsColor:"#ffffff",navigationArrowsColor:"#ffffff",showTitle:!0,showDescription:!0},this.updatePopupSettingField=function(e,t,n){var i,a,r,o=e.$element;switch(t){case"openingAnimation":e.setAnimationPropertyValue("opening",n);break;case"closingAnimation":e.setAnimationPropertyValue("closing",n);break;case"animationSpeed":e.setAnimationPropertyValue("duration",n);break;case"backgroundColor":n=f.Color(Ka.evaluateColorBinding(n)),i=In.getBrightness(n),r=In.getCompositeColorOpacity(n),e.setOverflowOpacity(r),e.$overflow.css({background:n.toHEX(),opacity:r}),f(".footer",o).css("background",In.adjustBrightness(n,function(e){return.15>e?e+.1:e-.1}).toHEX());break;case"fontFamily":f("._popup-font-family",o).css("font-family",er.evaluateFontBinding(n));break;case"textColor":n=f.Color(Ka.evaluateColorBinding(n)),a=n.toHEX(),f("._popup-text-color",o).css("color",a);break;case"controlsColor":n=f.Color(Ka.evaluateColorBinding(n)).toHEX(),f("._popup-header-element",o).css({color:n,borderColor:n});break;case"linkTextColor":n=f.Color(Ka.evaluateColorBinding(n)).toHEX(),f("._popup-link-text-color",o).css("color",n);break;case"navigationArrowsColor":n=f.Color(Ka.evaluateColorBinding(n)),i=In.getBrightness(n),a=i>.5?"black":"rgba(255,255,255,0.5)",f("._popup-control-element",o).css({color:n.toHEX(),textShadow:"0 0 1px "+a});break;case"showTitle":o.toggleClass("no-title",!n),e._carousel.setSlide();break;case"showDescription":o.toggleClass("no-description",!n),e._carousel.setSlide()}},this.create=function(e,i,a){function r(e){var t=s._thumbsCarousel;void 0===e&&(e=!h),e!==h&&(t.toggleItemsScrollingLock(!0),e?c.velocity("stop").velocity({top:0,opacity:1},{duration:500,queue:!1,complete:function(){t.toggleItemsScrollingLock(!1)}}):c.velocity("stop").velocity({top:-c.innerHeight(),opacity:0},{duration:500,queue:!1,complete:function(){t.toggleItemsScrollingLock(!1)}}),h=e)}function o(e,t){var n,i;i=f(e).hasClass("_prev-button")?-1:1,n=m._getSideItem(void 0,i),f(m._getImageFromItem(n)).toggleClass("hover",t)}var s,l,c,u,d,g,p,h,m;return m=new n,h=!1,l=f.useTemplate(t.Overlay),c=f(".footer",l),u=f("._thumbs-toggle",l),d=f(".numbers-container",l),g=f(".index",d),p=f(".total-items",d),u.makeSimpleButton().buttonClick(function(){r()}),f(".navigation-button",l).on("mouseenter",function(){o(this,!0)}).on("mouseleave",function(){o(this,!1)}).on("click",function(){var e=f(this);o(this,!1),setTimeout(function(){e.trigger("mouseenter")},100)}),i.implementation={className:"popup-3",supportsMobile:!1,overlayTemplate:l,carouselImageItemTemplate:t.CarouselImageItemTemplate,carouselVideoItemTemplate:t.CarouselVideoItemTemplate,thumbsDimensions:{defaultSize:{width:110,height:73}},carouselRenderer:m,onShow:function(){f(".carousel-item",l).css("display","none")},onItemsChanged:function(e){var t=e.itemsCount>3;e.toggleContinuous(t),p.html(e.itemsCount)},onCurrentItemChange:function(e,t){t?g.html(t.index):g.html("1")},onClose:function(){r(!1)}},s=_n.create(i),_n.createSettingsBinding(this,s,e,a),s}})),ya.registerPopupImplementation("Popup4",fs(function(){var e=.8,t=155,n={Overlay:{group:"popup-4-templates",name:"popup-overlay-template"},CarouselImageItemTemplate:{group:"popup-4-templates",name:"popup-carousel-image-item-template"},CarouselVideoItemTemplate:{group:"popup-4-templates",name:"popup-carousel-video-item-template"}},i=So.getBaseRenderer().extend("Popup4Renderer",{_minImageWidth:640,_minImageHeight:360,_render:function(n,i){var a,r,o,s,l,c,u=this,d=this.options,g=d.element,p=d.carouselContainer,h=this._minImageWidth,m=this._minImageHeight,v=n.itemView.loadedFlag,y=this._getItemElementFromItem(n),b=this._getImageFromItem(n),C=f(b.parentNode);v.isTrue()?(a=g.width()*e-t,r=g.height()*e,o={width:a,height:r},s=this._calculateDimensions(n,o),p.css({width:s.width,height:s.height}),C.css({width:s.width,height:s.height,left:0,top:0,opacity:1,zIndex:2}),d.resizeThumbsCarousel()):(p.css({width:h,height:m}),v.onceTrue(function(){var i=g.width()*e-t,a=g.height()*e,r={width:i,height:a},o=u._calculateDimensions(n,r),s=(h-o.width)/2,l=(m-o.height)/2;C.css({left:s,top:l}),p.velocity({width:[o.width,h],height:[o.height,m]},{duration:200,queue:!1,complete:function(){d.resizeThumbsCarousel()}}),C.velocity({left:[0,s],top:[0,l]},{duration:200,queue:!1})})),i&&i.index!==n.index&&(l=this._getItemElementFromItem(i),c=f(this._getImageFromItem(i).parentNode),l.css("display","none"),c.css("zIndex",1)),y.css("display","list-item"),n.itemView.$description.ellipsis()},_transition:function(n,i){var a=this,r=this.options,o=r.element,s=r.carouselContainer,l=o.width()*e-t,c=o.height()*e,u={width:l,height:c},d=this._getItemElementFromItem(n),g=this._getImageFromItem(n),p=f(g.parentNode),h=this._getItemElementFromItem(i),m=this._getImageFromItem(i),v=f(m.parentNode),y=this._calculateDimensions(n,u),b=this._calculateDimensions(i,u),C=(b.width-y.width)/2,I=(b.height-y.height)/2;p.css({width:y.width,height:y.height,left:C,top:I,opacity:0,zIndex:2}),v.css("zIndex",1),d.css("display","list-item"),s.velocity({width:[y.width,b.width],height:[y.height,b.height]},{duration:200,queue:!1,complete:function(){r.resizeThumbsCarousel()}}),p.velocity({left:[0,C],top:[0,I],opacity:[1,0]},{duration:200,queue:!1}),v.velocity({left:[(y.width-b.width)/2,0],top:[(y.height-b.height)/2,0]},{duration:200,queue:!1,complete:function(){n.itemView.$description.ellipsis(),i.index!==a._currentItem.index&&h.hide()}})}}),a=f.rule(".popup-overlay.popup-4 .footer .thumbs-container .thumb.current:after {}");this.defaultSettings={openingAnimation:"FadeIn",closingAnimation:"FadeOut",animationSpeed:500,backgroundColor:"rgba(0,0,0,0.85)",foregroundColor:"#ffffff",textBackgroundColor:"rgba(0,0,0,0.45)",fontFamily:"PT Sans",textColor:"#ffffff",linkTextColor:"#222",linkBackgroundColor:"#babdbc",navigationArrowsColor:"#000",showTitle:!0,showDescription:!0,showThumbs:!0,showShareButtons:!0},this.updatePopupSettingField=function(e,t,n){var i,r,o,s=e.$element;switch(t){case"openingAnimation":e.setAnimationPropertyValue("opening",n);break;case"closingAnimation":e.setAnimationPropertyValue("closing",n);break;case"animationSpeed":e.setAnimationPropertyValue("duration",n);break;case"backgroundColor":n=f.Color(Ka.evaluateColorBinding(n)),i=In.getBrightness(n),o=In.getCompositeColorOpacity(n),e.setOverflowOpacity(o),e.$overflow.css({background:n.toHEX(),opacity:o});break;case"foregroundColor":n=f.Color(Ka.evaluateColorBinding(n)),i=In.getBrightness(n),r=n.toHEX(),f("._popup-foreground-color",s).css("background",r),f("._close-button",s).css("color",.5>=i?"#fff":"#000"),f("._popup-image-background",s).css("background",In.adjustBrightness(n,function(e){return.2>=e?e+.1:e-.1}).toHEX()),a.css("border-right-color",r);break;case"textBackgroundColor":n=f.Color(Ka.evaluateColorBinding(n)),f("._popup-text-background-color",s).css({background:n.toHEX(),opacity:In.getCompositeColorOpacity(n)});break;case"fontFamily":f("._popup-font-family",s).css("font-family",er.evaluateFontBinding(n)),f(".description",s).ellipsis();break;case"textColor":n=f.Color(Ka.evaluateColorBinding(n)),r=n.toHEX(),f("._popup-text-color",s).css("color",r);break;case"linkTextColor":n=f.Color(Ka.evaluateColorBinding(n)).toHEX(),f("._popup-link-text-color",s).css("color",n);break;case"linkBackgroundColor":n=f.Color(Ka.evaluateColorBinding(n)).toHEX(),f("._popup-link-text-color",s).css("background",n);break;case"navigationArrowsColor":n=f.Color(Ka.evaluateColorBinding(n)),f("._popup-control-element",s).css("color",n.toHEX());break;case"showTitle":s.toggleClass("no-title",!n);break;case"showDescription":s.toggleClass("no-description",!n),n&&f(".description",s).ellipsis();break;case"showThumbs":e.toggleThumbs(n);break;case"showShareButtons":s.toggleClass("show-share-buttons",n)}},this.create=function(e,t,a){function r(e){var t,n=e.image&&se.resolveImageUrl(e.image.imageUrl);n&&(n=n.replace("/x/cdn/?",""),t=encodeURIComponent(n),d.attr("href","https://www.facebook.com/sharer/sharer.php?u={0}".format(t)),g.attr("href","https://twitter.com/home?status={0}".format(t)),p.attr("href","https://pinterest.com/pin/create/button/?url=&media={0}".format(t))),u.toggleClass("has-share-link",n&&!0||!1)}function o(e,t){var n=t.link||{};n.url&&(h.attr("href",n.url),h.attr("target",n.newTab?"_blank":"_self")),h.toggleClass("no-link",!n.url)}var s,l,c,u,d,g,p,h;return l=f.useTemplate(n.Overlay),c=f(".carousel-container",l),u=f(".social-share-links",l),d=f(".facebook",u),g=f(".twitter",u),p=f(".pinterest",u),h=f(".item-link",l),t.implementation={className:"popup-4",supportsMobile:!1,overlayTemplate:l,verticalThumbs:!0,carouselImageItemTemplate:n.CarouselImageItemTemplate,carouselVideoItemTemplate:n.CarouselVideoItemTemplate,thumbsDimensions:{defaultSize:{width:120,height:76}},carouselRenderer:new i({element:l,carouselContainer:c,resizeThumbsCarousel:function(){s._thumbsCarousel.resize(!0)}}),onCurrentItemChange:function(e,t){t&&(r(t),o(e,t))}},s=_n.create(t),_n.createSettingsBinding(this,s,e,a),s}})),function(){var e=void 0,t=hi.ButtonsGroupView=vi.extend("ButtonsGroupView",{fields:{index:{name:"index"},title:{name:"title"},icon:{name:"icon"}},isForSave:!0,manageItemsPanelName:"ButtonsGroupPanel",manageItemsPanelTitle:void 0,setDataItems:function(e){var t=this,n=t.instance;e=f.asArray(e);var i=n.getPropertyValue("dataInfo"),a=f.quickExtend({},i),r=f.quickExtend({},a.currentData),o=f.quickExtend({},r.items);f.eachItem(e,function(e,t){o[t.id]=f.quickExtend({},o[t.id],t)}),r.items=o,a.currentData=r,de.beginAtomicBatch(),n.setPropertyValue("dataInfo",a),de.endAtomicBatch()},getIndex:function(e){var t=this,n=t.instance,i=n.getPropertyValue("dataInfo");return i.currentData.items[e].index},addDataItem:function(e){var t=this,n=t.instance,i=n.getPropertyValue("dataInfo"),a=f.quickExtend({},i),r=f.quickExtend({},a.currentData),o=f.quickExtend({},r.items);o[e.id]=f.quickExtend({},o[e.id],e),r.items=o,a.currentData=r,de.beginAtomicBatch(),n.setPropertyValue("dataInfo",a),de.endAtomicBatch()},removeDataItem:function(e){var t=this,n=t.instance,i=n.getPropertyValue("dataInfo"),a=f.quickExtend({},i),r=f.quickExtend({},a.currentData),o=f.quickExtend({},r.items);delete o[e],r.items=o,a.currentData=r,de.beginAtomicBatch(),n.setPropertyValue("dataInfo",a),de.endAtomicBatch()},getEmptyItem:e,duplicateItem:function(e){return f.quickExtend({},e,{id:ka.generateWebsiteId()})},clear:function(){this.itemsInformation.clear()},getItemFields:function(){var e=this,t=e.instance;return t.getPropertyValue("itemFields")},updateItemFields:function(e){var t=this,n=t.instance;n.setPropertyValue("itemFields",e)},setDataInfo:function(){var e=this,t=e.instance,n=t.getPropertyValue("dataInfo");if(e.getCollectionItems().postponeUpdates(),null!==n&&void 0!==n){for(var i=e.itemsInformation.getItemsValues(),a=[],r=i.length,o=0;r>o;o++)n.currentData.items[i[o].id]||a.push(i[o].id);e.itemsInformation.remove(a);var s=f.grep(f.getValues(n.currentData.items),function(e){return!n.itemsMap||n.itemsMap[e.id]!==!1});s.sort(e.sortingFunction);for(var o=0;o<s.length;o++){var l=s[o];l.index=o+1}e.itemsInformation.syncrhonize(s)}else e.itemsInformation.clear();e.getCollectionItems().unPostponeUpdates()}});t.getEmptyItem=e}(),function(){var e=void 0,t=hi.GalleryElementView=vi.extend("GalleryElementView",{isForSave:!0,manageItemsPanelName:"GalleryItemsPanel",manageItemsPanelTitle:void 0,setDataItems:function(e){var t=this,n=t.instance,i=n.getPropertyValue("dataInfo"),a=f.quickExtend({},i);a.currentData=f.quickExtend({},a.currentData),
e=f.asArray(e),f.eachItem(e,function(e,t){a.currentData[t.id]=f.quickExtend({},a.currentData[t.id],t)}),de.beginAtomicBatch(),n.setPropertyValueWithOrWithOutBinding(a,ui.dataInfo.name),de.endAtomicBatch()},getIndex:function(e){var t=this,n=t.instance,i=n.getPropertyValue("dataInfo");return i.currentData[e].index},addDataItem:function(e){var t=this,n=t.instance,i=n.getPropertyValue("dataInfo"),a=f.quickExtend({},i),r=f.quickExtend({},a.currentData);r[e.id]=f.quickExtend({},r[e.id],e),a.currentData=r;for(var o=f.getValues(r).sort(t.sortingFunction),s={},l=0;l<o.length;l++){var c=f.quickExtend({},o[l]);c.index=l+1,s[c.id]=c}a.currentData=s,de.beginAtomicBatch(),de.addRememberSectionsLayoutOperation(n),n.setPropertyValueWithOrWithOutBinding(a,ui.dataInfo.name),de.endAtomicBatch()},removeDataItem:function(e){var t=this,n=t.instance,i=n.getPropertyValue("dataInfo"),a=f.quickExtend({},i),r=f.quickExtend({},a.currentData);delete r[e];for(var o=f.getValues(r).sort(t.sortingFunction),s={},l=0;l<o.length;l++){var c=f.quickExtend({},o[l]);c.index=l+1,s[c.id]=c}a.currentData=s,de.beginAtomicBatch(),de.addRememberSectionsLayoutOperation(n),n.setPropertyValueWithOrWithOutBinding(a,ui.dataInfo.name),de.endAtomicBatch()},getEmptyItem:e,duplicateItem:function(e){return f.quickExtend({},e,{id:ka.generateWebsiteId()})},clear:function(){this.itemsInformation.clear()},getItemFields:function(){var e=this,t=e.instance;return t.getPropertyValue("itemFields")},updateItemFields:function(e){var t=this,n=t.instance;n.setPropertyValue("itemFields",e)},setDataInfo:function(){var e=this,t=e.instance,n=t.getPropertyValue("dataInfo");if(e.getCollectionItems().postponeUpdates(),null!==n&&void 0!==n){for(var i=e.itemsInformation.getItemsValues(),a=[],r=i.length,o=0;r>o;o++)n.currentData&&n.currentData[i[o].id]||a.push(i[o].id);e.itemsInformation.remove(a);var s=f.grep(f.getValues(n.currentData),function(e){return!n.itemsMap||n.itemsMap[e.id]!==!1});s.sort(e.sortingFunction);for(var l=[],o=0;o<s.length;o++){var c=f.quickExtend({},s[o]);c.index=o+1,l.push(c)}e.itemsInformation.syncrhonize(l)}else e.itemsInformation.clear();e.getCollectionItems().unPostponeUpdates()}});t.getEmptyItem=e}(),function(){hi.DataListElementView=hi.GalleryElementView.extend("DataListElementView",{manageItemsPanelName:"DataListItemsPanel",manageItemsPanelTitle:void 0})}(),function(){function e(e){var t,n,i={};if(e&&e.currentData){i=f.quickExtend({},e),t=f.quickExtend({},e.currentData),n=f.quickExtend({},e.itemsMap);var a=i.currentData.items,r={};a&&(f.each(a,function(e,t){r[e]=f.quickExtend({},t)}),t.items=r,i.currentData=t,i.itemsMap=n)}return i}function t(e){var t=e.dataSourceInfo.currentData;if(t){var n=f.getKeys(t.collectionItems.getItems());switch(e.itemsInformation.remove(n),e.fieldsInformation.disconnectObservableCollection(),e.itemsInformation.disconnectObservableCollection(),t.type){case di.NavigableInstance.name:var i=sa.getInstanceByID(t.id);i&&i.instanceRemoved.unbind(t.onRemoved),t.itemsRefreshed.unbind()}delete e.dataSourceInfo.currentData}}function n(e,t,n){function i(){e.itemsInformation.connectObservableCollection(r.collectionItems),e.collectionFields.unPostponeUpdates(),e.collectionItems.unPostponeUpdates()}var a=sa.getInstanceByID(e.instanceId),r=e.dataSourceInfo.currentData,o=t.type===di.NavigableInstance.name;if(!r||r.id!==t.id){var s,l,c,u,d;switch(e.collectionFields.postponeUpdates(),e.collectionItems.postponeUpdates(),r={},t.type){case di.NavigableInstance.name:if(d=sa.getInstanceByID(t.id),!d)return;s=d.getItemsInformation(),c=d.getFieldsInformation(),l=d.getItemsCollection(),u=d.getFieldsCollection();break;case di.DummyType.name:}switch(r=f.quickExtend({id:t.id,type:t.type,itemsMap:n,observableCollection:s,observableFields:c,collectionItems:l,collectionFields:u},r),e.dataSourceInfo.currentData=r,t.type){case di.NavigableInstance.name:r.onItemChanged=d.currentItemChangedEvent.bind(function(t){d.isInstanceVisible()&&t.currentItem&&e.currentItemChangedEvent.fireNew(t.currentItem.id)}),r.onRemoved=d.instanceRemoved.bind(function(){Er.performOnLayoutUpdate(function(){var e=a.getDataSource();!a.isInDeleteProcess&&e&&e.dataSourceInfo.currentData.id===t.id&&sa.removeInstances([a])},"navigatable removed"+a.id)}),r.itemsRefreshed=d.itemsRefreshed.bind(function(){f.each(a.dataItemsController.getAllControllers(),function(e,t){a.onItemSet(t.getInstance())})})}var g=r.collectionItems.postponeUpdates();e.fieldsInformation.clear(),e.itemsInformation.clear();var p=e.getItemFields(),h=f.getValues(p);h.length>0&&e.fieldsInformation.put(h);f.getValues(t.items);o&&d.hasFeature(oi.DataList)&&!d.reArrangingFinishedWasFired&&d.reArrangingFinished?d.reArrangingFinished.one(function(){i()}):o?sa.performOnInstancesInitialization([d.id],i):i(),g||r.collectionItems.unPostponeUpdates()}}ai.registerMenuItemTypes({NavigableInstance:{name:"NavigableInstance"},MasterPages:{name:"MasterPages"},DummyType:{name:"DummyType"}}),hi.MenuElementView=vi.extend("MenuElementView",{fields:{index:{name:"index"},title:{name:"title"}},isForSave:!0,manageItemsPanelName:"MenuItemsPanel",manageItemsPanelTitle:void 0,setDataItems:function(e){var t=this,n=t.instance,i=n.getPropertyValue("dataInfo"),a=f.quickExtend({},i),r=f.quickExtend({},a.currentData),o=f.quickExtend({},t.getAllDataItems());e=f.asArray(e),f.eachItem(e,function(e,t){o[t.id]=f.quickExtend({},o[t.id],t)}),r.items=o,a.currentData=r,de.beginAtomicBatch(),n.setPropertyValue("dataInfo",a),de.endAtomicBatch()},removeDataItem:function(e){var t=this,n=t.instance,i=n.getPropertyValue("dataInfo"),a=f.quickExtend({},i),r=f.quickExtend({},a.itemsMap);r[e]=!1,a.itemsMap=r,de.beginAtomicBatch(),de.addRememberSectionsLayoutOperation(n),n.setPropertyValue("dataInfo",a),de.endAtomicBatch()},getAllDataItems:function(){var e=this,t=e.instance;if(!e.dataSourceInfo)return{};var n=(t.getPropertyValue("dataInfo"),f.objectGet(t.getPropertyValue("dataInfo"),["currentData","items"])),i=e.dataSourceInfo.currentData.observableCollection.getItems(),a={};return f.each(i,function(e,t){n[t.id]?a[e]=f.quickExtend({},n[t.id]):a[e]=f.quickExtend({},t)}),f.quickExtend({},a,e.collectionItems.getItems())},getItemFields:function(){var e=this,t=e.instance;return f.quickExtend({},e.fieldsInformation.getItems(),t.getPropertyValue("itemFields"))},connectToNavigatable:function(e){var t,n=this,i=n.instance,a={id:e.id,type:di.NavigableInstance.name,index:1,title:i.getPropertyValue("name")};switch(a.type){case di.NavigableInstance.name:t=e.getItemsInformation()}var r=t.getItems(),o={};f.each(r,function(e){o[e]=!0});var s=f.quickExtend({},r);f.each(s,function(e,t){s[e]=f.quickExtend({},t)}),a.items=s,a.connectedItems=f.count(s),i.setPropertyValue("dataInfo",{currentData:a,itemsMap:o})},updateItemFields:function(e){var t=this,n=t.instance;n.setPropertyValue("itemFields",e),t.fieldsInformation.syncrhonize(f.getValues(e))},clear:function(){var e=this;e.dataSourceInfo&&t(e)},setDataInfo:function(){function i(){a.dataSourceInfo&&null!==a.dataSourceInfo&&a.dataSourceInfo.currentData&&(l&&l.id===a.dataSourceInfo.currentData.id||t(a)),l?(a.dataSourceInfo&&null!==a.dataSourceInfo||(a.dataSourceInfo={}),n(a,l,c)):a.itemsInformation.clear()}var a=this,r=a.instance,o=r.getPropertyValue("dataInfo");if(!o)return void window.setTimeout(function(){sa.removeInstances([r])},0);var s=e(o),l=s.currentData,c=s.itemsMap;if(l&&l.type===di.NavigableInstance.name)r.isDisplayed.setValue(!1,"NAvigatableNotInitialized"),sa.performOnInstancesInitialization([l.id],function(){r.isDisplayed.setValue(!0,"NAvigatableNotInitialized"),i()});else{if(l&&l.type===di.MasterPages.name||!l||!l.type)return void window.setTimeout(function(){sa.removeInstances([r])},0);i()}}})}(),function(){var e=void 0,t=hi.FormElementView=vi.extend("FormElementView",{isForSave:!0,manageItemsPanelName:"FormItemsPanel",manageItemsPanelTitle:void 0,setDataItems:function(e){var t=this,n=t.instance,i=n.getPropertyValue("dataInfo"),a=f.quickExtend({},i),r=f.quickExtend({},a.currentData);e=f.asArray(e),f.each(e,function(e,t){r[t.id]=f.quickExtend({},r[t.id],t)}),a.currentData=r,de.beginAtomicBatch(),n.setPropertyValueWithOrWithOutBinding(a,ui.dataInfo.name),de.endAtomicBatch()},getIndex:function(e){var t=this,n=t.instance,i=n.getPropertyValue("dataInfo");return i.currentData[e].index},addDataItem:function(e){var t=this,n=t.instance,i=n.getPropertyValue("dataInfo"),a=f.quickExtend({},i),r=f.quickExtend({},a.currentData);r[e.id]=f.quickExtend({},e),a.currentData=r,de.beginAtomicBatch(),de.addRememberSectionsLayoutOperation(n),n.setPropertyValueWithOrWithOutBinding(a,ui.dataInfo.name),de.endAtomicBatch()},removeDataItem:function(e){var t=this,n=t.instance,i=n.getPropertyValue("dataInfo"),a=f.quickExtend({},i),r=f.quickExtend({},a.currentData);delete r[e],a.currentData=r,de.beginAtomicBatch(),de.addRememberSectionsLayoutOperation(n),n.setPropertyValueWithOrWithOutBinding(a,ui.dataInfo.name),de.endAtomicBatch()},getEmptyItem:e,duplicateItem:function(e){var t=ka.generateWebsiteId();return f.extend({},e,{id:t,fieldName:t})},clear:function(){this.itemsInformation.clear()},getItemFields:function(){var e=this,t=e.instance;return t.getPropertyValue("itemFields")},updateItemFields:function(e){var t=this,n=t.instance;n.setPropertyValue("itemFields",e)},setDataInfo:function(){var e=this,t=e.instance,n=t.getPropertyValue("dataInfo");if(e.getCollectionItems().postponeUpdates(),null!==n&&void 0!==n){for(var i=e.itemsInformation.getItemsValues(),a=[],r=i.length,o=0;r>o;o++)n.currentData[i[o].id]||a.push(i[o].id);e.itemsInformation.remove(a);var s=f.grep(f.getValues(n.currentData),function(e){return!n.itemsMap||n.itemsMap[e.id]!==!1});s.sort(e.sortingFunction);for(var o=0;o<s.length;o++){var l=s[o];l.index=o+1}e.itemsInformation.syncrhonize(s)}else e.itemsInformation.clear();e.getCollectionItems().unPostponeUpdates()}});t.getEmptyItem=e}(),function(){var e=void 0,t=hi.VideoGalleryElementView=hi.GalleryElementView.extend("VideoGalleryElementView",function(t){return{init:function(e,n,i){var a=this;t.call(a,e,n,i)},getEmptyItem:e,manageItemsPanelName:"VideoGalleryItemsPanel",manageItemsPanelTitle:void 0}});t.getEmptyItem=e}(),function(){hi.PostsListView=vi.extend("PostsListView",function(e){return{sortingFunction:!1,init:function(t,n,i){var a=this;e.call(a,t,n,i),a.inDynamicPage=O.create(!1)},getItemFields:function(){var e=_e.getListControllerFromInstance(this.instance);return e&&e.getAvailableFields()},openItemsDialog:void 0,getViewInfo:function(e,t){var n=this._buildQuery(e,t);return{filters:n.getFilters(),sorts:n.getSorts()}},setDataInfo:function(){var e=this,t=e.instance,n=_e.getListNameFromInstance(t);void 0===e._listenersGroup&&(e._listenersGroup=x.createEventListenersGroup(),x.createEventListener([{name:n,event:Cr.Events.ListCreated}],function(){e._createNewQuery(),e._createListListeners()}).addToGroup(e._listenersGroup),x.createEventListener([{name:n,event:Cr.Events.ListRemoved}],function(){e.refreshDataSource()}).addToGroup(e._listenersGroup),e._createListListeners(),e.inDynamicPage.createValueListener(function(){e.inDynamicPage.isTrue()?e._listItemChangedEvent.activateAndExecute():(e._listItemChangedEvent.deactivate(),e._createNewQuery())}).addToGroup(e._listenersGroup),e._listenersGroup.activateAll()),e._createNewQuery()},clear:function(){var e=this;e._listUpdatedEventListener&&e._listUpdatedEventListener.dispose(),e._listItemChangedEvent&&e._listItemChangedEvent.dispose(),e._listenersGroup&&e._listenersGroup.disposeAll(),e._primaryPostsListListeners&&e._primaryPostsListListeners.disposeAll(),e.itemsInformation.clear()},fetchItems:function(e,t,n,i){var a=this,r=_e.getListControllerFromInstance(a.instance);void 0!==r?$r.executeAsync(r,a._currentListQuery.between(e,t),function(e){var t=e.items;a.itemsInformation.put(t),n({fetchedItems:t,totalCount:e.totalCount})},i):(a.itemsInformation.clear(),n({fetchedItems:[],totalCount:0}))},_buildQuery:function(e,t){var n=this.instance,i=n.getPropertyValue(ui.dataInfo.name);if(null!==i&&void 0!==i){var a=Ur.createPublishedItemsQuery(),r=Cr.getListByName(i.listName),o=r&&r.currentListType.getValue();if(o!==Cr.SupportedListTypes.page&&!e&&n.isPrimary())switch(o){case Cr.SupportedListTypes.tag:a.andHasTag(r.currentDisplayedTag.getValue());break;case Cr.SupportedListTypes.category:a.andHasCategory(r.currentDisplayedCategory.getValue())}else{switch(i.showPinned&&a.sortByPinned(),i.filterType){case Vo.FeaturedPosts:a.andFeaturedOnly();break;case Vo.PinnedPosts:a.andPinnedOnly()}i.specificTag&&a.andHasTag(i.specificTag),e?a.andNotCurrentItem():t&&void 0!==r.currentDisplayedItemAlias&&a.andNotCurrentItem(r.currentDisplayedItemAlias)}return a.sortByDate(),a.sortById(),a}return null},_createNewQuery:function(){var e=this,t=_e.getListControllerFromInstance(e.instance);if(void 0!==t){e._listUpdatedEventListener&&e._listUpdatedEventListener.dispose();var n=e._buildQuery(!1,e.inDynamicPage.isTrue());null!==n&&(e._currentListQuery=n,e._listUpdatedEventListener=t.createListUpdatedListener(function(){e.refreshDataSource()}).activateAndExecute())}},_createListListeners:function(){var e=this,t=e.instance,n=_e.getListControllerFromInstance(t);void 0!==n&&(e._listItemChangedEvent&&e._listItemChangedEvent.dispose(),e._listItemChangedEvent=n.currentItemChangedEvent.createEventListener(function(){e._createNewQuery()}),e.inDynamicPage.isTrue()&&e._listItemChangedEvent.activate(),t.isPrimary()&&(e._primaryPostsListListeners&&e._primaryPostsListListeners.disposeAll(),e._primaryPostsListListeners=x.createEventListenersGroup(),n.primaryListChanged.createEventListener(function(){t.changeCurrentItem(n.currentDisplayedPage.getValue()-1),e._createNewQuery(),t.isPrimary()&&t.itemsRefreshed.fireNew()}).addToGroup(e._primaryPostsListListeners),e._primaryPostsListListeners.activateAll()))}}})}(),function(){hi.MenuCardElementView=hi.GalleryElementView.extend("MenuCardElementView",{manageItemsPanelTitle:void 0})}(),function(){function e(e){x.unbind(e.currentItemChangedEventBindings),delete e.currentItemChangedEventBindings,x.unbind(e.hierarchyUpdateEventBiniding),delete e.hierarchyUpdateEventBiniding,e.itemsInformation.disconnectObservableCollection()}function t(t){var n=t.instance;t.itemsInformation.beginUpdate(),e(t),n.isNavigationButton()||(t.itemsInformation.connectObservableCollection(va.NavigatablePagesCollection),t.hierarchyUpdateEventBiniding=x.bind([va.NavigatableHierarchy.hierarchyUpdateEvent],function(){t.refreshDataSource()}),t.currentItemChangedEventBindings=va.Events.PageChanged.bind(function(){t.currentItemChangedEvent.fireNew(va.getCurrentPage().id)})),t.itemsInformation.endUpdate()}hi.PageMenuElementView=vi.extend("PageMenuElementView",{isForSave:!0,removeDataItem:cs,getItemFields:function(){return va.FieldsCollection.getItems()},clear:function(){e(this)},openItemsDialog:void 0,setDataItems:void 0,refresh:function(){var e=this;t(e)},getControllersHierarchy:function(){return va.NavigatableHierarchy},setDataInfo:function(){var e=this;e.isItemsInformationInitialized||(t(e),e.isItemsInformationInitialized=!0)}})}(),function(){function e(e){x.unbind(e.currentItemChangedEventBindings),e.itemsInformation.disconnectObservableCollection()}function t(t){t.itemsInformation.beginUpdate(),e(t),t.itemsInformation.connectObservableCollection(wr.CurrentVisibleMainPageSectionsObserver,{mapItem:n}),t.currentItemChangedEventBindings=x.bind([va.Events.PageChanged],function(){t.currentItemChangedEvent.fireNew(va.getCurrentPage().id)}),t.itemsInformation.endUpdate()}function n(e){return{id:e.id,title:e.title,index:e.index}}var i={index:{type:"index",title:void 0,name:"index",isDefaultField:!0},title:{type:"title",title:void 0,name:"title",isDefaultField:!0}};hi.SectionMenuElementView=vi.extend("SectionMenuElementView",{isForSave:!0,removeDataItem:cs,getItemFields:function(){return i},clear:function(){e(this)},openItemsDialog:cs,setDataItems:function(e){e=f.asArray(e),de.beginAtomicBatch(),f.eachItem(e,function(e,t){var n=sa.getInstanceByID(t.id);n&&n.setPropertyValue("sectionName",t.title)}),de.endAtomicBatch()},refresh:function(){var e=this;t(e)},setDataInfo:function(){var e=this;e.isItemsInformationInitialized||(t(e),e.isItemsInformationInitialized=!0)}})}(),function(){hi.ListItemView=yi.extend("ListItemView",{getItemFields:function(){var e=this.getPageId()||this.id,t=Cr.getListByName(e);return t.getAvailableFields()},refreshItem:function(e){var t=this;t.getCollectionItems().postponeUpdates(),t.itemsInformation.clear(),t.itemsInformation.put(f.quickExtend({},e,{id:"currentItem"})),t.getCollectionItems().unPostponeUpdates()},setPageId:function(e){this.pageId=e},getPageId:function(){return this.pageId}})}(),function(){function e(e){var t=e.iconsMap,n=f.grep(f.getValues(e.currentData),function(e){return!t||t[e.id].iconDisplayed!==!1});return n.sort(function(e,t){return void 0!==e.index&&void 0!==t.index?e.index-t.index:void 0!==e.index?-1:void 0!==t.index?1:0})}hi.SocialIconsElementView=vi.extend("SocialIconsElementView",{clear:function(){this.itemsInformation.clear()},openItemsDialog:void 0,setDataItems:void 0,removeDataItem:function(e){var t=this,n=t.instance,i=f.quickExtend({},n.getPropertyValue("dataInfo")),a=f.quickExtend({},i.iconsMap);a[e]=f.quickExtend({},i.iconsMap[e]),a[e].iconDisplayed=!1,i.iconsMap=a,de.beginAtomicBatch(),de.addRememberSectionsLayoutOperation(n),n.setPropertyValue("dataInfo",i),de.endAtomicBatch()},getItemFields:function(){var e=this,t=e.instance;return t.getPropertyValue("itemFields")},updateItemFields:function(e){var t=this,n=t.instance;n.setPropertyValue("itemFields",e)},setDataInfo:function(){var t=this,n=t.instance,i=n.getPropertyValue("dataInfo");if(t.getCollectionItems().postponeUpdates(),t.itemsInformation.disconnectObservableCollection(),t.itemsInformation.clear(),null!==i&&void 0!==i){var a=i.collectionName;if(i.isSynced)t.itemsInformation.connectObservableCollection(Sr.getSocialLinksCollectionObservable(),{filterFunction:function(e){return!(i.iconsMap&&(!i.iconsMap[e.id]||i.iconsMap[e.id].iconDisplayed===!1))},mapItem:function(e,t){var n=e.iconType;return e.fontIcon=Ci[a].icons[n],f.quickExtend({},t.getItem(e.id),e)},normalizeCollection:function(){for(var n=e(i),a=0;a<n.length;a++){var r=n[a];t.itemsInformation.updateItemFields(r.id,{index:a+1})}}});else{for(var r=e(i),o=[],s=0;s<r.length;s++)if("googlePlus"!==r[s].id){var l=f.quickExtend({},r[s]);l.index=s+1;var c=l.iconType;l.fontIcon=Ci[a].icons[c],o.push(l)}t.itemsInformation.syncrhonize(o)}}t.getCollectionItems().unPostponeUpdates()}})}(),function(){hi.SocialSharingElementView=vi.extend("SocialSharingElementView",{clear:function(){this.itemsInformation.clear()},openItemsDialog:void 0,setDataItems:function(e){var t=this,n=t.instance,i=n.getPropertyValue("dataInfo"),a=f.quickExtend({},i);a.currentData=f.quickExtend({},a.currentData),e=f.asArray(e),f.eachItem(e,function(e,t){a.currentData[t.id]=f.quickExtend({},a.currentData[t.id],t)}),de.beginAtomicBatch(),n.setPropertyValueWithOrWithOutBinding(a,"dataInfo"),de.endAtomicBatch()},removeDataItem:function(e){var t=this,n=t.instance,i=f.quickExtend({},n.getPropertyValue("dataInfo")),a=f.quickExtend({},i.iconsMap);a[e]=f.quickExtend({},i.iconsMap[e]),a[e].iconDisplayed=!1,i.iconsMap=a,de.beginAtomicBatch(),de.addRememberSectionsLayoutOperation(n),n.setPropertyValueWithOrWithOutBinding(i,"dataInfo"),de.endAtomicBatch()},getItemFields:function(){var e=this,t=e.instance;return t.getPropertyValue("itemFields")},updateItemFields:function(e){var t=this,n=t.instance;n.setPropertyValue("itemFields",e)},setDataInfo:function(){var e=this,t=e.instance,n=t.getPropertyValue("dataInfo");if(e.getCollectionItems().postponeUpdates(),e.itemsInformation.disconnectObservableCollection(),e.itemsInformation.clear(),null!==n&&void 0!==n){var i=n.collectionName,a=f.grep(f.getValues(n.currentData),function(e){return!n.iconsMap||!n.iconsMap[e.id]||n.iconsMap[e.id].iconDisplayed!==!1});a=a.sort(e.sortingFunction);for(var r=[],o=0;o<a.length;o++)if("googlePlus"!==a[o].id){var s=f.quickExtend({},a[o]);s.index=o+1;var l=s.iconType;s.fontIcon=Ci[i].icons[l],r.push(s)}e.itemsInformation.syncrhonize(r)}e.getCollectionItems().unPostponeUpdates()}})}(),function(){hi.TagCloudView=vi.extend("TagCloudView",function(e){return{init:function(t,n,i){var a=this;e.call(a,t,n,i),a.currentItemChangedListener=x.createEventListener([va.Events.PageChanged],function(){a.currentItemChangedEvent.fireNew()}).activate()},sortingFunction:!1,getItemFields:function(){var e=_e.getListControllerFromInstance(this.instance);return e&&e.getTagFields()},openItemsDialog:void 0,setDataInfo:function(){function e(){var e=Cr.getListByName(i.listName);void 0!==e&&(t.listUpdated&&t.listUpdated.dispose(),t.listUpdated=e.createListUpdatedListener(function(){t.refreshDataSource()}).activate())}var t=this,n=t.instance,i=n.getPropertyValue("dataInfo");void 0===t.listenersGroup&&(t.listenersGroup=x.createEventListenersGroup(),x.createEventListener([{name:i.listName,event:Cr.Events.ListCreated}],function(){e(),t.refreshDataSource()}).addToGroup(t.listenersGroup),x.createEventListener([{name:i.listName,event:Cr.Events.ListRemoved}],function(){t.refreshDataSource()}).addToGroup(t.listenersGroup),t.listenersGroup.activateAll()),e()},clear:function(){var e=this;e.listUpdated&&e.listUpdated.dispose(),e.listenersGroup&&e.listenersGroup.disposeAll(),e.itemsInformation.clear(),e.currentItemChangedListener.dispose()},fetchAllItems:function(e,t){var n=this,i=_e.getListControllerFromInstance(n.instance);void 0!==i?i.fetchTags(function(t){n.itemsInformation.syncrhonize(t),e({fetchedItems:t,totalCount:t.length})},t):(n.itemsInformation.clear(),e({fetchedItems:[],totalCount:0}))}}})}(),function(){hi.ListItemTagsView=hi.TagCloudView.extend("ListItemTagsView",function(e,$super){return{getItemFields:function(){var e=_e.getListControllerFromInstance(this.instance);return e&&e.getTagFields(!0)},setDataInfo:function(){var e=this,t=_e.getListControllerFromInstance(e.instance);void 0!==t&&(e.itemUpdated&&e.itemUpdated.dispose(),e.itemUpdated=t.currentItemChangedEvent.createEventListener(function(){e.refreshDataSource()}).activate())},clear:function(){var e=this;$super.clear.call(e),e.itemUpdated&&e.itemUpdated.dispose()},fetchAllItems:function(e){var t=this,n=_e.getListControllerFromInstance(t.instance),i=n.getCurrentItemTags();t.itemsInformation.syncrhonize(i),e({fetchedItems:i,totalCount:i.length})}}})}(),function(){hi.ListCategoriesView=vi.extend("ListCategoriesView",function(e){return{init:function(t,n,i){var a=this;e.call(a,t,n,i),a.currentItemChangedListener=x.createEventListener([va.Events.PageChanged],function(){a.currentItemChangedEvent.fireNew()}).activate()},sortingFunction:!1,getItemFields:function(){var e=this,t=e.instance,n=t.getPropertyValue("dataInfo"),i=Cr.getListByName(n.listName);return i&&i.getCategoriesFields()},openItemsDialog:void 0,setDataInfo:function(){function e(){var e=Cr.getListByName(i.listName);void 0!==e&&(t.listUpdated&&t.listUpdated.dispose(),t.listUpdated=e.createListUpdatedListener(function(){t.refreshDataSource()}).activate())}var t=this,n=t.instance,i=n.getPropertyValue("dataInfo");void 0===t.listenersGroup&&(t.listenersGroup=x.createEventListenersGroup(),x.createEventListener([{name:i.listName,event:Cr.Events.ListCreated}],function(){e(),t.refreshDataSource()}).addToGroup(t.listenersGroup),x.createEventListener([{name:i.listName,event:Cr.Events.ListRemoved}],function(){t.refreshDataSource()}).addToGroup(t.listenersGroup),t.listenersGroup.activateAll()),e()},clear:function(){var e=this;e.listUpdated&&e.listUpdated.dispose(),e.listenersGroup&&e.listenersGroup.disposeAll(),e.itemsInformation.clear(),e.currentItemChangedListener.dispose()},fetchAllItems:function(e,t){var n=this,i=_e.getListControllerFromInstance(n.instance);void 0!==i?i.fetchCategories(function(t){n.itemsInformation.syncrhonize(t),e({fetchedItems:t,totalCount:t.length})},t):(n.itemsInformation.clear(),e({fetchedItems:[],totalCount:0}))}}})}(),function(){hi.InlineDataSource=vi.extend("InlineDataSource",{isForSave:!0,setDataItems:function(e){var t=this,n=t.instance,i=f.quickExtend({},n.getPropertyValue("dataInfo"));e=f.asArray(e),i.currentData=f.quickExtend({},i.currentData,e[0],{id:t.id}),de.beginAtomicBatch(),n.setPropertyValue("dataInfo",i),de.endAtomicBatch()},clear:function(){this.itemsInformation.clear()},getItemFields:function(){var e=this,t=e.instance;return t.getPropertyValue("itemFields")},updateItemFields:function(e){var t=this,n=t.instance;n.setPropertyValue("itemFields",e)},setDataInfo:function(){var e=this,t=e.instance,n=t.getPropertyValue("dataInfo");n&&n.currentData?(e.getCollectionItems().postponeUpdates(),e.itemsInformation.clear(),e.itemsInformation.syncrhonize([f.quickExtend({},n.currentData,{id:e.id})]),e.getCollectionItems().unPostponeUpdates()):e.itemsInformation.clear()}})}(),function(){hi.MailingListDataSource=ki.extend("MailingListDataSource",{getItemId:function(e){return e.id},getFieldDefinitions:function(){return{index:{type:"index",title:"Id",name:"id",isDefaultField:!0,mappingFunction:function(e){return e.id}},name:{type:"title",title:"Name",name:"name",isDefaultField:!0,mappingFunction:function(e){return e.name}},email:{type:"email",title:"Email",name:"emailAddress",isDefaultField:!0,mappingFunction:function(e){return e.email}},date:{type:"date",title:"Date",name:"date",isDefaultField:!0,mappingFunction:function(e){return e.date}}}},getDataPromise:function(e){var t=e.getCollection();t.getAttributes()||{};return new Si("/services/mailing-list/fetchAll",{dataType:"json",contentType:"application/json"}).setHttpMethod(Ii.Post).addParameter(new Ti("siteId",Ei.Body,Ia.getSiteID())).execute()}})}(),function(){hi.FormContactsView=ki.extend("FormContactsView",{getItemId:function(e){return e.id},getFieldDefinitions:function(){return{index:{type:"index",title:"Index",name:"index",isDefaultField:!0,mappingFunction:function(e){return e.index}},id:{type:"id",title:"Id",name:"id",isDefaultField:!0,mappingFunction:function(e){return e.id}},fieldOptions:{type:"options",title:"fieldOptions",name:"fieldOptions",isDefaultField:!0,mappingFunction:function(e){return e.fields}},date:{type:"date",title:"Date",name:"date",isDefaultField:!0,mappingFunction:function(e){return e.submissionTime}},formId:{type:"id",title:"Form ID",name:"formId",isDefaultField:!0,mappingFunction:function(e){return e.formId}}}},getDataPromise:function(e){var t=e.getCollection(),n=t.getAttributes()||{};return new Si("/services/form/fetchAll",{dataType:"json",contentType:"application/json"}).setHttpMethod(Ii.Post).addParameter(new Ti("siteId",Ei.Body,Ia.getSiteID())).addParameter(new Ti("formId",Ei.Body,n.formId)).execute()}})}(),function(){fi.registerDataSourceItemFields([{name:"StoreBuyButton",type:"StoreBuyButton",supportElementContentBinding:us,getContentType:function(){return bi.Data},isTarget:ds},{name:"StoreVariantsContainer",type:"StoreVariantsContainer",supportElementContentBinding:us,getContentType:function(){return bi.Data},isEditable:!1,iconClass:"sprite-icon sprite-tool-category-images",getElementTypeName:function(){return ri.StoreVariantsContainer.name},isTarget:ds},{name:"StorePrice",type:"StorePrice",supportElementContentBinding:us,getContentType:function(){return bi.Text},isEditable:!0,getElementTypeName:function(){return ri.StorePrice.name},initialPropertiesValues:{Default:{formattedText:"$ 9.99"}},supportVisualizerBinding:ds,isTarget:ds,isText:us}]);hi.StoreFrontDataSource=ki.extend("StoreFrontDataSource",{getItemId:function(e){return e.id},getFieldDefinitions:function(e){var t=f.extend({itemFields:!1},e);if(t.itemFields){var n={};return f.eachEntry(Xr.FieldSets.Products,function(e,t){t.hideInTemplateEditor||(n[e]=t)}),n}return Xr.FieldSets.Products},getDataPromise:function(e){if(zr.hasStore()){var t=e.getCollection();if(t){var n=t.getAttributes();if(n){var i=n.callLimit||50,a=n.categoryId||null,r=n.callOffset||0,o=n.filters,s=n.sorting;return zr.getProducts(a,i,r,o,s)}}return zr.getProducts(null)}var l=f.Deferred();return setTimeout(function(){l.resolve()}),l},getDetailItem:function(e){return zr.hasStore()?zr.getSingleProduct(e):f.Deferred()},supportsLoadMore:function(){var e=this;return!e._noLimitSupported},processResult:function(e){var t=this;t._currentProductCount=null;var n,i=t.dataCollection&&t.dataCollection.getAttributes(),a=i&&i.categoryId||1;if(e instanceof Array==!1&&e.products?(n=e.products,e.categories&&e.categories.length!==zr.getAvailableCategories().length&&zr.setCurrentCategories(e.categories),e.filterOptions&&(a&&void 0!==t.lastCategory?t.lastCategory&&t.lastCategory!==a&&zr.setCurrentFilters(e.filterOptions):zr.setCurrentFilters(e.filterOptions))):n=e,n instanceof Array==!1)throw Error("result is not a valid Array, please implement the mapping feature yourself.");var r=t.getFieldDefinitions(),o=!1;i&&i.addDummyItems&&(o=!0,i.addDummyItems=!1);var s=0;if(i&&i.callOffset&&(s=i.callOffset),a&&(t.lastCategory=a),e instanceof Object==!0){if(e.totalProductCount||0===e.totalProductCount?t._currentProductCount=e.totalProductCount:t._noLimitSupported=!0,o&&e.totalProductCount){var l=e.totalProductCount-n.length;if(l>0)for(var c=0;l>c;c++)n.push({})}}else t._noLimitSupported=!0;return r?f.map(n,function(e,n){var i=n+s,a={id:i+"",index:i,navId:t.getItemId(e)};return f.eachEntry(r,function(t,n){a[n.name]=e[n.name]||null;var i=n.mappingFunction;i&&(a[n.name]=i(e))}),a}):void 0}})}(),function(){hi.StoreCategoriesDataSource=ki.extend("StoreCategoriesDataSource",{getItemId:function(e){return e.id},getFieldDefinitions:function(){return{categoryName:{type:"title",title:"Category Name",name:"categoryName",isDefaultField:!0,mappingFunction:function(e){return e.name}},categoryProductCount:{type:"title",title:"Product count",name:"productCount",isDefaultField:!0,mappingFunction:function(e){return e.productCount}}}},getDataPromise:function(){if(zr.hasStore()){f.Deferred();return f.Deferred()}return f.Deferred()},filterResult:function(e){e.categories&&(e=e.categories);var t=this,n=t.getCollection();if(n){var i=n.getAttributes();return i&&i.parentId?e.filter(function(e){return e.parentId===i.parentId}):e.filter(function(e){return null===e.parentId})}return e}})}(),function(){hi.StoreFiltersDataSource=ki.extend("StoreFiltersDataSource",{getItemId:function(e){return e.id},getFieldDefinitions:function(){return{filterName:{type:"title",title:"Filter Name",name:"filterName",isDefaultField:!0,mappingFunction:function(e){return e.name}},filterProductCount:{type:"title",title:"Product count",name:"productCount",isDefaultField:!0,mappingFunction:function(e){return e.productCount}}}},getDataPromise:function(){return zr.hasStore()?f.Deferred():f.Deferred()},filterResult:function(e){e.filterOptions&&(e=e.filterOptions);var t=this,n=t.getCollection();if(n){var i=n.getAttributes();return i&&i.parentId?e.filter(function(e){return e.parentId===i.parentId}):e.filter(function(e){return null===e.parentId})}return e}})}(),function(){hi.FacebookPhotosAlbumDataSource=ki.extend("FacebookPhotosAlbumDataSource",{getItemId:function(e){return e.id},getFieldDefinitions:function(){return qo.FieldSets.Album},mapResult:function(e){return e&&(e=e.data),e},getDataPromise:function(e){var t=e.getCollection(),n=t.getAttributes()||{};return new xi(this.getDataProxyRequestName(),[{id:"4a881821-26b5-4abb-9fa1-6690dd13a5e7",value:n.item.id}]).execute()},getDataProxyRequestName:function(){return"FacebookListAlbumPhotosApi"},getDetailItem:function(){return f.Deferred()}})}(),function(){hi.FacebookPhotosDataSource=ki.extend("FacebookPhotosDataSource",{getName:function(){return"Facebook Photos"},getItemId:function(e){return e.id},getFieldDefinitions:function(){return qo.FieldSets.Albums},mapResult:function(e){return e&&(e=e.data),e},getDataPromise:function(e){var t=e.getCollection(),n=t.getAttributes()||{},i=n.pageId;return i=Hi.parseFacebookUrl(i),f.Deferred().resolve()},getDataProxyRequestName:function(){return"FacebookListAlbumsApi"},getDetailItem:function(){
return f.Deferred()}})}(),function(){hi.FlickrPhotosDataSource=ki.extend("FlickrPhotosDataSource",{getItemId:function(e){return e["@id"]},getFieldDefinitions:function(){return Ho.Flickr},mapResult:function(e){return e&&e.rsp&&e.rsp.photosets&&e.rsp.photosets.photoset?e.rsp.photosets.photoset:[]},getDataPromise:function(e){var t=e.getCollection(),n=t.getAttributes()||{};return new xi(this.getDataProxyRequestName(),[{id:"6fc6fbfe-fe09-4f8b-a4b8-5a2fd890eeba",value:n.pageId}]).execute()},getDataProxyRequestName:function(){return"FlickrListPhotosetsApi"},getDetailItem:function(){return f.Deferred()}})}(),function(){hi.InstagramPhotosDataSource=ki.extend("InstagramDataSource",{getName:function(){return"Instagram Photos"},getItemId:function(e){return e.id},getFieldDefinitions:function(){return Ho.Instagram},mapResult:function(e){return e&&(e=e.data),e},getDataPromise:function(e){var t=e.getCollection(),n=t.getAttributes()||{};return new xi(this.getDataProxyRequestName(),[],{},n.pageId&&n.pageId.elementId?n.pageId.elementId:"").execute()},getDataProxyRequestName:function(){return"InstagramListUserPhotosApi"},hasDataProxyPerElementId:us,getDetailItem:function(){return f.Deferred()}})}(),function(){hi.TumblrPhotosDataSource=ki.extend("TumblrPhotosDataSource",{getItemId:function(e){return e.id},getFieldDefinitions:function(){return Ho.Tumblr},mapResult:function(e){return e&&(e=e.response.posts),e},getDataPromise:function(e){var t=e.getCollection(),n=t.getAttributes()||{};return new xi(this.getDataProxyRequestName(),[{id:"29c8acb2-1002-44ca-8b39-babb17c62afa",value:n.pageId}]).execute()},getDataProxyRequestName:function(){return"TumblrListPhotosApi"},getDetailItem:function(){return f.Deferred()}})}(),function(){fi.registerDataSourceItemFields([{name:"FacebookMediaElement",type:"FacebookMediaElement",supportElementContentBinding:us,getContentType:function(){return bi.Data},isEditable:!1,iconClass:"sprite-icon sprite-tool-category-images",getElementTypeName:function(){return ri.FacebookMediaElement.name},isTarget:ds},{name:"FacebookLikes",type:"FacebookLikes",supportElementContentBinding:us,getContentType:function(){return bi.Text},isEditable:!1,iconClass:"sprite-icon sprite-tool-category-images",getElementTypeName:function(){return ri.hideableText.name},initialPropertiesValues:{Default:{text:"100",horizontalAlign:ot.Centered,verticalAlignment:at.Centered,fontSize:16,font:er.createThemeFontBinding("heading1"),fontColor:"#000",sizeAndPosition:{width:220,height:60},order:103,backgroundColor:"transparent"},page:{namedTextStyle:$a.BodyM,fontSize:null,font:null,fontColor:null}},isTarget:ds,isText:us}]);hi.FacebookTimelineDataSource=ki.extend("FacebookTimelineDataSource",{getName:function(){return"Facebook Timeline"},getItemId:function(e){return e.id},getFieldDefinitions:function(){return Wo.FieldSets.Albums},mapResult:function(e){return e&&(e=e.data),e},getDataPromise:function(e){var t=e.getCollection(),n=t.getAttributes()||{},i=n.pageId;return i.constructor===Object&&0===Object.keys(i).length?f.Deferred().resolve():f.Deferred().resolve()},getDataProxyRequestName:function(){return"FacebookListPostsApi"},getDetailItem:function(){return f.Deferred()}})}(),function(){hi.GoogleReviewsDataSource=ki.extend("GoogleReviewsDataSource",{getItemId:function(e){return e.id},getFieldDefinitions:function(){return Go.Google},mapResult:function(e){if(e&&e.result&&e.result.reviews){for(var t=[],n=e.result.reviews,i=0;i<n.length;i++){var a=n[i];a.id=i,t.push(a)}return t}return[]},getDataPromise:function(e){var t=e.getCollection(),n=t.getAttributes()||{};return new xi(this.getDataProxyRequestName(),[{id:"f086e8f7-697d-4f16-8542-d7a5d620f92f",value:n.value}]).execute()},getDataProxyRequestName:function(){return"GooglePlaceListDetailsApi"},getDetailItem:function(){return f.Deferred()}})}(),function(){hi.TwitterDataSource=ki.extend("TwitterDataSource",{getItemId:function(e){return e.id},getFieldDefinitions:function(){return jo},mapResult:function(e){return e&&(e=e.tweets),e},getDataPromise:function(e){var t=e.getCollection(),n=t.getAttributes()||{};return new Si("http://4142DAQV.preview.impress.ly/api/twitter/2cdc2195-870c-6781-40df-330b4b3dd088?accountName=@"+n.pageId+"&searchPhrase=&instantAppId=2cdc2195-870c-6781-40df-330b4b3dd088",{dataType:"json",contentType:"application/json"}).setHttpMethod(Ii.Get).execute()},getDetailItem:function(){return f.Deferred()}})}(),function(){hi.FacebookEventsDataSource=ki.extend("FacebookEventsDataSource",{getName:function(){return"Facebook Events"},getItemId:function(e){return e.id},getFieldDefinitions:function(){return Xo.FieldSets.Albums},mapResult:function(e){return e&&e.data?e.data.reverse():[]},getDataPromise:function(e){var t=e.getCollection(),n=t.getAttributes()||{},i=n.value;return i.constructor===Object&&0===Object.keys(i).length?f.Deferred().resolve():new xi(this.getDataProxyRequestName(),[{id:"efb820a0-4375-426a-958e-ac1f2adc4d42",value:n.value}]).execute()},getDataProxyRequestName:function(){return"FacebookListEventsApi"},getDetailItem:function(){return f.Deferred()}}),hi.BandsInTownEventsDataSource=ki.extend("BandsInTownEventsDataSource",{getName:function(){return"Bands In Town Events"},getItemId:function(e){return e.id},getFieldDefinitions:function(){return Xo.BandsInTown},mapResult:function(e){return e?e:[]},getDataPromise:function(e){var t=e.getCollection(),n=t.getAttributes()||{},i=n.value;return i.constructor===Object&&0===Object.keys(i).length?f.Deferred().resolve():new xi(this.getDataProxyRequestName(),[{id:"a12735c2-94d0-468d-9876-d7a1f56dbed1",value:n.value}]).execute()},getDataProxyRequestName:function(){return"BandsintownListEventsApi"},getDetailItem:function(){return f.Deferred()}}),hi.EventfulEventsDataSource=ki.extend("EventfulEventsDataSource",{getName:function(){return"Eventful Events"},getItemId:function(e){return e.id},getFieldDefinitions:function(){return Xo.Eventful},mapResult:function(e){return e&&0!=e.event_count?e.event:[]},getDataPromise:function(e){var t=e.getCollection(),n=t.getAttributes()||{},i=n.value;return i.constructor===Object&&0===Object.keys(i).length?f.Deferred().resolve():new xi(this.getDataProxyRequestName(),[{id:"8676760f-4650-41c2-a6dd-4eb25a950750",value:n.value}]).execute()},getDataProxyRequestName:function(){return"EventfulListEventsApi"},getDetailItem:function(){return f.Deferred()}}),hi.MeetupEventsDataSource=ki.extend("MeetupEventsDataSource",{getName:function(){return"Meetup Events"},getItemId:function(e){return e.id},getFieldDefinitions:function(){return Xo.Meetup},mapResult:function(e){return e?e.results:[]},getDataPromise:function(e){var t=e.getCollection(),n=t.getAttributes()||{},i=n.value;return i.constructor===Object&&0===Object.keys(i).length?f.Deferred().resolve():new xi(this.getDataProxyRequestName(),[{id:"37f9becd-15fc-4489-99f5-8b830ea75725",value:n.value}]).execute()},getDataProxyRequestName:function(){return"MeetupListEventsApi"},getDetailItem:function(){return f.Deferred()}})}(),function(){hi.RSSMusicDataSource=ki.extend("RSSMusicDataSource",{getItemId:function(e){return e.id},getFieldDefinitions:function(){return Yo.RSS},mapResult:function(e){if(e&&e.Channels){var t=e.Channels[0];if(!t)return[];for(var n=[],i=t.ItunesImage||"https://my.impress.ly/api/image/600x600/b1474bef-4bfb-11e5-80d1-00155d130a43",a=t.ItunesAuthor,r=0;r<t.Items.length;r++){var o=t.Items[r];if(o){var s={artist:o.Artist,image:o.MediaThumbnail&&o.MediaThumbnail.Url||o.ArtworkUrl,description:o.Description,title:o.Title,publisheddate:o.PublicationDateValue,playbackurl:o.StreamUrl,playbackduration:o.Duration,cuesheeturl:o.CueSheetUrl,id:r};s.artist&&""!==s.artist||(s.artist=a),s.image&&""!==s.image||(s.image=i),n.push(s)}}return n}return[]},getDataPromise:function(e){var t=e.getCollection(),n=t.getAttributes()||{};return new Si(Settings.DataProxy+"/rss/mediarss?"+n.value,{dataType:"json",contentType:"application/json"}).setHttpMethod(Ii.Get).execute()},getDetailItem:function(){return f.Deferred()}}),hi.ITunesDataSource=ki.extend("ITunesDataSource",{getItemId:function(e){return e.id},getFieldDefinitions:function(){return Yo.ITunes},mapResult:function(e){if(e.results){for(var t=[],n=e.results,i=0;i<n.length;i++){var a=n[i];a.id=i,t.push(a)}return t}return[]},getDataPromise:function(e){var t=e.getCollection(),n=t.getAttributes()||{};return new xi(this.getDataProxyRequestName(),[{id:"c6f84587-2ca0-4f8e-a5e3-2e164978ccc0",value:n.value}]).execute()},getDataProxyRequestName:function(){return"iTunesListAlbumsApi"},getDetailItem:function(){return f.Deferred()}})}(),function(){hi.RSSNewsDataSource=ki.extend("RSSNewsDataSource",{getItemId:function(e){return e.id},getFieldDefinitions:function(){return Ko.RSS},mapResult:function(e){if(e&&e.items){var t=e.items;if(!t)return[];for(var n=[],i="https://my.impress.ly/api/image/600x600/b1474bef-4bfb-11e5-80d1-00155d130a43",a=0;a<t.length;a++){var r=t[a];if(r){var o={image:r.Image||r.DetailImage,description:r.Description,title:r.Name,publisheddate:r.PublishDateTime,id:a};o.image&&""!==o.image||(o.image=i),n.push(o)}}return n}return[]},getDataPromise:function(e){var t=e.getCollection(),n=t.getAttributes()||{};return new Si(Settings.DataProxy+"/rss/?"+n.value,{dataType:"json",contentType:"application/json"}).setHttpMethod(Ii.Get).execute()},getDetailItem:function(){return f.Deferred()}})}(),function(){hi.YoutubeChannelDataSource=ki.extend("YoutubeChannelDataSource",{getName:function(){return"YouTube Channel"},getItemId:function(e){return e.id},getFieldDefinitions:function(){return Uo.FieldSets.Channel},mapResult:function(e){return e&&(e=f.map(e.items,function(e){return"Private video"!==e.snippet.title?e:void 0})),e},getDataPromise:function(e){var t=e.getCollection(),n=t.getAttributes()||{};return new xi(this.getDataProxyRequestName(),[{id:"42a92888-817c-4b40-b678-86312857bedc",value:n.channelId}]).execute()},getDataProxyRequestName:function(){return"YoutubeListPlaylistsApi"},getDetailItem:function(){return f.Deferred()}})}(),function(){hi.YoutubePlaylistDataSource=ki.extend("YoutubePlaylistDataSource",{getName:function(){return"YouTube Playlist"},getItemId:function(e){return e.id},getFieldDefinitions:function(){return $o.FieldSets.Playlist},mapResult:function(e){return e&&(e=e.items),e},getDataPromise:function(e){var t=e.getCollection(),n=t.getAttributes()||{};return new xi(this.getDataProxyRequestName(),[{id:"ce643301-5219-49c3-b3ba-5ed767ca1b65",value:n.channelId||n.item&&n.item.id||""}]).execute()},getDataProxyRequestName:function(){return"YoutubeListPlaylistItemsApi"},getDetailItem:function(){return f.Deferred()}})}();var No=function(){var e=C.extend("InstanceController",{init:function(e,t){this._options=t=f.quickExtend({templateOptions:{},dataSourceOptions:{},isForTemplateUse:!1,connections:{}},t);var n,i=t.className;t.parentInstanceId&&(n=sa.getInstanceByID(t.parentInstanceId)),this._structureProcessor=t.structureProcessor,this._dataSourceOptions=t.dataSourceOptions,this._currentSize=void 0,this._templateItem=e,this._parentInstance=n,this._isForTemplateUse=t.isForTemplateUse;var a=f("<span class='inline-block instance-container'></span>");i&&a.addClass(i),this.id=f.uniqueID(),this.$element=a,this.pendingClasses={},this.initializeFlag=O.create(!1),this.createdFlag=O.create(!1),this.copiedConnections=t.connections,this.copiedProperties={}},lazyInitializationProperties:{initializedEvent:x.create,createdEvent:x.create,removedEvent:x.create},instance:void 0,getInstance:function(){return this.initialize(),this.instance},_initialize:function(){var e=this;de.disableOperationsRecording("initializeInstanceConroller"),Er.startRenderingBatch();var t=this.copiedConnections;t&&ia.applyConnections(t);var n=this.copiedProperties,i=f.quickExtend({isForTemplateUse:this._isForTemplateUse,structureProcessor:this._structureProcessor},this._options.templateOptions);i.initialProperties=f.quickExtend({},i.initialProperties),i.initialProperties[this._templateItem.structures[0].id]=f.quickExtend({},i.initialProperties[this._templateItem.structures[0].id],n);var a=ts.addTemplateInstance({elementForCreation:this._templateItem,fieldName:this._options.fieldName,dataItemID:this._dataSourceOptions.dataItemID,dataSourceName:this._dataSourceOptions.dataSourceName,styleBindingId:this._dataSourceOptions.styleBindingId},null,i,{includeChildren:!1}),r=a.instances[0],o=a.apply;!f.isEmptyObject(this._dataSourceOptions)&&r.hasFeature(oi.SkinElement)&&r.extendDataSourceOptionsWith(this._dataSourceOptions),r.hasFeature(oi.SkinElement)&&this._structureProcessor&&r.setStructureProcessor(this._structureProcessor);var s=r.getPropertyValue("sizeAndPosition");this._currentSize||(this._currentSize=s),r.data.instanceContainer=this.$element,r.$element.appendTo(this.$element),r.$element.toggleLayerEventsCatching(!0),this.instance=r,r.data.instanceController=this,this.initializeFlag.setTrue(),x.fireLazyEvent(this,"initializedEvent"),Ro.CreationRequests.requestOperation(function(){o(),e.createdFlag.setTrue(),x.fireLazyEvent(e,"createdEvent")},e.id+"createController"),Er.finishRenderingBatch(),this.pendingClasses&&this.toggleClass(this.pendingClasses),this.pendingClasses={},de.enableOperationsRecording("initializeInstanceConroller")},extendDataSourceOptionsWith:function(e,t){this._dataSourceOptions=f.quickExtend({},this._dataSourceOptions,e),this.isInitialized()&&t&&(this.resetInstance(),this.initialize())},setStructureProcessor:function(e,t){this._structureProcessor=e,this.isInitialized()&&t&&(this.resetInstance(),this.initialize())},initialize:function(){this.isInitialized()||(this._initialize(),this.instance.data.isForTemplateUse=this._isForTemplateUse)},toggleClass:function(e){this.isInitialized()?this.getInstance().classesManager.set(e):f.extend(this.pendingClasses,e)},setIndex:function(e){this.index=e},getIndex:function(){return this.index},setTemplateStructure:function(e,t){de.disableOperationsRecording("setTemplateStructure"),t||(this.resetInstance(),this._templateItem=e),de.enableOperationsRecording("setTemplateStructure")},resetInstance:function(){de.disableOperationsRecording("resetInstance"),this.isInitialized()&&(this.copiedConnections=this.instance.getTargetConnections(),this.copiedProperties={},this.instance&&(sa.removeInstances([this.instance]),this.$element.empty()),this.instance=void 0,this.createdFlag.setFalse(),this.initializeFlag.setFalse()),de.enableOperationsRecording("resetInstance")},getTemplateStructure:function(){return this._templateItem},getDataItemId:function(){return this._dataSourceOptions.dataItemID},isInitialized:function(){return this.initializeFlag.isTrue()},removeController:function(){e.removeControllers([this])},updatePropertiesValues:function(e){e&&!this.isInitialized()&&f.extend(this.copiedProperties,e)},getSize:function(){return this.getInstance().getPropertyValue("sizeAndPosition")},setSize:function(e){var t=this;this._currentSize=e,Vn.requestWriteOperation(function(){t.$element.css({width:e.width,height:e.height})},t.id+"sizeSize-instancecontroller"),this.isInitialized()?(this.getInstance().setPropertyFieldsValues("sizeAndPosition",e),this.refreshLayout()):this.copiedProperties.sizeAndPosition=f.extend({},e)},setMargin:function(e){var t={marginBottom:"",marginLeft:"",marginTop:"",marginRight:""};this.$element.css(f.quickExtend(t,{marginBottom:e.marginBottom,marginLeft:e.marginLeft,marginTop:e.marginTop,marginRight:e.marginRight})),this.refreshLayout()},resetStyle:function(){this.$element.css({top:"",left:"","margin-left":"","margin-top":"","margin-right":"","padding-left":""})},refreshLayout:function(){this.isInitialized()&&la.refreshElementsLayout(this.getInstance())},updatePosition:function(){this.isInitialized()&&ba.invalidateAreas(this.getInstance())},detach:function(){this.isInitialized()&&this.getInstance().detach(),this.$element.detach(),this.resetStyle(),this.hideElement()},isParent:function(e){return this.$element.parent()===e},appendTo:function(e,t,n){t&&(this._parentInstance=t);var i=this.getInstance();return this._parentInstance&&i.parentInstance!==this._parentInstance&&(sa.addElementToContainerElement(this._parentInstance,i),i.$element.appendTo(this.$element)),n||this.$element.appendTo(e),this.refreshLayout(),this},hideElement:function(){this.isInitialized()&&(this.getInstance().isDisplayed.setFalse("instanceController"),this.getInstance().setToCurrentMode())},showElement:function(){this.isInitialized()&&(this.getInstance().isDisplayed.setTrue("instanceController"),this.getInstance().setToCurrentMode())}});return e.create=function(t,n){return new e(t,n)},e.removeControllers=function(e){de.disableOperationsRecording("removeControllers");var t=[];f.eachItem(e,function(e,n){n.isInitialized()&&t.push(n.getInstance())}),sa.removeInstances(t),f.eachItem(e,function(e,t){t.$element.remove(),t.isInitialized()&&t.instance.$element.remove(),x.fireLazyEvent(t,"removedEvent")}),de.enableOperationsRecording("removeControllers")},e}(),Ro=fs(function(){var e,t=O.create(!0),n=An.create(function(i){!n.isActivated()||t.isFalse()?(ue.profile("instanceControllers"),Wi.Flags.SavingRecordEnabled.setFalse("initializeInstanceConroller"),de.disableOperationsRecording("initializeInstanceConroller"),Er.startRenderingBatch(),i(),Er.finishRenderingBatch(),de.enableOperationsRecording("initializeInstanceConroller"),Wi.Flags.SavingRecordEnabled.setTrue("initializeInstanceConroller"),ue.profileEnd("instanceControllers")):(e&&clearTimeout(e),e=setTimeout(function(){ue.profile("instanceControllers"),Wi.Flags.SavingRecordEnabled.setFalse("initializeInstanceConroller"),de.disableOperationsRecording("initializeInstanceConroller"),Er.startRenderingBatch(),i(),Er.finishRenderingBatch(),de.enableOperationsRecording("initializeInstanceConroller"),Wi.Flags.SavingRecordEnabled.setTrue("initializeInstanceConroller"),ue.profileEnd("instanceControllers")},0))});this.enable=function(){t.setTrue()},this.disable=function(){t.setFalse()},this.CreationRequests=n}),Ho={Tumblr:{title:{iconClass:f.getIconClass("tool-category-text",Cn.Font),type:"title",title:"Album Name",name:"title",isDefaultField:!0,mappingFunction:function(e){return e.name||""}},image:{iconClass:f.getIconClass("fa-picture-o",Cn.Font),type:"image",title:"Album Cover",name:"image",isDefaultField:!0,mappingFunction:function(e){return{imageUrl:{imagePath:e.photos[0].original_size.url,ownerID:null,storageServer:0}}}},description:{type:"description",title:"Description",name:"description",isDefaultField:!0,mappingFunction:function(){return""}}},Flickr:{title:{iconClass:f.getIconClass("tool-category-text",Cn.Font),type:"title",title:"Album Name",name:"title",isDefaultField:!0,mappingFunction:function(e){return e.name}},image:{iconClass:f.getIconClass("fa-picture-o",Cn.Font),type:"image",title:"Album Cover",name:"image",isDefaultField:!0,mappingFunction:function(e){return{imageUrl:{imagePath:"https://farm{farmid}.staticflickr.com/{serverid}/{id}_{secret}.jpg".format({farmid:e["@farm"],serverid:e["@server"],id:e["@primary"],secret:e["@secret"]}),ownerID:null,storageServer:0}}}},description:{type:"description",title:"Description",name:"description",isDefaultField:!0,mappingFunction:function(){return""}},link:{type:"link",title:"Link",name:"link",isDefaultField:!0,mappingFunction:function(){return""}}},Instagram:{image:{iconClass:f.getIconClass("fa-picture-o",Cn.Font),type:"image",title:"Instagram Photo",name:"image",isDefaultField:!0,mappingFunction:function(e){return{imageUrl:{imagePath:decodeURIComponent(e.media_url),ownerID:null,storageServer:0}}}},title:{iconClass:f.getIconClass("tool-category-text",Cn.Font),type:"title",title:"Album Name",name:"title",isDefaultField:!0,mappingFunction:function(e){return e.caption?e.caption.text:""}}}},qo={FieldSets:{Album:{title:{iconClass:f.getIconClass("tool-category-text",Cn.Font),type:"title",title:"Album Name",name:"title",isDefaultField:!0,mappingFunction:function(e){return e.name||""}},image:{iconClass:f.getIconClass("fa-picture-o",Cn.Font),type:"image",title:"Album Cover",name:"image",isDefaultField:!0,mappingFunction:function(e){return{imageUrl:{imagePath:e.source,ownerID:null,storageServer:0}}}},description:{type:"description",title:"Description",name:"description",isDefaultField:!0,mappingFunction:function(){return""}}},Albums:{title:{iconClass:f.getIconClass("tool-category-text",Cn.Font),type:"title",title:"Album Name",name:"title",isDefaultField:!0,mappingFunction:function(e){return e.name}},image:{iconClass:f.getIconClass("fa-picture-o",Cn.Font),type:"image",title:"Album Cover",name:"image",isDefaultField:!0,mappingFunction:function(e){return{imageUrl:{imagePath:e.cover_photo?"https://graph.facebook.com/"+e.cover_photo.id+"/picture":null,ownerID:null,storageServer:0}}}},description:{type:"description",title:"Description",name:"description",isDefaultField:!0,mappingFunction:function(){return""}},link:{type:"link",title:"Link",name:"link",isDefaultField:!0,mappingFunction:function(){return""}}}}},Uo={FieldSets:{Channel:{title:{iconClass:f.getIconClass("tool-category-text",Cn.Font),type:"title",title:"Channel Name",name:"title",isDefaultField:!0,mappingFunction:function(e){return e.snippet.title}},description:{type:"description",title:"Description",name:"description",isDefaultField:!0,mappingFunction:function(e){return e.snippet.description}},image:{iconClass:f.getIconClass("fa-picture-o",Cn.Font),type:"image",title:"Channel",name:"image",isDefaultField:!0,mappingFunction:function(e){var t="";return e.snippet.thumbnails["default"]&&(t=e.snippet.thumbnails["default"].url),e.snippet.thumbnails.standard&&(t=e.snippet.thumbnails.standard.url),e.snippet.thumbnails.medium&&(t=e.snippet.thumbnails.medium.url),e.snippet.thumbnails.high&&(t=e.snippet.thumbnails.high.url),{imageUrl:{imagePath:t,ownerID:null,storageServer:0}}}},video:{type:"video",title:"Video",name:"video",mappingFunction:function(e){var t="";return e.snippet.thumbnails["default"]&&(t=e.snippet.thumbnails["default"].url),e.snippet.thumbnails.standard&&(t=e.snippet.thumbnails.standard.url),e.snippet.thumbnails.medium&&(t=e.snippet.thumbnails.medium.url),e.snippet.thumbnails.high&&(t=e.snippet.thumbnails.high.url),{videoImageUrl:t,videoType:0}}}}}},$o={FieldSets:{Playlist:{title:{iconClass:f.getIconClass("tool-category-text",Cn.Font),type:"title",title:"Channel Name",name:"title",isDefaultField:!0,mappingFunction:function(e){return e.snippet.title}},video:{iconClass:f.getIconClass("fa-video-o",Cn.Font),type:"video",title:"Video",name:"video",isDefaultField:!0,mappingFunction:function(e){return{videoImageUrl:e.snippet.thumbnails&&e.snippet.thumbnails.high?e.snippet.thumbnails.high.url:"",videoType:Ze.Youtube,videoId:e.snippet.resourceId.videoId}}},description:{type:"description",title:"Description",name:"description",isDefaultField:!0,mappingFunction:function(e){return e.snippet.description}},link:{type:"link",title:"Link",name:"link",isDefaultField:!0,mappingFunction:function(e){return"https://www.youtube.com/watch?v="+e.snippet.resourceId.videoId}}}}},Wo={FieldSets:{Albums:{title:{iconClass:f.getIconClass("tool-category-text",Cn.Font),type:"growableText",title:"Message",name:"title",isDefaultField:!0,mappingFunction:function(e){switch(e.type){case"status":var t=e.attachments&&e.attachments.data[0]&&e.attachments.data[0].title;return t?t:d(e);default:return d(e)}}},media:{iconClass:f.getIconClass("fa-picture-o",Cn.Font),type:"FacebookMediaElement",title:"media",name:"media",isDefaultField:!0,template:"FacebookMediaElement",mappingFunction:function(e){return e}},date:{type:"date",title:"Date",name:"date",isDefaultField:!0,mappingFunction:function(e){return Rt.parseDateWithoutTimezone(e.created_time)}},link:{type:"link",title:"Link",name:"link",isDefaultField:!0,mappingFunction:function(e){return{url:e.link,type:nt.Web}}},likes:{type:"FacebookLikes",title:"Likes",name:"likes",isDefaultField:!0,mappingFunction:function(e){return e.likes&&e.likes.summary&&e.likes.summary.total_count||0}}}}},jo={avatar:{iconClass:f.getIconClass("fa-picture-o",Cn.Font),type:"image",title:"avatar",name:"avatar",DefaultField:!0,mappingFunction:function(e){return{imageUrl:{imagePath:e.user.profileImageUrl,ownerID:null,storageServer:0}}}},image:{iconClass:f.getIconClass("fa-picture-o",Cn.Font),type:"image",title:"Photo",name:"image",isDefaultField:!0,mappingFunction:function(e){return{imageUrl:{imagePath:e.full_picture,ownerID:null,storageServer:0}}}},twittername:{type:"title",title:"Twitter Name",name:"twittername",isDefaultField:!0,mappingFunction:function(e){return e.user.name}},twitteraccount:{type:"title",title:"Twitter Account",name:"twitteraccount",isDefaultField:!0,mappingFunction:function(e){return"@"+f.valueOrDefault(e.user.screenName,"")}},description:{type:"description",title:"Description",name:"description",isDefaultField:!0,mappingFunction:function(e){return Hi.unescapeResult(f.valueOrDefault(e.text,""))}},date:{type:"date",title:"Date",name:"date",isDefaultField:!0,mappingFunction:function(e){return e.created_at}},link:{type:"link",title:"Link",name:"link",isDefaultField:!0,mappingFunction:function(e){return Hi.unescapeResult(e.source)}}},Go={Google:{title:{iconClass:f.getIconClass("tool-category-text",Cn.Font),type:"title",title:"Author",name:"title",isDefaultField:!0,mappingFunction:function(e){return e.author_name}},description:{type:"description",title:"Review",name:"description",isDefaultField:!0,mappingFunction:function(e){return f.valueOrDefault(e.text,"")}},date:{type:"date",title:"Date",name:"date",isDefaultField:!0,mappingFunction:function(e){return e.time}},rating:{type:"description",title:"rating",name:"rating",isDefaultField:!0,mappingFunction:function(e){return e.rating}}}},Xo={FieldSets:{Albums:{title:{iconClass:f.getIconClass("tool-category-text",Cn.Font),type:"title",title:"Message",name:"title",isDefaultField:!0,mappingFunction:function(e){return e.name}},description:{type:"description",title:"Description",name:"description",isDefaultField:!0,mappingFunction:function(e){return f.valueOrDefault(e.description,"")}},image:{iconClass:f.getIconClass("fa-picture-o",Cn.Font),type:"image",title:"Photo",name:"image",isDefaultField:!0,mappingFunction:function(e){return{imageUrl:{imagePath:e.cover&&e.cover.source,ownerID:null,storageServer:0}}}},date:{type:"date",title:"Date",name:"date",isDefaultField:!0,mappingFunction:function(e){return Rt.parseDateWithoutTimezone(e.start_time)}},link:{type:"link",title:"Link",name:"link",isDefaultField:!0,mappingFunction:function(e){return{url:"https://facebook.com/"+e.id,type:nt.Web}}}}},Eventful:{title:{iconClass:f.getIconClass("tool-category-text",Cn.Font),type:"title",title:"Title",name:"title",isDefaultField:!0,mappingFunction:function(e){return e.title}},description:{type:"description",title:"Description",name:"description",isDefaultField:!0,mappingFunction:function(e){return e.region?"{0}, {1} ({2})".format(e.country,e.city,e.region):"{0}, {1}".format(e.country,e.city)}},date:{type:"date",title:"Date",name:"date",isDefaultField:!0,mappingFunction:function(e){return e.start_time}},link:{type:"link",title:"Link",name:"link",isDefaultField:!0,mappingFunction:function(e){return e.url}}},Meetup:{title:{iconClass:f.getIconClass("tool-category-text",Cn.Font),type:"title",title:"Name",name:"title",isDefaultField:!0,mappingFunction:function(e){return e.name}},description:{type:"description",title:"Description",name:"description",isDefaultField:!0,mappingFunction:function(e){return f.valueOrDefault(e.description,"")}},date:{type:"date",title:"Date",name:"date",isDefaultField:!0,mappingFunction:function(e){return e.time}},link:{type:"link",title:"Link",name:"link",isDefaultField:!0,mappingFunction:function(e){return e.event_url}}},BandsInTown:{title:{iconClass:f.getIconClass("tool-category-text",Cn.Font),type:"title",title:"Title",name:"title",isDefaultField:!0,mappingFunction:function(e){return e.title}},description:{type:"description",title:"Description",name:"description",isDefaultField:!0,mappingFunction:function(e){return f.valueOrDefault(e.description,"")}},image:{iconClass:f.getIconClass("fa-picture-o",Cn.Font),type:"image",title:"Photo",name:"image",isDefaultField:!0,mappingFunction:function(e){return{imageUrl:{imagePath:e.full_picture,ownerID:null,storageServer:0}}}},date:{type:"date",title:"Date",name:"date",isDefaultField:!0,mappingFunction:function(e){return e.datetime}},link:{type:"link",title:"Link",name:"link",isDefaultField:!0,mappingFunction:function(e){return e.facebook_rsvp_url}}}},Yo={RSS:{title:{iconClass:f.getIconClass("tool-category-text",Cn.Font),type:"title",title:"Message",name:"title",isDefaultField:!0,mappingFunction:function(e){return e.title}},description:{type:"description",title:"Description",name:"description",isDefaultField:!0,mappingFunction:function(e){return f.valueOrDefault(e.description,"")}},image:{iconClass:f.getIconClass("fa-picture-o",Cn.Font),type:"image",title:"Photo",name:"image",isDefaultField:!0,mappingFunction:function(e){return{imageUrl:{imagePath:e.image,ownerID:null,storageServer:0}}}},date:{type:"date",title:"Date",name:"date",isDefaultField:!0,mappingFunction:function(e){return e.start_time}},link:{type:"link",title:"Link",name:"link",isDefaultField:!0,mappingFunction:function(){return""}}},ITunes:{title:{iconClass:f.getIconClass("tool-category-text",Cn.Font),type:"title",title:"Message",name:"title",isDefaultField:!0,mappingFunction:function(e){return e.collectionName}},description:{type:"description",title:"Description",name:"description",isDefaultField:!0,mappingFunction:function(e){return f.valueOrDefault(e.description,"")}},image:{iconClass:f.getIconClass("fa-picture-o",Cn.Font),type:"image",title:"Photo",name:"image",isDefaultField:!0,mappingFunction:function(e){return{imageUrl:{imagePath:e.artworkUrl100.replace("100x100","600x600"),ownerID:null,storageServer:0}}}},date:{type:"date",title:"Date",name:"date",isDefaultField:!0,mappingFunction:function(e){return e.start_time}},link:{type:"link",title:"Link",name:"link",isDefaultField:!0,mappingFunction:function(){return""}}}},Ko={RSS:{title:{iconClass:f.getIconClass("tool-category-text",Cn.Font),type:"title",title:"Message",name:"title",isDefaultField:!0,mappingFunction:function(e){return e.title}},description:{type:"description",title:"Description",name:"description",isDefaultField:!0,mappingFunction:function(e){return f.valueOrDefault(e.description,"")}},image:{iconClass:f.getIconClass("fa-picture-o",Cn.Font),type:"image",title:"Photo",name:"image",isDefaultField:!0,mappingFunction:function(e){return{imageUrl:{imagePath:e.image,ownerID:null,storageServer:0}}}},date:{type:"date",title:"Date",name:"date",isDefaultField:!0,mappingFunction:function(e){return e.publisheddate}},link:{type:"link",title:"Link",name:"link",isDefaultField:!0,mappingFunction:function(){return""}}}},Qo={stringify:function(e){var t={ct:e.ciphertext.toString(Jo.enc.Base64)};return e.iv&&(t.iv=""+e.iv),e.salt&&(t.s=""+e.salt),JSON.stringify(t)},parse:function(e){var t=JSON.parse(e),n=Jo.lib.CipherParams.create({ciphertext:Jo.enc.Base64.parse(t.ct)});return t.iv&&(n.iv=Jo.enc.Hex.parse(t.iv)),t.s&&(n.salt=Jo.enc.Hex.parse(t.s)),n}},Jo=Jo||function(e,t){var n={},i=n.lib={},a=function(){},r=i.Base={extend:function(e){a.prototype=this;var t=new a;return e&&t.mixIn(e),t.hasOwnProperty("init")||(t.init=function(){t.$super.init.apply(this,arguments)}),t.init.prototype=t,t.$super=this,t},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:cs,mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}},o=i.WordArray=r.extend({init:function(e,n){e=this.words=e||[],this.sigBytes=n!=t?n:4*e.length},toString:function(e){return(e||l).stringify(this)},concat:function(e){var t=this.words,n=e.words,i=this.sigBytes;if(e=e.sigBytes,this.clamp(),i%4)for(var a=0;e>a;a++)t[i+a>>>2]|=(n[a>>>2]>>>24-8*(a%4)&255)<<24-8*((i+a)%4);else if(65535<n.length)for(a=0;e>a;a+=4)t[i+a>>>2]=n[a>>>2];else t.push.apply(t,n);
return this.sigBytes+=e,this},clamp:function(){var t=this.words,n=this.sigBytes;t[n>>>2]&=4294967295<<32-8*(n%4),t.length=e.ceil(n/4)},clone:function(){var e=r.clone.call(this);return e.words=this.words.slice(0),e},random:function(t){for(var n=[],i=0;t>i;i+=4)n.push(4294967296*e.random()|0);return new o.init(n,t)}}),s=n.enc={},l=s.Hex={stringify:function(e){var t=e.words;e=e.sigBytes;for(var n=[],i=0;e>i;i++){var a=t[i>>>2]>>>24-8*(i%4)&255;n.push((a>>>4).toString(16)),n.push((15&a).toString(16))}return n.join("")},parse:function(e){for(var t=e.length,n=[],i=0;t>i;i+=2)n[i>>>3]|=parseInt(e.substr(i,2),16)<<24-4*(i%8);return new o.init(n,t/2)}},c=s.Latin1={stringify:function(e){var t=e.words;e=e.sigBytes;for(var n=[],i=0;e>i;i++)n.push(String.fromCharCode(t[i>>>2]>>>24-8*(i%4)&255));return n.join("")},parse:function(e){for(var t=e.length,n=[],i=0;t>i;i++)n[i>>>2]|=(255&e.charCodeAt(i))<<24-8*(i%4);return new o.init(n,t)}},u=s.Utf8={stringify:function(e){try{return decodeURIComponent(escape(c.stringify(e)))}catch(t){throw Error("Malformed UTF-8 data")}},parse:function(e){return c.parse(unescape(encodeURIComponent(e)))}},d=i.BufferedBlockAlgorithm=r.extend({reset:function(){this._data=new o.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=u.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var n=this._data,i=n.words,a=n.sigBytes,r=this.blockSize,s=a/(4*r),s=t?e.ceil(s):e.max((0|s)-this._minBufferSize,0);if(t=s*r,a=e.min(4*t,a),t){for(var l=0;t>l;l+=r)this._doProcessBlock(i,l);l=i.splice(0,t),n.sigBytes-=a}return new o.init(l,a)},clone:function(){var e=r.clone.call(this);return e._data=this._data.clone(),e},_minBufferSize:0});i.Hasher=d.extend({cfg:r.extend(),init:function(e){this.cfg=this.cfg.extend(e),this.reset()},reset:function(){d.reset.call(this),this._doReset()},update:function(e){return this._append(e),this._process(),this},finalize:function(e){return e&&this._append(e),this._doFinalize()},blockSize:16,_createHelper:function(e){return function(t,n){return new e.init(n).finalize(t)}},_createHmacHelper:function(e){return function(t,n){return new g.HMAC.init(e,n).finalize(t)}}});var g=n.algo={};return n}(Math);!function(){var e=Jo,t=e.lib.WordArray;e.enc.Base64={stringify:function(e){var t=e.words,n=e.sigBytes,i=this._map;e.clamp(),e=[];for(var a=0;n>a;a+=3)for(var r=(t[a>>>2]>>>24-8*(a%4)&255)<<16|(t[a+1>>>2]>>>24-8*((a+1)%4)&255)<<8|t[a+2>>>2]>>>24-8*((a+2)%4)&255,o=0;4>o&&n>a+.75*o;o++)e.push(i.charAt(r>>>6*(3-o)&63));if(t=i.charAt(64))for(;e.length%4;)e.push(t);return e.join("")},parse:function(e){var n=e.length,i=this._map,a=i.charAt(64);a&&(a=e.indexOf(a),-1!=a&&(n=a));for(var a=[],r=0,o=0;n>o;o++)if(o%4){var s=i.indexOf(e.charAt(o-1))<<2*(o%4),l=i.indexOf(e.charAt(o))>>>6-2*(o%4);a[r>>>2]|=(s|l)<<24-8*(r%4),r++}return t.create(a,r)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}}(),function(e){function t(e,t,n,i,a,r,o){return e=e+(t&n|~t&i)+a+o,(e<<r|e>>>32-r)+t}function n(e,t,n,i,a,r,o){return e=e+(t&i|n&~i)+a+o,(e<<r|e>>>32-r)+t}function i(e,t,n,i,a,r,o){return e=e+(t^n^i)+a+o,(e<<r|e>>>32-r)+t}function a(e,t,n,i,a,r,o){return e=e+(n^(t|~i))+a+o,(e<<r|e>>>32-r)+t}for(var r=Jo,o=r.lib,s=o.WordArray,l=o.Hasher,o=r.algo,c=[],u=0;64>u;u++)c[u]=4294967296*e.abs(e.sin(u+1))|0;o=o.MD5=l.extend({_doReset:function(){this._hash=new s.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(e,r){for(var o=0;16>o;o++){var s=r+o,l=e[s];e[s]=16711935&(l<<8|l>>>24)|4278255360&(l<<24|l>>>8)}var o=this._hash.words,s=e[r+0],l=e[r+1],u=e[r+2],d=e[r+3],g=e[r+4],f=e[r+5],p=e[r+6],h=e[r+7],m=e[r+8],v=e[r+9],y=e[r+10],b=e[r+11],C=e[r+12],I=e[r+13],S=e[r+14],P=e[r+15],w=o[0],E=o[1],T=o[2],x=o[3],w=t(w,E,T,x,s,7,c[0]),x=t(x,w,E,T,l,12,c[1]),T=t(T,x,w,E,u,17,c[2]),E=t(E,T,x,w,d,22,c[3]),w=t(w,E,T,x,g,7,c[4]),x=t(x,w,E,T,f,12,c[5]),T=t(T,x,w,E,p,17,c[6]),E=t(E,T,x,w,h,22,c[7]),w=t(w,E,T,x,m,7,c[8]),x=t(x,w,E,T,v,12,c[9]),T=t(T,x,w,E,y,17,c[10]),E=t(E,T,x,w,b,22,c[11]),w=t(w,E,T,x,C,7,c[12]),x=t(x,w,E,T,I,12,c[13]),T=t(T,x,w,E,S,17,c[14]),E=t(E,T,x,w,P,22,c[15]),w=n(w,E,T,x,l,5,c[16]),x=n(x,w,E,T,p,9,c[17]),T=n(T,x,w,E,b,14,c[18]),E=n(E,T,x,w,s,20,c[19]),w=n(w,E,T,x,f,5,c[20]),x=n(x,w,E,T,y,9,c[21]),T=n(T,x,w,E,P,14,c[22]),E=n(E,T,x,w,g,20,c[23]),w=n(w,E,T,x,v,5,c[24]),x=n(x,w,E,T,S,9,c[25]),T=n(T,x,w,E,d,14,c[26]),E=n(E,T,x,w,m,20,c[27]),w=n(w,E,T,x,I,5,c[28]),x=n(x,w,E,T,u,9,c[29]),T=n(T,x,w,E,h,14,c[30]),E=n(E,T,x,w,C,20,c[31]),w=i(w,E,T,x,f,4,c[32]),x=i(x,w,E,T,m,11,c[33]),T=i(T,x,w,E,b,16,c[34]),E=i(E,T,x,w,S,23,c[35]),w=i(w,E,T,x,l,4,c[36]),x=i(x,w,E,T,g,11,c[37]),T=i(T,x,w,E,h,16,c[38]),E=i(E,T,x,w,y,23,c[39]),w=i(w,E,T,x,I,4,c[40]),x=i(x,w,E,T,s,11,c[41]),T=i(T,x,w,E,d,16,c[42]),E=i(E,T,x,w,p,23,c[43]),w=i(w,E,T,x,v,4,c[44]),x=i(x,w,E,T,C,11,c[45]),T=i(T,x,w,E,P,16,c[46]),E=i(E,T,x,w,u,23,c[47]),w=a(w,E,T,x,s,6,c[48]),x=a(x,w,E,T,h,10,c[49]),T=a(T,x,w,E,S,15,c[50]),E=a(E,T,x,w,f,21,c[51]),w=a(w,E,T,x,C,6,c[52]),x=a(x,w,E,T,d,10,c[53]),T=a(T,x,w,E,y,15,c[54]),E=a(E,T,x,w,l,21,c[55]),w=a(w,E,T,x,m,6,c[56]),x=a(x,w,E,T,P,10,c[57]),T=a(T,x,w,E,p,15,c[58]),E=a(E,T,x,w,I,21,c[59]),w=a(w,E,T,x,g,6,c[60]),x=a(x,w,E,T,b,10,c[61]),T=a(T,x,w,E,u,15,c[62]),E=a(E,T,x,w,v,21,c[63]);o[0]=o[0]+w|0,o[1]=o[1]+E|0,o[2]=o[2]+T|0,o[3]=o[3]+x|0},_doFinalize:function(){var t=this._data,n=t.words,i=8*this._nDataBytes,a=8*t.sigBytes;n[a>>>5]|=128<<24-a%32;var r=e.floor(i/4294967296);for(n[(a+64>>>9<<4)+15]=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8),n[(a+64>>>9<<4)+14]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8),t.sigBytes=4*(n.length+1),this._process(),t=this._hash,n=t.words,i=0;4>i;i++)a=n[i],n[i]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8);return t},clone:function(){var e=l.clone.call(this);return e._hash=this._hash.clone(),e}}),r.MD5=l._createHelper(o),r.HmacMD5=l._createHmacHelper(o)}(Math),function(){var e=Jo,t=e.lib,n=t.Base,i=t.WordArray,t=e.algo,a=t.EvpKDF=n.extend({cfg:n.extend({keySize:4,hasher:t.MD5,iterations:1}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){for(var n=this.cfg,a=n.hasher.create(),r=i.create(),o=r.words,s=n.keySize,n=n.iterations;o.length<s;){l&&a.update(l);var l=a.update(e).finalize(t);a.reset();for(var c=1;n>c;c++)l=a.finalize(l),a.reset();r.concat(l)}return r.sigBytes=4*s,r}});e.EvpKDF=function(e,t,n){return a.create(n).compute(e,t)}}(),Jo.lib.Cipher||function(e){var t=Jo,n=t.lib,i=n.Base,a=n.WordArray,r=n.BufferedBlockAlgorithm,o=t.enc.Base64,s=t.algo.EvpKDF,l=n.Cipher=r.extend({cfg:i.extend(),createEncryptor:function(e,t){return this.create(this._ENC_XFORM_MODE,e,t)},createDecryptor:function(e,t){return this.create(this._DEC_XFORM_MODE,e,t)},init:function(e,t,n){this.cfg=this.cfg.extend(n),this._xformMode=e,this._key=t,this.reset()},reset:function(){r.reset.call(this),this._doReset()},process:function(e){return this._append(e),this._process()},finalize:function(e){return e&&this._append(e),this._doFinalize()},keySize:4,ivSize:4,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(e){return{encrypt:function(t,n,i){return("string"==typeof n?p:f).encrypt(e,t,n,i)},decrypt:function(t,n,i){return("string"==typeof n?p:f).decrypt(e,t,n,i)}}}});n.StreamCipher=l.extend({_doFinalize:function(){return this._process(!0)},blockSize:1});var c=t.mode={},u=function(t,n,i){var a=this._iv;a?this._iv=e:a=this._prevBlock;for(var r=0;i>r;r++)t[n+r]^=a[r]},d=(n.BlockCipherMode=i.extend({createEncryptor:function(e,t){return this.Encryptor.create(e,t)},createDecryptor:function(e,t){return this.Decryptor.create(e,t)},init:function(e,t){this._cipher=e,this._iv=t}})).extend();d.Encryptor=d.extend({processBlock:function(e,t){var n=this._cipher,i=n.blockSize;u.call(this,e,t,i),n.encryptBlock(e,t),this._prevBlock=e.slice(t,t+i)}}),d.Decryptor=d.extend({processBlock:function(e,t){var n=this._cipher,i=n.blockSize,a=e.slice(t,t+i);n.decryptBlock(e,t),u.call(this,e,t,i),this._prevBlock=a}}),c=c.CBC=d,d=(t.pad={}).Pkcs7={pad:function(e,t){for(var n=4*t,n=n-e.sigBytes%n,i=n<<24|n<<16|n<<8|n,r=[],o=0;n>o;o+=4)r.push(i);n=a.create(r,n),e.concat(n)},unpad:function(e){e.sigBytes-=255&e.words[e.sigBytes-1>>>2]}},n.BlockCipher=l.extend({cfg:l.cfg.extend({mode:c,padding:d}),reset:function(){l.reset.call(this);var e=this.cfg,t=e.iv,e=e.mode;if(this._xformMode==this._ENC_XFORM_MODE)var n=e.createEncryptor;else n=e.createDecryptor,this._minBufferSize=1;this._mode=n.call(e,this,t&&t.words)},_doProcessBlock:function(e,t){this._mode.processBlock(e,t)},_doFinalize:function(){var e=this.cfg.padding;if(this._xformMode==this._ENC_XFORM_MODE){e.pad(this._data,this.blockSize);var t=this._process(!0)}else t=this._process(!0),e.unpad(t);return t},blockSize:4});var g=n.CipherParams=i.extend({init:function(e){this.mixIn(e)},toString:function(e){return(e||this.formatter).stringify(this)}}),c=(t.format={}).OpenSSL={stringify:function(e){var t=e.ciphertext;return e=e.salt,(e?a.create([1398893684,1701076831]).concat(e).concat(t):t).toString(o)},parse:function(e){e=o.parse(e);var t=e.words;if(1398893684==t[0]&&1701076831==t[1]){var n=a.create(t.slice(2,4));t.splice(0,4),e.sigBytes-=16}return g.create({ciphertext:e,salt:n})}},f=n.SerializableCipher=i.extend({cfg:i.extend({format:c}),encrypt:function(e,t,n,i){i=this.cfg.extend(i);var a=e.createEncryptor(n,i);return t=a.finalize(t),a=a.cfg,g.create({ciphertext:t,key:n,iv:a.iv,algorithm:e,mode:a.mode,padding:a.padding,blockSize:e.blockSize,formatter:i.format})},decrypt:function(e,t,n,i){return i=this.cfg.extend(i),t=this._parse(t,i.format),e.createDecryptor(n,i).finalize(t.ciphertext)},_parse:function(e,t){return"string"==typeof e?t.parse(e,this):e}}),t=(t.kdf={}).OpenSSL={execute:function(e,t,n,i){return i||(i=a.random(8)),e=s.create({keySize:t+n}).compute(e,i),n=a.create(e.words.slice(t),4*n),e.sigBytes=4*t,g.create({key:e,iv:n,salt:i})}},p=n.PasswordBasedCipher=f.extend({cfg:f.cfg.extend({kdf:t}),encrypt:function(e,t,n,i){return i=this.cfg.extend(i),n=i.kdf.execute(n,e.keySize,e.ivSize),i.iv=n.iv,e=f.encrypt.call(this,e,t,n.key,i),e.mixIn(n),e},decrypt:function(e,t,n,i){return i=this.cfg.extend(i),t=this._parse(t,i.format),n=i.kdf.execute(n,e.keySize,e.ivSize,t.salt),i.iv=n.iv,f.decrypt.call(this,e,t,n.key,i)}})}(),function(){for(var e=Jo,t=e.lib.BlockCipher,n=e.algo,i=[],a=[],r=[],o=[],s=[],l=[],c=[],u=[],d=[],g=[],f=[],p=0;256>p;p++)f[p]=128>p?p<<1:p<<1^283;for(var h=0,m=0,p=0;256>p;p++){var v=m^m<<1^m<<2^m<<3^m<<4,v=v>>>8^255&v^99;i[h]=v,a[v]=h;var y=f[h],b=f[y],C=f[b],I=257*f[v]^16843008*v;r[h]=I<<24|I>>>8,o[h]=I<<16|I>>>16,s[h]=I<<8|I>>>24,l[h]=I,I=16843009*C^65537*b^257*y^16843008*h,c[v]=I<<24|I>>>8,u[v]=I<<16|I>>>16,d[v]=I<<8|I>>>24,g[v]=I,h?(h=y^f[f[f[C^y]]],m^=f[f[m]]):h=m=1}var S=[0,1,2,4,8,16,32,64,128,27,54],n=n.AES=t.extend({_doReset:function(){for(var e=this._key,t=e.words,n=e.sigBytes/4,e=4*((this._nRounds=n+6)+1),a=this._keySchedule=[],r=0;e>r;r++)if(n>r)a[r]=t[r];else{var o=a[r-1];r%n?n>6&&4==r%n&&(o=i[o>>>24]<<24|i[o>>>16&255]<<16|i[o>>>8&255]<<8|i[255&o]):(o=o<<8|o>>>24,o=i[o>>>24]<<24|i[o>>>16&255]<<16|i[o>>>8&255]<<8|i[255&o],o^=S[r/n|0]<<24),a[r]=a[r-n]^o}for(t=this._invKeySchedule=[],n=0;e>n;n++)r=e-n,o=n%4?a[r]:a[r-4],t[n]=4>n||4>=r?o:c[i[o>>>24]]^u[i[o>>>16&255]]^d[i[o>>>8&255]]^g[i[255&o]]},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._keySchedule,r,o,s,l,i)},decryptBlock:function(e,t){var n=e[t+1];e[t+1]=e[t+3],e[t+3]=n,this._doCryptBlock(e,t,this._invKeySchedule,c,u,d,g,a),n=e[t+1],e[t+1]=e[t+3],e[t+3]=n},_doCryptBlock:function(e,t,n,i,a,r,o,s){for(var l=this._nRounds,c=e[t]^n[0],u=e[t+1]^n[1],d=e[t+2]^n[2],g=e[t+3]^n[3],f=4,p=1;l>p;p++)var h=i[c>>>24]^a[u>>>16&255]^r[d>>>8&255]^o[255&g]^n[f++],m=i[u>>>24]^a[d>>>16&255]^r[g>>>8&255]^o[255&c]^n[f++],v=i[d>>>24]^a[g>>>16&255]^r[c>>>8&255]^o[255&u]^n[f++],g=i[g>>>24]^a[c>>>16&255]^r[u>>>8&255]^o[255&d]^n[f++],c=h,u=m,d=v;h=(s[c>>>24]<<24|s[u>>>16&255]<<16|s[d>>>8&255]<<8|s[255&g])^n[f++],m=(s[u>>>24]<<24|s[d>>>16&255]<<16|s[g>>>8&255]<<8|s[255&c])^n[f++],v=(s[d>>>24]<<24|s[g>>>16&255]<<16|s[c>>>8&255]<<8|s[255&u])^n[f++],g=(s[g>>>24]<<24|s[c>>>16&255]<<16|s[u>>>8&255]<<8|s[255&d])^n[f++],e[t]=h,e[t+1]=m,e[t+2]=v,e[t+3]=g},keySize:8});e.AES=t._createHelper(n)}();var Zo=fs(function(){function e(e){if(!e){if(t)return t;e=ls.getCookie("viewer_session"),t=e}if(!e)throw Error("No valid key provided");return e}var t=void 0;this.encrypt=function(t,n){if(t){n=e(n);var i=Jo.AES.encrypt(JSON.stringify(t),n,{format:Qo});return""+i}return null},this.decrypt=function(t,n){if(t){n=e(n);var i=Jo.AES.decrypt(t,n,{format:Qo});return JSON.parse(i.toString(Jo.enc.Utf8))}return null},this.setKey=function(e){e&&e.length>0&&(t=e)}}),es=fs(function(){function e(){var e=f(".password-body",s);c=f('<div class="password-button variation-action state-disabled">{0}</div>'.format("Continue to site")).makeSimpleButton().buttonClick(function(){i()}).appendTo(e),d=f(".password-label",s),u=f(".password-input-field",s),g=f(".password-error",s),p=f(".progress",s),h=f(".password-main",s)}function t(){c.addClass("state-disabled"),d.removeClass("label-focused"),d.removeClass("state-error"),u.removeClass("state-focused"),u.removeClass("state-error"),u.val(""),g.text(""),g.quickHide(),p.css("opacity",0)}function n(){u.focusin(function(){u.addClass("state-focused"),d.addClass("label-focused")}),u.focusout(function(){u.removeClass("state-focused"),d.removeClass("label-focused")}),u.blur(function(){u.removeClass("state-focused"),d.removeClass("label-focused")}),u.keyup(function(e){13===e.which&&i(),u.val().length>0?c.hasClass("state-disabled")&&c.removeClass("state-disabled"):(g.quickHide(),u.removeClass("state-error"),d.removeClass("state-error"),c.addClass("state-disabled"))})}function i(){var e=u.val(),t=l.pid,n=l.resultCallback;if(p.css("opacity",1),c.addClass("state-disabled"),e&&n){if(e=Zo.encrypt(e),e&&null!==e){var i={pid:t,password:e,siteId:Ia.getSiteID()};Wi.Flags.IsApiPartner.isTrue()&&(i.viewerSession=ls.getCookie("viewer_session")),f.ajax({type:"POST",url:"{0}/services/viewer-password/validatePassword".format(ne.ServicesBasePath?ne.ServicesBasePath:""),data:i,success:function(e){p.css("opacity",0);var t=JSON.parse(e);t.status?n(t.status):a()},error:function(e){p.css("opacity",0),a(e)}})}}else p.css("opacity",0),a("Could not verify password")}function a(e){return"object"==typeof e&&e.hasOwnProperty("status")&&403===e.status?r("Too many attempts, please try again later!"):(e="string"==typeof e?f.valueOrDefault(e,"Password is incorrect"):"Password is incorrect",g.text(e),g.quickShow(),u.addClass("state-error"),c.addClass("state-disabled"),d.addClass("state-error"),void(u.findFirstTextContainer().value=""))}function r(e){g.text(e),g.quickShow(),u.detach(),c.detach(),d.detach()}var o={passwordControl:{group:"password-control-templates",name:"password-control-template",isSimple:!0}},s=void 0,l=void 0,c=void 0,u=void 0,d=void 0,g=void 0,p=void 0,h=void 0;this.create=function(){s=f.useTemplate(o.passwordControl),e(),n();var i={$element:s,appendTo:function(e){return t(),s.appendTo(e),i},remove:function(){s.css("opacity",0),setTimeout(function(){s.remove(),s.css("opacity",1),t()},300)},setOptions:function(e){l=e},passwordValidated:this.passwordValidated};return i},this.passwordValidated=function(e,t){if(e&&t){var n={pid:e};Wi.Flags.IsApiPartner.isTrue()&&ls.getCookie("viewer_session")&&(n.viewerSession=ls.getCookie("viewer_session")),f.ajax({type:"POST",url:"{0}/services/viewer-password/passwordValidated".format(ne.ServicesBasePath?ne.ServicesBasePath:""),data:n,success:function(e){var n=JSON.parse(e);n.hasOwnProperty("viewer_session")&&ls.checkCookie("viewer_session",n.viewer_session),t(n.status)},error:function(){t(!1)}})}}});!function(){function e(e,t,n,i){i=f.extend({keepItemSize:!0},i);var a=t.totalCount;if(a>0){var r=e.getLastArrangementOptionsByCurrentDevice(),o=e.getInstance(),s=n.getFixedSize(i.size,a,i),l=n.getFixedSize(o.getMaxSize(),a,i),c=Ji.calculateItemSize(s,i,r);i.calculatedFixedSize=s,i.calculatedMaxSize=l,i.fixedSize=c,i.length=a;var u=t.instanceControllers;if(i.keepRatio){var d=f.maxValue([c.width,c.height]);c={height:d,width:d}}var g=n.getLayoutOptions(u.length,i);n.orderItemsLayout(e,u,f.extend({$container:e.$contentContainer},g));var p=n.arrange(u,i,r);return p=f.extend({},i,p),p.controllersToArrange=u,p}}function t(e,t){for(var n=f([]),i=0;i<t.length;i++){var a=t[i];a.appendTo(e.$contentContainer,void 0,!0),n.pushElements(a.$element)}e.$contentContainer.applyChildrenSorting(n);for(var i=0;i<t.length;i++){var a=t[i];a.showElement()}}function n(e){var t=e.$contentContainer;t||(t=f("<span class='inline-block relative-arrangement wrap'></span>"),e.$contentContainer=t),e.getDataItemsController().detach(),e.setParentContent(t)}function i(e){e.getDataItemsController().detach();var t=e.$contentContainer;t&&t.remove()}Ji.registerDataLayoutTypes({SquareGrid:{name:"SquareGrid",isReArrangeable:!0,category:ta.Grid,arrange:function(t,n,i){return e(t,n,ta.Grid,i)},fields:{rows:!0,colsSpacing:!0,rowsSpacing:!0,cols:!0},startLayout:n,removeLayout:i},Vertical:{name:"Vertical",isReArrangeable:!0,category:ta.Vertical,arrange:function(t,n,i){return e(t,n,ta.Vertical,i)},fields:{columnSpacing:!0},startLayout:n,removeLayout:i},Horizontal:{name:"Horizontal",isReArrangeable:!0,category:ta.Horizontal,arrange:function(t,n,i){return e(t,n,ta.Horizontal,i)},fields:{lineSpacing:!0},startLayout:n,removeLayout:i,reAllocateTemplates:t},OneColumn:{name:"OneColumn",isReArrangeable:!0,category:ta.OneColumn,arrange:function(t,n,i){return e(t,n,ta.OneColumn,i)},shouldRearrangeWhenItemSizeChanged:!0,canItemResize:{vertically:!0,horizontally:!1},fields:{rowsSpacing:!0},canResize:{vertically:!1,horizontally:!0},startLayout:n,removeLayout:i},Columns:{name:"Columns",isReArrangeable:!0,category:ta.Columns,arrange:function(t,n,i){return e(t,n,ta.Columns,i)},shouldRearrangeWhenItemSizeChanged:!0,canItemResize:{vertically:!0,horizontally:!1},canResize:{vertically:!1,horizontally:!0},fields:{rowsSpacing:!0,colsSpacing:!0,cols:!0},startLayout:n,removeLayout:i}},ea.Normal)}(),function(){function e(e,n,i,a){a=f.quickExtend({keepItemSize:!0,usePagesLayout:!0,maintainHeightInView:!1},a);var r=a.usePagesLayout;a.controllersCount=n.totalCount,a.pageIndexToArrange=r?e.getDataItemsController().getInstance().getCurrentPageIndex():0;var o=n.instanceControllers,s=e.getLastArrangementOptionsByCurrentDevice();if(t(e,n.instanceControllers,i,a),o&&o.length>0){f.eachItem(o,function(e,t){t.toggleClass({"fit-to-size":!0})}),a.length=!a.maintainHeightInPreview&&a.pageIndexToArrange>0?a.elementsPerPage:o.length;var l=e.getInstance(),c=i.getFixedSize(a.size,a.length,a),u=i.getFixedSize(l.getMaxSize(),a.length,a),d=Ji.calculateItemSize(c,a,s);a.calculatedFixedSize=c,a.calculatedMaxSize=u,a.fixedSize=d;var g=i.arrange(o,a);return g.controllersToArrange=o,g}}function t(e,t,i,a){var r=a.controllersCount,o=1;a.usePagesLayout&&0!==r&&(o=Math.ceil(r/a.elementsPerPage));var s=e.pagesInstance;if(n(e,o,a),0!==o){var l=s.getNavigatableInstances(),c=l[Math.min(a.pageIndexToArrange,o-1)],u=i.getLayoutOptions(t.length,a),d=i.orderItemsLayout(e,t,f.extend({parentInstance:c,currentControllersMap:c.currentControllersMap,$container:c.getElementContent()},u));c.currentControllersMap=d}}function n(e,t,n){var i=e.pagesInstance,a=i.getNavigatableInstances(),r=a.length;t=t?t:1;var o=i.getItemsCollection().postponeUpdates();if(r>t){for(var s=r-t,l=[],c=r-1;c>r-1-s;c--){var u=sa.getInstanceByID(e.getDataItemsController().getId()+g+c);u&&(l.push(u),u.currentControllersMap&&(f.eachEntry(u.currentControllersMap,function(e,t){t.detach()}),u.currentControllersMap={}))}sa.removeInstances(l)}else if(t>r)for(var d=r,s=t-r,c=0;s>c;c++){var p=i.addItem({tabName:"page"+(d+c+1),rootsIds:[e.getDataItemsController().getId()+g+(d+c)],isContent:!0,initialProperties:{all:{backgroundColor:"transparent"}}});p.getElementContent().addClass("wrap"),p.$element.toggleLayerEventsForwarding(!0),p.hasOrder.setValue(!1)}(0===r&&t||!n.usePagesLayout)&&i.showItem(n.pageIndexToArrange,!1),o||i.getItemsCollection().unPostponeUpdates()}function i(e){var t=e.getDataItemsController().getInstance();t&&(t.getItemsInformation().disconnectObservableCollection(),t.getFieldsInformation().disconnectObservableCollection()),e.getDataItemsController().detach(),sa.removeInstances(e.pagesInstance),e.pagesInstance=void 0}function a(e){if(de.disableOperationsRecording("startLayout"),!e.pagesInstance){var t=e.getDataItemsController().getInstance(),n={elementForCreation:{structures:[{type:ri.TabsPanel.name,elementProperties:{}}]}},i=ts.addTemplateInstance(n,t.$element,{rootsIds:[t.id+g],isContent:!0,isVisible:!0,initialProperties:{all:{fillLayout:{fillVertical:!0,fillHorizontal:!0},backgroundColor:"transparent",borderWidth:{top:0,left:0,bottom:0,right:0}}}}),a=i.instances[0];a.$element.toggleLayerEventsForwarding(!0),f.eachItem(a.getDescendingInstances(!0),function(e,t){t.hasFeature(oi.Selectable)&&t.hasOrder.setValue(!1)}),Er.startRenderingBatch(),e.pagesInstance=a,a.$element.addClass("relative-arrangement");for(var r in oi.Navigatable.properties)oi.Navigatable.properties[r]&&a.setPropertyValue(r,t.getPropertyValue(r));var o=t.propertyChangedEventSimple.bind(function(e){de.disableOperationsRecording("dataListInstance.propertyChangedEventSimple"),oi.Navigatable.properties[e]&&a.setPropertyValue(e,t.getPropertyValue(e)),de.enableOperationsRecording("dataListInstance.propertyChangedEventSimple")});Er.finishRenderingBatch(),o=a.currentItemFinishChanging.bind(function(){s(t)}),a.bindings.push(o),o=a.currentItemChangedEvent.bind(function(e){t.currentItemChangedEvent.fireNew({prevItem:e.prevItem,currentItem:e.currentItem})}),a.bindings.push(o),t.getItemsInformation().connectObservableCollection(a.getItemsCollection()),t.getFieldsInformation().clear(),t.getFieldsInformation().connectObservableCollection(a.getFieldsCollection())}de.enableOperationsRecording("startLayout")}function r(){var e={};return f.eachEntry(d,function(t,n){e[t]=f.quickExtend({removeLayout:i,startLayout:a,getNavigatableInstances:u,navigateTo:c,getCurrentItem:l,showItem:o,fetchItemsInformationToArrange:function(e,t,n,i){t=f.quickExtend({maxItemsCount:1/0,usePagesLayout:!0},t);var a=t.usePagesLayout,r=t.maxItemsCount,o=t.elementsPerPage,s=f.isNumeric(r),l=e.getDataItemsController(),c=s||!a?0:l.getInstance().getCurrentPageIndex()*o,u=s?r:a?c+o:1/0;l.fetchControllersByIndex(c,u,function(e){if(s){var t=Math.min(e.totalCount,r),i=a?l.getInstance().getCurrentPageIndex()*o:0;i>=t&&0!==i&&(i=f.divideNoReminder(t-1,o)*o);var c=a?e.instanceControllers.slice(i,i+o):e.instanceControllers;n({instanceControllers:c,totalCount:t})}else n(e)},i)}},n)}),e}function o(e,t,n,i,a){e.pagesInstance&&e.pagesInstance.showItem(t,n,i,a)}function s(e){e.requestArrangement({shouldPush:!0})}function l(e){if(e.pagesInstance){var t=e.pagesInstance.getCurrentItem();if(t)return t}}function c(e,t,n,i,a){e.pagesInstance&&e.pagesInstance.navigateTo(t,n,i,a)}function u(e){return e.pagesInstance?e.pagesInstance.getNavigatableInstances():[]}var d={PagesRow:{name:"PagesRow",isPages:!0,isReArrangeable:!0,category:ta.Horizontal,fields:{lineSpacing:!0},arrange:function(t,n,i){return e(t,n,ta.Horizontal,i)}},PagesColumn:{name:"PagesColumn",isPages:!0,isReArrangeable:!0,category:ta.Vertical,fields:{columnSpacing:!0},arrange:function(t,n,i){return e(t,n,ta.Vertical,i)}},PagesGrid:{name:"PagesGrid",isPages:!0,isReArrangeable:!0,category:ta.Grid,fields:{rows:!0,colsSpacing:!0,rowsSpacing:!0,cols:!0},arrange:function(t,n,i){return e(t,n,ta.Grid,i)}}};Ji.registerDataLayoutTypes(r(),ea.Pages);var g="p"}(),function(){Ji.registerDataLayoutTypes({NormalForm:{name:"NormalForm",removeLayout:cs,startLayout:cs,orderElements:function(e,t,n){t=f.quickExtend({colsSpacing:0,columnSpacing:30,fieldSpacing:0,numberOfRows:5},t);var i=e.getFieldsInstances(),a=0;if(n)r=n.top,o=n.left;else var r=f.min(i,function(e){var t=e.getPropertyValue("sizeAndPosition");return t.top}).value,o=f.min(i,function(e){var t=e.getPropertyValue("sizeAndPosition");return t.left}).value;for(var s=o-t.columnSpacing,l=0;l*t.numberOfRows<i.length;l++){var c=r;s+=a+t.columnSpacing,a=0;for(var u=t.numberOfRows*l;u<i.length&&u<t.numberOfRows*(l+1);u++){var d=i[u];d.setPropertyFieldsValues("sizeAndPosition",{top:c,left:s});var g=d.getPropertyValue("sizeAndPosition");c+=t.colsSpacing+g.height,a=a<g.width?g.width:a}}}}},ea.FormLayouts)}(),function(){function e(e,n,i,a){a=f.quickExtend({keepItemSize:!0},a);var r=n.totalCount;if(r>0){var o=e.getInstance();a.controllersCount=r;var s=e.getLastArrangementOptionsByCurrentDevice(),l=i.getFixedSize(a.size,r,a),c=i.getFixedSize(o.getMaxSize(),r,a),u=Ji.calculateItemSize(l,a,s);a.calculatedFixedSize=l,a.calculatedMaxSize=c;var d=n.instanceControllers;t(e,d,i,a),f.each(d,function(e,t){t.toggleClass({"fit-to-size":!0})}),a.fixedSize=u,a.length=d.length,a.$columns=e.$columns;var g=i.arrange(d,a);return g.controllersToArrange=d,g}}function t(e,t,a,r){var o=r.controllersCount,s=Math.ceil(o/r.rows);n(e,s),i(e,t,r)}function n(e,t){var n=e.$columns,i=n.length;if(i>t){var a=i-t;e.getDataItemsController().detach();for(var r=i-1;r>i-1-a;r--)n[r].remove(),e.$columns.pop()}else if(t>i)for(var a=t-i,r=0;a>r;r++){var o=f("<span class='vertically-top positioned wrap'></span>");e.$columns.push(o),o.appendTo(e.$contentContainer)}}function i(e,t,n){for(var i=t,a=e.$columns.length,r=0;a>r;r++)for(var o=0;o<n.rows;o++){var s=o+r*n.rows,l=i[s];l&&(l.appendTo(e.$columns[r]),l.showElement())}}function a(e){var t=e.$contentContainer;t||(t=f("<span class='inline-block relative-arrangement wrap'></span>"),e.$contentContainer=t),e.getDataItemsController().detach(),e.setParentContent(t),e.$columns=[]}function r(e){e.getDataItemsController().detach();var t=e.$contentContainer;e.$columns&&f.each(e.$columns,function(e,t){t.remove()}),t&&t.remove()}function o(){var e={};return f.each(s,function(t,n){e[t]=f.extend({removeLayout:r,startLayout:a},n)}),e}var s={Rows:{name:"Rows",category:ta.Rows,arrange:function(t,n,i){return e(t,n,ta.Rows,i)},shouldRearrangeWhenItemSizeChanged:!0,canItemResize:{vertically:!0,horizontally:!1},canResize:{vertically:!1,horizontally:!0},fields:{rowsSpacing:!0,colsSpacing:!0,rows:!0}}};Ji.registerDataLayoutTypes(o(),ea.FormLayouts)}(),function(){function e(e,t,n,a){a=f.quickExtend({isVertical:!1,keepItemSize:!0,maxItems:4},a);var r=l(e,t,a),o=e.getLastArrangementOptionsByCurrentDevice(),s=e.getInstance(),c=i(e,t,a),u=void 0;if(c.length>0){var d=n.getFixedSize(a.size,r,a),g=n.getFixedSize(s.getMaxSize(),r,a),p=Ji.calculateItemSize(d,a,o);a.calculatedFixedSize=d,a.calculatedMaxSize=g,a.fixedSize=p,a.length=c.length;var h=n.getLayoutOptions(c.length,a);n.orderItemsLayout(e,c,f.quickExtend({$container:e.$contentContainer},h)),u=n.arrange(c,a,o)}return u=f.extend({},a,u,{controllersToArrange:c})}function t(e,t,i,a,r){if(i){var s=e.getDataItemsController().getDataSource().getCollectionItems();f.each(t,function(t,l){if(!a||e.moreItemsController===l){var c=l.getDataItemId(),u=o(c,i,s);u&&n(e,l,u,r)}})}}function n(e,t,n,i){var a={},r=i.dropDownItemClick,o=i.currentSelectedItem,s=i.dropDownNavigationSettings,l=s.navigation,d=s.navigationProperties,g=i.createItemsController();d=f.quickExtend({createInstanceController:g.createInstanceController},d);var p,h,m=t.$element,v=i.isVertical?gt.Right:gt.Bottom,y=i.createSubHierarchyElement({controller:t,arrowSide:v}),b=!1,C=!1;p=m,p.bind("mousedown.menu-drop-down",function(e){a.isOpened()||(e.stopPropagation(),e.preventDefault(),b=!0,a.open())}),Ha.Flags.IsInMobileContext.isFalse()&&(C=!0,m.bind("mouseenter.menu-drop-down",function(){setTimeout(function(){a.open()},0)})),h=u.getValue();var I=Pr.createNavigationController(l),S=x.createEventListener(va.Events.PageChanging,function(){I.close()}),P=!0,w={$element:m,navigationProperties:d,isVertical:i.isVertical,pages:n.controllersData,pagesHierarchy:n.hierarchyCollection,selectedPageId:o,instanceId:f.uniqueID(),customClickCallback:r,isTargetFixed:e.getInstance().getPropertyValue("isFixed")===!0,closeAnimationCompleteCallback:function(){P=!0}};C&&f.quickExtend(w,{mouseEnteredCallback:function(){E.setTrue("mouseEntered")},mouseLeaveCallback:function(){E.setFalse("mouseEntered")},openCallback:function(e){if(!b){var t=f.unionAreas([e.getOuterArea(),m.getOuterArea()]);c=a,h.setTrackedAreas([t]),h.setCurrentMouseTarget(t),h.activate()}}});var E=O.createConditionalNegative({valueChangeCallback:function(e){if(e){I.open(w),P=!1;var n=t.getInstance().getSkinInstance();ba.stopMouseOverTracking(n),Ha.Flags.IsInMobileContext.isFalse()&&n.activateTrigger(Li.MouseEnter),I.isOpened.once(!1,function(){C&&(h.deactivate(),c=void 0),S.deactivate(),E.resetConditions(),ba.trackMouseOver(n),Ha.Flags.IsInMobileContext.isFalse()&&n.activateTrigger(Li.MouseLeave)}),S.activate()}else I.close()}});f.quickExtend(a,{open:function(){P&&E.setTrue("controller")},close:function(){E.setFalse("controller")},isOpened:function(){return E.isTrue()}}),f.quickExtend(a,{dropDownData:n,remove:function(){I&&I.remove(),y&&y.remove(),p&&p.unbind(".menu-drop-down"),g.remove()}}),t.dropDownController=a,e.dropDownControllers.push(t)}function i(e,n,i){e.getDataItemsController().detach();var a=e.moreItemsController;a&&a.detach(),s(e),e.dropDownControllers=[];var r,o=i.maxItems,l=f.mapToDictionary(n.instanceControllers,f.identity,function(e){return e.getDataItemId()}),c=e.getDataItemsController().getControllersHierarchy();c?r=c.getRootIds():(r=f.getKeys(l),c=_t.create({ids:r}));var u,d;Ha.Flags.IsInMobileContext.isFalse()?(u=c,d=f.mapItem(r,function(e){return l[e]})):d=f.getValues(l),d.orderBy(f.defaultIndexFunction);var g=!1;if(d.length>o){a||(a=e.moreItemsController=i.createMoreItemsController());var p=a.getDataItemId(),h=d.slice(o-1);d=d.slice(0,o-1),d.push(a),u=c.clone(),Ha.Flags.IsInMobileContext.isFalse()?(u.addIds(p),f.eachItem(h,function(e,t){u.setParent(t.getDataItemId(),p)})):(g=!0,u.addIds(p),f.eachItem(r,function(e,t){u.setParent(t,p)}))}else a&&(a.removeController(),delete e.moreItemsController);return t(e,d,u,g,{createSubHierarchyElement:i.createSubHierarchyElement,dropDownNavigationSettings:i.dropDownNavigationSettings,createItemsController:i.createItemsController,dropDownItemClick:i.dropDownItemClick,currentSelectedItem:i.currentSelectedItem,fixedSize:i.fixedSize,isVertical:i.isVertical}),d}function a(e){var t=e.$contentContainer;t||(t=f("<span class='inline-block relative-arrangement wrap'></span>"),e.$contentContainer=t),e.getDataItemsController().detach(),e.setParentContent(t)}function r(e){e.getDataItemsController().detach(),s(e),delete e.dropDownControllers;var t=e.moreItemsController;t&&(t.removeController(),delete e.moreItemsController);var n=e.$contentContainer;n&&n.remove()}function o(e,t,n){if(t.hasChildren(e)){var i=t.createSubHierarchy(e),a=f.mapEntry(i.getIds(),function(e,t){return n.getItem(t)});return{controllersData:a,hierarchyCollection:i}}}function s(e){e.dropDownControllers&&f.each(e.dropDownControllers,function(e,t){var n=t.dropDownController;n.remove(),delete t.dropDownController})}function l(e,t,n){var i=t.instanceControllers.length;if(Ha.Flags.IsInMobileContext.isFalse()){var a=e.getDataItemsController().getControllersHierarchy();a&&(i=a.getRootCount())}return Math.min(n.maxItems,i)}Ji.registerDataLayoutTypes({HorizontalMenu:{category:ta.Horizontal,arrange:function(t,n,i){return e(t,n,ta.Horizontal,f.extend(i,{isVertical:!1}))},isMenuLayout:!0,startLayout:a,removeLayout:r},VerticalMenu:{category:ta.Vertical,arrange:function(t,n,i){return e(t,n,ta.Vertical,f.extend(i,{isVertical:!0}))},isMenuLayout:!0,startLayout:a,removeLayout:r},SquareGridMenu:{category:ta.Grid,arrange:function(t,n,i){return e(t,n,ta.Grid,f.extend(i,{isVertical:!1}))},isMenuLayout:!0,startLayout:a,removeLayout:r}},ea.Normal);var c,u=w.create(function(){return Tn.create(na.getBodyElement(),{onStoppedBeingTarget:function(){c.close()}})})}(),Ji.registerDataLayoutTypes({NavigationButton:{arrange:cs,startLayout:cs,
removeLayout:cs}},ea.Normal);var ts=fs(function(){function e(e,t){e.dataSourceName&&t&&f.eachEntry(t,function(t,n){e.initialProperties[t]||(e.initialProperties[t]={}),e.initialProperties[t].binding={dataFields:f.quickExtend({},n),dataSourceName:e.dataSourceName,dataItemID:e.dataItemID}})}function t(e){f(e).each(function(e,t){t.elementProperties||(t.elementProperties={});var n=t.elementProperties.order;void 0!==n&&null!==n||(n=0),t.elementProperties.order=aa.getMaxOrder()+1+n,aa.increaseMaxOrder()})}function n(e,t,n){t?f(e).each(function(e,n){n.elementProperties&&n.elementProperties.sizeAndPosition&&(n.elementProperties.sizeAndPosition.left=t.left-n.elementProperties.sizeAndPosition.width/2,n.elementProperties.sizeAndPosition.top=t.top-n.elementProperties.sizeAndPosition.height/2)}):n&&f(e).each(function(e,t){t.elementProperties&&t.elementProperties.sizeAndPosition&&(t.elementProperties.sizeAndPosition.left+=n.left,t.elementProperties.sizeAndPosition.top+=n.top)})}function i(e){f.eachItem(e.structures,function(e,t){void 0===t.offset&&(t.offset={left:0,top:0})});var t=f.min(e.structures,function(e){return e.offset.left}).value,n=f.min(e.structures,function(e){return e.offset.top}).value;f.eachItem(e.structures,function(e,i){void 0===i.offset&&(i.offset=f.translateOffset(i.offset,{left:0-t,top:0-n}))})}function a(e,t){f.eachItem(e.structures,function(e,n){void 0===n.offset&&(n.elementProperties.sizeAndPosition=f.translateOffset(n.elementProperties.sizeAndPosition,t))})}this.addTemplateInstance=function(r,o,s,l){s=f.quickExtend({isContent:!1,isLoading:!1,initialProperties:{all:{}},isForTemplateUse:!1,newRootElementTypeName:!1,removeMobileStates:!1,shouldDuplicateHierarchy:!0},s),l=f.quickExtend({includeChildren:!0,isTemplate:!0},l),Er.startRenderingBatch();var c=r.elementForCreation,u=s.shouldDuplicateHierarchy;ka.loadHierarchy({templateStructure:c,StructureVersion:void 0!==c.version?c.version:0},l.isTemplate);var d=c;u&&(d=Br.duplicateHierarchyInfo(c,s)),s.newRootElementTypeName&&(d.structures[0].type=s.newRootElementTypeName),s.targetOffset&&(i(d),a(d,s.targetOffset)),n(d.structures,s.centerPosition,s.basePosition),t(d.structures),s.initialProperties.all=f.quickExtend(s.initialProperties.all,{templateName:c.name,templateID:"template"+ka.generateWebsiteId()});var g=d.oldToNewIDMapping?f.replaceKeys(s.initialProperties,d.oldToNewIDMapping):s.initialProperties,p={dataItemID:r.dataItemID,styleBindingId:r.styleBindingId,initialProperties:g,parent:o,dataSourceName:r.dataSourceName,isContent:s.isContent,isVisible:s.isVisible,isLoading:s.isLoading,isForTemplateUse:s.isForTemplateUse,thumbsResolver:s.thumbsResolver};if(p.dataSourceName){var h=d.structures[0],m=h.elementProperties;if(m){var v=m.fieldsMap;e(p,v)}}p.styleBindingId&&(p.initialProperties.all.styleBindingId=p.styleBindingId);var y,b=qa.create(d);return y=l.includeChildren?b.addHierarchyAndApply(p):b.addHierarchyFromNode(d.structures[0].id,f.quickExtend({includeNode:!0,includeChildren:!1},p)),Er.finishRenderingBatch(),{instances:y,apply:l.includeChildren?void 0:function(){b.addHierarchyFromNode(d.structures[0].id,f.extend({},p,{includeNode:!1,includeChildren:!0,parent:y[0]})),b.applyHierarchy()}}}}),ns=function(){function e(e,t){var n=a(e,t),i=t.addedItems&&t.addedItems.length>0||t.removedItems&&t.removedItems.length>0;e._duringFetch||!n&&!i||e._dataListInstance.requestArrangement({shouldPush:i})}function t(e,t){return function(n){e._duringFetch=!1,t(n)}}function n(e,t){return function(n){i(e,t,n)}}function i(e,t,n){var i=n.fetchedItems,a=[];f.eachItem(i,function(t,n){a[t]=s(e,n)}),e._duringFetch=!1,t({instanceControllers:a,totalCount:n.totalCount})}function a(e,t){var n=e._dataListInstance;if(!n.isDeleted)return n.reArrangementDisabled.setValue(!0,"itemsChanged"),de.disableOperationsRecording("updateDataControllers"),Er.startRenderingBatch(),t.removedItems&&r(e,t.removedItems),t.addedItems&&o(e,t.addedItems),Er.finishRenderingBatch(),de.enableOperationsRecording("updateDataControllers"),n.reArrangementDisabled.setValue(!1,"itemsChanged"),t.addedItems&&t.addedItems.length>0||t.removedItems&&t.removedItems.length>0||t.updatedItems&&t.updatedItems.length>0?l(e):!1}function r(e,t){if(0!==t.length){for(var n=[],i=e._dataControllers,a=0;a<t.length;a++){var r=i.removeField(t[a]);n.push(r)}No.removeControllers(n)}}function o(e,t){f.eachItem(t,function(t,n){s(e,n)})}function s(e,t){var n=e._dataControllers,i=n.getField(t.id);if(void 0===i){var a=e._dataListInstance,r=a.getDefaultTemplate(t.fieldTypeName).hierarchy,o=(a.elementType.structureProcessor,function(e){return Ni.process(a.elementType,e,t.fieldTypeName)});i=No.create(r,{parentInstanceId:a.id,fieldName:t.fieldTypeName,structureProcessor:o,dataSourceOptions:{dataItem:t,dataItemID:t.id,dataSourceName:a.getDataSourceName()},templateOptions:{isContent:!0,isLoading:!0,rootsIds:[a.getDataItemInstanceId(t.id)],generateNewID:!0,thumbsResolver:a.data.thumbsResolver},isForTemplateUse:a.isForTemplateUse()});var s=a.getPropertyValue("itemsStyle")[t.id];i.updatePropertiesValues(s),n.setField(t.id,i),i.initializedEvent.bind(function(){var e=i.getInstance();e.setDataItemId(t.id),e.data.dataListParent=a,a.setItem(e),e.propertyChangedEvent.bind("sizeAndPosition",function(){a.dataLayoutController.shouldRearrangeWhenItemSizeChanged()&&a.requestArrangement({shouldPush:!0})})})}return i}function l(e){var t,n=e._dataListInstance.getDataSource(),i=e._dataControllers;if(i.isEmpty())t=[];else{var a=n.getAllItems();t=i.getValues().sort(function(e,t){var n=a[e.getDataItemId()],i=a[t.getDataItemId()],r=parseInt(n.index),o=parseInt(i.index);return void 0!==r&&void 0!==o?r-o:void 0!==r?-1:void 0!==o?1:0}),e.firstClassObserver.setTarget(t[0].$element),e.lastClassObserver.setTarget(t[t.length-1].$element)}f.eachItem(t,function(e,t){t.setIndex(e)});var r=e._dataControllersArray;return e._dataControllersArray=t,!f.defaultArrayEqualityComparer(r,t)}var c=C.extend("DataItemsController",{init:function(e){this._dataListInstance=e,this._dataControllersArray=[]},lazyInitializationProperties:{_dataControllers:k.create,lastClassObserver:function(){return Ie.createSingleTargetClass("last-item")},firstClassObserver:function(){return Ie.createSingleTargetClass("first-item")}},_duringFetch:!1,initialize:function(){var t=this._dataListInstance.getDataSource().getCollectionItems();this._instanceControllersChangedEventListener=x.createEventListener([t.itemsChangedEvent],f.firstArgProxy(e,this)).activate()},clear:function(){this._instanceControllersChangedEventListener&&this._instanceControllersChangedEventListener.dispose()},getInstance:function(){return this._dataListInstance},getId:function(){return this._dataListInstance.id},getInstanceController:function(e){var t=this._dataControllers;return t.getField(e)},getAllControllers:function(){return this._dataControllersArray},getDataSource:function(){return this._dataListInstance.getDataSource()},fetchAllControllers:function(e,i){this._duringFetch=!0;var a=this._dataListInstance.getDataSource();a.fetchAllItems(n(this,e),t(this,i))},fetchControllersByIndex:function(e,i,a,r,o){o=f.quickExtend({fetchAlways:!0},o);var s=this._dataListInstance.getDataSource();this._duringFetch=!0,s.fetchItems(e,i,n(this,a),t(this,r),o)},getControllersHierarchy:function(){var e=this._dataListInstance.getDataSource();return e.getControllersHierarchy?e.getControllersHierarchy():void 0},detach:function(){f.eachItem(this.getAllControllers(),function(e,t){t.detach()})},attach:cs});return c.create=function(e){return new c(e)},c}(),is=function(){function e(e,n,i){e.lastFetchedData=n;var a=e.instance;if(n.totalCount>0&&!i.fixedSize){var r=t(a);r&&(i.fixedSize=r,i.shouldPush=!0)}var o=e._arrangementScope;o.start();var s=e._currentArrangement.arrange(e,n,i);e._setLastArrangementOptionsByDevice(s),e._lastArrangementInformation=s,a.totalCountObservable.setValue(n.totalCount),o.finish()}function t(e){var t,n=e.getStructureMetaData();return Ha.Flags.IsInMobileContext.isTrue()&&!e.data.wasFirstArrangedInMobile?(e.data.wasFirstArrangedInMobile=!1,t=n&&n.dataItemSizeMobile?n.dataItemSizeMobile:void 0):Ha.Flags.IsInMobileContext.isFalse()&&!e.data.wasFirstArrangedInPc&&(e.data.wasFirstArrangedInPc=!1,t=n&&n.dataItemSizePc?n.dataItemSizePc:void 0),t?f.cloneObject(t):void 0}var n=C.extend("DataLayoutController",{init:function(e,t){t=f.quickExtend({onArrangementStarted:cs,onArrangementFinished:cs,startInitializingLayoutCallback:cs,finishInitializingLayoutCallback:cs,startArrangingCallback:cs,finishArrangingCallback:cs,getContainerSize:cs,setParentContent:cs},t);var n=e.getInstance(),i=t.startInitializingLayoutCallback,a=t.finishInitializingLayoutCallback,r=t.startArrangingCallback,o=t.finishArrangingCallback,s=t.getContainerSize,l=t.setParentContent,c=t.onArrangementStarted,u=t.onArrangementFinished,d=O.create(!1),g=O.create(!1),p=we.create({startCallback:r,finishCallback:o}),h=we.create({startCallback:i,finishCallback:a}),m=this,v=G.createCancelableQueue({startOperationCallback:function(){c(),h.start(),m.refreshLayout(),h.finish()},finishOperationCallback:function(){u()}});n.instanceRemoved.one(function(){v.dispose()}),this._dataItemsController=e,this._getContainerSize=s,this._setParentContent=l,this._startInitializingLayoutCallback=i,this._finishInitializingLayoutCallback=a,this.isInitialized=d,this.instance=n,this._arrangingOperationQueue=v,this._arrangementScope=p,this._shouldRefreshLayout=g,this._lastArrangementInformation={},this._lastArrangementInformationDevice={pc:{},mobile:{}}},getInstance:function(){return this.instance},refreshEmptyState:function(){this.getArrangement().refreshEmptyState(this)},isInEmptyState:function(){return this.instance.inEmptyStateFlag.isTrue()},getDataItemsController:function(){return this._dataItemsController},setParentContent:function(e){this._setParentContent(e)},setArrangement:function(e){var t=this._currentArrangement;Zi[e]!==t&&(this._prevArrangement=t,this._currentArrangement=Zi[e],this._shouldRefreshLayout.setTrue())},getArrangement:function(){return this._currentArrangement},hasItemSpecificSize:function(){var e=this._currentArrangement.canItemResize;return e.vertically||e.horizontally},shouldRearrangeWhenItemSizeChanged:function(){return this._currentArrangement&&this._currentArrangement.shouldRearrangeWhenItemSizeChanged},resetLayout:function(){this._dataItemsController.detach(),this._shouldRefreshLayout.setTrue()},refreshLayout:function(){var e=this._currentArrangement;if(e){var t=this._shouldRefreshLayout,n=this.isInitialized;(n.isFalse()||t.isTrue())&&(t.isTrue()&&this.remove(),this._startInitializingLayoutCallback(),e.startLayout(this),this._finishInitializingLayoutCallback(),n.setTrue(),t.setFalse())}},getLastArrangementOptions:function(){return this._lastArrangementInformation},getLastArrangementOptionsDevice:function(){return this._lastArrangementInformationDevice},getLastArrangementOptionsByCurrentDevice:function(){return this._lastArrangementInformationDevice[Ha.Flags.IsActivated.isTrue()?"mobile":"pc"]},getLastArrangementInstanceSizeByDevice:function(){var e=this.getLastArrangementOptionsByCurrentDevice();return e&&e.contentSize?e.contentSize:null},remove:function(){var e=this.isInitialized;e.isTrue()&&(this._prevArrangement?(this._prevArrangement.removeLayout(this),this._prevArrangement=void 0):this._currentArrangement.removeLayout(this),e.setFalse())},reArrangeTheLayout:function(t){if(t=f.quickExtend({size:this._getContainerSize()},t),this._currentArrangement){var n=this;this._arrangingOperationQueue.executeOperation(function(e,i){var a=n.lastFetchedData;void 0===a||t.shouldFetch?n._currentArrangement.fetchItemsInformationToArrange(n,t,e,i):e(a)},function(i){e(n,i,t)},Re.handleAjaxException)}},getSize:function(){var e=this._lastArrangementInformation;return e&&e.contentSize?e.contentSize:void 0},getMinSize:f.returnZeroSize,_setLastArrangementOptionsByDevice:function(e){e&&(Ha.Flags.IsActivated.isTrue()?this._lastArrangementInformationDevice.mobile=e:this._lastArrangementInformationDevice.pc=e)}});return n.create=function(e,t){return new n(e,t)},n}(),as=fs(function(){function e(){n.css("height",f.maxValue([.8*f.getWindowSize().height-250,60])),n.css("width",f.minValue([.8*f.getWindowSize().width,900]))}var t,n,i=0;this.getPrivacyPolicyHeight=function(){return va.getCurrentPage().getFooterInstance()?0:as.getPrivacyPolicyActualHeight()},this.getPrivacyPolicyActualHeight=function(){return t?i?i:function(){return i=t.height()}():0},this.initialize=function(){var i=ra.getValue("privacyPolicyActive");if(i){var a=x.createEventListener([f.getWindowSizeEvent()],function(){e(),Ft.hasOpenedDialogs()&&(Ft.close(s),Ft.open(s,{showingAnimationFunction:function(){this.show(),a.activate()},hidingAnimation:function(){this.hide(),a.deactivate()}}))}),r=ra.getValue("privacyPolicy");t=f('<div id="privacy-policy-bar">{0}</div>'.format("PrivacyPolicy"));var o=new E;o.append('<div class="privacy-policy-dialog">'),o.append('<div class="privacy-policy-dialog-title">{0}</div>'.format("PrivacyPolicy")),o.append('<div class="privacy-policy-dialog-content">'),o.append('<pre class="privacy-policy-dialog-text dialog-text">'),o.append("</pre>"),o.append("</div>"),o.append('<div class="privacy-policy-dialog-footer">'),o.append('<span class="privacy-policy-dialog-button vertically-centered dialog-button-1 variation-medium variation-action">{0}</span>'.format("Close")),o.append("</div>"),o.append("</div>");var s=f(""+o);f(".dialog-text",s).html(r);var l=f(".privacy-policy-dialog-button",s);n=f(".privacy-policy-dialog-content",s),l.makeSimpleButton().buttonClick(function(){var e=Ft.getDialogOverlay(s);Ft.close(s),e.removeClass("popup-overlay")}),t.makeSimpleButton().buttonClick(function(){e(),Ft.open(s,{showingAnimationFunction:function(){this.show(),a.activate()},hidingAnimation:function(){this.hide(),a.deactivate()}});var t=Ft.getDialogOverlay(s);t.css({backgroundColor:"black",opacity:.8})}),x.bind([va.Events.AfterPageChanged],function(){va.getCurrentPage().getFooterInstance()&&va.getCurrentPage().getFooterInstance().isInstanceVisible()?va.getCurrentPage().getFooterInstance().$element.append(t):f("body").append(t)})}}}),rs=fs(function(){var e={Panel:{group:"message-dialog-templates",name:"panel-template"}};this.open=function(t){t=f.quickExtend({title:"",message:"",buttonText:"Close"},t);var n=f.useTemplate(e.Panel);f(".message-dialog-title",n).text(t.title),f(".message-dialog-content",n).text(t.message),f(".message-dialog-close",n).text(t.buttonText),n.on("click",function(){n.remove()}),n.appendTo(document.body)}}),os=fs(function(){function e(e,t){e=f.Color(e),t||(e[3]=1);for(var n=Zr.calculateAdjustBrightnessSign(e,.08),i=[],a=[],r=0;3>=r;r++){var o=0===r?e:In.adjustBrightness(e,function(e){return e+n*(.02*r)}),s=In.adjustBrightness(e,function(e){return e+n*(.02*r+.02)});i.push(o.toCSS()),a.push(s.toCSS())}return{backgroundColors:i,backgroundHoverColors:a}}function t(e,t){e&&(t?e.setTrue("slide-navigation"):setTimeout(function(){e.setFalse("slide-navigation")},0))}var n={Panel:{group:"slide-navigation-panel-templates",name:"slide-navigation-panel-template",isSimple:!0},PageItem:{group:"slide-navigation-panel-templates",name:"page-item-template",isSimple:!0}};this.Default=en.createDeferredPanel(function(){return en.createPanel(os)}),this.create=function(){function i(){p.css("top",d.height()+40)}function a(e){var t={};return t[o]=e,t}function r(e,t){var n=e.backgroundColors,i=e.backgroundHoverColors,r=t/2;I.rule(".page-item .title-container",{paddingTop:r,paddingBottom:r}),I.rule(".hierarchy-level-0 > .hierarchy-item-content > .hierarchy-item-container .page-item",a(n[0])),I.rule(".hierarchy-level-0 > .hierarchy-item-content > .hierarchy-item-container .page-item:hover",a(i[0]));for(var o=1;3>=o;o++)I.rule(".hierarchy-level-{0} > .hierarchy-item-content > .hierarchy-item-container .page-item".format(o),a(n[o])),I.rule(".hierarchy-level-{0} > .hierarchy-item-content > .hierarchy-item-container .page-item:hover".format(o),a(i[o]))}var o="rgbaBackground",s=en.createBaseController(),l=[],c=f.useTemplate(n.Panel),u=f(".close-icon-content",c),d=f(".pages-list",c),g=f(".header",c),p=f(".footer",c);c.on("mouseenter",function(){t(s.currentActivationArgs.mouseEnteredFlag,!0)}).on("mouseleave",function(){t(s.currentActivationArgs.mouseEnteredFlag,!1)}),u.click(function(){s.requestDeactivation()});var h=Sn.create(d,{scrollbarClass:"slide-scrollbar"});h.setMoveScrolling({enableHorizontalScrolling:!1});var m=zt.create(),v=d.makeItemsList({idFunction:f.defaultIdFunction,itemCreationFunction:function(e,t){var a=f.useTemplate(n.PageItem,e),r=s.currentActivationArgs,o=r.customClickCallback,l=f(".open-icon",a);l.click(function(){var e=t.$wrapper.find(">.hierarchy-item-content >.hierarchy-children-container");e.slideDown({duration:200,progress:i,always:function(){e.css("display",""),t.$wrapper.addClass("open"),i()}})});var c=f(".close-icon",a);if(c.click(function(){var e=t.$wrapper.find(">.hierarchy-item-content >.hierarchy-children-container");e.slideUp({duration:200,progress:i,always:function(){e.css("display",""),t.$wrapper.removeClass("open"),i()}})}),t.data.$pageTitle=a.find(".page-title"),!r.disableLink){var u=f(".title-container",a);if(o)u.on("click",function(){setTimeout(function(){s.requestDeactivation()},0),o(e.id)});else{var d=f("<a class='no-decorations'></a>");d.addClass("internal-link"),d.click(function(){setTimeout(function(){s.requestDeactivation(!0)},0)}),d.attr("href",pa.getPageFullHtmlUrl(e.id)),u.wrap(d),t.data.$lingWrapper=u.parent()}}return a},itemUpdatedCallback:function(e,t){if(t){var n=e.item;e.data.$pageTitle.text(n.title),e.data.$lingWrapper&&e.data.$lingWrapper.attr("href",pa.getPageFullHtmlUrl(n.id))}}}).addOrderingSupport({orderingValueSelector:function(e){return e.item.index}}).addLayoutSupport(!0);v.layoutRecalculated.bind(i),s.associateScrollingView(h),s.associateItemsList(v);var y,b,C,I=Zr.createCssRules("slide-navigation-panel"),S={};return f.quickExtend(s,{$element:c,visualizers:l,defaultActivationArgs:{maxSize:{width:2e3}},onActivated:function(t){var n=er.evaluateFontBinding(t.font),a=Ha.Flags.IsInMobileContext.isTrue();if(y!==t.instanceId||a!==C||!f.defaultEqualityComparer(t.maxSize,S.maxSize)){var s=t.direction,l="up"===s||"down"===s,u=t.fontSize,d=t.spacing,h=e(Ka.evaluateColorBinding(t.backgroundColor),!t.pushContent);r(h,d);var I=h.backgroundColors[0];if(g.css(o,I),p.css(o,I),c.toggleClass("vertical",l),l?c.css({width:"",height:Math.min(t.height,t.maxSize.height)}):c.css({width:Math.min(t.width,t.maxSize.width),height:""}),c.css({color:Ka.evaluateColorBinding(t.fontColor,!0),fontSize:"{0}px".format(u),fontFamily:null!==n?n:""}),S.useHierarchy!==t.useHierarchy||S.pages!==t.pages||S.pagesHierarchy!==t.pagesHierarchy||S.disableLink||t.disableLink){if(v.releaseBoundCollection(),v.clear(),v.setLayout(void 0),b&&(b.release(),b=void 0),Me.isObservableCollection(t.pages)?(b=jt.create(t.pages),v.setItems(b)):v.setItems(t.pages),t.useHierarchy)m.setHierarchyCollection(t.pagesHierarchy);else{var P=new _t({ids:f.getKeys(v.getDataItems())});m.setHierarchyCollection(P)}v.setLayout(m)}t.useHierarchy&&t.hierarchyOpened&&f.eachEntry(v.items,function(e,t){t.$wrapper.addClass("open")})}b&&b.unPostponeUpdates(),Pn.onFontLoaded(n,{successCallback:function(){i()},timeout:15e3}),S=t,y=t.instanceId,C=a},onDeactivated:function(){b&&b.postponeUpdates(),f.eachEntry(v.items,function(e,t){t.$wrapper.removeClass("open")}),t(s.currentActivationArgs.mouseEnteredFlag,!1)}}),s}}),ss=fs(function(){var e,t=this;this.isVisible=O.createConditionalPositive(),this.initialize=function(){var n=ne.IsSitePreview,i=!Ia.isPremium()&&!ne.IsTemplate||n,a=!1;if(ne.IsTemplate||ne.DisableBanner||(a=nr.getFreemiumBannerLimitation()),i=!!a,t.isVisible.setValue(i),i){var r=f.combinePaths(a.iframeUrl,""+Ia.getSiteID()),o=parseInt(a.iframeHeight);if(Settings.Brand)switch(Settings.Brand){case 3:r="https://components.mywebsitebuilder.com/websitebuilder/freebanner.html";break;case 6:r="https://components.mywebsitebuilder.com/sitebuilder/freebanner.html";break;case 2:r="https://components.mywebsitebuilder.com/sitelio/freebanner.html";break;case 5:r="https://components.mywebsitebuilder.com/sitey/freebanner.html";break;case 40:r="https://components.mywebsitebuilder.com/gator/freebanner.html"}e=f('<iframe id="freemium-footer-iframe" scrolling="no"></iframe>').attr("src",r).css("height",o).css("z-index",1e5).appendTo("body")}t.isVisible.valueChangedEvent.bindAndExecute(function(){var e=t.isVisible.getValue();f("body").css("padding-bottom",e?o:"")})},this.getFooterHeight=function(){return t.isVisible.isTrue()?e.getOuterSize().height:0}}),ls=fs(function(){this.setCookie=function(e,t,n){var i=new Date;i.setTime(i.getTime()+24*(n?n:1)*60*60*1e3);var a="expires="+i.toUTCString();document.cookie=e+"="+t+";expires="+a+";path=/"},this.getCookie=function(e){for(var t=e+"=",n=document.cookie.split(";"),i=0;i<n.length;i++){for(var a=n[i];" "==a.charAt(0);)a=a.substring(1);if(0==a.indexOf(t))return a.substring(t.length,a.length)}return null},this.checkCookie=function(e,t,n){var i=this.getCookie(e);return i?i:this.setCookie(e,t,n)}});f.setTemplates({"text-input-field-element-template":'<div class="text-input-field-element absolute-fill"><input class="text-input absolute-fill transparent-text-box" type="text"></div>',"text-area-element-template":'<div class="text-area-element absolute-fill"><textarea class="text-area absolute-fill transparent-text-box"></textarea></div>',"paypal-button-template":'<div class="paypal-button-holder absolute-fill"></div>',"select-field-template":'<div class="dropdown-wrapper"><div class="filter-click-background"></div><div class="real-dropdown"><div class="select">${name}</div></div></div>',"popover-template":'<div class="popover"><div class="header-content"></div><div class="title"></div><ul class="element-container"></ul></div>'}),f.setTemplatesGroups({"loading-animations":{element:'<div class="loading-animations vertically-center-children stretched-to-fill content-centered"><div class="loading-overlay panels-scope stretched-to-fill"></div><div class="loading-animation"></div></div>'},"element-overlay":{element:'<div class="element-overlays vertically-center-children stretched-to-fill content-centered"><div class="element-overlay panels-scope stretched-to-fill"></div><div class="overlay-content"><div class="overlay-icon"></div><div class="overlay-message"></div><div class="overlay-close"></div></div></div>'},"slideshow-carousel-templates":{"slideshow-carousel-template":'<div class="slideshow-carousel-container"> <ul class="carousel-items _carousel-items"></ul> </div>',"slideshow-carousel-item-template":'<li class="carousel-item"></li>'},"thumbs-carousel-templates":{"thumbs-carousel-template":'<div class="slideshow-thumbs-container"> <div class="slideshow-thumbs-content"> <ul class="thumbs _thumbs"></ul> </div> </div>',"thumb-template":'<li class="thumb _thumb"></li>'},"rows-manager-templates":{"row-decorator-template":'<div class="mobile-drop-area-marking row-area-marking"> <div class="marking-main-line marking-line stretch-horizontally"></div> <div class="marking-left-line marking-line positioned-beyond-left stretch-vertically"></div> <div class="marking-right-line marking-line positioned-beyond-right stretch-vertically"></div> </div>',"column-decorator-template":'<div class="mobile-drop-area-marking column-area-marking"> <div class="marking-main-line marking-line stretch-vertically"></div> <div class="marking-left-line marking-line positioned-above stretch-horizontally"></div> <div class="marking-right-line marking-line positioned-below stretch-horizontally"></div> </div>'},"mobile-version-view-manager-templates":{"cell-resizing-handle-template":'<div class="cell-resizing-handle disable-context-menu"> <div class="marking-main-line stretch-vertically"><div class="dashed-overlay stretched-to-fill"></div></div> <div class="handle-inner-decorator"></div> </div>'},"resume-built-by-section-element-templates":{"resume-built-by-section-element-template":'<div class="resume-built-by-section-element"> <div class="resume-content-container vertically-center-children"> <div class="label">Built Using</div> <img class="logo"> </div> </div>'},"rich-content-video":{"content-element":'<div class="rich-content-video-element"></div>',"video-iframe":'<iframe class="rich-content-video-iframe" type="text/html" width="100%" height="100%" frameborder="0" allowfullscreen="true" webkitallowfullscreen="true" mozallowfullscreen="true"></iframe>'},"slide-navigation-panel-2-templates":{"slide-navigation-panel-2-template":'<div class="slide-navigation-panel-2 level-${level}"> <div class="panel-content stretched-to-fill"> <div class="side-bar"></div> <div class="header"> <div class="back"> <div class="hover-overlay stretched-to-fill"></div> <div class="back-container vertically-center-children"><div class="back-arrow viewer-font-icon viewer-font-icon-angle-left"></div><div class="back-title text-overflow">Back</div></div> </div> <div class="close-icon-content viewer-font-icon viewer-font-icon-slide-navigation-close"></div> </div> <div class="pages-container stretched-to-fill"> <div class="pages-list stretched-to-fill"></div> </div> </div> <div class="panel-overlay stretched-to-fill"></div> <div class="panel-container stretched-to-fill"></div> </div>',"page-item-template":'<div class="page-item"> <div class="hover-overlay stretched-to-fill"></div> <div class="title-container"><div class="text-overflow page-title">${title}</div></div> <div class="hierarchy-box vertically-center-children"> <div class="hierarchy-separator"></div> <div class="hierarchy-hover-overlay stretched-to-fill"></div> <div class="hierarchy-icon viewer-font-icon viewer-font-icon-angle-right"></div> </div> </div>'},"drop-down-navigation-desktop-panel-templates":{"drop-down-navigation-desktop-panel-template":'<div class="drop-down-navigation-desktop-panel level-${level}"> <div class="content-container right"> <div class="border-box stretched-to-fill"></div> <div class="pages-list"></div> </div> </div>',"page-item-template":'<div class="page-item simple"> <div class="page-content item-block"> <div class="page-title text-overflow">${title}</div> <div class="sub-hierarchy-icon-container vertically-center-children"><div class="sub-hierarchy-icon"></div></div> </div> </div>',"page-item-instance-template":'<div class="page-item instance"> <div class="page-content item-block"> <div class="instance-content"></div> <div class="sub-hierarchy-icon-container vertically-center-children"><div class="sub-hierarchy-icon"></div></div> </div> </div>'},"drop-down-navigation-desktop-panel-2-templates":{"drop-down-navigation-desktop-panel-2-template":'<div class="drop-down-navigation-desktop-panel-2"> <div class="content-container"> <div class="side-bar"></div> <div class="pages-list"></div> </div> </div>',"page-item-template":'<div class="page-item"> <div class="page-content item-block"> <div class="hover-overlay stretched-to-fill"></div> <div class="page-title text-overflow">${title}</div> <div class="sub-hierarchy-icon-container vertically-center-children"><div class="sub-hierarchy-icon viewer-font-icon viewer-font-icon-angle-right"></div></div> </div> </div>'},"drop-down-navigation-desktop-panel-4-templates":{"drop-down-navigation-desktop-panel-4-template":'<div class="drop-down-navigation-desktop-panel-4"><div class="content-container"><div class="pages-list"></div><div class="decorator"></div></div></div>',"page-item-template":'<div class="page-item"><div class="page-content item-block"><div class="hover-overlay stretched-to-fill"></div><div class="title-container"><div class="page-title text-overflow">${title}</div><div class="sub-hierarchy-icon-container vertically-center-children"><div class="sub-hierarchy-icon viewer-font-icon viewer-font-icon-angle-right"></div></div></div><div class="item-side"></div></div></div>'},"slide-navigation-panel-3-templates":{"slide-navigation-panel-3-template":'<div class="slide-navigation-panel-3"><div class="panel-content stretched-to-fill"><div class="side-bar"></div><div class="header"><div class="close-icon-content viewer-font-icon viewer-font-icon-slide-navigation-close"></div></div><div class="pages-container stretched-to-fill"><div class="pages-list stretched-to-fill"></div></div></div></div>',"page-item-template":'<div class="page-item"><div class="hover-overlay stretched-to-fill"></div><div class="title-container"><div class="text-overflow page-title">${title}</div><div class="icon-container vertically-center-children"><div class="open-icon hierarchy-icon viewer-font-icon viewer-font-icon-slide-navigation-plus"></div><div class="close-icon hierarchy-icon viewer-font-icon viewer-font-icon-slide-navigation-minus"></div></div></div><div class="item-side"></div></div>'},"carousel-thumbs-templates":{"image-thumb-template":'<div class="image-thumb"> <div class="image"> <img> <div class="current-cover"></div> </div> </div>'},"slideshow-carousel-items-templates":{"image-item-template":'<div class="image"> <img> </div> <div class="image-item-text"> <h1 class="title"></h1> <div class="description"></div> <div class="numbers-container"> <span class="index"></span>/<span class="total-items"></span> </div> </div>',"video-item-template":'<div class="video"> <img> </div> <div class="image-item-text"> <h1 class="title"></h1> <div class="description"></div> <div class="numbers-container"> <span class="index"></span>/<span class="total-items"></span> </div> </div>',"video-iframe-template":'<iframe type="text/html" width="100%" height="100%" frameborder="0" allowfullscreen="true" webkitallowfullscreen="true" mozallowfullscreen="true" id></iframe>'},"iframe-content-templates":{"iframe-content-template":'<div class="iframe-content-wrapper iframe-content-block scrolling-${scrolling}"> <iframe class="iframe-content-element iframe-content-block" allow="autoplay; fullscreen" allowtransparency="true" frameborder="0" marginheight="0" marginwidth="0" width="100%" height="100%" src="${url}" scrolling="${scrolling}"></iframe> </div>'},"base-page-content-element-templates":{"base-page-content-element-template":'<div class="base-page-content-element"> <div class="main-sections-container border-box-sizing"></div> </div>'},"side-bar-page-content-element-templates":{"side-bar-page-content-element-template":'<div class="side-bar-page-content-element vertically-top-children"><div class="side-bar-background-layer border-box-sizing"></div><div class="side-bar-sections-container border-box-sizing"></div><div class="main-sections-container border-box-sizing"></div></div>'},"page-element-templates":{"page-element-template":'<div class="page-element"></div>'},"video-player-templates":{"video-player-template":'<div class="video-player-holder absolute-fill"></div>',"video-iframe-element-template":'<iframe class="video-iframe absolute-fill" type="text/html" width="100%" height="100%" frameborder="0" allowfullscreen="true" webkitallowfullscreen="true" mozallowfullscreen="true" allow="autoplay; fullscreen"></iframe>'},"default-popup-templates":{"popup-overlay-template":'<div class="popup-overlay"> <div class="_close-button _popup-control-element close-button ignore-swipe viewer-font-icon viewer-font-icon-slide-show-close"> <div class="close-button-background _popup-control-background"></div> </div> <div class="popup-header"></div> <div class="footer"> <div class="thumbs-container"></div> </div> <div class="slideshow-container"> <div class="carousel-container"></div> <div class="_prev-button _popup-control-element navigation-button prev ignore-swipe"> <div class="navigation-button-background _popup-control-background"></div> <div class="icon-container viewer-font-icon viewer-font-icon-slide-show-arrow-prev"></div> </div> <div class="_next-button _popup-control-element navigation-button next ignore-swipe"> <div class="navigation-button-background _popup-control-background"></div> <div class="icon-container viewer-font-icon viewer-font-icon-slide-show-arrow-next"></div> </div> </div> </div>',
"popup-carousel-image-item-template":'<div> <div class="image vertically-align-children _popup-image-background"> <img class="vertically-centered"> <div class="image-text _popup-font-family _popup-text-color"> <div class="background _popup-text-background-color"></div> <h1 class="title"></h1> <div class="description"></div> <div class="numbers-container"> <span class="index"></span>/<span class="total-items"></span> </div> <a href="#" target="_blank" class="_item-link link ignore-swipe _popup-link-text-color">Go To Link</a> </div> </div> </div>',"popup-carousel-video-item-template":'<div> <div class="video vertically-align-children _popup-image-background"> <img class="vertically-centered"> <div class="image-text _popup-font-family _popup-text-color"> <div class="background _popup-text-background-color"></div> <h1 class="title"></h1> <div class="description"></div> <div class="numbers-container"> <span class="index"></span>/<span class="total-items"></span> </div> <a href="#" target="_blank" class="_item-link link ignore-swipe _popup-link-text-color">Go To Link</a> </div> <div class="video-container"> <div class="play-button viewer-font-icon viewer-font-icon-popup-play-2"></div> </div> </div> </div>'},"mobile-image-popup-templates":{"popup-overlay-template":'<div class="popup-overlay"> <div class="popup-header"> <div class="navigation-controls"> <div class="_thumbs-toggle thumbs-toggle viewer-font-icon viewer-font-icon-video-popup-videos-list"></div> <div class="separator"></div> <div class="_prev-button navigation-button prev ignore-swipe"> <div class="icon-container viewer-font-icon viewer-font-icon-popup-chevron-left"></div> </div> <div class="numbers"><span class="index"></span> / <span class="total"></span></div> <div class="_next-button navigation-button next ignore-swipe"> <div class="icon-container viewer-font-icon viewer-font-icon-popup-chevron-right"></div> </div> <div class="separator"></div> </div> <div class="_close-button close-button ignore-swipe viewer-font-icon viewer-font-icon-slide-show-close"></div> <div class="separator float-right"></div> <div class="header-title"></div> </div> <div class="slideshow-container"> <div class="carousel-container"></div> <a class="_item-link item-link visible viewer-font-icon viewer-font-icon-link" href="#" target="_blank"></a> </div> <div class="footer"> <div class="thumbs-container"></div> </div> </div>',"popup-carousel-image-item-template":'<div> <div class="image"> <img> </div> </div>',"popup-carousel-video-item-template":'<div> <div class="video"> <img> <div class="video-container"></div> </div> </div>',"popup-thumb-template":'<div class="image-thumb"> <div class="image"> <img> </div> <div class="thumb-text"> <div class="title _title"></div> <div class="description _description"></div> <div class="show-more"> <div class="icon viewer-font-icon viewer-font-icon-popup-chevron-down"></div> Show more </div> </div> <div class="thumb-full-text"> <div class="title"></div> <div class="description"></div> <div class="show-less"> <div class="icon viewer-font-icon viewer-font-icon-popup-chevron-up"></div> Show less </div> </div> <div class="separator"></div> </div>'},"popup-1-templates":{"popup-overlay-template":'<div class="popup-overlay"> <div class="_close-button _popup-text-color close-button viewer-font-icon viewer-font-icon-slide-show-close"></div> <div class="popup-text-sidebar _popup-sidebar-background"> <div class="social-share-links"> <a class="_popup-sidebar-control-hover-color _popup-social-share-link share-link facebook" target="_blank" href="#" title="Share this image on Facebook"> <span class="share-link-background _popup-sidebar-element"></span> <span class="share-link-icon _popup-text-color viewer-font-icon viewer-font-icon-facebook"></span> </a> <a class="_popup-sidebar-control-hover-color _popup-social-share-link share-link twitter" target="_blank" href="#" title="Share this image on Twitter"> <span class="share-link-background _popup-sidebar-element"></span> <span class="share-link-icon _popup-text-color viewer-font-icon viewer-font-icon-twitter"></span> </a> <a class="_popup-sidebar-control-hover-color _popup-social-share-link share-link pinterest" target="_blank" href="#" title="Share this image on Pinterest"> <span class="share-link-background _popup-sidebar-element"></span> <span class="share-link-icon _popup-text-color viewer-font-icon viewer-font-icon-pinterest"></span> </a> </div> <div class="item-text"> <div class="numbers-container _popup-text-color"> <span class="index"></span>/<span class="total-items"></span> </div> <div class="scrollable-text"> <div class="scrollable-text-inner"> <h1 class="title _popup-text-color _popup-font-family"></h1> <div class="separator _popup-sidebar-element"></div> <div class="description _popup-text-color _popup-font-family"></div> <a href="#" target="_blank" class="link _item-link _popup-link-text-color _popup-font-family">Go To Link</a> </div> </div> </div> </div> <div class="slideshow-container"> <div class="carousel-container"></div> <div class="_prev-button _popup-control-element navigation-button prev"> <div class="navigation-button-background _popup-control-background"></div> <div class="icon-container viewer-font-icon viewer-font-icon-slide-show-arrow-prev"></div> </div> <div class="_next-button _popup-control-element navigation-button next"> <div class="navigation-button-background _popup-control-background"></div> <div class="icon-container viewer-font-icon viewer-font-icon-slide-show-arrow-next"></div> </div> </div> <div class="footer"> <div class="thumbs-container"></div> </div> </div>',"popup-carousel-image-item-template":'<div> <div class="image"> <img> </div> </div>',"popup-carousel-video-item-template":'<div> <div class="video"> <img> <div class="video-container"> <div class="play-button viewer-font-icon viewer-font-icon-popup-play-2"></div> </div> </div> </div>'},"popup-2-templates":{"popup-overlay-template":'<div class="popup-overlay"> <div class="_close-button _popup-sidebar-element close-button viewer-font-icon viewer-font-icon-slide-show-close"></div> <div class="popup-text-sidebar _popup-sidebar-background"> <div class="social-share-links"> <a class="share-link facebook viewer-font-icon viewer-font-icon-polygon" target="_blank" href="#" title="Share on Facebook"><span class="viewer-font-icon viewer-font-icon-facebook"></span></a> <a class="share-link twitter viewer-font-icon viewer-font-icon-polygon" target="_blank" href="#" title="Share on Twitter"><span class="viewer-font-icon viewer-font-icon-twitter"></span></a> <a class="share-link pinterest viewer-font-icon viewer-font-icon-polygon" target="_blank" href="#" title="Share on Pinterest"><span class="viewer-font-icon viewer-font-icon-pinterest"></span></a> </div> <div class="item-text _popup-font-family"> <div class="item-text-inner"> <h1 class="title _full-title _popup-text-color"></h1> <a href="#" target="_blank" class="_item-link link _popup-link-text-color"> <span class="viewer-font-icon viewer-font-icon-link"></span> Go To Link </a> <div class="separator _popup-sidebar-element"></div> <div class="description _full-description _popup-text-color"></div> <div class="read-more _popup-read-more-text-color">Read More<div class="chevron viewer-font-icon viewer-font-icon-popup-chevron-down"></div></div> </div> </div> <div class="footer"> <div class="separator short-text-separator _popup-sidebar-element"></div> <div class="thumbs-scroller-container"> <div class="thumbs-scroller-container-inner"> <div class="full-item-text _popup-font-family"> <h1 class="title _popup-text-color"></h1> <a href="#" target="_blank" class="_item-link link _popup-link-text-color"> <span class="viewer-font-icon viewer-font-icon-link"></span> Go To Link </a> <div class="separator _popup-sidebar-element"></div> <div class="description _popup-text-color"></div> <div class="read-less _popup-read-more-text-color">Read Less<div class="chevron viewer-font-icon viewer-font-icon-popup-chevron-up"></div></div> <div class="separator long-text-separator _popup-sidebar-element"></div> </div> <div class="thumbs-container"></div> </div> </div> </div> </div> <div class="slideshow-container"> <div class="carousel-container"></div> <div class="_prev-button _popup-control-element navigation-button prev"> <div class="navigation-button-background _popup-navigation-button-background"></div> <div class="icon-container viewer-font-icon viewer-font-icon-slide-show-arrow-prev"></div> </div> <div class="_next-button _popup-control-element navigation-button next"> <div class="navigation-button-background _popup-navigation-button-background"></div> <div class="icon-container viewer-font-icon viewer-font-icon-slide-show-arrow-next"></div> </div> </div> </div>',"popup-carousel-image-item-template":'<div> <div class="image"> <img> </div> </div>',"popup-carousel-video-item-template":'<div> <div class="video"> <img> <div class="video-container"> <div class="play-button viewer-font-icon viewer-font-icon-popup-play-2"></div> </div> </div> </div>',"popup-thumb-item-template":'<div class="image-thumb"> <div class="image"> <img> <div class="current-cover _popup-thumb-cover"><div class="current-cover-border _popup-sidebar-element"></div></div> </div> </div>'},"popup-3-templates":{"popup-overlay-template":'<div class="popup-overlay"> <div class="header _popup-header-element"> <div class="_close-button close-button viewer-font-icon viewer-font-icon-slide-show-close"></div> <div class="numbers-container"> <span class="index"></span> <span class="numbers-separator">of</span> <span class="total-items"></span> </div> <div class="_thumbs-toggle thumbs-toggle viewer-font-icon viewer-font-icon-thumbnails"></div> </div> <div class="footer"> <div class="thumbs-container"></div> </div> <div class="slideshow-container"> <div class="carousel-container"></div> <div class="_prev-button _popup-control-element navigation-button prev"> <div class="icon-container viewer-font-icon viewer-font-icon-angle-left"></div> </div> <div class="_next-button _popup-control-element navigation-button next"> <div class="icon-container viewer-font-icon viewer-font-icon-angle-right"></div> </div> </div> </div>',"popup-carousel-image-item-template":'<div> <div class="image"> <img> <div class="image-text-outer"> <div class="image-text-inner"> <div class="image-text _popup-font-family"> <h1 class="title _popup-text-color"></h1> <div class="description _popup-text-color"></div> <a href="#" target="_blank" class="_item-link link _popup-link-text-color">Go To Link</a> </div> </div> </div> </div> </div>',"popup-carousel-video-item-template":'<div> <div class="video"> <img> <div class="image-text-outer"> <div class="image-text-inner"> <div class="image-text _popup-font-family"> <h1 class="title _popup-text-color"></h1> <div class="description _popup-text-color"></div> <a href="#" target="_blank" class="_item-link link _popup-link-text-color">Go To Link</a> </div> </div> </div> <div class="video-container"> <div class="play-button viewer-font-icon viewer-font-icon-popup-play-2"></div> </div> </div> </div>'},"popup-4-templates":{"popup-overlay-template":'<div class="popup-overlay vertically-align-children"> <div class="popup-container vertically-centered"> <div class="popup-container-inner _popup-foreground-color"> <div class="_close-button close-button viewer-font-icon viewer-font-icon-slide-show-close"></div> <div class="slideshow-container"> <div class="slideshow-container-inner"> <div class="carousel-container"></div> <div class="social-share-links"> <a class="share-link facebook viewer-font-icon viewer-font-icon-polygon" target="_blank" href="#" title="Share this image on Facebook"><span class="viewer-font-icon viewer-font-icon-facebook"></span></a> <a class="share-link twitter viewer-font-icon viewer-font-icon-polygon" target="_blank" href="#" title="Share this image on Twitter"><span class="viewer-font-icon viewer-font-icon-twitter"></span></a> <a class="share-link pinterest viewer-font-icon viewer-font-icon-polygon" target="_blank" href="#" title="Share this image on Pinterest"><span class="viewer-font-icon viewer-font-icon-pinterest"></span></a> </div> <div class="_prev-button navigation-button prev"> <div class="_popup-foreground-color _popup-control-element icon-container viewer-font-icon viewer-font-icon-angle-left"></div> </div> <div class="_next-button navigation-button next"> <div class="_popup-foreground-color _popup-control-element icon-container viewer-font-icon viewer-font-icon-angle-right"></div> </div> <a href="#" class="_item-link _popup-link-text-color item-link" target="_blank"> <span class="viewer-font-icon viewer-font-icon-link"></span> Go To Link </a> </div> <div class="footer"> <div class="thumbs-container"></div> <div class="shadow-hide _popup-foreground-color"></div> </div> </div> </div> </div> </div>',"popup-carousel-image-item-template":'<div> <div class="_popup-image-background image vertically-align-children"> <img class="vertically-centered"> <div class="image-text _popup-font-family _popup-text-color"> <div class="background _popup-text-background-color"></div> <h1 class="title _primary-text-color"></h1> <div class="description-wrapper"> <div class="description _secondary-text-color"></div> </div> </div> <div class="shadow"></div> </div> </div>',"popup-carousel-video-item-template":'<div> <div class="_popup-image-background video"> <img class> <div class="image-text _popup-font-family _popup-text-color"> <div class="background _popup-text-background-color"></div> <h1 class="title _primary-text-color"></h1> <div class="description-wrapper"> <div class="description _secondary-text-color"></div> </div> </div> <div class="video-container"> <div class="shadow"></div> <div class="play-button viewer-font-icon viewer-font-icon-popup-play-2"></div> </div> </div> </div>'},"password-control-templates":{"password-control-template":'<div class="password-main password-protected-page-overlay"> <div class="password-body"> <div class="progress"> <div class="indeterminate"></div> </div> <div class="password-label"> Page password </div> <div class="password-input"> <input class="password-input-field" type="password"> </div> <div class="password-error state-hidden"> </div> </div> </div>'},"message-dialog-templates":{"panel-template":'<div class="message-dialog-panel"> <div class="message-dialog-container"> <div class="message-dialog-title"></div> <div class="message-dialog-content"></div> <div class="message-dialog-close dialog-button-1 variation-secondary state-enabled"></div> </div> </div>'},"slide-navigation-panel-templates":{"slide-navigation-panel-template":'<div class="slide-navigation-panel"> <div class="header"><div class="close-icon-content viewer-font-icon viewer-font-icon-slide-navigation-close"></div></div> <div class="pages-container"> <div class="pages-list"></div> </div> <div class="footer"></div> </div>',"page-item-template":'<div class="page-item"> <div class="page-content"> <div class="icon-container vertically-center-children"><div class="open-icon hierarchy-icon viewer-font-icon viewer-font-icon-slide-navigation-plus"></div><div class="close-icon hierarchy-icon viewer-font-icon viewer-font-icon-slide-navigation-minus"></div></div> <div class="title-container text-overflow"><span class="page-title">${title}</span></div> </div> </div>'}}),window._wz_=f.quickExtend(window._wz_||{},{$:f,jQuery:p,PollingUtils:h,DefaultTimeouts:m,ScriptLoadingUtils:v,PrototypeUtils:y,LazyPropertyPrototype:b,Class:C,Initializer:I,EnumMetadata:S,ByRef:P,DeferredObject:w,StringBuilder:E,SimpleEventBinding:T,SimpleEvent:x,Dictionary:k,ObservableDictionary:D,FlagsObserverStates:F,ConditionalFlagsTypes:A,AbstractObservableFlag:B,BasicObservableFlag:V,ConditionalObservableFlag:L,FlagsObserver:M,ObservableFlag:O,EqualityComparers:z,ObservableObject:_,Exceptions:N,Exception:R,raygunFactory:H,raygunJsUrlFactory:q,ErrorHandler:U,ErrorReportType:$,ErrorHandlerActivator:W,Modernizr:j,OperationsQueue:G,LoadingAnimationsOverlayLayer:X,LoadingAnimations:Y,ElementOverlayLayers:K,ElementOverlay:Q,Global:Z,console:ee,PageData:ne,CompiledComponents:ie,AssetsStorageServers:ae,AssetsCategories:re,AssetsTypes:oe,AssetsManager:se,Logger:le,JSONPController:ce,AppProfiler:ue,OperationsManager:de,Viewer:ge,CallbacksHandler:fe,StateBindingFlag:pe,StateBindingsGroup:he,StateBinding:me,BindingManager:ve,RequestAnimationDom:ye,ScrollingMeasureDistanceType:be,ScrollingTracker:Ce,ContextValue:Ie,UserInteractionMode:Se,UserInteraction:Pe,Scope:we,swfobject:Ee,YoutubeHelper:Te,VimeoPlayerStates:xe,VimeoHelper:ke,GoogleMapTypes:De,GoogleMapHelper:Fe,OperationsBatch:Ae,OperationsHandler:Be,Browser:Ve,BrowserVersion:Le,CollectionUtils:Me,ArrayUtils:Oe,FilterUtils:ze,ListUtils:_e,MathUtils:Ne,ExceptionUtils:Re,DictionaryUtils:He,EffectAnimationDirections:qe,PrimitiveValues:Ue,TextTransform:$e,CollectionConstraint:We,MobileViewPortWidth:je,TabletViewPortWidth:Ge,RelativePositions:Xe,RoutingDestination:Ye,TemplateItemInstanceIdSeperator:Ke,CSSUnits:Qe,ButtonTypes:Je,VideoTypes:Ze,HtmlTags:et,TextTypes:tt,LinkTypes:nt,TextDirection:it,VerticalAlignment:at,ElementDisplay:rt,HorizontalAlignment:ot,CssVerticalAlignment:st,CssHorizontalAlignment:lt,Orientation:ct,HorizontalDocking:ut,VerticalDocking:dt,Side:gt,ColorSpace:ft,ColorSpaceComponent:pt,Speed:ht,FlagsStates:mt,StatesTypes:vt,PresetAssetsCategories:yt,KeyCodes:bt,ScrollingMode:Ct,ScrollingController:It,OldEffects:St,SlideEffect:Pt,Animations:wt,StatesGroups:Et,QuickStates:Tt,ToggleButtonStates:xt,LayoutHelper:kt,ImagesLoader:Dt,Dialog:Ft,ItemsListFilteringBehaviour:At,ItemsListItem:Bt,ItemsList:Vt,OrderingType:Lt,ItemsListLayout:Mt,ItemsListHierarchyLayoutHelpers:Ot,ItemsListHierarchyLayout:zt,RemoteCollection:e,HierarchyCollection:_t,SortingOrder:Nt,DateUtils:Rt,DateFormats:Ht,DateSeparators:qt,DateRangeFormats:Ut,ObservableCollection:$t,VersionController:Wt,CollectionObserver:jt,ColorCoordinate:Gt,CanvasLayouts:Xt,Canvas:Yt,LogoHelper:Kt,SvgHelper:Qt,SvgUtils:Jt,SvgController:Zt,PanelsManager:en,DeferredPanel:tn,InnerPanelController:nn,PanelController:an,DropPanelDefaultOptions:rn,Base64:on,PoolingController:sn,DynamicFonts:ln,ImageBoxLayout:cn,ImageBoxState:un,PendingImage:dn,ImageBoxUtil:gn,DraggingBehaviourAxis:fn,DraggingTrigger:pn,InteractiveBehaviour:hn,DraggingBehaviours:mn,TransitionOrder:vn,RemoteSettings:yn,StyleListener:bn,IconLocation:Cn,ColorsHelper:In,ScrollingView:Sn,FontDetect:Pn,AjaxNavigationMode:wn,AjaxNavigation:En,MouseTargetTracker:Tn,LayoutRowItem:xn,RowItemObj:kn,LayoutCellItem:Dn,CellItemObj:Fn,BatchOperationsSet:An,OperationsBarrier:Bn,ReadWriteController:Vn,SlideShow:Ln,SlideShowUtils:Mn,SlideShowCarousel:On,ThumbsCarousel:zn,PopUpUtil:_n,AnimatedObject:Nn,Effects:Rn,Effect:Hn,SequentialEffect:qn,ScrollableEffect:Un,DialogMode:jn,DocumentSizeUnits:Gn,DocumentMargins:$n,DocumentSize:Wn,Donut:Xn,MessageListener:Yn,ScriptLoader:Kn,ListsService:Qn,ViewersService:Jn,AppMarketService:Zn,ExtensionUtils:ei,ElementInstance:ti,ElementsRenderer:ni,ElementType:ii,ElementsModel:ai,ElementsTypes:ri,Features:oi,TypesArray:si,PropertiesArray:li,PropertiesCategories:ci,PropertiesTypes:ui,MenuItemTypes:di,ElementsModelCompiled:gi,DataSourcesManager:fi,DataSources:pi,DataSourcesDefinitions:hi,DataSourceItemsFields:mi,BaseDataSource:vi,DynamicPageDataSource:yi,DataSourceItemsData:bi,SocialIconsSetCollection:Ci,HttpMethod:Ii,WebService:Si,WebServiceTest:Pi,WebServiceTests:wi,WebServiceParameterType:Ei,WebServiceParameter:Ti,WebServiceDataProxy:xi,RemoteDataSource:ki,SimpleWebServiceTests:Di,TriggerType:Fi,BehavioursManager:Ai,Behaviours:Bi,TriggersManager:Vi,Triggers:Li,ElementStatesManager:Mi,ElementStates:Oi,SmartDataService:zi,PropertiesHelper:_i,StructureProcessorHelper:Ni,PostMessageHelper:Ri,RemoteDatahelper:Hi,ImageProxyHelper:qi,CloudFlareHelper:Ui,AuthUploadHelper:$i,EditorManager:Wi,PayPalButtonManager:ji,FontsManager:Gi,AccountsManager:Xi,InstancePoolingManager:Yi,StatesGroupsManager:Ki,RowsLayoutController:Qi,DataLayoutsManager:Ji,DataLayouts:Zi,DataLayoutsCategories:ea,caclulateFixedSize:t,DataArrangements:ta,ViewManager:na,ElementActivationManager:ia,OrderManager:aa,SiteSettingsManager:ra,BackgroundLayers:oa,ElementsManager:sa,$instance:n,LayoutManager:la,ElementsLayoutHelper:ca,ElementsStructureHelper:ua,DevicesNames:da,PropertiesManager:fa,UrlManager:pa,ConnectionManager:ha,LoadingRequirementsManager:ma,PageManager:va,PopUpManager2:ya,PositionManager:ba,ElementsUtil:Ca,SiteManager:Ia,EcommerceManager:Sa,MasterPagesManager:Pa,CompatibilityManager:wa,ListsCompatibilityManager:Ea,PropertiesValuesConverters:Ta,oldToNewTypes:xa,StructureLoadingManager:ka,StructurePropertyLoadingMap:Da,SiteViewportManager:Fa,DataListHelper:Aa,BaseSectionsComparer:Ba,SeperateToColumnsAlgo:Va,SeperateToEqualColumnsAlgo:La,SeperateToSectionsByTopItemsAlgo:Ma,OrderableElement:Oa,ViewPortOrderingManager:za,RowOfColumns:_a,ColumnCell:Na,RowsManager:Ra,MobileVersionViewManager:Ha,HierarchyController:qa,TextStyleProperties:Ua,NamedTextStyles:$a,InlineTextStylesContentTypes:Wa,InlineTextStylesEnum:ja,InlineTextStylesTypes:Ga,TextStyleManager:Xa,PaletteVariation:Ya,ThemeColorsManager:Ka,ApiManager:Qa,AppsManager:Ja,IframeManager:Za,ThemeFontsManager:er,RichContentProcessor:tr,LimitationsManager:nr,SkinsBindingsTypes:ir,SkinsBindingsTypesNames:ar,SkinsBindingsDevices:rr,SkinsManager:or,DefaultSkinsTypes:sr,StylesManager:lr,StyleController:cr,SkinEditingManager:ur,SkinFieldsVisualizers:dr,SkinFieldsTypes:gr,SkinDefaultCategories:fr,ContentPushingManager:pr,ListsCacheManager:hr,DefaultsListNames:mr,ListsDefinitions:vr,ListContentTypes:yr,ListsIcons:br,ListsManager:Cr,FontIconsManager:Ir,SocialLinksManager:Sr,NavigationManager:Pr,SectionsManager:wr,RenderingCoordinator:Er,PresetAssetsManager:xr,StructureLoadManager:kr,SvgVersionsManager:Dr,PageContentLayouts:Fr,PageContentLayoutManager:Ar,ElementsDuplicationHelper:Br,HtmlElementsScripts:Vr,HtmlElementsManager:Lr,DataBindingManager:Mr,AppMarketStoreManager:Or,StoreManager:zr,DataProxyManager:_r,AppMarketManager:Nr,AppMarketPostMessageHelper:Rr,HtmlElement:Hr,ListController:qr,ListQueryBuilder:Ur,ListQueryExecutor:$r,CKObjectLayout:Wr,CKObjectType:jr,CKObject:Gr,stripStoreDescription:i,StoreDefinition:Xr,DefaultUrlHandler:Yr,ListsUrlHandler:Kr,PageNotFoundUrlHandler:Qr,UrlHandlersInitializer:Jr,NavigationUtils:Zr,CommonSlideNavigation:eo,SlideNavigationPanel2:to,CommonDropDownNavigation:no,DropDownNavigationDesktopPanel:io,DropDownNavigationDesktopPanel2:ao,DropDownNavigationDesktopPanel4:ro,SlideNavigationPanel3:oo,PercentageWidget:so,CommonPercentageWidget:lo,PercentageManager:co,StructureConditionsHelper:uo,IteratorContext:go,StructureIterator:fo,StructureCondition:po,StructureTransform:ho,StructureManagerContext:mo,StructureManager:vo,StructureIteratorHelper:yo,StructureScriptManager:bo,SlideshowThumbsFactory:Co,SlideShowCarouselItemsFactory:Io,SlideShowCarouselRenderers:So,ObservablePropertyBinding:Po,CommonAssets:wo,PropertiesBindingTypes:Eo,NavigationDuringTransitionBehaviour:To,BackgroundType:xo,DefaultInlineTextStyles:ko,PageLayoutPart:Do,PageContentLayout:Fo,JMMLElementTypes:Ao,getJMMLElementType:a,TagCloudTypes:Bo,PostListTypesEnum:Vo,ButtonsGroupTypes:Lo,ExternalAppElementBuilder:Mo,ButtonActions:Oo,createSingleChoiceDropdown:r,createNormalFilterChoiceInput:o,createColorChoiceInput:s,createChoices:l,createFilterDropdown:c,createMobileFilterButton:u,SelectField:zo,Popover:_o,InstanceController:No,InstanceControllerManager:Ro,PhotosDefinition:Ho,FacebookPhotosDefinition:qo,YoutubeChannelDefinition:Uo,YoutubePlaylistDefinition:$o,FacebookTimelineDefinition:Wo,TwitterDefinition:jo,ReviewsDefinition:Go,EventsDefinition:Xo,MusicDefinition:Yo,NewsDefinition:Ko,CryptoJSAesJson:Qo,CryptoJS:Jo,CryptoManager:Zo,PasswordControl:es,TemplateCreator:ts,DataItemsController:ns,DataLayoutController:is,PrivacyPolicyBar:as,MessageDialog:rs,SlideNavigationPanel:os,FreemiumBanners:ss,Cookie:ls}),window.Viewer=ge,f.noConflict(!0);function cs(){}function us(){return!0}function ds(){return!1}function gs(){return null}function fs(e,t,n,i){var a={};return e.call(a,t,n,i),a}ie.ElementsModel={types:{75:{d:[1,2,44,4,19,20,21,10,12,11,8,13,25,18,7,15,17,22,26,30,66,75],p:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,115,116,{i:37,d:4},38,39,90,91,92,93,94,66,60,61,62,63,64,65,48,98,86,87,88,89,47,69,70,71,73,74,75,76,77,78,79,80,81,82,83,84,85,99,100,101,102,107,137,138,139,140],c:"user-selectable-element clickable-element has-text label-element",cp:["horizontalDocking","verticalDocking","calculatedFontFamily","calculatedFontSize","calculatedTextColor","lineColor"]},76:{d:[1,76],p:[0,1,2,3,4,5,6,7,8,9,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162],c:"coordinator-element"},77:{d:[1,77],p:[0,1,2,3,4,5,6,7,8,9],c:""},78:{d:[1,2,44,4,10,12,11,8,13,25,18,26,7,30,15,19,36,22,20,21,56,17,66,78],p:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,{i:18,d:78},19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,115,116,{i:37,d:4},38,39,{i:66,d:78},60,61,62,63,64,65,48,98,86,87,88,89,99,100,101,102,47,107,69,{i:70,d:78},71,90,91,92,93,94,73,{i:74,d:78},75,76,77,{i:78,d:78},79,80,81,82,83,84,85,137,163,164],c:"has-rich-content user-selectable-element clickable-element has-rich-content has-text",cp:["horizontalDocking","verticalDocking","lineColor","calculatedFontFamily","calculatedFontSize","calculatedTextColor"]},79:{d:[1,2,44,4,10,12,11,8,13,25,18,26,7,15,19,36,22,20,21,56,55,79],p:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,115,116,{i:37,d:4},38,39,66,60,61,62,63,64,65,48,98,86,87,88,89,99,100,101,102,47,69,70,71,90,91,92,93,94,121,165],c:"has-rich-content user-selectable-element clickable-element has-rich-content rich-content-element",cp:["horizontalDocking","verticalDocking","lineColor"]},80:{d:[1,2,44,4,10,12,11,8,13,25,18,26,7,30,15,19,36,22,20,21,56,17,66,78,80],p:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,{i:18,d:78},19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,115,116,{i:37,d:4},38,39,{i:66,d:78},60,61,62,63,64,65,48,98,86,87,88,89,99,100,101,102,47,107,69,{i:70,d:78},71,90,91,92,93,94,73,{i:74,d:78},75,76,77,{i:78,d:78},79,80,81,82,83,84,85,137,163,164,166,167,168],c:"has-rich-content user-selectable-element clickable-element has-rich-content has-text",cp:["horizontalDocking","verticalDocking","lineColor","calculatedFontFamily","calculatedFontSize","calculatedTextColor"],i:[44,4,10,12,11,8,13,25,18,26,7,30,15,19,36,22,20,21,56,17,66,78]},81:{d:[1,2,44,4,10,12,11,8,13,25,18,26,7,30,15,19,36,22,20,21,56,17,66,78,81],p:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,{i:18,d:78},19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,115,116,{i:37,d:4},38,39,{i:66,d:78},60,61,62,63,64,65,48,98,86,87,88,89,99,100,101,102,47,107,69,{i:70,d:78},71,90,91,92,93,94,73,{i:74,d:78},75,76,77,{i:78,d:78},79,80,81,82,83,84,85,137,163,164,169,170,171,172],c:"has-rich-content user-selectable-element clickable-element has-rich-content has-text",cp:["horizontalDocking","verticalDocking","lineColor","calculatedFontFamily","calculatedFontSize","calculatedTextColor"],i:[44,4,10,12,11,8,13,25,18,26,7,30,15,19,36,22,20,21,56,17,66,78]},82:{d:[1,2,19,15,10,23,24,40,12,11,8,13,82],p:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,{i:18,d:82},19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,69,70,71,95,96,97,{i:110,d:82},{i:66,d:82},60,61,62,63,64,65,48,173,174,175],c:"",cp:["pageTitle"]},83:{d:[1,2,44,4,19,10,12,18,7,20,21,25,26,30,15,83],p:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,115,116,{i:37,d:4},38,39,66,86,87,88,89,47,90,91,92,93,94,98,99,100,101,102,107,69,70,71,176,177,178],c:"user-selectable-element clickable-element",cp:["horizontalDocking","verticalDocking","lineColor"]},84:{d:[1,2,44,4,7,15,19,30,10,18,25,27,20,21,84],p:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,115,116,{i:37,d:4},38,39,47,69,70,71,107,86,87,88,89,98,103,104,105,90,91,92,93,94,179],c:"user-selectable-element clickable-element",cp:["horizontalDocking","verticalDocking"]},85:{d:[1,2,44,4,10,18,25,27,12,20,21,15,19,36,37,85],p:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,115,116,{i:37,d:4},38,39,86,87,88,89,98,103,104,105,66,90,91,92,93,94,69,70,71],c:"user-selectable-element clickable-element has-rich-content",cp:["horizontalDocking","verticalDocking"]},86:{d:[1,2,44,4,30,10,18,25,27,12,20,21,15,19,36,37,86],p:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,115,116,{i:37,d:4},38,39,107,86,87,88,89,98,103,104,105,66,90,91,92,93,94,69,70,71,180],c:"user-selectable-element clickable-element has-rich-content",cp:["horizontalDocking","verticalDocking"]},87:{d:[1,2,44,4,19,10,12,11,8,13,18,20,21,25,26,30,87],p:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,115,116,{i:37,d:4},38,39,66,60,61,62,63,64,65,48,86,87,88,89,90,91,92,93,94,98,99,100,101,102,107],c:"user-selectable-element clickable-element",cp:["horizontalDocking","verticalDocking","lineColor"]},88:{d:[1,2,44,4,30,10,18,25,27,12,20,21,15,19,36,37,88],p:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,115,116,{i:37,d:4},38,39,107,86,87,88,89,98,103,104,105,66,90,91,92,93,94,69,70,71,181,182],c:"user-selectable-element clickable-element has-rich-content",cp:["horizontalDocking","verticalDocking"]},89:{d:[1,2,44,4,30,10,18,25,27,12,20,21,15,19,36,37,89],p:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,115,116,{i:37,d:4},38,39,107,86,87,88,89,98,103,104,105,66,90,91,92,93,94,69,70,71,183,184],c:"user-selectable-element clickable-element has-rich-content",cp:["horizontalDocking","verticalDocking"]},90:{d:[1,2,44,4,30,10,18,25,27,12,20,21,15,19,36,37,90],p:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,115,116,{i:37,d:4},38,39,107,86,87,88,89,98,103,104,105,66,90,91,92,93,94,69,70,71,185,186],c:"user-selectable-element clickable-element has-rich-content",cp:["horizontalDocking","verticalDocking"]},91:{d:[1,2,44,4,30,10,18,25,27,12,20,21,15,19,36,37,91],p:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,115,116,{i:37,d:4},38,39,107,86,87,88,89,98,103,104,105,66,90,91,92,93,94,69,70,71,187,188],c:"user-selectable-element clickable-element has-rich-content",cp:["horizontalDocking","verticalDocking"]},92:{d:[1,2,44,4,30,10,18,25,27,12,20,21,15,19,36,37,92],p:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,115,116,{i:37,d:4},38,39,107,86,87,88,89,98,103,104,105,66,90,91,92,93,94,69,70,71,189,190,191,192],c:"user-selectable-element clickable-element has-rich-content",cp:["horizontalDocking","verticalDocking"]},93:{d:[1,2,44,4,30,10,18,25,27,12,20,21,15,19,36,37,93],p:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,115,116,{i:37,d:4},38,39,107,86,87,88,89,98,103,104,105,66,90,91,92,93,94,69,70,71,193,194,195,196,197,198,199],c:"user-selectable-element clickable-element has-rich-content",cp:["horizontalDocking","verticalDocking"]},94:{d:[1,2,19,10,30,12,20,21,25,4,18,15,22,38,94],p:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,107,66,90,91,92,93,94,98,{i:37,d:4},38,39,86,87,88,89,69,70,71,108,200,201],c:"user-selectable-element clickable-element svg-shape-element",cp:["horizontalDocking","verticalDocking","svgFontFamily","svgText","svgTextDirection"]},95:{d:[1,2,19,10,30,12,20,21,25,4,15,22,38,95],p:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,107,66,90,91,92,93,94,98,{
i:37,d:4},38,39,69,70,71,108,202],c:"user-selectable-element clickable-element svg-shape-element",cp:["svgFontFamily","svgText","svgTextDirection"]},96:{d:[1,2,4,10,20,21,18,23,24,25,96],p:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,{i:37,d:4},38,39,90,91,92,93,94,86,87,88,89,95,96,97,98],c:"user-selectable-element clickable-element",cp:["horizontalDocking","verticalDocking"]},97:{d:[1,2,23,24,44,4,19,10,12,11,8,13,18,34,25,26,64,20,21,61,62,97],p:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,95,96,97,115,116,{i:37,d:4},38,39,66,60,61,62,63,64,65,48,86,87,88,89,98,99,100,101,102,135,136,90,91,92,93,94,129,{i:130,d:62},131,{i:132,d:97},133,134,203,204,205,206,207,208],c:"user-selectable-element clickable-element has-popup jmml-element",cp:["horizontalDocking","verticalDocking","lineColor"]},98:{d:[1,2,32,23,24,3,52,4,19,10,18,20,21,25,7,15,98],p:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,95,96,97,{i:120,d:98},{i:37,d:4},38,39,86,87,88,89,90,91,92,93,94,98,47,69,70,71,209],c:"skin-element user-selectable-element clickable-element skin-input-element",cp:["horizontalDocking","verticalDocking"]},99:{d:[1,2,4,19,10,12,11,8,13,18,25,26,14,5,23,24,7,15,3,16,28,29,50,99],p:[{i:0,d:99},1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,{i:18,d:99},19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,{i:37,d:4},38,39,66,60,61,62,63,64,65,48,86,87,88,89,98,99,100,101,102,67,{i:68,d:99},40,{i:41,d:99},95,96,97,47,69,70,71,72,106],c:"menu-element",cp:["horizontalDocking","verticalDocking","lineColor","dataItemSize"]},100:{d:[1,2,4,19,10,12,11,8,13,18,25,26,14,5,23,24,7,15,3,16,28,29,50,59,100],p:[{i:0,d:100},1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,{i:18,d:59},19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,{i:37,d:4},38,39,66,60,61,62,63,64,65,48,86,87,88,89,98,99,100,101,102,{i:67,d:59},{i:68,d:59},40,{i:41,d:59},95,96,97,47,69,70,71,72,106,126,127,128,210],c:"menu-element",cp:["horizontalDocking","verticalDocking","lineColor","dataItemSize"]},101:{d:[1,2,4,19,10,12,11,8,13,18,25,26,14,5,23,24,7,15,3,16,28,29,50,59,101],p:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,{i:18,d:101},19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,{i:37,d:4},38,39,66,60,61,62,63,64,65,48,86,87,88,89,98,99,100,101,102,{i:67,d:59},{i:68,d:59},40,{i:41,d:59},95,96,97,47,69,70,71,72,106,126,127,128,211,212],c:"sections-menu-element",cp:["horizontalDocking","verticalDocking","lineColor","dataItemSize"]},102:{d:[1,2,4,19,10,12,11,8,13,18,25,26,14,5,23,24,7,15,3,16,28,29,50,102],p:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,{i:37,d:4},38,39,66,60,61,62,63,64,65,48,86,87,88,89,98,99,100,101,102,{i:67,d:102},{i:68,d:102},{i:40,d:102},41,95,96,97,47,69,70,71,72,106,213],c:"tag-cloud-element",cp:["horizontalDocking","verticalDocking","lineColor","dataItemSize"]},103:{d:[1,2,4,19,10,12,11,8,13,18,25,26,14,5,23,24,7,15,3,16,28,29,50,102,103],p:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,{i:37,d:4},38,39,66,60,61,62,63,64,65,48,86,87,88,89,98,99,100,101,102,{i:67,d:102},{i:68,d:102},{i:40,d:102},41,95,96,97,47,69,70,71,72,106,213],c:"tag-cloud-element",cp:["horizontalDocking","verticalDocking","lineColor","dataItemSize"],i:[4,19,10,12,11,8,13,18,25,26,14,5,23,24,7,15,3,16,28,29,50,102]},104:{d:[1,2,4,19,10,12,11,8,13,18,25,26,14,5,23,24,7,15,3,16,28,29,9,39,104],p:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,{i:37,d:4},38,39,66,60,61,62,63,64,65,48,86,87,88,89,98,99,100,101,102,67,{i:68,d:39},{i:40,d:104},41,95,96,97,47,69,70,71,72,106,49,50,51,52,53,54,55,56,57,58,59,109,214],c:"posts-list-element",cp:["horizontalDocking","verticalDocking","lineColor","dataItemSize"]},105:{d:[1,2,4,19,10,12,11,8,13,18,25,26,14,5,23,24,7,15,3,16,28,29,9,39,67,66,20,21,61,68,6,105],p:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,{i:37,d:4},38,39,66,60,61,62,63,64,65,48,86,87,88,89,98,99,100,101,102,67,{i:68,d:39},40,{i:41,d:105},95,96,97,47,69,70,71,72,106,49,50,51,52,53,54,55,56,57,58,59,109,137,90,91,92,93,94,129,130,131,42,43,44,45,46,215,216],c:"smart-data-list-element user-selectable-element clickable-element has-popup has-datalist-popup data-list-element",cp:["horizontalDocking","verticalDocking","lineColor","dataItemSize"]},106:{d:[1,2,4,19,10,12,11,8,13,18,25,26,14,5,23,24,7,15,3,16,28,29,9,39,67,66,20,21,61,68,6,106],p:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,{i:37,d:4},38,39,66,60,61,62,63,64,65,48,86,87,88,89,98,99,100,101,102,67,{i:68,d:39},40,{i:41,d:106},95,96,97,47,69,70,71,72,106,49,50,51,52,53,54,55,56,57,58,59,109,137,90,91,92,93,94,129,130,131,42,43,44,45,{i:46,d:106},217,218],c:"smart-data-list-element user-selectable-element clickable-element has-popup has-datalist-popup gallery-element",cp:["horizontalDocking","verticalDocking","lineColor","dataItemSize"]},107:{d:[1,2,4,19,10,12,11,8,13,18,25,26,14,5,23,24,7,15,3,16,28,29,9,39,107],p:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,{i:37,d:4},38,39,66,60,61,62,63,64,65,48,86,87,88,89,98,99,100,101,102,67,{i:68,d:39},40,{i:41,d:107},95,96,97,47,69,70,71,72,106,49,50,51,52,53,54,55,56,57,58,59,109],c:"menu-card-element",cp:["horizontalDocking","verticalDocking","lineColor","dataItemSize"]},108:{d:[1,2,4,19,10,12,11,8,13,18,25,26,14,5,23,24,7,15,3,16,28,29,108],p:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,{i:37,d:4},38,39,66,60,61,62,63,64,65,48,86,87,88,89,98,99,100,101,102,67,68,{i:40,d:108},{i:41,d:108},95,96,97,47,69,70,71,72,106],c:"social-icons-element",cp:["horizontalDocking","verticalDocking","lineColor","dataItemSize"]},109:{d:[1,2,4,19,10,12,11,8,13,18,25,26,14,5,23,24,7,15,3,16,28,29,109],p:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,{i:37,d:4},38,39,66,60,61,62,63,64,65,48,86,87,88,89,98,99,100,101,102,67,68,{i:40,d:109},{i:41,d:109},95,96,97,47,69,70,71,72,106],c:"social-sharing-element",cp:["horizontalDocking","verticalDocking","lineColor","dataItemSize"]},110:{d:[1,2,4,19,10,12,11,8,13,18,25,26,14,5,23,24,7,15,3,16,28,29,110],p:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,{i:37,d:4},38,39,66,60,61,62,63,64,65,48,86,87,88,89,98,99,100,101,102,67,68,{i:40,d:110},{i:41,d:110},95,96,97,47,69,70,71,72,106],c:"social-links-element",cp:["horizontalDocking","verticalDocking","lineColor","dataItemSize"]},111:{d:[1,2,44,19,10,12,7,11,8,13,15,20,21,17,25,18,26,31,32,33,34,111],p:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,{i:18,d:111},19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,115,116,66,{i:47,d:111},60,61,62,63,64,65,48,69,{i:70,d:111},71,90,91,92,93,94,73,{i:74,d:111},75,76,77,{i:78,d:111},79,80,81,82,83,84,85,98,86,87,88,89,99,100,101,102],c:"user-selectable-element clickable-element has-text TextInputField",cp:["calculatedFontFamily","calculatedFontSize","calculatedTextColor","horizontalDocking","verticalDocking","lineColor"]},112:{d:[1,2,44,7,15,19,10,20,21,12,11,8,13,17,25,18,26,31,32,33,34,112],p:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,{i:18,d:112},19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,115,116,{i:47,d:112},69,{i:70,d:112},71,90,91,92,93,94,66,60,61,62,63,64,65,48,73,{i:74,d:112},75,76,77,{i:78,d:112},79,80,81,82,83,84,85,98,86,87,88,89,99,100,101,102],c:"user-selectable-element clickable-element has-text",cp:["calculatedFontFamily","calculatedFontSize","calculatedTextColor","horizontalDocking","verticalDocking","lineColor"]},113:{d:[1,2,7,15,19,10,12,11,8,13,18,23,24,20,21,25,26,42,113],p:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,47,69,70,71,{i:66,d:113},60,61,62,63,64,65,48,86,87,88,89,95,96,97,90,91,92,93,94,98,99,100,101,102],c:"user-selectable-element clickable-element data-list-item template-box",cp:["horizontalDocking","verticalDocking","lineColor"]},114:{d:[1,2,4,7,15,19,25,20,21,10,18,22,26,66,114],p:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,{i:37,d:4},38,39,47,69,70,71,98,90,91,92,93,94,86,87,88,89,99,100,101,102,137,219,220,221,222,223,224,225,226,227,228,229],c:"user-selectable-element clickable-element",cp:["horizontalDocking","verticalDocking","lineColor"]},115:{d:[1,2,44,4,7,19,10,12,11,8,13,18,23,24,40,20,21,25,26,30,115],p:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,115,116,{i:37,d:4},38,39,47,66,60,61,62,63,64,65,48,86,87,88,89,95,96,97,110,90,91,92,93,94,98,99,100,101,102,107],c:"user-selectable-element clickable-element userBox",cp:["horizontalDocking","verticalDocking","lineColor"]},116:{d:[1,2,4,15,19,10,11,8,13,18,25,26,31,28,20,21,61,116],p:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,{i:18,d:116},19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,{i:37,d:4},38,39,69,70,71,60,61,62,63,64,65,48,86,87,88,89,98,99,100,101,102,90,91,92,93,94,{i:129,d:116},130,131,230,231,232,233,234,235,236],c:"user-selectable-element clickable-element has-popup video-player",cp:["horizontalDocking","verticalDocking","lineColor"]},117:{d:[1,2,44,4,19,10,25,12,18,20,21,61,11,26,30,8,66,117],p:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,{i:18,d:117},19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,115,116,{i:37,d:4},38,39,98,{i:66,d:117},86,87,88,89,90,91,92,93,94,{i:129,d:117},130,131,{i:60,d:117},61,62,63,64,65,{i:99,d:117},100,{i:101,d:117},102,107,48,137,237,238,239],c:"user-selectable-element clickable-element has-popup image-element",cp:["horizontalDocking","verticalDocking","lineColor"]},118:{d:[1,2,44,4,7,15,19,10,18,23,24,40,20,21,25,26,9,118],p:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,115,116,{i:37,d:4},38,39,47,69,70,71,86,87,88,89,95,96,97,110,90,91,92,93,94,98,99,100,101,102,49,50,51,52,53,54,55,56,57,58,59],c:"user-selectable-element clickable-element switch-panel-element",cp:["horizontalDocking","verticalDocking","lineColor","backgroundColor","backgroundOverlay","imageUrl","imageLayout","imagePosition","padding","roundness","borderWidth","borderStyle","borderColor","shadow","innerShadow","glow","innerGlow","childrenAnchor"]},119:{d:[1,2,44,7,15,23,24,40,26,12,11,8,13,119],p:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,115,116,47,69,70,71,95,96,97,110,99,100,101,102,66,60,61,62,63,64,65,48],c:"tab-element",cp:["lineColor"]},120:{d:[1,2,44,7,15,19,10,12,20,21,11,8,13,18,25,26,4,23,24,40,120],p:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,115,116,47,69,70,71,66,90,91,92,93,94,60,61,62,63,64,65,48,86,87,88,89,98,99,100,101,102,{i:37,d:4},38,39,95,96,97,110,240],c:"user-selectable-element clickable-element button-element",cp:["horizontalDocking","verticalDocking","lineColor"]},121:{d:[1,2,4,19,10,12,11,8,13,18,20,21,25,26,30,7,15,31,28,121],p:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,{i:37,d:4},38,39,66,60,61,62,63,64,65,48,86,87,88,89,90,91,92,93,94,98,99,100,101,102,107,47,69,70,71,241],c:"user-selectable-element clickable-element",cp:["horizontalDocking","verticalDocking","lineColor"]},122:{d:[1,2,19,10,12,11,8,13,18,20,21,25,26,30,7,15,31,4,122],p:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,66,60,61,62,63,64,65,48,86,87,88,89,90,91,92,93,94,98,99,100,101,102,107,47,69,70,71,{i:37,d:4},38,39,242,243],c:"user-selectable-element clickable-element",cp:["horizontalDocking","verticalDocking","lineColor"]},123:{d:[1,2,4,19,10,12,11,8,13,18,25,26,14,5,23,24,7,15,3,16,28,29,9,39,123],p:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,{i:37,d:4},38,39,66,60,61,62,63,64,65,48,86,87,88,89,98,99,100,101,102,67,{i:68,d:39},40,{i:41,d:123},95,96,97,47,69,70,71,72,106,49,50,51,52,53,54,55,56,57,58,59,109],c:"data-list-element",cp:["horizontalDocking","verticalDocking","lineColor","dataItemSize"]},124:{d:[1,2,44,4,7,15,19,10,12,20,21,11,8,13,18,25,26,23,24,57,124],p:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,115,116,{i:37,d:4},38,39,47,69,70,71,66,90,91,92,93,94,60,61,62,63,64,65,48,86,87,88,89,98,99,100,101,102,95,96,97,122,123],c:"user-selectable-element clickable-element paypalButton",cp:["horizontalDocking","verticalDocking","lineColor"]},125:{d:[1,2,44,7,15,19,10,12,20,21,11,8,13,4,18,25,26,23,24,40,58,125],p:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,{i:18,d:125},19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,115,116,47,69,70,71,{i:66,d:125},90,91,92,93,94,60,61,62,63,64,65,48,{i:37,d:4},38,39,86,87,88,89,98,99,100,101,102,95,96,97,110,124,125],c:"user-selectable-element clickable-element checkOutButton",cp:["horizontalDocking","verticalDocking","lineColor"]},126:{d:[1,2,44,4,19,10,12,11,8,13,18,34,25,26,64,14,5,23,24,7,15,3,16,28,29,65,126],p:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,115,116,{i:37,d:4},38,39,66,60,61,62,63,64,65,48,86,87,88,89,98,99,100,101,102,135,136,67,68,40,41,95,96,97,47,69,70,71,72,106,244,245,246,247,248,249],c:"form-element",cp:["horizontalDocking","verticalDocking","lineColor","dataItemSize","isJoinMyMailingListEnabled"]},127:{d:[1,2,44,4,19,10,12,11,8,13,18,34,25,26,64,14,5,23,24,7,15,3,16,28,29,65,127],p:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,115,116,{i:37,d:4},38,39,66,60,61,62,63,64,65,48,86,87,88,89,98,99,100,101,102,135,136,67,68,40,41,95,96,97,47,69,70,71,72,106],c:"password-form-element",cp:["horizontalDocking","verticalDocking","lineColor","dataItemSize"]},128:{d:[1,2,19,10,12,11,8,13,18,25,4,26,14,5,23,24,7,15,3,16,28,29,128],p:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,{i:18,d:128},19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,66,60,61,62,63,64,65,48,86,87,88,89,98,{i:37,d:4},38,39,99,100,101,102,67,{i:68,d:128},40,{i:41,d:128},95,96,97,47,69,70,71,72,106,250,251],c:"buttons-group",cp:["horizontalDocking","verticalDocking","lineColor","dataItemSize"]},129:{d:[1,2,44,7,19,10,12,11,8,13,18,23,24,40,43,26,129],p:[{i:0,d:129},1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,{i:18,d:43},19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,115,116,47,66,60,61,62,63,64,65,48,86,87,{i:88,d:43},89,95,96,97,{i:110,d:43},112,{i:113,d:129},114,99,100,101,102],c:"footer-element",cp:["horizontalDocking","verticalDocking","lineColor"]},130:{d:[1,2,44,7,19,10,12,11,8,13,18,23,24,40,43,26,130],p:[{i:0,d:130},1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,{i:18,d:43},19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,115,116,47,66,60,61,62,63,64,65,48,86,87,{i:88,d:43},89,95,96,97,{i:110,d:43},112,{i:113,d:130},114,99,100,101,102],c:"header-element",cp:["horizontalDocking","verticalDocking","lineColor"]},131:{d:[1,2,44,7,19,10,12,11,8,13,18,23,24,40,43,26,131],p:[{i:0,d:131},1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,{i:18,d:131},19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,115,116,47,{i:66,d:131},60,61,62,63,64,65,48,86,87,{i:88,d:43},89,95,96,97,{i:110,d:43},112,{i:113,d:131},114,99,100,101,102],c:"page-section-element",cp:["horizontalDocking","verticalDocking","lineColor"]},132:{d:[1,2,7,15,19,10,12,11,8,13,18,23,24,40,25,26,132],p:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,{i:18,d:132},19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,47,69,70,71,66,60,61,62,63,64,65,48,86,87,88,89,95,96,97,110,98,99,100,101,102,252,253],c:"page-content-element",cp:["horizontalDocking","verticalDocking","lineColor"]},133:{d:[1,2,44,41,34,4,19,10,12,11,8,13,23,24,20,21,15,7,25,26,133],p:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,115,116,111,{i:37,d:4},38,39,66,60,61,62,63,64,65,48,95,96,97,90,91,92,93,94,69,70,71,47,98,99,100,101,102],c:"template-item user-selectable-element clickable-element skin-hierarchy-box",cp:["lineColor"]},134:{d:[1,2,23,24,3,52,42,4,19,10,18,20,21,25,7,15,53,32,134],p:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,95,96,97,{i:120,d:134},{i:37,d:4},38,39,86,87,88,89,90,91,92,93,94,98,47,69,70,71],c:"skin-element data-list-item user-selectable-element clickable-element skin-input-element",cp:["horizontalDocking","verticalDocking"]},135:{d:[1,2,23,24,3,52,42,4,19,10,18,20,21,25,7,15,53,54,135],p:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,95,96,97,{i:120,d:135},{i:37,d:4},38,39,86,87,88,89,90,91,92,93,94,98,47,69,70,71],c:"skin-element data-list-item user-selectable-element clickable-element skin-list-view-element",cp:["horizontalDocking","verticalDocking"]},136:{d:[1,2,5,23,24,3,52,4,19,10,18,20,21,25,15,136],p:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,{i:40,d:136},{i:41,d:136},95,96,97,{i:120,d:136},{i:37,d:4},38,39,86,87,88,89,90,91,92,93,94,98,69,70,71,237,238,239,60,61,62,63,64,65],c:"skin-element user-selectable-element clickable-element skin-image-element",cp:["horizontalDocking","verticalDocking"],dd:[117,11],dp:[237,238,239,60,61,62,63,64,65]},137:{d:[1,2,44,5,20,21,22,15,19,36,60,23,24,3,52,4,10,18,25,137],p:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,115,116,40,41,90,91,92,93,94,69,70,71,95,96,97,{i:120,d:137},{i:37,d:4},38,39,86,87,88,89,98,254,177,163],c:"user-selectable-element clickable-element has-rich-content skin-element skin-button-element",cp:["horizontalDocking","verticalDocking"],dp:[177,163]},138:{d:[1,2,23,24,3,52,42,4,19,10,18,20,21,25,7,15,53,138],p:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,95,96,97,{i:120,d:138},{i:37,d:4},38,39,86,87,88,89,90,91,92,93,94,98,47,69,70,71],c:"skin-element data-list-item user-selectable-element clickable-element skin-data-item-element",cp:["horizontalDocking","verticalDocking"]},139:{d:[1,2,23,24,3,52,42,4,19,10,18,20,21,25,7,15,53,139],p:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,95,96,97,{i:120,d:139},{i:37,d:4},38,39,86,87,88,89,90,91,92,93,94,98,47,69,70,71],c:"skin-element data-list-item user-selectable-element clickable-element skin-gallery-element",cp:["horizontalDocking","verticalDocking"]},140:{d:[1,2,23,24,3,52,42,4,19,10,18,20,21,25,7,15,140],p:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,95,96,97,{i:120,d:140},{i:37,d:4},38,39,86,87,88,89,90,91,92,93,94,98,47,69,70,71],c:"skin-element data-list-item user-selectable-element clickable-element skin-gallery-element",cp:["horizontalDocking","verticalDocking"]},141:{d:[1,2,23,24,3,52,42,4,19,10,18,20,21,25,7,15,53,63,141],p:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,95,96,97,{i:120,d:141},{i:37,d:4},38,39,86,87,88,89,90,91,92,93,94,98,47,69,70,71],c:"skin-element data-list-item user-selectable-element clickable-element skin-menu-button-element",cp:["horizontalDocking","verticalDocking"]},142:{d:[1,2,23,24,3,52,42,4,19,10,18,20,21,25,7,15,53,142],p:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,95,96,97,{i:120,d:142},{i:37,d:4},38,39,86,87,88,89,90,91,92,93,94,98,47,69,70,71],c:"skin-element data-list-item user-selectable-element clickable-element skin-image-element",cp:["horizontalDocking","verticalDocking"]},143:{d:[1,2,23,24,3,52,42,4,19,10,18,20,21,25,7,15,53,143],p:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,95,96,97,{i:120,d:143},{i:37,d:4},38,39,86,87,88,89,90,91,92,93,94,98,47,69,70,71],c:"skin-element data-list-item user-selectable-element clickable-element skin-social-icon-element",cp:["horizontalDocking","verticalDocking"]},144:{d:[1,2,23,24,3,52,42,4,19,10,18,20,21,25,7,15,53,54,63,144],p:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,95,96,97,120,{i:37,d:4},38,39,86,87,88,89,90,91,92,93,94,98,47,69,70,71],c:"skin-element data-list-item user-selectable-element clickable-element skin-tag-button-element",cp:["horizontalDocking","verticalDocking"]},145:{d:[1,2,23,24,3,52,42,4,19,10,18,20,21,25,7,15,53,54,145],p:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,95,96,97,120,{i:37,d:4},38,39,86,87,88,89,90,91,92,93,94,98,47,69,70,71],c:"skin-element data-list-item user-selectable-element clickable-element skin-item-tag-button-element",cp:["horizontalDocking","verticalDocking"]},146:{d:[1,2,23,24,3,52,42,4,19,10,18,20,21,25,7,15,53,54,63,146],p:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,95,96,97,{i:120,d:146},{i:37,d:4},38,39,86,87,88,89,90,91,92,93,94,98,47,69,70,71],c:"skin-element data-list-item user-selectable-element clickable-element skin-list-category-button-element",cp:["horizontalDocking","verticalDocking"]},147:{d:[1,2,23,24,3,52,42,4,19,10,18,20,21,25,7,15,53,63,147],p:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,95,96,97,{i:120,d:147},{i:37,d:4},38,39,86,87,88,89,90,91,92,93,94,98,47,69,70,71],c:"skin-element data-list-item user-selectable-element clickable-element skin-section-button-element",cp:["horizontalDocking","verticalDocking"]},148:{d:[1,2,7,15,19,10,12,11,8,13,23,24,20,21,25,26,42,148],p:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,47,69,70,71,66,60,61,62,63,64,65,48,95,96,97,90,91,92,93,94,98,99,100,101,102],c:"user-selectable-element clickable-element data-list-item button-element",cp:["lineColor"]},149:{d:[1,2,7,15,19,10,12,11,8,13,23,24,20,21,25,26,42,149],p:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,47,69,70,71,66,60,61,62,63,64,65,48,95,96,97,90,91,92,93,94,98,99,100,101,102],c:"user-selectable-element clickable-element data-list-item image-item-element",cp:["lineColor"]},150:{d:[1,2,44,7,15,19,10,12,11,8,13,23,24,20,21,25,26,42,150],p:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,115,116,47,69,70,71,66,60,61,62,63,64,65,48,95,96,97,90,91,92,93,94,98,99,100,101,102],c:"user-selectable-element clickable-element data-list-item data-list-item-element",cp:["lineColor"]},151:{d:[1,2,7,15,19,10,12,11,8,13,23,24,20,21,25,26,42,151],p:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,47,69,70,71,66,60,61,62,63,64,65,48,95,96,97,90,91,92,93,94,98,99,100,101,102],c:"user-selectable-element clickable-element data-list-item list-view-item-element",cp:["lineColor"]},152:{d:[1,2,7,15,19,10,12,11,8,13,23,24,20,21,25,26,34,42,152],p:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,47,69,70,71,66,60,61,62,63,64,65,48,95,96,97,90,91,92,93,94,98,99,100,101,102],c:"user-selectable-element clickable-element data-list-item input-element",cp:["lineColor"]},153:{d:[1,2,7,15,19,10,12,11,8,13,23,24,20,21,25,26,34,153],p:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,47,69,70,71,66,60,61,62,63,64,65,48,95,96,97,90,91,92,93,94,98,99,100,101,102],c:"user-selectable-element clickable-element input-element",cp:["lineColor"]},154:{d:[1,2,5,23,24,3,52,4,19,10,18,20,21,25,15,51,154],p:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,40,41,95,96,97,120,{i:37,d:4},38,39,86,87,88,89,90,91,92,93,94,98,69,70,71,118,119,176,177,178],c:"skin-element user-selectable-element clickable-element",cp:["horizontalDocking","verticalDocking"],dd:[83],dp:[176,177,178]},155:{d:[1,2,44,10,11,8,13,18,25,30,31,4,15,45,47,69,155],p:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,{i:18,d:155},19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,115,116,60,61,62,63,64,65,48,86,87,88,89,98,107,{i:37,d:4},38,39,69,70,71,117,255,256,257,258,259],c:"",cp:["horizontalDocking","verticalDocking"]},156:{d:[1,2,44,10,11,8,13,18,25,30,31,4,15,45,47,156],p:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,{i:18,d:156},19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,115,116,60,61,62,63,64,65,48,86,87,88,89,98,107,{i:37,d:4},38,39,69,70,71,117,260,261,262,263,264,265],c:"",cp:["horizontalDocking","verticalDocking"]},157:{d:[1,2,44,10,11,8,13,18,25,30,31,4,15,45,47,157],p:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,{i:18,d:157},19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,115,116,60,61,62,63,64,65,48,86,87,88,89,98,107,{i:37,d:4},38,39,69,70,71,117,266,267,268,269],c:"",cp:["horizontalDocking","verticalDocking"]},158:{d:[1,2,44,10,11,8,13,18,25,30,31,4,15,45,47,69,158],p:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,{i:18,d:158},19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,115,116,60,61,62,63,64,65,48,86,87,88,89,98,107,{i:37,d:4},38,39,69,70,71,117,270,271,272,273,274,275],c:"",cp:["horizontalDocking","verticalDocking"]},159:{d:[1,2,44,10,11,8,13,18,25,30,31,4,15,45,47,69,159],p:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,{i:18,d:159},19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,115,116,60,61,62,63,64,65,48,86,87,88,89,98,107,{i:37,d:4},38,39,69,70,71,117,276,277,278,279,280,281],c:"",cp:["horizontalDocking","verticalDocking"]},160:{d:[1,2,44,10,11,8,13,18,25,30,31,4,15,45,47,19,160],p:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,{i:18,d:160},19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,115,116,60,61,62,63,64,65,48,86,87,88,89,98,107,{i:37,d:4},38,39,69,70,71,117,282,283,284,285],c:"",cp:["horizontalDocking","verticalDocking"]},161:{d:[1,2,44,10,11,8,13,18,25,30,31,4,15,45,47,19,161],p:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,{i:18,d:161},19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,115,116,60,61,62,63,64,65,48,86,87,88,89,98,107,{i:37,d:4},38,39,69,70,71,117,286,287,288,289,290,291,292],c:"",cp:["horizontalDocking","verticalDocking"]},162:{d:[1,2,44,10,11,8,13,18,25,30,31,4,15,45,47,19,162],p:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,{i:18,d:162},19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,115,116,60,61,62,63,64,65,48,86,87,88,89,98,107,{i:37,d:4},38,39,69,70,71,117,293,294,295,296,297,298],c:"",cp:["horizontalDocking","verticalDocking"]},163:{d:[1,2,44,10,11,8,13,18,25,30,31,4,15,45,47,19,69,163],p:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,{i:18,d:163},19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,115,116,60,61,62,63,64,65,48,86,87,88,89,98,107,{i:37,d:4},38,39,69,70,71,117,299,300,301,302,303,304,305],c:"",cp:["horizontalDocking","verticalDocking"]},164:{d:[1,2,44,10,11,8,13,18,25,30,31,4,15,45,47,19,28,66,164],p:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,{i:18,d:164},19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,115,116,60,61,62,63,64,65,48,86,87,88,89,98,107,{i:37,d:4},38,39,69,70,71,117,137,306,307,308,309,310,311,312],c:"",cp:["horizontalDocking","verticalDocking"]},165:{d:[1,2,44,10,11,8,13,18,25,30,31,4,15,45,47,165],p:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,{i:18,d:165},19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,115,116,60,61,62,63,64,65,48,86,87,88,89,98,107,{i:37,d:4},38,39,69,70,71,117,313,314,315,316],c:"",cp:["horizontalDocking","verticalDocking"]},166:{d:[1,2,44,10,12,7,11,8,13,18,25,26,30,31,4,15,45,47,166],p:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,{i:18,d:166},19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,115,116,66,47,60,61,62,63,64,65,48,86,87,88,89,98,99,100,101,102,107,{i:37,d:4},38,39,69,70,71,117,317,318,319],c:"",cp:["horizontalDocking","verticalDocking","lineColor"]},167:{d:[1,2,44,10,12,7,11,8,13,18,25,26,30,31,4,15,45,47,19,167],p:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,{i:18,d:167},19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,115,116,66,47,60,61,62,63,64,65,48,86,87,88,89,98,99,100,101,102,107,{i:37,d:4},38,39,69,70,71,117,320,321,322,323,324],c:"",cp:["horizontalDocking","verticalDocking","lineColor"]},168:{d:[1,2,44,10,11,8,13,18,25,30,31,4,15,45,47,19,69,168],p:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,{i:18,d:168},19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,115,116,60,61,62,63,64,65,48,86,87,88,89,98,107,{i:37,d:4},38,39,69,70,71,117,325,326,327,328,329,330],c:"",cp:["horizontalDocking","verticalDocking"]},169:{d:[1,2,44,10,11,8,13,18,25,30,31,4,15,45,47,69,169],p:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,{i:18,d:169},19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,115,116,60,61,62,63,64,65,48,86,87,88,89,98,107,{i:37,d:4},38,39,69,70,71,117,331,332,333,334],c:"",cp:["horizontalDocking","verticalDocking"]},170:{d:[1,2,44,10,11,8,13,18,25,30,31,4,15,45,47,19,170],p:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,{i:18,d:170},19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,115,116,60,61,62,63,64,65,48,86,87,88,89,98,107,{i:37,d:4},38,39,69,70,71,117,335,336,337,338,339,340],c:"",cp:["horizontalDocking","verticalDocking"]},171:{d:[1,2,44,10,12,7,11,8,13,18,25,26,30,31,4,15,45,47,19,171],p:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,{i:18,d:171},19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,115,116,66,47,60,61,62,63,64,65,48,86,87,88,89,98,99,100,101,102,107,{i:37,d:4},38,39,69,70,71,117,341,342,343,344,345,346,347],c:"",cp:["horizontalDocking","verticalDocking","lineColor"]},172:{d:[1,2,44,10,12,7,11,8,13,18,25,26,30,31,4,15,45,47,19,28,172],p:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,{i:18,d:172},19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,115,116,66,47,60,61,62,63,64,65,48,86,87,88,89,98,99,100,101,102,107,{i:37,d:4},38,39,69,70,71,117,348,349],c:"",cp:["horizontalDocking","verticalDocking","lineColor"]},173:{d:[1,2,44,4,19,10,12,18,7,25,26,30,31,15,45,28,173],p:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,{i:18,d:173},19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,115,116,{i:37,d:4},38,39,66,86,87,88,89,47,98,99,100,101,102,107,69,70,71,350],c:"",cp:["horizontalDocking","verticalDocking","lineColor"]},174:{d:[1,2,44,10,11,8,13,18,25,30,31,4,15,45,47,19,174],p:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,{i:18,d:174},19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,115,116,60,61,62,63,64,65,48,86,87,88,89,98,107,{i:37,d:4},38,39,69,70,71,117,351,352,353,354],c:"",cp:["horizontalDocking","verticalDocking"]},175:{d:[1,2,44,5,20,21,22,15,19,36,60,23,24,3,52,4,10,18,25,137,57,175],p:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,115,116,40,41,90,91,92,93,94,69,70,71,95,96,97,{i:120,d:137},{i:37,d:4},38,39,86,87,88,89,98,254,122,123,177,163],c:"user-selectable-element clickable-element has-rich-content skin-element skin-button-element paypalButton",cp:["horizontalDocking","verticalDocking"],dp:[177,163],i:[44,5,20,21,22,15,19,36,60,23,24,3,52,4,10,18,25,137]},176:{d:[1,2,44,5,20,21,22,15,19,36,60,23,24,3,52,4,10,18,25,137,58,176],p:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,115,116,40,41,90,91,92,93,94,69,70,71,95,96,97,{i:120,d:137},{i:37,d:4},38,39,86,87,88,89,98,254,124,125,177,163],c:"user-selectable-element clickable-element has-rich-content skin-element skin-button-element checkOutButton",cp:["horizontalDocking","verticalDocking"],dp:[177,163],i:[44,5,20,21,22,15,19,36,60,23,24,3,52,4,10,18,25,137]
},177:{d:[1,2,44,5,20,21,22,15,19,36,60,23,24,3,52,4,10,18,25,137,177],p:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,115,116,40,41,90,91,92,93,94,69,70,71,95,96,97,{i:120,d:137},{i:37,d:4},38,39,86,87,88,89,98,254,177,163],c:"user-selectable-element clickable-element has-rich-content skin-element skin-button-element rss-button",cp:["horizontalDocking","verticalDocking"],dp:[177,163],i:[44,5,20,21,22,15,19,36,60,23,24,3,52,4,10,18,25,137]},178:{d:[1,2,4,19,10,12,11,8,13,18,25,26,14,5,23,24,7,15,3,16,28,29,178],p:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,{i:37,d:4},38,39,66,60,61,62,63,64,65,48,86,87,88,89,98,99,100,101,102,67,68,40,41,95,96,97,47,69,70,71,72,106],c:"data-list-element",cp:["horizontalDocking","verticalDocking","lineColor","dataItemSize"]},179:{d:[1,2,4,19,10,12,11,8,13,18,25,26,14,5,23,24,7,15,3,16,28,29,178,179],p:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,{i:37,d:4},38,39,66,60,61,62,63,64,65,48,86,87,88,89,98,99,100,101,102,67,68,40,{i:41,d:179},95,96,97,47,69,70,71,72,106],c:"data-list-element",cp:["horizontalDocking","verticalDocking","lineColor","dataItemSize"],i:[4,19,10,12,11,8,13,18,25,26,14,5,23,24,7,15,3,16,28,29,178]},180:{d:[1,2,4,19,10,12,11,8,13,18,25,26,14,5,23,24,7,15,3,16,28,29,178,180],p:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,{i:37,d:4},38,39,66,60,61,62,63,64,65,48,86,87,88,89,98,99,100,101,102,67,68,40,{i:41,d:180},95,96,97,47,69,70,71,72,106],c:"data-list-element",cp:["horizontalDocking","verticalDocking","lineColor","dataItemSize"],i:[4,19,10,12,11,8,13,18,25,26,14,5,23,24,7,15,3,16,28,29,178]},181:{d:[1,2,4,19,10,12,11,8,13,18,25,26,14,5,23,24,7,15,3,16,28,29,178,181],p:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,{i:37,d:4},38,39,66,60,61,62,63,64,65,48,86,87,88,89,98,99,100,101,102,67,68,40,{i:41,d:181},95,96,97,47,69,70,71,72,106],c:"data-list-element",cp:["horizontalDocking","verticalDocking","lineColor","dataItemSize"],i:[4,19,10,12,11,8,13,18,25,26,14,5,23,24,7,15,3,16,28,29,178]},182:{d:[1,2,4,19,10,12,11,8,13,18,25,26,14,5,23,24,7,15,3,16,28,29,178,182],p:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,{i:37,d:4},38,39,66,60,61,62,63,64,65,48,86,87,88,89,98,99,100,101,102,67,68,40,{i:41,d:182},95,96,97,47,69,70,71,72,106],c:"data-list-element",cp:["horizontalDocking","verticalDocking","lineColor","dataItemSize"],i:[4,19,10,12,11,8,13,18,25,26,14,5,23,24,7,15,3,16,28,29,178]},183:{d:[1,2,4,19,10,12,11,8,13,18,25,26,14,5,23,24,7,15,3,16,28,29,178,183],p:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,{i:37,d:4},38,39,66,60,61,62,63,64,65,48,86,87,88,89,98,99,100,101,102,67,68,40,{i:41,d:183},95,96,97,47,69,70,71,72,106],c:"data-list-element",cp:["horizontalDocking","verticalDocking","lineColor","dataItemSize"],i:[4,19,10,12,11,8,13,18,25,26,14,5,23,24,7,15,3,16,28,29,178]},184:{d:[1,2,4,19,10,12,11,8,13,18,25,26,14,5,23,24,7,15,3,16,28,29,178,184],p:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,{i:37,d:4},38,39,66,60,61,62,63,64,65,48,86,87,88,89,98,99,100,101,102,67,68,40,{i:41,d:184},95,96,97,47,69,70,71,72,106],c:"data-list-element",cp:["horizontalDocking","verticalDocking","lineColor","dataItemSize"],i:[4,19,10,12,11,8,13,18,25,26,14,5,23,24,7,15,3,16,28,29,178]},185:{d:[1,2,4,19,10,12,18,7,20,21,25,26,30,15,31,185],p:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,{i:37,d:4},38,39,66,86,87,88,89,47,90,91,92,93,94,98,99,100,101,102,107,69,70,71,355,356],c:"user-selectable-element clickable-element",cp:["horizontalDocking","verticalDocking","lineColor"]},186:{d:[1,2,44,4,10,12,11,8,13,25,18,26,7,30,15,19,36,186],p:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,115,116,{i:37,d:4},38,39,66,60,61,62,63,64,65,48,98,86,87,88,89,99,100,101,102,47,107,69,70,71,357],c:"has-rich-content",cp:["horizontalDocking","verticalDocking","lineColor"]},187:{d:[1,2,44,4,10,12,11,8,13,25,18,26,7,30,15,19,36,186,23,24,43,187],p:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,{i:18,d:43},19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,115,116,{i:37,d:4},38,39,66,60,61,62,63,64,65,48,98,86,87,{i:88,d:43},89,99,100,101,102,47,107,69,70,71,357,95,96,97,112,113,114],c:"has-rich-content html-section-element",cp:["horizontalDocking","verticalDocking","lineColor"],i:[44,4,10,12,11,8,13,25,18,26,7,30,15,19,36,186]},188:{d:[1,2,44,5,20,21,22,15,19,36,60,23,24,3,52,4,10,18,25,137,63,188],p:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,115,116,40,41,90,91,92,93,94,69,70,71,95,96,97,{i:120,d:137},{i:37,d:4},38,39,86,87,88,89,98,254],c:"user-selectable-element clickable-element has-rich-content skin-element skin-button-element skin-toggle-button-element",cp:["horizontalDocking","verticalDocking"],i:[44,5,20,21,22,15,19,36,60,23,24,3,52,4,10,18,25,137]},189:{d:[1,2,44,5,20,21,22,15,19,36,60,23,24,3,52,4,10,18,25,137,63,188,32,189],p:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,115,116,40,41,90,91,92,93,94,69,70,71,95,96,97,{i:120,d:137},{i:37,d:4},38,39,86,87,88,89,98,254,163],c:"user-selectable-element clickable-element has-rich-content skin-element skin-button-element skin-toggle-button-element skin-checkbox-button-element",cp:["horizontalDocking","verticalDocking"],dp:[163],i:[44,5,20,21,22,15,19,36,60,23,24,3,52,4,10,18,25,137,63,188]},190:{d:[1,2,4,19,10,12,11,8,13,18,25,26,14,5,23,24,7,15,3,16,28,29,9,39,67,190],p:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,{i:37,d:4},38,39,66,60,61,62,63,64,65,48,86,87,88,89,98,99,100,101,102,67,{i:68,d:39},{i:40,d:190},41,95,96,97,47,69,70,71,72,106,49,50,51,52,53,54,55,56,57,58,59,109,358,359],c:"smart-data-list-element store-front-element",cp:["horizontalDocking","verticalDocking","lineColor","dataItemSize"]},191:{d:[1,2,44,4,19,20,21,10,12,11,8,13,25,18,7,15,17,22,26,30,66,75,191],p:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,115,116,{i:37,d:4},38,39,90,91,92,93,94,66,60,61,62,63,64,65,48,98,86,87,88,89,47,69,70,71,73,74,75,76,77,78,79,80,81,82,83,84,85,99,100,101,102,107,137,138,139,140],c:"user-selectable-element clickable-element has-text label-element",cp:["horizontalDocking","verticalDocking","calculatedFontFamily","calculatedFontSize","calculatedTextColor","lineColor"],i:[44,4,19,20,21,10,12,11,8,13,25,18,7,15,17,22,26,30,66,75]},192:{d:[1,2,44,4,10,12,11,8,13,25,18,26,7,30,15,19,36,22,20,21,56,17,66,78,192],p:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,{i:18,d:78},19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,115,116,{i:37,d:4},38,39,{i:66,d:78},60,61,62,63,64,65,48,98,86,87,88,89,99,100,101,102,47,107,69,{i:70,d:78},71,90,91,92,93,94,73,{i:74,d:78},75,76,77,{i:78,d:78},79,80,81,82,83,84,85,137,163,164],c:"has-rich-content user-selectable-element clickable-element has-rich-content has-text",cp:["horizontalDocking","verticalDocking","lineColor","calculatedFontFamily","calculatedFontSize","calculatedTextColor"],i:[44,4,10,12,11,8,13,25,18,26,7,30,15,19,36,22,20,21,56,17,66,78]},193:{d:[1,2,44,4,10,12,11,8,13,25,18,26,7,30,15,19,36,22,20,21,56,17,66,78,193],p:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,{i:18,d:78},19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,115,116,{i:37,d:4},38,39,{i:66,d:78},60,61,62,63,64,65,48,98,86,87,88,89,99,100,101,102,47,107,69,{i:70,d:78},71,90,91,92,93,94,73,{i:74,d:78},75,76,77,{i:78,d:78},79,80,81,82,83,84,85,137,163,164],c:"has-rich-content user-selectable-element clickable-element has-rich-content has-text hideable-text-detail",cp:["horizontalDocking","verticalDocking","lineColor","calculatedFontFamily","calculatedFontSize","calculatedTextColor"],i:[44,4,10,12,11,8,13,25,18,26,7,30,15,19,36,22,20,21,56,17,66,78]},194:{d:[1,2,44,4,19,20,21,10,12,11,8,13,25,18,7,15,17,22,26,30,66,75,194],p:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,115,116,{i:37,d:4},38,39,90,91,92,93,94,66,60,61,62,63,64,65,48,98,86,87,88,89,47,69,70,71,73,74,75,76,77,78,79,80,81,82,83,84,85,99,100,101,102,107,137,138,139,140],c:"user-selectable-element clickable-element has-text label-element",cp:["horizontalDocking","verticalDocking","calculatedFontFamily","calculatedFontSize","calculatedTextColor","lineColor"],i:[44,4,19,20,21,10,12,11,8,13,25,18,7,15,17,22,26,30,66,75]},195:{d:[1,2,44,4,10,12,11,8,13,25,18,26,7,30,15,19,36,22,20,21,56,17,66,78,80,195],p:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,{i:18,d:78},19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,115,116,{i:37,d:4},38,39,{i:66,d:78},60,61,62,63,64,65,48,98,86,87,88,89,99,100,101,102,47,107,69,{i:70,d:78},71,90,91,92,93,94,73,{i:74,d:78},75,76,77,{i:78,d:78},79,80,81,82,83,84,85,137,163,164,166,167,168],c:"has-rich-content user-selectable-element clickable-element has-rich-content has-text",cp:["horizontalDocking","verticalDocking","lineColor","calculatedFontFamily","calculatedFontSize","calculatedTextColor"],i:[44,4,10,12,11,8,13,25,18,26,7,30,15,19,36,22,20,21,56,17,66,78,80]},196:{d:[1,2,44,4,19,20,21,10,12,11,8,13,25,18,7,15,17,22,26,30,66,75,191,196],p:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,{i:18,d:196},19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,115,116,{i:37,d:4},38,39,90,91,92,93,94,66,60,61,62,63,64,65,48,98,86,87,88,89,47,69,{i:70,d:196},71,73,74,75,76,77,{i:78,d:196},79,80,81,82,83,84,85,99,100,101,102,107,137,138,139,140,{i:360,d:196}],c:"user-selectable-element clickable-element has-text label-element store-price-element",cp:["horizontalDocking","verticalDocking","calculatedFontFamily","calculatedFontSize","calculatedTextColor","lineColor"],i:[44,4,19,20,21,10,12,11,8,13,25,18,7,15,17,22,26,30,66,75,191]},197:{d:[1,2,4,10,25,18,15,19,36,23,24,197],p:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,{i:37,d:4},38,39,98,86,87,88,89,69,70,71,95,96,97,361],c:"has-rich-content store-breadcrumb-element",cp:["horizontalDocking","verticalDocking"]},198:{d:[1,2,44,4,7,19,10,12,11,8,13,18,23,24,40,20,21,25,26,30,115,15,71,72,17,198],p:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,115,116,{i:37,d:4},38,39,47,66,60,61,62,63,64,65,48,86,87,88,89,95,96,97,110,90,91,92,93,94,98,99,100,101,102,107,69,70,71,73,74,75,76,77,78,79,80,81,82,83,84,85,362,363,364],c:"user-selectable-element clickable-element userBox has-text store-categories-container",cp:["horizontalDocking","verticalDocking","lineColor","calculatedFontFamily","calculatedFontSize","calculatedTextColor"],i:[44,4,7,19,10,12,11,8,13,18,23,24,40,20,21,25,26,30,115]},199:{d:[1,2,4,10,25,18,15,19,36,23,24,70,199],p:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,{i:37,d:4},38,39,98,86,87,88,89,69,70,71,95,96,97,365],c:"has-rich-content has-dialog store-categories-element",cp:["horizontalDocking","verticalDocking"]},200:{d:[1,2,14,5,23,24,7,15,3,16,28,29,200],p:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,67,68,40,41,95,96,97,47,69,70,71,72,106],c:"store-categories-element",cp:["dataItemSize"]},201:{d:[1,2,44,4,7,19,10,12,11,8,13,18,23,24,40,20,21,25,26,30,115,201],p:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,115,116,{i:37,d:4},38,39,47,66,60,61,62,63,64,65,48,86,87,88,89,95,96,97,110,90,91,92,93,94,98,99,100,101,102,107],c:"user-selectable-element clickable-element userBox store-categories-element",cp:["horizontalDocking","verticalDocking","lineColor"],i:[44,4,7,19,10,12,11,8,13,18,23,24,40,20,21,25,26,30,115]},202:{d:[1,2,4,10,25,18,15,19,36,23,24,70,202],p:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,{i:37,d:4},38,39,98,86,87,88,89,69,70,71,95,96,97,366],c:"has-rich-content has-dialog store-filters-element",cp:["horizontalDocking","verticalDocking"]},203:{d:[1,2,4,10,25,18,15,19,36,23,24,70,202,203],p:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,{i:37,d:4},38,39,98,86,87,88,89,69,70,71,95,96,97,366],c:"has-rich-content has-dialog store-filters-element",cp:["horizontalDocking","verticalDocking"],i:[4,10,25,18,15,19,36,23,24,70,202]},204:{d:[1,2,4,10,25,18,15,19,36,23,24,12,204],p:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,{i:37,d:4},38,39,98,86,87,88,89,69,70,71,95,96,97,66,367],c:"has-rich-content store-selected-filters-element",cp:["horizontalDocking","verticalDocking"]},205:{d:[1,2,44,4,10,12,11,8,13,25,18,26,7,17,30,15,19,36,23,24,205],p:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,115,116,{i:37,d:4},38,39,66,60,61,62,63,64,65,48,98,86,87,88,89,99,100,101,102,47,73,74,75,76,77,78,79,80,81,82,83,84,85,107,69,70,71,95,96,97,368],c:"has-text has-rich-content store-variants-container",cp:["horizontalDocking","verticalDocking","lineColor","calculatedFontFamily","calculatedFontSize","calculatedTextColor"]},206:{d:[1,2,44,4,10,12,11,8,13,25,18,26,7,17,30,15,19,36,23,24,205,206],p:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,115,116,{i:37,d:4},38,39,66,60,61,62,63,64,65,48,98,86,87,88,89,99,100,101,102,47,73,74,75,76,77,78,79,80,81,82,83,84,85,107,69,70,71,95,96,97,368],c:"has-text has-rich-content store-variants-container",cp:["horizontalDocking","verticalDocking","lineColor","calculatedFontFamily","calculatedFontSize","calculatedTextColor"],i:[44,4,10,12,11,8,13,25,18,26,7,17,30,15,19,36,23,24,205]},207:{d:[1,2,44,5,20,21,22,15,19,36,60,23,24,3,52,4,10,18,25,137,17,207],p:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,115,116,40,41,90,91,92,93,94,69,70,71,95,96,97,{i:120,d:137},{i:37,d:4},38,39,86,87,88,89,98,254,73,74,75,76,77,78,79,80,81,82,83,84,85,369,177],c:"user-selectable-element clickable-element has-rich-content skin-element skin-button-element has-text store-show-cart-button-element",cp:["horizontalDocking","verticalDocking","calculatedFontFamily","calculatedFontSize","calculatedTextColor"],dp:[177],i:[44,5,20,21,22,15,19,36,60,23,24,3,52,4,10,18,25,137]},208:{d:[1,2,44,4,7,19,10,12,11,8,13,18,23,24,40,20,21,25,26,30,115,17,208],p:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,115,116,{i:37,d:4},38,39,47,66,60,61,62,63,64,65,48,86,87,88,89,95,96,97,110,90,91,92,93,94,98,99,100,101,102,107,73,74,75,76,77,78,79,80,81,82,83,84,85,370,177],c:"user-selectable-element clickable-element userBox has-text store-show-buy-button-element",cp:["horizontalDocking","verticalDocking","lineColor","calculatedFontFamily","calculatedFontSize","calculatedTextColor"],dp:[177],i:[44,4,7,19,10,12,11,8,13,18,23,24,40,20,21,25,26,30,115]},209:{d:[1,2,44,4,7,19,10,12,11,8,13,18,23,24,40,20,21,25,26,30,115,5,209],p:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,115,116,{i:37,d:4},38,39,47,66,60,61,62,63,64,65,48,86,87,88,89,95,96,97,110,90,91,92,93,94,98,99,100,101,102,107,40,41,177],c:"user-selectable-element clickable-element userBox store-gallery-element",cp:["horizontalDocking","verticalDocking","lineColor"],dp:[177],i:[44,4,7,19,10,12,11,8,13,18,23,24,40,20,21,25,26,30,115]},210:{d:[1,2,44,4,7,19,10,12,11,8,13,18,23,24,40,20,21,25,26,30,115,210],p:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,115,116,{i:37,d:4},38,39,47,66,60,61,62,63,64,65,48,86,87,88,89,95,96,97,110,90,91,92,93,94,98,99,100,101,102,107,177],c:"user-selectable-element clickable-element userBox breadcrumb-element",cp:["horizontalDocking","verticalDocking","lineColor"],dp:[177],i:[44,4,7,19,10,12,11,8,13,18,23,24,40,20,21,25,26,30,115]},211:{d:[1,2,4,19,10,12,11,8,13,18,25,26,14,5,23,24,7,15,3,16,28,29,9,39,67,66,20,21,61,68,211],p:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,{i:37,d:4},38,39,66,60,61,62,63,64,65,48,86,87,88,89,98,99,100,101,102,67,{i:68,d:39},40,41,95,96,97,47,69,70,71,72,106,49,50,51,52,53,54,55,56,57,58,59,109,137,90,91,92,93,94,129,130,131,371,372],c:"smart-data-list-element user-selectable-element clickable-element has-popup has-datalist-popup facebook-photos-element",cp:["horizontalDocking","verticalDocking","lineColor","dataItemSize"]},212:{d:[1,2,4,19,10,12,11,8,13,18,25,26,14,5,23,24,7,15,3,16,28,29,9,39,67,20,21,61,68,66,212],p:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,{i:37,d:4},38,39,66,60,61,62,63,64,65,48,86,87,88,89,98,99,100,101,102,67,{i:68,d:39},40,41,95,96,97,47,69,70,71,72,106,49,50,51,52,53,54,55,56,57,58,59,109,90,91,92,93,94,129,130,131,137,373],c:"smart-data-list-element user-selectable-element clickable-element has-popup has-datalist-popup youtube-channel-element",cp:["horizontalDocking","verticalDocking","lineColor","dataItemSize"]},213:{d:[1,2,44,4,7,19,10,12,11,8,13,18,23,24,40,20,21,25,26,30,115,5,213],p:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,115,116,{i:37,d:4},38,39,47,66,60,61,62,63,64,65,48,86,87,88,89,95,96,97,110,90,91,92,93,94,98,99,100,101,102,107,40,41,177],c:"user-selectable-element clickable-element userBox facebook-media-element",cp:["horizontalDocking","verticalDocking","lineColor"],dp:[177],i:[44,4,7,19,10,12,11,8,13,18,23,24,40,20,21,25,26,30,115]},214:{d:[1,2,4,19,10,12,11,8,13,18,25,26,14,5,23,24,7,15,3,16,28,29,9,39,67,66,214],p:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,{i:37,d:4},38,39,66,60,61,62,63,64,65,48,86,87,88,89,98,99,100,101,102,67,{i:68,d:39},40,41,95,96,97,47,69,70,71,72,106,49,50,51,52,53,54,55,56,57,58,59,109,137,374],c:"smart-data-list-element facebook-timeline-element",cp:["horizontalDocking","verticalDocking","lineColor","dataItemSize"]},215:{d:[1,2,4,19,10,12,11,8,13,18,25,26,14,5,23,24,7,15,3,16,28,29,9,39,67,66,215],p:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,{i:37,d:4},38,39,66,60,61,62,63,64,65,48,86,87,88,89,98,99,100,101,102,67,{i:68,d:39},40,41,95,96,97,47,69,70,71,72,106,49,50,51,52,53,54,55,56,57,58,59,109,137,375],c:"smart-data-list-element twitter-feed-element",cp:["horizontalDocking","verticalDocking","lineColor","dataItemSize"]},216:{d:[1,2,4,19,10,12,11,8,13,18,25,26,14,5,23,24,7,15,3,16,28,29,9,39,67,66,6,216],p:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,{i:37,d:4},38,39,66,60,61,62,63,64,65,48,86,87,88,89,98,99,100,101,102,67,{i:68,d:39},40,{i:41,d:216},95,96,97,47,69,70,71,72,106,49,50,51,52,53,54,55,56,57,58,59,109,137,42,43,44,45,46,376,377],c:"smart-data-list-element reviews-source-element",cp:["horizontalDocking","verticalDocking","lineColor","dataItemSize"]},217:{d:[1,2,4,19,10,12,11,8,13,18,25,26,14,5,23,24,7,15,3,16,28,29,9,39,67,66,6,217],p:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,{i:37,d:4},38,39,66,60,61,62,63,64,65,48,86,87,88,89,98,99,100,101,102,67,{i:68,d:39},40,{i:41,d:217},95,96,97,47,69,70,71,72,106,49,50,51,52,53,54,55,56,57,58,59,109,137,42,43,44,45,46,378,379],c:"smart-data-list-element events-data-source-element",cp:["horizontalDocking","verticalDocking","lineColor","dataItemSize"]},218:{d:[1,2,4,19,10,12,11,8,13,18,25,26,14,5,23,24,7,15,3,16,28,29,9,39,67,66,6,218],p:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,{i:37,d:4},38,39,66,60,61,62,63,64,65,48,86,87,88,89,98,99,100,101,102,67,{i:68,d:39},40,{i:41,d:218},95,96,97,47,69,70,71,72,106,49,50,51,52,53,54,55,56,57,58,59,109,137,42,43,44,45,46,380,381],c:"smart-data-list-element music-data-source-element",cp:["horizontalDocking","verticalDocking","lineColor","dataItemSize"]},219:{d:[1,2,4,19,10,12,11,8,13,18,25,26,14,5,23,24,7,15,3,16,28,29,9,39,67,66,6,219],p:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,{i:37,d:4},38,39,66,60,61,62,63,64,65,48,86,87,88,89,98,99,100,101,102,67,{i:68,d:39},40,{i:41,d:219},95,96,97,47,69,70,71,72,106,49,50,51,52,53,54,55,56,57,58,59,109,137,42,43,44,45,46,382,383],c:"smart-data-list-element news-data-source-element",cp:["horizontalDocking","verticalDocking","lineColor","dataItemSize"]},220:{d:[1,2,44,4,19,10,12,18,7,25,26,30,31,15,45,73,17,74,220],p:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,115,116,{i:37,d:4},38,39,{i:66,d:220},86,87,88,89,47,98,99,100,101,102,107,69,70,71,73,{i:74,d:220},75,76,77,{i:78,d:220},79,80,81,82,83,84,85,384,385,386],c:"has-text app-market-element",cp:["horizontalDocking","verticalDocking","lineColor","calculatedFontFamily","calculatedFontSize","calculatedTextColor"]}},lazy:["2","9","23","24","25","28","29","36","47","52"],methods:[{75:4,78:4,79:4,80:4,81:4,83:4,84:4,85:4,86:4,87:4,88:4,89:4,90:4,91:4,92:4,93:4,94:4,95:4,96:4,97:4,98:4,99:29,100:100,101:29,102:29,103:29,104:29,105:29,106:29,107:29,108:29,109:29,110:29,114:4,115:4,116:4,117:4,118:4,120:4,121:4,122:4,123:29,124:4,125:4,126:29,127:29,128:29,133:4,134:4,135:4,136:4,137:4,138:4,139:4,140:4,141:4,142:4,143:4,144:4,145:4,146:4,147:4,154:4,155:4,156:4,157:4,158:4,159:4,160:4,161:4,162:4,163:4,164:4,165:4,166:4,167:4,168:4,169:4,170:4,171:4,172:4,173:4,174:4,175:4,176:4,177:4,178:29,179:29,180:29,181:29,182:29,183:29,184:29,185:4,186:4,187:4,188:4,189:4,190:29,191:4,192:4,193:4,194:4,195:4,196:4,197:4,198:4,199:4,200:29,201:4,202:4,203:4,204:4,205:4,206:4,207:4,208:4,209:4,210:4,211:29,212:29,213:4,214:29,215:29,216:29,217:29,218:29,219:29,220:4},{75:4,78:4,79:4,80:4,81:4,83:4,84:4,85:4,86:4,87:4,88:4,89:4,90:4,91:4,92:4,93:4,94:4,95:4,96:4,97:4,98:4,99:4,100:4,101:4,102:4,103:4,104:4,105:4,106:4,107:4,108:4,109:4,110:4,114:4,115:4,116:4,117:4,118:4,120:4,121:4,122:4,123:4,124:4,125:4,126:4,127:4,128:4,133:4,134:4,135:4,136:4,137:4,138:4,139:4,140:4,141:4,142:4,143:4,144:4,145:4,146:4,147:4,154:4,155:4,156:4,157:4,158:4,159:4,160:4,161:4,162:4,163:4,164:4,165:4,166:4,167:4,168:4,169:4,170:4,171:4,172:4,173:4,174:4,175:4,176:4,177:4,178:4,179:4,180:4,181:4,182:4,183:4,184:4,185:4,186:4,187:4,188:4,189:4,190:4,191:4,192:4,193:4,194:4,195:4,196:4,197:4,198:4,199:4,201:4,202:4,203:4,204:4,205:4,206:4,207:4,208:4,209:4,210:4,211:4,212:4,213:4,214:4,215:4,216:4,217:4,218:4,219:4,220:4},{75:4,78:4,79:4,80:4,81:4,83:4,84:4,85:4,86:4,87:4,88:4,89:4,90:4,91:4,92:4,93:4,94:4,95:4,96:4,97:4,98:4,99:4,100:4,101:4,102:4,103:4,104:4,105:4,106:4,107:4,108:4,109:4,110:4,114:4,115:4,116:4,117:4,118:4,120:4,121:4,122:4,123:4,124:4,125:4,126:4,127:4,128:4,133:4,134:4,135:4,136:4,137:4,138:4,139:4,140:4,141:4,142:4,143:4,144:4,145:4,146:4,147:4,154:4,155:4,156:4,157:4,158:4,159:4,160:4,161:4,162:4,163:4,164:4,165:4,166:4,167:4,168:4,169:4,170:4,171:4,172:4,173:4,174:4,175:4,176:4,177:4,178:4,179:4,180:4,181:4,182:4,183:4,184:4,185:4,186:4,187:4,188:4,189:4,190:4,191:4,192:4,193:4,194:4,195:4,196:4,197:4,198:4,199:4,201:4,202:4,203:4,204:4,205:4,206:4,207:4,208:4,209:4,210:4,211:4,212:4,213:4,214:4,215:4,216:4,217:4,218:4,219:4,220:4},{75:4,78:4,79:4,80:4,81:4,83:4,84:4,85:4,86:4,87:4,88:4,89:4,90:4,91:4,92:4,93:4,94:4,95:4,96:4,97:4,98:4,99:4,100:4,101:4,102:4,103:4,104:4,105:4,106:4,107:4,108:4,109:4,110:4,114:4,115:4,116:4,117:4,118:4,120:4,121:4,122:4,123:4,124:4,125:4,126:4,127:4,128:4,133:4,134:4,135:4,136:4,137:4,138:4,139:4,140:4,141:4,142:4,143:4,144:4,145:4,146:4,147:4,154:4,155:4,156:4,157:4,158:4,159:4,160:4,161:4,162:4,163:4,164:4,165:4,166:4,167:4,168:4,169:4,170:4,171:4,172:4,173:4,174:4,175:4,176:4,177:4,178:4,179:4,180:4,181:4,182:4,183:4,184:4,185:4,186:4,187:4,188:4,189:4,190:4,191:4,192:4,193:4,194:4,195:4,196:4,197:4,198:4,199:4,201:4,202:4,203:4,204:4,205:4,206:4,207:4,208:4,209:4,210:4,211:4,212:4,213:4,214:4,215:4,216:4,217:4,218:4,219:4,220:4},{75:4,78:4,79:4,80:4,81:4,83:4,84:4,85:4,86:4,87:4,88:4,89:4,90:4,91:4,92:4,93:4,94:4,95:4,96:4,97:4,98:4,99:4,100:4,101:4,102:4,103:4,104:4,105:4,106:4,107:4,108:4,109:4,110:4,114:4,115:4,116:4,117:4,118:4,120:4,121:4,122:4,123:4,124:4,125:4,126:4,127:4,128:4,133:4,134:4,135:4,136:4,137:4,138:4,139:4,140:4,141:4,142:4,143:4,144:4,145:4,146:4,147:4,154:4,155:4,156:4,157:4,158:4,159:4,160:4,161:4,162:4,163:4,164:4,165:4,166:4,167:4,168:4,169:4,170:4,171:4,172:4,173:4,174:4,175:4,176:4,177:4,178:4,179:4,180:4,181:4,182:4,183:4,184:4,185:4,186:4,187:4,188:4,189:4,190:4,191:4,192:4,193:4,194:4,195:4,196:4,197:4,198:4,199:4,201:4,202:4,203:4,204:4,205:4,206:4,207:4,208:4,209:4,210:4,211:4,212:4,213:4,214:4,215:4,216:4,217:4,218:4,219:4,220:4},{75:4,78:4,79:4,80:4,81:4,83:4,84:4,85:4,86:4,87:4,88:4,89:4,90:4,91:4,92:4,93:4,94:4,95:4,96:4,97:4,98:4,99:4,100:4,101:4,102:4,103:4,104:4,105:4,106:4,107:4,108:4,109:4,110:4,114:4,115:4,116:4,117:4,118:4,120:4,121:4,122:4,123:4,124:4,125:4,126:4,127:4,128:4,133:4,134:4,135:4,136:4,137:4,138:4,139:4,140:4,141:4,142:4,143:4,144:4,145:4,146:4,147:4,154:4,155:4,156:4,157:4,158:4,159:4,160:4,161:4,162:4,163:4,164:4,165:4,166:4,167:4,168:4,169:4,170:4,171:4,172:4,173:4,174:4,175:4,176:4,177:4,178:4,179:4,180:4,181:4,182:4,183:4,184:4,185:4,186:4,187:4,188:4,189:4,190:4,191:4,192:4,193:4,194:4,195:4,196:4,197:4,198:4,199:4,201:4,202:4,203:4,204:4,205:4,206:4,207:4,208:4,209:4,210:4,211:4,212:4,213:4,214:4,215:4,216:4,217:4,218:4,219:4,220:4},{75:4,78:4,79:4,80:4,81:4,83:4,84:4,85:4,86:4,87:4,88:4,89:4,90:4,91:4,92:4,93:4,94:4,95:4,96:4,97:4,98:4,99:4,100:4,101:4,102:4,103:4,104:4,105:4,106:4,107:4,108:4,109:4,110:4,114:4,115:4,116:4,117:4,118:4,120:4,121:4,122:4,123:4,124:4,125:4,126:4,127:4,128:4,133:4,134:4,135:4,136:4,137:4,138:4,139:4,140:4,141:4,142:4,143:4,144:4,145:4,146:4,147:4,154:4,155:4,156:4,157:4,158:4,159:4,160:4,161:4,162:4,163:4,164:4,165:4,166:4,167:4,168:4,169:4,170:4,171:4,172:4,173:4,174:4,175:4,176:4,177:4,178:4,179:4,180:4,181:4,182:4,183:4,184:4,185:4,186:4,187:4,188:4,189:4,190:4,191:4,192:4,193:4,194:4,195:4,196:4,197:4,198:4,199:4,201:4,202:4,203:4,204:4,205:4,206:4,207:4,208:4,209:4,210:4,211:4,212:4,213:4,214:4,215:4,216:4,217:4,218:4,219:4,220:4},{75:4,78:4,79:4,80:4,81:4,83:4,84:4,85:4,86:4,87:4,88:4,89:4,90:4,91:4,92:4,93:4,94:4,95:4,96:4,97:4,98:4,99:4,100:4,101:4,102:4,103:4,104:4,105:4,106:4,107:4,108:4,109:4,110:4,114:4,115:4,116:4,117:4,118:4,120:4,121:4,122:4,123:4,124:4,125:4,126:4,127:4,128:4,133:4,134:4,135:4,136:4,137:4,138:4,139:4,140:4,141:4,142:4,143:4,144:4,145:4,146:4,147:4,154:4,155:4,156:4,157:4,158:4,159:4,160:4,161:4,162:4,163:4,164:4,165:4,166:4,167:4,168:4,169:4,170:4,171:4,172:4,173:4,174:4,175:4,176:4,177:4,178:4,179:4,180:4,181:4,182:4,183:4,184:4,185:4,186:4,187:4,188:4,189:4,190:4,191:4,192:4,193:4,194:4,195:4,196:4,197:4,198:4,199:4,201:4,202:4,203:4,204:4,205:4,206:4,207:4,208:4,209:4,210:4,211:4,212:4,213:4,214:4,215:4,216:4,217:4,218:4,219:4,220:4},{75:4,78:4,79:4,80:4,81:4,83:4,84:4,85:4,86:4,87:4,88:4,89:4,90:4,91:4,92:4,93:4,94:4,95:4,96:4,97:4,98:4,99:4,100:4,101:4,102:4,103:4,104:4,105:4,106:4,107:4,108:4,109:4,110:4,114:4,115:4,116:4,117:4,118:4,120:4,121:4,122:4,123:4,124:4,125:4,126:4,127:4,128:4,133:4,134:4,135:4,136:4,137:4,138:4,139:4,140:4,141:4,142:4,143:4,144:4,145:4,146:4,147:4,154:4,155:4,156:4,157:4,158:4,159:4,160:4,161:4,162:4,163:4,164:4,165:4,166:4,167:4,168:4,169:4,170:4,171:4,172:4,173:4,174:4,175:4,176:4,177:4,178:4,179:4,180:4,181:4,182:4,183:4,184:4,185:4,186:4,187:4,188:4,189:4,190:4,191:4,192:4,193:4,194:4,195:4,196:4,197:4,198:4,199:4,201:4,202:4,203:4,204:4,205:4,206:4,207:4,208:4,209:4,210:4,211:4,212:4,213:4,214:4,215:4,216:4,217:4,218:4,219:4,220:4},{75:4,78:4,79:4,80:4,81:4,83:4,84:4,85:4,86:4,87:4,88:4,89:4,90:4,91:4,92:4,93:4,94:4,95:4,96:4,97:4,98:4,99:4,100:4,101:4,102:4,103:4,104:4,105:4,106:4,107:4,108:4,109:4,110:4,114:4,115:4,116:4,117:4,118:4,120:4,121:4,122:4,123:4,124:4,125:4,126:4,127:4,128:4,133:4,134:4,135:4,136:4,137:4,138:4,139:4,140:4,141:4,142:4,143:4,144:4,145:4,146:4,147:4,154:4,155:4,156:4,157:4,158:4,159:4,160:4,161:4,162:4,163:4,164:4,165:4,166:4,167:4,168:4,169:4,170:4,171:4,172:4,173:4,174:4,175:4,176:4,177:4,178:4,179:4,180:4,181:4,182:4,183:4,184:4,185:4,186:4,187:4,188:4,189:4,190:4,191:4,192:4,193:4,194:4,195:4,196:4,197:4,198:4,199:4,201:4,202:4,203:4,204:4,205:4,206:4,207:4,208:4,209:4,210:4,211:4,212:4,213:4,214:4,215:4,216:4,217:4,218:4,219:4,220:4},{75:4,78:4,79:4,80:4,81:4,83:4,84:4,85:4,86:4,87:4,88:4,89:4,90:4,91:4,92:4,93:4,94:4,95:4,96:4,97:4,98:4,99:4,100:4,101:4,102:4,103:4,104:4,105:4,106:4,107:4,108:4,109:4,110:4,114:4,115:4,116:4,117:4,118:4,120:4,121:4,122:4,123:4,124:4,125:4,126:4,127:4,128:4,133:4,134:4,135:4,136:4,137:4,138:4,139:4,140:4,141:4,142:4,143:4,144:4,145:4,146:4,147:4,154:4,155:4,156:4,157:4,158:4,159:4,160:4,161:4,162:4,163:4,164:4,165:4,166:4,167:4,168:4,169:4,170:4,171:4,172:4,173:4,174:4,175:4,176:4,177:4,178:4,179:4,180:4,181:4,182:4,183:4,184:4,185:4,186:4,187:4,188:4,189:4,190:4,191:4,192:4,193:4,194:4,195:4,196:4,197:4,198:4,199:4,201:4,202:4,203:4,204:4,205:4,206:4,207:4,208:4,209:4,210:4,211:4,212:4,213:4,214:4,215:4,216:4,217:4,218:4,219:4,220:4},{75:4,78:4,79:4,80:4,81:4,83:4,84:4,85:4,86:4,87:4,88:4,89:4,90:4,91:4,92:4,93:4,94:4,95:4,96:4,97:4,98:4,99:4,100:4,101:4,102:4,103:4,104:4,105:4,106:4,107:4,108:4,109:4,110:4,114:4,115:4,116:4,117:4,118:4,120:4,121:4,122:4,123:4,124:4,125:4,126:4,127:4,128:4,133:4,134:4,135:4,136:4,137:4,138:4,139:4,140:4,141:4,142:4,143:4,144:4,145:4,146:4,147:4,154:4,155:4,156:4,157:4,158:4,159:4,160:4,161:4,162:4,163:4,164:4,165:4,166:4,167:4,168:4,169:4,170:4,171:4,172:4,173:4,174:4,175:4,176:4,177:4,178:4,179:4,180:4,181:4,182:4,183:4,184:4,185:4,186:4,187:4,188:4,189:4,190:4,191:4,192:4,193:4,194:4,195:4,196:4,197:4,198:4,199:4,201:4,202:4,203:4,204:4,205:4,206:4,207:4,208:4,209:4,210:4,211:4,212:4,213:4,214:4,215:4,216:4,217:4,218:4,219:4,220:4},{75:4,78:4,79:4,80:4,81:4,82:82,83:4,84:4,85:4,86:4,87:4,88:4,89:4,90:4,91:4,92:4,93:4,94:4,95:4,96:4,97:4,98:4,99:4,100:4,101:4,102:4,103:4,104:4,105:4,106:4,107:4,108:4,109:4,110:4,114:4,115:4,116:4,117:4,118:4,120:4,121:4,122:4,123:4,124:4,125:4,126:4,127:4,128:4,133:4,134:4,135:4,136:4,137:4,138:4,139:4,140:4,141:4,142:4,143:4,144:4,145:4,146:4,147:4,154:4,155:[4,47],156:[4,47],157:[4,47],158:[4,47],159:[4,47],160:[4,47],161:[4,47],162:[4,47],163:[4,47],164:[4,47],165:[4,47],166:[4,47],167:[4,47],168:[4,47],169:[4,47],170:[4,47],171:[4,47],172:[4,47],173:4,174:[4,47],175:4,176:4,177:4,178:4,179:4,180:4,181:4,182:4,183:4,184:4,185:4,186:4,187:4,188:4,189:4,190:4,191:4,192:4,193:4,194:4,195:4,196:4,197:4,198:4,199:4,201:4,202:4,203:4,204:4,205:4,206:4,207:4,208:4,209:4,210:4,211:4,212:4,213:4,214:4,215:4,216:4,217:4,218:4,219:4,220:4},{75:4,78:4,79:4,80:4,81:4,82:82,83:4,84:4,85:4,86:4,87:4,88:4,89:4,90:4,91:4,92:4,93:4,94:4,95:4,96:4,97:4,98:4,99:4,100:4,101:4,102:4,103:4,104:4,105:4,106:4,107:4,108:4,109:4,110:4,114:4,115:4,116:4,117:4,118:4,120:4,121:4,122:4,123:4,124:4,125:4,126:4,127:4,128:4,129:43,130:43,131:43,132:132,133:4,134:4,135:4,136:4,137:4,138:4,139:4,140:4,141:4,142:4,143:4,144:4,145:4,146:4,147:4,154:4,155:4,156:4,157:4,158:4,159:4,160:4,161:4,162:4,163:4,164:4,165:4,166:4,167:4,168:4,169:4,170:4,171:4,172:4,
173:4,174:4,175:4,176:4,177:4,178:4,179:4,180:4,181:4,182:4,183:4,184:4,185:4,186:4,187:43,188:4,189:4,190:4,191:4,192:4,193:4,194:4,195:4,196:4,197:4,198:4,199:4,201:4,202:4,203:4,204:4,205:4,206:4,207:4,208:4,209:4,210:4,211:4,212:4,213:4,214:4,215:4,216:4,217:4,218:4,219:4,220:4},{75:[0,4],78:[0,4],79:[0,4],80:[0,4],81:[0,4],82:82,83:[0,4],84:[0,4],85:[0,4],86:[0,4],87:[0,4],88:[0,4],89:[0,4],90:[0,4],91:[0,4],92:[0,4],93:[0,4],94:[0,4],95:[0,4],96:[0,4],97:[0,4],98:[0,4],99:[0,4],100:[0,4],101:[0,4],102:[0,4],103:[0,4],104:[0,4],105:[0,4],106:[0,4],107:[0,4],108:[0,4],109:[0,4],110:[0,4],113:[0,42],114:[0,4],115:[0,4],116:[0,4],117:[0,4],118:[0,4],119:119,120:[0,4],121:[0,4],122:[0,4],123:[0,4],124:[0,4],125:[0,4],126:[0,4],127:[0,4],128:[0,4],129:43,130:43,131:43,132:[0,132],133:133,134:[0,42,4],135:[0,42,4],136:[0,4],137:[0,4],138:[0,42,4],139:[0,42,4],140:[0,42,4],141:[0,42,4],142:[0,42,4],143:[0,42,4],144:[0,42,4],145:[0,42,4],146:[0,42,4],147:[0,42,4],148:[0,42],149:[0,42],150:[0,42],151:[0,42],152:[0,42],154:[0,4],155:[0,4],156:[0,4],157:[0,4],158:[0,4],159:[0,4],160:[0,4],161:[0,4],162:[0,4],163:[0,4],164:[0,4],165:[0,4],166:[0,4],167:[0,4],168:[0,4],169:[0,4],170:[0,4],171:[0,4],172:[0,4],173:[0,4],174:[0,4],175:[0,4],176:[0,4],177:[0,4],178:[0,4],179:[0,4],180:[0,4],181:[0,4],182:[0,4],183:[0,4],184:[0,4],185:[0,4],186:[0,4],187:43,188:[0,4],189:[0,4],190:[0,4],191:[0,4],192:[0,4],193:[0,4],194:[0,4],195:[0,4],196:[0,4],197:[0,4],198:[0,4],199:[0,4],201:[0,4],202:[0,4],203:[0,4],204:[0,4],205:[0,4],206:[0,4],207:[0,4],208:[0,4],209:[0,4],210:[0,4],211:[0,4],212:[0,4],213:[0,4],214:[0,4],215:[0,4],216:[0,4],217:[0,4],218:[0,4],219:[0,4],220:[0,4]},{75:20,78:20,79:20,80:20,81:20,83:20,84:20,85:20,86:20,87:20,88:20,89:20,90:20,91:20,92:20,93:20,94:20,95:20,96:20,97:20,98:20,105:20,106:20,111:20,112:20,113:20,114:20,115:20,116:20,117:20,118:20,120:20,121:20,122:20,124:20,125:20,133:20,134:20,135:20,136:20,137:20,138:20,139:20,140:20,141:20,142:20,143:20,144:20,145:20,146:20,147:20,148:20,149:20,150:20,151:20,152:20,153:20,154:20,175:20,176:20,177:20,185:20,188:20,189:20,191:20,192:20,193:20,194:20,195:20,196:20,198:20,201:20,207:20,208:20,209:20,210:20,211:20,212:20,213:20},{75:20,78:20,79:20,80:20,81:20,83:20,84:20,85:20,86:20,87:20,88:20,89:20,90:20,91:20,92:20,93:20,94:20,95:20,96:20,97:20,98:20,105:20,106:20,111:20,112:20,113:20,114:20,115:20,116:20,117:20,118:20,120:20,121:20,122:20,124:20,125:20,133:20,134:20,135:20,136:20,137:20,138:20,139:20,140:20,141:20,142:20,143:20,144:20,145:20,146:20,147:20,148:20,149:20,150:20,151:20,152:20,153:20,154:20,175:20,176:20,177:20,185:20,188:20,189:20,191:20,192:20,193:20,194:20,195:20,196:20,198:20,201:20,207:20,208:20,209:20,210:20,211:20,212:20,213:20},{75:20,78:20,79:20,80:20,81:20,83:20,84:20,85:20,86:20,87:20,88:20,89:20,90:20,91:20,92:20,93:20,94:20,95:20,96:20,97:20,98:20,105:20,106:20,111:20,112:20,113:20,114:20,115:20,116:20,117:20,118:20,120:20,121:20,122:20,124:20,125:20,133:20,134:20,135:20,136:20,137:20,138:20,139:20,140:20,141:[20,63],142:20,143:20,144:[20,63],145:20,146:[20,63],147:[20,63],148:20,149:20,150:20,151:20,152:20,153:20,154:20,175:20,176:20,177:20,185:20,188:[20,63],189:[20,63],191:20,192:20,193:20,194:20,195:20,196:20,198:20,201:20,207:20,208:20,209:20,210:20,211:20,212:20,213:20},{75:20,78:20,79:20,80:20,81:20,83:20,84:20,85:20,86:20,87:20,88:20,89:20,90:20,91:20,92:20,93:20,94:20,95:20,96:20,97:20,98:20,105:20,106:20,111:20,112:20,113:20,114:20,115:20,116:20,117:20,118:20,120:20,121:20,122:20,124:20,125:20,133:133,134:20,135:20,136:20,137:20,138:20,139:20,140:20,141:20,142:20,143:20,144:20,145:20,146:20,147:20,148:20,149:20,150:20,151:20,152:20,153:20,154:20,175:20,176:20,177:20,185:20,188:20,189:20,191:20,192:20,193:20,194:20,195:20,196:20,198:20,201:20,207:20,208:20,209:20,210:20,211:20,212:20,213:20},{75:21,78:21,79:21,80:21,81:21,83:21,84:21,85:21,86:21,87:21,88:21,89:21,90:21,91:21,92:21,93:21,94:21,95:21,96:21,97:21,98:21,105:21,106:21,111:21,112:21,113:21,114:21,115:21,116:21,117:21,118:21,120:21,121:21,122:21,124:21,125:21,133:21,134:21,135:21,136:21,137:21,138:21,139:21,140:21,141:21,142:21,143:21,144:21,145:21,146:21,147:21,148:21,149:21,150:21,151:21,152:21,153:21,154:21,175:21,176:21,177:21,185:21,188:21,189:21,191:21,192:21,193:21,194:21,195:21,196:21,198:21,201:21,207:21,208:21,209:21,210:21,211:21,212:21,213:21},{75:75,78:78,79:79,80:80,81:81,83:83,84:[0,21],85:[0,21],86:[0,21],87:[0,21],88:[0,21],89:[0,21],90:[0,21],91:[0,21],92:[0,21],93:[0,21],94:[0,21],95:[0,21],96:[0,21],97:[0,21],98:[0,21],99:5,100:5,101:5,102:5,103:5,104:5,105:[5,21],106:[5,21],107:5,108:5,109:5,110:5,111:[0,21],112:[0,21],113:[0,21],114:[0,21],115:[0,21],116:116,117:117,118:[0,21],120:[0,21],121:[0,21],122:[0,21],123:5,124:57,125:[0,21],126:5,127:5,128:5,133:[0,21],134:[0,21],135:[0,21],136:[5,21],137:[5,21],138:[0,21],139:[0,21],140:[0,21],141:[0,21],142:[0,21],143:[0,21],144:[0,21],145:[0,21],146:[0,21],147:[0,21],148:[0,21],149:[0,21],150:[0,21],151:[0,21],152:[0,21],153:[0,21],154:[5,21],175:57,176:[5,21],177:[5,21],178:5,179:5,180:5,181:5,182:5,183:5,184:5,185:185,188:[5,21],189:[5,21],190:5,191:75,192:78,193:78,194:75,195:80,196:75,198:[0,21],200:5,201:[0,21],207:[5,21],208:[0,21],209:5,210:[0,21],211:[5,21],212:[5,21],213:5,214:5,215:5,216:5,217:5,218:5,219:5},{75:21,78:21,79:21,80:21,81:21,83:21,84:21,85:21,86:21,87:21,88:21,89:21,90:21,91:21,92:21,93:21,94:21,95:21,96:21,97:[21,61],98:21,105:[21,61,68],106:[21,61,68],111:21,112:21,113:21,114:21,115:21,116:[21,61],117:[21,61],118:21,120:21,121:21,122:21,124:57,125:58,133:21,134:21,135:21,136:21,137:137,138:21,139:21,140:21,141:141,142:21,143:143,144:21,145:21,146:21,147:147,148:21,149:21,150:21,151:21,152:21,153:21,154:154,175:57,176:58,177:137,185:21,188:137,189:137,191:21,192:21,193:21,194:21,195:21,196:21,198:21,201:21,207:137,208:21,209:21,210:21,211:[21,61,68],212:[21,61,68],213:21},{75:21,78:21,79:21,80:21,81:21,83:21,84:21,85:21,86:21,87:21,88:21,89:21,90:21,91:21,92:21,93:21,94:21,95:21,96:21,97:21,98:21,105:21,106:21,111:21,112:21,113:21,114:21,115:21,116:21,117:21,118:21,120:21,121:21,122:21,124:21,125:21,133:21,134:21,135:21,136:21,137:21,138:21,139:21,140:21,141:21,142:21,143:21,144:21,145:21,146:21,147:21,148:21,149:21,150:21,151:21,152:21,153:21,154:21,175:21,176:21,177:21,185:21,188:21,189:21,191:21,192:21,193:21,194:21,195:21,196:21,198:21,201:21,207:21,208:21,209:21,210:21,211:21,212:21,213:21},{75:[0,21,75],78:[0,21,78],79:[0,21,79],80:[0,21,78,80],81:[0,21,78,81],83:[0,21,83],84:[0,21],85:[0,21],86:[0,21],87:[0,21],88:[0,21],89:[0,21],90:[0,21],91:[0,21],92:[0,21],93:[0,21],94:[0,21],95:[0,21],96:[0,21],97:[0,21],98:[0,21],99:[0,5],100:[0,5],101:[0,5],102:[0,5],103:[0,5],104:[0,5],105:[0,5,21],106:[0,5,21],107:[0,5],108:[0,5],109:[0,5],110:[0,5],111:[0,21],112:[0,21],113:[0,21],114:[0,21],115:[0,21],116:[0,21,116],117:[0,21,117],118:[0,21],120:[0,21],121:[0,21],122:[0,21],123:[0,5],124:[0,21,57],125:[0,21],126:[0,5],127:[0,5],128:[0,5],133:[0,21],134:[0,21],135:[0,21],136:[0,5,21],137:[0,5,21],138:[0,21],139:[0,21],140:[0,21],141:[0,21],142:[0,21],143:[0,21],144:[0,21],145:[0,21],146:[0,21],147:[0,21],148:[0,21],149:[0,21],150:[0,21],151:[0,21],152:[0,21],153:[0,21],154:[0,5,21],175:[0,5,21,57],176:[0,5,21],177:[0,5,21],178:[0,5],179:[0,5],180:[0,5],181:[0,5],182:[0,5],183:[0,5],184:[0,5],185:[0,21,185],188:[0,5,21],189:[0,5,21],190:[0,5],191:[0,21,75],192:[0,21,78],193:[0,21,78],194:[0,21,75],195:[0,21,78,80],196:[0,21,75],198:[0,21],200:[0,5],201:[0,21],207:[0,5,21],208:[0,21],209:[0,21,5],210:[0,21],211:[0,5,21],212:[0,5,21],213:[0,21,5],214:[0,5],215:[0,5],216:[0,5],217:[0,5],218:[0,5],219:[0,5]},{75:21,78:21,79:21,80:21,81:21,83:21,84:21,85:21,86:21,87:21,88:21,89:21,90:21,91:21,92:21,93:21,94:21,95:21,96:21,97:21,98:21,105:21,106:21,111:21,112:21,113:21,114:21,115:21,116:21,117:21,118:21,120:21,121:21,122:21,124:21,125:21,133:21,134:21,135:21,136:21,137:21,138:21,139:21,140:21,141:21,142:21,143:21,144:21,145:21,146:21,147:21,148:21,149:21,150:21,151:21,152:21,153:21,154:21,175:21,176:21,177:21,185:21,188:21,189:21,191:21,192:21,193:21,194:21,195:21,196:21,198:21,201:21,207:21,208:21,209:21,210:21,211:21,212:21,213:21},{75:12,78:12,79:12,80:12,81:12,82:82,83:12,85:37,86:37,87:12,88:37,89:37,90:37,91:37,92:37,93:37,94:12,95:12,97:12,99:12,100:12,101:12,102:12,103:12,104:12,105:12,106:12,107:12,108:12,109:12,110:12,111:12,112:12,113:12,115:12,117:12,119:12,120:12,121:12,122:12,123:12,124:12,125:12,126:12,127:12,128:12,129:12,130:12,131:12,132:12,133:12,148:12,149:12,150:12,151:12,152:12,153:12,166:12,167:12,171:12,172:12,173:12,178:12,179:12,180:12,181:12,182:12,183:12,184:12,185:12,186:12,187:12,190:12,191:12,192:12,193:12,194:12,195:12,196:12,198:12,201:12,204:12,205:12,206:12,208:12,209:12,210:12,211:12,212:12,213:12,214:12,215:12,216:12,217:12,218:12,219:12,220:12},{75:11,78:11,79:11,80:11,81:11,82:11,87:11,97:11,99:11,100:11,101:11,102:11,103:11,104:11,105:11,106:11,107:11,108:11,109:11,110:11,111:11,112:11,113:11,115:11,116:11,117:11,119:11,120:11,121:11,122:11,123:11,124:11,125:11,126:11,127:11,128:11,129:11,130:11,131:11,132:11,133:11,148:11,149:11,150:11,151:11,152:11,153:11,155:11,156:11,157:11,158:11,159:11,160:11,161:11,162:11,163:11,164:11,165:11,166:11,167:11,168:11,169:11,170:11,171:11,172:11,174:11,178:11,179:11,180:11,181:11,182:11,183:11,184:11,186:11,187:11,190:11,191:11,192:11,193:11,194:11,195:11,196:11,198:11,201:11,205:11,206:11,208:11,209:11,210:11,211:11,212:11,213:11,214:11,215:11,216:11,217:11,218:11,219:11},{75:11,78:11,79:11,80:11,81:11,82:82,87:11,97:11,99:11,100:11,101:11,102:11,103:11,104:11,105:11,106:11,107:11,108:11,109:11,110:11,111:11,112:11,113:11,115:11,116:11,117:11,119:11,120:11,121:11,122:11,123:11,124:11,125:11,126:11,127:11,128:11,129:11,130:11,131:11,132:11,133:11,148:11,149:11,150:11,151:11,152:11,153:11,155:11,156:11,157:11,158:11,159:11,160:11,161:11,162:11,163:11,164:11,165:11,166:11,167:11,168:11,169:11,170:11,171:11,172:11,174:11,178:11,179:11,180:11,181:11,182:11,183:11,184:11,186:11,187:11,190:11,191:11,192:11,193:11,194:11,195:11,196:11,198:11,201:11,205:11,206:11,208:11,209:11,210:11,211:11,212:11,213:11,214:11,215:11,216:11,217:11,218:11,219:11},{75:11,78:11,79:11,80:11,81:11,82:82,87:11,97:11,99:11,100:11,101:11,102:11,103:11,104:11,105:11,106:11,107:11,108:11,109:11,110:11,111:11,112:11,113:11,115:11,116:11,117:11,119:11,120:11,121:11,122:11,123:11,124:11,125:11,126:11,127:11,128:11,129:11,130:11,131:11,132:11,133:11,148:11,149:11,150:11,151:11,152:11,153:11,155:11,156:11,157:11,158:11,159:11,160:11,161:11,162:11,163:11,164:11,165:11,166:11,167:11,168:11,169:11,170:11,171:11,172:11,174:11,178:11,179:11,180:11,181:11,182:11,183:11,184:11,186:11,187:11,190:11,191:11,192:11,193:11,194:11,195:11,196:11,198:11,201:11,205:11,206:11,208:11,209:11,210:11,211:11,212:11,213:11,214:11,215:11,216:11,217:11,218:11,219:11},{75:11,78:11,79:11,80:11,81:11,82:11,87:11,97:11,99:11,100:11,101:11,102:11,103:11,104:11,105:11,106:11,107:11,108:11,109:11,110:11,111:11,112:11,113:11,115:11,116:11,117:11,119:11,120:11,121:11,122:11,123:11,124:11,125:11,126:11,127:11,128:11,129:11,130:11,131:11,132:11,133:11,148:11,149:11,150:11,151:11,152:11,153:11,155:11,156:11,157:11,158:11,159:11,160:11,161:11,162:11,163:11,164:11,165:11,166:11,167:11,168:11,169:11,170:11,171:11,172:11,174:11,178:11,179:11,180:11,181:11,182:11,183:11,184:11,186:11,187:11,190:11,191:11,192:11,193:11,194:11,195:11,196:11,198:11,201:11,205:11,206:11,208:11,209:11,210:11,211:11,212:11,213:11,214:11,215:11,216:11,217:11,218:11,219:11},{75:11,78:11,79:11,80:11,81:11,82:82,87:11,97:11,99:11,100:11,101:11,102:11,103:11,104:11,105:11,106:11,107:11,108:11,109:11,110:11,111:11,112:11,113:11,115:11,116:11,117:11,119:11,120:11,121:11,122:11,123:11,124:11,125:11,126:11,127:11,128:11,129:11,130:11,131:11,132:11,133:11,148:11,149:11,150:11,151:11,152:11,153:11,155:11,156:11,157:11,158:11,159:11,160:11,161:11,162:11,163:11,164:11,165:11,166:11,167:11,168:11,169:11,170:11,171:11,172:11,174:11,178:11,179:11,180:11,181:11,182:11,183:11,184:11,186:11,187:11,190:11,191:11,192:11,193:11,194:11,195:11,196:11,198:11,201:11,205:11,206:11,208:11,209:11,210:11,211:11,212:11,213:11,214:11,215:11,216:11,217:11,218:11,219:11},{75:11,78:11,79:11,80:11,81:11,82:11,87:11,97:11,99:11,100:11,101:11,102:11,103:11,104:11,105:11,106:11,107:11,108:11,109:11,110:11,111:11,112:11,113:11,115:11,116:11,117:11,119:11,120:11,121:11,122:11,123:11,124:11,125:11,126:11,127:11,128:11,129:11,130:11,131:11,132:11,133:11,148:11,149:11,150:11,151:11,152:11,153:11,155:11,156:11,157:11,158:11,159:11,160:11,161:11,162:11,163:11,164:11,165:11,166:11,167:11,168:11,169:11,170:11,171:11,172:11,174:11,178:11,179:11,180:11,181:11,182:11,183:11,184:11,186:11,187:11,190:11,191:11,192:11,193:11,194:11,195:11,196:11,198:11,201:11,205:11,206:11,208:11,209:11,210:11,211:11,212:11,213:11,214:11,215:11,216:11,217:11,218:11,219:11},{75:11,78:11,79:11,80:11,81:11,82:11,87:11,97:11,99:11,100:11,101:11,102:11,103:11,104:11,105:11,106:11,107:11,108:11,109:11,110:11,111:11,112:11,113:11,115:11,116:11,117:11,119:11,120:11,121:11,122:11,123:11,124:11,125:11,126:11,127:11,128:11,129:11,130:11,131:11,132:11,133:11,148:11,149:11,150:11,151:11,152:11,153:11,155:11,156:11,157:11,158:11,159:11,160:11,161:11,162:11,163:11,164:11,165:11,166:11,167:11,168:11,169:11,170:11,171:11,172:11,174:11,178:11,179:11,180:11,181:11,182:11,183:11,184:11,186:11,187:11,190:11,191:11,192:11,193:11,194:11,195:11,196:11,198:11,201:11,205:11,206:11,208:11,209:11,210:11,211:11,212:11,213:11,214:11,215:11,216:11,217:11,218:11,219:11},{75:13,78:13,79:13,80:13,81:13,82:82,87:13,97:13,99:13,100:13,101:13,102:13,103:13,104:13,105:13,106:13,107:13,108:13,109:13,110:13,111:13,112:13,113:13,115:13,116:13,119:13,120:13,121:13,122:13,123:13,124:13,125:13,126:13,127:13,128:13,129:13,130:13,131:13,132:13,133:13,148:13,149:13,150:13,151:13,152:13,153:13,155:13,156:13,157:13,158:13,159:13,160:13,161:13,162:13,163:13,164:13,165:13,166:13,167:13,168:13,169:13,170:13,171:13,172:13,174:13,178:13,179:13,180:13,181:13,182:13,183:13,184:13,186:13,187:13,190:13,191:13,192:13,193:13,194:13,195:13,196:13,198:13,201:13,205:13,206:13,208:13,209:13,210:13,211:13,212:13,213:13,214:13,215:13,216:13,217:13,218:13,219:13},{75:25,78:25,79:25,80:25,81:25,83:25,84:25,85:25,86:25,87:25,88:25,89:25,90:25,91:25,92:25,93:25,94:25,95:25,96:25,97:25,98:25,99:25,100:25,101:25,102:25,103:25,104:25,105:25,106:25,107:25,108:25,109:25,110:25,111:25,112:25,113:25,114:25,115:25,116:25,117:25,118:25,120:25,121:25,122:25,123:25,124:25,125:25,126:25,127:25,128:25,132:25,133:25,134:25,135:25,136:25,137:25,138:25,139:25,140:25,141:25,142:25,143:25,144:25,145:25,146:25,147:25,148:25,149:25,150:25,151:25,152:25,153:25,154:25,155:25,156:25,157:25,158:25,159:25,160:25,161:25,162:25,163:25,164:25,165:25,166:25,167:25,168:25,169:25,170:25,171:25,172:25,173:25,174:25,175:25,176:25,177:25,178:25,179:25,180:25,181:25,182:25,183:25,184:25,185:25,186:25,187:25,188:25,189:25,190:25,191:25,192:25,193:25,194:25,195:25,196:25,197:25,198:25,199:25,201:25,202:25,203:25,204:25,205:25,206:25,207:25,208:25,209:25,210:25,211:25,212:25,213:25,214:25,215:25,216:25,217:25,218:25,219:25,220:25},{75:18,78:18,79:18,80:18,81:18,83:18,84:18,85:18,86:18,87:18,88:18,89:18,90:18,91:18,92:18,93:18,94:18,96:18,97:18,98:18,99:18,100:18,101:18,102:18,103:18,104:18,105:18,106:18,107:18,108:18,109:18,110:18,111:18,112:18,113:18,114:18,115:18,116:18,117:18,118:18,119:119,120:18,121:18,122:18,123:18,124:18,125:18,126:18,127:18,128:18,129:18,130:18,131:18,132:18,134:18,135:18,136:18,137:18,138:18,139:18,140:18,141:18,142:18,143:18,144:18,145:18,146:18,147:18,154:18,155:18,156:18,157:18,158:18,159:18,160:18,161:18,162:18,163:18,164:18,165:18,166:18,167:18,168:18,169:18,170:18,171:18,172:18,173:18,174:18,175:18,176:18,177:18,178:18,179:18,180:18,181:18,182:18,183:18,184:18,185:18,186:18,187:18,188:18,189:18,190:18,191:18,192:18,193:18,194:18,195:18,196:18,197:18,198:18,199:18,201:18,202:18,203:18,204:18,205:18,206:18,207:18,208:18,209:18,210:18,211:18,212:18,213:18,214:18,215:18,216:18,217:18,218:18,219:18,220:18},{75:18,78:18,79:18,80:18,81:18,83:18,84:18,85:18,86:18,87:18,88:18,89:18,90:18,91:18,92:18,93:18,94:18,96:18,97:18,98:18,99:18,100:18,101:18,102:18,103:18,104:18,105:18,106:18,107:18,108:18,109:18,110:18,111:18,112:18,113:18,114:18,115:18,116:18,117:18,118:18,119:119,120:18,121:18,122:18,123:18,124:18,125:18,126:18,127:18,128:18,129:18,130:18,131:18,132:18,134:18,135:18,136:18,137:18,138:18,139:18,140:18,141:18,142:18,143:18,144:18,145:18,146:18,147:18,154:18,155:18,156:18,157:18,158:18,159:18,160:18,161:18,162:18,163:18,164:18,165:18,166:18,167:18,168:18,169:18,170:18,171:18,172:18,173:18,174:18,175:18,176:18,177:18,178:18,179:18,180:18,181:18,182:18,183:18,184:18,185:18,186:18,187:18,188:18,189:18,190:18,191:18,192:18,193:18,194:18,195:18,196:18,197:18,198:18,199:18,201:18,202:18,203:18,204:18,205:18,206:18,207:18,208:18,209:18,210:18,211:18,212:18,213:18,214:18,215:18,216:18,217:18,218:18,219:18,220:18},{75:18,78:18,79:18,80:18,81:18,83:18,84:18,85:18,86:18,87:18,88:18,89:18,90:18,91:18,92:18,93:18,94:18,96:18,97:18,98:18,99:18,100:18,101:18,102:18,103:18,104:18,105:18,106:18,107:18,108:18,109:18,110:18,111:18,112:18,113:18,114:18,115:18,116:18,117:18,118:18,120:18,121:18,122:18,123:18,124:18,125:18,126:18,127:18,128:18,129:18,130:18,131:18,132:18,134:18,135:18,136:18,137:18,138:18,139:18,140:18,141:18,142:18,143:18,144:18,145:18,146:18,147:18,154:18,155:18,156:18,157:18,158:18,159:18,160:18,161:18,162:18,163:18,164:18,165:18,166:18,167:18,168:18,169:18,170:18,171:18,172:18,173:18,174:18,175:18,176:18,177:18,178:18,179:18,180:18,181:18,182:18,183:18,184:18,185:18,186:18,187:18,188:18,189:18,190:18,191:18,192:18,193:18,194:18,195:18,196:18,197:18,198:18,199:18,201:18,202:18,203:18,204:18,205:18,206:18,207:18,208:18,209:18,210:18,211:18,212:18,213:18,214:18,215:18,216:18,217:18,218:18,219:18,220:18},{75:18,78:18,79:18,80:18,81:18,83:18,84:18,85:18,86:18,87:18,88:18,89:18,90:18,91:18,92:18,93:18,94:18,96:18,97:18,98:18,99:18,100:18,101:18,102:18,103:18,104:18,105:18,106:18,107:18,108:18,109:18,110:18,111:18,112:18,113:18,114:18,115:18,116:18,117:18,118:18,120:18,121:18,122:18,123:18,124:18,125:18,126:18,127:18,128:18,129:18,130:18,131:18,132:18,134:18,135:18,136:18,137:18,138:18,139:18,140:18,141:18,142:18,143:18,144:18,145:18,146:18,147:18,154:18,155:18,156:18,157:18,158:18,159:18,160:18,161:18,162:18,163:18,164:18,165:18,166:18,167:18,168:18,169:18,170:18,171:18,172:18,173:18,174:18,175:18,176:18,177:18,178:18,179:18,180:18,181:18,182:18,183:18,184:18,185:18,186:18,187:18,188:18,189:18,190:18,191:18,192:18,193:18,194:18,195:18,196:18,197:18,198:18,199:18,201:18,202:18,203:18,204:18,205:18,206:18,207:18,208:18,209:18,210:18,211:18,212:18,213:18,214:18,215:18,216:18,217:18,218:18,219:18,220:18},{75:18,78:18,79:18,80:18,81:18,83:18,84:18,85:18,86:18,87:18,88:18,89:18,90:18,91:18,92:18,93:18,94:18,96:18,97:18,98:18,99:18,100:18,101:18,102:18,103:18,104:18,105:18,106:18,107:18,108:18,109:18,110:18,111:18,112:18,113:18,114:18,115:18,116:18,117:18,118:18,120:18,121:18,122:18,123:18,124:18,125:18,126:18,127:18,128:18,129:18,130:18,131:18,132:18,134:18,135:18,136:18,137:18,138:18,139:18,140:18,141:18,142:18,143:18,144:18,145:18,146:18,147:18,154:18,155:18,156:18,157:18,158:18,159:18,160:18,161:18,162:18,163:18,164:18,165:18,166:18,167:18,168:18,169:18,170:18,171:18,172:18,173:18,174:18,175:18,176:18,177:18,178:18,179:18,180:18,181:18,182:18,183:18,184:18,185:18,186:18,187:18,188:18,189:18,190:18,191:18,192:18,193:18,194:18,195:18,196:18,197:18,198:18,199:18,201:18,202:18,203:18,204:18,205:18,206:18,207:18,208:18,209:18,210:18,211:18,212:18,213:18,214:18,215:18,216:18,217:18,218:18,219:18,220:18},{75:18,78:18,79:18,80:18,81:18,83:18,84:18,85:18,86:18,87:18,88:18,89:18,90:18,91:18,92:18,93:18,94:18,96:18,97:18,98:18,99:18,100:18,101:18,102:18,103:18,104:18,105:18,106:18,107:18,108:18,109:18,110:18,111:18,112:18,113:18,114:18,115:18,116:18,117:18,118:18,120:18,121:18,122:18,123:18,124:18,125:18,126:18,127:18,128:18,129:18,130:18,131:18,132:18,134:18,135:18,136:18,137:18,138:18,139:18,140:18,141:18,142:18,143:18,144:18,145:18,146:18,147:18,154:18,155:18,156:18,157:18,158:18,159:18,160:18,161:18,162:18,163:18,164:18,165:18,166:18,167:18,168:18,169:18,170:18,171:18,172:18,173:18,174:18,175:18,176:18,177:18,178:18,179:18,180:18,181:18,182:18,183:18,184:18,185:18,186:18,187:18,188:18,189:18,190:18,191:18,192:18,193:18,194:18,195:18,196:18,197:18,198:18,199:18,201:18,202:18,203:18,204:18,205:18,206:18,207:18,208:18,209:18,210:18,211:18,212:18,213:18,214:18,215:18,216:18,217:18,218:18,219:18,220:18},{75:[0,18,17,26],78:[0,18,26,17],79:[0,18,26],80:[0,18,26,17],81:[0,18,26,17],82:[0,82],83:[0,18,26],84:[0,18],85:[0,18],86:[0,18],87:[0,18,26],88:[0,18],89:[0,18],90:[0,18],91:[0,18],92:[0,18],93:[0,18],94:[0,18,38],95:[0,38],96:[0,18],97:[0,18,26],98:[0,18],99:[0,18,26,14],100:[0,18,26,14],101:[0,18,26,14],102:[0,18,26,14],103:[0,18,26,14],104:[0,18,26,14],105:[0,18,26,14],106:[0,18,26,14],107:[0,18,26,14],108:[0,18,26,14],109:[0,18,26,14],110:[0,18,26,14],111:[0,17,18,26],112:[0,17,18,26],113:[0,18,26],114:[0,18,26],115:[0,18,26],116:[0,18,26],117:[0,18,26],118:[0,18,26,118],119:[0,26],120:[0,18,26],121:[0,18,26],122:[0,18,26],123:[0,18,26,14],124:[0,18,26],125:[0,18,26],126:[0,18,26,14,126],127:[0,18,26,14],128:[0,18,26,14],129:[0,18,26],130:[0,18,26],131:[0,18,26],132:[0,18,26],133:[0,26],134:[0,18],135:[0,18],136:[0,18],137:[0,18],138:[0,18],139:[0,18],140:[0,18],141:[0,18],142:[0,18],143:[0,18],144:[0,18],145:[0,18],146:[0,18],147:[0,18],148:[0,26],149:[0,26],150:[0,26],151:[0,26],152:[0,26],153:[0,26],154:[0,18],155:[0,18],156:[0,18],157:[0,18],158:[0,18],159:[0,18],160:[0,18],161:[0,18],162:[0,18],163:[0,18],164:[0,18],165:[0,18],166:[0,18,26],167:[0,18,26],168:[0,18],169:[0,18],170:[0,18],171:[0,18,26],172:[0,18,26],173:[0,18,26],174:[0,18],175:[0,18],176:[0,18],177:[0,18],178:[0,18,26,14],179:[0,18,26,14],180:[0,18,26,14],181:[0,18,26,14],182:[0,18,26,14],183:[0,18,26,14],184:[0,18,26,14],185:[0,18,26],186:[0,18,26],187:[0,18,26],188:[0,18],189:[0,18],190:[0,18,26,14],191:[0,18,17,26],192:[0,18,26,17],193:[0,18,26,17],194:[0,18,17,26],195:[0,18,26,17],196:[0,18,17,26],197:[0,18],198:[0,18,26,17],199:[0,18],200:[0,14],201:[0,18,26],202:[0,18],203:[0,18],204:[0,18],205:[0,18,26,17],206:[0,18,26,17],207:[0,18,17],208:[0,18,26,17],209:[0,18,26],210:[0,18,26],211:[0,18,26,14],212:[0,18,26,14],213:[0,18,26],214:[0,18,26,14],215:[0,18,26,14],216:[0,18,26,14],217:[0,18,26,14],218:[0,18,26,14],219:[0,18,26,14],220:[0,18,26,17]},{75:[0,18,17,26],78:[0,18,26,17],79:[0,18,26],80:[0,18,26,17],81:[0,18,26,17],82:[0,82],83:[0,18,26],84:[0,18],85:[0,18],86:[0,18],87:[0,18,26],88:[0,18],89:[0,18],90:[0,18],91:[0,18],92:[0,18],93:[0,18],94:[0,18,38],95:[0,38],96:[0,18],97:[0,18,26],98:[0,18],99:[0,18,26,14],100:[0,18,26,14],101:[0,18,26,14],102:[0,18,26,14],103:[0,18,26,14],104:[0,18,26,14],105:[0,18,26,14],106:[0,18,26,14],107:[0,18,26,14],108:[0,18,26,14],109:[0,18,26,14],110:[0,18,26,14],111:[0,17,18,26],112:[0,17,18,26],113:[0,18,26],114:[0,18,26],115:[0,18,26],116:[0,18,26],117:[0,18,26],118:[0,18,26,118],119:[0,26],120:[0,18,26],121:[0,18,26],122:[0,18,26],123:[0,18,26,14],124:[0,18,26],125:[0,18,26],126:[0,18,26,14],127:[0,18,26,14],128:[0,18,26,14],129:[0,18,26],130:[0,18,26],131:[0,18,26],132:[0,18,26],133:[0,26],134:[0,18],135:[0,18],136:[0,18],137:[0,18],138:[0,18],139:[0,18],140:[0,18],141:[0,18],142:[0,18],143:[0,18],144:[0,18],145:[0,18],146:[0,18],147:[0,18],148:[0,26],149:[0,26],150:[0,26],151:[0,26],152:[0,26],153:[0,26],154:[0,18],155:[0,18],156:[0,18],157:[0,18],158:[0,18],159:[0,18],160:[0,18],161:[0,18],162:[0,18],163:[0,18],164:[0,18],165:[0,18],166:[0,18,26],167:[0,18,26],168:[0,18],169:[0,18],170:[0,18],171:[0,18,26],172:[0,18,26],173:[0,18,26],174:[0,18],175:[0,18],176:[0,18],177:[0,18],178:[0,18,26,14],179:[0,18,26,14],180:[0,18,26,14],181:[0,18,26,14],182:[0,18,26,14],183:[0,18,26,14],184:[0,18,26,14],185:[0,18,26],186:[0,18,26],187:[0,18,26],188:[0,18],189:[0,18],190:[0,18,26,14],191:[0,18,17,26],192:[0,18,26,17],193:[0,18,26,17],194:[0,18,17,26],195:[0,18,26,17],196:[0,18,17,26],197:[0,18],198:[0,18,26,17],199:[0,18],200:[0,14],201:[0,18,26],202:[0,18],203:[0,18],204:[0,18],205:[0,18,26,17],206:[0,18,26,17],207:[0,18,17],208:[0,18,26,17],209:[0,18,26],210:[0,18,26],211:[0,18,26,14],212:[0,18,26,14],213:[0,18,26],214:[0,18,26,14],215:[0,18,26,14],216:[0,18,26,14],217:[0,18,26,14],218:[0,18,26,14],219:[0,18,26,14],220:[0,18,26,17]},{75:75,78:15,79:15,80:15,81:15,82:15,83:15,84:15,85:15,86:15,88:15,89:15,90:15,91:15,92:15,93:15,94:15,95:15,98:15,99:15,100:15,101:15,102:15,103:15,104:15,105:15,106:15,107:15,108:15,109:15,110:15,111:15,112:15,113:15,114:15,116:15,118:15,119:15,120:15,121:15,122:15,123:15,124:15,125:15,126:65,127:65,128:15,132:15,133:15,134:15,135:15,136:15,137:15,138:15,139:15,140:15,141:15,142:15,143:15,144:15,145:15,146:15,147:15,148:15,149:15,150:15,151:15,152:15,153:15,154:15,155:15,156:15,157:15,158:15,159:15,160:15,161:15,162:15,163:15,164:15,165:15,166:15,167:15,168:15,169:15,170:15,171:15,172:15,173:15,174:15,175:15,176:15,177:15,178:15,179:15,180:15,181:15,182:15,183:15,184:15,185:15,186:15,187:15,188:15,189:15,190:15,191:75,192:15,193:15,194:75,195:15,196:75,197:15,198:15,199:15,200:15,202:15,203:15,204:15,205:15,206:15,207:15,211:15,212:15,214:15,215:15,216:15,217:15,218:15,219:15,220:15},{75:75,78:78,79:15,80:78,81:78,82:15,83:15,84:15,85:15,86:15,88:15,89:15,90:15,91:15,92:15,93:15,94:15,95:15,98:15,99:29,100:29,101:29,102:29,103:29,104:29,105:29,106:29,107:29,108:29,109:29,110:29,111:111,112:112,113:15,114:15,116:15,118:15,119:15,120:15,121:15,122:15,123:29,124:15,125:15,126:65,127:65,128:29,132:15,133:15,134:15,135:15,136:15,137:15,138:15,139:15,140:15,141:15,142:15,143:15,144:15,145:15,146:15,147:15,148:15,149:15,150:15,151:15,152:15,153:15,154:15,155:15,156:15,157:15,158:15,159:15,160:15,161:15,162:15,163:15,164:15,165:15,166:15,167:15,168:15,169:15,170:15,171:15,172:15,173:15,174:15,175:15,176:15,177:15,178:29,179:29,180:29,181:29,182:29,183:29,184:29,185:15,186:15,187:15,188:15,189:15,190:29,191:75,192:78,193:78,194:75,195:78,196:75,197:15,198:15,199:15,200:29,202:15,203:15,204:15,205:15,206:15,207:15,211:29,212:29,214:29,215:29,216:29,217:29,218:29,219:29,220:15},{75:17,78:17,79:15,80:17,81:17,82:15,83:15,84:15,85:15,86:15,88:15,89:15,90:15,91:15,92:15,93:15,94:15,95:15,98:15,99:29,100:29,101:29,102:29,103:29,104:29,105:29,106:29,107:29,108:29,109:29,110:29,111:17,112:17,113:15,114:15,116:15,118:15,119:15,120:15,121:15,122:15,123:29,124:15,125:15,126:29,127:29,128:29,132:15,133:15,134:15,135:15,136:15,137:15,138:15,139:15,140:15,141:15,142:15,143:15,144:15,145:15,146:15,147:15,148:15,149:15,150:15,151:15,152:15,153:15,154:15,155:15,156:15,157:15,158:15,159:15,160:15,161:15,162:15,163:15,164:15,165:15,166:15,167:15,168:15,169:15,170:15,171:15,172:15,173:15,174:15,175:15,176:15,177:15,178:29,179:29,180:29,181:29,182:29,183:29,184:29,185:15,186:15,187:15,188:15,189:15,190:29,191:17,192:17,193:17,194:17,195:17,196:17,197:15,198:17,199:15,200:29,202:15,203:15,204:15,205:15,206:15,207:17,208:17,211:29,212:29,214:29,215:29,216:29,217:29,218:29,219:29,220:17},{75:75,78:15,79:15,80:15,81:15,82:15,83:15,84:15,85:15,86:15,88:15,89:15,90:15,91:15,92:15,93:15,94:15,95:15,98:15,99:15,100:15,101:15,102:15,103:15,104:15,105:15,106:15,107:15,108:15,109:15,110:15,111:15,112:15,113:15,114:15,116:15,118:15,119:15,120:15,121:15,122:15,123:15,124:15,125:15,126:15,127:15,128:15,132:15,133:15,134:15,135:15,136:15,137:15,138:15,139:15,140:15,141:15,142:15,143:15,144:15,145:15,146:15,147:15,148:15,149:15,150:15,151:15,152:15,153:15,154:15,155:15,156:15,157:15,158:15,159:15,160:15,161:15,162:15,163:15,164:15,165:15,166:15,167:15,168:15,169:15,170:15,171:15,172:15,173:15,174:15,175:15,176:15,177:15,178:15,179:15,180:15,181:15,182:15,183:15,184:15,185:15,186:15,187:15,188:15,189:15,190:15,191:75,192:15,193:15,194:75,195:15,196:75,197:15,198:15,199:15,200:15,202:15,203:15,204:15,205:15,206:15,207:15,211:15,212:15,214:15,215:15,216:15,217:15,218:15,219:15,220:15},{75:15,78:15,79:15,80:15,81:15,82:15,83:15,84:15,85:15,86:15,88:15,89:15,90:15,91:15,92:15,93:15,94:15,95:15,98:15,99:15,100:15,101:15,102:15,103:15,104:15,105:15,106:15,107:15,108:15,109:15,110:15,111:15,112:15,113:15,114:15,116:15,118:15,119:15,120:15,121:15,122:15,123:15,124:15,125:15,126:65,127:65,128:15,132:15,133:15,134:15,135:15,136:15,137:15,138:15,139:15,140:15,141:15,142:15,143:15,144:15,145:15,146:15,147:15,148:15,149:15,150:15,151:15,152:15,153:15,154:15,155:15,156:15,157:15,158:15,159:15,160:15,161:15,162:15,163:15,164:15,165:15,166:15,167:15,168:15,169:15,170:15,171:15,172:15,173:15,174:15,175:15,176:15,177:15,178:15,179:15,180:15,181:15,182:15,183:15,184:15,185:15,186:15,187:15,188:15,189:15,190:15,191:15,192:15,193:15,194:15,195:15,196:15,197:15,198:15,199:15,200:15,202:15,203:15,204:15,205:15,206:15,207:15,211:15,212:15,214:15,215:15,216:15,217:15,218:15,219:15,220:15},{75:15,78:15,79:15,80:15,81:15,82:15,83:15,84:15,85:15,86:15,88:15,89:15,90:15,91:15,92:15,93:15,94:15,95:15,98:15,99:99,100:15,101:15,102:15,103:15,104:39,105:39,106:39,107:39,108:15,109:15,110:15,111:15,112:15,113:15,114:15,116:15,118:15,119:15,120:15,121:15,122:15,123:39,124:15,125:15,126:65,127:65,128:128,132:15,133:15,134:15,135:15,136:15,137:15,138:15,139:15,140:15,141:15,142:15,143:15,144:15,145:15,146:15,147:15,148:15,149:15,150:15,151:15,152:15,153:15,154:15,155:15,156:15,157:15,158:15,159:15,160:15,161:15,162:15,163:15,164:15,165:15,166:15,167:15,168:15,169:15,170:15,171:15,172:15,173:15,174:15,175:15,176:15,177:15,178:15,179:15,180:15,181:15,182:15,183:15,184:15,185:15,186:15,187:15,188:15,189:15,190:39,191:15,192:15,193:15,194:15,195:15,196:15,197:15,198:15,199:15,200:15,202:15,203:15,204:15,205:15,206:15,207:15,211:39,212:39,214:39,215:39,216:39,217:39,218:39,219:39,220:15},{75:15,78:15,79:15,80:15,81:15,82:15,83:15,84:15,85:15,86:15,88:15,89:15,90:15,91:15,92:15,93:15,94:15,95:15,98:15,99:15,100:15,101:15,102:15,103:15,104:15,105:15,106:15,107:15,108:15,109:15,110:15,111:15,112:15,113:15,114:15,116:15,118:15,119:15,120:15,121:15,122:15,123:15,124:15,125:15,126:15,127:15,128:15,132:15,133:15,134:15,135:15,136:15,137:[15,60],138:15,139:15,140:15,141:15,142:15,143:15,144:15,145:15,146:15,147:15,148:15,149:15,150:15,151:15,152:15,153:15,154:15,155:15,156:15,157:15,158:15,159:15,160:15,161:15,162:15,163:15,164:15,165:15,166:15,167:15,168:15,169:15,170:15,171:15,172:15,173:15,174:15,175:[15,60],176:[15,60],177:[15,60],178:15,179:15,180:15,181:15,182:15,183:15,184:15,185:15,186:186,187:186,188:[15,60],189:[15,60],190:15,191:15,192:192,193:15,194:15,195:15,196:15,197:15,198:15,199:15,200:15,202:15,203:15,204:15,205:205,206:205,207:[15,60],211:15,212:15,214:15,215:15,216:15,217:15,218:15,219:15,220:15},{75:15,78:15,79:15,80:15,81:15,82:15,83:15,84:15,85:15,86:15,88:15,89:15,90:15,91:15,92:15,93:15,94:15,95:15,98:15,99:15,100:15,101:15,102:15,103:15,104:15,105:15,106:15,107:15,108:15,109:15,110:15,111:15,112:15,113:15,114:15,116:15,118:15,119:15,120:15,121:15,122:15,123:15,124:15,125:15,126:15,127:15,128:15,132:15,133:15,134:15,135:15,136:15,137:15,138:15,139:15,140:15,141:15,142:15,143:15,144:15,145:15,146:15,147:15,148:15,149:15,150:15,151:15,152:15,153:15,154:15,155:15,156:15,157:15,158:15,159:15,160:15,161:15,162:15,163:15,164:15,165:15,166:15,167:15,168:15,169:15,170:15,171:15,172:15,173:15,174:15,175:15,176:15,177:15,178:15,179:15,180:15,181:15,182:15,183:15,184:15,185:15,186:15,187:15,188:15,189:15,190:15,191:15,192:15,193:15,194:15,195:15,196:15,197:15,198:15,199:15,200:15,202:15,203:15,204:15,205:15,206:15,207:15,211:15,212:15,214:15,215:15,216:15,217:15,218:15,219:15,220:15},{75:15,78:15,79:15,80:15,81:15,82:15,83:15,84:15,85:15,86:15,88:15,89:15,90:15,91:15,92:15,
93:15,94:15,95:15,97:64,98:15,99:15,100:15,101:15,102:15,103:15,104:15,105:15,106:15,107:15,108:15,109:15,110:15,111:15,112:15,113:15,114:15,116:15,118:15,119:15,120:15,121:15,122:15,123:15,124:15,125:15,126:15,127:15,128:15,132:15,133:15,134:15,135:15,136:15,137:15,138:15,139:15,140:15,141:15,142:15,143:15,144:15,145:15,146:15,147:15,148:15,149:15,150:15,151:15,152:15,153:15,154:15,155:15,156:15,157:15,158:15,159:15,160:15,161:15,162:15,163:15,164:15,165:15,166:15,167:15,168:15,169:15,170:15,171:15,172:15,173:15,174:15,175:15,176:15,177:15,178:15,179:15,180:15,181:15,182:15,183:15,184:15,185:15,186:15,187:15,188:15,189:15,190:15,191:15,192:15,193:15,194:15,195:15,196:15,197:15,198:15,199:15,200:15,202:15,203:15,204:15,205:15,206:15,207:15,211:15,212:15,214:15,215:15,216:15,217:15,218:15,219:15,220:15},{75:15,78:15,79:15,80:15,81:15,82:15,83:15,84:15,85:15,86:15,88:15,89:15,90:15,91:15,92:15,93:15,94:15,95:15,98:15,99:15,100:15,101:15,102:15,103:15,104:15,105:15,106:15,107:15,108:15,109:15,110:15,111:15,112:15,113:15,114:15,116:15,118:15,119:15,120:15,121:15,122:15,123:15,124:15,125:15,126:15,127:15,128:15,132:15,133:15,134:15,135:15,136:15,137:15,138:15,139:15,140:15,141:15,142:15,143:15,144:15,145:15,146:15,147:15,148:15,149:15,150:15,151:15,152:15,153:15,154:15,155:15,156:15,157:15,158:15,159:15,160:15,161:15,162:15,163:15,164:15,165:15,166:15,167:15,168:15,169:15,170:15,171:15,172:15,173:15,174:15,175:15,176:15,177:15,178:15,179:15,180:15,181:15,182:15,183:15,184:15,185:15,186:15,187:15,188:15,189:15,190:15,191:15,192:15,193:15,194:15,195:15,196:15,197:15,198:15,199:15,200:15,202:15,203:15,204:15,205:15,206:15,207:15,211:15,212:15,214:15,215:15,216:15,217:15,218:15,219:15,220:15},{75:15,78:15,79:15,80:15,81:15,82:15,83:15,84:15,85:15,86:15,88:15,89:15,90:15,91:15,92:15,93:15,94:15,95:15,98:15,99:15,100:15,101:15,102:15,103:15,104:15,105:15,106:15,107:15,108:15,109:15,110:15,111:15,112:15,113:15,114:15,116:15,118:15,119:15,120:15,121:15,122:15,123:15,124:15,125:15,126:15,127:15,128:15,132:15,133:15,134:15,135:15,136:15,137:15,138:15,139:15,140:15,141:15,142:15,143:15,144:15,145:15,146:15,147:15,148:15,149:15,150:15,151:15,152:15,153:15,154:15,155:15,156:15,157:15,158:15,159:15,160:15,161:15,162:15,163:15,164:15,165:15,166:15,167:15,168:15,169:15,170:15,171:15,172:15,173:15,174:15,175:15,176:15,177:15,178:15,179:15,180:15,181:15,182:15,183:15,184:15,185:15,186:15,187:15,188:15,189:15,190:15,191:15,192:15,193:15,194:15,195:15,196:15,197:15,198:15,199:15,200:15,202:15,203:15,204:15,205:15,206:15,207:15,211:15,212:15,214:15,215:15,216:15,217:15,218:15,219:15,220:15},{75:75,78:78,79:15,80:78,81:78,82:15,83:15,84:15,85:15,86:15,88:15,89:15,90:15,91:15,92:15,93:15,94:15,95:15,98:15,99:15,100:15,101:15,102:15,103:15,104:39,105:39,106:39,107:39,108:15,109:15,110:15,111:15,112:15,113:15,114:15,116:15,118:9,119:15,120:15,121:15,122:15,123:39,124:15,125:15,126:15,127:15,128:15,132:15,133:15,134:15,135:15,136:15,137:[15,60],138:15,139:15,140:15,141:15,142:15,143:15,144:15,145:15,146:15,147:15,148:15,149:15,150:15,151:15,152:15,153:15,154:15,155:15,156:15,157:15,158:15,159:15,160:15,161:15,162:15,163:15,164:15,165:15,166:15,167:15,168:15,169:15,170:15,171:15,172:15,173:15,174:15,175:[15,60],176:[15,60],177:[15,60],178:15,179:15,180:15,181:15,182:15,183:15,184:15,185:15,186:15,187:15,188:[15,60],189:[15,60],190:39,191:75,192:78,193:78,194:75,195:78,196:75,197:15,198:15,199:15,200:15,202:15,203:15,204:15,205:205,206:205,207:[15,60],211:39,212:39,214:39,215:39,216:39,217:39,218:39,219:39,220:15},{75:15,78:15,79:15,80:15,81:15,82:15,83:15,84:15,85:15,86:15,88:15,89:15,90:15,91:15,92:15,93:15,94:15,95:15,98:15,99:15,100:15,101:15,102:15,103:15,104:15,105:15,106:15,107:15,108:15,109:15,110:15,111:15,112:15,113:15,114:15,116:15,118:15,119:15,120:15,121:15,122:15,123:15,124:15,125:15,126:15,127:15,128:15,132:15,133:15,134:15,135:15,136:15,137:15,138:15,139:15,140:15,141:15,142:15,143:15,144:15,145:15,146:15,147:15,148:15,149:15,150:15,151:15,152:15,153:15,154:15,155:15,156:15,157:15,158:15,159:15,160:15,161:15,162:15,163:15,164:15,165:15,166:15,167:15,168:15,169:15,170:15,171:15,172:15,173:15,174:15,175:15,176:15,177:15,178:15,179:15,180:15,181:15,182:15,183:15,184:15,185:15,186:15,187:15,188:15,189:15,190:15,191:15,192:15,193:15,194:15,195:15,196:15,197:15,198:15,199:15,200:15,202:15,203:15,204:15,205:15,206:15,207:15,211:15,212:15,214:15,215:15,216:15,217:15,218:15,219:15,220:15},{75:15,78:15,79:15,80:15,81:15,82:15,83:15,84:15,85:15,86:15,88:15,89:15,90:15,91:15,92:15,93:15,94:15,95:15,98:15,99:15,100:15,101:15,102:15,103:15,104:15,105:15,106:15,107:15,108:15,109:15,110:15,111:15,112:15,113:15,114:15,116:15,118:15,119:15,120:15,121:15,122:15,123:15,124:15,125:15,126:15,127:15,128:15,132:15,133:15,134:15,135:15,136:15,137:15,138:15,139:15,140:15,141:15,142:15,143:15,144:15,145:15,146:15,147:15,148:15,149:15,150:15,151:15,152:15,153:15,154:15,155:47,156:47,157:47,158:47,159:47,160:47,161:47,162:47,163:47,164:47,165:47,166:47,167:47,168:47,169:47,170:47,171:47,172:47,173:15,174:47,175:15,176:15,177:15,178:15,179:15,180:15,181:15,182:15,183:15,184:15,185:15,186:15,187:15,188:15,189:15,190:15,191:15,192:15,193:15,194:15,195:15,196:15,197:15,198:15,199:15,200:15,202:15,203:15,204:15,205:205,206:205,207:15,211:15,212:15,214:15,215:15,216:15,217:15,218:15,219:15,220:15},{75:75,78:78,80:78,81:78,111:17,112:17,191:75,192:78,193:78,194:75,195:78,196:75,198:17,205:17,206:17,207:17,208:17,220:17},{75:75,78:78,80:78,81:78,111:111,112:112,191:75,192:78,193:78,194:75,195:78,196:75,198:17,205:17,206:17,207:17,208:17,220:17},{75:17,78:17,80:17,81:17,111:17,112:17,191:17,192:17,193:17,194:17,195:17,196:17,198:17,205:17,206:17,207:17,208:17,220:17},{75:17,78:17,80:17,81:17,111:17,112:17,191:17,192:17,193:17,194:17,195:17,196:17,198:17,205:17,206:17,207:17,208:17,220:17},{75:30,78:30,80:30,81:30,83:30,84:30,86:30,87:30,88:30,89:30,90:30,91:30,92:30,93:30,94:30,95:30,115:30,117:30,121:30,122:30,155:30,156:30,157:30,158:30,159:30,160:30,161:30,162:30,163:30,164:30,165:30,166:30,167:30,168:30,169:30,170:30,171:30,172:30,173:30,174:30,185:30,186:30,187:30,191:30,192:30,193:30,194:30,195:30,196:30,198:30,201:30,205:30,206:30,208:30,209:30,210:30,213:30,220:30},{75:30,78:30,80:30,81:30,83:30,84:30,86:30,87:30,88:30,89:30,90:30,91:30,92:30,93:30,94:30,95:30,115:30,117:30,121:30,122:30,155:30,156:30,157:30,158:30,159:30,160:30,161:30,162:30,163:30,164:30,165:30,166:30,167:30,168:30,169:30,170:30,171:30,172:30,173:30,174:30,185:30,186:30,187:30,191:30,192:30,193:30,194:30,195:30,196:30,198:30,201:30,205:30,206:30,208:30,209:30,210:30,213:30,220:30},{75:66,78:66,80:66,81:66,105:66,106:66,114:66,117:66,164:164,191:66,192:66,193:66,194:66,195:66,196:66,211:66,212:66,214:214,215:215,216:66,217:217,218:66,219:66},{75:66,78:66,80:66,81:66,105:66,106:66,114:66,117:66,164:66,191:66,192:66,193:66,194:66,195:66,196:66,211:66,212:66,214:66,215:66,216:66,217:66,218:66,219:66},{75:66,78:66,80:66,81:66,105:66,106:66,114:66,117:66,164:66,191:66,192:66,193:66,194:66,195:66,196:66,211:66,212:66,214:66,215:66,216:66,217:66,218:66,219:66},{75:66,78:66,80:66,81:66,105:66,106:66,114:66,117:66,164:66,191:66,192:66,193:66,194:66,195:66,196:66,211:66,212:66,214:66,215:66,216:66,217:66,218:66,219:66},{75:66,78:66,80:66,81:66,105:66,106:66,114:66,117:66,164:66,191:66,192:66,193:66,194:66,195:66,196:66,211:66,212:66,214:66,215:66,216:66,217:66,218:66,219:66},{75:66,78:66,80:66,81:66,105:66,106:66,114:66,117:66,164:66,191:66,192:66,193:66,194:66,195:66,196:66,211:66,212:66,214:66,215:66,216:66,217:66,218:66,219:66},{75:66,78:66,80:66,81:66,105:66,106:66,114:66,117:66,164:66,191:66,192:66,193:66,194:66,195:66,196:66,211:66,212:66,214:66,215:66,216:66,217:66,218:66,219:66},{75:66,78:66,80:66,81:66,105:66,106:66,114:66,117:66,164:66,191:66,192:66,193:66,194:66,195:66,196:66,211:66,212:66,214:66,215:66,216:66,217:66,218:66,219:66},{75:66,78:66,80:66,81:66,105:105,106:106,114:114,117:66,164:164,191:66,192:66,193:66,194:66,195:66,196:66,211:66,212:66,214:214,215:66,216:66,217:217,218:66,219:66},{75:66,78:66,80:66,81:66,105:66,106:66,114:66,117:66,164:164,191:66,192:66,193:66,194:66,195:66,196:66,211:66,212:66,214:66,215:66,216:66,217:66,218:66,219:66},{75:75,78:78,79:79,80:78,81:78,82:82,83:83,84:84,85:85,86:37,87:87,88:37,89:37,90:37,91:37,92:37,93:37,94:94,95:95,98:52,99:14,100:14,101:14,102:14,103:14,104:14,105:14,106:14,107:14,108:14,109:14,110:14,111:111,112:112,113:113,114:114,115:115,116:116,118:118,119:119,120:120,121:121,122:122,123:14,124:57,125:58,126:65,127:65,128:14,129:43,130:43,131:43,132:132,133:133,134:52,135:52,136:52,137:52,138:52,139:52,140:52,141:52,142:52,143:52,144:52,145:52,146:52,147:52,148:148,149:149,150:150,151:151,152:152,153:153,154:52,155:45,156:45,157:45,158:45,159:45,160:45,161:45,162:45,163:45,164:45,165:45,166:45,167:45,168:45,169:45,170:45,171:45,172:45,173:45,174:45,175:57,176:58,177:52,178:14,179:14,180:14,181:14,182:14,183:14,184:14,185:185,187:43,188:52,189:52,190:14,191:75,192:78,193:78,194:75,195:78,196:75,197:197,198:115,199:199,200:14,201:115,202:202,203:202,204:204,205:205,206:205,207:207,208:115,209:115,210:115,211:14,212:14,213:115,214:14,215:14,216:14,217:14,218:14,219:14,220:45},{76:76},{76:76},{78:78,79:79,80:78,81:78,85:36,86:36,88:36,89:36,90:36,91:36,92:36,93:36,137:36,175:36,176:36,177:36,186:36,187:36,188:36,189:36,192:78,193:78,195:78,197:36,199:36,202:36,203:36,204:36,205:36,206:36,207:36},{78:36,79:36,80:36,81:36,85:36,86:36,88:36,89:36,90:36,91:36,92:36,93:36,137:36,175:36,176:36,177:36,186:36,187:36,188:36,189:36,192:36,193:36,195:36,197:36,199:36,202:36,203:36,204:36,205:36,206:36,207:36},{78:36,79:36,80:36,81:36,85:36,86:36,88:36,89:36,90:36,91:36,92:36,93:36,137:36,175:36,176:36,177:36,186:36,187:36,188:36,189:36,192:36,193:36,195:36,197:36,199:36,202:36,203:36,204:36,205:36,206:36,207:36},{78:36,79:36,80:36,81:36,85:36,86:36,88:36,89:36,90:36,91:36,92:36,93:36,137:[36,60],175:[36,60],176:[36,60],177:[36,60],186:36,187:36,188:[36,60],189:[36,60],192:36,193:36,195:36,197:36,199:36,202:36,203:36,204:36,205:36,206:36,207:[36,60]},{78:56,79:56,80:56,81:56,192:56,193:56,195:56},{78:56,79:56,80:56,81:56,192:56,193:56,195:56},{78:78,79:79,80:80,81:81,185:185,192:78,193:78,195:195},{78:78,80:78,81:78,192:78,193:78,195:78},{82:23,96:23,97:23,98:[23,52],99:23,100:23,101:23,102:23,103:23,104:23,105:23,106:23,107:23,108:23,109:23,110:23,113:23,115:23,118:23,119:23,120:23,123:23,124:23,125:23,126:23,127:23,128:23,129:23,130:23,131:23,132:23,133:[23,133],134:53,135:53,136:[23,52],137:[23,52],138:53,139:53,140:[23,52],141:53,142:53,143:53,144:53,145:53,146:53,147:53,148:23,149:23,150:23,151:23,152:23,153:23,154:[23,52],175:[23,52],176:[23,52],177:[23,52],178:23,179:23,180:23,181:23,182:23,183:23,184:23,187:23,188:[23,52],189:[23,52],190:23,197:23,198:23,199:23,200:23,201:23,202:23,203:23,204:23,205:23,206:23,207:[23,52],208:23,209:23,210:23,211:23,212:23,213:23,214:23,215:23,216:23,217:23,218:23,219:23},{82:24,96:24,97:24,98:24,99:24,100:24,101:24,102:24,103:24,104:24,105:24,106:24,107:24,108:24,109:24,110:24,113:24,115:24,118:24,119:24,120:24,123:24,124:24,125:24,126:24,127:24,128:24,129:24,130:24,131:24,132:24,133:24,134:24,135:24,136:24,137:24,138:24,139:24,140:24,141:24,142:24,143:24,144:24,145:24,146:24,147:24,148:24,149:24,150:24,151:24,152:24,153:24,154:24,175:24,176:24,177:24,178:24,179:24,180:24,181:24,182:24,183:24,184:24,187:24,188:24,189:24,190:24,197:24,198:24,199:24,200:24,201:24,202:24,203:24,204:24,205:24,206:24,207:24,208:24,209:24,210:24,211:24,212:24,213:24,214:24,215:24,216:24,217:24,218:24,219:24},{82:24,96:24,97:24,98:24,99:24,100:24,101:24,102:24,103:24,104:24,105:24,106:24,107:24,108:24,109:24,110:24,113:24,115:24,118:24,119:24,120:24,123:24,124:24,125:24,126:24,127:24,128:24,129:24,130:24,131:24,132:24,133:24,134:24,135:24,136:24,137:24,138:24,139:24,140:24,141:24,142:24,143:24,144:24,145:24,146:24,147:24,148:24,149:24,150:24,151:24,152:24,153:24,154:24,175:24,176:24,177:24,178:24,179:24,180:24,181:24,182:24,183:24,184:24,187:24,188:24,189:24,190:24,197:24,198:24,199:24,200:24,201:24,202:24,203:24,204:24,205:24,206:24,207:24,208:24,209:24,210:24,211:24,212:24,213:24,214:24,215:24,216:24,217:24,218:24,219:24},{82:24,96:24,97:24,98:24,99:24,100:24,101:24,102:24,103:24,104:24,105:24,106:24,107:24,108:24,109:24,110:24,113:24,115:24,118:24,119:24,120:24,123:24,124:24,125:24,126:24,127:24,128:24,129:24,130:24,131:24,132:24,133:24,134:24,135:24,136:24,137:24,138:24,139:24,140:24,141:24,142:24,143:24,144:24,145:24,146:24,147:24,148:24,149:24,150:24,151:24,152:24,153:24,154:24,175:24,176:24,177:24,178:24,179:24,180:24,181:24,182:24,183:24,184:24,187:24,188:24,189:24,190:24,197:24,198:24,199:24,200:24,201:24,202:24,203:24,204:24,205:24,206:24,207:24,208:24,209:24,210:24,211:24,212:24,213:24,214:24,215:24,216:24,217:24,218:24,219:24},{82:24,96:24,97:24,98:24,99:24,100:24,101:24,102:24,103:24,104:24,105:24,106:24,107:24,108:24,109:24,110:24,113:24,115:24,118:24,119:24,120:24,123:24,124:24,125:24,126:24,127:24,128:24,129:24,130:24,131:24,132:24,133:24,134:24,135:24,136:24,137:24,138:24,139:24,140:24,141:24,142:24,143:24,144:24,145:24,146:24,147:24,148:24,149:24,150:24,151:24,152:24,153:24,154:24,175:24,176:24,177:24,178:24,179:24,180:24,181:24,182:24,183:24,184:24,187:24,188:24,189:24,190:24,197:24,198:24,199:24,200:24,201:24,202:24,203:24,204:24,205:24,206:24,207:24,208:24,209:24,210:24,211:24,212:24,213:24,214:24,215:24,216:24,217:24,218:24,219:24},{82:24,96:24,97:24,98:24,99:24,100:24,101:24,102:24,103:24,104:24,105:24,106:24,107:24,108:24,109:24,110:24,113:24,115:24,118:24,119:24,120:24,123:24,124:24,125:24,126:24,127:24,128:24,129:24,130:24,131:24,132:24,133:24,134:24,135:24,136:24,137:24,138:24,139:24,140:24,141:24,142:24,143:24,144:24,145:24,146:24,147:24,148:24,149:24,150:24,151:24,152:24,153:24,154:24,175:24,176:24,177:24,178:24,179:24,180:24,181:24,182:24,183:24,184:24,187:24,188:24,189:24,190:24,197:24,198:24,199:24,200:24,201:24,202:24,203:24,204:24,205:24,206:24,207:24,208:24,209:24,210:24,211:24,212:24,213:24,214:24,215:24,216:24,217:24,218:24,219:24},{82:[24,82],96:24,97:24,98:52,99:29,100:29,101:29,102:29,103:29,104:29,105:29,106:29,107:29,108:29,109:29,110:29,113:24,115:24,118:24,119:24,120:24,123:29,124:24,125:24,126:65,127:65,128:29,129:24,130:24,131:24,132:24,133:24,134:52,135:52,136:52,137:52,138:52,139:52,140:52,141:52,142:52,143:52,144:52,145:52,146:52,147:52,148:24,149:24,150:24,151:24,152:24,153:24,154:52,175:52,176:52,177:52,178:29,179:29,180:29,181:29,182:29,183:29,184:29,187:24,188:52,189:52,190:29,197:24,198:24,199:24,200:29,201:24,202:24,203:24,204:24,205:24,206:24,207:52,208:24,209:24,210:24,211:29,212:29,213:24,214:29,215:29,216:29,217:29,218:29,219:29},{82:82,96:24,97:24,98:24,99:24,100:24,101:24,102:24,103:24,104:24,105:24,106:24,107:24,108:24,109:24,110:24,113:24,115:24,118:24,119:24,120:24,123:24,124:24,125:24,126:65,127:65,128:24,129:24,130:24,131:24,132:24,133:24,134:24,135:24,136:24,137:24,138:24,139:24,140:24,141:24,142:24,143:24,144:24,145:24,146:24,147:24,148:24,149:24,150:24,151:24,152:24,153:24,154:24,175:24,176:24,177:24,178:24,179:24,180:24,181:24,182:24,183:24,184:24,187:24,188:24,189:24,190:24,197:24,198:24,199:24,200:24,201:24,202:24,203:24,204:24,205:24,206:24,207:24,208:24,209:24,210:24,211:24,212:24,213:24,214:24,215:24,216:24,217:24,218:24,219:24},{82:24,96:24,97:24,98:24,99:24,100:24,101:24,102:24,103:24,104:24,105:24,106:24,107:24,108:24,109:24,110:24,113:24,115:24,118:24,119:24,120:24,123:24,124:24,125:24,126:65,127:65,128:24,129:24,130:24,131:24,132:24,133:24,134:24,135:24,136:24,137:24,138:24,139:24,140:24,141:24,142:24,143:24,144:24,145:24,146:24,147:24,148:24,149:24,150:24,151:24,152:24,153:24,154:24,175:24,176:24,177:24,178:24,179:24,180:24,181:24,182:24,183:24,184:24,187:24,188:24,189:24,190:24,197:24,198:24,199:24,200:24,201:24,202:24,203:24,204:24,205:24,206:24,207:24,208:24,209:24,210:24,211:24,212:24,213:24,214:24,215:24,216:24,217:24,218:24,219:24},{82:24,96:24,97:24,98:24,99:29,100:29,101:29,102:29,103:29,104:29,105:29,106:29,107:29,108:29,109:29,110:29,113:24,115:24,118:24,119:24,120:24,123:29,124:24,125:24,126:29,127:29,128:29,129:24,130:24,131:24,132:24,133:24,134:24,135:24,136:24,137:24,138:24,139:24,140:24,141:24,142:24,143:24,144:24,145:24,146:24,147:24,148:24,149:24,150:24,151:24,152:24,153:24,154:24,175:24,176:24,177:24,178:29,179:29,180:29,181:29,182:29,183:29,184:29,187:24,188:24,189:24,190:29,197:24,198:24,199:24,200:29,201:24,202:24,203:24,204:24,205:24,206:24,207:24,208:24,209:24,210:24,211:29,212:29,213:24,214:29,215:29,216:29,217:29,218:29,219:29},{82:40,115:40,118:40,119:40,120:40,125:40,129:40,130:40,131:40,132:40,198:40,201:40,208:40,209:40,210:40,213:40},{82:82,99:29,100:29,101:29,102:29,103:29,104:29,105:29,106:29,107:29,108:29,109:29,110:29,123:29,126:29,127:29,128:29,131:131,132:132,155:[0,47],156:[0,47],157:[0,47],158:[0,47],159:[0,47],160:[0,47],161:[0,47],162:[0,47],163:[0,47],164:[0,47],165:[0,47],166:[0,47],167:[0,47],168:[0,47],169:[0,47],170:[0,47],171:[0,47],172:[0,47],174:[0,47],178:29,179:29,180:29,181:29,182:29,183:29,184:29,190:29,200:29,211:29,212:29,214:29,215:29,216:29,217:29,218:29,219:29},{82:82,96:96,115:115,119:119,126:65,127:65,129:43,130:43,131:43,132:132,187:187,198:115,201:115,208:115,209:115,210:115,213:115},{82:82,97:64,126:64,127:64,129:43,130:43,131:43,187:43},{82:[0,82]},{82:82},{82:82},{82:82},{82:82},{82:82},{82:82},{82:82},{82:82},{82:82},{82:82,131:131,187:187},{82:82},{82:82},{82:82,96:96,132:132},{84:27,85:85,86:27,88:27,89:27,90:27,91:27,92:27,93:27},{84:84,96:96},{84:84,85:85,86:86,87:87,88:88,89:89,90:90,91:91,92:92,93:93,121:121},{85:37,86:37,88:37,89:37,90:37,91:37,92:37,93:37},{85:37,86:37,88:37,89:37,90:37,91:37,92:37,93:37},{85:37,86:37,88:37,89:37,90:37,91:37,92:37,93:37},{85:85,86:86,88:88,89:89,90:90,91:91,92:92,93:93},{94:94,95:95},{94:38,95:38},{94:94,95:95},{96:96},{96:96},{96:96},{96:96},{96:96,115:115,119:119,132:132,198:115,201:115,208:115,209:115,210:115,213:115},{96:96},{96:96},{97:64,99:14,100:14,101:14,102:14,103:14,104:14,105:14,106:14,107:14,108:14,109:14,110:14,123:14,126:14,127:14,128:14,178:14,179:14,180:14,181:14,182:14,183:14,184:14,190:14,200:14,211:14,212:14,214:14,215:14,216:14,217:14,218:14,219:14},{97:61,105:105,106:106,116:61,117:61,211:68,212:68},{97:61,105:68,106:68,116:61,117:61,211:68,212:68},{97:62,105:105,106:106,116:61,117:61,211:61,212:61},{97:61,105:61,106:61,116:116,117:117,211:61,212:61},{97:61,105:68,106:68,116:61,117:61,211:68,212:68},{97:62},{97:97,207:207},{97:97},{97:97},{97:97,126:126},{97:97,126:126},{97:97,126:126},{97:97},{97:97},{98:98,111:111,112:112,134:134,152:152,153:153,188:188,189:189},{98:98,111:111,112:112,134:134,189:189},{98:98,111:111,112:112,134:134,152:152,153:153,189:189},{98:52,99:16,100:100,101:16,102:16,103:16,104:16,105:16,106:16,107:16,108:16,109:16,110:16,123:16,126:16,127:16,128:16,134:52,135:52,136:52,137:52,138:52,139:52,140:52,141:52,142:52,143:52,144:52,145:52,146:52,147:52,154:52,175:52,176:52,177:52,178:16,179:16,180:16,181:16,182:16,183:16,184:16,188:52,189:52,190:16,200:16,207:52,211:16,212:16,214:16,215:16,216:16,217:16,218:16,219:16},{98:52,99:3,100:3,101:3,102:3,103:3,104:3,105:3,106:3,107:3,108:3,109:3,110:3,123:3,126:3,127:3,128:3,134:52,135:52,136:52,137:52,138:52,139:52,140:52,141:52,142:52,143:52,144:52,145:52,146:52,147:52,154:52,175:52,176:52,177:52,178:3,179:3,180:3,181:3,182:3,183:3,184:3,188:52,189:52,190:3,200:3,207:52,211:3,212:3,214:3,215:3,216:3,217:3,218:3,219:3},{98:3,99:3,100:3,101:3,102:3,103:3,104:3,105:3,106:3,107:3,108:3,109:3,110:3,123:3,126:3,127:3,128:3,134:3,135:3,136:3,137:3,138:3,139:3,140:3,141:3,142:3,143:3,144:3,145:3,146:3,147:3,154:3,175:3,176:3,177:3,178:3,179:3,180:3,181:3,182:3,183:3,184:3,188:3,189:3,190:3,200:3,207:3,211:3,212:3,214:3,215:3,216:3,217:3,218:3,219:3},{98:3,99:3,100:3,101:3,102:3,103:3,104:3,105:3,106:3,107:3,108:3,109:3,110:3,113:42,123:3,126:3,127:3,128:3,134:42,135:42,136:3,137:3,138:42,139:42,140:42,141:42,142:42,143:42,144:42,145:42,146:42,147:42,148:42,149:42,150:42,151:42,152:42,154:3,175:3,176:3,177:3,178:3,179:3,180:3,181:3,182:3,183:3,184:3,188:3,189:3,190:3,200:3,207:3,211:3,212:3,214:3,215:3,216:3,217:3,218:3,219:3},{98:3,99:16,100:16,101:16,102:16,103:16,104:16,105:16,106:16,107:16,108:16,109:16,110:16,113:42,123:16,126:16,127:16,128:16,134:42,135:42,136:3,137:3,138:42,139:42,140:42,141:42,142:42,143:42,144:42,145:42,146:42,147:42,148:42,149:42,150:42,151:42,152:42,154:3,175:3,176:3,177:3,178:16,179:16,180:16,181:16,182:16,183:16,184:16,188:3,189:3,190:16,200:16,207:3,211:16,212:16,214:16,215:16,216:16,217:16,218:16,219:16},{98:52,134:52,135:52,136:52,137:52,138:52,139:52,140:52,141:52,142:52,143:52,144:52,145:52,146:52,147:52,154:52,175:52,176:52,177:52,188:52,189:52,207:52},{98:52,134:52,135:52,136:52,137:52,138:52,139:52,140:52,141:52,142:52,143:52,144:52,145:52,146:52,147:52,154:52,175:52,176:52,177:52,188:52,189:52,205:205,206:205,207:52},{98:[0,52],134:[0,52],135:[0,52],136:[0,52],137:[0,52],138:[0,52],139:[0,52],140:[0,52],141:[0,52],142:[0,52],143:[0,52],144:[0,52],145:[0,52],146:[0,52],147:[0,52],154:[0,52],175:[0,52],176:[0,52],177:[0,52],188:[0,52],189:[0,52],207:[0,52]},{98:52,133:133,134:52,135:52,136:52,137:52,138:52,139:52,140:52,141:52,142:52,143:52,144:52,145:52,146:52,147:52,154:52,175:52,176:52,177:52,188:52,189:52,207:52},{98:52,134:52,135:52,136:52,137:52,138:52,139:52,140:52,141:52,142:52,143:52,144:52,145:52,146:52,147:52,154:52,175:52,176:52,177:52,188:52,189:52,207:52},{98:52,133:133,134:52,135:52,136:52,137:52,138:52,139:52,140:52,141:52,142:52,143:52,144:52,145:52,146:52,147:52,154:52,175:52,176:52,177:52,188:52,189:52,207:52},{98:52,134:52,135:52,136:52,137:52,138:52,139:52,140:52,141:52,142:52,143:52,144:52,145:52,146:52,147:52,154:52,175:52,176:52,177:52,188:52,189:52,207:52},{98:98,134:134,135:52,136:52,137:137,138:52,139:52,140:52,141:141,142:52,143:143,144:144,145:145,146:146,147:147,154:52,175:137,176:137,177:137,188:63,189:63,197:197,199:199,200:200,202:202,203:202,204:204,205:205,206:205,207:137},{98:52,134:52,135:52,136:52,137:52,138:52,139:52,140:52,141:52,142:52,143:52,144:52,145:52,146:52,147:52,154:52,175:52,176:52,177:52,188:52,189:52,207:52},{98:52,134:52,135:52,136:52,137:52,138:52,139:52,140:52,141:52,142:52,143:52,144:52,145:52,146:52,147:52,154:52,175:52,176:52,177:52,188:52,189:52,207:52},{98:52,134:52,135:52,136:52,137:52,138:52,139:52,140:52,141:52,142:52,143:52,144:52,145:52,146:52,147:52,154:52,175:52,176:52,177:52,188:52,189:52,207:52},{98:52,134:52,135:52,136:52,137:52,138:52,139:52,140:52,141:52,142:52,143:52,144:52,145:52,146:52,147:52,154:52,175:52,176:52,177:52,188:52,189:52,207:52},{98:98,134:134,152:152,153:153},{98:98},{98:98,134:134},{98:98},{99:14,100:14,101:14,102:14,103:14,104:14,105:14,106:14,107:14,108:14,109:14,110:14,123:14,126:14,127:14,128:14,178:14,179:14,180:14,181:14,182:14,183:14,184:14,190:14,200:14,211:14,212:14,214:14,215:14,216:14,217:14,218:14,219:14},{99:14,100:14,101:14,102:14,103:14,104:14,105:14,106:14,107:14,108:14,109:14,110:14,123:14,126:14,127:14,128:14,178:14,179:14,180:14,181:14,182:14,183:14,184:14,190:14,200:14,211:14,212:14,214:14,215:14,216:14,217:14,218:14,219:14},{99:99,100:14,101:14,102:14,103:14,104:14,105:14,106:14,107:14,108:14,109:14,110:14,123:14,126:14,127:14,128:14,178:14,179:14,180:14,181:14,182:14,183:14,184:14,190:14,200:14,211:14,212:14,214:14,215:14,216:14,217:14,218:14,219:14},{99:14,100:14,101:14,102:14,103:14,104:14,105:14,106:14,107:14,108:14,109:14,110:14,123:14,126:14,127:14,128:14,178:14,179:14,180:14,181:14,182:14,183:14,184:14,190:14,200:14,211:14,212:14,214:14,215:14,216:14,217:14,218:14,219:14},{99:14,100:[14,59],101:[14,59,101],102:14,103:14,104:[14,39],105:[14,39],106:[14,39],107:[14,39],108:14,109:14,110:14,123:[14,39],126:14,127:14,128:14,178:14,179:14,180:14,181:14,182:14,183:14,184:14,190:[14,39],200:14,211:[14,39],212:[14,39],214:[14,39],215:[14,39],216:[14,39],217:[14,39],218:[14,39],219:[14,39]},{99:5,100:5,101:5,102:5,103:5,104:5,105:5,106:5,107:5,108:5,109:5,110:5,113:42,123:5,126:5,127:5,128:5,134:42,135:42,136:5,137:5,138:42,139:42,140:42,141:42,142:42,143:42,144:42,145:42,146:42,147:42,148:42,149:42,150:42,151:42,152:42,154:5,175:5,176:5,177:5,178:5,179:5,180:5,181:5,182:5,183:5,184:5,188:5,189:5,190:5,197:197,199:199,200:5,202:202,203:202,204:204,205:205,206:205,207:5,209:5,211:5,212:5,213:5,214:5,215:5,216:5,217:5,218:5,219:5},{99:5,100:5,101:5,102:5,103:5,104:5,105:5,106:5,107:5,108:5,109:5,110:5,123:5,126:5,127:5,128:5,136:5,137:5,154:5,175:5,176:5,177:5,178:5,179:5,180:5,181:5,182:5,183:5,184:5,188:5,189:5,190:5,200:5,207:5,209:5,211:5,212:5,213:5,214:5,215:5,216:5,217:5,218:5,219:5},{99:99,100:100,101:101,102:102,103:103,104:104,105:105,106:106,107:107,108:108,109:109,110:110,123:123,126:65,127:65,128:128,136:5,137:5,154:5,175:5,176:5,177:5,178:178,179:178,180:178,181:178,182:178,183:178,184:178,188:5,189:5,190:190,199:199,200:200,202:202,203:202,204:204,205:205,206:205,207:5,209:209,211:211,212:212,213:213,214:214,215:215,216:216,217:217,218:218,219:219},{99:16,100:16,101:16,102:16,103:16,104:16,105:16,106:16,107:16,108:16,109:16,110:16,113:42,123:16,126:16,127:16,128:16,134:42,135:42,138:42,139:42,140:42,141:42,142:42,143:42,144:42,145:42,146:42,147:42,148:42,149:42,150:42,151:42,152:42,178:16,179:16,180:16,181:16,182:16,183:16,184:16,190:16,200:16,211:16,212:16,214:16,215:16,216:16,217:16,218:16,219:16},{99:16,100:100,101:16,102:16,103:16,104:16,105:16,106:16,107:16,108:16,109:16,110:16,123:16,126:16,127:16,128:16,178:16,179:16,180:16,181:16,182:16,183:16,184:16,190:16,200:16,211:16,212:16,214:16,215:16,216:16,217:16,218:16,219:16},{99:16,100:16,101:16,102:16,103:16,104:16,105:16,106:16,107:16,108:16,109:16,110:16,123:16,126:16,127:16,128:16,178:16,179:16,180:16,181:16,182:16,183:16,184:16,190:16,200:16,211:16,212:16,214:16,215:16,216:16,217:16,218:16,219:16},{99:16,100:16,101:16,102:16,103:16,104:16,105:16,106:16,107:16,108:16,109:16,110:16,123:16,126:16,127:16,128:16,178:16,179:16,180:16,181:16,182:16,183:16,184:16,190:16,200:16,211:16,212:16,214:16,215:16,216:16,217:16,218:16,219:16},{99:16,100:16,101:16,102:16,103:16,104:16,105:16,106:16,107:16,108:16,109:16,110:16,123:16,126:65,127:65,128:16,178:16,179:16,180:16,181:16,182:16,183:16,184:16,190:16,200:16,211:16,212:16,214:16,215:16,216:16,217:16,218:16,219:16},{99:16,100:16,101:16,102:16,103:16,104:16,105:16,106:16,107:16,108:16,109:16,110:16,123:16,126:16,127:16,128:16,178:16,179:16,180:16,181:16,182:16,183:16,184:16,190:16,200:16,211:16,212:16,214:16,215:16,216:16,217:16,218:16,219:16},{99:28,100:28,101:28,102:28,103:28,104:28,105:28,106:28,107:28,108:28,109:28,110:28,116:28,121:28,123:28,126:28,127:28,128:28,164:28,172:28,173:28,178:28,179:28,180:28,181:28,182:28,183:28,184:28,190:28,200:28,211:28,212:28,214:28,215:28,216:28,217:28,218:28,219:28},{99:29,100:29,101:29,102:29,103:29,104:29,105:29,106:29,107:29,108:29,109:29,110:29,123:29,126:29,127:29,128:29,178:29,179:29,180:29,181:29,182:29,183:29,184:29,190:29,200:29,211:29,212:29,214:29,215:29,216:29,217:29,218:29,219:29},{99:29,100:29,101:29,102:29,103:29,104:29,105:29,106:29,107:29,108:29,109:29,110:29,113:42,123:29,126:29,127:29,128:29,134:42,135:42,138:42,139:42,140:42,141:42,142:42,143:42,144:42,145:42,146:42,147:42,148:42,149:42,150:42,151:42,152:42,178:29,179:29,180:29,181:29,182:29,183:29,184:29,190:29,200:29,211:29,212:29,214:29,215:29,216:29,217:29,218:29,219:29},{99:29,100:29,101:29,102:29,103:29,104:29,105:29,106:29,107:29,108:29,109:29,110:29,123:29,126:29,127:29,128:29,178:29,179:29,180:29,181:29,182:29,183:29,184:29,190:29,200:29,211:29,212:29,214:29,215:29,216:29,217:29,218:29,219:29},{99:29,100:29,101:29,102:29,103:29,104:29,105:29,106:29,107:29,108:29,109:29,110:29,123:29,126:29,127:29,128:29,178:29,179:29,180:29,181:29,182:29,183:29,184:29,190:29,200:29,211:29,212:29,214:29,215:29,216:29,217:29,218:29,219:29},{99:29,100:29,101:29,102:29,103:29,104:29,105:29,106:29,107:29,108:29,109:29,110:29,123:29,126:65,127:65,128:29,178:29,179:29,180:29,181:29,182:29,183:29,184:29,190:29,200:29,211:29,212:29,214:29,215:29,216:29,217:29,218:29,219:29},{99:29,100:29,101:29,102:29,103:29,104:104,105:39,106:39,107:39,108:29,109:29,110:29,123:123,126:29,127:29,128:29,178:178,179:178,180:178,181:178,182:178,183:178,184:178,190:39,200:29,211:39,212:39,214:39,215:39,216:39,217:39,218:39,219:39},{99:99,100:[29,100],101:29,102:29,103:29,104:29,105:29,106:29,107:29,108:29,109:29,110:29,123:29,126:29,127:29,128:29,178:29,179:29,180:29,181:29,182:29,183:29,184:29,190:29,200:29,211:29,212:29,214:29,215:29,216:29,217:29,218:29,219:29},{99:99,100:100,101:29,102:29,103:29,104:29,105:29,106:29,107:29,108:29,109:29,110:29,123:29,126:29,127:29,128:29,178:29,179:29,180:29,181:29,182:29,183:29,184:29,190:29,200:29,211:29,212:29,214:29,215:29,216:29,217:29,218:29,219:29},{99:29,100:29,101:29,102:29,103:29,104:29,105:29,106:29,107:29,108:29,109:29,110:29,123:29,126:29,127:29,128:29,178:29,179:29,180:29,181:29,182:29,183:29,184:29,190:29,200:29,211:29,212:29,214:29,215:29,216:29,217:29,218:29,219:29},{99:29,100:29,101:29,102:29,103:29,104:29,105:29,106:29,107:29,108:29,109:29,110:29,123:29,126:65,127:65,128:29,178:29,179:29,180:29,181:29,182:29,183:29,184:29,190:29,200:29,211:29,212:29,214:29,215:29,216:29,217:29,218:29,219:29},{99:[0,29],100:[0,29],101:[0,29],102:[0,29],103:[0,29],104:[0,29],105:[0,29],106:[0,29],107:[0,29],108:[0,29],109:[0,29],110:[0,29],123:[0,29],126:[0,29],127:[0,29],128:[0,29],178:[0,29],179:[0,29],180:[0,29],181:[0,29],182:[0,29],183:[0,29],184:[0,29],190:[0,29],200:[0,29],211:[0,29],212:[0,29],214:[0,29],215:[0,29],216:[0,29],217:[0,29],218:[0,29],219:[0,29]},{99:50,100:50,101:50,102:50,103:50,128:128},{99:99,128:128,199:199,200:200,202:202,203:202},{99:99,100:100,101:101,102:102,103:102},{99:99,100:100,101:101,102:102,103:102,199:199,200:200},{99:99},{99:99},{100:100},{100:100},{100:100},{101:101},{101:101,129:43,130:43,131:43,187:43},{102:102,103:103,104:104},{104:39,105:39,106:39,107:39,118:118,123:39,190:39,211:39,212:39,214:39,215:39,216:39,217:39,218:39,219:39},{104:[9,104],105:9,106:9,107:9,118:9,123:9,190:9,211:9,212:9,214:9,215:9,216:9,217:9,218:9,219:9},{104:9,105:9,106:9,107:9,118:9,123:9,190:9,211:9,212:9,214:9,215:9,216:9,217:9,218:9,219:9},{104:39,105:39,106:39,107:39,118:118,123:39,190:39,211:39,212:39,214:39,215:39,216:39,217:39,218:39,219:39},{104:104,105:9,106:9,107:9,118:9,123:9,190:9,211:9,212:9,214:9,215:9,216:9,217:9,218:9,219:9},{104:39,105:39,106:39,107:39,118:9,123:39,190:39,211:39,212:39,214:39,215:39,216:39,217:39,218:39,219:39},{104:9,105:9,106:9,107:9,118:118,123:9,190:9,211:9,212:9,214:9,215:9,216:9,217:9,218:9,219:9},{104:9,105:9,106:9,107:9,118:9,123:9,190:9,211:9,212:9,214:9,215:9,216:9,217:9,218:9,219:9},{104:9,105:9,106:9,107:9,118:9,123:9,190:9,211:9,212:9,214:9,215:9,216:9,217:9,218:9,219:9},{104:9,105:9,106:9,107:9,118:9,123:9,190:9,211:9,212:9,214:9,215:9,216:9,217:9,218:9,219:9},{104:9,105:9,106:9,107:9,118:9,123:9,190:9,211:9,212:9,214:9,215:9,216:9,217:9,218:9,219:9},{104:9,105:9,106:9,107:9,118:9,123:9,190:9,211:9,212:9,214:9,215:9,216:9,217:9,218:9,219:9},{104:9,105:9,106:9,107:9,118:9,123:9,190:9,211:9,212:9,214:9,215:9,216:9,217:9,218:9,219:9},{104:[9,104],105:9,106:9,107:9,118:9,123:9,190:9,211:9,212:9,214:9,215:9,216:9,217:9,218:9,219:9},{104:104,105:39,106:39,107:39,123:39,190:39,211:39,212:39,214:39,215:39,216:39,217:39,218:39,219:39},{104:39,105:39,106:39,107:39,118:118,123:39,190:39,211:39,212:39,214:39,215:39,216:39,217:39,218:39,219:39},{104:39,105:39,106:39,107:39,123:39,190:39,211:39,212:39,214:39,215:39,216:39,217:39,218:39,219:39},{104:104},{105:67,106:67,190:67,211:67,212:67,214:67,215:67,216:67,217:67,218:67,219:67},{105:67,106:67,190:67,211:67,212:67,214:67,215:67,216:67,217:67,218:67,219:67},{105:67,106:67,190:67,211:67,212:67,214:67,215:67,216:67,217:67,218:67,219:67},{105:67,106:67,190:190,200:200,211:67,212:67,
214:214,215:67,216:67,217:67,218:67,219:67},{105:105,106:106,211:211,212:212},{105:105,106:106,211:211,212:212,214:214,216:216,217:217,218:218,219:219},{105:105,106:106,211:211},{113:42,134:42,135:42,138:42,139:42,140:42,141:42,142:42,143:42,144:42,145:42,146:42,147:42,148:42,149:42,150:42,151:42,152:42},{113:42,134:42,135:42,138:42,139:42,140:42,141:42,142:42,143:42,144:42,145:42,146:42,147:42,148:42,149:42,150:42,151:42,152:42},{113:42,134:42,135:42,138:42,139:42,140:42,141:42,142:42,143:42,144:42,145:42,146:42,147:42,148:42,149:42,150:42,151:42,152:42},{113:42,134:42,135:42,138:42,139:42,140:42,141:42,142:42,143:42,144:42,145:42,146:42,147:42,148:42,149:42,150:42,151:42,152:42},{113:42,134:42,135:42,138:42,139:42,140:42,141:42,142:42,143:42,144:42,145:42,146:42,147:42,148:42,149:42,150:42,151:42,152:42},{113:42,134:42,135:42,138:42,139:42,140:42,141:141,142:42,143:42,144:42,145:42,146:42,147:147,148:42,149:42,150:42,151:42,152:42,154:154},{113:42,134:42,135:42,138:42,139:42,140:42,141:42,142:42,143:42,144:42,145:42,146:42,147:42,148:42,149:42,150:42,151:42,152:42},{113:42,134:42,135:42,138:42,139:42,140:42,141:42,142:42,143:42,144:42,145:42,146:42,147:42,148:42,149:42,150:42,151:42,152:42},{113:42,132:132,134:42,135:42,138:42,139:42,140:42,141:42,142:42,143:42,144:42,145:42,146:42,147:42,148:42,149:42,150:42,151:42,152:42},{113:42,134:42,135:42,138:42,139:42,140:42,141:42,142:42,143:42,144:42,145:42,146:42,147:42,148:42,149:42,150:42,151:42,152:42},{114:114},{114:114},{114:114},{115:115,198:115,201:115,208:115,209:115,210:115,213:115},{116:116},{116:116},{116:116},{116:116},{116:116},{117:117},{117:117},{117:117},{118:118},{118:118},{118:118},{126:126},{126:126},{126:126},{126:126},{129:43,130:43,131:43,132:132,187:43},{129:43,130:43,131:43,132:132,187:43},{129:43,130:43,131:43,187:43},{129:43,130:43,131:43,187:43},{129:129,130:130,131:[0,131],189:189},{129:129,130:130,131:131,132:132,187:187},{131:131,186:186,187:186},{132:132},{132:132},{132:132},{132:132},{132:132},{132:132},{133:41},{133:133},{137:137,175:137,176:137,177:137,188:137,189:137,207:137},{137:[0,137],175:[0,137],176:[0,137],177:[0,137],188:[0,137],189:[0,137],207:[0,137]},{155:47,156:47,157:47,158:47,159:47,160:47,161:47,162:47,163:47,164:47,165:47,166:47,167:47,168:47,169:47,170:47,171:47,172:47,173:173,174:47,220:220},{155:45,156:45,157:45,158:45,159:45,160:45,161:45,162:45,163:45,164:45,165:45,166:45,167:45,168:45,169:45,170:45,171:45,172:45,173:173,174:45,220:45},{155:47,156:47,157:47,158:47,159:47,160:47,161:47,162:47,163:47,164:47,165:47,166:47,167:47,168:47,169:47,170:47,171:47,172:47,173:45,174:47,220:45},{155:45,156:45,157:45,158:45,159:45,160:45,161:45,162:45,163:45,164:45,165:45,166:45,167:45,168:45,169:45,170:45,171:45,172:45,173:45,174:45,220:45},{155:47,156:47,157:47,158:47,159:47,160:47,161:47,162:47,163:47,164:47,165:47,166:47,167:47,168:47,169:47,170:47,171:47,172:47,174:47},{155:47,156:47,157:47,158:47,159:47,160:47,161:47,162:47,163:47,164:47,165:47,166:47,167:47,168:47,169:47,170:47,171:47,172:47,174:47},{155:47,156:47,157:47,158:47,159:47,160:47,161:47,162:47,163:47,164:47,165:47,166:47,167:47,168:47,169:47,170:47,171:47,172:47,174:47},{155:47,156:47,157:47,158:47,159:47,160:47,161:47,162:47,163:47,164:47,165:47,166:47,167:47,168:47,169:47,170:47,171:47,172:47,174:47},{155:47,156:47,157:47,158:47,159:47,160:47,161:47,162:47,163:47,164:47,165:47,166:47,167:47,168:47,169:47,170:47,171:47,172:47,174:47},{155:47,156:47,157:47,158:47,159:47,160:47,161:47,162:47,163:47,164:47,165:47,166:47,167:47,168:47,169:47,170:47,171:47,172:47,174:47},{155:47,156:47,157:47,158:47,159:47,160:47,161:47,162:47,163:47,164:47,165:47,166:47,167:47,168:47,169:47,170:47,171:47,172:47,174:47},{155:47,156:47,157:47,158:47,159:47,160:47,161:47,162:47,163:47,164:47,165:47,166:47,167:47,168:47,169:47,170:47,171:47,172:47,174:47},{155:47,156:47,157:47,158:47,159:47,160:47,161:47,162:47,163:47,164:47,165:47,166:47,167:47,168:47,169:47,170:47,171:47,172:47,174:47},{155:47,156:47,157:47,158:47,159:47,160:47,161:47,162:47,163:47,164:47,165:47,166:47,167:47,168:47,169:47,170:47,171:47,172:47,174:47},{155:47,156:47,157:47,158:47,159:47,160:47,161:47,162:47,163:47,164:47,165:47,166:47,167:47,168:47,169:47,170:47,171:47,172:47,174:47},{155:47,156:47,157:47,158:47,159:47,160:47,161:47,162:47,163:47,164:47,165:47,166:47,167:47,168:47,169:47,170:47,171:47,172:47,174:47},{155:47,156:47,157:47,158:47,159:47,160:47,161:47,162:47,163:47,164:47,165:47,166:47,167:47,168:47,169:47,170:47,171:47,172:47,174:47},{155:47,156:47,157:47,158:47,159:47,160:47,161:47,162:47,163:47,164:47,165:47,166:47,167:47,168:47,169:47,170:47,171:47,172:47,174:47},{155:155,158:158,159:159,163:163,164:164,168:168,169:169},{190:190,202:202,203:202},{190:190},{190:190},{190:190},{190:190},{190:190,197:197,199:199,200:200,202:202,203:202,204:204,205:205,206:205},{190:190},{190:190},{197:197},{197:197,199:199},{197:197,199:199},{197:197},{197:197,199:199},{198:71},{198:71},{198:72},{198:198},{198:198},{198:198},{198:198},{198:198},{198:198},{198:198},{199:70,202:70,203:70},{199:70,202:70,203:70},{199:70,202:70,203:70},{199:70,202:70,203:70},{199:70,202:70,203:70},{199:70,202:70,203:70},{199:199,202:70,203:70},{199:199},{199:199},{199:199},{199:199},{199:199},{199:199},{199:199},{199:199},{199:199},{199:199},{199:199},{199:199,202:202,203:202},{199:199},{202:202,203:202},{202:202,203:202},{202:202,203:202},{202:202,203:203},{202:202,203:203,204:204},{202:202,203:202},{202:202,203:203},{204:204},{204:204},{204:204},{204:204},{204:204},{205:205,206:205},{205:205,206:205},{207:207},{207:207},{207:207},{208:208},{208:208},{208:208},{208:208},{208:208},{208:208},{209:209},{209:209},{209:209},{209:209},{213:213},{213:213},{213:213},{213:213},{220:73},{220:73},{220:73},{220:73},{220:74}],methodNames:["shouldBeBlockElementInMobile","isBlock","addToCellItem","removeElementFromCellItem","reAttachElementToContainer","getCellItem","setCellItem","refreshCellHorizontalAlignment","updateCellItemData","getCellItemData","removeCellItem","shouldBeWithLayoutOnMobile","getMaxSize","isRelativePositioned","getAutoLayoutProperties","setNeverSelectedInClick","isUserSelected","userSelect","shouldTrackUserSelection","isLinkEnabled","hasBinding","hasButtonBehaviour","refreshCursor","createBindingFieldsToProperties","removeUrl","handleBackgroundUpdate","useImageLayer","getImageLayerTemplate","forceImageBoxCreation","getImageBox","handleImageBoxBorderWidthChange","setImageBoxVirtualViewport","setImageBoxViewport","autoCalculateBackgroundViewPort","toggleVisibility","isFillHorizontal","isFillVertical","hasHorizontalLayout","hasVerticalLayout","isVerticallyDocked","getParentContentSize","getCalculatedPropertyValue","setCalculatedPropertyValue","hasVerticalAlign","hasHorizontalAlign","alignHorizontal","alignVertical","alignContentHorizontal","hasContentHorizontalAlign","getElementDataContentSize","calculateSizeContent","getNewContentSize","calculateNewContentSize","adjustSizeToContent","getElementDataContent","whenInstanceContentHeightChanged","calculateNormalizedHeight","refreshTextLayout","getTextElements","calculateFontSize","calculateDecimalLineHeight","canRotate","setRotation","getDataBindingKey","getBindingStoreLevel","hasDataBinding","deleteDataBinding","getDataBinding","getDataBindingValue","initializeDataBinding","updateElementWithDataBindingValue","updateDataBinding","allowUpdateDataBindingValue","creationFunction","getSkin","updateSkin","findUsedFonts","pollNotLoadedFontsCallback","pollForNotLoadedFonts","refreshContentSize","setRichContent","refreshRichContentState","getBindingType","findUsedTextStyles","setOverFlow","addRowToContainer","removeRowFromContainer","getRowsFromContainer","hasRowsFromContainer","append","reorderChildElements","addChildElement","renderElementChildren","canContainerRows","getAnchorLatyout","getMinSize","hasHeight","calculateActualSize","getContentLayer","refreshPageMetaData","getPaddingBox","attachPage","getFooterInstanceHeight","getHeaderInstanceHeight","getFooterInstance","getHeaderInstance","setFooterInstance","setHeaderInstance","getPageContentInstance","setPageContentInstance","removePageContentInstance","renderElement","isLineAffectsSize","getShadowTarget","shouldBeHiddenInMode","getCanvas","getShape","createContent","createShape","getShapeReference","getSvgController","createSvgShapeController","getMainBox","disableGroup","enableGroup","startGroupUpdating","hasWidth","finishGroupUpdating","isGroupDisabled","calculateDiffHeight","isPopupDisabled","showPopup","getPopupItemsCollectionForInitialization","getPopupItems","isPopupEnabled","showElementInPopup","shouldDisplayOnMobile","getJMMLType","getCloseButton","getSubmitSuccessTarget","getSubmitSuccessText","getSubmitErrorText","fixElementInBottom","isFixed","getValue","setValue","clear","getSkinBinding","getSkinId","getStyleObject","isSupportsMobile","isMobileOnlyStyle","initiailizeDelegatedContentBinding","getNoneContentSize","getLayoutAffectedInstances","getInstancesBindingsByField","setSkinInstanceControllerFromBinding","getMainSkinInstance","getSkinInstance","getSkinSupportedStates","getSkinFieldsValues","getSkinStatesAnimations","extendDataSourceOptionsWith","setStructureProcessor","getInputField","getLabelText","refreshFormInput","setLabelProperties","reArrangeTheTemplates","requestArrangement","addArrangementRequest","getArrangementRequestName","getArrangementOptions","getDataSource","getDataSourceName","getDataSourceDefinition","updateSkinBindingFromEditingTemplate","refreshTemplates","refreshTemplatesSize","resetItemTemplateSize","getDefaultTemplate","getFieldsTemplates","addFailedToLoadMessage","getDataItemInstanceId","getInstanceController","getItemsControllers","getPcTemplateSize","adjustDataListToMobile","calculateItemSizeOnMobile","updateDataListToMobile","removeDataListFromMobile","shouldRequestArrangementFromSizeChange","setContentSizeChangeBinding","shouldReferToStateValue","refreshSelectedItem","unSelectAll","onItemSet","getPotentialSelectedMenuItemId","isConnectedToNavigatable","getNavigableInstance","isNavigationButton","disableStyleProperties","getNavigationButtonTemplate","refreshCustomZIndex","refreshFixedState","getLoadingRequirements","navigateTo","navigateToTabIndex","navigate","showItem","getUrlAddressForPage","getNavigatableInstances","getAutoNavigationDuration","getItemsCollection","getFieldsCollection","getItemsInformation","getFieldsInformation","startAutoNavigation","stopAutoNavigation","getCurrentPageIndex","shouldMaintainHeightInPreview","getCurrentItem","changeCurrentItem","isPrimary","ToSeoUrl","removeDataSource","refreshDataSource","onSmartDataLoaded","getChildDataSourceDefinition","getParameterProperties","popupItemsMappingFunction","toggleMobileSupport","isVisibleInMode","isDataListItem","getDataItemId","getDataItem","getFieldName","setDataItemId","getItemMainParent","changeElementSize","setTemplateStructure","getMapController","refreshMapPosition","getMarkersCollection","checkResizeVerticallyAllowed","play","stop","pause","isAutoPlay","getImageLoadingOptions","getImageSizeInLayout","hideImageLoadingOverlay","showImageLoadingOverlay","addItem","removeCurrentItem","removeItem","getJMMLButton","getJoinMyMailingListValue","renderCaptcha","tryRenderCaptcha","isPageChildInstance","isReattchable","isMainSection","calculateActualOffset","getCalculatedOrder","addElementToPage","getDisplayName","refreshContentLayout","getPageContentLayout","addSectionElement","removeSectionElement","getSectionsByPage","getVisibleSectionsByPage","getInstancesByField","getStyleStateAffectedInstances","getDelegatedContentInstance","getInitializedTargetConnections","getIFrameUrl","isScrollableIFrame","shouldRenderIFrame","reloadIFrame","isGrowingEnabled","setDocumentSize","setAppSize","setAppContentSize","createCallInfo","getAppDefinition","getAppSettingPrefix","getAppSettings","getAppSettingValue","setAppSettingValue","isQueryParamSetting","getApiManager","reloadApp","bindAppSettingProperty","getUserPropertyName","setFilters","setSorting","setCategoryId","scrollToElementTop","loadNewProducts","getCurrentListController","getCurrentCategory","addNoProductsHandler","clearContainer","getStoreFrontInstances","navigateToCategory","getBreadcrumbElementsRecursive","renderData","addToContainer","removeFromContainer","updateSize","toggleBackground","toggleElementsWithType","toggleCategoriesElements","toggleFilterElements","toggleAllElements","manageCategoryChanges","checkForFiltersOrCategories","createDialog","openDialog","closeDialog","setDialogContent","setDialogTitle","setDialogHeaderContent","onDialogClosed","addSelectedStateByID","addClickHandler","addSubCategories","getListElements","getCategoryTitle","findItemById","createMainCategoriesMobilePage","createListItemsClick","createCategoriesPage","renderMobileElement","renderDesktopElement","renderElementInMode","addHoverEffects","addFilterToList","checkFilterStates","getActiveFilters","onFilterClick","updateSelectText","renderFilters","initElement","addClickInPreviewMode","changeFilters","createFilterLabel","disableAllFilters","renderSelectedFilters","renderVariants","hideVariants","getOrCreateFixedDiv","addFixedStateMobile","createFloatingButton","setBuyButtonState","setTextElementData","hideTextElement","showTextElement","handleStockData","findChildren","getClickedItem","initClickHandler","initDataChangeHandler","findGalleryChildren","addImage","addInlineVideo","addLink","addStatus","sendMessage","getStyles","getProperties","sendInit","setPropertiesOnInstance"],aggregated:[{75:[2,11,13,17,26,75],76:null,77:null,78:[2,11,13,26,17,78],79:[2,11,13,26],80:[2,11,13,26,17,78],81:[2,11,13,26,17,78],82:[2,23,11,13,82],83:[2,26],84:2,85:[2,85],86:2,87:[2,11,13,26],88:2,89:2,90:2,91:2,92:2,93:2,94:2,95:2,96:[2,23],97:[2,23,11,13,26,64],98:[2,23,3],99:[2,11,13,26,14,23,3,29,50,99],100:[2,11,13,26,14,23,3,29,50,59,100],101:[2,11,13,26,14,23,3,29,50,59,101],102:[2,11,13,26,14,23,3,29,50],103:[2,11,13,26,14,23,3,29,50],104:[2,11,13,26,14,23,3,29,39,104],105:[2,11,13,26,14,23,3,29,39],106:[2,11,13,26,14,23,3,29,39],107:[2,11,13,26,14,23,3,29,39],108:[2,11,13,26,14,23,3,29],109:[2,11,13,26,14,23,3,29],110:[2,11,13,26,14,23,3,29],111:[2,11,13,17,26,111],112:[2,11,13,17,26,112],113:[2,11,13,23,26],114:[2,26,114],115:[2,11,13,23,26],116:[2,11,13,26,116],117:[2,11,26],118:[2,23,26,118],119:[2,23,26,11,13,119],120:[2,11,13,26,23],121:[2,11,13,26],122:[2,11,13,26],123:[2,11,13,26,14,23,3,29,39],124:[2,11,13,26,23],125:[2,11,13,26,23],126:[2,11,13,26,64,14,23,3,29],127:[2,11,13,26,64,14,23,3,29],128:[2,11,13,26,14,23,3,29],129:[2,11,13,23,43,26,129],130:[2,11,13,23,43,26,130],131:[2,11,13,23,43,26,131],132:[2,11,13,23,26,132],133:[2,41,11,13,23,26,133],134:[2,23,3],135:[2,23,3],136:[2,23,3],137:[2,23,3],138:[2,23,3],139:[2,23,3],140:[2,23,3],141:[2,23,3],142:[2,23,3],143:[2,23,3],144:[2,23,3],145:[2,23,3],146:[2,23,3],147:[2,23,3],148:[2,11,13,23,26],149:[2,11,13,23,26],150:[2,11,13,23,26],151:[2,11,13,23,26],152:[2,11,13,23,26],153:[2,11,13,23,26],154:[2,23,3,51],155:[2,11,13,47],156:[2,11,13,47],157:[2,11,13,47],158:[2,11,13,47],159:[2,11,13,47],160:[2,11,13,47],161:[2,11,13,47],162:[2,11,13,47],163:[2,11,13,47],164:[2,11,13,47,164],165:[2,11,13,47],166:[2,11,13,26,47],167:[2,11,13,26,47],168:[2,11,13,47],169:[2,11,13,47],170:[2,11,13,47],171:[2,11,13,26,47],172:[2,11,13,26,47,172],173:[2,26,173],174:[2,11,13,47],175:[2,23,3],176:[2,23,3],177:[2,23,3],178:[2,11,13,26,14,23,3,29],179:[2,11,13,26,14,23,3,29],180:[2,11,13,26,14,23,3,29],181:[2,11,13,26,14,23,3,29],182:[2,11,13,26,14,23,3,29],183:[2,11,13,26,14,23,3,29],184:[2,11,13,26,14,23,3,29],185:[2,26,185],186:[2,11,13,26],187:[2,11,13,26,23,43],188:[2,23,3],189:[2,23,3],190:[2,11,13,26,14,23,3,29,39],191:[2,11,13,17,26,75],192:[2,11,13,26,17,78,192],193:[2,11,13,26,17,78],194:[2,11,13,17,26,75],195:[2,11,13,26,17,78],196:[2,11,13,17,26,75],197:[2,23],198:[2,11,13,23,26,71,72,17],199:[2,23],200:[2,14,23,3,29],201:[2,11,13,23,26],202:[2,23],203:[2,23],204:[2,23],205:[2,11,13,26,17,23],206:[2,11,13,26,17,23],207:[2,23,3,17],208:[2,11,13,23,26,17],209:[2,11,13,23,26],210:[2,11,13,23,26],211:[2,11,13,26,14,23,3,29,39],212:[2,11,13,26,14,23,3,29,39],213:[2,11,13,23,26],214:[2,11,13,26,14,23,3,29,39],215:[2,11,13,26,14,23,3,29,39],216:[2,11,13,26,14,23,3,29,39],217:[2,11,13,26,14,23,3,29,39],218:[2,11,13,26,14,23,3,29,39],219:[2,11,13,26,14,23,3,29,39],220:[2,26,73,17,74]},{75:[2,21,25,18],76:null,77:null,78:[2,25,18,36,21,78],79:[2,25,18,36,21,79],80:[2,25,18,36,21,78],81:[2,25,18,36,21,78],82:[2,82],83:[2,18,21,25,83],84:[2,18,25,21],85:[2,18,25,21,36,37],86:[2,18,25,21,36,37],87:[2,18,21,25],88:[2,18,25,21,36,37],89:[2,18,25,21,36,37],90:[2,18,25,21,36,37],91:[2,18,25,21,36,37],92:[2,18,25,21,36,37],93:[2,18,25,21,36,37],94:[2,21,25,18,38,94],95:[2,21,25,38],96:[2,21,18,25,96],97:[2,18,34,25,21,97],98:[2,18,21,25,98],99:[2,18,25,5,28,99],100:[2,18,25,5,28],101:[2,18,25,5,28,101],102:[2,18,25,5,28],103:[2,18,25,5,28],104:[2,18,25,5,28,9],105:[2,18,25,5,28,9,67,21],106:[2,18,25,5,28,9,67,21],107:[2,18,25,5,28,9],108:[2,18,25,5,28],109:[2,18,25,5,28],110:[2,18,25,5,28],111:[2,21,25,18,34],112:[2,21,25,18,34],113:[2,18,21,25,42],114:[2,25,21,18,114],115:[2,18,21,25,115],116:[2,18,25,28,21,116],117:[2,25,18,21,117],118:[2,18,21,25,9],119:2,120:[2,21,18,25],121:[2,18,21,25,28],122:[2,18,21,25],123:[2,18,25,5,28,9],124:[2,21,18,25],125:[2,21,18,25],126:[2,18,34,25,5,28,65,126],127:[2,18,34,25,5,28,65],128:[2,18,25,5,28],129:[2,18,43],130:[2,18,43],131:[2,18,43],132:[2,18,25],133:[2,34,21,25],134:[2,42,18,21,25,53,134],135:[2,42,18,21,25,53],136:[2,5,18,21,25],137:[2,5,21,36,60,18,25,137],138:[2,42,18,21,25,53],139:[2,42,18,21,25,53],140:[2,42,18,21,25],141:[2,42,18,21,25,53],142:[2,42,18,21,25,53],143:[2,42,18,21,25,53],144:[2,42,18,21,25,53],145:[2,42,18,21,25,53],146:[2,42,18,21,25,53],147:[2,42,18,21,25,53],148:[2,21,25,42],149:[2,21,25,42],150:[2,21,25,42],151:[2,21,25,42],152:[2,21,25,34,42,152],153:[2,21,25,34,153],154:[2,5,18,21,25],155:[2,18,25],156:[2,18,25],157:[2,18,25],158:[2,18,25],159:[2,18,25],160:[2,18,25],161:[2,18,25],162:[2,18,25],163:[2,18,25],164:[2,18,25,28],165:[2,18,25],166:[2,18,25],167:[2,18,25],168:[2,18,25],169:[2,18,25],170:[2,18,25],171:[2,18,25],172:[2,18,25,28],173:[2,18,25,28],174:[2,18,25],175:[2,5,21,36,60,18,25,137],176:[2,5,21,36,60,18,25,137],177:[2,5,21,36,60,18,25,137],178:[2,18,25,5,28],179:[2,18,25,5,28],180:[2,18,25,5,28],181:[2,18,25,5,28],182:[2,18,25,5,28],183:[2,18,25,5,28],184:[2,18,25,5,28],185:[2,18,21,25,185],186:[2,25,18,36,186],187:[2,25,18,36,186,43],188:[2,5,21,36,60,18,25,137],189:[2,5,21,36,60,18,25,137],190:[2,18,25,5,28,9,67,190],191:[2,21,25,18],192:[2,25,18,36,21,78],193:[2,25,18,36,21,78],194:[2,21,25,18],195:[2,25,18,36,21,78],196:[2,21,25,18,196],197:[2,25,18,36,197],198:[2,18,21,25,115,71,72,198],199:[2,25,18,36,199],200:[2,5,28,200],201:[2,18,21,25,115],202:[2,25,18,36,202],203:[2,25,18,36,202],204:[2,25,18,36,204],205:[2,25,18,36],206:[2,25,18,36],207:[2,5,21,36,60,18,25,137],208:[2,18,21,25,115],209:[2,18,21,25,115,5],210:[2,18,21,25,115,210],211:[2,18,25,5,28,9,67,21],212:[2,18,25,5,28,9,67,21],213:[2,18,21,25,115,5],214:[2,18,25,5,28,9,67],215:[2,18,25,5,28,9,67],216:[2,18,25,5,28,9,67],217:[2,18,25,5,28,9,67],218:[2,18,25,5,28,9,67],219:[2,18,25,5,28,9,67],220:[2,18,25]},{75:[2,11,66],76:null,77:null,78:[2,11,66],79:[2,11,55],80:[2,11,66,80],81:[2,11,66,81],82:[2,11,82],83:2,84:2,85:2,86:2,87:[2,11],88:2,89:2,90:2,91:2,92:2,93:2,94:2,95:2,96:[2,96],97:[2,11],98:2,99:[2,11,14,5,29],100:[2,11,14,5,29],101:[2,11,14,5,29],102:[2,11,14,5,29],103:[2,11,14,5,29],104:[2,11,14,5,29,9],105:[2,11,14,5,29,9,66],106:[2,11,14,5,29,9,66],107:[2,11,14,5,29,9],108:[2,11,14,5,29],109:[2,11,14,5,29],110:[2,11,14,5,29],111:[2,11],112:[2,11],113:[2,11],114:[2,66,114],115:[2,11],116:[2,11,116],117:[2,11,66],118:[2,9],119:[2,11],120:[2,11],121:[2,11],122:[2,11],123:[2,11,14,5,29,9],124:[2,11],125:[2,11],126:[2,11,14,5,29],127:[2,11,14,5,29],128:[2,11,14,5,29],129:[2,11],130:[2,11],131:[2,11],132:[2,11,132],133:[2,11],134:2,135:2,136:[2,5],137:[2,5],138:2,139:2,140:2,141:2,142:2,143:2,144:2,145:2,146:2,147:2,148:[2,11],149:[2,11],150:[2,11],151:[2,11],152:[2,11],153:[2,11],154:[2,5],155:[2,11],156:[2,11],157:[2,11],158:[2,11],159:[2,11],160:[2,11],161:[2,11],162:[2,11],163:[2,11],164:[2,11,66],165:[2,11],166:[2,11],167:[2,11],168:[2,11],169:[2,11],170:[2,11],171:[2,11],172:[2,11],173:2,174:[2,11],175:[2,5],176:[2,5],177:[2,5],178:[2,11,14,5,29],179:[2,11,14,5,29],180:[2,11,14,5,29],181:[2,11,14,5,29],182:[2,11,14,5,29],183:[2,11,14,5,29],184:[2,11,14,5,29],185:2,186:[2,11,186],187:[2,11,186],188:[2,5],189:[2,5],190:[2,11,14,5,29,9],191:[2,11,66],192:[2,11,66],193:[2,11,66],194:[2,11,66],195:[2,11,66,80],196:[2,11,66],197:2,198:[2,11],199:2,200:[2,14,5,29],201:[2,11],202:2,203:2,204:2,205:[2,11],206:[2,11],207:[2,5],208:[2,11],209:[2,11,5],210:[2,11],211:[2,11,14,5,29,9,66],212:[2,11,14,5,29,9,66],213:[2,11,5],214:[2,11,14,5,29,9,66],215:[2,11,14,5,29,9,66],216:[2,11,14,5,29,9,66],217:[2,11,14,5,29,9,66],218:[2,11,14,5,29,9,66],219:[2,11,14,5,29,9,66],220:2},{75:null,76:null,77:null,78:null,79:null,80:null,81:null,82:null,83:null,84:null,85:null,86:null,87:null,88:null,89:null,90:null,91:null,92:null,93:null,94:null,95:null,96:null,97:null,98:null,99:null,100:null,101:null,102:null,103:null,104:null,105:null,106:null,107:null,108:null,109:null,110:null,111:null,112:null,113:null,114:null,115:null,116:null,117:null,118:null,119:null,120:null,121:null,122:null,123:null,124:null,125:null,126:null,127:null,128:null,129:43,130:43,131:43,132:132,133:null,134:null,135:null,136:null,137:null,138:null,139:null,140:null,141:null,142:null,143:null,144:null,145:null,146:null,147:null,148:null,149:null,150:null,151:null,152:null,153:null,154:null,155:null,156:null,157:null,158:null,159:null,160:null,161:null,162:null,163:null,164:null,165:null,166:null,167:null,168:null,169:null,170:null,171:null,172:null,173:null,174:null,175:null,176:null,177:null,178:null,179:null,180:null,181:null,182:null,183:null,184:null,185:null,186:null,187:43,188:null,189:null,190:null,191:null,192:null,193:null,194:null,195:null,196:null,197:null,198:null,199:null,200:null,201:null,202:null,203:null,204:null,205:null,206:null,207:null,208:null,209:null,210:null,211:null,212:null,213:null,214:null,215:null,216:null,217:null,218:null,219:null,220:null},{75:null,76:null,77:null,78:null,79:null,80:null,81:null,82:null,83:null,84:null,85:null,86:null,87:null,88:null,89:null,90:null,91:null,92:null,93:null,94:null,95:null,96:null,97:null,98:null,99:null,100:null,101:null,102:null,103:null,104:null,105:null,106:null,107:null,108:null,109:null,110:null,111:null,112:null,113:null,114:null,115:null,116:null,117:null,118:null,119:null,120:null,121:null,122:null,123:null,124:null,125:null,126:null,127:null,128:null,129:null,130:null,131:null,132:null,133:null,134:null,135:null,136:null,137:null,138:null,139:null,140:null,141:null,142:null,143:null,144:null,145:null,146:null,147:null,148:null,149:null,150:null,151:null,152:null,153:null,154:null,155:null,156:null,157:null,158:null,159:null,160:null,161:null,162:null,163:null,164:null,165:null,166:null,167:null,168:null,169:null,170:null,171:null,172:null,173:null,174:null,175:null,176:null,177:null,178:null,179:null,180:null,181:null,182:null,183:null,184:null,185:null,186:null,187:null,188:null,189:null,190:null,191:null,192:null,193:null,194:null,195:null,196:null,197:null,198:null,199:null,200:null,201:null,202:null,203:null,204:null,205:null,206:null,207:207,208:null,209:209,210:null,211:null,212:null,213:null,214:null,215:null,216:null,217:null,218:null,219:null,220:null},{75:[20,25],76:null,77:null,78:[25,20],79:[25,20],80:[25,20],81:[25,20],82:null,83:[20,25],84:[25,20],85:[25,20],86:[25,20],87:[20,25],88:[25,20],89:[25,20],90:[25,20],91:[25,20],92:[25,20],93:[25,20],94:[20,25],95:[20,25],96:[20,25],97:[25,20],98:[20,25],99:25,100:25,101:25,102:25,103:25,104:25,105:[25,20],106:[25,20],107:25,108:25,109:25,110:25,111:[20,25],112:[20,25],113:[20,25],114:[25,20],115:[20,25],116:[25,20],117:[25,20],118:[20,25],119:null,120:[20,25],121:[20,25],122:[20,25],123:25,124:[20,25],125:[20,25],126:25,127:25,128:25,129:null,130:null,131:null,132:25,133:[20,25],134:[20,25],135:[20,25],136:[20,25],137:[20,25],138:[20,25],139:[20,25],140:[20,25],141:[20,25],142:[20,25],143:[20,25],144:[20,25],145:[20,25],146:[20,25],147:[20,25],148:[20,25],149:[20,25],150:[20,25],151:[20,25],152:[20,25],153:[20,25],154:[20,25],155:25,156:25,157:25,158:25,159:25,160:25,161:25,162:25,163:25,164:25,165:25,166:25,167:25,168:25,169:25,170:25,171:25,172:25,173:25,174:25,175:[20,25],176:[20,25],177:[20,25],178:25,179:25,180:25,181:25,182:25,183:25,184:25,185:[20,25],186:25,187:25,188:[20,25],189:[20,25],190:25,191:[20,25],192:[25,20],193:[25,20],194:[20,25],195:[25,20],196:[20,25],197:25,198:[20,25],199:25,200:null,201:[20,25],202:25,203:25,204:25,205:25,206:25,207:[20,25],208:[20,25],209:[20,25],210:[20,25],211:[25,20],212:[25,20],213:[20,25],214:25,215:25,216:25,217:25,218:25,219:25,220:25},{75:[2,18],76:null,77:null,78:[2,18,78],79:[2,18],80:[2,18,78],81:[2,18,78],82:2,83:[2,18],84:[2,18],85:[2,18],86:[2,18],87:[2,18],88:[2,18],89:[2,18],90:[2,18],91:[2,18],92:[2,18],93:[2,18],94:[2,18,94],95:2,96:[2,18,96],97:[2,18],98:[2,52,18],99:[2,18,29],100:[2,18,29,100],101:[2,18,29],102:[2,18,29],103:[2,18,29],104:[2,18,29],105:[2,18,29],106:[2,18,29],107:[2,18,29],108:[2,18,29],109:[2,18,29],110:[2,18,29],111:[2,18],112:[2,18],113:[2,18],114:[2,18,114],115:[2,18,115],116:[2,18],117:[2,18],118:[2,18],119:2,120:[2,18],121:[2,18],122:[2,18],123:[2,18,29],124:[2,18],125:[2,18],126:[2,18,29],127:[2,18,29],128:[2,18,29],129:[2,18],130:[2,18],131:[2,18],132:[2,18],133:2,134:[2,52,18],135:[2,52,18],136:[2,52,18],137:[2,52,18,137],138:[2,52,18],139:[2,52,18],140:[2,52,18],141:[2,52,18],142:[2,52,18],143:[2,52,18],144:[2,52,18],145:[2,52,18],146:[2,52,18],147:[2,52,18],148:2,149:2,150:2,151:2,152:2,153:2,154:[2,52,18],155:[2,18,47],156:[2,18,47],157:[2,18,47],158:[2,18,47],159:[2,18,47],160:[2,18,47],161:[2,18,47],162:[2,18,47],163:[2,18,47],164:[2,18,47],165:[2,18,47],166:[2,18,47],167:[2,18,47],168:[2,18,47],169:[2,18,47],170:[2,18,47],171:[2,18,47],172:[2,18,47],173:[2,18],174:[2,18,47],175:[2,52,18,137],176:[2,52,18,137],177:[2,52,18,137],178:[2,18,29],179:[2,18,29],180:[2,18,29],181:[2,18,29],182:[2,18,29],183:[2,18,29],184:[2,18,29],185:[2,18],186:[2,18],187:[2,18],188:[2,52,18,137],189:[2,52,18,137],190:[2,18,29],191:[2,18],192:[2,18,78],193:[2,18,78],194:[2,18],195:[2,18,78],196:[2,18],197:[2,18],198:[2,18,115],199:[2,18],200:[2,29],201:[2,18,115],202:[2,18],203:[2,18],204:[2,18],205:[2,18],206:[2,18],207:[2,52,18,137],208:[2,18,115],209:[2,18,115],210:[2,18,115],211:[2,18,29],212:[2,18,29],213:[2,18,115],214:[2,18,29],215:[2,18,29],216:[2,18,29],217:[2,18,29],218:[2,18,29],219:[2,18,29],220:[2,18]},{75:2,76:null,77:null,78:[2,78],79:2,80:[2,78],81:[2,78],82:2,83:2,84:2,85:2,86:2,87:2,88:2,89:2,90:2,91:2,92:2,93:2,94:2,95:2,96:[2,96],97:2,98:[2,52],99:[2,29],100:[2,29,100],101:[2,29],102:[2,29],103:[2,29],104:[2,29],105:[2,29],106:[2,29],107:[2,29],108:[2,29],109:[2,29],110:[2,29],111:2,112:2,113:2,114:[2,114],115:[2,115],116:2,117:2,118:2,119:2,120:2,121:2,122:2,123:[2,29],124:2,125:2,126:[2,29],127:[2,29],128:[2,29],129:2,130:2,131:2,132:2,133:2,134:[2,52],135:[2,52],136:[2,52],137:[2,52,137],138:[2,52],139:[2,52],140:[2,52],141:[2,52],142:[2,52],143:[2,52],144:[2,52],145:[2,52],146:[2,52],147:[2,52],148:2,149:2,150:2,151:2,152:2,153:2,154:[2,52],155:[2,47],156:[2,47],157:[2,47],158:[2,47],159:[2,47],160:[2,47],161:[2,47],162:[2,47],163:[2,47],164:[2,47],165:[2,47],166:[2,47],167:[2,47],168:[2,47],169:[2,47],170:[2,47],171:[2,47],172:[2,47],173:2,174:[2,47],175:[2,52,137],176:[2,52,137],177:[2,52,137],178:[2,29],179:[2,29],180:[2,29],181:[2,29],182:[2,29],183:[2,29],184:[2,29],185:2,186:2,187:2,188:[2,52,137],189:[2,52,137],190:[2,29],191:2,192:[2,78],193:[2,78],194:2,195:[2,78],196:2,197:2,198:[2,115],199:2,200:[2,29],201:[2,115],202:2,203:2,204:2,205:2,206:2,207:[2,52,137],208:[2,115],209:[2,115],210:[2,115],211:[2,29],212:[2,29],213:[2,115],214:[2,29],215:[2,29],216:[2,29],217:[2,29],218:[2,29],219:[2,29],220:2},{75:[2,18],76:null,77:null,78:[2,18],79:[2,18],80:[2,18],81:[2,18],82:2,83:[2,18,83],84:[2,18],85:[2,18],86:[2,18],87:[2,18],88:[2,18],89:[2,18],90:[2,18],91:[2,18],92:[2,18],93:[2,18],94:[2,18],95:2,96:[2,18],97:[2,18],98:[2,18],99:[2,18,29,99],100:[2,18,29,100],101:[2,18,29],102:[2,18,29],103:[2,18,29],104:[2,18,29,39],105:[2,18,29,39],106:[2,18,29,39],107:[2,18,29,39],108:[2,18,29],109:[2,18,29],110:[2,18,29],111:[2,18],112:[2,18],113:[2,18],114:[2,18],115:[2,18],116:[2,18],117:[2,18,117],118:[2,18],119:2,120:[2,18],121:[2,18],122:[2,18],123:[2,18,29,39],124:[2,18],125:[2,18],126:[2,18,29],127:[2,18,29],128:[2,18,29,128],129:[2,18],130:[2,18],131:[2,18],132:[2,18,132],133:2,134:[2,18],135:[2,18],136:[2,18],137:[2,18],138:[2,18],139:[2,18],140:[2,18],141:[2,18],142:[2,18],143:[2,18],144:[2,18],145:[2,18],146:[2,18],147:[2,18],148:2,149:2,150:2,151:2,152:2,153:2,154:[2,18],155:[2,18],156:[2,18],157:[2,18],158:[2,18],159:[2,18],160:[2,18],161:[2,18],162:[2,18],163:[2,18],164:[2,18],165:[2,18],166:[2,18],167:[2,18],168:[2,18],169:[2,18],170:[2,18],171:[2,18],172:[2,18],173:[2,18],174:[2,18],175:[2,18],176:[2,18],177:[2,18],178:[2,18,29],179:[2,18,29],180:[2,18,29],181:[2,18,29],182:[2,18,29],183:[2,18,29],184:[2,18,29],185:[2,18],186:[2,18],187:[2,18],188:[2,18],189:[2,18],190:[2,18,29,39],191:[2,18],192:[2,18],193:[2,18],194:[2,18],195:[2,18],196:[2,18],197:[2,18],198:[2,18],199:[2,18],200:[2,29],201:[2,18],202:[2,18],203:[2,18],204:[2,18],205:[2,18],206:[2,18],207:[2,18],208:[2,18],209:[2,18],210:[2,18],211:[2,18,29,39],212:[2,18,29,39],213:[2,18],214:[2,18,29,39],215:[2,18,29,39],216:[2,18,29,39],217:[2,18,29,39],218:[2,18,29,39],219:[2,18,29,39],220:[2,18]},{75:[1,2,20,21],76:1,77:1,78:[1,2,20,21],79:[1,2,20,21],80:[1,2,20,21],81:[1,2,20,21],82:[1,2,82],83:[1,2,20,21],84:[1,2,20,21],85:[1,2,20,21],86:[1,2,20,21],87:[1,2,20,21],88:[1,2,20,21],89:[1,2,20,21],90:[1,2,20,21],91:[1,2,20,21],92:[1,2,20,21],93:[1,2,20,21],94:[1,2,20,21],95:[1,2,20,21],96:[1,2,20,21,96],97:[1,2,20,21],98:[1,2,20,21],99:[1,2],100:[1,2,59],101:[1,2,59],102:[1,2],103:[1,2],104:[1,2,9],105:[1,2,9,20,21],106:[1,2,9,20,21],107:[1,2,9],108:[1,2],109:[1,2,109],110:[1,2],111:[1,2,20,21],112:[1,2,20,21],113:[1,2,20,21],114:[1,2,20,21,114],115:[1,2,20,21],116:[1,2,20,21],117:[1,2,20,21],118:[1,2,20,21,9,118],119:[1,2],120:[1,2,20,21],121:[1,2,20,21],122:[1,2,20,21],123:[1,2,9],124:[1,2,20,21,57],125:[1,2,20,21,58],126:[1,2],127:[1,2],128:[1,2,128],129:[1,2],130:[1,2],131:[1,2,131],132:[1,2,132],133:[1,2,20,21],134:[1,2,20,21],135:[1,2,20,21],136:[1,2,20,21],137:[1,2,20,21,137],138:[1,2,20,21],139:[1,2,20,21],140:[1,2,20,21],141:[1,2,20,21],142:[1,2,20,21],143:[1,2,20,21],144:[1,2,20,21],145:[1,2,20,21],146:[1,2,20,21],147:[1,2,20,21,147],148:[1,2,20,21],149:[1,2,20,21],150:[1,2,20,21],151:[1,2,20,21],152:[1,2,20,21],153:[1,2,20,21],154:[1,2,20,21,51],155:[1,2,47],156:[1,2,47],157:[1,2,47],158:[1,2,47],159:[1,2,47],160:[1,2,47],161:[1,2,47],162:[1,2,47],163:[1,2,47],164:[1,2,47],165:[1,2,47],166:[1,2,47],167:[1,2,47],168:[1,2,47],169:[1,2,47],170:[1,2,47],171:[1,2,47],172:[1,2,47],173:[1,2],174:[1,2,47],175:[1,2,20,21,137,57],176:[1,2,20,21,137,58],177:[1,2,20,21,137],178:[1,2],179:[1,2],180:[1,2],181:[1,2],182:[1,2],183:[1,2],184:[1,2],185:[1,2,20,21],186:[1,2],187:[1,2],188:[1,2,20,21,137],189:[1,2,20,21,137],190:[1,2,9],191:[1,2,20,21],192:[1,2,20,21],193:[1,2,20,21],194:[1,2,20,21],195:[1,2,20,21],196:[1,2,20,21],197:[1,2],198:[1,2,20,21],199:[1,2],200:[1,2],201:[1,2,20,21],202:[1,2],203:[1,2],204:[1,2],205:[1,2],206:[1,2],207:[1,2,20,21,137],208:[1,2,20,21],209:[1,2,20,21],210:[1,2,20,21],211:[1,2,9,20,21],212:[1,2,9,20,21],213:[1,2,20,21],
214:[1,2,9],215:[1,2,9],216:[1,2,9],217:[1,2,9],218:[1,2,9],219:[1,2,9],220:[1,2]},{75:2,76:null,77:null,78:2,79:2,80:2,81:2,82:2,83:2,84:2,85:2,86:2,87:2,88:2,89:2,90:2,91:2,92:2,93:2,94:2,95:2,96:[2,96],97:[2,61],98:2,99:[2,99],100:2,101:2,102:2,103:2,104:2,105:[2,61,68],106:[2,61,68],107:2,108:2,109:2,110:2,111:2,112:2,113:2,114:2,115:2,116:[2,61],117:[2,61],118:[2,118],119:2,120:2,121:2,122:2,123:2,124:2,125:2,126:2,127:2,128:2,129:[2,43,129],130:[2,43,130],131:[2,43,131],132:[2,132],133:2,134:2,135:2,136:2,137:2,138:2,139:2,140:2,141:2,142:2,143:2,144:2,145:2,146:2,147:2,148:2,149:2,150:2,151:2,152:2,153:2,154:[2,51],155:[2,47],156:[2,47],157:[2,47],158:[2,47],159:[2,47],160:[2,47],161:[2,47],162:[2,47],163:[2,47],164:[2,47],165:[2,47],166:[2,47],167:[2,47],168:[2,47],169:[2,47],170:[2,47],171:[2,47],172:[2,47],173:2,174:[2,47],175:2,176:2,177:2,178:2,179:2,180:2,181:2,182:2,183:2,184:2,185:2,186:2,187:[2,43,187],188:2,189:2,190:2,191:2,192:2,193:2,194:2,195:2,196:2,197:2,198:2,199:2,200:2,201:2,202:2,203:2,204:2,205:2,206:2,207:2,208:2,209:2,210:2,211:[2,61,68],212:[2,61,68],213:2,214:2,215:2,216:2,217:2,218:2,219:2,220:2},{75:null,76:null,77:null,78:null,79:null,80:null,81:null,82:null,83:null,84:84,85:[37,85],86:37,87:null,88:37,89:37,90:37,91:37,92:37,93:37,94:null,95:null,96:null,97:null,98:null,99:null,100:null,101:null,102:null,103:null,104:null,105:null,106:null,107:null,108:null,109:null,110:null,111:null,112:null,113:null,114:null,115:null,116:null,117:null,118:null,119:null,120:null,121:null,122:null,123:null,124:null,125:null,126:null,127:null,128:null,129:null,130:null,131:null,132:null,133:null,134:null,135:null,136:null,137:null,138:null,139:null,140:null,141:null,142:null,143:null,144:null,145:null,146:null,147:null,148:null,149:null,150:null,151:null,152:null,153:null,154:null,155:null,156:null,157:null,158:null,159:null,160:null,161:null,162:null,163:null,164:null,165:null,166:null,167:null,168:null,169:null,170:null,171:null,172:null,173:null,174:null,175:null,176:null,177:null,178:null,179:null,180:null,181:null,182:null,183:null,184:null,185:null,186:null,187:null,188:null,189:null,190:null,191:null,192:null,193:null,194:null,195:null,196:null,197:null,198:null,199:null,200:null,201:null,202:null,203:null,204:null,205:null,206:null,207:null,208:null,209:null,210:null,211:null,212:null,213:null,214:null,215:null,216:null,217:null,218:null,219:null,220:null},{75:[2,11,75],76:null,77:null,78:[2,11,78],79:[2,11],80:[2,11,78],81:[2,11,78],82:[2,11],83:2,84:2,85:2,86:2,87:[2,11],88:2,89:2,90:2,91:2,92:2,93:2,94:2,95:2,96:2,97:[2,11],98:2,99:[2,11,14,29,99],100:[2,11,14,29],101:[2,11,14,29],102:[2,11,14,29],103:[2,11,14,29],104:[2,11,14,29,39],105:[2,11,14,29,39],106:[2,11,14,29,39],107:[2,11,14,29,39],108:[2,11,14,29],109:[2,11,14,29],110:[2,11,14,29],111:[2,11],112:[2,11],113:[2,11],114:2,115:[2,11],116:[2,11,116],117:[2,11],118:2,119:[2,11],120:[2,11],121:[2,11],122:[2,11],123:[2,11,14,29,39],124:[2,11],125:[2,11],126:[2,11,14,29],127:[2,11,14,29],128:[2,11,14,29],129:[2,11],130:[2,11],131:[2,11],132:[2,11],133:[2,11],134:2,135:2,136:2,137:2,138:2,139:2,140:2,141:2,142:2,143:2,144:2,145:2,146:2,147:2,148:[2,11],149:[2,11],150:[2,11],151:[2,11],152:[2,11],153:[2,11],154:2,155:[2,11],156:[2,11],157:[2,11],158:[2,11],159:[2,11],160:[2,11],161:[2,11],162:[2,11],163:[2,11],164:[2,11],165:[2,11],166:[2,11],167:[2,11],168:[2,11],169:[2,11],170:[2,11],171:[2,11],172:[2,11],173:2,174:[2,11],175:2,176:2,177:2,178:[2,11,14,29],179:[2,11,14,29],180:[2,11,14,29,180],181:[2,11,14,29],182:[2,11,14,29],183:[2,11,14,29],184:[2,11,14,29],185:2,186:[2,11],187:[2,11],188:2,189:2,190:[2,11,14,29,39],191:[2,11,75],192:[2,11,78],193:[2,11,78],194:[2,11,75],195:[2,11,78],196:[2,11,75],197:2,198:[2,11],199:2,200:[2,14,29],201:[2,11],202:2,203:2,204:2,205:[2,11],206:[2,11],207:2,208:[2,11],209:[2,11],210:[2,11],211:[2,11,14,29,39],212:[2,11,14,29,39],213:[2,11],214:[2,11,14,29,39],215:[2,11,14,29,39],216:[2,11,14,29,39],217:[2,11,14,29,39],218:[2,11,14,29,39],219:[2,11,14,29,39],220:2},{75:[2,13],78:[2,13],79:[2,13],80:[2,13],81:[2,13],82:[2,13],83:2,84:2,85:2,86:2,87:[2,13],88:2,89:2,90:2,91:2,92:2,93:2,94:2,95:2,96:2,97:[2,13],98:[2,3],99:[2,13,3],100:[2,13,3],101:[2,13,3],102:[2,13,3],103:[2,13,3],104:[2,13,3],105:[2,13,3],106:[2,13,3],107:[2,13,3],108:[2,13,3],109:[2,13,3],110:[2,13,3],111:[2,13],112:[2,13],113:[2,13],114:2,115:[2,13],116:[2,13],117:2,118:2,119:[2,13],120:[2,13],121:[2,13],122:[2,13],123:[2,13,3],124:[2,13],125:[2,13],126:[2,13,3],127:[2,13,3],128:[2,13,3],129:[2,13],130:[2,13],131:[2,13],132:[2,13],133:[2,13],134:[2,3],135:[2,3],136:[2,3],137:[2,3],138:[2,3],139:[2,3],140:[2,3],141:[2,3],142:[2,3],143:[2,3],144:[2,3],145:[2,3],146:[2,3],147:[2,3],148:[2,13],149:[2,13],150:[2,13],151:[2,13],152:[2,13],153:[2,13],154:[2,3],155:[2,13],156:[2,13],157:[2,13],158:[2,13],159:[2,13],160:[2,13],161:[2,13],162:[2,13],163:[2,13],164:[2,13],165:[2,13],166:[2,13],167:[2,13],168:[2,13],169:[2,13],170:[2,13],171:[2,13],172:[2,13],173:2,174:[2,13],175:[2,3],176:[2,3],177:[2,3],178:[2,13,3],179:[2,13,3],180:[2,13,3],181:[2,13,3],182:[2,13,3],183:[2,13,3],184:[2,13,3],185:2,186:[2,13],187:[2,13],188:[2,3],189:[2,3],190:[2,13,3],191:[2,13],192:[2,13],193:[2,13],194:[2,13],195:[2,13],196:[2,13],197:2,198:[2,13],199:2,200:[2,3],201:[2,13],202:2,203:2,204:2,205:[2,13],206:[2,13],207:[2,3],208:[2,13],209:[2,13],210:[2,13],211:[2,13,3],212:[2,13,3],213:[2,13],214:[2,13,3],215:[2,13,3],216:[2,13,3],217:[2,13,3],218:[2,13,3],219:[2,13,3],220:2},{75:null,78:null,79:null,80:null,81:null,82:null,83:null,84:null,85:null,86:null,87:null,88:null,89:null,90:null,91:null,92:null,93:null,94:null,95:null,96:null,97:null,98:null,99:null,100:null,101:null,102:null,103:null,104:null,105:null,106:null,107:null,108:null,109:null,110:null,111:111,112:null,113:null,114:null,115:null,116:null,117:null,118:null,119:null,120:null,121:null,122:null,123:null,124:null,125:null,126:null,127:null,128:null,129:null,130:null,131:null,132:null,133:null,134:null,135:null,136:null,137:null,138:null,139:null,140:null,141:null,142:null,143:null,144:null,145:null,146:null,147:null,148:null,149:null,150:null,151:null,152:null,153:null,154:null,155:null,156:null,157:null,158:null,159:null,160:null,161:null,162:null,163:null,164:null,165:null,166:null,167:null,168:null,169:null,170:null,171:null,172:null,173:null,174:null,175:null,176:null,177:null,178:null,179:null,180:null,181:null,182:null,183:null,184:null,185:185,186:null,187:null,188:null,189:null,190:null,191:null,192:null,193:null,194:null,195:null,196:null,197:null,198:null,199:null,200:null,201:null,202:null,203:null,204:null,205:null,206:null,207:null,208:null,209:null,210:null,211:null,212:null,213:null,214:null,215:null,216:null,217:null,218:null,219:null,220:null},{75:66,78:66,79:null,80:66,81:66,82:null,83:null,84:null,85:null,86:null,87:null,88:null,89:null,90:null,91:null,92:null,93:null,94:null,95:null,96:null,97:null,98:null,99:null,100:null,101:null,102:null,103:null,104:null,105:66,106:66,107:null,108:null,109:null,110:null,111:null,112:null,113:null,114:66,115:null,116:null,117:66,118:null,119:null,120:null,121:null,122:null,123:null,124:null,125:null,126:null,127:null,128:null,129:null,130:null,131:null,132:132,133:null,134:null,135:null,136:null,137:null,138:null,139:null,140:null,141:null,142:null,143:null,144:null,145:null,146:null,147:null,148:null,149:null,150:null,151:null,152:null,153:null,154:null,155:null,156:null,157:null,158:null,159:null,160:null,161:null,162:null,163:null,164:66,165:null,166:null,167:null,168:null,169:null,170:null,171:null,172:null,173:null,174:null,175:null,176:null,177:null,178:null,179:null,180:null,181:null,182:null,183:null,184:null,185:null,186:null,187:null,188:null,189:null,190:null,191:66,192:66,193:66,194:66,195:66,196:66,197:null,198:null,199:null,200:null,201:null,202:null,203:null,204:null,205:null,206:null,207:null,208:null,209:null,210:null,211:66,212:66,213:null,214:66,215:66,216:66,217:66,218:66,219:66,220:null},{75:2,78:2,79:2,80:2,81:2,82:2,83:2,84:2,85:2,86:2,87:2,88:2,89:2,90:2,91:2,92:2,93:2,94:2,95:2,96:2,97:2,98:2,99:2,100:2,101:2,102:2,103:2,104:2,105:2,106:2,107:2,108:2,109:2,110:2,111:2,112:2,113:2,114:2,115:2,116:2,117:2,118:2,119:2,120:2,121:2,122:2,123:2,124:2,125:2,126:2,127:2,128:2,129:[2,129],130:[2,130],131:2,132:2,133:2,134:2,135:2,136:2,137:2,138:2,139:2,140:2,141:2,142:2,143:2,144:2,145:2,146:2,147:2,148:2,149:2,150:2,151:2,152:2,153:2,154:2,155:2,156:2,157:2,158:2,159:2,160:2,161:2,162:2,163:2,164:2,165:2,166:2,167:2,168:2,169:2,170:2,171:2,172:2,173:2,174:2,175:2,176:2,177:2,178:2,179:2,180:2,181:2,182:2,183:2,184:2,185:2,186:2,187:2,188:2,189:2,190:2,191:2,192:2,193:2,194:2,195:2,196:2,197:2,198:2,199:2,200:2,201:2,202:2,203:2,204:2,205:2,206:2,207:2,208:2,209:2,210:2,211:2,212:2,213:2,214:2,215:2,216:2,217:2,218:2,219:2,220:2},{75:2,78:2,79:2,80:2,81:2,82:2,83:2,84:2,85:2,86:2,87:2,88:2,89:2,90:2,91:2,92:2,93:2,94:2,95:2,96:2,97:2,98:2,99:2,100:2,101:2,102:2,103:2,104:2,105:2,106:2,107:2,108:2,109:2,110:2,111:2,112:2,113:2,114:2,115:2,116:2,117:2,118:2,119:2,120:2,121:2,122:2,123:2,124:2,125:2,126:2,127:2,128:2,129:[2,129],130:[2,130],131:2,132:2,133:2,134:2,135:2,136:2,137:2,138:2,139:2,140:2,141:2,142:2,143:2,144:2,145:2,146:2,147:2,148:2,149:2,150:2,151:2,152:2,153:2,154:2,155:2,156:2,157:2,158:2,159:2,160:2,161:2,162:2,163:2,164:2,165:2,166:2,167:2,168:2,169:2,170:2,171:2,172:2,173:2,174:2,175:2,176:2,177:2,178:2,179:2,180:2,181:2,182:2,183:2,184:2,185:2,186:2,187:2,188:2,189:2,190:2,191:2,192:2,193:2,194:2,195:2,196:2,197:2,198:2,199:2,200:2,201:2,202:2,203:2,204:2,205:2,206:2,207:2,208:2,209:2,210:2,211:2,212:2,213:2,214:2,215:2,216:2,217:2,218:2,219:2,220:2},{75:[21,75],78:[21,78],79:[21,79],80:[21,78,80],81:[21,78,81],82:null,83:[21,83],84:21,85:21,86:21,87:21,88:21,89:21,90:21,91:21,92:21,93:21,94:21,95:21,96:21,97:21,98:21,99:5,100:5,101:5,102:5,103:5,104:5,105:[5,21],106:[5,21],107:5,108:5,109:5,110:5,111:21,112:21,113:21,114:21,115:21,116:[21,116],117:[21,117],118:21,119:null,120:21,121:21,122:21,123:5,124:[21,57],125:21,126:5,127:5,128:5,129:null,130:null,131:null,132:null,133:21,134:21,135:21,136:[5,21],137:[5,21],138:21,139:21,140:21,141:21,142:21,143:21,144:21,145:21,146:21,147:21,148:21,149:21,150:21,151:21,152:21,153:21,154:[5,21],155:null,156:null,157:null,158:null,159:null,160:null,161:null,162:null,163:null,164:null,165:null,166:null,167:null,168:null,169:null,170:null,171:null,172:null,173:null,174:null,175:[5,21,57],176:[5,21],177:[5,21],178:5,179:5,180:5,181:5,182:5,183:5,184:5,185:[21,185],186:null,187:null,188:[5,21],189:[5,21],190:5,191:[21,75,191],192:[21,78,192],193:[21,78,193],194:[21,75,194],195:[21,78,80],196:[21,75,191],197:null,198:21,199:null,200:5,201:21,202:null,203:null,204:null,205:205,206:205,207:[5,21],208:[21,208],209:[21,5,209],210:21,211:[5,21],212:[5,21],213:[21,5,213],214:5,215:5,216:5,217:5,218:5,219:5,220:null},{75:11,78:11,79:11,80:11,81:11,82:11,87:11,97:11,99:11,100:11,101:11,102:11,103:11,104:11,105:11,106:11,107:11,108:11,109:11,110:11,111:11,112:11,113:11,115:11,116:11,117:[11,117],119:11,120:11,121:11,122:11,123:11,124:11,125:11,126:11,127:11,128:11,129:11,130:11,131:11,132:11,133:11,148:11,149:11,150:11,151:11,152:11,153:11,155:11,156:11,157:11,158:11,159:11,160:11,161:11,162:11,163:11,164:11,165:11,166:11,167:11,168:11,169:11,170:11,171:11,172:11,174:11,178:11,179:11,180:11,181:11,182:11,183:11,184:11,186:11,187:11,190:11,191:11,192:11,193:11,194:11,195:11,196:11,198:11,201:11,205:11,206:11,208:11,209:11,210:11,211:11,212:11,213:11,214:11,215:11,216:11,217:11,218:11,219:11},{75:75,78:78,80:78,81:78,105:null,106:null,114:114,117:117,164:164,191:75,192:78,193:78,194:75,195:78,196:75,211:null,212:null,214:214,215:null,216:null,217:null,218:null,219:null},{82:[24,82],96:[24,96],97:24,98:24,99:24,100:24,101:24,102:24,103:24,104:24,105:24,106:24,107:24,108:24,109:24,110:24,113:24,115:24,118:[24,118],119:24,120:24,123:24,124:24,125:24,126:[24,65],127:[24,65],128:24,129:[24,43],130:[24,43],131:[24,43],132:24,133:24,134:24,135:24,136:24,137:24,138:24,139:24,140:24,141:24,142:24,143:24,144:24,145:24,146:24,147:24,148:24,149:24,150:24,151:24,152:24,153:24,154:24,175:24,176:24,177:24,178:24,179:24,180:24,181:24,182:24,183:24,184:24,187:[24,43],188:24,189:24,190:24,197:24,198:24,199:24,200:24,201:24,202:24,203:24,204:24,205:24,206:24,207:24,208:24,209:24,210:24,211:24,212:24,213:24,214:24,215:24,216:24,217:24,218:24,219:24},{82:[24,82],96:[24,96],97:24,98:24,99:24,100:24,101:24,102:24,103:24,104:24,105:24,106:24,107:24,108:24,109:24,110:24,113:24,115:24,118:[24,118],119:24,120:24,123:24,124:24,125:24,126:[24,65],127:[24,65],128:24,129:[24,43],130:[24,43],131:[24,43],132:24,133:24,134:24,135:24,136:24,137:24,138:24,139:24,140:24,141:24,142:24,143:24,144:24,145:24,146:24,147:24,148:24,149:24,150:24,151:24,152:24,153:24,154:24,175:24,176:24,177:24,178:24,179:24,180:24,181:24,182:24,183:24,184:24,187:[24,43],188:24,189:24,190:24,197:24,198:24,199:24,200:24,201:24,202:24,203:24,204:24,205:24,206:24,207:24,208:24,209:24,210:24,211:24,212:24,213:24,214:24,215:24,216:24,217:24,218:24,219:24},{99:29,100:29,101:29,102:29,103:29,104:29,105:29,106:29,107:29,108:29,109:29,110:29,123:29,126:29,127:29,128:29,136:null,137:null,154:null,175:null,176:null,177:null,178:29,179:29,180:29,181:29,182:29,183:29,184:29,188:null,189:null,190:29,200:29,207:null,209:null,211:29,212:29,213:null,214:29,215:29,216:29,217:29,218:29,219:29},{99:50,100:50,101:50,102:50,103:50,104:null,105:null,106:null,107:null,108:null,109:null,110:null,123:null,126:null,127:null,128:128,178:null,179:null,180:null,181:null,182:null,183:null,184:null,190:null,200:null,211:null,212:null,214:null,215:null,216:null,217:null,218:null,219:null}],aggregatedNames:["onInitializing","onInitialized","onCreation","onDetached","onAttached","onBeforePageOpen","updateInstanceToViewPort","removeInstanceFromViewPort","adjustInstanceToViewPort","switchToPreview","onRemove","onPropertyChange","onPropertiesChanged","changeMobileSupportState","onContentSizeChange","onElementAddedToContainer","addFixedState","removeFixedState","onBoundValueReady","onImageBoxCreated","onDataBindingReady","onChildElementRemoved","onChildElementAdded","onDataSourceRefresh","setItem"]}});

Creat By MiNi SheLL
Email: devilkiller@gmail.com