ibp-max 3.0.92 → 3.0.93

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/bundle.js +1 -1
  2. package/package.json +1 -1
package/bundle.js CHANGED
@@ -1,4 +1,4 @@
1
- function GetFormXml(a){if(0<$(a).find($('input[id^="txtFaxInfo"]')).length&&""!=$(a).find($('input[id^="txtFaxInfo"]')).val())return null;var r=[],i="",o="",s="",l=!0;if($(a).find('*[FormNode="true"]').each(function(){if(o="","checkbox"==$(this).attr("type")){var e="";try{1<$(a).find('input[type="checkbox"][name="'+$(this).attr("name")+'"]:checked').length&&(e=";")}catch(e){}$(a).find('input[type="checkbox"][name="'+$(this).attr("name")+'"]:checked').each(function(){o=o+$(this).val()+e})}else if("radio"==$(this).attr("type"))$(this).is(":checked")&&(o=$(this).val());else if($(this).attr("captcha"))try{var t=$(this).closest(".captcha").find("[captcha-value]"),n='<CaptchaValidator ID="'+t.attr("captcha-id")+'">'+$(this).val()+"</CaptchaValidator>";if(MD5($(this).val()).toLowerCase()!=t.attr("captcha-value").toLowerCase())return l=!1,alert($(this).attr("FormMessage")),!1;r.Captcha=n}catch(e){return l=!1,alert(e),!1}else o=$(this).val();if(isNullOrEmpty(o=IsNotNull(o)?o.trim():o)){if("true"==$(this).attr("Required")||"required"==$(this).attr("Required"))return l=!1,alert($(this).attr("FormMessage")),!1}else{if(""!=$(this).attr("FormType")&&"Email"==$(this).attr("FormType")&&!isValidEmail(o))return l=!1,alert($(this).attr("FormMessage")),!1;if(!isNullOrEmpty($(this).attr("MinLength"))&&parseInt($(this).attr("MinLength"))>o.length)return l=!1,alert($(this).attr("FormMessage")),!1}isNullOrEmpty($(this).attr("Entity"))||isNullOrEmpty($(this).attr("Node"))||(isNullOrEmpty(i=r[$(this).attr("Entity")])&&(r[$(this).attr("Entity")]=""),isNullOrEmpty(o)||(o=o.trim(),s=isNullOrEmpty($(this).attr("label"))?"":' label="'+$(this).attr("label")+'" ',i="<"+$(this).attr("Node")+s+">"+("xml"!=$(this).attr("data-agora-type")?"<![CDATA["+o+"]]>":o)+"</"+$(this).attr("Node")+">",r[$(this).attr("Entity")]+=i),"Lead"===$(this).attr("Entity")&&(t=window.location.href,n=new URL(t),(t=new URLSearchParams(n.search)).has("utm_term")&&(o=t.get("utm_term").trim(),i="<UTMTerm"+(s=' label="UTM Term" ')+">"+("xml"!=$(this).attr("data-agora-type")?"<![CDATA["+o+"]]>":o)+"</UTMTerm>",r[$(this).attr("Entity")]+=i),t.has("tm_corp_partner")&&(o=t.get("tm_corp_partner").trim(),i="<CorporatePartner"+(s=' label="Corporate Partner" ')+">"+("xml"!=$(this).attr("data-agora-type")?"<![CDATA["+o+"]]>":o)+"</CorporatePartner>",r[$(this).attr("Entity")]+=i),t.has("utm_campaign")&&(o=t.get("utm_campaign").trim(),i="<UTMCampaign"+(s=' label="UTM Campaign" ')+">"+("xml"!=$(this).attr("data-agora-type")?"<![CDATA["+o+"]]>":o)+"</UTMCampaign>",r[$(this).attr("Entity")]+=i),t.has("utm_content")&&(o=t.get("utm_content").trim(),i="<UTMContent"+(s=' label="UTM Content" ')+">"+("xml"!=$(this).attr("data-agora-type")?"<![CDATA["+o+"]]>":o)+"</UTMContent>",r[$(this).attr("Entity")]+=i),t.has("utm_medium")&&(o=t.get("utm_medium").trim(),i="<UTMMedium"+(s=' label="UTM Medium" ')+">"+("xml"!=$(this).attr("data-agora-type")?"<![CDATA["+o+"]]>":o)+"</UTMMedium>",r[$(this).attr("Entity")]+=i),t.has("utm_source"))&&(o=t.get("utm_source").trim(),i="<UTMSource"+(s=' label="UTM Source" ')+">"+("xml"!=$(this).attr("data-agora-type")?"<![CDATA["+o+"]]>":o)+"</UTMSource>",r[$(this).attr("Entity")]+=i))}),!l)return null;var e="<d>";for(p=0;p<Object.keys(r).length;p++)e+="<"+Object.keys(r)[p]+">"+r[Object.keys(r)[p]]+"</"+Object.keys(r)[p]+">";return e+="</d>",escape(e)}function composeUrlQuery(e){var t,a,n,r;return null==e?"":(t="",a=new Object,n=$(e.select).add($(e.select).find("[urlidentifier]")),null!=e.nonselect&&null!=e.nonselect&&(n=$(n).not(e.nonselect)),r=$(),$(n).each(function(){var e=((e,t)=>{if(null!=$(e).attr("onesearchname")){var n=e,a=new Array;if($(n).parent().find("[onesearchidentifier]").each(function(){var e=o(this);null!=e&&a.push(e)}),0==a.length||(e=>null!=e&&null!=$(e).attr("multiselectboxid")&&""!=$(e).attr("multiselectboxid"))(n))if(s(n))return o(n);return a}try{return 0<$(t).find(e).length?null:(t=t.add(e),o(e))}catch(e){console.log("Error For Field")}return null})(this,r),t=a;if(null!=e)if(e instanceof Array)for(var n in e)i(e[n],t);else i(e,t)}),t=(e=>{var t,n="";for(t in e){var a,r="{$value}"==t.toLowerCase(),i=r?"/":";",o="",s=null;for(a in e[t])"min"==e[t][a].Operation.toLowerCase()||"max"==e[t][a].Operation.toLowerCase()?(null==s&&(s={Min:0,Max:0}),"min"==e[t][a].Operation.toLowerCase()&&(s.Min=e[t][a].Value),"max"==e[t][a].Operation.toLowerCase()&&(s.Max=e[t][a].Value)):"thes"==e[t][a].Operation.toLowerCase()?o=e[t][a].Value.toString().replace(/[^0-9A-z\\.]/g,";"):o+=e[t][a].Value.toString()+(1<e[t].length&&e[t].length-1>a?i:"");null!=s?r?n="/"+s.Min+(0!=s.Max?"-"+s.Max:"")+n:n+="/"+t+"-"+s.Min+(0!=s.Max?"-"+s.Max:""):r?n="/"+o+n:n+="/"+t+"-"+o}return n})(a),null!=e.additional&&null!=e.additional?e.additional(t):t);function i(e,t){null!=e&&(null==t[e.UrlIdentifier]&&(t[e.UrlIdentifier]=new Array),t[e.UrlIdentifier].push(e))}function o(t){try{if(!s(t))return null}catch(e){console.log("Error For Field Value Check:"+$(t).attr("type"))}try{return{UrlIdentifier:null!=$(t).attr("urlidentifier")?$(t).attr("urlidentifier"):$(t).attr("onesearchidentifier"),Value:(e=>{var t=$(e).val(),n=void 0!==$(e).attr("onesearchidentifier");if("object"!=typeof t)return(null!=$(e).attr("urlidentifier")&&"price"==$(e).attr("urlidentifier")?t.replace(/\,/g,"").replace(/\-/g,"_").replace(/\//g,"!").replace(/\&/,"$").replace(/\@/g,""):(n?t.replace(/\,/g,"@"):t).replace(/\-/g,"_").replace(/\//g,"!").replace(/\&/,"$")).replace(/\#/g,"%23");var a,r="";for(a in t)""!=t[a]&&(r+=(""==r?"":";")+t[a].replace(/\-/g,"_").replace(/\//g,"!").replace(/\,/g,"@").replace(/\&/,"$").replace(/\#/g,"%23"));return r})(t),Operation:null!=$(t).attr("operation")?$(t).attr("operation"):""}}catch(e){console.log("Error For Field Value:"+$(t).prop("tagName"))}return null}function s(e){var t;return null==$(e).attr("type")||"radio"!=$(e).attr("type")&&"checkbox"!=$(e).attr("type")?null!=e&&$(e).is("select")?"object"==typeof(t=$(e).val())?null!=t&&""!=t:""!=t.trim():null!=e&&""!=$(e).val().trim():null!=e&&""!=$(e).val().trim()&&$(e)[0].checked}}function isValidEmail(e){e=IsNotNull(e)?e.trim():e;document.getElementById("txtEmail");return!!/^([a-zA-Z0-9_\.\-\+])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/.test(e)}function isNullOrEmpty(e){return null==e||""==e||"string"==typeof e&&""==e.trim()}function isNotNullOrZero(e){return null!=e&&0<e.length}function isNullOrEmptyControl(e){return null!=e&&(null==$(e).val()||null==$(e).val()||""==$(e).val())}function OpenIWBPopup(e,t,n){isNullOrEmpty(t)||(e+="?"+t),$("#PERFORM_IWB_ACTION_TRIGGER").attr("href",e),$("#PERFORM_IWB_ACTION_TRIGGER").trigger("click"),isNullOrEmpty(n)&&(n=1e3),setTimeout(function(){$("#PERFORM_IWB_ACTION_TRIGGER").trigger("click")},n)}function CloseIWBPopup(){$("#MODAL_ACCESS").foundation("reveal","close")}function OpenPopup(e){isNullOrEmpty(e)&&(e=1e3),setTimeout(function(){$("#PERFORM_ACTION_TRIGGER").trigger("click")},e)}function ClosePopup(){$("#MODAL_ACCESS").foundation("reveal","close")}function getFormattedPrice(e){return"$"+(0<e.toString().length?e.toString().length<=6&&3<e.toString().length?e.toString().substring(0,e.toString().length-3)+"K":6<e.toString().length?e.toString().substring(0,e.toString().length-6)+"."+e.toString().substring(e.toString().length-6,e.toString().length-5)+"M":e.toString():"N/A")}function isMultiLingual(){return null!=$("#MULTILINGUAL")&&null!=$("#MULTILINGUAL")&&!isNullOrEmpty($("#MULTILINGUAL").val())&&"1"==$("#MULTILINGUAL").val()}function getLocale(){return isMultiLingual()?$("#LOCALE").val():""}function InitDataSourceRelation(e,r,i){for(var o=$("#"+e),t=0;t<r.split(",").length;t++){var n=$("#"+r.split(",")[t]);$(n).change(function(){for(var e="",t=(e=(e=(e+="Source="+$(o).attr("Source"))+("&AutoSort="+$(o).attr("AutoSort")))+("&DefaultItem="+$(o).attr("DefaultItem")),"Xml"==$(o).attr("Source")?e=(e+="&XmlFileCode="+$(o).attr("XmlFileCode"))+"&XmlDataListKey="+$(o).attr("XmlDataListKey"):"Database"==$(o).attr("Source")&&(e=(e=(e+="&DataObjectName="+$(o).attr("DataObjectName"))+"&UrlIdentifier="+$(o).attr("UrlIdentifier"))+"&AdditionalWhere="+$(o).attr("AdditionalWhere")),""),n=0;n<r.split(",").length;n++){var a="#"+r.split(",")[n];0<n&&(t+=","),""==$(a).val()?t+=$(a+" input:checked").val():t+=$(a).val()}e+="&ParentValue="+(t=t.replace("undefined","")),$(o).attr("disabled","disabled"),$.ajax({type:"POST",url:"/services/agoraRelationalDataSource.ashx",data:e,dataType:"json",success:function(e){$(o).get(0).options.length=0,$.each(e,function(e,t){$(o).get(0).options[$(o).get(0).options.length]=new Option(t.Value,t.Key)}),$(o).removeAttr("disabled"),null!=i&&i($(o))},statusCode:{404:function(){alert("Service (agoraParentDataSource) not found!")}}})})}}function enterFullScreen(){document.documentElement.requestFullscreen?document.documentElement.requestFullscreen():document.documentElement.mozRequestFullScreen?document.documentElement.mozRequestFullScreen():document.documentElement.webkitRequestFullscreen&&document.documentElement.webkitRequestFullscreen(Element.ALLOW_KEYBOARD_INPUT)}function exitFullScreen(){document.cancelFullScreen?document.cancelFullScreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitCancelFullScreen&&document.webkitCancelFullScreen()}function ShowLoading(){try{$("body").hasClass("is-busy")?$("body").removeClass("is-busy"):$("body").addClass("is-busy")}catch(e){}}((e,t)=>{"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(e.document)return t(e);throw new Error("jQuery requires a window with a document")}:t(e)})(window,function(f,D){function I(e){var t=e.length,n=x.type(e);return"function"!==n&&!x.isWindow(e)&&(!(1!==e.nodeType||!t)||"array"===n||0===t||"number"==typeof t&&0<t&&t-1 in e)}function j(e,n,a){if(x.isFunction(n))return x.grep(e,function(e,t){return!!n.call(e,t,e)!==a});if(n.nodeType)return x.grep(e,function(e){return e===n!==a});if("string"==typeof n){if(ve.test(n))return x.filter(n,e,a);n=x.filter(n,e)}return x.grep(e,function(e){return 0<=r.call(n,e)!==a})}function R(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}function t(){y.removeEventListener("DOMContentLoaded",t,!1),f.removeEventListener("load",t,!1),x.ready()}function e(){Object.defineProperty(this.cache={},0,{get:function(){return{}}}),this.expando=x.expando+Math.random()}function F(e,t,n){var a;if(void 0===n&&1===e.nodeType)if(a="data-"+t.replace($e,"-$1").toLowerCase(),"string"==typeof(n=e.getAttribute(a))){try{n="true"===n||"false"!==n&&("null"===n?null:+n+""===n?+n:ke.test(n)?x.parseJSON(n):n)}catch(e){}p.set(e,t,n)}else n=void 0;return n}function n(){return!0}function s(){return!1}function U(){try{return y.activeElement}catch(e){}}function H(e,t){return x.nodeName(e,"table")&&x.nodeName(11!==t.nodeType?t:t.firstChild,"tr")?e.getElementsByTagName("tbody")[0]||e.appendChild(e.ownerDocument.createElement("tbody")):e}function z(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function B(e){var t=Ie.exec(e.type);return t?e.type=t[1]:e.removeAttribute("type"),e}function G(e,t){for(var n=0,a=e.length;n<a;n++)b.set(e[n],"globalEval",!t||b.get(t[n],"globalEval"))}function W(e,t){var n,a,r,i,o,s;if(1===t.nodeType){if(b.hasData(e)&&(i=b.access(e),o=b.set(t,i),s=i.events))for(r in delete o.handle,o.events={},s)for(n=0,a=s[r].length;n<a;n++)x.event.add(t,r,s[r][n]);p.hasData(e)&&(i=p.access(e),o=x.extend({},i),p.set(t,o))}}function g(e,t){var n=e.getElementsByTagName?e.getElementsByTagName(t||"*"):e.querySelectorAll?e.querySelectorAll(t||"*"):[];return void 0===t||t&&x.nodeName(e,t)?x.merge([e],n):n}function V(e,t){e=x(t.createElement(e)).appendTo(t.body),t=f.getDefaultComputedStyle&&(t=f.getDefaultComputedStyle(e[0]))?t.display:x.css(e[0],"display");return e.detach(),t}function Q(e){var t=y,n=ze[e];return n||("none"!==(n=V(e,t))&&n||((t=(Fe=(Fe||x("<iframe frameborder='0' width='0' height='0'/>")).appendTo(t.documentElement))[0].contentDocument).write(),t.close(),n=V(e,t),Fe.detach()),ze[e]=n),n}function l(e,t,n){var a,r,i=e.style;return(n=n||Re(e))&&(r=n.getPropertyValue(t)||n[t]),n&&(""!==r||x.contains(e.ownerDocument,e)||(r=x.style(e,t)),Ge.test(r))&&Be.test(t)&&(e=i.width,t=i.minWidth,a=i.maxWidth,i.minWidth=i.maxWidth=i.width=r,r=n.width,i.width=e,i.minWidth=t,i.maxWidth=a),void 0!==r?r+"":r}function Y(e,t){return{get:function(){return e()?void delete this.get:(this.get=t).apply(this,arguments)}}}function X(e,t){if(t in e)return t;for(var n=t[0].toUpperCase()+t.slice(1),a=t,r=Je.length;r--;)if((t=Je[r]+n)in e)return t;return a}function K(e,t,n){var a=Qe.exec(t);return a?Math.max(0,a[1]-(n||0))+(a[2]||"px"):t}function J(e,t,n,a,r){for(var i=n===(a?"border":"content")?4:"width"===t?1:0,o=0;i<4;i+=2)"margin"===n&&(o+=x.css(e,n+w[i],!0,r)),a?("content"===n&&(o-=x.css(e,"padding"+w[i],!0,r)),"margin"!==n&&(o-=x.css(e,"border"+w[i]+"Width",!0,r))):(o+=x.css(e,"padding"+w[i],!0,r),"padding"!==n&&(o+=x.css(e,"border"+w[i]+"Width",!0,r)));return o}function Z(e,t,n){var a=!0,r="width"===t?e.offsetWidth:e.offsetHeight,i=Re(e),o="border-box"===x.css(e,"boxSizing",!1,i);if(r<=0||null==r){if(((r=l(e,t,i))<0||null==r)&&(r=e.style[t]),Ge.test(r))return r;a=o&&(m.boxSizingReliable()||r===e.style[t]),r=parseFloat(r)||0}return r+J(e,t,n||(o?"border":"content"),a,i)+"px"}function ee(e,t){for(var n,a,r,i=[],o=0,s=e.length;o<s;o++)(a=e[o]).style&&(i[o]=b.get(a,"olddisplay"),n=a.style.display,t?(i[o]||"none"!==n||(a.style.display=""),""===a.style.display&&v(a)&&(i[o]=b.access(a,"olddisplay",Q(a.nodeName)))):(r=v(a),"none"===n&&r||b.set(a,"olddisplay",r?n:x.css(a,"display"))));for(o=0;o<s;o++)!(a=e[o]).style||t&&"none"!==a.style.display&&""!==a.style.display||(a.style.display=t?i[o]||"":"none");return e}function i(e,t,n,a,r){return new i.prototype.init(e,t,n,a,r)}function te(){return setTimeout(function(){A=void 0}),A=x.now()}function o(e,t){var n,a=0,r={height:e};for(t=t?1:0;a<4;a+=2-t)r["margin"+(n=w[a])]=r["padding"+n]=e;return t&&(r.opacity=r.width=e),r}function ne(e,t,n){for(var a,r=(N[t]||[]).concat(N["*"]),i=0,o=r.length;i<o;i++)if(a=r[i].call(n,t,e))return a}function ae(r,e,t){var n,i,a,o,s,l,c,u=0,d=at.length,h=x.Deferred().always(function(){delete p.elem}),p=function(){if(i)return!1;for(var e=A||te(),e=Math.max(0,f.startTime+f.duration-e),t=1-(e/f.duration||0),n=0,a=f.tweens.length;n<a;n++)f.tweens[n].run(t);return h.notifyWith(r,[f,t,e]),t<1&&a?e:(h.resolveWith(r,[f]),!1)},f=h.promise({elem:r,props:x.extend({},e),opts:x.extend(!0,{specialEasing:{}},t),originalProperties:e,originalOptions:t,startTime:A||te(),duration:t.duration,tweens:[],createTween:function(e,t){t=x.Tween(r,f.opts,e,t,f.opts.specialEasing[e]||f.opts.easing);return f.tweens.push(t),t},stop:function(e){var t=0,n=e?f.tweens.length:0;if(!i){for(i=!0;t<n;t++)f.tweens[t].run(1);e?h.resolveWith(r,[f,e]):h.rejectWith(r,[f,e])}return this}}),g=f.props,m=g,y=f.opts.specialEasing;for(a in m)if(o=x.camelCase(a),s=y[o],l=m[a],x.isArray(l)&&(s=l[1],l=m[a]=l[0]),a!==o&&(m[o]=l,delete m[a]),c=x.cssHooks[o],c&&"expand"in c)for(a in l=c.expand(l),delete m[o],l)a in m||(m[a]=l[a],y[a]=s);else y[o]=s;for(;u<d;u++)if(n=at[u].call(f,r,g,f.opts))return n;return x.map(g,ne,f),x.isFunction(f.opts.start)&&f.opts.start.call(r,f),x.fx.timer(x.extend(p,{elem:r,anim:f,queue:f.opts.queue})),f.progress(f.opts.progress).done(f.opts.done,f.opts.complete).fail(f.opts.fail).always(f.opts.always)}function re(i){return function(e,t){"string"!=typeof e&&(t=e,e="*");var n,a=0,r=e.toLowerCase().match(C)||[];if(x.isFunction(t))for(;n=r[a++];)"+"===n[0]?(n=n.slice(1)||"*",(i[n]=i[n]||[]).unshift(t)):(i[n]=i[n]||[]).push(t)}}function ie(t,a,r,i){function o(e){var n;return s[e]=!0,x.each(t[e]||[],function(e,t){t=t(a,r,i);return"string"!=typeof t||l||s[t]?l?!(n=t):void 0:(a.dataTypes.unshift(t),o(t),!1)}),n}var s={},l=t===yt;return o(a.dataTypes[0])||!s["*"]&&o("*")}function oe(e,t){var n,a,r=x.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((r[n]?e:a=a||{})[n]=t[n]);return a&&x.extend(!0,e,a),e}function se(e){return x.isWindow(e)?e:9===e.nodeType&&e.defaultView}function le(e,t){return t.toUpperCase()}var a=[],u=a.slice,ce=a.concat,ue=a.push,r=a.indexOf,c={},de=c.toString,he=c.hasOwnProperty,m={},y=f.document,x=function(e,t){return new x.fn.init(e,t)},pe=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,fe=/^-ms-/,ge=/-([\da-z])/gi,a=(x.fn=x.prototype={jquery:"2.1.1",constructor:x,selector:"",length:0,toArray:function(){return u.call(this)},get:function(e){return null!=e?e<0?this[e+this.length]:this[e]:u.call(this)},pushStack:function(e){e=x.merge(this.constructor(),e);return e.prevObject=this,e.context=this.context,e},each:function(e,t){return x.each(this,e,t)},map:function(n){return this.pushStack(x.map(this,function(e,t){return n.call(e,t,e)}))},slice:function(){return this.pushStack(u.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(e){var t=this.length,e=+e+(e<0?t:0);return this.pushStack(0<=e&&e<t?[this[e]]:[])},end:function(){return this.prevObject||this.constructor(null)},push:ue,sort:a.sort,splice:a.splice},x.extend=x.fn.extend=function(){var e,t,n,a,r,i=arguments[0]||{},o=1,s=arguments.length,l=!1;for("boolean"==typeof i&&(l=i,i=arguments[o]||{},o++),"object"==typeof i||x.isFunction(i)||(i={}),o===s&&(i=this,o--);o<s;o++)if(null!=(e=arguments[o]))for(t in e)r=i[t],n=e[t],i!==n&&(l&&n&&(x.isPlainObject(n)||(a=x.isArray(n)))?(r=a?(a=!1,r&&x.isArray(r)?r:[]):r&&x.isPlainObject(r)?r:{},i[t]=x.extend(l,r,n)):void 0!==n&&(i[t]=n));return i},x.extend({expando:"jQuery"+("2.1.1"+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isFunction:function(e){return"function"===x.type(e)},isArray:Array.isArray,isWindow:function(e){return null!=e&&e===e.window},isNumeric:function(e){return!x.isArray(e)&&0<=e-parseFloat(e)},isPlainObject:function(e){return!("object"!==x.type(e)||e.nodeType||x.isWindow(e)||e.constructor&&!he.call(e.constructor.prototype,"isPrototypeOf"))},isEmptyObject:function(e){for(var t in e)return!1;return!0},type:function(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?c[de.call(e)]||"object":typeof e},globalEval:function(e){var t,n=eval;(e=x.trim(e))&&(1===e.indexOf("use strict")?((t=y.createElement("script")).text=e,y.head.appendChild(t).parentNode.removeChild(t)):n(e))},camelCase:function(e){return e.replace(fe,"ms-").replace(ge,le)},nodeName:function(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()},each:function(e,t,n){var a,r=0,i=e.length,o=I(e);if(n){if(o)for(;r<i&&!1!==(a=t.apply(e[r],n));r++);else for(r in e)if(a=t.apply(e[r],n),!1===a)break}else if(o)for(;r<i&&!1!==(a=t.call(e[r],r,e[r]));r++);else for(r in e)if(a=t.call(e[r],r,e[r]),!1===a)break;return e},trim:function(e){return null==e?"":(e+"").replace(pe,"")},makeArray:function(e,t){t=t||[];return null!=e&&(I(Object(e))?x.merge(t,"string"==typeof e?[e]:e):ue.call(t,e)),t},inArray:function(e,t,n){return null==t?-1:r.call(t,e,n)},merge:function(e,t){for(var n=+t.length,a=0,r=e.length;a<n;a++)e[r++]=t[a];return e.length=r,e},grep:function(e,t,n){for(var a=[],r=0,i=e.length,o=!n;r<i;r++)!t(e[r],r)!=o&&a.push(e[r]);return a},map:function(e,t,n){var a,r=0,i=e.length,o=[];if(I(e))for(;r<i;r++)null!=(a=t(e[r],r,n))&&o.push(a);else for(r in e)a=t(e[r],r,n),null!=a&&o.push(a);return ce.apply([],o)},guid:1,proxy:function(e,t){var n,a;return"string"==typeof t&&(a=e[t],t=e,e=a),x.isFunction(e)?(n=u.call(arguments,2),(a=function(){return e.apply(t||this,n.concat(u.call(arguments)))}).guid=e.guid=e.guid||x.guid++,a):void 0},now:Date.now,support:m}),x.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(e,t){c["[object "+t+"]"]=t.toLowerCase()}),(D=>{function w(e,t,n,a){var r,i,o,s,l,c,u;if((t?t.ownerDocument||t:$)!==k&&g(t),n=n||[],!e||"string"!=typeof e)return n;if(1!==(r=(t=t||k).nodeType)&&9!==r)return[];if(m&&!a){if(c=ge.exec(e))if(u=c[1]){if(9===r){if(!(s=t.getElementById(u))||!s.parentNode)return n;if(s.id===u)return n.push(s),n}else if(t.ownerDocument&&(s=t.ownerDocument.getElementById(u))&&v(t,s)&&s.id===u)return n.push(s),n}else{if(c[2])return A.apply(n,t.getElementsByTagName(e)),n;if((u=c[3])&&p.getElementsByClassName&&t.getElementsByClassName)return A.apply(n,t.getElementsByClassName(u)),n}if(p.qsa&&(!y||!y.test(e))){if(l=s=b,c=t,u=9===r&&e,1===r&&"object"!==t.nodeName.toLowerCase()){for(o=f(e),(s=t.getAttribute("id"))?l=s.replace(ye,"\\$&"):t.setAttribute("id",l),l="[id='"+l+"'] ",i=o.length;i--;)o[i]=l+h(o[i]);c=me.test(e)&&F(t.parentNode)||t,u=o.join(",")}if(u)try{return A.apply(n,c.querySelectorAll(u)),n}catch(e){}finally{s||t.removeAttribute("id")}}}return Q(e.replace(P,"$1"),t,n,a)}function I(){function n(e,t){return a.push(e+" ")>C.cacheLength&&delete n[a.shift()],n[e+" "]=t}var a=[];return n}function n(e){return e[b]=!0,e}function t(e){var t=k.createElement("div");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t)}}function j(e,t){for(var n=e.split("|"),a=e.length;a--;)C.attrHandle[n[a]]=t}function R(e,t){var n=t&&e,a=n&&1===e.nodeType&&1===t.nodeType&&(~t.sourceIndex||1<<31)-(~e.sourceIndex||1<<31);if(a)return a;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function e(o){return n(function(i){return i=+i,n(function(e,t){for(var n,a=o([],e.length,i),r=a.length;r--;)e[n=a[r]]&&(e[n]=!(t[n]=e[n]))})})}function F(e){return e&&typeof e.getElementsByTagName!==T&&e}function U(){}function h(e){for(var t=0,n=e.length,a="";t<n;t++)a+=e[t].value;return a}function H(o,e,t){var s=e.dir,l=t&&"parentNode"===s,c=Y++;return e.first?function(e,t,n){for(;e=e[s];)if(1===e.nodeType||l)return o(e,t,n)}:function(e,t,n){var a,r,i=[S,c];if(n){for(;e=e[s];)if((1===e.nodeType||l)&&o(e,t,n))return!0}else for(;e=e[s];)if(1===e.nodeType||l){if((a=(r=e[b]||(e[b]={}))[s])&&a[0]===S&&a[1]===c)return i[2]=a[2];if((r[s]=i)[2]=o(e,t,n))return!0}}}function z(r){return 1<r.length?function(e,t,n){for(var a=r.length;a--;)if(!r[a](e,t,n))return!1;return!0}:r[0]}function x(e,t,n,a,r){for(var i,o=[],s=0,l=e.length,c=null!=t;s<l;s++)(i=e[s])&&(!n||n(i,a,r))&&(o.push(i),c)&&t.push(s);return o}function B(p,f,g,m,y,e){return m&&!m[b]&&(m=B(m)),y&&!y[b]&&(y=B(y,e)),n(function(e,t,n,a){var r,i,o,s=[],l=[],c=t.length,u=e||((e,t,n)=>{for(var a=0,r=t.length;a<r;a++)w(e,t[a],n);return n})(f||"*",n.nodeType?[n]:n,[]),d=!p||!e&&f?u:x(u,s,p,n,a),h=g?y||(e?p:c||m)?[]:t:d;if(g&&g(d,h,n,a),m)for(r=x(h,l),m(r,[],n,a),i=r.length;i--;)(o=r[i])&&(h[l[i]]=!(d[l[i]]=o));if(e){if(y||p){if(y){for(r=[],i=h.length;i--;)(o=h[i])&&r.push(d[i]=o);y(null,h=[],r,a)}for(i=h.length;i--;)(o=h[i])&&-1<(r=y?_.call(e,o):s[i])&&(e[r]=!(t[r]=o))}}else h=x(h===t?h.splice(c,h.length):h),y?y(null,t,h,a):A.apply(t,h)})}function G(m,y){function e(e,t,n,a,r){var i,o,s,l=0,c="0",u=e&&[],d=[],h=E,p=e||b&&C.find.TAG("*",r),f=S+=null==h?1:Math.random()||.1,g=p.length;for(r&&(E=t!==k&&t);c!==g&&null!=(i=p[c]);c++){if(b&&i){for(o=0;s=m[o++];)if(s(i,t,n)){a.push(i);break}r&&(S=f)}v&&((i=!s&&i)&&l--,e)&&u.push(i)}if(l+=c,v&&c!==l){for(o=0;s=y[o++];)s(u,d,t,n);if(e){if(0<l)for(;c--;)u[c]||d[c]||(d[c]=te.call(a));d=x(d)}A.apply(a,d),r&&!e&&0<d.length&&1<l+y.length&&w.uniqueSort(a)}return r&&(S=f,E=h),u}var v=0<y.length,b=0<m.length;return v?n(e):e}function d(e,t,n){var a="0x"+t-65536;return a!=a||n?t:a<0?String.fromCharCode(65536+a):String.fromCharCode(a>>10|55296,1023&a|56320)}var a,p,C,i,W,f,V,Q,E,c,u,g,k,r,m,y,o,s,v,b="sizzle"+-new Date,$=D.document,S=0,Y=0,X=I(),K=I(),J=I(),Z=function(e,t){return e===t&&(u=!0),0},T="undefined",ee={}.hasOwnProperty,l=[],te=l.pop,ne=l.push,A=l.push,ae=l.slice,_=l.indexOf||function(e){for(var t=0,n=this.length;t<n;t++)if(this[t]===e)return t;return-1},re="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",L="[\\x20\\t\\r\\n\\f]",N="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",ie=N.replace("w","w#"),oe="\\["+L+"*("+N+")(?:"+L+"*([*^$|!~]?=)"+L+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+ie+"))|)"+L+"*\\]",se=":("+N+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+oe+")*)|.*)\\)|)",P=new RegExp("^"+L+"+|((?:^|[^\\\\])(?:\\\\.)*)"+L+"+$","g"),le=new RegExp("^"+L+"*,"+L+"*"),ce=new RegExp("^"+L+"*([>+~]|"+L+")"+L+"*"),ue=new RegExp("="+L+"*([^\\]'\"]*?)"+L+"*\\]","g"),de=new RegExp(se),he=new RegExp("^"+ie+"$"),M={ID:new RegExp("^#("+N+")"),CLASS:new RegExp("^\\.("+N+")"),TAG:new RegExp("^("+N.replace("w","w*")+")"),ATTR:new RegExp("^"+oe),PSEUDO:new RegExp("^"+se),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+L+"*(even|odd|(([+-]|)(\\d*)n|)"+L+"*(?:([+-]|)"+L+"*(\\d+)|))"+L+"*\\)|)","i"),bool:new RegExp("^(?:"+re+")$","i"),needsContext:new RegExp("^"+L+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+L+"*((?:-\\d)?\\d*)"+L+"*\\)|)(?=[^-]|$)","i")},pe=/^(?:input|select|textarea|button)$/i,fe=/^h\d$/i,O=/^[^{]+\{\s*\[native \w/,ge=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,me=/[+~]/,ye=/'|\\/g,q=new RegExp("\\\\([\\da-f]{1,6}"+L+"?|("+L+")|.)","ig");try{A.apply(l=ae.call($.childNodes),$.childNodes),l[$.childNodes.length].nodeType}catch(e){A={apply:l.length?function(e,t){ne.apply(e,ae.call(t))}:function(e,t){for(var n=e.length,a=0;e[n++]=t[a++];);e.length=n-1}}}for(a in p=w.support={},W=w.isXML=function(e){e=e&&(e.ownerDocument||e).documentElement;return!!e&&"HTML"!==e.nodeName},g=w.setDocument=function(e){var l=e?e.ownerDocument||e:$,e=l.defaultView;return l!==k&&9===l.nodeType&&l.documentElement?(r=(k=l).documentElement,m=!W(l),e&&e!==e.top&&(e.addEventListener?e.addEventListener("unload",function(){g()},!1):e.attachEvent&&e.attachEvent("onunload",function(){g()})),p.attributes=t(function(e){return e.className="i",!e.getAttribute("className")}),p.getElementsByTagName=t(function(e){return e.appendChild(l.createComment("")),!e.getElementsByTagName("*").length}),p.getElementsByClassName=O.test(l.getElementsByClassName)&&t(function(e){return e.innerHTML="<div class='a'></div><div class='a i'></div>",e.firstChild.className="i",2===e.getElementsByClassName("i").length}),p.getById=t(function(e){return r.appendChild(e).id=b,!l.getElementsByName||!l.getElementsByName(b).length}),p.getById?(C.find.ID=function(e,t){if(typeof t.getElementById!==T&&m)return(t=t.getElementById(e))&&t.parentNode?[t]:[]},C.filter.ID=function(e){var t=e.replace(q,d);return function(e){return e.getAttribute("id")===t}}):(delete C.find.ID,C.filter.ID=function(e){var t=e.replace(q,d);return function(e){e=typeof e.getAttributeNode!==T&&e.getAttributeNode("id");return e&&e.value===t}}),C.find.TAG=p.getElementsByTagName?function(e,t){return typeof t.getElementsByTagName!==T?t.getElementsByTagName(e):void 0}:function(e,t){var n,a=[],r=0,i=t.getElementsByTagName(e);if("*"!==e)return i;for(;n=i[r++];)1===n.nodeType&&a.push(n);return a},C.find.CLASS=p.getElementsByClassName&&function(e,t){return typeof t.getElementsByClassName!==T&&m?t.getElementsByClassName(e):void 0},o=[],y=[],(p.qsa=O.test(l.querySelectorAll))&&(t(function(e){e.innerHTML="<select msallowclip=''><option selected=''></option></select>",e.querySelectorAll("[msallowclip^='']").length&&y.push("[*^$]="+L+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||y.push("\\["+L+"*(?:value|"+re+")"),e.querySelectorAll(":checked").length||y.push(":checked")}),t(function(e){var t=l.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&y.push("name"+L+"*[*^$|!~]?="),e.querySelectorAll(":enabled").length||y.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),y.push(",.*:")})),(p.matchesSelector=O.test(s=r.matches||r.webkitMatchesSelector||r.mozMatchesSelector||r.oMatchesSelector||r.msMatchesSelector))&&t(function(e){p.disconnectedMatch=s.call(e,"div"),s.call(e,"[s!='']:x"),o.push("!=",se)}),y=y.length&&new RegExp(y.join("|")),o=o.length&&new RegExp(o.join("|")),e=O.test(r.compareDocumentPosition),v=e||O.test(r.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,t=t&&t.parentNode;return e===t||!(!t||1!==t.nodeType||!(n.contains?n.contains(t):e.compareDocumentPosition&&16&e.compareDocumentPosition(t)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},Z=e?function(e,t){var n;return e===t?(u=!0,0):(n=!e.compareDocumentPosition-!t.compareDocumentPosition)||(1&(n=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!p.sortDetached&&t.compareDocumentPosition(e)===n?e===l||e.ownerDocument===$&&v($,e)?-1:t===l||t.ownerDocument===$&&v($,t)?1:c?_.call(c,e)-_.call(c,t):0:4&n?-1:1)}:function(e,t){if(e===t)return u=!0,0;var n,a=0,r=e.parentNode,i=t.parentNode,o=[e],s=[t];if(!r||!i)return e===l?-1:t===l?1:r?-1:i?1:c?_.call(c,e)-_.call(c,t):0;if(r===i)return R(e,t);for(n=e;n=n.parentNode;)o.unshift(n);for(n=t;n=n.parentNode;)s.unshift(n);for(;o[a]===s[a];)a++;return a?R(o[a],s[a]):o[a]===$?-1:s[a]===$?1:0},l):k},w.matches=function(e,t){return w(e,null,null,t)},w.matchesSelector=function(e,t){if((e.ownerDocument||e)!==k&&g(e),t=t.replace(ue,"='$1']"),!(!p.matchesSelector||!m||o&&o.test(t)||y&&y.test(t)))try{var n=s.call(e,t);if(n||p.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(e){}return 0<w(t,k,null,[e]).length},w.contains=function(e,t){return(e.ownerDocument||e)!==k&&g(e),v(e,t)},w.attr=function(e,t){(e.ownerDocument||e)!==k&&g(e);var n=C.attrHandle[t.toLowerCase()],n=n&&ee.call(C.attrHandle,t.toLowerCase())?n(e,t,!m):void 0;return void 0!==n?n:p.attributes||!m?e.getAttribute(t):(n=e.getAttributeNode(t))&&n.specified?n.value:null},w.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},w.uniqueSort=function(e){var t,n=[],a=0,r=0;if(u=!p.detectDuplicates,c=!p.sortStable&&e.slice(0),e.sort(Z),u){for(;t=e[r++];)t===e[r]&&(a=n.push(r));for(;a--;)e.splice(n[a],1)}return c=null,e},i=w.getText=function(e){var t,n="",a=0,r=e.nodeType;if(r){if(1===r||9===r||11===r){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=i(e)}else if(3===r||4===r)return e.nodeValue}else for(;t=e[a++];)n+=i(t);return n},(C=w.selectors={cacheLength:50,createPseudo:n,match:M,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(q,d),e[3]=(e[3]||e[4]||e[5]||"").replace(q,d),"~="===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]||w.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]&&w.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return M.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&de.test(n)&&(t=(t=f(n,!0))&&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(q,d).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=X[e+" "];return t||(t=new RegExp("(^|"+L+")"+e+"("+L+"|$)"))&&X(e,function(e){return t.test("string"==typeof e.className&&e.className||typeof e.getAttribute!==T&&e.getAttribute("class")||"")})},ATTR:function(t,n,a){return function(e){e=w.attr(e,t);return null==e?"!="===n:!n||(e+="","="===n?e===a:"!="===n?e!==a:"^="===n?a&&0===e.indexOf(a):"*="===n?a&&-1<e.indexOf(a):"$="===n?a&&e.slice(-a.length)===a:"~="===n?-1<(" "+e+" ").indexOf(a):"|="===n&&(e===a||e.slice(0,a.length+1)===a+"-"))}},CHILD:function(p,e,t,f,g){var m="nth"!==p.slice(0,3),y="last"!==p.slice(-4),v="of-type"===e;return 1===f&&0===g?function(e){return!!e.parentNode}:function(e,t,n){var a,r,i,o,s,l,c=m!=y?"nextSibling":"previousSibling",u=e.parentNode,d=v&&e.nodeName.toLowerCase(),h=!n&&!v;if(u){if(m){for(;c;){for(i=e;i=i[c];)if(v?i.nodeName.toLowerCase()===d:1===i.nodeType)return!1;l=c="only"===p&&!l&&"nextSibling"}return!0}if(l=[y?u.firstChild:u.lastChild],y&&h){for(s=(a=(r=u[b]||(u[b]={}))[p]||[])[0]===S&&a[1],o=a[0]===S&&a[2],i=s&&u.childNodes[s];i=++s&&i&&i[c]||(o=s=0,l.pop());)if(1===i.nodeType&&++o&&i===e){r[p]=[S,s,o];break}}else if(h&&(a=(e[b]||(e[b]={}))[p])&&a[0]===S)o=a[1];else for(;(i=++s&&i&&i[c]||(o=s=0,l.pop()))&&((v?i.nodeName.toLowerCase()!==d:1!==i.nodeType)||!++o||(h&&((i[b]||(i[b]={}))[p]=[S,o]),i!==e)););return(o-=g)===f||o%f==0&&0<=o/f}}},PSEUDO:function(e,i){var t,o=C.pseudos[e]||C.setFilters[e.toLowerCase()]||w.error("unsupported pseudo: "+e);return o[b]?o(i):1<o.length?(t=[e,e,"",i],C.setFilters.hasOwnProperty(e.toLowerCase())?n(function(e,t){for(var n,a=o(e,i),r=a.length;r--;)e[n=_.call(e,a[r])]=!(t[n]=a[r])}):function(e){return o(e,0,t)}):o}},pseudos:{not:n(function(e){var a=[],r=[],s=V(e.replace(P,"$1"));return s[b]?n(function(e,t,n,a){for(var r,i=s(e,null,a,[]),o=e.length;o--;)(r=i[o])&&(e[o]=!(t[o]=r))}):function(e,t,n){return a[0]=e,s(a,null,n,r),!r.pop()}}),has:n(function(t){return function(e){return 0<w(t,e).length}}),contains:n(function(t){return function(e){return-1<(e.textContent||e.innerText||i(e)).indexOf(t)}}),lang:n(function(n){return he.test(n||"")||w.error("unsupported lang: "+n),n=n.replace(q,d).toLowerCase(),function(e){var t;do{if(t=m?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return(t=t.toLowerCase())===n||0===t.indexOf(n+"-")}while((e=e.parentNode)&&1===e.nodeType);return!1}}),target:function(e){var t=D.location&&D.location.hash;return t&&t.slice(1)===e.id},root:function(e){return e===r},focus:function(e){return e===k.activeElement&&(!k.hasFocus||k.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:function(e){return!1===e.disabled},disabled:function(e){return!0===e.disabled},checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!C.pseudos.empty(e)},header:function(e){return fe.test(e.nodeName)},input:function(e){return pe.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(e=e.getAttribute("type"))||"text"===e.toLowerCase())},first:e(function(){return[0]}),last:e(function(e,t){return[t-1]}),eq:e(function(e,t,n){return[n<0?n+t:n]}),even:e(function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e}),odd:e(function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e}),lt:e(function(e,t,n){for(var a=n<0?n+t:n;0<=--a;)e.push(a);return e}),gt:e(function(e,t,n){for(var a=n<0?n+t:n;++a<t;)e.push(a);return e})}}).pseudos.nth=C.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})C.pseudos[a]=(t=>function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t})(a);for(a in{submit:!0,reset:!0})C.pseudos[a]=(n=>function(e){var t=e.nodeName.toLowerCase();return("input"===t||"button"===t)&&e.type===n})(a);return U.prototype=C.filters=C.pseudos,C.setFilters=new U,f=w.tokenize=function(e,t){var n,a,r,i,o,s,l,c=K[e+" "];if(c)return t?0:c.slice(0);for(o=e,s=[],l=C.preFilter;o;){for(i in n&&!(a=le.exec(o))||(a&&(o=o.slice(a[0].length)||o),s.push(r=[])),n=!1,(a=ce.exec(o))&&(n=a.shift(),r.push({value:n,type:a[0].replace(P," ")}),o=o.slice(n.length)),C.filter)!(a=M[i].exec(o))||l[i]&&!(a=l[i](a))||(n=a.shift(),r.push({value:n,type:i,matches:a}),o=o.slice(n.length));if(!n)break}return t?o.length:o?w.error(e):K(e,s).slice(0)},V=w.compile=function(e,t){var n,a=[],r=[],i=J[e+" "];if(!i){for(n=(t=t||f(e)).length;n--;)((i=function e(t){for(var a,n,r,i=t.length,o=C.relative[t[0].type],s=o||C.relative[" "],l=o?1:0,c=H(function(e){return e===a},s,!0),u=H(function(e){return-1<_.call(a,e)},s,!0),d=[function(e,t,n){return!o&&(n||t!==E)||((a=t).nodeType?c:u)(e,t,n)}];l<i;l++)if(n=C.relative[t[l].type])d=[H(z(d),n)];else{if((n=C.filter[t[l].type].apply(null,t[l].matches))[b]){for(r=++l;r<i&&!C.relative[t[r].type];r++);return B(1<l&&z(d),1<l&&h(t.slice(0,l-1).concat({value:" "===t[l-2].type?"*":""})).replace(P,"$1"),n,l<r&&e(t.slice(l,r)),r<i&&e(t=t.slice(r)),r<i&&h(t))}d.push(n)}return z(d)}(t[n]))[b]?a:r).push(i);(i=J(e,G(r,a))).selector=e}return i},Q=w.select=function(e,t,n,a){var r,i,o,s,l,c="function"==typeof e&&e,u=!a&&f(e=c.selector||e);if(n=n||[],1===u.length){if(2<(i=u[0]=u[0].slice(0)).length&&"ID"===(o=i[0]).type&&p.getById&&9===t.nodeType&&m&&C.relative[i[1].type]){if(!(t=(C.find.ID(o.matches[0].replace(q,d),t)||[])[0]))return n;c&&(t=t.parentNode),e=e.slice(i.shift().value.length)}for(r=M.needsContext.test(e)?0:i.length;r--&&(o=i[r],!C.relative[s=o.type]);)if((l=C.find[s])&&(a=l(o.matches[0].replace(q,d),me.test(i[0].type)&&F(t.parentNode)||t))){if(i.splice(r,1),e=a.length&&h(i))break;return A.apply(n,a),n}}return(c||V(e,u))(a,t,!m,n,me.test(e)&&F(t.parentNode)||t),n},p.sortStable=b.split("").sort(Z).join("")===b,p.detectDuplicates=!!u,g(),p.sortDetached=t(function(e){return 1&e.compareDocumentPosition(k.createElement("div"))}),t(function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")})||j("type|href|height|width",function(e,t,n){return n?void 0:e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),p.attributes&&t(function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||j("value",function(e,t,n){return n||"input"!==e.nodeName.toLowerCase()?void 0:e.defaultValue}),t(function(e){return null==e.getAttribute("disabled")})||j(re,function(e,t,n){return n?void 0:!0===e[t]?t.toLowerCase():(n=e.getAttributeNode(t))&&n.specified?n.value:null}),w})(f)),me=(x.find=a,x.expr=a.selectors,x.expr[":"]=x.expr.pseudos,x.unique=a.uniqueSort,x.text=a.getText,x.isXMLDoc=a.isXML,x.contains=a.contains,x.expr.match.needsContext),ye=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,ve=/^.[^:#\[\.,]*$/;x.filter=function(e,t,n){var a=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===a.nodeType?x.find.matchesSelector(a,e)?[a]:[]:x.find.matches(e,x.grep(t,function(e){return 1===e.nodeType}))},x.fn.extend({find:function(e){var t,n=this.length,a=[],r=this;if("string"!=typeof e)return this.pushStack(x(e).filter(function(){for(t=0;t<n;t++)if(x.contains(r[t],this))return!0}));for(t=0;t<n;t++)x.find(e,r[t],a);return(a=this.pushStack(1<n?x.unique(a):a)).selector=this.selector?this.selector+" "+e:e,a},filter:function(e){return this.pushStack(j(this,e||[],!1))},not:function(e){return this.pushStack(j(this,e||[],!0))},is:function(e){return!!j(this,"string"==typeof e&&me.test(e)?x(e):e||[],!1).length}});function v(e,t){return"none"===x.css(e=t||e,"display")||!x.contains(e.ownerDocument,e)}var d,be,we=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,xe=((x.fn.init=function(e,t){var n,a;if(e){if("string"!=typeof e)return e.nodeType?(this.context=this[0]=e,this.length=1,this):x.isFunction(e)?void 0!==d.ready?d.ready(e):e(x):(void 0!==e.selector&&(this.selector=e.selector,this.context=e.context),x.makeArray(e,this));if(!(n="<"===e[0]&&">"===e[e.length-1]&&3<=e.length?[null,e,null]:we.exec(e))||!n[1]&&t)return(!t||t.jquery?t||d:this.constructor(t)).find(e);if(n[1]){if(t=t instanceof x?t[0]:t,x.merge(this,x.parseHTML(n[1],t&&t.nodeType?t.ownerDocument||t:y,!0)),ye.test(n[1])&&x.isPlainObject(t))for(n in t)x.isFunction(this[n])?this[n](t[n]):this.attr(n,t[n])}else(a=y.getElementById(n[2]))&&a.parentNode&&(this.length=1,this[0]=a),this.context=y,this.selector=e}return this}).prototype=x.fn,d=x(y),/^(?:parents|prev(?:Until|All))/),Ce={children:!0,contents:!0,next:!0,prev:!0},C=(x.extend({dir:function(e,t,n){for(var a=[],r=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(r&&x(e).is(n))break;a.push(e)}return a},sibling:function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n}}),x.fn.extend({has:function(e){var t=x(e,this),n=t.length;return this.filter(function(){for(var e=0;e<n;e++)if(x.contains(this,t[e]))return!0})},closest:function(e,t){for(var n,a=0,r=this.length,i=[],o=me.test(e)||"string"!=typeof e?x(e,t||this.context):0;a<r;a++)for(n=this[a];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(o?-1<o.index(n):1===n.nodeType&&x.find.matchesSelector(n,e))){i.push(n);break}return this.pushStack(1<i.length?x.unique(i):i)},index:function(e){return e?"string"==typeof e?r.call(x(e),this[0]):r.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(x.unique(x.merge(this.get(),x(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),x.each({parent:function(e){e=e.parentNode;return e&&11!==e.nodeType?e:null},parents:function(e){return x.dir(e,"parentNode")},parentsUntil:function(e,t,n){return x.dir(e,"parentNode",n)},next:function(e){return R(e,"nextSibling")},prev:function(e){return R(e,"previousSibling")},nextAll:function(e){return x.dir(e,"nextSibling")},prevAll:function(e){return x.dir(e,"previousSibling")},nextUntil:function(e,t,n){return x.dir(e,"nextSibling",n)},prevUntil:function(e,t,n){return x.dir(e,"previousSibling",n)},siblings:function(e){return x.sibling((e.parentNode||{}).firstChild,e)},children:function(e){return x.sibling(e.firstChild)},contents:function(e){return e.contentDocument||x.merge([],e.childNodes)}},function(a,r){x.fn[a]=function(e,t){var n=x.map(this,r,e);return(t="Until"!==a.slice(-5)?e:t)&&"string"==typeof t&&(n=x.filter(t,n)),1<this.length&&(Ce[a]||x.unique(n),xe.test(a))&&n.reverse(),this.pushStack(n)}}),/\S+/g),Ee={},h=(x.Callbacks=function(r){var e,n;r="string"==typeof r?Ee[r]||(n=Ee[e=r]={},x.each(e.match(C)||[],function(e,t){n[t]=!0}),n):x.extend({},r);function a(e){for(t=r.memory&&e,i=!0,c=s||0,s=0,l=u.length,o=!0;u&&c<l;c++)if(!1===u[c].apply(e[0],e[1])&&r.stopOnFalse){t=!1;break}o=!1,u&&(d?d.length&&a(d.shift()):t?u=[]:h.disable())}var t,i,o,s,l,c,u=[],d=!r.once&&[],h={add:function(){var e;return u&&(e=u.length,function a(e){x.each(e,function(e,t){var n=x.type(t);"function"===n?r.unique&&h.has(t)||u.push(t):t&&t.length&&"string"!==n&&a(t)})}(arguments),o?l=u.length:t&&(s=e,a(t))),this},remove:function(){return u&&x.each(arguments,function(e,t){for(var n;-1<(n=x.inArray(t,u,n));)u.splice(n,1),o&&(n<=l&&l--,n<=c)&&c--}),this},has:function(e){return e?-1<x.inArray(e,u):!(!u||!u.length)},empty:function(){return u=[],l=0,this},disable:function(){return u=d=t=void 0,this},disabled:function(){return!u},lock:function(){return d=void 0,t||h.disable(),this},locked:function(){return!d},fireWith:function(e,t){return!u||i&&!d||(t=[e,(t=t||[]).slice?t.slice():t],o?d.push(t):a(t)),this},fire:function(){return h.fireWith(this,arguments),this},fired:function(){return!!i}};return h},x.extend({Deferred:function(e){var i=[["resolve","done",x.Callbacks("once memory"),"resolved"],["reject","fail",x.Callbacks("once memory"),"rejected"],["notify","progress",x.Callbacks("memory")]],r="pending",o={state:function(){return r},always:function(){return s.done(arguments).fail(arguments),this},then:function(){var r=arguments;return x.Deferred(function(a){x.each(i,function(e,t){var n=x.isFunction(r[e])&&r[e];s[t[1]](function(){var e=n&&n.apply(this,arguments);e&&x.isFunction(e.promise)?e.promise().done(a.resolve).fail(a.reject).progress(a.notify):a[t[0]+"With"](this===o?a.promise():this,n?[e]:arguments)})}),r=null}).promise()},promise:function(e){return null!=e?x.extend(e,o):o}},s={};return o.pipe=o.then,x.each(i,function(e,t){var n=t[2],a=t[3];o[t[1]]=n.add,a&&n.add(function(){r=a},i[1^e][2].disable,i[2][2].lock),s[t[0]]=function(){return s[t[0]+"With"](this===s?o:this,arguments),this},s[t[0]+"With"]=n.fireWith}),o.promise(s),e&&e.call(s,s),s},when:function(e){function t(t,n,a){return function(e){n[t]=this,a[t]=1<arguments.length?u.call(arguments):e,a===r?c.notifyWith(n,a):--l||c.resolveWith(n,a)}}var r,n,a,i=0,o=u.call(arguments),s=o.length,l=1!==s||e&&x.isFunction(e.promise)?s:0,c=1===l?e:x.Deferred();if(1<s)for(r=new Array(s),n=new Array(s),a=new Array(s);i<s;i++)o[i]&&x.isFunction(o[i].promise)?o[i].promise().done(t(i,a,o)).fail(c.reject).progress(t(i,n,r)):--l;return l||c.resolveWith(a,o),c.promise()}}),x.fn.ready=function(e){return x.ready.promise().done(e),this},x.extend({isReady:!1,readyWait:1,holdReady:function(e){e?x.readyWait++:x.ready(!0)},ready:function(e){(!0===e?--x.readyWait:x.isReady)||(x.isReady=!0)!==e&&0<--x.readyWait||(be.resolveWith(y,[x]),x.fn.triggerHandler&&(x(y).triggerHandler("ready"),x(y).off("ready")))}}),x.ready.promise=function(e){return be||(be=x.Deferred(),"complete"===y.readyState?setTimeout(x.ready):(y.addEventListener("DOMContentLoaded",t,!1),f.addEventListener("load",t,!1))),be.promise(e)},x.ready.promise(),x.access=function(e,t,n,a,r,i,o){var s=0,l=e.length,c=null==n;if("object"===x.type(n))for(s in r=!0,n)x.access(e,t,s,n[s],!0,i,o);else if(void 0!==a&&(r=!0,x.isFunction(a)||(o=!0),t=c?o?(t.call(e,a),null):(c=t,function(e,t,n){return c.call(x(e),n)}):t))for(;s<l;s++)t(e[s],n,o?a:a.call(e[s],s,t(e[s],n)));return r?e:c?t.call(e):l?t(e[0],n):i}),b=(x.acceptData=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType},e.uid=1,e.accepts=x.acceptData,e.prototype={key:function(t){if(!e.accepts(t))return 0;var n={},a=t[this.expando];if(!a){a=e.uid++;try{n[this.expando]={value:a},Object.defineProperties(t,n)}catch(e){n[this.expando]=a,x.extend(t,n)}}return this.cache[a]||(this.cache[a]={}),a},set:function(e,t,n){var a,e=this.key(e),r=this.cache[e];if("string"==typeof t)r[t]=n;else if(x.isEmptyObject(r))x.extend(this.cache[e],t);else for(a in t)r[a]=t[a];return r},get:function(e,t){e=this.cache[this.key(e)];return void 0===t?e:e[t]},access:function(e,t,n){var a;return void 0===t||t&&"string"==typeof t&&void 0===n?void 0!==(a=this.get(e,t))?a:this.get(e,x.camelCase(t)):(this.set(e,t,n),void 0!==n?n:t)},remove:function(e,t){var n,a,e=this.key(e),r=this.cache[e];if(void 0===t)this.cache[e]={};else{n=(a=x.isArray(t)?t.concat(t.map(x.camelCase)):(e=x.camelCase(t),t in r?[t,e]:(a=e)in r?[a]:a.match(C)||[])).length;for(;n--;)delete r[a[n]]}},hasData:function(e){return!x.isEmptyObject(this.cache[e[this.expando]]||{})},discard:function(e){e[this.expando]&&delete this.cache[e[this.expando]]}},new e),p=new e,ke=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,$e=/([A-Z])/g,a=(x.extend({hasData:function(e){return p.hasData(e)||b.hasData(e)},data:function(e,t,n){return p.access(e,t,n)},removeData:function(e,t){p.remove(e,t)},_data:function(e,t,n){return b.access(e,t,n)},_removeData:function(e,t){b.remove(e,t)}}),x.fn.extend({data:function(a,e){var t,n,r,i=this[0],o=i&&i.attributes;if(void 0!==a)return"object"==typeof a?this.each(function(){p.set(this,a)}):h(this,function(t){var e,n=x.camelCase(a);if(i&&void 0===t)return void 0!==(e=p.get(i,a))||void 0!==(e=p.get(i,n))||void 0!==(e=F(i,n,void 0))?e:void 0;this.each(function(){var e=p.get(this,n);p.set(this,n,t),-1!==a.indexOf("-")&&void 0!==e&&p.set(this,a,t)})},null,e,1<arguments.length,null,!0);if(this.length&&(r=p.get(i),1===i.nodeType)&&!b.get(i,"hasDataAttrs")){for(t=o.length;t--;)o[t]&&0===(n=o[t].name).indexOf("data-")&&(n=x.camelCase(n.slice(5)),F(i,n,r[n]));b.set(i,"hasDataAttrs",!0)}return r},removeData:function(e){return this.each(function(){p.remove(this,e)})}}),x.extend({queue:function(e,t,n){var a;return e?(a=b.get(e,t=(t||"fx")+"queue"),n&&(!a||x.isArray(n)?a=b.access(e,t,x.makeArray(n)):a.push(n)),a||[]):void 0},dequeue:function(e,t){t=t||"fx";var n=x.queue(e,t),a=n.length,r=n.shift(),i=x._queueHooks(e,t);"inprogress"===r&&(r=n.shift(),a--),r&&("fx"===t&&n.unshift("inprogress"),delete i.stop,r.call(e,function(){x.dequeue(e,t)},i)),!a&&i&&i.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return b.get(e,n)||b.access(e,n,{empty:x.Callbacks("once memory").add(function(){b.remove(e,[t+"queue",n])})})}}),x.fn.extend({queue:function(t,n){var e=2;return"string"!=typeof t&&(n=t,t="fx",e--),arguments.length<e?x.queue(this[0],t):void 0===n?this:this.each(function(){var e=x.queue(this,t,n);x._queueHooks(this,t),"fx"===t&&"inprogress"!==e[0]&&x.dequeue(this,t)})},dequeue:function(e){return this.each(function(){x.dequeue(this,e)})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){function n(){--r||i.resolveWith(o,[o])}var a,r=1,i=x.Deferred(),o=this,s=this.length;for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";s--;)(a=b.get(o[s],e+"queueHooks"))&&a.empty&&(r++,a.empty.add(n));return n(),i.promise(t)}}),/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source),w=["Top","Right","Bottom","Left"],Se=/^(?:checkbox|radio)$/i,E=(L=y.createDocumentFragment().appendChild(y.createElement("div")),(_=y.createElement("input")).setAttribute("type","radio"),_.setAttribute("checked","checked"),_.setAttribute("name","t"),L.appendChild(_),m.checkClone=L.cloneNode(!0).cloneNode(!0).lastChild.checked,L.innerHTML="<textarea>x</textarea>",m.noCloneChecked=!!L.cloneNode(!0).lastChild.defaultValue,"undefined"),Te=(m.focusinBubbles="onfocusin"in f,/^key/),Ae=/^(?:mouse|pointer|contextmenu)|click/,_e=/^(?:focusinfocus|focusoutblur)$/,Le=/^([^.]*)(?:\.(.+)|)$/,Ne=(x.event={global:{},add:function(t,e,n,a,r){var i,o,s,l,c,u,d,h,p,f=b.get(t);if(f)for(n.handler&&(n=(i=n).handler,r=i.selector),n.guid||(n.guid=x.guid++),s=(s=f.events)||(f.events={}),o=(o=f.handle)||(f.handle=function(e){return typeof x!=E&&x.event.triggered!==e.type?x.event.dispatch.apply(t,arguments):void 0}),l=(e=(e||"").match(C)||[""]).length;l--;)d=p=(h=Le.exec(e[l])||[])[1],h=(h[2]||"").split(".").sort(),d&&(c=x.event.special[d]||{},d=(r?c.delegateType:c.bindType)||d,c=x.event.special[d]||{},p=x.extend({type:d,origType:p,data:a,handler:n,guid:n.guid,selector:r,needsContext:r&&x.expr.match.needsContext.test(r),namespace:h.join(".")},i),(u=s[d])||((u=s[d]=[]).delegateCount=0,c.setup&&!1!==c.setup.call(t,a,h,o))||t.addEventListener&&t.addEventListener(d,o,{capture:!1,passive:-1<d.indexOf("touch")&&-1<d.indexOf("scroll")}),c.add&&(c.add.call(t,p),p.handler.guid||(p.handler.guid=n.guid)),r?u.splice(u.delegateCount++,0,p):u.push(p),x.event.global[d]=!0)},remove:function(e,t,n,a,r){var i,o,s,l,c,u,d,h,p,f,g,m=b.hasData(e)&&b.get(e);if(m&&(l=m.events)){for(c=(t=(t||"").match(C)||[""]).length;c--;)if(p=g=(s=Le.exec(t[c])||[])[1],f=(s[2]||"").split(".").sort(),p){for(d=x.event.special[p]||{},h=l[p=(a?d.delegateType:d.bindType)||p]||[],s=s[2]&&new RegExp("(^|\\.)"+f.join("\\.(?:.*\\.|)")+"(\\.|$)"),o=i=h.length;i--;)u=h[i],!r&&g!==u.origType||n&&n.guid!==u.guid||s&&!s.test(u.namespace)||a&&a!==u.selector&&("**"!==a||!u.selector)||(h.splice(i,1),u.selector&&h.delegateCount--,d.remove&&d.remove.call(e,u));o&&!h.length&&(d.teardown&&!1!==d.teardown.call(e,f,m.handle)||x.removeEvent(e,p,m.handle),delete l[p])}else for(p in l)x.event.remove(e,p+t[c],n,a,!0);x.isEmptyObject(l)&&(delete m.handle,b.remove(e,"events"))}},trigger:function(e,t,n,a){var r,i,o,s,l,c,u=[n||y],d=he.call(e,"type")?e.type:e,h=he.call(e,"namespace")?e.namespace.split("."):[],p=i=n=n||y;if(3!==n.nodeType&&8!==n.nodeType&&!_e.test(d+x.event.triggered)&&(0<=d.indexOf(".")&&(d=(h=d.split(".")).shift(),h.sort()),s=d.indexOf(":")<0&&"on"+d,(e=e[x.expando]?e:new x.Event(d,"object"==typeof e&&e)).isTrigger=a?2:3,e.namespace=h.join("."),e.namespace_re=e.namespace?new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=n),t=null==t?[e]:x.makeArray(t,[e]),c=x.event.special[d]||{},a||!c.trigger||!1!==c.trigger.apply(n,t))){if(!a&&!c.noBubble&&!x.isWindow(n)){for(o=c.delegateType||d,_e.test(o+d)||(p=p.parentNode);p;p=p.parentNode)u.push(p),i=p;i===(n.ownerDocument||y)&&u.push(i.defaultView||i.parentWindow||f)}for(r=0;(p=u[r++])&&!e.isPropagationStopped();)e.type=1<r?o:c.bindType||d,(l=(b.get(p,"events")||{})[e.type]&&b.get(p,"handle"))&&l.apply(p,t),(l=s&&p[s])&&l.apply&&x.acceptData(p)&&(e.result=l.apply(p,t),!1===e.result)&&e.preventDefault();return e.type=d,a||e.isDefaultPrevented()||c._default&&!1!==c._default.apply(u.pop(),t)||!x.acceptData(n)||s&&x.isFunction(n[d])&&!x.isWindow(n)&&((i=n[s])&&(n[s]=null),n[x.event.triggered=d](),x.event.triggered=void 0,i)&&(n[s]=i),e.result}},dispatch:function(e){e=x.event.fix(e);var t,n,a,r,i,o=u.call(arguments),s=(b.get(this,"events")||{})[e.type]||[],l=x.event.special[e.type]||{};if((o[0]=e).delegateTarget=this,!l.preDispatch||!1!==l.preDispatch.call(this,e)){for(i=x.event.handlers.call(this,e,s),t=0;(a=i[t++])&&!e.isPropagationStopped();)for(e.currentTarget=a.elem,n=0;(r=a.handlers[n++])&&!e.isImmediatePropagationStopped();)e.namespace_re&&!e.namespace_re.test(r.namespace)||(e.handleObj=r,e.data=r.data,void 0===(r=((x.event.special[r.origType]||{}).handle||r.handler).apply(a.elem,o)))||!1!==(e.result=r)||(e.preventDefault(),e.stopPropagation());return l.postDispatch&&l.postDispatch.call(this,e),e.result}},handlers:function(e,t){var n,a,r,i,o=[],s=t.delegateCount,l=e.target;if(s&&l.nodeType&&(!e.button||"click"!==e.type))for(;l!==this;l=l.parentNode||this)if(!0!==l.disabled||"click"!==e.type){for(a=[],n=0;n<s;n++)void 0===a[r=(i=t[n]).selector+" "]&&(a[r]=i.needsContext?0<=x(r,this).index(l):x.find(r,this,null,[l]).length),a[r]&&a.push(i);a.length&&o.push({elem:l,handlers:a})}return s<t.length&&o.push({elem:this,handlers:t.slice(s)}),o},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 offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(e,t){var n,a,r=t.button;return null==e.pageX&&null!=t.clientX&&(n=(a=e.target.ownerDocument||y).documentElement,a=a.body,e.pageX=t.clientX+(n&&n.scrollLeft||a&&a.scrollLeft||0)-(n&&n.clientLeft||a&&a.clientLeft||0),e.pageY=t.clientY+(n&&n.scrollTop||a&&a.scrollTop||0)-(n&&n.clientTop||a&&a.clientTop||0)),e.which||void 0===r||(e.which=1&r?1:2&r?3:4&r?2:0),e}},fix:function(e){if(e[x.expando])return e;var t,n,a,r=e.type,i=e,o=this.fixHooks[r];for(o||(this.fixHooks[r]=o=Ae.test(r)?this.mouseHooks:Te.test(r)?this.keyHooks:{}),a=o.props?this.props.concat(o.props):this.props,e=new x.Event(i),t=a.length;t--;)e[n=a[t]]=i[n];return e.target||(e.target=y),3===e.target.nodeType&&(e.target=e.target.parentNode),o.filter?o.filter(e,i):e},special:{load:{noBubble:!0},focus:{trigger:function(){return this!==U()&&this.focus?(this.focus(),!1):void 0},delegateType:"focusin"},blur:{trigger:function(){return this===U()&&this.blur?(this.blur(),!1):void 0},delegateType:"focusout"},click:{trigger:function(){return"checkbox"===this.type&&this.click&&x.nodeName(this,"input")?(this.click(),!1):void 0},_default:function(e){return x.nodeName(e.target,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}},simulate:function(e,t,n,a){e=x.extend(new x.Event,n,{type:e,isSimulated:!0,originalEvent:{}});a?x.event.trigger(e,null,t):x.event.dispatch.call(t,e),e.isDefaultPrevented()&&n.preventDefault()}},x.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n,!1)},x.Event=function(e,t){return this instanceof x.Event?(e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?n:s):this.type=e,t&&x.extend(this,t),this.timeStamp=e&&e.timeStamp||x.now(),void(this[x.expando]=!0)):new x.Event(e,t)},x.Event.prototype={isDefaultPrevented:s,isPropagationStopped:s,isImmediatePropagationStopped:s,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=n,e&&e.preventDefault&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=n,e&&e.stopPropagation&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=n,e&&e.stopImmediatePropagation&&e.stopImmediatePropagation(),this.stopPropagation()}},x.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(e,r){x.event.special[e]={delegateType:r,bindType:r,handle:function(e){var t,n=e.relatedTarget,a=e.handleObj;return n&&(n===this||x.contains(this,n))||(e.type=a.origType,t=a.handler.apply(this,arguments),e.type=r),t}}}),m.focusinBubbles||x.each({focus:"focusin",blur:"focusout"},function(n,a){function r(e){x.event.simulate(a,e.target,x.event.fix(e),!0)}x.event.special[a]={setup:function(){var e=this.ownerDocument||this,t=b.access(e,a);t||e.addEventListener(n,r,!0),b.access(e,a,(t||0)+1)},teardown:function(){var e=this.ownerDocument||this,t=b.access(e,a)-1;t?b.access(e,a,t):(e.removeEventListener(n,r,!0),b.remove(e,a))}}}),x.fn.extend({on:function(e,t,n,a,r){var i,o;if("object"==typeof e){for(o in"string"!=typeof t&&(n=n||t,t=void 0),e)this.on(o,t,n,e[o],r);return this}if(null==n&&null==a?(a=t,n=t=void 0):null==a&&("string"==typeof t?(a=n,n=void 0):(a=n,n=t,t=void 0)),!1===a)a=s;else if(!a)return this;return 1===r&&(i=a,(a=function(e){return x().off(e),i.apply(this,arguments)}).guid=i.guid||(i.guid=x.guid++)),this.each(function(){x.event.add(this,e,a,n,t)})},one:function(e,t,n,a){return this.on(e,t,n,a,1)},off:function(e,t,n){var a,r;if(e&&e.preventDefault&&e.handleObj)a=e.handleObj,x(e.delegateTarget).off(a.namespace?a.origType+"."+a.namespace:a.origType,a.selector,a.handler);else{if("object"!=typeof e)return!1!==t&&"function"!=typeof t||(n=t,t=void 0),!1===n&&(n=s),this.each(function(){x.event.remove(this,e,n,t)});for(r in e)this.off(r,t,e[r])}return this},trigger:function(e,t){return this.each(function(){x.event.trigger(e,t,this)})},triggerHandler:function(e,t){var n=this[0];return n?x.event.trigger(e,t,n,!0):void 0}}),/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi),Pe=/<([\w:]+)/,Me=/<|&#?\w+;/,Oe=/<(?:script|style|link)/i,qe=/checked\s*(?:[^=]|=\s*.checked.)/i,De=/^$|\/(?:java|ecma)script/i,Ie=/^true\/(.*)/,je=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,k={option:[1,"<select multiple='multiple'>","</select>"],thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};k.optgroup=k.option,k.tbody=k.tfoot=k.colgroup=k.caption=k.thead,k.th=k.td,x.extend({clone:function(e,t,n){var a,r,i,o,s,l,c,u=e.cloneNode(!0),d=x.contains(e.ownerDocument,e);if(!(m.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||x.isXMLDoc(e)))for(o=g(u),a=0,r=(i=g(e)).length;a<r;a++)s=i[a],l=o[a],c=void 0,"input"===(c=l.nodeName.toLowerCase())&&Se.test(s.type)?l.checked=s.checked:"input"!==c&&"textarea"!==c||(l.defaultValue=s.defaultValue);if(t)if(n)for(i=i||g(e),o=o||g(u),a=0,r=i.length;a<r;a++)W(i[a],o[a]);else W(e,u);return 0<(o=g(u,"script")).length&&G(o,!d&&g(e,"script")),u},buildFragment:function(e,t,n,a){for(var r,i,o,s,l,c=t.createDocumentFragment(),u=[],d=0,h=e.length;d<h;d++)if((r=e[d])||0===r)if("object"===x.type(r))x.merge(u,r.nodeType?[r]:r);else if(Me.test(r)){for(i=i||c.appendChild(t.createElement("div")),o=(Pe.exec(r)||["",""])[1].toLowerCase(),i.innerHTML=(o=k[o]||k._default)[1]+r.replace(Ne,"<$1></$2>")+o[2],l=o[0];l--;)i=i.lastChild;x.merge(u,i.childNodes),(i=c.firstChild).textContent=""}else u.push(t.createTextNode(r));for(c.textContent="",d=0;r=u[d++];)if((!a||-1===x.inArray(r,a))&&(s=x.contains(r.ownerDocument,r),i=g(c.appendChild(r),"script"),s&&G(i),n))for(l=0;r=i[l++];)De.test(r.type||"")&&n.push(r);return c},cleanData:function(e){for(var t,n,a,r,i=x.event.special,o=0;void 0!==(n=e[o]);o++){if(x.acceptData(n)&&(r=n[b.expando])&&(t=b.cache[r])){if(t.events)for(a in t.events)i[a]?x.event.remove(n,a):x.removeEvent(n,a,t.handle);b.cache[r]&&delete b.cache[r]}delete p.cache[n[p.expando]]}}}),x.fn.extend({text:function(e){return h(this,function(e){return void 0===e?x.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)})},null,e,arguments.length)},append:function(){return this.domManip(arguments,function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||H(this,e).appendChild(e)})},prepend:function(){return this.domManip(arguments,function(e){var t;1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(t=H(this,e)).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,a=e?x.filter(e,this):this,r=0;null!=(n=a[r]);r++)t||1!==n.nodeType||x.cleanData(g(n)),n.parentNode&&(t&&x.contains(n.ownerDocument,n)&&G(g(n,"script")),n.parentNode.removeChild(n));return this},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(x.cleanData(g(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map(function(){return x.clone(this,e,t)})},html:function(e){return h(this,function(e){var t=this[0]||{},n=0,a=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!Oe.test(e)&&!k[(Pe.exec(e)||["",""])[1].toLowerCase()]){e=e.replace(Ne,"<$1></$2>");try{for(;n<a;n++)1===(t=this[n]||{}).nodeType&&(x.cleanData(g(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var t=arguments[0];return this.domManip(arguments,function(e){t=this.parentNode,x.cleanData(g(this)),t&&t.replaceChild(e,this)}),t&&(t.length||t.nodeType)?this:this.remove()},detach:function(e){return this.remove(e,!0)},domManip:function(n,a){n=ce.apply([],n);var e,t,r,i,o,s,l=0,c=this.length,u=this,d=c-1,h=n[0],p=x.isFunction(h);if(p||1<c&&"string"==typeof h&&!m.checkClone&&qe.test(h))return this.each(function(e){var t=u.eq(e);p&&(n[0]=h.call(this,e,t.html())),t.domManip(n,a)});if(c&&(t=(e=x.buildFragment(n,this[0].ownerDocument,!1,this)).firstChild,1===e.childNodes.length&&(e=t),t)){for(i=(r=x.map(g(e,"script"),z)).length;l<c;l++)o=e,l!==d&&(o=x.clone(o,!0,!0),i)&&x.merge(r,g(o,"script")),a.call(this[l],o,l);if(i)for(s=r[r.length-1].ownerDocument,x.map(r,B),l=0;l<i;l++)o=r[l],De.test(o.type||"")&&!b.access(o,"globalEval")&&x.contains(s,o)&&(o.src?x._evalUrl&&x._evalUrl(o.src):x.globalEval(o.textContent.replace(je,"")))}return this}}),x.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,o){x.fn[e]=function(e){for(var t,n=[],a=x(e),r=a.length-1,i=0;i<=r;i++)t=i===r?this:this.clone(!0),x(a[i])[o](t),ue.apply(n,t.get());return this.pushStack(n)}});function Re(e){return e.ownerDocument.defaultView.getComputedStyle(e,null)}var Fe,Ue,He,$,S,T,ze={},Be=/^margin/,Ge=new RegExp("^("+a+")(?!px)[a-z%]+$","i");function We(){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",T.innerHTML="",$.appendChild(S);var e=f.getComputedStyle(T,null);Ue="1%"!==e.top,He="4px"===e.width,$.removeChild(S)}$=y.documentElement,S=y.createElement("div"),(T=y.createElement("div")).style&&(T.style.backgroundClip="content-box",T.cloneNode(!0).style.backgroundClip="",m.clearCloneStyle="content-box"===T.style.backgroundClip,S.style.cssText="border:0;width:0;height:0;top:0;left:-9999px;margin-top:1px;position:absolute",S.appendChild(T),f.getComputedStyle)&&x.extend(m,{pixelPosition:function(){return We(),Ue},boxSizingReliable:function(){return null==He&&We(),He},reliableMarginRight:function(){var e=T.appendChild(y.createElement("div"));return e.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",e.style.marginRight=e.style.width="0",T.style.width="1px",$.appendChild(S),e=!parseFloat(f.getComputedStyle(e,null).marginRight),$.removeChild(S),e}}),x.swap=function(e,t,n,a){var r,i={};for(r in t)i[r]=e.style[r],e.style[r]=t[r];for(r in n=n.apply(e,a||[]),t)e.style[r]=i[r];return n};var Ve=/^(none|table(?!-c[ea]).+)/,Qe=new RegExp("^("+a+")(.*)$","i"),Ye=new RegExp("^([+-])=("+a+")","i"),Xe={position:"absolute",visibility:"hidden",display:"block"},Ke={letterSpacing:"0",fontWeight:"400"},Je=["Webkit","O","Moz","ms"];x.extend({cssHooks:{opacity:{get:function(e,t){if(t)return""===(t=l(e,"opacity"))?"1":t}}},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:"cssFloat"},style:function(e,t,n,a){var r,i,o,s,l;if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style)return s=x.camelCase(t),l=e.style,t=x.cssProps[s]||(x.cssProps[s]=X(l,s)),o=x.cssHooks[t]||x.cssHooks[s],void 0===n?o&&"get"in o&&void 0!==(r=o.get(e,!1,a))?r:l[t]:("string"===(i=typeof n)&&(r=Ye.exec(n))&&(n=(r[1]+1)*r[2]+parseFloat(x.css(e,t)),i="number"),void(null!=n&&n==n&&("number"!==i||x.cssNumber[s]||(n+="px"),m.clearCloneStyle||""!==n||0!==t.indexOf("background")||(l[t]="inherit"),o&&"set"in o&&void 0===(n=o.set(e,n,a))||(l[t]=n))))},css:function(e,t,n,a){var r,i=x.camelCase(t);return t=x.cssProps[i]||(x.cssProps[i]=X(e.style,i)),"normal"===(r=void 0===(r=(i=x.cssHooks[t]||x.cssHooks[i])&&"get"in i?i.get(e,!0,n):r)?l(e,t,a):r)&&t in Ke&&(r=Ke[t]),(""===n||n)&&(i=parseFloat(r),!0===n||x.isNumeric(i))?i||0:r}}),x.each(["height","width"],function(e,r){x.cssHooks[r]={get:function(e,t,n){return t?Ve.test(x.css(e,"display"))&&0===e.offsetWidth?x.swap(e,Xe,function(){return Z(e,r,n)}):Z(e,r,n):void 0},set:function(e,t,n){var a=n&&Re(e);return K(0,t,n?J(e,r,n,"border-box"===x.css(e,"boxSizing",!1,a),a):0)}}}),x.cssHooks.marginRight=Y(m.reliableMarginRight,function(e,t){return t?x.swap(e,{display:"inline-block"},l,[e,"marginRight"]):void 0}),x.each({margin:"",padding:"",border:"Width"},function(r,i){x.cssHooks[r+i]={expand:function(e){for(var t=0,n={},a="string"==typeof e?e.split(" "):[e];t<4;t++)n[r+w[t]+i]=a[t]||a[t-2]||a[0];return n}},Be.test(r)||(x.cssHooks[r+i].set=K)}),x.fn.extend({css:function(e,t){return h(this,function(e,t,n){var a,r,i={},o=0;if(x.isArray(t)){for(a=Re(e),r=t.length;o<r;o++)i[t[o]]=x.css(e,t[o],!1,a);return i}return void 0!==n?x.style(e,t,n):x.css(e,t)},e,t,1<arguments.length)},show:function(){return ee(this,!0)},hide:function(){return ee(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){v(this)?x(this).show():x(this).hide()})}}),((x.Tween=i).prototype={constructor:i,init:function(e,t,n,a,r,i){this.elem=e,this.prop=n,this.easing=r||"swing",this.options=t,this.start=this.now=this.cur(),this.end=a,this.unit=i||(x.cssNumber[n]?"":"px")},cur:function(){var e=i.propHooks[this.prop];return(e&&e.get?e:i.propHooks._default).get(this)},run:function(e){var t=i.propHooks[this.prop];return this.pos=e=this.options.duration?x.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):e,this.now=(this.end-this.start)*e+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),(t&&t.set?t:i.propHooks._default).set(this),this}}).init.prototype=i.prototype,(i.propHooks={_default:{get:function(e){var t;return null==e.elem[e.prop]||e.elem.style&&null!=e.elem.style[e.prop]?(t=x.css(e.elem,e.prop,""))&&"auto"!==t?t:0:e.elem[e.prop]},set:function(e){x.fx.step[e.prop]?x.fx.step[e.prop](e):e.elem.style&&(null!=e.elem.style[x.cssProps[e.prop]]||x.cssHooks[e.prop])?x.style(e.elem,e.prop,e.now+e.unit):e.elem[e.prop]=e.now}}}).scrollTop=i.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},x.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2}},x.fx=i.prototype.init,x.fx.step={};var A,Ze,_,L,et=/^(?:toggle|show|hide)$/,tt=new RegExp("^(?:([+-])=|)("+a+")([a-z%]*)$","i"),nt=/queueHooks$/,at=[function(t,e,n){var a,r,i,o,s,l,c,u=this,d={},h=t.style,p=t.nodeType&&v(t),f=b.get(t,"fxshow");for(a in n.queue||(null==(s=x._queueHooks(t,"fx")).unqueued&&(s.unqueued=0,l=s.empty.fire,s.empty.fire=function(){s.unqueued||l()}),s.unqueued++,u.always(function(){u.always(function(){s.unqueued--,x.queue(t,"fx").length||s.empty.fire()})})),1===t.nodeType&&("height"in e||"width"in e)&&(n.overflow=[h.overflow,h.overflowX,h.overflowY],"inline"===("none"===(c=x.css(t,"display"))?b.get(t,"olddisplay")||Q(t.nodeName):c))&&"none"===x.css(t,"float")&&(h.display="inline-block"),n.overflow&&(h.overflow="hidden",u.always(function(){h.overflow=n.overflow[0],h.overflowX=n.overflow[1],h.overflowY=n.overflow[2]})),e)if(r=e[a],et.exec(r)){if(delete e[a],i=i||"toggle"===r,r===(p?"hide":"show")){if("show"!==r||!f||void 0===f[a])continue;p=!0}d[a]=f&&f[a]||x.style(t,a)}else c=void 0;if(x.isEmptyObject(d))"inline"===("none"===c?Q(t.nodeName):c)&&(h.display=c);else for(a in f?"hidden"in f&&(p=f.hidden):f=b.access(t,"fxshow",{}),i&&(f.hidden=!p),p?x(t).show():u.done(function(){x(t).hide()}),u.done(function(){for(var e in b.remove(t,"fxshow"),d)x.style(t,e,d[e])}),d)o=ne(p?f[a]:0,a,u),a in f||(f[a]=o.start,p&&(o.end=o.start,o.start="width"===a||"height"===a?1:0))}],N={"*":[function(e,t){var n=this.createTween(e,t),a=n.cur(),t=tt.exec(t),r=t&&t[3]||(x.cssNumber[e]?"":"px"),i=(x.cssNumber[e]||"px"!==r&&+a)&&tt.exec(x.css(n.elem,e)),o=1,s=20;if(i&&i[3]!==r)for(r=r||i[3],t=t||[],i=+a||1;x.style(n.elem,e,(i/=o=o||".5")+r),o!==(o=n.cur()/a)&&1!==o&&--s;);return t&&(i=n.start=+i||+a||0,n.unit=r,n.end=t[1]?i+(t[1]+1)*t[2]:+t[2]),n}]};x.Animation=x.extend(ae,{tweener:function(e,t){for(var n,a=0,r=(e=x.isFunction(e)?(t=e,["*"]):e.split(" ")).length;a<r;a++)n=e[a],N[n]=N[n]||[],N[n].unshift(t)},prefilter:function(e,t){t?at.unshift(e):at.push(e)}}),x.speed=function(e,t,n){var a=e&&"object"==typeof e?x.extend({},e):{complete:n||!n&&t||x.isFunction(e)&&e,duration:e,easing:n&&t||t&&!x.isFunction(t)&&t};return a.duration=x.fx.off?0:"number"==typeof a.duration?a.duration:a.duration in x.fx.speeds?x.fx.speeds[a.duration]:x.fx.speeds._default,null!=a.queue&&!0!==a.queue||(a.queue="fx"),a.old=a.complete,a.complete=function(){x.isFunction(a.old)&&a.old.call(this),a.queue&&x.dequeue(this,a.queue)},a},x.fn.extend({fadeTo:function(e,t,n,a){return this.filter(v).css("opacity",0).show().end().animate({opacity:t},e,n,a)},animate:function(t,e,n,a){function r(){var e=ae(this,x.extend({},t),o);(i||b.get(this,"finish"))&&e.stop(!0)}var i=x.isEmptyObject(t),o=x.speed(e,n,a);return r.finish=r,i||!1===o.queue?this.each(r):this.queue(o.queue,r)},stop:function(r,e,i){function o(e){var t=e.stop;delete e.stop,t(i)}return"string"!=typeof r&&(i=e,e=r,r=void 0),e&&!1!==r&&this.queue(r||"fx",[]),this.each(function(){var e=!0,t=null!=r&&r+"queueHooks",n=x.timers,a=b.get(this);if(t)a[t]&&a[t].stop&&o(a[t]);else for(t in a)a[t]&&a[t].stop&&nt.test(t)&&o(a[t]);for(t=n.length;t--;)n[t].elem!==this||null!=r&&n[t].queue!==r||(n[t].anim.stop(i),e=!1,n.splice(t,1));!e&&i||x.dequeue(this,r)})},finish:function(o){return!1!==o&&(o=o||"fx"),this.each(function(){var e,t=b.get(this),n=t[o+"queue"],a=t[o+"queueHooks"],r=x.timers,i=n?n.length:0;for(t.finish=!0,x.queue(this,o,[]),a&&a.stop&&a.stop.call(this,!0),e=r.length;e--;)r[e].elem===this&&r[e].queue===o&&(r[e].anim.stop(!0),r.splice(e,1));for(e=0;e<i;e++)n[e]&&n[e].finish&&n[e].finish.call(this);delete t.finish})}}),x.each(["toggle","show","hide"],function(e,a){var r=x.fn[a];x.fn[a]=function(e,t,n){return null==e||"boolean"==typeof e?r.apply(this,arguments):this.animate(o(a,!0),e,t,n)}}),x.each({slideDown:o("show"),slideUp:o("hide"),slideToggle:o("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,a){x.fn[e]=function(e,t,n){return this.animate(a,e,t,n)}}),x.timers=[],x.fx.tick=function(){var e,t=0,n=x.timers;for(A=x.now();t<n.length;t++)(e=n[t])()||n[t]!==e||n.splice(t--,1);n.length||x.fx.stop(),A=void 0},x.fx.timer=function(e){x.timers.push(e),e()?x.fx.start():x.timers.pop()},x.fx.interval=13,x.fx.start=function(){Ze=Ze||setInterval(x.fx.tick,x.fx.interval)},x.fx.stop=function(){clearInterval(Ze),Ze=null},x.fx.speeds={slow:600,fast:200,_default:400},x.fn.delay=function(a,e){return a=x.fx&&x.fx.speeds[a]||a,this.queue(e=e||"fx",function(e,t){var n=setTimeout(e,a);t.stop=function(){clearTimeout(n)}})},_=y.createElement("input"),L=y.createElement("select"),a=L.appendChild(y.createElement("option")),_.type="checkbox",m.checkOn=""!==_.value,m.optSelected=a.selected,L.disabled=!0,m.optDisabled=!a.disabled,(_=y.createElement("input")).value="t",_.type="radio",m.radioValue="t"===_.value;var rt,P=x.expr.attrHandle,it=(x.fn.extend({attr:function(e,t){return h(this,x.attr,e,t,1<arguments.length)},removeAttr:function(e){return this.each(function(){x.removeAttr(this,e)})}}),x.extend({attr:function(e,t,n){var a,r,i=e.nodeType;if(e&&3!==i&&8!==i&&2!==i)return typeof e.getAttribute==E?x.prop(e,t,n):(1===i&&x.isXMLDoc(e)||(t=t.toLowerCase(),a=x.attrHooks[t]||(x.expr.match.bool.test(t)?rt:void 0)),void 0===n?!(a&&"get"in a&&null!==(r=a.get(e,t)))&&null==(r=x.find.attr(e,t))?void 0:r:null!==n?a&&"set"in a&&void 0!==(r=a.set(e,n,t))?r:(e.setAttribute(t,n+""),n):void x.removeAttr(e,t))},removeAttr:function(e,t){var n,a,r=0,i=t&&t.match(C);if(i&&1===e.nodeType)for(;n=i[r++];)a=x.propFix[n]||n,x.expr.match.bool.test(n)&&(e[a]=!1),e.removeAttribute(n)},attrHooks:{type:{set:function(e,t){var n;if(!m.radioValue&&"radio"===t&&x.nodeName(e,"input"))return n=e.value,e.setAttribute("type",t),n&&(e.value=n),t}}}}),rt={set:function(e,t,n){return!1===t?x.removeAttr(e,n):e.setAttribute(n,n),n}},x.each(x.expr.match.bool.source.match(/\w+/g),function(e,t){var i=P[t]||x.find.attr;P[t]=function(e,t,n){var a,r;return n||(r=P[t],P[t]=a,a=null!=i(e,t,n)?t.toLowerCase():null,P[t]=r),a}}),/^(?:input|select|textarea|button)$/i),ot=(x.fn.extend({prop:function(e,t){return h(this,x.prop,e,t,1<arguments.length)},removeProp:function(e){return this.each(function(){delete this[x.propFix[e]||e]})}}),x.extend({propFix:{for:"htmlFor",class:"className"},prop:function(e,t,n){var a,r,i=e.nodeType;if(e&&3!==i&&8!==i&&2!==i)return(1!==i||!x.isXMLDoc(e))&&(t=x.propFix[t]||t,r=x.propHooks[t]),void 0!==n?r&&"set"in r&&void 0!==(a=r.set(e,n,t))?a:e[t]=n:r&&"get"in r&&null!==(a=r.get(e,t))?a:e[t]},propHooks:{tabIndex:{get:function(e){return e.hasAttribute("tabindex")||it.test(e.nodeName)||e.href?e.tabIndex:-1}}}}),m.optSelected||(x.propHooks.selected={get:function(e){e=e.parentNode;return e&&e.parentNode&&e.parentNode.selectedIndex,null}}),x.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){x.propFix[this.toLowerCase()]=this}),/[\t\r\n\f]/g),st=(x.fn.extend({addClass:function(t){var e,n,a,r,i,o,s="string"==typeof t&&t,l=0,c=this.length;if(x.isFunction(t))return this.each(function(e){x(this).addClass(t.call(this,e,this.className))});if(s)for(e=(t||"").match(C)||[];l<c;l++)if(a=1===(n=this[l]).nodeType&&(n.className?(" "+n.className+" ").replace(ot," "):" ")){for(i=0;r=e[i++];)a.indexOf(" "+r+" ")<0&&(a+=r+" ");o=x.trim(a),n.className!==o&&(n.className=o)}return this},removeClass:function(t){var e,n,a,r,i,o,s=0===arguments.length||"string"==typeof t&&t,l=0,c=this.length;if(x.isFunction(t))return this.each(function(e){x(this).removeClass(t.call(this,e,this.className))});if(s)for(e=(t||"").match(C)||[];l<c;l++)if(a=1===(n=this[l]).nodeType&&(n.className?(" "+n.className+" ").replace(ot," "):"")){for(i=0;r=e[i++];)for(;0<=a.indexOf(" "+r+" ");)a=a.replace(" "+r+" "," ");o=t?x.trim(a):"",n.className!==o&&(n.className=o)}return this},toggleClass:function(r,t){var i=typeof r;return"boolean"==typeof t&&"string"==i?t?this.addClass(r):this.removeClass(r):this.each(x.isFunction(r)?function(e){x(this).toggleClass(r.call(this,e,this.className,t),t)}:function(){if("string"==i)for(var e,t=0,n=x(this),a=r.match(C)||[];e=a[t++];)n.hasClass(e)?n.removeClass(e):n.addClass(e);else i!=E&&"boolean"!=i||(this.className&&b.set(this,"__className__",this.className),this.className=!this.className&&!1!==r&&b.get(this,"__className__")||"")})},hasClass:function(e){for(var t=" "+e+" ",n=0,a=this.length;n<a;n++)if(1===this[n].nodeType&&0<=(" "+this[n].className+" ").replace(ot," ").indexOf(t))return!0;return!1}}),/\r/g),lt=(x.fn.extend({val:function(t){var n,e,a,r=this[0];return arguments.length?(a=x.isFunction(t),this.each(function(e){1===this.nodeType&&(null==(e=a?t.call(this,e,x(this).val()):t)?e="":"number"==typeof e?e+="":x.isArray(e)&&(e=x.map(e,function(e){return null==e?"":e+""})),(n=x.valHooks[this.type]||x.valHooks[this.nodeName.toLowerCase()])&&"set"in n&&void 0!==n.set(this,e,"value")||(this.value=e))})):r?(n=x.valHooks[r.type]||x.valHooks[r.nodeName.toLowerCase()])&&"get"in n&&void 0!==(e=n.get(r,"value"))?e:"string"==typeof(e=r.value)?e.replace(st,""):null==e?"":e:void 0}}),x.extend({valHooks:{option:{get:function(e){var t=x.find.attr(e,"value");return null!=t?t:x.trim(x.text(e))}},select:{get:function(e){for(var t,n=e.options,a=e.selectedIndex,r="select-one"===e.type||a<0,i=r?null:[],o=r?a+1:n.length,s=a<0?o:r?a:0;s<o;s++)if(!(!(t=n[s]).selected&&s!==a||(m.optDisabled?t.disabled:null!==t.getAttribute("disabled"))||t.parentNode.disabled&&x.nodeName(t.parentNode,"optgroup"))){if(t=x(t).val(),r)return t;i.push(t)}return i},set:function(e,t){for(var n,a,r=e.options,i=x.makeArray(t),o=r.length;o--;)((a=r[o]).selected=0<=x.inArray(a.value,i))&&(n=!0);return n||(e.selectedIndex=-1),i}}}}),x.each(["radio","checkbox"],function(){x.valHooks[this]={set:function(e,t){return x.isArray(t)?e.checked=0<=x.inArray(x(e).val(),t):void 0}},m.checkOn||(x.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})}),x.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,n){x.fn[n]=function(e,t){return 0<arguments.length?this.on(n,null,e,t):this.trigger(n)}}),x.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,a){return this.on(t,e,n,a)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)}}),x.now()),ct=/\?/;x.parseJSON=function(e){return JSON.parse(e+"")},x.parseXML=function(e){var t;if(!e||"string"!=typeof e)return null;try{t=(new DOMParser).parseFromString(e,"text/xml")}catch(e){t=void 0}return t&&!t.getElementsByTagName("parsererror").length||x.error("Invalid XML: "+e),t};var M,O,ut=/#.*$/,dt=/([?&])_=[^&]*/,ht=/^(.*?):[ \t]*([^\r\n]*)$/gm,pt=/^(?:GET|HEAD)$/,ft=/^\/\//,gt=/^([\w.+-]+:)(?:\/\/(?:[^\/?#]*@|)([^\/?#:]*)(?::(\d+)|)|)/,mt={},yt={},vt="*/".concat("*");try{O=location.href}catch(e){(O=y.createElement("a")).href="",O=O.href}M=gt.exec(O.toLowerCase())||[],x.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:O,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(M[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":vt,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":x.parseJSON,"text xml":x.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?oe(oe(e,x.ajaxSettings),t):oe(x.ajaxSettings,e)},ajaxPrefilter:re(mt),ajaxTransport:re(yt),ajax:function(e,t){function n(e,t,n,a){var r,i,o,s=t;2!==b&&(b=2,d&&clearTimeout(d),l=void 0,u=a||"",w.readyState=0<e?4:0,a=200<=e&&e<300||304===e,n&&(o=((e,t,n)=>{for(var a,r,i,o,s=e.contents,l=e.dataTypes;"*"===l[0];)l.shift(),void 0===a&&(a=e.mimeType||t.getResponseHeader("Content-Type"));if(a)for(r in s)if(s[r]&&s[r].test(a)){l.unshift(r);break}if(l[0]in n)i=l[0];else{for(r in n){if(!l[0]||e.converters[r+" "+l[0]]){i=r;break}o=o||r}i=i||o}return i?(i!==l[0]&&l.unshift(i),n[i]):void 0})(p,w,n)),o=((e,t,n,a)=>{var r,i,o,s,l,c={},u=e.dataTypes.slice();if(u[1])for(o in e.converters)c[o.toLowerCase()]=e.converters[o];for(i=u.shift();i;)if(e.responseFields[i]&&(n[e.responseFields[i]]=t),!l&&a&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),l=i,i=u.shift())if("*"===i)i=l;else if("*"!==l&&l!==i){if(!(o=c[l+" "+i]||c["* "+i]))for(r in c)if(s=r.split(" "),s[1]===i&&(o=c[l+" "+s[0]]||c["* "+s[0]])){!0===o?o=c[r]:!0!==c[r]&&(i=s[0],u.unshift(s[1]));break}if(!0!==o)if(o&&e.throws)t=o(t);else try{t=o(t)}catch(e){return{state:"parsererror",error:o?e:"No conversion from "+l+" to "+i}}}return{state:"success",data:t}})(p,o,w,a),a?(p.ifModified&&((n=w.getResponseHeader("Last-Modified"))&&(x.lastModified[c]=n),n=w.getResponseHeader("etag"))&&(x.etag[c]=n),204===e||"HEAD"===p.type?s="nocontent":304===e?s="notmodified":(s=o.state,r=o.data,a=!(i=o.error))):(i=s,(e||!s)&&(s="error",e<0)&&(e=0)),w.status=e,w.statusText=(t||s)+"",a?m.resolveWith(f,[r,s,w]):m.rejectWith(f,[w,s,i]),w.statusCode(v),v=void 0,h&&g.trigger(a?"ajaxSuccess":"ajaxError",[w,p,a?r:i]),y.fireWith(f,[w,s]),h)&&(g.trigger("ajaxComplete",[w,p]),--x.active||x.event.trigger("ajaxStop"))}"object"==typeof e&&(t=e,e=void 0);var l,c,u,a,d,h,r,p=x.ajaxSetup({},t=t||{}),f=p.context||p,g=p.context&&(f.nodeType||f.jquery)?x(f):x.event,m=x.Deferred(),y=x.Callbacks("once memory"),v=p.statusCode||{},i={},o={},b=0,s="canceled",w={readyState:0,getResponseHeader:function(e){var t;if(2===b){if(!a)for(a={};t=ht.exec(u);)a[t[1].toLowerCase()]=t[2];t=a[e.toLowerCase()]}return null==t?null:t},getAllResponseHeaders:function(){return 2===b?u:null},setRequestHeader:function(e,t){var n=e.toLowerCase();return b||(e=o[n]=o[n]||e,i[e]=t),this},overrideMimeType:function(e){return b||(p.mimeType=e),this},statusCode:function(e){if(e)if(b<2)for(var t in e)v[t]=[v[t],e[t]];else w.always(e[w.status]);return this},abort:function(e){e=e||s;return l&&l.abort(e),n(0,e),this}};if(m.promise(w).complete=y.add,w.success=w.done,w.error=w.fail,p.url=((e||p.url||O)+"").replace(ut,"").replace(ft,M[1]+"//"),p.type=t.method||t.type||p.method||p.type,p.dataTypes=x.trim(p.dataType||"*").toLowerCase().match(C)||[""],null==p.crossDomain&&(e=gt.exec(p.url.toLowerCase()),p.crossDomain=!(!e||e[1]===M[1]&&e[2]===M[2]&&(e[3]||("http:"===e[1]?"80":"443"))===(M[3]||("http:"===M[1]?"80":"443")))),p.data&&p.processData&&"string"!=typeof p.data&&(p.data=x.param(p.data,p.traditional)),ie(mt,p,t,w),2!==b){for(r in(h=p.global)&&0==x.active++&&x.event.trigger("ajaxStart"),p.type=p.type.toUpperCase(),p.hasContent=!pt.test(p.type),c=p.url,p.hasContent||(p.data&&(c=p.url+=(ct.test(c)?"&":"?")+p.data,delete p.data),!1===p.cache&&(p.url=dt.test(c)?c.replace(dt,"$1_="+lt++):c+(ct.test(c)?"&":"?")+"_="+lt++)),p.ifModified&&(x.lastModified[c]&&w.setRequestHeader("If-Modified-Since",x.lastModified[c]),x.etag[c])&&w.setRequestHeader("If-None-Match",x.etag[c]),(p.data&&p.hasContent&&!1!==p.contentType||t.contentType)&&w.setRequestHeader("Content-Type",p.contentType),w.setRequestHeader("Accept",p.dataTypes[0]&&p.accepts[p.dataTypes[0]]?p.accepts[p.dataTypes[0]]+("*"!==p.dataTypes[0]?", "+vt+"; q=0.01":""):p.accepts["*"]),p.headers)w.setRequestHeader(r,p.headers[r]);if(p.beforeSend&&(!1===p.beforeSend.call(f,w,p)||2===b))return w.abort();for(r in s="abort",{success:1,error:1,complete:1})w[r](p[r]);if(l=ie(yt,p,t,w)){w.readyState=1,h&&g.trigger("ajaxSend",[w,p]),p.async&&0<p.timeout&&(d=setTimeout(function(){w.abort("timeout")},p.timeout));try{b=1,l.send(i,n)}catch(e){if(!(b<2))throw e;n(-1,e)}}else n(-1,"No Transport")}return w},getJSON:function(e,t,n){return x.get(e,t,n,"json")},getScript:function(e,t){return x.get(e,void 0,t,"script")}}),x.each(["get","post"],function(e,r){x[r]=function(e,t,n,a){return x.isFunction(t)&&(a=a||n,n=t,t=void 0),x.ajax({url:e,type:r,dataType:a,data:t,success:n})}}),x.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){x.fn[t]=function(e){return this.on(t,e)}}),x._evalUrl=function(e){return x.ajax({url:e,type:"GET",dataType:"script",async:!1,global:!1,throws:!0})},x.fn.extend({wrapAll:function(t){var e;return x.isFunction(t)?this.each(function(e){x(this).wrapAll(t.call(this,e))}):(this[0]&&(e=x(t,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&e.insertBefore(this[0]),e.map(function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e}).append(this)),this)},wrapInner:function(n){return this.each(x.isFunction(n)?function(e){x(this).wrapInner(n.call(this,e))}:function(){var e=x(this),t=e.contents();t.length?t.wrapAll(n):e.append(n)})},wrap:function(t){var n=x.isFunction(t);return this.each(function(e){x(this).wrapAll(n?t.call(this,e):t)})},unwrap:function(){return this.parent().each(function(){x.nodeName(this,"body")||x(this).replaceWith(this.childNodes)}).end()}}),x.expr.filters.hidden=function(e){return e.offsetWidth<=0&&e.offsetHeight<=0},x.expr.filters.visible=function(e){return!x.expr.filters.hidden(e)};var bt=/%20/g,wt=/\[\]$/,xt=/\r?\n/g,Ct=/^(?:submit|button|image|reset|file)$/i,Et=/^(?:input|select|textarea|keygen)/i,kt=(x.param=function(e,t){function n(e,t){t=x.isFunction(t)?t():null==t?"":t,r[r.length]=encodeURIComponent(e)+"="+encodeURIComponent(t)}var a,r=[];if(void 0===t&&(t=x.ajaxSettings&&x.ajaxSettings.traditional),x.isArray(e)||e.jquery&&!x.isPlainObject(e))x.each(e,function(){n(this.name,this.value)});else for(a in e)!function n(a,e,r,i){if(x.isArray(e))x.each(e,function(e,t){r||wt.test(a)?i(a,t):n(a+"["+("object"==typeof t?e:"")+"]",t,r,i)});else if(r||"object"!==x.type(e))i(a,e);else for(var t in e)n(a+"["+t+"]",e[t],r,i)}(a,e[a],t,n);return r.join("&").replace(bt,"+")},x.fn.extend({serialize:function(){return x.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=x.prop(this,"elements");return e?x.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!x(this).is(":disabled")&&Et.test(this.nodeName)&&!Ct.test(e)&&(this.checked||!Se.test(e))}).map(function(e,t){var n=x(this).val();return null==n?null:x.isArray(n)?x.map(n,function(e){return{name:t.name,value:e.replace(xt,"\r\n")}}):{name:t.name,value:n.replace(xt,"\r\n")}}).get()}}),x.ajaxSettings.xhr=function(){try{return new XMLHttpRequest}catch(e){}},0),$t={},St={0:200,1223:204},q=x.ajaxSettings.xhr(),Tt=(f.ActiveXObject&&x(f).on("unload",function(){for(var e in $t)$t[e]()}),m.cors=!!q&&"withCredentials"in q,m.ajax=q=!!q,x.ajaxTransport(function(i){var o;return m.cors||q&&!i.crossDomain?{send:function(e,t){var n,a=i.xhr(),r=++kt;if(a.open(i.type,i.url,i.async,i.username,i.password),i.xhrFields)for(n in i.xhrFields)a[n]=i.xhrFields[n];for(n in i.mimeType&&a.overrideMimeType&&a.overrideMimeType(i.mimeType),i.crossDomain||e["X-Requested-With"]||(e["X-Requested-With"]="XMLHttpRequest"),e)a.setRequestHeader(n,e[n]);o=function(e){return function(){o&&(delete $t[r],o=a.onload=a.onerror=null,"abort"===e?a.abort():"error"===e?t(a.status,a.statusText):t(St[a.status]||a.status,a.statusText,"string"==typeof a.responseText?{text:a.responseText}:void 0,a.getAllResponseHeaders()))}},a.onload=o(),a.onerror=o("error"),o=$t[r]=o("abort");try{a.send(i.hasContent&&i.data||null)}catch(e){if(o)throw e}},abort:function(){o&&o()}}:void 0}),x.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/(?:java|ecma)script/},converters:{"text script":function(e){return x.globalEval(e),e}}}),x.ajaxPrefilter("script",function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")}),x.ajaxTransport("script",function(n){var a,r;if(n.crossDomain)return{send:function(e,t){a=x("<script>").prop({async:!0,charset:n.scriptCharset,src:n.url}).on("load error",r=function(e){a.remove(),r=null,e&&t("error"===e.type?404:200,e.type)}),y.head.appendChild(a[0])},abort:function(){r&&r()}}}),[]),At=/(=)\?(?=&|$)|\?\?/,_t=(x.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Tt.pop()||x.expando+"_"+lt++;return this[e]=!0,e}}),x.ajaxPrefilter("json jsonp",function(e,t,n){var a,r,i,o=!1!==e.jsonp&&(At.test(e.url)?"url":"string"==typeof e.data&&!(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&At.test(e.data)&&"data");return o||"jsonp"===e.dataTypes[0]?(a=e.jsonpCallback=x.isFunction(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,o?e[o]=e[o].replace(At,"$1"+a):!1!==e.jsonp&&(e.url+=(ct.test(e.url)?"&":"?")+e.jsonp+"="+a),e.converters["script json"]=function(){return i||x.error(a+" was not called"),i[0]},e.dataTypes[0]="json",r=f[a],f[a]=function(){i=arguments},n.always(function(){f[a]=r,e[a]&&(e.jsonpCallback=t.jsonpCallback,Tt.push(a)),i&&x.isFunction(r)&&r(i[0]),i=r=void 0}),"script"):void 0}),x.parseHTML=function(e,t,n){if(!e||"string"!=typeof e)return null;"boolean"==typeof t&&(n=t,t=!1),t=t||y;var a=ye.exec(e),n=!n&&[];return a?[t.createElement(a[1])]:(a=x.buildFragment([e],t,n),n&&n.length&&x(n).remove(),x.merge([],a.childNodes))},x.fn.load),Lt=(x.fn.load=function(e,t,n){var a,r,i,o,s;return"string"!=typeof e&&_t?_t.apply(this,arguments):(o=this,0<=(s=e.indexOf(" "))&&(a=x.trim(e.slice(s)),e=e.slice(0,s)),x.isFunction(t)?(n=t,t=void 0):t&&"object"==typeof t&&(r="POST"),0<o.length&&x.ajax({url:e,type:r,dataType:"html",data:t}).done(function(e){i=arguments,o.html(a?x("<div>").append(x.parseHTML(e)).find(a):e)}).complete(n&&function(e,t){o.each(n,i||[e.responseText,t,e])}),this)},x.expr.filters.animated=function(t){return x.grep(x.timers,function(e){return t===e.elem}).length},f.document.documentElement),Nt=(x.offset={setOffset:function(e,t,n){var a,r,i,o,s=x.css(e,"position"),l=x(e),c={};"static"===s&&(e.style.position="relative"),i=l.offset(),a=x.css(e,"top"),o=x.css(e,"left"),s=("absolute"===s||"fixed"===s)&&-1<(a+o).indexOf("auto")?(r=(s=l.position()).top,s.left):(r=parseFloat(a)||0,parseFloat(o)||0),null!=(t=x.isFunction(t)?t.call(e,n,i):t).top&&(c.top=t.top-i.top+r),null!=t.left&&(c.left=t.left-i.left+s),"using"in t?t.using.call(e,c):l.css(c)}},x.fn.extend({offset:function(t){var e,n,a,r;return arguments.length?void 0===t?this:this.each(function(e){x.offset.setOffset(this,t,e)}):(a={top:0,left:0},(r=(n=this[0])&&n.ownerDocument)?(e=r.documentElement,x.contains(e,n)?(typeof n.getBoundingClientRect!=E&&(a=n.getBoundingClientRect()),n=se(r),{top:a.top+n.pageYOffset-e.clientTop,left:a.left+n.pageXOffset-e.clientLeft}):a):void 0)},position:function(){var e,t,n,a;if(this[0])return n=this[0],a={top:0,left:0},"fixed"===x.css(n,"position")?t=n.getBoundingClientRect():(e=this.offsetParent(),t=this.offset(),(a=x.nodeName(e[0],"html")?a:e.offset()).top+=x.css(e[0],"borderTopWidth",!0),a.left+=x.css(e[0],"borderLeftWidth",!0)),{top:t.top-a.top-x.css(n,"marginTop",!0),left:t.left-a.left-x.css(n,"marginLeft",!0)}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent||Lt;e&&!x.nodeName(e,"html")&&"static"===x.css(e,"position");)e=e.offsetParent;return e||Lt})}}),x.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,r){var i="pageYOffset"===r;x.fn[t]=function(e){return h(this,function(e,t,n){var a=se(e);return void 0===n?a?a[r]:e[t]:void(a?a.scrollTo(i?f.pageXOffset:n,i?n:f.pageYOffset):e[t]=n)},t,e,arguments.length,null)}}),x.each(["top","left"],function(e,n){x.cssHooks[n]=Y(m.pixelPosition,function(e,t){return t?(t=l(e,n),Ge.test(t)?x(e).position()[n]+"px":t):void 0})}),x.each({Height:"height",Width:"width"},function(i,o){x.each({padding:"inner"+i,content:o,"":"outer"+i},function(a,e){x.fn[e]=function(e,t){var n=arguments.length&&(a||"boolean"!=typeof e),r=a||(!0===e||!0===t?"margin":"border");return h(this,function(e,t,n){var a;return x.isWindow(e)?e.document.documentElement["client"+i]:9===e.nodeType?(a=e.documentElement,Math.max(e.body["scroll"+i],a["scroll"+i],e.body["offset"+i],a["offset"+i],a["client"+i])):void 0===n?x.css(e,t,r):x.style(e,t,n,r)},o,n?e:void 0,n,null)}})}),x.fn.size=function(){return this.length},x.fn.andSelf=x.fn.addBack,"function"==typeof define&&define.amd&&define("jquery",[],function(){return x}),f.jQuery),Pt=f.$;return x.noConflict=function(e){return f.$===x&&(f.$=Pt),e&&f.jQuery===x&&(f.jQuery=Nt),x},typeof D==E&&(f.jQuery=f.$=x),x});var _agoraMsgDelay=null;function ShowAlert(e,t,n,a,r,i,o,s){_showAlert(e,t,n,a,r??!0,i,o,s)}function _showAlert(e,t,n,a,r,i,o,s){$("body").addClass("alert_box_loaded");var l=$("div#agoraAlertMessageBox");(null==l||l.length<1)&&(l=$("<div>").attr("id","agoraAlertMessageBox").addClass(n).html('<div class="message-body"><span id="msg" class="msg"></span><div id="btn_ok"></div><div id="btn_close"></div></div>'),$(l).prependTo("body")),$(l).attr("class",""),$(l).addClass(n),$(l).show(),$(l).find("span#msg").html(e),s||$(l).find("div#btn_close").html('<a class="closeBtn right" href="javascript:void(0);" onclick="javascript:CloseAlert();"><i class="fa fa-times-circle"></i></a>'),i&&$(l).find("div#btn_ok").html("<a "+(isNotNullOrZero(o)?'href="'+o+'"':'href="javascript:void(0);" onclick="javascript:CloseAlert();"')+' title="Close" class="mdl-button mdl-button--primary mdl-button--raised mdl-js-button mdl-js-ripple-effect" style="align-content: right;">Ok</a>'),clearTimeout(_agoraMsgDelay),r&&(null==t&&(t=4e3),_agoraMsgDelay=setTimeout(function(){CloseAlert()},t))}function CloseAlert(){$("body").removeClass("alert_box_loaded"),$("div#agoraAlertMessageBox").hide();try{$("body").hasClass("is-busy")&&$("body").removeClass("is-busy")}catch(e){}}function RecallCkeIFrame(){$("img.cke_iframe").each(function(){$(this).replaceWith(unescape($(this).attr("data-cke-realelement")))})}function EnableNearBySearch(e,n,a,r,t){$(e).each(function(){$(this).click(function(){navigator.geolocation?navigator.geolocation.getCurrentPosition(function(e){var t=e.coords.latitude.toString().replace("-","_"),e=e.coords.longitude.toString().replace("-","_");location.href=n+"/rlat-"+t+"/rlon-"+e+"/rad-"+r+a},function(e){0==e.message.indexOf("Only secure origins are allowed")?alert("Your browser does not support this feature"):1==e.code?alert("Permission denied to access geolocation"):(2!=e.code&&e.code,alert("Your geolocation is not available"));location.href=t},{timeout:2e4}):alert("Geolocation functionality not available")})})}function BackToTop(e){e=$(e).closest("[data-back-to-top-container]").offset();null!=e?$("html,body").animate({scrollTop:e.top},700):window.scrollTo(0,0)}function TopToBottom(e){$("html,body").animate({scrollTop:$(window).height()-$("#agora-layout-header").height()},700)}function EnableGoogleEventTracking(){$(document).on("click","[data-ga-track]",null,function(){try{GoogleAnalyticLogEvent($(this).data("ga-track"))}catch(e){}})}function GoogleAnalyticLogEvent(e){if(null!=ga&&"undefined"!=typeof ga){var t=e.split(",");switch(t.length){case 3:ga("send","event",t[0],t[1],t[2]);break;case 2:ga("send","event",t[0],t[1])}}}function EnableStickyHeader(t){function e(){var e=$(window).scrollTop();t<e?r.addClass("scroll"):r.removeClass("scroll").removeClass("scroll-down").removeClass("scroll-up"),e<a&&r.addClass("scroll-up").removeClass("scroll-down"),a<e&&r.addClass("scroll-down").removeClass("scroll-up"),a=e}var n,a,r;null==t&&(t=0),n=$("body"),a=0,r=$(n),$(window).on("scroll",e),e()}function CloseAgoraDropDownOnBodyClick(){$(document).on("reset",".agora-dropdown",null,function(){try{var e=$(this).children("input").get(0);e.checked&&(e.checked=!1)}catch(e){}}),$("body").on("click",function(e){try{var t,n=$(e.target);n.is("input")||0==$(document).find(n).length||(0==(t=n.closest(".agora-dropdown")).length?$(".agora-dropdown"):t.hasClass("actions")&&!n.hasClass("agora-dropdown-handle")&&0<t.children("input:checked").length?t:$(".agora-dropdown").not(t)).trigger("reset")}catch(e){}})}function MdlReloadControlState(e,t,n){null==n&&(n=!1),$this=e,$parent=t;var a=$("#"+$parent.attr("data-search-partner")),r=$("#"+$parent.attr("data-search-value-bind")),o=$("#"+$parent.attr("data-search-view"));switch($parent.attr("data-search")){case"SelectBox":try{$parent.parent().find("[data-search-enable-for]").each(function(){$(this).addClass("mdl-cell--hide"),$(this).find("input:checkbox").each(function(){n||($(this).removeAttr("checked"),0<$(this).closest(".mdl-js-checkbox").length&&$(this).closest(".mdl-js-checkbox")[0].MaterialCheckbox.uncheck())}),$(this).find("select option").each(function(){$(this).removeAttr("selected"),$(this).closest(".mdl-js-selectfield")[0].MaterialSelectfield.mdlDowngrade_()})})}catch(e){console.log(e.message)}$('[data-search-enable-for="'+$parent.val()+'"]').removeClass("mdl-cell--hide"),o.html($parent.attr("data-search-name-label")+" ("+$parent.parent().find('[data-search-enable-for="'+$parent.val()+'"]').find("input[type=checkbox]:checked").length+")");break;case"group":var s=$this.closest("[data-search-group]"),o=$("#"+s.attr("data-search-view")),l=s.find('[data-search="group"] input[type=checkbox]:checked').length,c={};s.find('[data-search="group"] [data-type="dropdown"]').each(function(){var e=$(this);""!=e.val()&&(e.data("default-item"),1)&&e.val()!=e.data("default-item")&&l++}),s.find('[data-search="group"] input[type=text]').each(function(){var e=$(this),t=e.attr("urlidentifier");isNotNullOrZero(e.val())&&void 0===c[t]&&(c[t]=l++)}),s.find('[data-search="group"] input[type=hidden][onesearchidentifier]').each(function(){var e=$(this),t=e.attr("onesearchidentifier");isNotNullOrZero(e.val())&&void 0===c[t]&&(c[t]=l++)}),o.html(s.attr("data-search-name-label")+" ("+l+")");break;case"checkList":try{null!=$parent.attr("data-search-child")&&"true"==$parent.attr("data-search-child")&&0<$parent.parents().find('[data-search-parent="true"]').length?o.html($parent.attr("data-search-name-label")+" ("+$parent.parent().find("input[type=checkbox]:checked").length+")"):o.html($parent.attr("data-search-name-label")+" ("+$parent.find("input[type=checkbox]:checked").length+")")}catch(e){console.log(e.message),o.html($parent.attr("data-search-name-label")+" ("+$parent.find("input[type=checkbox]:checked").length+")")}break;case"singleItem":if(0<$this.length){$parent.children().removeClass("select");try{var u=$parent.attr("data-search-name-label-position"),d=null!=typeof $parent.attr("data-select")&&null!=$parent.attr("data-select")&&""!=$parent.attr("data-select")?$parent.attr("data-select"):"";void 0!==u&&!1!==u&&"left"==u?"label"==d?(o.html($parent.attr("data-search-name-label")+$this.attr("label")),o.attr("data-selected-value",$this.attr("value"))):o.html($parent.attr("data-search-name-label")+$this.attr("value")):"label"==d?(o.html($this.attr("label")+$parent.attr("data-search-name-label")),o.attr("data-selected-value",$this.attr("value"))):o.html($this.attr("value")+$parent.attr("data-search-name-label"));try{var h=$parent.attr("data-search-name-label-showCountOnly");void 0!==h&&0!=h&&o.html($parent.attr("data-search-name-label")+" ("+$this.length+")")}catch(e){console.log(e.message)}try{var p=$parent.attr("data-search-name-label-skip-for").split(",");for(i=0;i<p.length;++i)null!=typeof p[i]&&null!=p[i]&&p[i]==$this.attr("value")&&o.html($this.attr("value"))}catch(e){console.log(e.message)}}catch(e){o.html($this.attr("value")+$parent.attr("data-search-name-label"))}$this.addClass("select"),IsNotNull($this.attr("value"))?r.attr("value",$this.attr("value")):r.attr("value","")}break;case"oneSearch":o.html($this.attr("data-search-name-label")+" ("+$(".multiselect-context .agora-onesearch-multi-sel-item-cont").length+")");break;case"range":a.removeClass("s-d-n"),$parent.addClass("s-d-n"),0<$this.length&&(IsNotNull($this.attr("value"))?r.val($this.attr("value")):r.val("")),0<r.closest(".mdl-js-textfield").length&&r.closest(".mdl-js-textfield").get(0).MaterialTextfield&&r.closest(".mdl-js-textfield").get(0).MaterialTextfield.checkDirty(),o.html(BindRangeView($parent))}}function BindRangeView(o){var e=new getMinMax(o);if(IsNotNull(e.Min)&&IsNotNull(e.Max)&&parseInt(e.Min)>parseInt(e.Max))return alert("Minimum value should not exceed the maximum value"),$("#"+o.attr("data-search-value-bind")).attr("value",""),$("#"+$("#"+o.attr("data-search-partner")).attr("data-search-value-bind")).attr("value",""),o.attr("data-search-name-label");switch($("#"+o.attr("data-search-value-bind")).attr("operation")){case"min":var t=e.Min;if(void 0===(i=$("#"+o.attr("data-search-partner"))).data("is-init")&&(i.data("init-value",i.html()),i.data("is-init",!0)),IsNotNull(t)){i.empty();var n=(l=$("#"+o.attr("data-search-partner")).is("select"))?"option":"li";l&&i.append('<option value=""></option>');for(var a=0;a<5;++a)switch(o.attr("data-search-type")){case"price":var r=((e,t)=>{try{var n=$(t).data("stage"),a=$(t).data("min-value"),r="bed"==o.attr("data-search-type")||"bath"==o.attr("data-search-type")?1:1e6,i="bed"==o.attr("data-search-type")||"bath"==o.attr("data-search-type")?1:1e5;try{isNullOrEmpty(n)||(i=parseInt(n,10)),void 0!==r&&null!=r&&""!=r&&(r=parseInt(a,10))}catch(e){}return"bed"==o.attr("data-search-type")||"bath"==o.attr("data-search-type")?1:parseInt(e)<r?25e3:parseInt(e)<10*r?5e4:i}catch(e){}return 1e5})(t,o),t=h(t,r);t=parseInt(t)+r,i.append("<"+n+' value="'+t+'" tabindex="22"><span>$'+t.toString().replace(/(\d)(?=(\d\d\d)+(?!\d))/g,"$1,")+"</span></"+n+">");break;case"year":t=parseInt(t)+5,i.append("<"+n+' value="'+t+'" tabindex="22"><span>'+t+"</span></"+n+">");break;case"bed":case"bath":t=parseInt(t)+1,i.append("<"+n+' value="'+t+'" tabindex="22"><span>'+t+"</span></"+n+">");break;default:isNotNullOrZero(o.attr("data-default-increment"))&&(t=parseInt(t)+parseInt(o.attr("data-default-increment")),i.append("<"+n+' value="'+t+'" tabindex="22"><span>'+t+"</span></"+n+">"))}i.append("<"+n+' value="0" tabindex="22"><span>Any</span></'+n+">")}else void 0!==i.data("is-init")&&1==i.data("is-init")&&i.html(i.data("init-value"));break;case"max":var i,s=e.Max;if(void 0===(i=$("#"+o.attr("data-search-partner"))).data("is-init")&&(i.data("init-value",i.html()),i.data("is-init",!0)),IsNotNull(s)){i.empty();for(var l,c,n=(l=$("#"+o.attr("data-search-partner")).is("select"))?"option":"li",u=(l&&i.append('<option value=""></option>'),((e,t)=>{try{var n=$(t).data("stage"),a="bed"==o.attr("data-search-type")||"bath"==o.attr("data-search-type")?1:1e5;try{isNullOrEmpty(n)||(a=parseInt(n,10))}catch(e){}return"bed"==o.attr("data-search-type")||"bath"==o.attr("data-search-type")?1:parseInt(e)<1e5?1e4:parseInt(e)<1e6?5e4:a}catch(e){}return 1e5})(s,o)),s=h(s,u),a=0;a<5;++a)switch(o.attr("data-search-type")){case"price":0<(s=parseInt(s)-u)&&i.prepend("<"+n+' value="'+s+'" tabindex="22"><span>$'+s.toString().replace(/(\d)(?=(\d\d\d)+(?!\d))/g,"$1,")+"</span></"+n+">");break;case"year":0<(s=parseInt(s)-5)&&i.append("<"+n+' value="'+s+'" tabindex="22"><span>'+s+"</span></"+n+">");break;case"bed":case"bath":0<(s=parseInt(s)-1)&&i.append("<"+n+' value="'+s+'" tabindex="22"><span>'+s+"</span></"+n+">");break;default:isNotNullOrZero(o.attr("data-default-decrement"))&&(isNullOrEmpty(c)&&(s=e.Max,c="Yes"),0<(s=parseInt(s)-parseInt(o.attr("data-default-decrement"))))&&i.prepend("<"+n+' value="'+s+'" tabindex="22"><span>'+s+"</span></"+n+">")}i.prepend("<"+n+' value="0" tabindex="22"><span>Any</span></'+n+">")}else void 0!==i.data("is-init")&&1==i.data("is-init")&&i.html(i.data("init-value"))}return"price"!==o.attr("data-search-type")?IsNotNull(e.Min)&&IsNotNull(e.Max)?e.Min+"-"+e.Max:IsNotNull(e.Min)&&!IsNotNull(e.Max)?e.Min+"+":!IsNotNull(e.Min)&&IsNotNull(e.Max)?"<"+e.Max:o.attr("data-search-name-label"):IsNotNull(e.Min)&&IsNotNull(e.Max)?d(e.Min)+"-"+d(e.Max):IsNotNull(e.Min)&&!IsNotNull(e.Max)?d(e.Min)+"+":!IsNotNull(e.Min)&&IsNotNull(e.Max)?"<"+d(e.Max):o.attr("data-search-name-label");function d(e){console.log("Formatt : "+e);try{var t=null!=e&&""!=e?e:"0";return t=1e6<=e?"$"+(t/1e6).toFixed(2).replace(/\.?0+$/,"")+"M":1e3<=e?"$"+(t/1e3).toFixed(2).replace(/\.?0+$/,"")+"K":"$"+t.replace(/\.0+$/,"")}catch(e){}return"0"}function h(e,t){try{return(parseInt(e)-parseInt(e)%t).toString()}catch(e){}return e}}function getMinMax(e){var t=0,n=0;switch($("#"+e.attr("data-search-value-bind")).attr("operation")){case"min":t=$("#"+e.attr("data-search-value-bind")).val(),n=$("#"+$("#"+e.attr("data-search-partner")).attr("data-search-value-bind")).val();break;case"max":t=$("#"+$("#"+e.attr("data-search-partner")).attr("data-search-value-bind")).val(),n=$("#"+e.attr("data-search-value-bind")).val()}return{Min:t,Max:n}}function OnClassBehaviorChange(e,t){IsNullorEmpty($(e).attr("oldClassName"))||$(e).attr("oldClassName")==$(e).attr("class")||t(),$(e).attr("oldClassName",$(e).attr("class")),setTimeout(function(){OnClassBehaviorChange(e,t)},100)}function AnimatePlaceholderText(e,t,n){var a=t;0==n&&(a=e.attr("placeholder"),e.attr("placeholder","")),n!=a.length&&setTimeout(function(){e.attr("placeholder",a.substr(0,++n)),AnimatePlaceholderText(e,a,n)},150)}function AddReadMore(e,t,n){var a=e,r=t,i=n;$(".addReadMore").each(function(){var e;$(this).find(".firstSec").length||(e=$(this).text()).length>a&&(e=e.substring(0,a)+"<span class='SecSec'>"+e.substring(a,e.length)+"</span><span class='readMore' title='Click to Show More'>"+r+"</span><span class='readLess' title='Click to Show Less'>"+i+"</span>",$(this).html(e))}),$(document).on("click",".readMore,.readLess",function(){$(this).closest(".addReadMore").toggleClass("showlesscontent showmorecontent")})}function SignUp(e,t,n,a,r,i){e=GetFormXml($("#"+e));null==e||a&&!a(e)||$.ajax({type:"POST",url:(isMultiLingual()?"/"+getLocale():"")+"/services/agoraAccess.ashx?action=SignUp",data:{contact:e},dataType:"json",success:function(e){switch(e.Number){case 100:null!=r&&r(e.Contact)||(!isNullOrEmpty(t)&&isNullOrEmpty(n)?document.location.replace(t):isNullOrEmpty(t)||isNullOrEmpty(n)||"popup"!=n?isNullOrEmpty(t)&&!isNullOrEmpty(n)&&"stay"==n?(UpdateUserArea(e.UserAreaHtml),ClosePopup()):(ClosePopup(),location.replace((isMultiLingual()?"/"+getLocale():"")+"/dashboard/default.aspx?mode=signUp")):(UpdateUserArea(e.UserAreaHtml),$("#PERFORM_ACTION_TRIGGER").attr("href",t),ClosePopup(),OpenPopup()),$("body").removeClass("restricted-listing"));break;case 1:null==i?alert("Unable to connect to Database!"):i(1,"Please enter a valid Password");break;case 2:null==i?alert("Query execution failure!"):i(2,"Query execution failure!");break;case 9:null==i?alert(e.Message):i(11,e.Message);break;case 10:null==i?alert("Invalid Data. Please retry!"):i(10,"Invalid Data. Please retry!");break;case 11:null==i?alert('The email address you entered is already registered. Please sign in to your existing account or click "Forgot Password" for help.'):i(11,'The email address you entered is already registered. Please sign in to your existing account or click "Forgot Password" for help.');break;case 204:ShowAlert("SMS Gateway email addresses, which send email as text messages, are not permitted. Please enter a standard email address.",2e3,"alert_box",null)}},error:function(e){null==i?alert("Unknown Error. Please try later!"):i(99,"Unknown Error. Please try later")},statusCode:{404:function(){alert("Service (agoraAccess) not found!")}}})}function SignIn(e,t,n,a,r,i){e=GetFormXml($("#"+e));null==e||a&&!a(e)||$.ajax({type:"POST",url:(isMultiLingual()?"/"+getLocale():"")+"/services/agoraAccess.ashx?action=SignIn",data:{contact:e},dataType:"json",success:function(e){switch(e.Number){case 100:null!=r&&r(e.Contact),!isNullOrEmpty(t)&&isNullOrEmpty(n)?document.location.replace(t):isNullOrEmpty(t)||isNullOrEmpty(n)||"popup"!=n?isNullOrEmpty(t)&&!isNullOrEmpty(n)&&"stay"==n?(UpdateUserArea(e.UserAreaHtml),ClosePopup()):(ClosePopup(),location.replace((isMultiLingual()?"/"+getLocale():"")+"/dashboard/default.aspx?mode=signIn")):(UpdateUserArea(e.UserAreaHtml),$("#PERFORM_ACTION_TRIGGER").attr("href",t),ClosePopup(),OpenPopup()),$("body").removeClass("restricted-listing");break;case 401:null==i?alert("Invalid email address or password. Please try again!"):i(401,"Invalid email address or password. Please try again!");break;case 302:isNullOrEmpty(e.Url)||(location.href=e.Url);break;case 1:null==i?alert("Unable to connect to Database!"):i(1,"Please enter a valid Password");break;case 2:null==i?alert("Query execution failure!"):i(2,"Query execution failure!");break;case 9:null==i?alert(e.Message):i(11,e.Message);break;case 10:null==i?alert("Invalid email address or password. Please try again!"):i(10,"Invalid email address or password. Please try again!")}},error:function(e){null==i?alert("Unknown Error. Please try later!"):i(99,"Unknown Error. Please try later")},statusCode:{404:function(){alert("Service (agoraAccess) not found!")}}})}function SaveSearch(e,t,n,a,r,i){e=GetFormXml($("#"+e));null==e||a&&!a(e)||$.ajax({type:"POST",url:(isMultiLingual()?"/"+getLocale():"")+"/services/agoraAccess.ashx?action=SaveSearch",data:{demand:e},dataType:"json",success:function(e){switch(e.Number){case 100:null==r?alert("You have successfully saved the search"):r(100,"You have successfully saved the search"),ClosePopup();break;case 1:null==i?alert("Unable to connect to Database!"):i(1,"Please enter a valid Password");break;case 2:null==i?alert("Query execution failure!"):i(2,"Query execution failure!");break;case 9:null==i?alert(e.Message):i(11,e.Message);break;case 10:null==i?alert("Invalid email address or password. Please try again!"):i(10,"Invalid email address or password. Please try again!")}},error:function(e){null==i?alert("Unknown Error. Please try later!"):i(99,"Unknown Error. Please try later")},statusCode:{404:function(){alert("Service (agoraAccess) not found!")}}})}function RequestInfo(e,t,n,a){e=GetFormXml($("#"+e));null==e||t&&!t(e)||$.ajax({type:"POST",url:(isMultiLingual()?"/"+getLocale():"")+"/services/agoraRequestInfo.ashx",data:{WebRequest:e},dataType:"json",success:function(e){switch(e.Number){case 100:null==n?alert("Your request has been submitted successfully"):n(100,"Your request has been submitted successfully"),ClosePopup();break;case 1:null==a?alert("Unable to connect to Database!"):a(1,"Please enter a valid Password");break;case 2:null==a?alert("Query execution failure!"):a(2,"Query execution failure!");break;case 9:null==a?alert(e.Message):a(11,e.Message);break;case 10:null==a?alert("Invalid input parameters. Please try again!"):a(10,"Invalid input parameters. Please try again!")}},error:function(e){null==a?alert("Unknown Error. Please try later!"):a(99,"Unknown Error. Please try later")},statusCode:{404:function(){alert("Service (agoraRequestInfo) not found!")}}})}function NeighborhoodReport(e,t,n,a){e=GetFormXml($("#"+e));null==e||t&&!t(e)||$.ajax({type:"POST",url:(isMultiLingual()?"/"+getLocale():"")+"/services/agoraNeighborhoodReport.ashx",data:{WebRequest:e},dataType:"json",success:function(e){switch(e.Number){case 100:null==n?alert("Your Neighborhood Report request has been submitted. A report will be emailed to you within the next 24 business hours."):n(100,"Your Neighborhood Report request has been submitted. A report will be emailed to you within the next 24 business hours."),ClosePopup();break;case 1:null==a?alert("Unable to connect to Database!"):a(1,"Please enter a valid Password");break;case 2:null==a?alert("Query execution failure!"):a(2,"Query execution failure!");break;case 9:null==a?alert(e.Message):a(11,e.Message);break;case 10:null==a?alert("Invalid input parameters. Please try again!"):a(10,"Invalid input parameters. Please try again!")}},error:function(e){null==a?alert("Unknown Error. Please try later!"):a(99,"Unknown Error. Please try later")},statusCode:{404:function(){alert("Service (agoraNeighborhoodReport) not found!")}}})}function ContactMortgageSpecialist(e,t,n,a){e=GetFormXml($("#"+e));null==e||t&&!t(e)||$.ajax({type:"POST",url:(isMultiLingual()?"/"+getLocale():"")+"/services/agoraContactMortgageSpecialist.ashx",data:{WebRequest:e},dataType:"json",success:function(e){switch(e.Number){case 100:null==n?alert("Thank you for your request. A Mortgage Consultant will contact you shortly."):n(100,"Thank you for your request. A Mortgage Consultant will contact you shortly."),ClosePopup();break;case 1:null==a?alert("Unable to connect to Database!"):a(1,"Please enter a valid Password");break;case 2:null==a?alert("Query execution failure!"):a(2,"Query execution failure!");break;case 9:null==a?alert(e.Message):a(11,e.Message);break;case 10:null==a?alert("Invalid input parameters. Please try again!"):a(10,"Invalid input parameters. Please try again!")}},error:function(e){null==a?alert("Unknown Error. Please try later!"):a(99,"Unknown Error. Please try later")},statusCode:{404:function(){alert("Service (ContactMortgageSpecialist) not found!")}}})}function RequestShowing(e,t,n,a){e=GetFormXml($("#"+e));null==e||t&&!t(e)||$.ajax({type:"POST",url:(isMultiLingual()?"/"+getLocale():"")+"/services/agoraRequestShowing.ashx",data:{WebRequest:e},dataType:"json",success:function(e){switch(e.Number){case 100:null==n?alert("Your request has been submitted successfully"):n(100,"Your request has been submitted successfully"),ClosePopup();break;case 1:null==a?alert("Unable to connect to Database!"):a(1,"Please enter a valid Password");break;case 2:null==a?alert("Query execution failure!"):a(2,"Query execution failure!");break;case 9:null==a?alert(e.Message):a(11,e.Message);break;case 10:null==a?alert("Invalid input parameters. Please try again!"):a(10,"Invalid input parameters. Please try again!")}},error:function(e){null==a?alert("Unknown Error. Please try later!"):a(99,"Unknown Error. Please try later")},statusCode:{404:function(){alert("Service (agoraRequestShowing) not found!")}}})}function TextListing(e,t,n,a){e=GetFormXml($("#"+e));null==e||t&&!t(e)||$.ajax({type:"POST",url:(isMultiLingual()?"/"+getLocale():"")+"/services/agoraTextListing.ashx",data:{WebRequest:e},dataType:"json",success:function(e){switch(e.Number){case 100:null==n?alert("Your request has been submitted successfully"):n(100,"Your request has been submitted successfully"),ClosePopup();break;case 1:null==a?alert("Unable to connect to Database!"):a(1,"Please enter a valid Password");break;case 2:null==a?alert("Query execution failure!"):a(2,"Query execution failure!");break;case 9:null==a?alert(e.Message):a(11,e.Message);break;case 10:null==a?alert("Invalid input parameters. Please try again!"):a(10,"Invalid input parameters. Please try again!")}},error:function(e){null==a?alert("Unknown Error. Please try later!"):a(99,"Unknown Error. Please try later")},statusCode:{404:function(){alert("Service (agoraTextListing) not found!")}}})}function EmailListing(e,t,n,a){e=GetFormXml($("#"+e));null==e||t&&!t(e)||$.ajax({type:"POST",url:(isMultiLingual()?"/"+getLocale():"")+"/services/agoraEmailListing.ashx",data:{WebRequest:e},dataType:"json",success:function(e){switch(e.Number){case 100:null==n?alert("The property details has been sent successfully"):n(100,"The property details has been sent successfully"),ClosePopup();break;case 1:null==a?alert("Unable to connect to Database!"):a(1,"Please enter a valid Password");break;case 2:null==a?alert("Query execution failure!"):a(2,"Query execution failure!");break;case 9:null==a?alert(e.Message):a(11,e.Message);break;case 10:null==a?alert("Invalid input parameters. Please try again!"):a(10,"Invalid input parameters. Please try again!")}},error:function(e){null==a?alert("Unknown Error. Please try later!"):a(99,"Unknown Error. Please try later")},statusCode:{404:function(){alert("Service (agoraEmailListing) not found!")}}})}function ContactUs(e,t,n,a,r){var i=$("#"+e),e=GetFormXml(i);null==e||t&&!t(e)||$.ajax({type:"POST",url:(isMultiLingual()?"/"+getLocale():"")+"/services/agoraContactUs.ashx",data:{WebRequest:e,ContactType:r},dataType:"json",success:function(e){switch(e.Number){case 100:null==n?alert("Your request has been submitted successfully"):n(100,"Your request has been submitted successfully"),ClosePopup();break;case 1:null==a?alert("Unable to connect to Database!"):a(1,"Please enter a valid Password");break;case 2:null==a?alert("Query execution failure!"):a(2,"Query execution failure!");break;case 9:null==a?alert(e.Message):a(11,e.Message);break;case 10:null==a?alert("Invalid input parameters. Please try again!"):a(10,"Invalid input parameters. Please try again!")}},error:function(e){null==a?alert("Unknown Error. Please try later!"):a(99,"Unknown Error. Please try later")},statusCode:{401:function(){try{i.find("[data-captcha-reload]").trigger("click")}catch(e){}},404:function(){alert("Service (agoraContactUs) not found!")}}})}function SellAHome(e,t,n,a){e=GetFormXml($("#"+e));null==e||t&&!t(e)||$.ajax({type:"POST",url:(isMultiLingual()?"/"+getLocale():"")+"/services/agoraSellAHome.ashx",data:{WebRequest:e},dataType:"json",success:function(e){switch(e.Number){case 100:null==n?alert("Your request has been submitted successfully"):n(100,"Your request has been submitted successfully"),ClosePopup();break;case 1:null==a?alert("Unable to connect to Database!"):a(1,"Please enter a valid Password");break;case 2:null==a?alert("Query execution failure!"):a(2,"Query execution failure!");break;case 9:null==a?alert(e.Message):a(11,e.Message);break;case 10:null==a?alert("Invalid input parameters. Please try again!"):a(10,"Invalid input parameters. Please try again!")}},error:function(e){null==a?alert("Unknown Error. Please try later!"):a(99,"Unknown Error. Please try later")},statusCode:{404:function(){alert("Service (agoraContactUs) not found!")}}})}function MaintenanceService(e,t,n,a){e=GetFormXml($("#"+e));null==e||t&&!t(e)||$.ajax({type:"POST",url:(isMultiLingual()?"/"+getLocale():"")+"/services/MaintenanceService.ashx",data:{WebRequest:e},dataType:"json",success:function(e){switch(e.Number){case 100:null==n?alert("Your request has been submitted successfully"):n(100,"Your request has been submitted successfully"),ClosePopup();break;case 1:null==a?alert("Unable to connect to Database!"):a(1,"Please enter a valid Password");break;case 2:null==a?alert("Query execution failure!"):a(2,"Query execution failure!");break;case 9:null==a?alert(e.Message):a(11,e.Message);break;case 10:null==a?alert("Invalid input parameters. Please try again!"):a(10,"Invalid input parameters. Please try again!")}},error:function(e){null==a?alert("Unknown Error. Please try later!"):a(99,"Unknown Error. Please try later")},statusCode:{404:function(){alert("Service (agoraContactUs) not found!")}}})}function OrderReloc(e,t,n,a){e=GetFormXml($("#"+e));null==e||t&&!t(e)||$.ajax({type:"POST",url:(isMultiLingual()?"/"+getLocale():"")+"/services/agoraOrderReloc.ashx",data:{WebRequest:e},dataType:"json",success:function(e){switch(e.Number){case 100:null==n?alert("Your request has been submitted successfully"):n(100,"Your request has been submitted successfully"),ClosePopup();break;case 1:null==a?alert("Unable to connect to Database!"):a(1,"Please enter a valid Password");break;case 2:null==a?alert("Query execution failure!"):a(2,"Query execution failure!");break;case 9:null==a?alert(e.Message):a(11,e.Message);break;case 10:null==a?alert("Invalid input parameters. Please try again!"):a(10,"Invalid input parameters. Please try again!")}},error:function(e){null==a?alert("Unknown Error. Please try later!"):a(99,"Unknown Error. Please try later")},statusCode:{404:function(){alert("Service (agoraOrderReloc) not found!")}}})}function ForgotPassword(e,t,n,a){e=GetFormXml($("#"+e));null==e||t&&!t(e)||$.ajax({type:"POST",url:(isMultiLingual()?"/"+getLocale():"")+"/services/agoraForgotPassword.ashx",data:{Contact:e},dataType:"json",success:function(e){switch(e.Number){case 100:null==n?alert("Please check your email shortly for instructions on resetting your password."):n(100,"Please check your email shortly for instructions on resetting your password."),ClosePopup();break;case 1:null==a?alert("Unable to connect to Database!"):a(1,"Please enter a valid Password");break;case 2:null==a?alert("Query execution failure!"):a(2,"Query execution failure!");break;case 9:null==a?alert(e.Message):a(11,e.Message);break;case 10:null==a?alert("An account with that email address cannot be found. Please try again."):a(10,"An account with that email address cannot be found. Please try again.")}},error:function(e){null==a?alert("Unknown Error. Please try later!"):a(99,"Unknown Error. Please try later")},statusCode:{404:function(){alert("Service (ForgotPassword) not found!")}}})}function CompanyNewsLetter(e,t,n,a){e=GetFormXml($("#"+e));null==e||t&&!t(e)||$.ajax({type:"POST",url:(isMultiLingual()?"/"+getLocale():"")+"/services/agoraCompanyNewsLetter.ashx",data:{WebRequest:e},dataType:"json",success:function(e){switch(e.Number){case 100:null==n?alert("You have registered for newsletter successfully"):n(100,"You have registered for newsletter successfully"),ClosePopup();break;case 1:null==a?alert("Unable to connect to Database!"):a(1,"Please enter a valid Password");break;case 2:null==a?alert("Query execution failure!"):a(2,"Query execution failure!");break;case 9:null==a?alert(e.Message):a(11,e.Message);break;case 10:null==a?alert("Invalid input parameters. Please try again!"):a(10,"Invalid input parameters. Please try again!")}},error:function(e){null==a?alert("Unknown Error. Please try later!"):a(99,"Unknown Error. Please try later")},statusCode:{404:function(){alert("Service (agoraEmailListing) not found!")}}})}function EmailFriend(e,t,n,a){e=GetFormXml($("#"+e));null==e||t&&!t(e)||$.ajax({type:"POST",url:(isMultiLingual()?"/"+getLocale():"")+"/services/agoraEmailFriend.ashx",data:{WebRequest:e},dataType:"json",success:function(e){switch(e.Number){case 100:null==n?alert("The details has been sent successfully"):n(100,"The details has been sent successfully"),ClosePopup();break;case 1:null==a?alert("Unable to connect to Database!"):a(1,"Please enter a valid Password");break;case 2:null==a?alert("Query execution failure!"):a(2,"Query execution failure!");break;case 9:null==a?alert(e.Message):a(11,e.Message);break;case 10:null==a?alert("Invalid input parameters. Please try again!"):a(10,"Invalid input parameters. Please try again!")}},error:function(e){null==a?alert("Unknown Error. Please try later!"):a(99,"Unknown Error. Please try later")},statusCode:{404:function(){alert("Service (agoraEmailListing) not found!")}}})}function UpdateUserArea(e){$("#DIV_USER_AREA").html(e)}function PerformAction(e,t){var n="",a=(isMultiLingual()?"/"+getLocale():"")+"/dashboard/Access.aspx";"SignUp"!=e&&"SignIn"!=e&&"MarketTrends"!=e?IsSignedIn()?(n=(isMultiLingual()?"/"+getLocale():"")+"/dashboard/"+e+".aspx",isNullOrEmpty(t)||(n+="?"+t)):(n=a+"?view=popup&accessUrl="+escape("/dashboard/"+e+".aspx"),isNullOrEmpty(t)||(n+="?"+escape(t))):"MarketTrends"==e?n="/dashboard/MarketTrends.aspx?"+t:(n=a,isNullOrEmpty(t)||(n+="?"+t)),$("#PERFORM_ACTION_TRIGGER").attr("href",n),$("#PERFORM_ACTION_TRIGGER").trigger("click")}function IsSignedIn(){return!isNullOrEmpty($("#CONTACT_GUID"))&&!isNullOrEmpty($("#CONTACT_GUID").val())&&36==$("#CONTACT_GUID").val().length}function ContactOffice(e){$.ajax({type:"POST",url:(isMultiLingual()?"/"+getLocale():"")+"/services/agoraContactOffice.ashx",data:{Name:$("#textname").val(),Email:$("#txtEmail").val(),ToEmail:e,Subject:$("#textsubject").val(),comment:$("#textmsg").val()},dataType:"text",success:function(e){"100"==e&&(alert("Your request has been submitted successfully"),ClosePopup())},error:function(e){null==onError?alert("Unknown Error. Please try later!"):onError(99,"Unknown Error. Please try later")},statusCode:{404:function(){alert("Service (agoraContactUs) not found!")}}})}function EnableHJNImport(){$("img[data-demograhics]:not(img[data-init-completed])").each(function(){var e=$(this);e.closest("div[contenteditable]").attr("contenteditable")||(isOnScreen(e)?(e.attr("data-init-completed","1"),GetHJN(e,e.data("hjn-id"))):$(window).scroll(function(){jQuery(window).scrollTop()>t&&jQuery(window).scrollTop()-t<10||t>jQuery(window).scrollTop()&&t-jQuery(window).scrollTop()<10||(t=jQuery(window).scrollTop(),isOnScreen(e)&&!e.attr("data-init-completed")&&(GetHJN(e,e.data("hjn-id")),e.attr("data-init-completed","1")))}))});var t=jQuery(window).scrollTop()}function GetHJN(t,e){var n=new Date,n=n.getFullYear()+("0"+(n.getMonth()+1)).slice(-2)+("0"+n.getDate()).slice(-2)+("0"+n.getHours()+1).slice(-2)+("0"+n.getMinutes()).slice(-2)+("0"+n.getSeconds()).slice(-2)+("0"+n.getMilliseconds()).slice(-2);$.ajax({url:"/services/agoraDemographicsWidget.aspx",data:{hjnId:e,containerIdSufix:n},type:"GET",dataType:"html",success:function(e){t.closest("div[contenteditable]").attr("contenteditable")||(t.after(e),t.remove(),"undefined"!=typeof componentHandler&&componentHandler.upgradeDom())},error:function(){}})}function EnableYelpImport(){$("img[data-yelp-control]:not(img[data-init-completed]").each(function(){var e=$(this);e.closest("div[contenteditable]").attr("contenteditable")||(isOnScreen(e)?(e.attr("data-init-completed","1"),processYelpControlSearch(e)):$(window).scroll(function(){jQuery(window).scrollTop()>t&&jQuery(window).scrollTop()-t<10||t>jQuery(window).scrollTop()&&t-jQuery(window).scrollTop()<10||(t=jQuery(window).scrollTop(),isOnScreen(e)&&!e.attr("data-init-completed")&&(e.attr("data-init-completed","1"),processYelpControlSearch(e)))}))});var t=jQuery(window).scrollTop()}function processYelpControlSearch(t){var e=t.data("location"),n=t.data("latitude"),a=t.data("longitude"),r=new Date,i=r.getFullYear()+("0"+(r.getMonth()+1)).slice(-2)+("0"+r.getDate()).slice(-2)+("0"+r.getHours()+1).slice(-2)+("0"+r.getMinutes()).slice(-2)+("0"+r.getSeconds()).slice(-2)+("0"+r.getMilliseconds()).slice(-2);$.ajax({url:"/services/agoraYelpWidget.aspx",data:{location:e,latitude:n,longitude:a,containerIdSufix:i},type:"GET",dataType:"html",success:function(e){t.closest("div[contenteditable]").attr("contenteditable")||(t.after(e),t.remove(),"undefined"!=typeof componentHandler&&componentHandler.upgradeDom(),$(".yelp-import-result-"+i).find(".owl-carousel").owlCarousel({items:4,nav:!0,navText:["<i class='aga-keyboard-arrow-left'></i>","<i class='aga-keyboard-arrow-right'></i>"],responsive:{0:{items:1},480:{items:1},768:{items:2},1024:{items:4}}}))},error:function(){}})}function EnableAreaMapImport(){$("img[data-areamap-control]:not(img[data-init-completed]").each(function(){var e=$(this);e.closest("div[contenteditable]").attr("contenteditable")||(isOnScreen(e)?(e.attr("data-init-completed","1"),getAreaMapControl(e)):$(window).scroll(function(){jQuery(window).scrollTop()>t&&jQuery(window).scrollTop()-t<10||t>jQuery(window).scrollTop()&&t-jQuery(window).scrollTop()<10||(t=jQuery(window).scrollTop(),isOnScreen(e)&&!e.attr("data-init-completed")&&(e.attr("data-init-completed","1"),getAreaMapControl(e)))}))});var t=jQuery(window).scrollTop()}function getAreaMapControl(t){var e=t.data("latitude"),n=t.data("longitude");$.ajax({url:"/services/agoraAreaMapWidget.aspx",data:{latitude:e,longitude:n},type:"GET",dataType:"html",success:function(e){t.closest("div[contenteditable]").attr("contenteditable")||(t.after(e),t.remove(),"undefined"!=typeof componentHandler&&componentHandler.upgradeDom())},error:function(){}})}function isOnScreen(e){var t,n,a,r,i;if(0!=e.length)return a=(t=(n=jQuery(window)).scrollTop())+(n=n.height()),i=(r=(e=jQuery(e)).offset().top)+(e=e.height()),t<=r&&r<a||t<i&&i<=a||n<e&&r<=t&&a<=i}function showPropertyGallery(e,t,n,a,r){for(var i=window.pageYOffset,o=document.querySelector(".property-gallery-container"),s=document.createElement("button"),l=(s.classList.add("property-gallery-container-close"),s.setAttribute("title","Close Property Gallery"),s.innerText="X",s.addEventListener("click",function(e){null!=document.querySelector(".property-gallery-container")&&document.querySelector(".property-gallery-container").remove(),window.scrollTo(0,i),document.body.style.overflow="visible"},!0),null==o&&((o=document.createElement("div")).classList.add("property-gallery-container"),r!=n&&o.classList.add(r),document.body.appendChild(o)),o.innerHTML='<div class="s-w-100 s-h-100 s-p-r hero-slider"><i class="left-btn">&lt;</i><div class="item-s show-nav"></div><i class="right-btn">&gt;</i><div class="dots-wrapper"></div><div style="clear: both;"></div></div>',o.appendChild(s),o.querySelector(".item-s")),c=null,u=0;u<a;u++)(c=document.createElement("div")).innerHTML='<div class="item"><img class="lazy s-h-100 s-of-cn" alt="property photo '+(u+1)+'" data-src="https://cdn.datafloat.com/'+e+"_PUBLIC/MLSPhotos/"+t.toUpperCase()+"/"+n+"_"+(u+1)+'.jpg" /></div>',l.append(c.firstElementChild);agSlider({autoPlay:!0,autoPlayDelay:5e3,loop:!0,showBullets:!0,showControls:!0,bulletContainer:".dots-wrapper",showBulletsAsThumb:!0,itemWrapper:".item-s",itemContainer:".item"},".property-gallery-container",function(e){document.body.style.overflow="hidden",document.querySelectorAll(".ldp-caro").forEach(e=>{e.querySelectorAll(".item").forEach((e,t)=>{e.addEventListener("click",()=>{document.querySelector(".property-gallery-container .dots-wrapper .idx-"+t).click()})})}),window.scrollTo(0,0)})}function handleCommunityClickEvent(e,t){window.agEvent&&window.agEvent.push(e,t)}function IsNotNull(e){return null!=e&&0<e.length&&"0"!=e&&0!=e}function IsNotNullOrIsZero(e){return null!=e&&0<e.length}function EnableSearchForm(){function t(i){setTimeout(function(){var e=$(i).closest("[data-search-form]"),t=composeUrlQuery({select:e}),n=e.data("search-form"),n=$('[data-sort-object="'+n+'"]'),a=e.data("default-search"),r=e.data("default-sort");void 0!==a&&""!=a&&-1==t.indexOf("/address-")&&-1==t.indexOf("/mls-")&&(t+=a),0<n.length?t+=null!=(a=n.val())&&""!=a?a:"":void 0!==r&&null!=r&&""!=r&&(t+=r),e.triggerHandler("search",[{query:t}])},200)}$(document).on("click","[data-search-form] [data-search-button]",{},function(){t(this)}),$(document).on("keydown","[data-search-form] [data-search-action]",{},function(e){13==e.keyCode&&t(this)}),$("[data-search-form]").on("search",function(e,t){var n=$(this),a=n.data("search-prefix"),a=IsNotNull(a)&&"undefined"!=a?a:GetSearchPrefixForRecordType(n.data("search-form"));/^\/\//.test((null!=a&&""!=a&&"undefined"!=a?a:"")+t.query)||(window.location=(null!=a&&""!=a&&"undefined"!=a?a:"")+t.query)})}function GetSearchPrefixForRecordType(e){switch(e){case"PROPERTY":return"/properties";case"COMMUNITY":return"/communities";case"BUILDER":return"/builders";case"PROPERTYRENT":return"/property-search-map-on-rent";case"PROPERTYSOLD":return"/property-search-map/sold";case"AGENT":return"/real-estate-agents";case"OFFICE":return"/real-estate-offices";case"BLOG":return"/blog/search";case"AGENTTEAM":return"/real-estate-agents"}return"/"}function GetDefaultSortForRecordType(e){switch(e){case"PROPERTY":case"COMMUNITY":case"PROPERTYRENT":return"/dsort-p";case"AGENT":case"AGENTTEAM":case"OFFICE":return"/sort-n"}return""}function getCookie(e){for(var t=e+"=",n=decodeURIComponent(document.cookie).split(";"),a=0;a<n.length;a++){for(var r=n[a];" "==r.charAt(0);)r=r.substring(1);if(0==r.indexOf(t))return r.substring(t.length,r.length)}return""}function initMapDefault(){window.onMapLoaded&&window.onMapLoaded()}function EnableDemandImport(){function e(t,n,i,a){if(!t.closest("div[contenteditable]").attr("contenteditable")&&void 0!==n||void 0!==i)switch((a=void 0!==a?a:"gallery").toLowerCase()){case"gallery":var e=t.find('[data-sort-object="CMNCMN"]');("undefined"!=e&&null!=e&&0<e.length||!n.match(/(^|\/)(d)?sort\-[a-z]+/g))&&(n=((e=>"undefined"!=(e=e.find('[data-sort-object="CMNCMN"]'))&&null!=e&&0<e.length&&IsNotNull(e.val())?e.val():GetDefaultSortForRecordType("PROPERTY"))(t)+"/"+n.replace("http://","").replace(/(^|\/)(d)?sort\-[a-z]+/g,"")).replace("//","/")),$.ajax({type:"POST",url:"/services/MAX/agoraGetGalleryView.aspx",data:{UrlQuery:n,TypeOfSearch:"SALE",IsContentPage:"true",DemandKey:i},dataType:"html",success:function(e){t.closest("div[contenteditable]").attr("contenteditable")||(e='<section class="result-page" data-ck-propertylist="" data-ck-demand-key="'+i+'" data-ck-property-url="'+n+'" data-ck-demand-layout="'+a+'">'+e+"</section>",t.after(e),t.remove(),"undefined"!=typeof componentHandler&&componentHandler.upgradeDom(),$('[data-ck-demand-key="'+i+'"] #propertyGrid').each(function(){$(this).find(".property:not(.init)").each(function(){GetPropertyImageGallery($(this))})}),window.agLazy.refresh())},error:function(){ShowLoading()}});break;case"carousel":$.ajax({type:"POST",url:"/services/MAX/agoraGetCarouselItem.aspx",data:{UrlQuery:n,TypeOfSearch:"SALE",IsContentPage:"true",DemandKey:i},dataType:"html",success:function(e){t.closest("div[contenteditable]").attr("contenteditable")||(e='<section class="result-page" data-ck-propertylist="" data-ck-demand-key="'+i+'" data-ck-property-url="'+n+'" data-ck-demand-layout="'+a+'">'+e+"</section>",t.after(e),$('[data-query-list]:not(.init)[data-service-url][data-rt^="CMN"]').each(function(){var t=$(this),e=t.attr("data-owner-key"),n=t.attr("data-owner-rt"),a=t.attr("data-rt"),r=t.data("service-url");document.body.dispatchEvent(new CustomEvent("ag.render.refresh")),setTimeout(()=>{window.agRender.pagedResult("PropertySavedListingData",r,{ownerPK:e,ownerRT:n,RT:a,urlQuery:"",Q:t.data("urlquery"),demandKey:i,PagSize:12},function(e){!e||e.ResultCount<1?t.addClass("s-d-n"):(console.log(e),agSlider({autoPlay:!1,loop:!1,showBullets:!0,showControls:!1,bulletContainer:".dots-wrapper",showBulletsAsThumb:!1,wrapperMask:0},".saved-listing-slider",function(e){}),e.ResultCount<=3&&$("[data-saved-listing]").find(".saved-listing-slider div.dots-wrapper").hide())})},500)}),t.remove(),"undefined"!=typeof componentHandler&&componentHandler.upgradeDom())},error:function(){ShowLoading()}})}}$("img[data-demand-key]").each(function(){e($(this),$(this).data("demand-url"),$(this).data("demand-key"),$(this).data("layout"))}),$(document).on("click","[data-ck-href]",null,function(){e($(this).parents("[data-ck-propertylist]:first"),$(this).data("ck-href"),$(this).parents("[data-ck-propertylist]:first").data("ck-demand-key"),$(this).parents("[data-ck-propertylist]:first").data("ck-demand-layout"))}),(async()=>{var u,n,p={languages:[{code:"en",label:"English"},{code:"es",label:"Spanish",localLabel:"Español"},{code:"nl",label:"Dutch",localLabel:"Nederlands"},{code:"pr",label:"Portugese",localLabel:"Português"},{code:"fr",label:"French",localLabel:"Français"}],currencies:[{code:"USD",base:"USD",label:"Dollar",format:"$###,###,###.##"},{code:"AED",base:"USD",label:"United Arab Emirates Dirham",format:"AED###,###,###.##"},{code:"BSD",base:"USD",label:"Bahamian Dollar",format:"B$###,###,###.##"},{code:"CAD",base:"USD",label:"Canadian Dollar",format:"$###,###,###.##"},{code:"DOP",base:"USD",label:"Dominican Peso",format:"RD$###,###,###.##"},{code:"EUR",base:"USD",label:"Euro",format:"€###,###,###.##"},{code:"JMD",base:"USD",label:"Jamaican Dollar",format:"J$###,###,###.##"},{code:"KYD",base:"USD",label:"Cayman Islands Dollar",format:"CI$###,###,###.##"},{code:"MXN",base:"USD",label:"Mexican Peso",format:"$###,###,###.##"},{code:"PAB",base:"USD",label:"Panamanian Balboa",format:"B/.###,###,###.##"}],units:[{code:"imperial",label:"Imperial"},{code:"metric",label:"Metric"}],presets:[{code:"BS",longCode:"BHS",label:"Bahamas",currency:"BSD",language:"en",messurement:"metric"},{code:"CA",longCode:"CAN",label:"Canada",currency:"CAD",language:["en","fr"],messurement:"metric",states:{QC:"fr"}},{code:"JM",longCode:"JAM",label:"Jamaica",currency:"JMD",language:"en",messurement:"metric"},{code:"KY",longCode:"CYM",label:"Cayman Islands",currency:"KYD",language:"en",messurement:"metric"},{code:"TC",longCode:"TCA",label:"Turks & Caicos Islands",localLabel:"",currency:"USD",language:"en",messurement:"imperial"},{code:"US",longCode:"USA",label:"United States",localLabel:"",currency:"USD",language:"en",messurement:"imperial"},{code:"DY",longCode:"DOM",label:"Dominican Republic",localLabel:"República Dominicana",currency:"USD",language:"en",messurement:"metric"},{code:"ES",longCode:"ESP",label:"Spain",localLabel:"España",currency:"EUR",language:"en",messurement:"metric"},{code:"MX",longCode:"MEX",label:"Mexico",localLabel:"México",currency:"MXN",language:"en",messurement:"metric"},{code:"PA",longCode:"PAN",label:"Panama",localLabel:"Panamá",currency:"PAB",language:"en",messurement:"metric"},{code:"NL",longCode:"NLD",label:"Nederlands",localLabel:"Nederland",currency:"EUR",language:"en",messurement:"metric"},{code:"PT",longCode:"PRT",label:"Portugal",currency:"EUR",language:"en",messurement:"metric"}],unitConvertions:[{unit:"SQFT",tragetUnit:"Sq.M",constant:.092903,notation:["Sqft","Sq.Ft","Sq.Ft.","Sq. Ft.","SF","square feet","square feets"]},{unit:"MI",tragetUnit:"KM",constant:1.60934,notation:["mi","miles","mile"]},{unit:"AC",tragetUnit:"Sq.M",constant:4046.86,notation:["acre","acres"]}]},o=null;async function s(){var t,e=C();null==o&&(o=Object.assign({},e)),e?.language!=o?.language?setTimeout(function(){window.location.reload()},1e3):(o=Object.assign({},e),t=await new Promise(async function(e,t){var n=await(async()=>{var e=window.localStorage.getItem("LOCALLABELS"),t=null;return t=null!=e?JSON.parse(e):t})(),a=C();if(null!=n){var r=new Date;if(r.setHours(r.getHours()-1),new Date(n.updatedOn)>r&&-1<n.Locale.indexOf(a.language))return void e(n)}(n=await L("/services/agoraClient.ashx",{type:"LABELS"})).updatedOn=new Date,l(n),e(n)}),e?.language&&-1==t.Locale.indexOf(e.language)&&(await S(),window.location.reload()),(e=document.querySelectorAll("[ag-l-k]"))&&e.forEach(function(e){(async(e,t)=>{var n,a=e.getAttribute("ag-l-k"),r=null;if(t[a]||h.test(a))if(e.childNodes&&1==e.childNodes.length)if(h.lastIndex=0,h.test(a)){h.lastIndex=0;for(var i=a;null!=(r=h.exec(i));)i=i.replace(r[0],t[r.groups.LabelID]?t[r.groups.LabelID].lbl:"");e.childNodes[0].textContent=i}else e.childNodes[0].textContent=t[a]?t[a].lbl:"";else t[a]&&((n=document.createElement("span")).innerHTML=t[a].lbl,async function e(t,n){for(var a=0;a<n.childNodes.length;a++)if(n.childNodes[a]?.textContent&&t.childNodes[a]?.textContent)t.childNodes[a].textContent=n.childNodes[a]?.textContent;else{if(!(a<n.childNodes.length&&a<t.childNodes.length))return;e(t.childNodes[a],n.childNodes[a])}}(e,n));for(var o=0;o<e.attributes.length;o++){var s=e.attributes[o];if(d.lastIndex=0,null!=(r=d.exec(s.name))){for(var l=r.groups.Attribute,c=s.value;null!=(r=h.exec(c));)c=c.replace(r[0],t[r.groups.LabelID]?t[r.groups.LabelID].lbl:"");e.setAttribute(l,c)}}e&&null!=e&&e.dispatchEvent(new CustomEvent("ag.language.update.item"))})(e,t.Labels)}),setTimeout(function(){function e(e,t){var n;e&&((n=t.find('li[value="'+e+'"]')).length?MdlReloadControlState(n,t):(n=$('<li class="temp-li" value="'+e+'"><span>'+e+"</span></li>"),t.find(".temp-li").remove(),t.prepend(n),MdlReloadControlState(n,t)))}$('ul[ag-l-k-data-search-name-label*="PROPERTY_STATUS"], ul[ag-l-k-data-search-name-label*="PROPERTY_TYPE"], div[ag-l-k-data-search-name-label*="PROPERTY_MORE"]').each(function(){$(this).find("li").each(function(){var e=$(this);MdlReloadControlState(e,e.parent())})});e($("#txtMinimumPrice").val(),$("#MinimumPrice"));var t=$("#txtMaximumPrice").val();e(t,$("#MaximumPrice")),$('ul[data-search="singleItem"]').each(function(){var e=$(this),t=e.attr("data-search-value-bind"),t=$("#"+t).val();t&&(t=e.find('li[value="'+t+'"]')).length&&MdlReloadControlState(t,e)})},300))}async function l(e){window.localStorage.setItem("LOCALLABELS",JSON.stringify(e))}var d=/ag\-l\-k\-(?<Attribute>[^\=]+)/gm,h=/\[(?<LabelID>[^\]]+)\]/gm;async function c(e){var t,n,a,r=await new Promise(async function(e,t){var n=localStorage.getItem("CONVERTIONRATES"),a=null;if(n&&null!=n){a=JSON.parse(n),n=new Date;if(n.setDate(n.getDate()-1),new Date(a.updatedOn)>n)return void e(a)}(a=await L("/services/agoraClient.ashx",{type:"CONVERTIONRATES"})).updatedOn=(new Date).toISOString(),localStorage.setItem("CONVERTIONRATES",JSON.stringify(a)),e(a)}),i=C();i.currency&&(t=r.Rates?.ExchangeRates?.filter(function(e){return e.Code==i.currency})[0],(a=p.currencies.filter(function(e){return e.code==i.currency})[0])&&(t.formatter=g(a.format)),n=t.Code,a=e?document.querySelectorAll('[ag-l-p]:not(.is-applied):not([ag-l-p="0"])'):document.querySelectorAll('[ag-l-p]:not([ag-l-p="0"])'))&&a.forEach(async function(e){-1<e.innerHTML.indexOf("{{")||((async e=>{var t,n,a,r,i;e.classList.contains("is-applied")||(r=e.getBoundingClientRect(),n=(n=null)!=(n=e.closest("article"))&&0<n.length?n[0].getBoundingClientRect():e.parentElement?.getBoundingClientRect(),t=(n.top+n.bottom)/2,n=(n.left+n.right)/2,a=(r.top+r.bottom)/2,r=(r.left+r.right)/2,i="ag-l-p-p",i="ag-l-p-p-"+(r<n?"l":"r")+"-"+(a<t?"b":"t"),e.classList.add(i))})(e),e.classList.add("is-applied"),(async(e,t,n,a)=>{var r=null!=e.getAttribute("ag-l-p-c")&&(null==e.getAttribute("ag-l-p-o")&&null==e.getAttribute("ag-l-p-o-p")||e.getAttribute("ag-l-p-o-p")!=e.getAttribute("ag-l-p"))&&e.getAttribute("ag-l-p-c")!=n;if(e.getAttribute("ag-l-p-c")!=n||!r||!f.test(e.textContent)){var i=e.getAttribute("ag-l-p-c"),o=1,s=null;try{s=a.Rates?.ExchangeRates?.filter(function(e){return e.Code==i})[0];var l=p.currencies.filter(function(e){return e.code==s.Code})[0];l&&(s.formatter=g(l.format)),o=s.Constant}catch(e){}for(var c=0;c<e.childNodes.length;c++){var u,d=e.childNodes[c],h=null;if(f.lastIndex=0,d.textContent&&null!=(h=f.exec(d.textContent)))return t&&null!=t&&e.setAttribute("ag-l-p-c-t",t.Code),r?(e.setAttribute("ag-l-p-o-p",e.getAttribute("ag-l-p")),e.setAttribute("ag-l-p-o",s?s.formatter(parseFloat(e.getAttribute("ag-l-p"))):e.getAttribute("ag-l-p"))):null!=e.getAttribute("ag-l-p-c")&&e.getAttribute("ag-l-p-c")==t.Code&&e.removeAttribute("ag-l-p-o"),f.lastIndex=0,u=Math.round(parseFloat(e.getAttribute("ag-l-p"))/o*t.Constant),!(d.textContent=d.textContent.replace(h[0],t.formatter?t.formatter(u):u.toString()))}}})(e,t,n,r))})}var f=/(([^A-z0-9]|[A-Z]|[A-Z]{3})*\s?[0-9\,\.]+)/gm;function g(e){var t=e.replace(/[#\,\.]+/gi,"");return function(e){return t+e.toLocaleString("en-US")}}async function m(e){var t="metric"==C().messurement,n=t?document.querySelectorAll("[ag-l-m]:not(.is-applied)"):document.querySelectorAll("[ag-l-m]");t?setTimeout(function(){n&&n.forEach(async function(e){-1<e.innerHTML.indexOf("{{")||e.classList.contains("is-applied")||(e.classList.add("is-applied"),async function a(e,r,t,n,i){if(n&&i)return void(0<e?.childNodes?.length&&e.childNodes.forEach(async function(e){var t,n;e?.textContent&&(t=e.textContent,(n=await w(e.textContent,2,i)).success)&&(e.textContent=n.content,r.addEventListener("ag.language.messurement.revert",function(){e.textContent=t}))}));{var o,s;v(e)?(o=p.unitConvertionSchema.getLabelForAttribute(e),n=await b(o,1),p.unitConvertionSchema.setLabelForAttribute(e,n.content),s=p.unitConvertionSchema.getValueForAttribute(e),n=await w(s,2,n.units[0]),p.unitConvertionSchema.setValueForAttribute(e,n.content),r.addEventListener("ag.language.messurement.revert",function(){p.unitConvertionSchema.setLabelForAttribute(e,o),p.unitConvertionSchema.setValueForAttribute(e,s)})):0<e?.childNodes?.length&&e.childNodes.forEach(async function(e){var t,n;e.nodeType==Node.TEXT_NODE&&y(e)?(t=e.textContent,(n=await b(t)).success?e.textContent=n.content:(n=await b(e.textContent,1),e.textContent=n.content,a(e.parentElement,r,!1,!0,n.units[0])),r.addEventListener("ag.language.messurement.revert",function(){e.textContent=t})):a(e,r)})}return!1}(e,e))})},e?500:0):n&&n.forEach(async function(e){-1<e.innerHTML.indexOf("{{")||!e.classList.contains("is-applied")||(e.classList.remove("is-applied"),e.dispatchEvent(new CustomEvent("ag.language.messurement.revert")))})}function y(e){return p.unitConvertionSchema.expression.test(e.textContent)||p.unitConvertionSchema.notationExpression.test(e.textContent)}function v(e){return null!=(p.unitConvertionSchema.haveValidAttribute(e)?p.unitConvertionSchema.getLabelForAttribute(e).match(p.unitConvertionSchema.notationExpression):null)}async function b(e,t){var n,a=[],r=!1;t=t||0;for(n of p.unitConvertions){var i=await w(e,t,n);e=i.content,r|=i.success,i.success&&a.push(n),p.unitConvertionSchema.notationExpressions[n.unit].lastIndex=-1,p.unitConvertionSchema.notationOnlyExpressions[n.unit].lastIndex=-1}return{content:e,success:r,units:a}}async function w(e,t,n){for(var a=null,r=!1;null!=(a=((e,t,n)=>0==n?p.unitConvertionSchema.notationExpressions[t.unit].exec(e):1==n?p.unitConvertionSchema.notationOnlyExpressions[t.unit].exec(e):2==n?(p.unitConvertionSchema.valueExpression.lastIndex=-1,p.unitConvertionSchema.valueExpression.exec(e)):null)(e,n,t));){var r=!0,i=1==t?0:parseFloat(p.unitConvertionSchema.getValue(a.groups.V)),o=a.groups.N,s=a.index,l=s+a[0].length,i=(1!=t?a[0].replaceAll(a.groups.V,p.unitConvertionSchema.formatValue(Math.floor(Math.round(i*n.constant)))):a[0]).replaceAll(o,n.tragetUnit);if(2==t&&n.targetNotation&&(i+=" "+n.targetNotation),e=e.substring(0,s)+i+e.substring(l),2==t)return{content:e,success:r}}return{content:e,success:r}}async function x(t){i("US").split(" ").map(function(e){t.classList.add(e)}),document.body.addEventListener("ag.language.update",function(e){t.className=t.className.replace(/fflag\-[A-Z]{1,2}/gi,""),i(e.detail.code).split(" ").map(function(e){t.classList.add(e)}),e.detail.longCode&&k("longCode",e.detail.longCode);e=C();window.agLocale||(window.agLocale={}),window.agLocale.locale=e,document.body.dispatchEvent(new CustomEvent("ag.language.update.success"))}),t.addEventListener("click",async function(e){u=u||await(async()=>{var n,t,e=new _("span"),a=e.n("span");function r(e){A(t,"Language","language",e,function(e,t){e.h(t.localLabel||t.label)},function(e){return e?e.localLabel||e.label:""})}return A(a,"Location","code",p.presets,function(e,t){e.n("i").a("class",i(t.code)),e.n("b").h(t.localLabel||t.label)},function(t,e){return n.a("class",i(t.code)),r(p.languages.filter(function(e){return Array.isArray(t.language)?-1<t.language.indexOf(e.code):e.code==t.language})),e||document.body.dispatchEvent(new CustomEvent("ag.language.update",{detail:t})),t.localLabel||t.label}),n=a.n("i"),t=e.n("span"),r(p.languages),A(e.n("span"),"Currency","currency",p.currencies,function(e,t){e.h(t.localLabel||t.label)},function(e){return e.localLabel||e.label}),A(a=e.n("span"),"Property Measurement","messurement",p.units,function(e,t){e.h(t.localLabel||t.label)},function(e){return e.localLabel||e.label}),A(a=e.n("span"),"Distance Measurement","messurement",p.units,function(e,t){e.h(t.localLabel||t.label)},function(e){return e.localLabel||e.label}),e.node.setAttribute("ag-language-select",""),document.body.appendChild(e.node),(a=C())?.code&&document.body.dispatchEvent(new CustomEvent("ag.language.update",{detail:a})),e})(),e.stopPropagation(),(async e=>{e=e.getBoundingClientRect(),u.node.style.top=Math.floor(e.top-8)+"px",u.node.style.right="calc(100% - "+Math.floor(e.right+8)+"px)",u.node.querySelectorAll(".active")?.forEach(function(e){e.classList.remove("active")}),u.node.classList.add("active")})(t),document.body.addEventListener("click",a)})}function a(e){e.stopPropagation(),null==e.target.closest("[ag-language-select],[ag-language]")&&(document.body.removeEventListener("click",a),(async()=>{u.node.classList.remove("active")})(e.target))}function i(e){return"fflag ff-lg fflag-"+e}function C(){var e=window.localStorage.AGLANGUAGE,t={};return t=e&&""!=e?JSON.parse(e):t}var r=null,E=null;function k(e,t){var n,a=C();(a=null==a?{}:a)[e]&&a[e]==t||(a[e]=t,window.localStorage.setItem("AGLANGUAGE",JSON.stringify(a)),null!=r&&clearTimeout(S),r=setTimeout(async function(){r=null,await S(),null!=E&&(E(),E=null)},100),n=E,E=function(){null!=n&&n(),document.body.dispatchEvent(new CustomEvent("ag.language.change."+e))})}async function S(e){var t=C();JSON.stringify(n)!=JSON.stringify(t)&&(n=t)&&t.code&&await window.agRequest.POST("/services/agoraClient.ashx",Object.assign({type:"SET"},t))}var T={};function A(e,t,a,r,n,i){var o=t.toLowerCase().replace(/[^A-z0-9]/gi,""),s=!!T["itemList"+o],t=(s||e.h(t),s?T["itemList"+o]:T["itemList"+o]=e.n("span")),l=s?T["itemListValue"+o]:T["itemListValue"+o]=t.n("label"),c=(l.h("Selected Value"),s||l.cl(function(e){e.stopPropagation(),u.node.querySelectorAll(".active")?.forEach(function(e){e!=l.node&&e.classList.remove("active")}),l.node.classList.contains("active")?l.node.classList.remove("active"):l.node.classList.add("active")}),s?T["itemOptions"+o]:T["itemOptions"+o]=t.n("span"));c.h(""),r.map(function(e){var t=c.n("label");t.cl(function(){l.node.classList.remove("active"),k(a,e.code),l.h(i(e))}),n(t,e)}),a&&""!=a&&(T["General"+o]||(T["General"+o]=function(e){document.body.dispatchEvent(new CustomEvent("ag.language.update."+o,{detail:e.detail}))},document.body.addEventListener("ag.language.update",T["General"+o])),T["Field"+o]||(T["Field"+o]=function(e){var e=e.detail[a],n=Array.isArray(e)?e[0]:e,e=r.find(function(e,t){return e.code==n});i&&(k(a,n),l.h(i(e,!0)))},document.body.addEventListener("ag.language.update."+o,T["Field"+o])))}function _(e){return this.node=document.createElement(e),this}async function L(e,t){var n,a="";for(n in t)a+=(""!=a?"&":"")+n+"="+t[n];return e+=-1<e.indexOf("?")?"&":"?"+a,(await fetch(e,{method:"GET",cache:"no-cache",headers:{"Content-Type":"application/json"}})).json()}_.prototype.a=function(e,t){return this.node.setAttribute(e,t),this},_.prototype.n=function(e){e=new _(e);return this.node.appendChild(e.node),e},_.prototype.h=function(e){return this.node.innerHTML=e,this},_.prototype.cl=function(e){return this.node.removeEventListener("click",e),this.node.addEventListener("click",e),this},window.agLanguage={refresh:function(){document.body.dispatchEvent(new CustomEvent("ag.language.refresh.currency"))},refreshLocale:function(){document.body.dispatchEvent(new CustomEvent("ag.language.change.language"))}},(async()=>{var e=document.querySelectorAll("[ag-language]");if(!(e&&e.length<=0)){e.forEach(x);var a,r,i,e=!1,t=C();if(!t?.code)for(var n in e=!0,document.body.addEventListener("ag.language.country.auto-discovery",function(t){var e=p.presets.filter(function(e){return e.code==t.detail.countryCode});if(null!=e&&0<e.length&&"US"!=e[0].code){for(var n in e[0]){var a=Array.isArray(e[0][n])?e[0][n][0]:e[0][n];k(n,a="language"==n&&e[0].states&&e[0].states[t.detail.state]?e[0].states[t.detail.state]:a)}document.body.dispatchEvent(new CustomEvent("ag.language.update",{detail:e[0]}))}}),t=p.presets.filter(function(e){return"US"==e.code})[0])k(n,Array.isArray(t[n])?t[n][0]:t[n]);document.body.dispatchEvent(new CustomEvent("ag.language.update",{detail:t})),c(!0),t.language&&-1==t.language.indexOf("en")?s():(o=Object.assign({},t),l({Locale:"en_US"})),(async()=>{document.body.addEventListener("ag.language.change.language",function(){s()}),document.body.addEventListener("ag.language.change.currency",function(){c()}),document.body.addEventListener("ag.language.change.messurement",function(){m()}),document.body.addEventListener("ag.lazy.refresh",function(){m()}),document.body.addEventListener("ag.language.refresh.currency",function(){c()})})(),p.unitConvertionSchema=(r=a="",i={notationExpressions:{},notationOnlyExpressions:{},getValue:function(e){return parseFloat(e.replaceAll(/[^0-9\\.]/gi,""))},formatValue:function(e){return e.toLocaleString("en-US",{maximumFractionDigits:2})},haveValidAttribute:function(e){return!!e.hasAttribute&&e.hasAttribute("data-th")},getLabelForAttribute:function(e){return e.getAttribute?e.getAttribute("data-th"):""},setLabelForAttribute:function(e,t){e.setAttribute&&e.setAttribute("data-th",t)},getValueForAttribute:function(e){return e.innerText},setValueForAttribute:function(e,t){e.innerText=t}},p.unitConvertions.forEach(function(e){var t="",n="";e.notation.forEach(function(e){n+=(""!=n?"|":"")+"((?<N>"+e.replaceAll(/\s/gi,"\\s").replaceAll(/([^0-9A-z])/gi,"\\$1")+")(\\s|[^A-z]|$))",t+=(""!=t?"|":"")+"((?<V>[0-9\\,\\.]+)(\\n|\\s)*(?<N>"+e.replaceAll(/\s/gi,"\\s").replaceAll(/([^0-9A-z])/gi,"\\$1")+")(\\s|[^A-z]|$))"}),i.notationExpressions[e.unit]=new RegExp(t,"gmi"),i.notationOnlyExpressions[e.unit]=new RegExp(n,"gmi"),a+=(""!=a?"|":"")+"("+t+")",r+=(""!=r?"|":"")+"("+n+")"}),i.expression=new RegExp(a,"gmi"),i.notationExpression=new RegExp(r,"gmi"),i.valueExpression=new RegExp("((?<V>[0-9\\,]+(\\.[0-9]+)?)(\\n|\\s)*)","gmi"),await i),m(!0),e||(window.agLocale||(window.agLocale={}),window.agLocale.locale=t,document.body.dispatchEvent(new CustomEvent("ag.language.update.success")))}})()})(),$(document).on("change",'[data-ck-propertylist] [data-sort-object="CMNCMN"]',{},function(){e($(this).parents("[data-ck-propertylist]:first"),$(this).parents("[data-ck-property-url]:first").data("ck-property-url"),$(this).parents("[data-ck-propertylist]:first").data("ck-demand-key"),$(this).parents("[data-ck-propertylist]:first").data("ck-demand-layout"))})}function GetPropertyImageGallery(e){var t=e.find(".slides"),n=(t.attr("data-css-slider","0"),e.find("[data-mk]").data("mk")),a=e.find("[data-mlsboard]").data("mlsboard"),r=e.find("[data-detail-url]").data("detail-url"),i=$("[data-pcode]").data("pcode"),o=e.find("[data-mls-photo]").data("mls-photo"),s=e.find("[data-native-tab]").data("native-tab"),i=(IsNotNull(o)||(o="/images/company/"+i+"/NoPhotoImage/image-not-found.jpg"),parseInt(t.data("value"),10)),l=e.closest("[id]");buildFirstTemplate(o,i,(0==e.length?"un":l.attr("id").replace(/\$/gi,""))+(new Date).getMilliseconds(),a,n,t,r,s),e.addClass("init")}function buildFirstTemplate(e,t,n,a,r,i,o,s){var l=n+a+r+"_",n=($('<input type="radio" aria-label="'+l+'slider" name="'+l+'slider" id="'+l+'0" checked />').appendTo(i),$('<div class="nav"></div>')),c=$('<label aria-label="next" aria-controls="myCarousel-items" data-css-slider-nav="propphoto" for="'+l+'1" class="next"><span aria-label="next" class="visuallyhidden">next</span></label>'),u=$('<label aria-label="prev" aria-controls="myCarousel-items" data-css-slider-nav="propphoto" for="'+l+(parseInt(t,10)-1)+'" class="prev"><span aria-label="prev" class="visuallyhidden">prev</span></label>'),s=(u.on("click",d),c.on("click",d),u.appendTo(n),c.appendTo(n),t="PSB"==$("[data-pcode]").data("pcode")?"":'target = "_blank"',"undefined"!=s&&""!=s&&1==s&&(t=""),$('<li class="slide-container" aria-roledescription="carousel" role="contentinfo"><div class="slide"><div class="Prop_img" role="img" aria-label="bannerImage" style="background-image:url(\''+e+'\');"><a aria-label="'+l+'slider"'+t+'href="'+o+'"></a></div></div></li>'));function d(){var t=$(this);u.off("click"),c.off("click"),$.ajax({url:"/services/agoraPropertyPhotos.aspx",data:{mlsboard:a,mlsno:r,container:l},success:function(e){i.append(e),t.trigger("click")}})}s.append(n),s.appendTo(i)}function openImageGallery(e){var t=e.getAttribute("data-mk"),n=e.getAttribute("data-rt");showPropertyGallery(document.body.getAttribute("data-pcode"),n,t,e.getAttribute("data-photocount")??1,"fullscreen")}function setForms(e){null!=document.querySelector('[node="FirstName"]')&&null!=document.querySelector('[node="FirstName"]')&&(document.querySelector('[node="FirstName"]').value=e.FirstName??""),null!=document.querySelector('[node="LastName"]')&&null!=document.querySelector('[node="LastName"]')&&(document.querySelector('[node="LastName"]').value=e.LastName??""),null!=document.querySelector('[node="Email"]')&&null!=document.querySelector('[node="Email"]')&&(document.querySelector('[node="Email"]').value=e.Email??""),null!=document.querySelector('[node="MobilePhone"]')&&null!=document.querySelector('[node="MobilePhone"]')&&(document.querySelector('[node="MobilePhone"]').value=e.MobilePhone??"")}agora(function(){function e(){var e=$(this),t=$("#"+e.data("page-scroll")),t=null!=t&&0<t.length?t.offset().top:0,n=0;try{var a=e.data("page-scroll-offset"),n=void 0!==a&&""!=a?parseInt(a):$("#agora-layout-header").height()}catch(e){}$("html, body").animate({scrollTop:t-n},1500);try{$("#"+e.data("page-scroll-tab-id")).trigger("click")}catch(e){}}jQuery.fn.ForceNumericOnly=function(){return this.each(function(){$(this).keydown(function(e){var t=e.charCode||e.keyCode||0;return 8==(t=e.shiftKey?0:t)||9==t||13==t||46==t||110==t||190==t||35<=t&&t<=40||48<=t&&t<=57||96<=t&&t<=105})})},$("[data-numeric-only]").ForceNumericOnly(),$(document).ready(function(){$("[data-numeric-only]").ForceNumericOnly()}),$(document).on("click","[data-page-scroll]",e),$(document).on("tap","[data-page-scroll]",e),$(document).on("click","[data-back-to-top]",function(){BackToTop(this)}),$(document).on("tap","[data-back-to-top]",function(){BackToTop(this)}),$(document).on("click","[data-back-to-down]",function(){TopToBottom(this)}),$(document).on("tap","[data-back-to-down]",function(){TopToBottom(this)}),$(document).on("click","[data-href]",function(e){0<$(e.target).closest("[data-non-click-content]").length||isNullOrEmpty($(this).data("href"))||(isNullOrEmpty($(this).data("target"))?location.href=$(this).data("href"):window.open($(this).data("href"),$(this).data("target")))})}),agora(function(){$(document).ready(function(){!location.hash||"#signup"!=location.hash.toLowerCase()&&"#register"!=location.hash.toLowerCase()&&"#reset-password"!=location.hash.toLowerCase()||OpenPopup()})}),((l,n,a,i)=>{function c(e,t){this.settings=null,this.options=l.extend({},c.Defaults,t),this.$element=l(e),this._handlers={},this._plugins={},this._supress={},this._current=null,this._speed=null,this._coordinates=[],this._breakpoint=null,this._width=null,this._items=[],this._clones=[],this._mergers=[],this._widths=[],this._invalidated={},this._pipe=[],this._drag={time:null,target:null,pointer:null,stage:{start:null,current:null},direction:null},this._states={current:{},tags:{initializing:["busy"],animating:["busy"],dragging:["interacting"]}},l.each(["onResize","onThrottledResize"],l.proxy(function(e,t){this._handlers[t]=l.proxy(this[t],this)},this)),l.each(c.Plugins,l.proxy(function(e,t){this._plugins[e.charAt(0).toLowerCase()+e.slice(1)]=new t(this)},this)),l.each(c.Workers,l.proxy(function(e,t){this._pipe.push({filter:t.filter,run:l.proxy(t.run,this)})},this)),this.setup(),this.initialize()}c.Defaults={items:3,loop:!1,center:!1,rewind:!1,mouseDrag:!0,touchDrag:!0,pullDrag:!0,freeDrag:!1,margin:0,stagePadding:0,merge:!1,mergeFit:!0,autoWidth:!1,startPosition:0,rtl:!1,smartSpeed:250,fluidSpeed:!1,dragEndSpeed:!1,responsive:{},responsiveRefreshRate:200,responsiveBaseElement:n,fallbackEasing:"swing",info:!1,nestedItemSelector:!1,itemElement:"div",stageElement:"div",refreshClass:"owl-refresh",loadedClass:"owl-loaded",loadingClass:"owl-loading",rtlClass:"owl-rtl",responsiveClass:"owl-responsive",dragClass:"owl-drag",itemClass:"owl-item",stageClass:"owl-stage",stageOuterClass:"owl-stage-outer",grabClass:"owl-grab"},c.Width={Default:"default",Inner:"inner",Outer:"outer"},c.Type={Event:"event",State:"state"},c.Plugins={},c.Workers=[{filter:["width","settings"],run:function(){this._width=this.$element.width()}},{filter:["width","items","settings"],run:function(e){e.current=this._items&&this._items[this.relative(this._current)]}},{filter:["items","settings"],run:function(){this.$stage.children(".cloned").remove()}},{filter:["width","items","settings"],run:function(e){var t=this.settings.margin||"",n=!this.settings.autoWidth,a=this.settings.rtl,a={width:"auto","margin-left":a?t:"","margin-right":a?"":t};n||this.$stage.children().css(a),e.css=a}},{filter:["width","items","settings"],run:function(e){var t,n=(this.width()/this.settings.items).toFixed(3)-this.settings.margin,a=this._items.length,r=!this.settings.autoWidth,i=[];for(e.items={merge:!1,width:n};a--;)t=this._mergers[a],t=this.settings.mergeFit&&Math.min(t,this.settings.items)||t,e.items.merge=1<t||e.items.merge,i[a]=r?n*t:this._items[a].width();this._widths=i}},{filter:["items","settings"],run:function(){var e=[],t=this._items,n=this.settings,a=Math.max(2*n.items,4),r=2*Math.ceil(t.length/2),i=n.loop&&t.length?n.rewind?a:Math.max(a,r):0,o="",s="";for(i/=2;i--;)e.push(this.normalize(e.length/2,!0)),o+=t[e[e.length-1]][0].outerHTML,e.push(this.normalize(t.length-1-(e.length-1)/2,!0)),s=t[e[e.length-1]][0].outerHTML+s;this._clones=e,l(o).addClass("cloned").appendTo(this.$stage),l(s).addClass("cloned").prependTo(this.$stage)}},{filter:["width","items","settings"],run:function(){for(var e,t,n=this.settings.rtl?1:-1,a=this._clones.length+this._items.length,r=-1,i=[];++r<a;)e=i[r-1]||0,t=this._widths[this.relative(r)]+this.settings.margin,i.push(e+t*n);this._coordinates=i}},{filter:["width","items","settings"],run:function(){var e=this.settings.stagePadding,t=this._coordinates,t={width:Math.ceil(Math.abs(t[t.length-1]))+2*e,"padding-left":e||"","padding-right":e||""};this.$stage.css(t)}},{filter:["width","items","settings"],run:function(e){var t=this._coordinates.length,n=!this.settings.autoWidth,a=this.$stage.children();if(n&&e.items.merge)for(;t--;)e.css.width=this._widths[this.relative(t)],a.eq(t).css(e.css);else n&&(e.css.width=e.items.width,a.css(e.css))}},{filter:["items"],run:function(){this._coordinates.length<1&&this.$stage.removeAttr("style")}},{filter:["width","items","settings"],run:function(e){e.current=e.current?this.$stage.children().index(e.current):0,e.current=Math.max(this.minimum(),Math.min(this.maximum(),e.current)),this.reset(e.current)}},{filter:["position"],run:function(){this.animate(this.coordinates(this._current))}},{filter:["width","position","items","settings"],run:function(){for(var e,t,n=this.settings.rtl?1:-1,a=2*this.settings.stagePadding,r=this.coordinates(this.current())+a,i=r+this.width()*n,o=[],s=0,l=this._coordinates.length;s<l;s++)e=this._coordinates[s-1]||0,t=Math.abs(this._coordinates[s])+a*n,(this.op(e,"<=",r)&&this.op(e,">",i)||this.op(t,"<",r)&&this.op(t,">",i))&&o.push(s);this.$stage.children(".active").removeClass("active"),this.$stage.children(":eq("+o.join("), :eq(")+")").addClass("active"),this.settings.center&&(this.$stage.children(".center").removeClass("center"),this.$stage.children().eq(this.current()).addClass("center"))}}],c.prototype.initialize=function(){var e,t;this.enter("initializing"),this.trigger("initialize"),this.$element.toggleClass(this.settings.rtlClass,this.settings.rtl),this.settings.autoWidth&&!this.is("pre-loading")&&(e=this.$element.find("img"),t=this.settings.nestedItemSelector?"."+this.settings.nestedItemSelector:i,t=this.$element.children(t).width(),e.length)&&t<=0&&this.preloadAutoWidthImages(e),this.$element.addClass(this.options.loadingClass),this.$stage=l("<"+this.settings.stageElement+' class="'+this.settings.stageClass+'"/>').wrap('<div class="'+this.settings.stageOuterClass+'"/>'),this.$element.append(this.$stage.parent()),this.replace(this.$element.children().not(this.$stage.parent())),this.$element.is(":visible")?this.refresh():this.invalidate("width"),this.$element.removeClass(this.options.loadingClass).addClass(this.options.loadedClass),this.registerEventHandlers(),this.leave("initializing"),this.trigger("initialized")},c.prototype.setup=function(){var t=this.viewport(),e=this.options.responsive,n=-1,a=null;e?(l.each(e,function(e){e<=t&&n<e&&(n=Number(e))}),"function"==typeof(a=l.extend({},this.options,e[n])).stagePadding&&(a.stagePadding=a.stagePadding()),delete a.responsive,a.responsiveClass&&this.$element.attr("class",this.$element.attr("class").replace(new RegExp("("+this.options.responsiveClass+"-)\\S+\\s","g"),"$1"+n))):a=l.extend({},this.options),this.trigger("change",{property:{name:"settings",value:a}}),this._breakpoint=n,this.settings=a,this.invalidate("settings"),this.trigger("changed",{property:{name:"settings",value:this.settings}})},c.prototype.optionsLogic=function(){this.settings.autoWidth&&(this.settings.stagePadding=!1,this.settings.merge=!1)},c.prototype.prepare=function(e){var t=this.trigger("prepare",{content:e});return t.data||(t.data=l("<"+this.settings.itemElement+"/>").addClass(this.options.itemClass).append(e)),this.trigger("prepared",{content:t.data}),t.data},c.prototype.update=function(){for(var e=0,t=this._pipe.length,n=l.proxy(function(e){return this[e]},this._invalidated),a={};e<t;)(this._invalidated.all||0<l.grep(this._pipe[e].filter,n).length)&&this._pipe[e].run(a),e++;this._invalidated={},this.is("valid")||this.enter("valid")},c.prototype.width=function(e){switch(e=e||c.Width.Default){case c.Width.Inner:case c.Width.Outer:return this._width;default:return this._width-2*this.settings.stagePadding+this.settings.margin}},c.prototype.refresh=function(){this.enter("refreshing"),this.trigger("refresh"),this.setup(),this.optionsLogic(),this.$element.addClass(this.options.refreshClass),this.update(),this.$element.removeClass(this.options.refreshClass),this.leave("refreshing"),this.trigger("refreshed")},c.prototype.onThrottledResize=function(){n.clearTimeout(this.resizeTimer),this.resizeTimer=n.setTimeout(this._handlers.onResize,this.settings.responsiveRefreshRate)},c.prototype.onResize=function(){return!!this._items.length&&this._width!==this.$element.width()&&!!this.$element.is(":visible")&&(this.enter("resizing"),this.trigger("resize").isDefaultPrevented()?(this.leave("resizing"),!1):(this.invalidate("width"),this.refresh(),this.leave("resizing"),void this.trigger("resized")))},c.prototype.registerEventHandlers=function(){l.support.transition&&this.$stage.on(l.support.transition.end+".owl.core",l.proxy(this.onTransitionEnd,this)),!1!==this.settings.responsive&&this.on(n,"resize",this._handlers.onThrottledResize),this.settings.mouseDrag&&(this.$element.addClass(this.options.dragClass),this.$stage.on("mousedown.owl.core",l.proxy(this.onDragStart,this)),this.$stage.on("dragstart.owl.core selectstart.owl.core",function(){return!1})),this.settings.touchDrag&&(this.$stage.on("touchstart.owl.core",l.proxy(this.onDragStart,this)),this.$stage.on("touchcancel.owl.core",l.proxy(this.onDragEnd,this)))},c.prototype.onDragStart=function(e){var t=null;3!==e.which&&(t=l.support.transform?{x:(t=this.$stage.css("transform").replace(/.*\(|\)| /g,"").split(","))[16===t.length?12:4],y:t[16===t.length?13:5]}:(t=this.$stage.position(),{x:this.settings.rtl?t.left+this.$stage.width()-this.width()+this.settings.margin:t.left,y:t.top}),this.is("animating")&&(l.support.transform?this.animate(t.x):this.$stage.stop(),this.invalidate("position")),this.$element.toggleClass(this.options.grabClass,"mousedown"===e.type),this.speed(0),this._drag.time=(new Date).getTime(),this._drag.target=l(e.target),this._drag.stage.start=t,this._drag.stage.current=t,this._drag.pointer=this.pointer(e),l(a).on("mouseup.owl.core touchend.owl.core",l.proxy(this.onDragEnd,this)),l(a).one("mousemove.owl.core touchmove.owl.core",l.proxy(function(e){var t=this.difference(this._drag.pointer,this.pointer(e));l(a).on("mousemove.owl.core touchmove.owl.core",l.proxy(this.onDragMove,this)),Math.abs(t.x)<Math.abs(t.y)&&this.is("valid")||(e.preventDefault(),this.enter("dragging"),this.trigger("drag"))},this)))},c.prototype.onDragMove=function(e){var t=null,n=null,a=this.difference(this._drag.pointer,this.pointer(e)),r=this.difference(this._drag.stage.start,a);this.is("dragging")&&(e.preventDefault(),this.settings.loop?(t=this.coordinates(this.minimum()),n=this.coordinates(this.maximum()+1)-t,r.x=((r.x-t)%n+n)%n+t):(t=this.settings.rtl?this.coordinates(this.maximum()):this.coordinates(this.minimum()),n=this.settings.rtl?this.coordinates(this.minimum()):this.coordinates(this.maximum()),e=this.settings.pullDrag?-1*a.x/5:0,r.x=Math.max(Math.min(r.x,t+e),n+e)),this._drag.stage.current=r,this.animate(r.x))},c.prototype.onDragEnd=function(e){var e=this.difference(this._drag.pointer,this.pointer(e)),t=this._drag.stage.current,n=0<e.x^this.settings.rtl?"left":"right";l(a).off(".owl.core"),this.$element.removeClass(this.options.grabClass),(0!==e.x&&this.is("dragging")||!this.is("valid"))&&(this.speed(this.settings.dragEndSpeed||this.settings.smartSpeed),this.current(this.closest(t.x,0!==e.x?n:this._drag.direction)),this.invalidate("position"),this.update(),this._drag.direction=n,3<Math.abs(e.x)||300<(new Date).getTime()-this._drag.time)&&this._drag.target.one("click.owl.core",function(){return!1}),this.is("dragging")&&(this.leave("dragging"),this.trigger("dragged"))},c.prototype.closest=function(n,a){var r=-1,i=this.width(),o=this.coordinates();return this.settings.freeDrag||l.each(o,l.proxy(function(e,t){return"left"===a&&t-30<n&&n<t+30?r=e:"right"===a&&t-i-30<n&&n<t-i+30?r=e+1:this.op(n,"<",t)&&this.op(n,">",o[e+1]||t-i)&&(r="left"===a?e+1:e),-1===r},this)),this.settings.loop||(this.op(n,">",o[this.minimum()])?r=n=this.minimum():this.op(n,"<",o[this.maximum()])&&(r=n=this.maximum())),r},c.prototype.animate=function(e){var t=0<this.speed();this.is("animating")&&this.onTransitionEnd(),t&&(this.enter("animating"),this.trigger("translate")),l.support.transform3d&&l.support.transition?this.$stage.css({transform:"translate3d("+e+"px,0px,0px)",transition:this.speed()/1e3+"s"}):t?this.$stage.animate({left:e+"px"},this.speed(),this.settings.fallbackEasing,l.proxy(this.onTransitionEnd,this)):this.$stage.css({left:e+"px"})},c.prototype.is=function(e){return this._states.current[e]&&0<this._states.current[e]},c.prototype.current=function(e){if(e!==i){if(0===this._items.length)return i;var t;e=this.normalize(e),this._current!==e&&((t=this.trigger("change",{property:{name:"position",value:e}})).data!==i&&(e=this.normalize(t.data)),this._current=e,this.invalidate("position"),this.trigger("changed",{property:{name:"position",value:this._current}}))}return this._current},c.prototype.invalidate=function(e){return"string"===l.type(e)&&(this._invalidated[e]=!0,this.is("valid"))&&this.leave("valid"),l.map(this._invalidated,function(e,t){return t})},c.prototype.reset=function(e){(e=this.normalize(e))!==i&&(this._speed=0,this._current=e,this.suppress(["translate","translated"]),this.animate(this.coordinates(e)),this.release(["translate","translated"]))},c.prototype.normalize=function(e,t){var n=this._items.length,t=t?0:this._clones.length;return!this.isNumeric(e)||n<1?e=i:(e<0||n+t<=e)&&(e=((e-t/2)%n+n)%n+t/2),e},c.prototype.relative=function(e){return e-=this._clones.length/2,this.normalize(e,!0)},c.prototype.maximum=function(e){var t,n,a,r=this.settings,i=this._coordinates.length;if(r.loop)i=this._clones.length/2+this._items.length-1;else if(r.autoWidth||r.merge){for(t=this._items.length,n=this._items[--t].width(),a=this.$element.width();t--&&!(a<(n+=this._items[t].width()+this.settings.margin)););i=t+1}else i=r.center?this._items.length-1:this._items.length-r.items;return e&&(i-=this._clones.length/2),Math.max(i,0)},c.prototype.minimum=function(e){return e?0:this._clones.length/2},c.prototype.items=function(e){return e===i?this._items.slice():(e=this.normalize(e,!0),this._items[e])},c.prototype.mergers=function(e){return e===i?this._mergers.slice():(e=this.normalize(e,!0),this._mergers[e])},c.prototype.clones=function(n){function a(e){return e%2==0?r+e/2:t-(e+1)/2}var t=this._clones.length/2,r=t+this._items.length;return n===i?l.map(this._clones,function(e,t){return a(t)}):l.map(this._clones,function(e,t){return e===n?a(t):null})},c.prototype.speed=function(e){return e!==i&&(this._speed=e),this._speed},c.prototype.coordinates=function(e){var t,n=1,a=e-1;return e===i?l.map(this._coordinates,l.proxy(function(e,t){return this.coordinates(t)},this)):(this.settings.center?(this.settings.rtl&&(n=-1,a=e+1),t=this._coordinates[e],t+=(this.width()-t+(this._coordinates[a]||0))/2*n):t=this._coordinates[a]||0,Math.ceil(t))},c.prototype.duration=function(e,t,n){return 0===n?0:Math.min(Math.max(Math.abs(t-e),1),6)*Math.abs(n||this.settings.smartSpeed)},c.prototype.to=function(e,t){var n=this.current(),a=e-this.relative(n),r=(0<a)-(a<0),i=this._items.length,o=this.minimum(),s=this.maximum();this.settings.loop?(!this.settings.rewind&&Math.abs(a)>i/2&&(a+=-1*r*i),(r=(((e=n+a)-o)%i+i)%i+o)!==e&&r-a<=s&&0<r-a&&this.reset(n=(e=r)-a)):e=this.settings.rewind?(e%(s+=1)+s)%s:Math.max(o,Math.min(s,e)),this.speed(this.duration(n,e,t)),this.current(e),this.$element.is(":visible")&&this.update()},c.prototype.next=function(e){e=e||!1,this.to(this.relative(this.current())+1,e)},c.prototype.prev=function(e){e=e||!1,this.to(this.relative(this.current())-1,e)},c.prototype.onTransitionEnd=function(e){if(e!==i&&(e.stopPropagation(),(e.target||e.srcElement||e.originalTarget)!==this.$stage.get(0)))return!1;this.leave("animating"),this.trigger("translated")},c.prototype.viewport=function(){var e;if(this.options.responsiveBaseElement!==n)e=l(this.options.responsiveBaseElement).width();else if(n.innerWidth)e=n.innerWidth;else{if(!a.documentElement||!a.documentElement.clientWidth)throw"Can not detect viewport width.";e=a.documentElement.clientWidth}return e},c.prototype.replace=function(e){this.$stage.empty(),this._items=[],e=e&&(e instanceof jQuery?e:l(e)),(e=this.settings.nestedItemSelector?e.find("."+this.settings.nestedItemSelector):e).filter(function(){return 1===this.nodeType}).each(l.proxy(function(e,t){t=this.prepare(t),this.$stage.append(t),this._items.push(t),this._mergers.push(+t.find("[data-merge]").addBack("[data-merge]").attr("data-merge")||1)},this)),this.reset(this.isNumeric(this.settings.startPosition)?this.settings.startPosition:0),this.invalidate("items")},c.prototype.add=function(e,t){var n=this.relative(this._current);t=t===i?this._items.length:this.normalize(t,!0),e=e instanceof jQuery?e:l(e),this.trigger("add",{content:e,position:t}),e=this.prepare(e),0===this._items.length||t===this._items.length?(0===this._items.length&&this.$stage.append(e),0!==this._items.length&&this._items[t-1].after(e),this._items.push(e),this._mergers.push(+e.find("[data-merge]").addBack("[data-merge]").attr("data-merge")||1)):(this._items[t].before(e),this._items.splice(t,0,e),this._mergers.splice(t,0,+e.find("[data-merge]").addBack("[data-merge]").attr("data-merge")||1)),this._items[n]&&this.reset(this._items[n].index()),this.invalidate("items"),this.trigger("added",{content:e,position:t})},c.prototype.remove=function(e){(e=this.normalize(e,!0))!==i&&(this.trigger("remove",{content:this._items[e],position:e}),this._items[e].remove(),this._items.splice(e,1),this._mergers.splice(e,1),this.invalidate("items"),this.trigger("removed",{content:null,position:e}))},c.prototype.preloadAutoWidthImages=function(e){e.each(l.proxy(function(e,t){this.enter("pre-loading"),t=l(t),l(new Image).one("load",l.proxy(function(e){t.attr("src",e.target.src),t.css("opacity",1),this.leave("pre-loading"),this.refresh()},this)).attr("src",t.attr("src")||t.attr("data-src")||t.attr("data-src-retina"))},this))},c.prototype.destroy=function(){for(var e in this.$element.off(".owl.core"),this.$stage.off(".owl.core"),l(a).off(".owl.core"),!1!==this.settings.responsive&&(n.clearTimeout(this.resizeTimer),this.off(n,"resize",this._handlers.onThrottledResize)),this._plugins)this._plugins[e].destroy();this.$stage.children(".cloned").remove(),this.$stage.unwrap(),this.$stage.children().contents().unwrap(),this.$stage.children().unwrap(),this.$element.removeClass(this.options.refreshClass).removeClass(this.options.loadingClass).removeClass(this.options.loadedClass).removeClass(this.options.rtlClass).removeClass(this.options.dragClass).removeClass(this.options.grabClass).attr("class",this.$element.attr("class").replace(new RegExp(this.options.responsiveClass+"-\\S+\\s","g"),"")).removeData("owl.carousel")},c.prototype.op=function(e,t,n){var a=this.settings.rtl;switch(t){case"<":return a?n<e:e<n;case">":return a?e<n:n<e;case">=":return a?e<=n:n<=e;case"<=":return a?n<=e:e<=n}},c.prototype.on=function(e,t,n,a){e.addEventListener?e.addEventListener(t,n,a):e.attachEvent&&e.attachEvent("on"+t,n)},c.prototype.off=function(e,t,n,a){e.removeEventListener?e.removeEventListener(t,n,a):e.detachEvent&&e.detachEvent("on"+t,n)},c.prototype.trigger=function(e,t,n,a,r){var i={item:{count:this._items.length,index:this.current()}},o=l.camelCase(l.grep(["on",e,n],function(e){return e}).join("-").toLowerCase()),s=l.Event([e,"owl",n||"carousel"].join(".").toLowerCase(),l.extend({relatedTarget:this},i,t));return this._supress[e]||(l.each(this._plugins,function(e,t){t.onTrigger&&t.onTrigger(s)}),this.register({type:c.Type.Event,name:e}),this.$element.trigger(s),this.settings&&"function"==typeof this.settings[o]&&this.settings[o].call(this,s)),s},c.prototype.enter=function(e){l.each([e].concat(this._states.tags[e]||[]),l.proxy(function(e,t){this._states.current[t]===i&&(this._states.current[t]=0),this._states.current[t]++},this))},c.prototype.leave=function(e){l.each([e].concat(this._states.tags[e]||[]),l.proxy(function(e,t){this._states.current[t]--},this))},c.prototype.register=function(n){var t;n.type===c.Type.Event?(l.event.special[n.name]||(l.event.special[n.name]={}),l.event.special[n.name].owl||(t=l.event.special[n.name]._default,l.event.special[n.name]._default=function(e){return!t||!t.apply||e.namespace&&-1!==e.namespace.indexOf("owl")?e.namespace&&-1<e.namespace.indexOf("owl"):t.apply(this,arguments)},l.event.special[n.name].owl=!0)):n.type===c.Type.State&&(this._states.tags[n.name]?this._states.tags[n.name]=this._states.tags[n.name].concat(n.tags):this._states.tags[n.name]=n.tags,this._states.tags[n.name]=l.grep(this._states.tags[n.name],l.proxy(function(e,t){return l.inArray(e,this._states.tags[n.name])===t},this)))},c.prototype.suppress=function(e){l.each(e,l.proxy(function(e,t){this._supress[t]=!0},this))},c.prototype.release=function(e){l.each(e,l.proxy(function(e,t){delete this._supress[t]},this))},c.prototype.pointer=function(e){var t={x:null,y:null};return(e=(e=e.originalEvent||e||n.event).touches&&e.touches.length?e.touches[0]:e.changedTouches&&e.changedTouches.length?e.changedTouches[0]:e).pageX?(t.x=e.pageX,t.y=e.pageY):(t.x=e.clientX,t.y=e.clientY),t},c.prototype.isNumeric=function(e){return!isNaN(parseFloat(e))},c.prototype.difference=function(e,t){return{x:e.x-t.x,y:e.y-t.y}},l.fn.owlCarousel=function(t){var a=Array.prototype.slice.call(arguments,1);return this.each(function(){var e=l(this),n=e.data("owl.carousel");n||(n=new c(this,"object"==typeof t&&t),e.data("owl.carousel",n),l.each(["next","prev","to","destroy","refresh","replace","add","remove"],function(e,t){n.register({type:c.Type.Event,name:t}),n.$element.on(t+".owl.carousel.core",l.proxy(function(e){e.namespace&&e.relatedTarget!==this&&(this.suppress([t]),n[t].apply(this,[].slice.call(arguments,1)),this.release([t]))},n))})),"string"==typeof t&&"_"!==t.charAt(0)&&n[t].apply(n,a)})},l.fn.owlCarousel.Constructor=c})(window.Zepto||window.jQuery,window,document),((t,n)=>{function a(e){this._core=e,this._interval=null,this._visible=null,this._handlers={"initialized.owl.carousel":t.proxy(function(e){e.namespace&&this._core.settings.autoRefresh&&this.watch()},this)},this._core.options=t.extend({},a.Defaults,this._core.options),this._core.$element.on(this._handlers)}a.Defaults={autoRefresh:!0,autoRefreshInterval:500},a.prototype.watch=function(){this._interval||(this._visible=this._core.$element.is(":visible"),this._interval=n.setInterval(t.proxy(this.refresh,this),this._core.settings.autoRefreshInterval))},a.prototype.refresh=function(){this._core.$element.is(":visible")!==this._visible&&(this._visible=!this._visible,this._core.$element.toggleClass("owl-hidden",!this._visible),this._visible)&&this._core.invalidate("width")&&this._core.refresh()},a.prototype.destroy=function(){var e,t;for(e in n.clearInterval(this._interval),this._handlers)this._core.$element.off(e,this._handlers[e]);for(t in Object.getOwnPropertyNames(this))"function"!=typeof this[t]&&(this[t]=null)},t.fn.owlCarousel.Constructor.Plugins.AutoRefresh=a})(window.Zepto||window.jQuery,window,document),((s,r)=>{function t(e){this._core=e,this._loaded=[],this._handlers={"initialized.owl.carousel change.owl.carousel resized.owl.carousel":s.proxy(function(e){if(e.namespace&&this._core.settings&&this._core.settings.lazyLoad&&(e.property&&"position"==e.property.name||"initialized"==e.type))for(var t=this._core.settings,n=t.center&&Math.ceil(t.items/2)||t.items,a=t.center&&-1*n||0,r=(e.property&&void 0!==e.property.value?e.property.value:this._core.current())+a,i=this._core.clones().length,o=s.proxy(function(e,t){this.load(t)},this);a++<n;)this.load(i/2+this._core.relative(r)),i&&s.each(this._core.clones(this._core.relative(r)),o),r++},this)},this._core.options=s.extend({},t.Defaults,this._core.options),this._core.$element.on(this._handlers)}t.Defaults={lazyLoad:!1},t.prototype.load=function(e){var e=this._core.$stage.children().eq(e),t=e&&e.find(".owl-lazy");!t||-1<s.inArray(e.get(0),this._loaded)||(t.each(s.proxy(function(e,t){var n=s(t),a=1<r.devicePixelRatio&&n.attr("data-src-retina")||n.attr("data-src");this._core.trigger("load",{element:n,url:a},"lazy"),n.is("img")?n.one("load.owl.lazy",s.proxy(function(){n.css("opacity",1),this._core.trigger("loaded",{element:n,url:a},"lazy")},this)).attr("src",a):((t=new Image).onload=s.proxy(function(){n.css({"background-image":"url("+a+")",opacity:"1"}),this._core.trigger("loaded",{element:n,url:a},"lazy")},this),t.src=a)},this)),this._loaded.push(e.get(0)))},t.prototype.destroy=function(){var e,t;for(e in this.handlers)this._core.$element.off(e,this.handlers[e]);for(t in Object.getOwnPropertyNames(this))"function"!=typeof this[t]&&(this[t]=null)},s.fn.owlCarousel.Constructor.Plugins.Lazy=t})(window.Zepto||window.jQuery,window,document),(a=>{function t(e){this._core=e,this._handlers={"initialized.owl.carousel refreshed.owl.carousel":a.proxy(function(e){e.namespace&&this._core.settings.autoHeight&&this.update()},this),"changed.owl.carousel":a.proxy(function(e){e.namespace&&this._core.settings.autoHeight&&"position"==e.property.name&&this.update()},this),"loaded.owl.lazy":a.proxy(function(e){e.namespace&&this._core.settings.autoHeight&&e.element.closest("."+this._core.settings.itemClass).index()===this._core.current()&&this.update()},this)},this._core.options=a.extend({},t.Defaults,this._core.options),this._core.$element.on(this._handlers)}t.Defaults={autoHeight:!1,autoHeightClass:"owl-height"},t.prototype.update=function(){var e=this._core._current,t=e+this._core.settings.items,e=this._core.$stage.children().toArray().slice(e,t),n=[];a.each(e,function(e,t){n.push(a(t).height())}),t=Math.max.apply(null,n),this._core.$stage.parent().height(t).addClass(this._core.settings.autoHeightClass)},t.prototype.destroy=function(){var e,t;for(e in this._handlers)this._core.$element.off(e,this._handlers[e]);for(t in Object.getOwnPropertyNames(this))"function"!=typeof this[t]&&(this[t]=null)},a.fn.owlCarousel.Constructor.Plugins.AutoHeight=t})(window.Zepto||window.jQuery,document),((u,t)=>{function n(e){this._core=e,this._videos={},this._playing=null,this._handlers={"initialized.owl.carousel":u.proxy(function(e){e.namespace&&this._core.register({type:"state",name:"playing",tags:["interacting"]})},this),"resize.owl.carousel":u.proxy(function(e){e.namespace&&this._core.settings.video&&this.isInFullScreen()&&e.preventDefault()},this),"refreshed.owl.carousel":u.proxy(function(e){e.namespace&&this._core.is("resizing")&&this._core.$stage.find(".cloned .owl-video-frame").remove()},this),"changed.owl.carousel":u.proxy(function(e){e.namespace&&"position"===e.property.name&&this._playing&&this.stop()},this),"prepared.owl.carousel":u.proxy(function(e){var t;e.namespace&&(t=u(e.content).find(".owl-video")).length&&(t.css("display","none"),this.fetch(t,u(e.content)))},this)},this._core.options=u.extend({},n.Defaults,this._core.options),this._core.$element.on(this._handlers),this._core.$element.on("click.owl.video",".owl-video-play-icon",u.proxy(function(e){this.play(e)},this))}n.Defaults={video:!1,videoHeight:!1,videoWidth:!1},n.prototype.fetch=function(e,t){var n=e.attr("data-vimeo-id")?"vimeo":e.attr("data-vzaar-id")?"vzaar":"youtube",a=e.attr("data-vimeo-id")||e.attr("data-youtube-id")||e.attr("data-vzaar-id"),r=e.attr("data-width")||this._core.settings.videoWidth,i=e.attr("data-height")||this._core.settings.videoHeight,o=e.attr("href");if(!o)throw new Error("Missing video URL.");if(-1<(a=o.match(/(http:|https:|)\/\/(player.|www.|app.)?(vimeo\.com|youtu(be\.com|\.be|be\.googleapis\.com)|vzaar\.com)\/(video\/|videos\/|embed\/|channels\/.+\/|groups\/.+\/|watch\?v=|v\/)?([A-Za-z0-9._%-]*)(\&\S+)?/))[3].indexOf("youtu"))n="youtube";else if(-1<a[3].indexOf("vimeo"))n="vimeo";else{if(!(-1<a[3].indexOf("vzaar")))throw new Error("Video URL not supported.");n="vzaar"}a=a[6],this._videos[o]={type:n,id:a,width:r,height:i},t.attr("data-video",o),this.thumbnail(e,this._videos[o])},n.prototype.thumbnail=function(t,e){function n(e){a=c.lazyLoad?'<div class="owl-video-tn '+l+'" '+s+'="'+e+'"></div>':'<div class="owl-video-tn" style="opacity:1;background-image:url('+e+')"></div>',t.after(a),t.after('<div class="owl-video-play-icon"></div>')}var a,r,i=e.width&&e.height?'style="width:'+e.width+"px;height:"+e.height+'px;"':"",o=t.find("img"),s="src",l="",c=this._core.settings;if(t.wrap('<div class="owl-video-wrapper"'+i+"></div>"),this._core.settings.lazyLoad&&(s="data-src",l="owl-lazy"),o.length)return n(o.attr(s)),o.remove(),!1;"youtube"===e.type?(r="//img.youtube.com/vi/"+e.id+"/hqdefault.jpg",n(r)):"vimeo"===e.type?u.ajax({type:"GET",url:"//vimeo.com/api/v2/video/"+e.id+".json",jsonp:"callback",dataType:"jsonp",success:function(e){r=e[0].thumbnail_large,n(r)}}):"vzaar"===e.type&&u.ajax({type:"GET",url:"//vzaar.com/api/videos/"+e.id+".json",jsonp:"callback",dataType:"jsonp",success:function(e){r=e.framegrab_url,n(r)}})},n.prototype.stop=function(){this._core.trigger("stop",null,"video"),this._playing.find(".owl-video-frame").remove(),this._playing.removeClass("owl-video-playing"),this._playing=null,this._core.leave("playing"),this._core.trigger("stopped",null,"video")},n.prototype.play=function(e){var t,e=u(e.target).closest("."+this._core.settings.itemClass),n=this._videos[e.attr("data-video")],a=n.width||"100%",r=n.height||this._core.$stage.height();this._playing||(this._core.enter("playing"),this._core.trigger("play",null,"video"),e=this._core.items(this._core.relative(e.index())),this._core.reset(e.index()),"youtube"===n.type?t='<iframe width="'+a+'" height="'+r+'" src="//www.youtube.com/embed/'+n.id+"?autoplay=1&v="+n.id+'" frameborder="0" allowfullscreen></iframe>':"vimeo"===n.type?t='<iframe src="//player.vimeo.com/video/'+n.id+'?autoplay=1" width="'+a+'" height="'+r+'" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>':"vzaar"===n.type&&(t='<iframe frameborder="0"height="'+r+'"width="'+a+'" allowfullscreen mozallowfullscreen webkitAllowFullScreen src="//view.vzaar.com/'+n.id+'/player?autoplay=true"></iframe>'),u('<div class="owl-video-frame">'+t+"</div>").insertAfter(e.find(".owl-video")),this._playing=e.addClass("owl-video-playing"))},n.prototype.isInFullScreen=function(){var e=t.fullscreenElement||t.mozFullScreenElement||t.webkitFullscreenElement;return e&&u(e).parent().hasClass("owl-video-frame")},n.prototype.destroy=function(){var e,t;for(e in this._core.$element.off("click.owl.video"),this._handlers)this._core.$element.off(e,this._handlers[e]);for(t in Object.getOwnPropertyNames(this))"function"!=typeof this[t]&&(this[t]=null)},u.fn.owlCarousel.Constructor.Plugins.Video=n})(window.Zepto||window.jQuery,document),(o=>{function t(e){this.core=e,this.core.options=o.extend({},t.Defaults,this.core.options),this.swapping=!0,this.previous=void 0,this.next=void 0,this.handlers={"change.owl.carousel":o.proxy(function(e){e.namespace&&"position"==e.property.name&&(this.previous=this.core.current(),this.next=e.property.value)},this),"drag.owl.carousel dragged.owl.carousel translated.owl.carousel":o.proxy(function(e){e.namespace&&(this.swapping="translated"==e.type)},this),"translate.owl.carousel":o.proxy(function(e){e.namespace&&this.swapping&&(this.core.options.animateOut||this.core.options.animateIn)&&this.swap()},this)},this.core.$element.on(this.handlers)}t.Defaults={animateOut:!1,animateIn:!1},t.prototype.swap=function(){var e,t,n,a,r,i;1===this.core.settings.items&&o.support.animation&&o.support.transition&&(this.core.speed(0),t=o.proxy(this.clear,this),n=this.core.$stage.children().eq(this.previous),a=this.core.$stage.children().eq(this.next),r=this.core.settings.animateIn,i=this.core.settings.animateOut,this.core.current()!==this.previous)&&(i&&(e=this.core.coordinates(this.previous)-this.core.coordinates(this.next),n.one(o.support.animation.end,t).css({left:e+"px"}).addClass("animated owl-animated-out").addClass(i)),r)&&a.one(o.support.animation.end,t).addClass("animated owl-animated-in").addClass(r)},t.prototype.clear=function(e){o(e.target).css({left:""}).removeClass("animated owl-animated-out owl-animated-in").removeClass(this.core.settings.animateIn).removeClass(this.core.settings.animateOut),this.core.onTransitionEnd()},t.prototype.destroy=function(){var e,t;for(e in this.handlers)this.core.$element.off(e,this.handlers[e]);for(t in Object.getOwnPropertyNames(this))"function"!=typeof this[t]&&(this[t]=null)},o.fn.owlCarousel.Constructor.Plugins.Animate=t})(window.Zepto||window.jQuery,document),((n,a,r)=>{function t(e){this._core=e,this._timeout=null,this._paused=!1,this._handlers={"changed.owl.carousel":n.proxy(function(e){e.namespace&&"settings"===e.property.name?this._core.settings.autoplay?this.play():this.stop():e.namespace&&"position"===e.property.name&&this._core.settings.autoplay&&this._setAutoPlayInterval()},this),"initialized.owl.carousel":n.proxy(function(e){e.namespace&&this._core.settings.autoplay&&this.play()},this),"play.owl.autoplay":n.proxy(function(e,t,n){e.namespace&&this.play(t,n)},this),"stop.owl.autoplay":n.proxy(function(e){e.namespace&&this.stop()},this),"mouseover.owl.autoplay":n.proxy(function(){this._core.settings.autoplayHoverPause&&this._core.is("rotating")&&this.pause()},this),"mouseleave.owl.autoplay":n.proxy(function(){this._core.settings.autoplayHoverPause&&this._core.is("rotating")&&this.play()},this),"touchstart.owl.core":n.proxy(function(){this._core.settings.autoplayHoverPause&&this._core.is("rotating")&&this.pause()},this),"touchend.owl.core":n.proxy(function(){this._core.settings.autoplayHoverPause&&this.play()},this)},this._core.$element.on(this._handlers),this._core.options=n.extend({},t.Defaults,this._core.options)}t.Defaults={autoplay:!1,autoplayTimeout:5e3,autoplayHoverPause:!1,autoplaySpeed:!1},t.prototype.play=function(e,t){this._paused=!1,this._core.is("rotating")||(this._core.enter("rotating"),this._setAutoPlayInterval())},t.prototype._getNextTimeout=function(e,t){return this._timeout&&a.clearTimeout(this._timeout),a.setTimeout(n.proxy(function(){this._paused||this._core.is("busy")||this._core.is("interacting")||r.hidden||this._core.next(t||this._core.settings.autoplaySpeed)},this),e||this._core.settings.autoplayTimeout)},t.prototype._setAutoPlayInterval=function(){this._timeout=this._getNextTimeout()},t.prototype.stop=function(){this._core.is("rotating")&&(a.clearTimeout(this._timeout),this._core.leave("rotating"))},t.prototype.pause=function(){this._core.is("rotating")&&(this._paused=!0)},t.prototype.destroy=function(){var e,t;for(e in this.stop(),this._handlers)this._core.$element.off(e,this._handlers[e]);for(t in Object.getOwnPropertyNames(this))"function"!=typeof this[t]&&(this[t]=null)},n.fn.owlCarousel.Constructor.Plugins.autoplay=t})(window.Zepto||window.jQuery,window,document),(r=>{function t(e){this._core=e,this._initialized=!1,this._pages=[],this._controls={},this._templates=[],this.$element=this._core.$element,this._overrides={next:this._core.next,prev:this._core.prev,to:this._core.to},this._handlers={"prepared.owl.carousel":r.proxy(function(e){e.namespace&&this._core.settings.dotsData&&this._templates.push('<div class="'+this._core.settings.dotClass+'">'+r(e.content).find("[data-dot]").addBack("[data-dot]").attr("data-dot")+"</div>")},this),"added.owl.carousel":r.proxy(function(e){e.namespace&&this._core.settings.dotsData&&this._templates.splice(e.position,0,this._templates.pop())},this),"remove.owl.carousel":r.proxy(function(e){e.namespace&&this._core.settings.dotsData&&this._templates.splice(e.position,1)},this),"changed.owl.carousel":r.proxy(function(e){e.namespace&&"position"==e.property.name&&this.draw()},this),"initialized.owl.carousel":r.proxy(function(e){e.namespace&&!this._initialized&&(this._core.trigger("initialize",null,"navigation"),this.initialize(),this.update(),this.draw(),this._initialized=!0,this._core.trigger("initialized",null,"navigation"))},this),"refreshed.owl.carousel":r.proxy(function(e){e.namespace&&this._initialized&&(this._core.trigger("refresh",null,"navigation"),this.update(),this.draw(),this._core.trigger("refreshed",null,"navigation"))},this)},this._core.options=r.extend({},t.Defaults,this._core.options),this.$element.on(this._handlers)}t.Defaults={nav:!1,navText:["prev","next"],navSpeed:!1,navElement:"div",navContainer:!1,navContainerClass:"owl-nav",navClass:["owl-prev","owl-next"],slideBy:1,dotClass:"owl-dot",dotsClass:"owl-dots",dots:!0,dotsEach:!1,dotsData:!1,dotsSpeed:!1,dotsContainer:!1},t.prototype.initialize=function(){var e,n=this._core.settings;for(e in this._controls.$relative=(n.navContainer?r(n.navContainer):r("<div>").addClass(n.navContainerClass).appendTo(this.$element)).addClass("disabled"),this._controls.$previous=r("<"+n.navElement+">").addClass(n.navClass[0]).html(n.navText[0]).prependTo(this._controls.$relative).on("click",r.proxy(function(e){this.prev(n.navSpeed)},this)),this._controls.$next=r("<"+n.navElement+">").addClass(n.navClass[1]).html(n.navText[1]).appendTo(this._controls.$relative).on("click",r.proxy(function(e){this.next(n.navSpeed)},this)),n.dotsData||(this._templates=[r("<div>").addClass(n.dotClass).append(r("<span>")).prop("outerHTML")]),this._controls.$absolute=(n.dotsContainer?r(n.dotsContainer):r("<div>").addClass(n.dotsClass).appendTo(this.$element)).addClass("disabled"),this._controls.$absolute.on("click","div",r.proxy(function(e){var t=(r(e.target).parent().is(this._controls.$absolute)?r(e.target):r(e.target).parent()).index();e.preventDefault(),this.to(t,n.dotsSpeed)},this)),this._overrides)this._core[e]=r.proxy(this[e],this)},t.prototype.destroy=function(){var e,t,n,a;for(e in this._handlers)this.$element.off(e,this._handlers[e]);for(t in this._controls)this._controls[t].remove();for(a in this.overides)this._core[a]=this._overrides[a];for(n in Object.getOwnPropertyNames(this))"function"!=typeof this[n]&&(this[n]=null)},t.prototype.update=function(){var e,t,n=this._core.clones().length/2,a=n+this._core.items().length,r=this._core.maximum(!0),i=this._core.settings,o=i.center||i.autoWidth||i.dotsData?1:i.dotsEach||i.items;if("page"!==i.slideBy&&(i.slideBy=Math.min(i.slideBy,i.items)),i.dots||"page"==i.slideBy)for(this._pages=[],e=n,t=0;e<a;e++){if(o<=t||0===t){if(this._pages.push({start:Math.min(r,e-n),end:e-n+o-1}),Math.min(r,e-n)===r)break;t=0,0}t+=this._core.mergers(this._core.relative(e))}},t.prototype.draw=function(){var e=this._core.settings,t=this._core.items().length<=e.items,n=this._core.relative(this._core.current()),a=e.loop||e.rewind;this._controls.$relative.toggleClass("disabled",!e.nav||t),e.nav&&(this._controls.$previous.toggleClass("disabled",!a&&n<=this._core.minimum(!0)),this._controls.$next.toggleClass("disabled",!a&&n>=this._core.maximum(!0))),this._controls.$absolute.toggleClass("disabled",!e.dots||t),e.dots&&(a=this._pages.length-this._controls.$absolute.children().length,e.dotsData&&0!=a?this._controls.$absolute.html(this._templates.join("")):0<a?this._controls.$absolute.append(new Array(1+a).join(this._templates[0])):a<0&&this._controls.$absolute.children().slice(a).remove(),this._controls.$absolute.find(".active").removeClass("active"),this._controls.$absolute.children().eq(r.inArray(this.current(),this._pages)).addClass("active"))},t.prototype.onTrigger=function(e){var t=this._core.settings;e.page={index:r.inArray(this.current(),this._pages),count:this._pages.length,size:t&&(t.center||t.autoWidth||t.dotsData?1:t.dotsEach||t.items)}},t.prototype.current=function(){var n=this._core.relative(this._core.current());return r.grep(this._pages,r.proxy(function(e,t){return e.start<=n&&e.end>=n},this)).pop()},t.prototype.getPosition=function(e){var t,n,a=this._core.settings;return"page"==a.slideBy?(t=r.inArray(this.current(),this._pages),n=this._pages.length,e?++t:--t,t=this._pages[(t%n+n)%n].start):(t=this._core.relative(this._core.current()),n=this._core.items().length,e?t+=a.slideBy:t-=a.slideBy),t},t.prototype.next=function(e){r.proxy(this._overrides.to,this._core)(this.getPosition(!0),e)},t.prototype.prev=function(e){r.proxy(this._overrides.to,this._core)(this.getPosition(!1),e)},t.prototype.to=function(e,t,n){!n&&this._pages.length?(n=this._pages.length,r.proxy(this._overrides.to,this._core)(this._pages[(e%n+n)%n].start,t)):r.proxy(this._overrides.to,this._core)(e,t)},r.fn.owlCarousel.Constructor.Plugins.Navigation=t})(window.Zepto||window.jQuery,document),((a,r)=>{function t(e){this._core=e,this._hashes={},this.$element=this._core.$element,this._handlers={"initialized.owl.carousel":a.proxy(function(e){e.namespace&&"URLHash"===this._core.settings.startPosition&&a(r).trigger("hashchange.owl.navigation")},this),"prepared.owl.carousel":a.proxy(function(e){var t;e.namespace&&(t=a(e.content).find("[data-hash]").addBack("[data-hash]").attr("data-hash"))&&(this._hashes[t]=e.content)},this),"changed.owl.carousel":a.proxy(function(e){var n;e.namespace&&"position"===e.property.name&&(n=this._core.items(this._core.relative(this._core.current())),e=a.map(this._hashes,function(e,t){return e===n?t:null}).join())&&r.location.hash.slice(1)!==e&&(r.location.hash=e)},this)},this._core.options=a.extend({},t.Defaults,this._core.options),this.$element.on(this._handlers),a(r).on("hashchange.owl.navigation",a.proxy(function(e){var t=r.location.hash.substring(1),n=this._core.$stage.children(),n=this._hashes[t]&&n.index(this._hashes[t]);void 0!==n&&n!==this._core.current()&&this._core.to(this._core.relative(n),!1,!0)},this))}t.Defaults={URLhashListener:!1},t.prototype.destroy=function(){var e,t;for(e in a(r).off("hashchange.owl.navigation"),this._handlers)this._core.$element.off(e,this._handlers[e]);for(t in Object.getOwnPropertyNames(this))"function"!=typeof this[t]&&(this[t]=null)},a.fn.owlCarousel.Constructor.Plugins.Hash=t})(window.Zepto||window.jQuery,window,document),(r=>{var i=r("<support>").get(0).style,o="Webkit Moz O ms".split(" "),e={transition:{end:{WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd",transition:"transitionend"}},animation:{end:{WebkitAnimation:"webkitAnimationEnd",MozAnimation:"animationend",OAnimation:"oAnimationEnd",animation:"animationend"}}},t=function(){return!!s("transform")},n=function(){return!!s("perspective")},a=function(){return!!s("animation")};function s(e,n){var a=!1,t=e.charAt(0).toUpperCase()+e.slice(1);return r.each((e+" "+o.join(t+" ")+t).split(" "),function(e,t){if(void 0!==i[t])return a=!n||t,!1}),a}function l(e){return s(e,!0)}!function(){return!!s("transition")}()||(r.support.transition=new String(l("transition")),r.support.transition.end=e.transition.end[r.support.transition]),a()&&(r.support.animation=new String(l("animation")),r.support.animation.end=e.animation.end[r.support.animation]),t()&&(r.support.transform=new String(l("transform")),r.support.transform3d=n())})(window.Zepto||window.jQuery,document),window.agRequest={GET:async function(e,t){var n,a="";for(n in t)a+=(""!=a?"&":"")+n+"="+t[n];return e+=-1<e.indexOf("?")?"&":"?"+a,(await fetch(e,{method:"GET",cache:"no-cache",headers:{"Content-Type":"application/json"}})).json()},POST:async function(e,t){var n,a=new URLSearchParams;for(n in t)a.append(n,t[n]);return(await fetch(e,{method:"POST",cache:"no-cache",body:a})).json()}},agora(function(){EnableHJNImport(),EnableYelpImport(),EnableAreaMapImport()}),(async()=>{async function t(){document.querySelectorAll('[data-src]:not(.ag-lazy):not(.no-ag):not([data-src*="{{"])').forEach(function(e,t){e.classList.add("ag-lazy");var n=function(){(async(e,t)=>{var n="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNkYAAAAAYAAjCB0C8AAAAASUVORK5CYII=";if(await(async e=>{let t=e.getBoundingClientRect(),n=document.body,a=document.documentElement,r=window.pageYOffset||a.scrollTop||n.scrollTop,i=(window.pageXOffset||a.scrollLeft||n.scrollLeft,a.clientTop||n.clientTop||0),o=(a.clientLeft||n.clientLeft,t.top+r-i),s=t.bottom+r-i,l=r,c=l+window.innerHeight;return s>l&&o<c})(e)){if(null==e)return;var a=await(async(e,t)=>{var n,a,r;return null==t?null:t.hasAttribute("data-ratio-auto")||"VIDEO"==t.nodeName||"OBJECT"==t.nodeName?{url:e}:null==(n=await async function e(t,n,a,r){if(null==t)return null;var i=t.getBoundingClientRect();var o=t.getAttribute("data-ratio");var s=t.getAttribute("data-scale");null!=s&&(r=parseFloat(s));s=null;o&&null!=o&&null!=(s=/^(?<width>[0-9\.]{1,4}):(?<height>[0-9\.]{1,4})$/gi.exec(o))&&(n=parseFloat(s.groups.width),a=parseFloat(s.groups.height),0==n&&(n=-1),0==a)&&(a=-1);o=i.width;s=i.height;t.classList.contains("ag-lazy")&&(o=t.getAttribute("width"),s=t.getAttribute("height"),o=null==(o=null!=o&&""!=o?o:t.style.width)||""==o?0:parseInt(o.replace(/[^\d]+/gi,"")),s=null==s||""==s?0:parseInt(s.replace(/[^\d]+/gi,"")));o!=s&&(null==o||null==s||s<o/n*a||o<s/a*n)&&(0<o?s=o/n*a:o=s/a*n);if((0<o||n<0)&&(0<s||a<0))return o=Math.floor(o),s=Math.floor(s),{width:n<0?0:o+(10-o%10),height:a<0?0:s+(10-s%10),scale:r};return e(t.parentElement,n,a,r)}(t,16,9,1))?null:(a=/.*\?(.*?(mh|mw)\=(\d+))*/gi.exec(e),r="",null!=t.getAttribute("data-crop")&&(r+="&mode=crop"),e.indexOf("/"),null!=a?{url:e,size:n}:{url:e+"?"+(0<n.width?"mw="+n.width*n.scale+(0<n.height?"&":""):"")+(0<n.height?"mh="+n.height*n.scale:"")+r,size:n})})(e.getAttribute("data-src"),e);e.setAttribute("data-src",a.url),"VIDEO"==e.nodeName||"OBJECT"==e.nodeName||"AUDIO"==e.nodeName?e.setAttribute("src",a.url):"IMG"==e.nodeName?(e.addEventListener("load",function(){e.getAttribute("src")!=n&&e.classList.add("ag-lazy-s")}),e.setAttribute("src",n),null!=a&&(a.size&&(0<a.size.width&&e.setAttribute("width",a.size.width),0<a.size.height)&&e.setAttribute("height",a.size.height),e.setAttribute("src",a.url))):e.style["background-image"]=`url('${a.url}')`,t()}new IntersectionObserver(function(){console.log(e,"View")},{root:null,rootMargin:"0px",threshold:.1})})(e,function(){document.body.removeEventListener("ag.lazy",n)})};document.body.addEventListener("ag.lazy",n),n()})}document.addEventListener("DOMContentLoaded",async function(){document.body.addEventListener("ag.lazy.refresh",t),document.body.addEventListener("ag.refresh",t);var e=new CustomEvent("ag.lazy.refresh"),e=(document.body.dispatchEvent(e),document.addEventListener("scroll",function(e){var t=new CustomEvent("ag.lazy");document.body.dispatchEvent(t)}),new CustomEvent("ag.lazy"));document.body.dispatchEvent(e),window.agLazy={refresh:function(){var e=new CustomEvent("ag.lazy.refresh");document.body.dispatchEvent(e)},validate:function(){var e=new CustomEvent("ag.lazy");document.body.dispatchEvent(e)}}}),window.addEventListener("resize",function(e){document.body.dispatchEvent(new CustomEvent("ag.lazy.refresh"))})})(),(async()=>{null!=document.querySelector(".item-acc-i")&&document.querySelectorAll(".item-acc-i").forEach(e=>{let t=e.closest(".item-acc-c");e.classList.contains("open")&&(t.style.maxHeight=t.scrollHeight+"px"),e.addEventListener("click",()=>{e.classList.toggle("open"),e.classList.contains("open")?t.style.maxHeight=t.scrollHeight+"px":e.classList.contains("open")||(t.style.maxHeight=document.querySelector(".item-acc-i").offsetHeight+"px")})})})(),(async()=>{null!=document.querySelector(".item-tab-b")&&document.querySelectorAll(".item-tab-b").forEach((a,r)=>{a.addEventListener("click",()=>{let t=document.querySelectorAll(".item-tab-c");var e=a.parentElement,n=e.parentElement;e.querySelectorAll(".item-tab-b").forEach(e=>{e.classList.remove("active")}),n.querySelectorAll(".item-tab-c").forEach(e=>{e.classList.remove("active"),t[r].classList.add("active")}),a.classList.add("active")})})})(),(async()=>{if(null!=document.querySelector(".item-sea")){document.querySelectorAll(".con-menu a").forEach(function(e){e.addEventListener("click",function(){document.querySelector(".label-con").setAttribute("data-country",e.innerHTML),e.closest(".item-dr-c").previousElementSibling.classList.contains("active")&&e.closest(".item-dr-c").previousElementSibling.classList.remove("active")})});let a=document.querySelectorAll(".item-dr > .item-dr-la");async function e(){window.innerWidth<=1024&&(document.querySelector(".item-onstxt").addEventListener("click",function(){document.body.classList.add("srch-opnd")}),document.querySelectorAll(".cancel-btn").forEach(function(e){e.addEventListener("click",function(){document.body.classList.remove("srch-opnd")})}))}a.forEach((e,t)=>{e.addEventListener("click",()=>{var n;n=t,e.classList.toggle("active"),a.forEach((e,t)=>{t!==n&&e.classList.remove("active")})})}),window.addEventListener("mouseup",function(t){a.forEach(e=>{t.target.closest(".item-dr-la")||t.target.closest(".item-dr-c")||e.classList.remove("active")})}),document.querySelectorAll(".item-cl").forEach(function(e){e.addEventListener("click",function(){e.closest(".item-dr-c").previousElementSibling.classList.contains("active")&&e.closest(".item-dr-c").previousElementSibling.classList.remove("active")})}),e(),window.addEventListener("resize",e)}})(),(async()=>{window.addEventListener("scroll",async function(){10<window.scrollY?document.body.classList.add("scroll"):document.body.classList.remove("scroll")})})(),(async()=>{async function e(){function t(r){r.removeAttribute("data-menu-count"),r.querySelector(".more").style.display="none";let i=r.offsetWidth,o=0,s=0,l=Array.from(r.querySelectorAll(".menu-item:not(.more)"));l.forEach((e,t)=>{var n,a;e&&e.closest(".menu-item")&&document.querySelector(".item-n-2")&&e.nextElementSibling?.classList.contains("sub")&&(a=navigator.userAgent,a=/iPhone|iPod/.test(a),n="MacIntel"===navigator.platform&&1<navigator.maxTouchPoints,a||n)&&(a="chk_"+t,(n=document.createElement("input")).type="checkbox",n.id=a,(t=document.createElement("label")).htmlFor=a,t.textContent=e.textContent,e.textContent="",e.appendChild(n),e.appendChild(t)),(o+=e.offsetWidth)>i-r.querySelector(".more").offsetWidth?(r.setAttribute("data-menu-count",s),r.querySelector(".more").style.display="inline-block",l.forEach(e=>e.style.display="inline-block"),l.slice(s).forEach(e=>e.style.display="none"),(a=r.querySelector(".more").querySelectorAll(".menu-item")).forEach(e=>e.style.display="none"),a.forEach((e,t)=>{t>=s&&(e.style.display="block")})):(s++,l.forEach(e=>e.style.display="inline-block"))})}null!=document.querySelector(".burger-c")&&(window.innerWidth<=1024&&(async()=>{var e;document.querySelector(".burger-c").classList.contains("item-n-2")&&(document.querySelector(".burger-c").classList.remove("item-n-2"),document.querySelector(".burger-c").classList.add("item-n-1")),null!=document.querySelector(".item-uc")&&(e=document.querySelector(".item-uc"),document.querySelector("header").querySelector("nav").insertBefore(e,document.querySelector("header").querySelector("nav").firstChild)),null!=document.querySelector(".logo-drawer")&&(e=document.querySelector(".logo-drawer"),document.querySelector("header").querySelector("nav").insertBefore(e,document.querySelector("header").querySelector("nav").firstChild))})(),1024<window.innerWidth&&(async()=>{var e;document.querySelector(".burger-c").classList.contains("item-n-1")&&(document.querySelector(".burger-c").classList.remove("item-n-1"),document.querySelector(".burger-c").classList.add("item-n-2")),null!=document.querySelector(".item-uc")&&(e=document.querySelector(".item-uc"),document.querySelector("header").querySelector(".item-uc-main").appendChild(e)),null!=document.querySelector(".logo-drawer")&&(e=document.querySelector(".logo-drawer"),document.querySelector("header").querySelector(".logo-drawer-main").appendChild(e))})(),document.addEventListener("DOMContentLoaded",function(){if(null!=document.querySelector(".header-menu nav")){let e=document.querySelector(".header-menu nav");t(e),window.addEventListener("resize",function(){t(e)})}}))}e(),window.addEventListener("resize",e)})(),(async()=>{var e=document.querySelectorAll(".a-b-1, .a-b-2, .a-b-3, .a-b-4, .a-b-5");null!=e&&e.forEach(e=>{e.addEventListener("click",function(e){var t,n=e.offsetX,e=e.offsetY;document.getElementsByClassName("ripple").length<10&&((t=document.createElement("span")).classList.add("ripple"),t.style.left=n+"px",t.style.top=e+"px",this.appendChild(t),setTimeout(function(){t.remove()},1e3))})})})(),(async()=>{var e=document.querySelectorAll(".video-play");null!=e&&e.forEach(e=>{e.addEventListener("playing",function(){e.closest("figure").classList.add("no-btn")}),e.addEventListener("pause",function(){e.closest("figure").classList.remove("no-btn")})})})(),(async()=>{null!=document.querySelector(".expand-more")&&(document.querySelector(".expand-more").addEventListener("click",function(e){this.closest(".subnav").classList.toggle("responsive")}),document.querySelectorAll(".subnav > a").forEach(e=>{e.addEventListener("click",function(e){this.closest(".subnav").classList.remove("responsive")})}))})(),(async()=>{null!=document.querySelector(".label-sel")&&document.querySelectorAll(".label-sel").forEach(e=>{e.querySelector(".item-select").addEventListener("change",function(){e.classList.add("active")})})})(),window.agSlider=function(e,t,k){for(var $={autoPlay:!1,autoPlayDelay:3e3,loop:!1,showControls:!0,btnLeft:".left-btn",btnRight:".right-btn",showBullets:!1,showBulletsAsThumb:!1,bulletContainer:".bullets",itemWrapper:".agy-caro-in",wrapperMask:0,itemContainer:".agy-caro-it"},n=(null!=e&&($=((e,t)=>{for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e})($,e)),null==t&&(t=".agy-caro"),document.querySelectorAll(t)),a=0;null!=n&&n.length>a;a++)(a=>{var r=a.querySelector($.itemWrapper),i=r.querySelectorAll($.itemContainer).length,o=r.querySelector($.itemContainer).offsetWidth,s=Math.round(r.offsetWidth/o),l=0,c=i,u=null!=$.btnLeft&&null!=$.btnLeft?a.querySelector($.btnLeft):null,d=null!=$.btnRight&&null!=$.btnRight?a.querySelector($.btnRight):null,h=!1,e=r.offsetWidth==o,p=!1,f=0;!isNaN($.wrapperMask)&&0<$.wrapperMask&&($.wrapperMask=100<$.wrapperMask?100:$.wrapperMask,r.style.scrollPadding=$.wrapperMask+"%",2<i)&&(p=!0);for(var t,n,g,m,y=r.querySelectorAll($.itemContainer),v=0;v<y.length;v++){var b=y[v].className;-1<b.indexOf("data-nosnippet")&&(b=b.split('" data-nosnippet="'),y[v].setAttribute("class",b[0]||""),y[v].setAttribute("data-nosnippet","")),y[v].classList.add("idx-"+v),p&&v==y.length-1&&(r.prepend(y[v]),f=r.scrollLeft)}if(null!=u&&($.showControls||(u.style.display="none"),u.addEventListener("click",()=>{0==l&&!$.loop||(0==l?(r.scrollLeft=o*(i-1),E(o*(i-s))):(r.scrollLeft=r.scrollLeft+-o,E(e?(l-1)*o:r.scrollLeft+-o)))})),null!=d&&($.showControls||(d.style.display="none"),d.addEventListener("click",()=>{c==i-1&&!$.loop||(c==i-1?(r.scrollLeft=0,E(f)):(r.scrollLeft=r.scrollLeft+ +o,E(e?(l+1)*o:r.scrollLeft+ +o)))})),$.showBullets){if(null==a.querySelector($.bulletContainer)||null==a.querySelector($.bulletContainer))return $.showBullets=!1;for(v=0;v<Math.trunc(i/s)+(0<Math.round(i%s)?1:0)&&v<i;v++){var w,x,C=document.createElement("bu");C.classList.add("dot"),C.classList.add("idx-"+v),C.setAttribute("idx",v),$.showBulletsAsThumb&&e&&(w=document.createElement("img"),x=null!=r.querySelector($.itemContainer+".idx-"+v+" img")?r.querySelector($.itemContainer+".idx-"+v+" img"):r.querySelector($.itemContainer+".idx-"+v+" video"),w.setAttribute("src","IMG"==x.nodeName?x.getAttribute("data-src"):x.getAttribute("poster")),C.appendChild(w)),0==v&&C.classList.add("active"),C.addEventListener("click",e=>{var t;t=parseInt(e.currentTarget.getAttribute("idx")),$.autoPlay=!1,h=!0,r.scrollLeft=t*s*o,E(t*s*o),e.preventDefault()}),a.querySelector($.bulletContainer).appendChild(C)}}function E(e){l=Math.round((e-f)/o),c=Math.round(l+s-1);for(var t,n=0;n<i;n++)r.querySelector($.itemContainer+".idx-"+n).classList.remove("active"),l<=n&&n<=c&&(n<=c-(p?1:0)&&(r.querySelector($.itemContainer+".idx-"+n).classList.add("active"),null!=r.querySelector($.itemContainer+".idx-"+n+" video"))&&((t=r.querySelector($.itemContainer+".idx-"+n+" video")).setAttribute("src",t.getAttribute("data-src")),t.pause(),t.currentTime=0,t.play(),h=!0,t.addEventListener("ended",function(e){h=!1},!1)),r.querySelectorAll($.itemContainer+".idx-"+n+" img").forEach(e=>{e.setAttribute("src",e.getAttribute("data-src"))})),p&&0==n&&r.querySelectorAll($.itemContainer+".idx-"+(i-1)+" img").forEach(e=>{e.setAttribute("src",e.getAttribute("data-src"))});if(0!=l||$.loop?u.classList.remove("disabled"):u.classList.add("disabled"),c!=i-1||$.loop?d.classList.remove("disabled"):d.classList.add("disabled"),$.showBullets)for(n=0;n<Math.round(i/s);n++)n!=Math.round((l+s)/s)-1?a.querySelector($.bulletContainer+" .dot.idx-"+n).classList.remove("active"):a.querySelector($.bulletContainer+" .dot.idx-"+n).classList.add("active")}$.showBulletsAsThumb&&(t=a.querySelector($.bulletContainer).querySelector(".dot").offsetWidth,null!=u&&u.addEventListener("click",()=>{a.querySelector($.bulletContainer).scrollLeft-=t}),null!=d&&d.addEventListener("click",()=>{a.querySelector($.bulletContainer).scrollLeft+=t}),n=!1,a.querySelector($.bulletContainer).addEventListener("mousedown",e=>{n=!0,a.querySelector($.bulletContainer).classList.add("dragging"),g=e.pageX,m=a.querySelector($.bulletContainer).scrollLeft}),a.querySelector($.bulletContainer).addEventListener("mousemove",e=>{n&&(a.querySelector($.bulletContainer).scrollLeft=m-(e.pageX-g))}),document.addEventListener("mouseup",()=>{n=!1,a.querySelector($.bulletContainer).classList.remove("dragging")})),$.autoPlay&&(function e(){setTimeout(function(){h||d.click(),e()},$.autoPlayDelay)}(),r.addEventListener("mouseenter",function(){r.offsetWidth!=o&&(h=!0)}),r.addEventListener("mouseleave",function(){r.offsetWidth!=o&&(h=!1)})),E(r.scrollLeft),null!=k&&k(a)})(n[a])},agora(function(){refreshTracking(),$(document).on("click","[data-for]",function(e){try{var t=$(this).data("for");$('[for="'+t+'"]').trigger("click")}catch(e){}}),1==$("[data-mob-format]").data("mob-format")&&$('[node="MobilePhone"]').not(".disablephoneformat").formatter({pattern:"({{999}}) {{999}}-{{9999}}"}),1==$("[data-mob-required]").data("mob-required")&&$('[data-mob-required="1"]').not("[data-no-mob-required]").length&&$(document).on("click","#id2",function(){setTimeout(function(){var e=$("#Phone");e.length&&!e.attr("required")&&(e.removeProp("required"),e.attr("required","required"))},500)})}),Date.prototype.yyyymmddhhmmss=function(){var e=this.getFullYear(),t=this.getMonth()<9?"0"+(this.getMonth()+1):this.getMonth()+1,n=this.getDate()<10?"0"+this.getDate():this.getDate(),a=this.getHours()<10?"0"+this.getHours():this.getHours(),r=this.getMinutes()<10?"0"+this.getMinutes():this.getMinutes(),i=this.getSeconds()<10?"0"+this.getSeconds():this.getSeconds();return"".concat(e).concat(t).concat(n).concat(a).concat(r).concat(i)},(async()=>{var a=!1;async function r(){var e=null;return null!=(e=null!=window.localStorage.getItem("AGUSER")?JSON.parse(window.localStorage.getItem("AGUSER")):e)&&document.body.classList.contains("restricted-listing")&&document.body.classList.remove("restricted-listing"),e}async function t(){var e=null;return e=null!=window.localStorage.getItem("AGAGENT")?JSON.parse(window.localStorage.getItem("AGAGENT")):e}async function n(e){var t;null==e?(window.localStorage.removeItem("AGUSER"),document.body.dispatchEvent(new CustomEvent("ag.user.clear"))):e.Guid&&((t={}).Guid=e.Guid,t.Name=e.Name,t.FirstName=e.FirstName,t.LastName=e.LastName,t.Email=e.Email,t.Phone=e.Phone,t.MobilePhone=e.MobilePhone,e.LoginAgent&&(t.LoginAgent={Key:e.LoginAgent.Key,Email:e.LoginAgent.Email,Name:e.LoginAgent.Name}),window.localStorage.setItem("AGUSER",JSON.stringify(t)),o(),s())}async function i(e){var t;null==e?(window.localStorage.removeItem("AGAGENT"),document.body.dispatchEvent(new CustomEvent("ag.agent.clear"))):e.Guid&&((t={}).Guid=e.Guid,t.Name=e.Name,t.Role=e.Role,window.localStorage.setItem("AGAGENT",JSON.stringify(t)),o())}async function o(){}async function s(){document.querySelectorAll("[ag-user]").forEach(function(e){(async e=>{e.classList.add("is-applied"),e.cloneNode(!0);var t,n=await r();null!=n&&((async()=>{a?l():document.body.addEventListener("ag.sync.verified.contact",function(){l()}),document.body.addEventListener("ag.lazy.refresh",function(){l()}),document.body.addEventListener("ag.user.refresh.collection",function(){l(!0)}),document.body.addEventListener("ag.user.clear.collection",function(){window.localStorage.removeItem("AGUSERCOLLECTION3")}),document.body.addEventListener("ag.user.clear",function(){document.body.dispatchEvent(new CustomEvent("ag.user.clear.collection"))})})(),t=await(async e=>{var t=new c("p"),n=(t.a("ag-user",""),t.n("button")),a=(n.a("class","user-logged-in a-b-1 f-s-2 u-logined s-c-p m-l-16 xa-b-w-l r-b"),n.h(e.Name),n.cl(function(e){return e.preventDefault(),n.node.classList.contains("active")?n.node.classList.remove("active"):n.node.classList.add("active"),!1}),t.n("span"));return a.n("span").h("Hi, "+e.Name),a.n("input").a("type","hidden").a("id","CONTACT_GUID").a("value",e.Guid),a.n("a").a("href","/dashboard/default.aspx").h("Dashboard"),a.n("span").a("data-modaldialog-src","/dashboard/EditProfile.aspx").a("data-modaldialog-ajax","true").a("data-modaldialog","").h("Edit Profile"),a.n("a").a("href","/dashboard/SignOut.aspx").a("data-agora-icon","").h("Log out").cl(function(){document.body.dispatchEvent(new CustomEvent("ag.user.out"))}),t.node})(n),e.parentElement.insertBefore(t,e),e.remove(),setForms(n))})(e)})}async function l(e){var r,i;r=3,i=e,(await new Promise(async function(e,t){var n=null,a=i?null:window.localStorage.getItem("AGUSERCOLLECTION"+r);null!=a?e(n=JSON.parse(a)):(n=await window.agRequest.GET("/services/agoraClient.ashx",{type:"USERCOLLECTION",collectionType:r}),window.localStorage.setItem("AGUSERCOLLECTION"+r,JSON.stringify(n)),e(n))})).Items.reduce(function(e,t){return e?[...e,...t.Items]:[...t.Items]},[]).forEach(async function(e){(async(e,t)=>{document.querySelectorAll('[data-perform-action-url*="pk='+e.PK+'"][data-perform-action-url*="rt='+e.RT+'"]').forEach(async function(e){e.setAttribute("ag-user-collection",t)})})(e,3)})}function c(e){return this.node=document.createElement(e),this}if(document.body.addEventListener("ag.user.in",function(e){n(e.detail)}),document.body.addEventListener("ag.agent.in",function(e){i(e.detail),document.body.dispatchEvent(new CustomEvent("ag.sync.autoupdate"))}),document.body.addEventListener("ag.user.out",function(e){n(null)}),document.body.addEventListener("ag.agent.out",function(e){i(null)}),c.prototype.a=function(e,t){return this.node.setAttribute(e,t),this},c.prototype.n=function(e){e=new c(e);return this.node.appendChild(e.node),e},c.prototype.h=function(e){return this.node.innerHTML=e,this},c.prototype.cl=function(e){return this.node.removeEventListener("click",e),this.node.addEventListener("click",e),this},window.agUser={collection:{refresh:function(){document.body.dispatchEvent(new CustomEvent("ag.user.refresh.collection"))}}},s(),t().then(e=>{}),document.body.addEventListener("ag.refresh",async function(){var e=await r();null!=e&&setForms(e)}),document.body.addEventListener("ag.sync.autoupdate",async function(){var e=await t();null!=e&&(document.body.dispatchEvent(new CustomEvent("ag.sync.set",{detail:{agentguid:e.Guid,eventType:"autoagent"}})),setTimeout(function(){document.body.dispatchEvent(new CustomEvent("ag.sync.autoupdate"))},6e4))}),document.body.addEventListener("ag.sync.check",async function(){var e=await r(),t=window.localStorage.getItem("AGSYNC");if(null!=t&&null!=e&&JSON.parse(t).ContactGuid!=e.Guid)return void document.body.dispatchEvent(new CustomEvent("ag.sync.set",{detail:{contactguid:e.Guid,agentkey:e.LoginAgent?e.LoginAgent.Key:"",eventType:"contact"}}));document.body.dispatchEvent(new CustomEvent("ag.sync.verified.contact")),a=!0}),document.body.addEventListener("ag.sync.verified",async function(){document.body.dispatchEvent(new CustomEvent("ag.sync.verified.contact")),a=!0}),document.body.addEventListener("ag.sync.verified.agent",function(){window.location.reload()}),window.location.hash){let t=window.location.hash.replace("#","").toLowerCase(),n=document.querySelector('.item-view a[map-view="grid"]'),a=document.querySelector('.item-view a[map-view="map"]');!function e(){void 0!==window.propertymap?"grid"===t&&"function"==typeof window.propertymap.grid?(setMapView(n),window.propertymap.grid()):"map"===t&&"function"==typeof window.propertymap.map&&(setMapView(a),window.propertymap.map()):setTimeout(e,100)}()}})(),(async()=>{async function n(){var e=await window.agRequest.GET("/services/agoraClient.ashx",{type:"SYNC"});e.updatedOn=new Date,window.localStorage.setItem("AGSYNC",JSON.stringify(e)),document.body.dispatchEvent(new CustomEvent("ag.sync.check"))}(async()=>{document.body.addEventListener("ag.sync.set",async function(e){await window.agRequest.POST("/services/agoraClient.ashx",Object.assign({type:"SET"},e.detail)),e.detail?.eventType&&document.body.dispatchEvent(new CustomEvent("ag.sync.verified."+e.detail.eventType))}),document.body.addEventListener("ag.sync.run",async function(e){await n()}),document.body.addEventListener("ag.sync.invalid",async function(e){document.body.dispatchEvent(new CustomEvent("ag.sync.reset")),window.location.reload()}),(async()=>{if(null!=(e=window.localStorage.getItem("AGSYNC"))){var e=JSON.parse(e),e=new Date(e.updatedOn),t=new Date;if(t.setMinutes(t.getMinutes()-1),t<e)return!document.body.dispatchEvent(new CustomEvent("ag.sync.verified"))}n()})()})()})(),(async()=>{(async()=>{window.userModuleFeatureAccessRegistry||(window.userModuleFeatureAccessRegistry={}),window.userModuleFeatureAccessRegistry.enter=(e,t,n)=>{document.body.dispatchEvent(new CustomEvent("ag.sync.set",{detail:{umfare:btoa(e+"|"+t+"|"+n)}}))},window.userModuleFeatureAccessRegistry.refresh=()=>{document.body.dispatchEvent(new CustomEvent("ag.sync.run"))},window.userModuleFeatureAccessRegistry.get=()=>{var e=localStorage.getItem("AGSYNC");if(null!=e){e=JSON.parse(e);if(e.UMFARE)return e.UMFARE}return null}})()})(),(async()=>{async function e(){var e=window.localStorage.getItem("AGUSERCOUNTRY");null!=e?(e=JSON.parse(e),document.body.dispatchEvent(new CustomEvent("ag.language.country.auto-discovery",{detail:e}))):(async()=>{var e=await window.agRequest.GET("https://ip-service.idcrealestate.com/ip",{});e.updatedOn=new Date,window.localStorage.setItem("AGUSERCOUNTRY",JSON.stringify(e)),document.body.dispatchEvent(new CustomEvent("ag.language.country.auto-discovery",{detail:e}))})()}(async()=>{e()})()})(),(async()=>{var a=new RegExp("(?<Guid>[A-z0-9\\-]+)\\|(?<AgentKey>[0-9]+)","gi");async function e(){var e,t,n=window.location.hash;n.length<1||(t=atob(n.substring(1)),e=null,console.log(t),null!=(e=a.exec(t))?(async(e,t)=>{document.body.classList.add("is-busy"),(e=await window.agRequest.POST("/services/agoraAccess.ashx",{action:"RemoteSignIn",contactguid:e,agentkey:t})).Contact&&(document.body.dispatchEvent(new CustomEvent("ag.user.in",{detail:e.Contact})),window.location.href="/dashboard/default.aspx#saved-searches")})(e.groups.Guid,e.groups.AgentKey):""!=n&&0<n.length&&null!=(t=document.querySelector('[data-tab="'+n.substring(1)+'"]'))&&t.click())}(async()=>{e(),window.addEventListener("hashchange",e)})()})(),(async()=>{let a=[],r="";async function t(e){"SET"==e&&(async i=>{document.querySelectorAll('header img[alt*="logo"]').forEach(e=>{let t=e.src,n=!1,a=(null!=t&&""!=t||!e.hasAttribute("data-src")||(t=e.getAttribute("data-src"),n=!0),t.replace(/(\.[A-z]{2,3})(\?|$)/gi,"-"+i.toLowerCase()+"$1$2"));var r;a&&""!=a&&a!=t&&((r=new Image).onload=()=>{n&&(e.setAttribute("data-source-data-src",t),e.setAttribute("data-src",a)),e.setAttribute("data-source-src",t),e.src=a},r.src=a)})})(e)}async function i(e){"SET"==e&&(async()=>{document.querySelectorAll('header img[alt*="logo"]').forEach(t=>{if(t.hasAttribute("data-source-src")){let e=t.getAttribute("data-source-src");t.hasAttribute("data-source-data-src")&&(e=t.getAttribute("data-source-data-src"),t.setAttribute("data-src",e)),t.src=e}})})()}async function e(){let n=[];a.forEach(e=>{null==document.querySelector('[data-webactivity-rt^="'+e+'"]')&&(r=r.replace(':not([data-webactivity-rt^="'+e+'"])',""),n.push(e),i(e))}),a=a.filter(t=>-1==n.findIndex(e=>e==t)),document.querySelectorAll("[data-webactivity-rt]"+r).forEach(e=>{let t=e.getAttribute("data-webactivity-rt").substring(0,3);-1==a.findIndex(e=>e==t)&&(a.push(t),r+=':not([data-webactivity-rt^="'+t+'"])',document.body.dispatchEvent(new CustomEvent("ag.mls.guidelines.update",{detail:t})))})}(async()=>{document.body.addEventListener("Plugin.Map.ResultUpdated",function(){e()}),document.body.addEventListener("ag.language.refresh.currency",function(){e()}),document.body.addEventListener("ag.language.change.language",function(){e()}),document.body.addEventListener("ag.mls.guidelines.update",function(e){t(e.detail)}),e()})()})();var loadEvent=new CustomEvent("onAgoraLoad");function refreshTracking(){$("[data-webactivity]").each(function(){var e,n;"true"!==$(this).attr("data-processed")&&(e=$(this).attr("data-webactivity"),n=[],$.each(this.attributes,function(){var e,t;this.name.startsWith("data-webactivity-")&&(e=this.name.substring("data-webactivity-".length),t=this.value,n.push({name:e,value:t}))}),WebActivityTracker("WEBACTIVITY","PROPERTY",e,n),$(this).attr("data-processed","true"))})}function onMapViewUpdated(e){0===e.detail?.mode?setMapView(gridBtn):setMapView(mapBtn)}function clearSearchClick(e,t=0){var n=composeUrlQuery({select:$('[data-search-form="QUICKSEARCH"]'),nonselect:$('[data-rt-switch],[data-current-rt="CMNCMN"] [data-enable-for]:not([data-enable-for*="CMNCMN"]) [urlidentifier],[data-current-rt="CMNRNT"] [data-enable-for]:not([data-enable-for*="CMNRNT"]) [urlidentifier],[data-current-rt="CMNSLD"] [data-enable-for]:not([data-enable-for*="CMNSLD"]) [urlidentifier]')}),e=decodeURIComponent(e),n=decodeURIComponent(n),a=e.match(/lat-[^\/]+/),r=e.match(/lon-[^\/]+/),i=e.match(/status-[^\/]+/),o=e.match(/country-[^\/]+/),a=a?a[0]:"",r=r?r[0]:"",i=i?i[0]:"",o=o?o[0]:"",n=n.replace(/lat-[^\/]+/,"").replace(/lon-[^\/]+/,"").replace(/status-[^\/]+/,"").replace(/country-[^\/]+/,"").replace(/rental-[^\/]+/,"").split("/").filter(Boolean);let s=e;n.forEach(e=>{s=s.replace("/"+e,"")}),s=s.replace(/\/(polygon|mapcenter)-[^\/]+/g,""),"#grid"==window.location.hash?(a&&s.includes(a)&&(s=s.replace("/"+a,"")),r&&s.includes(r)&&(s=s.replace("/"+r,""))):(i&&!s.includes(i)&&(s+="/"+i),o&&!s.includes(o)&&(s+="/"+o),a&&!s.includes(a)&&(s+=(s.endsWith("/")?"":"/")+a),r&&!s.includes(r)&&(s+="/"+r)),window.location.href=s}function WebActivityTracker(e,t,n,a){var r,i=[];a&&0<a.length&&(r={TrackType:e,ObjectType:t,ObjectActivityType:n},a.forEach(function(e){r[e.name]=e.value}),i.push(r)),$.ajax({type:"POST",url:"/tracker",data:{track:JSON.stringify(i)},dataType:"json",success:function(e){console.log("Tracking successful:",e)},error:function(e){console.error("Tracker not found!",e)}})}function onScroll(e){var n=$(document).scrollTop();$(".c-menu .subnav a").each(function(){var e=$(this),t=$(e.attr("href"));t.position().top-($(".c-menu").outerHeight()+$(".item-h").outerHeight())<=n&&t.position().top+t.height()>n?($(".c-menu .subnav a").removeClass("active"),e.addClass("active")):e.removeClass("active")})}function isLabelOrLiWithController(e){return("LABEL"===e.tagName||"LI"===e.tagName)&&[...e.attributes].some(e=>e.name.endsWith("_controller"))}function handleEvent(e,t){e.stopPropagation();e=[...t.attributes].map(e=>e.name).find(e=>e.endsWith("_controller"))||"Unknown Section";document.body.dispatchEvent(new CustomEvent("controllerVisible",{detail:{controllerName:e}}))}function ClosePopup(){$("[data-modaldialog-close]").trigger("click")}document.dispatchEvent(loadEvent),document.isAgoraLoaded=!0,loadEvent=new CustomEvent("onCssLoad"),document.dispatchEvent(loadEvent),document.isCssLoaded=!0,EnableDemandImport(),EnableSearchForm(),document.body.addEventListener("Plugin.Map.ResultUpdated",function(){refreshTracking()}),document.body.addEventListener("Plugin.Map.ViewUpdated",onMapViewUpdated),null!=$(".c-menu .subnav a")&&($(".c-menu .subnav a").click(function(e){e.preventDefault();e=this.hash;$target=$(e),$("html, body").stop().animate({scrollTop:$target.offset().top-($(".c-menu").outerHeight()+$(".item-h").outerHeight())},"swing",function(){$(document).on("scroll",onScroll)}),$("a").each(function(){$(this).removeClass("active")}),$(this).addClass("active")}),$(document).on("scroll",onScroll),$(window).scroll(function(e){$("body").hasClass("scroll")&&$(".c-menu .subnav a").click(function(e){e.preventDefault(),$("html, body").stop().animate({scrollTop:$($(this).attr("href")).offset().top-($(".c-menu").outerHeight()+$(".item-h").outerHeight())},300)}),$("body").hasClass("scroll")||$(".c-menu .subnav a").click(function(e){$("html, body").stop().animate({scrollTop:$($(this).attr("href")).offset().top-(2*$(".c-menu").outerHeight()+$(".item-h").outerHeight())},300)})})),document.body.addEventListener("ag.widget.no-data",function(e){var t,n=e.detail.sender,e=n.getAttribute("ag-loader");e&&(t=document.querySelectorAll(`[${e+"_controller"}]`),console.log("Widgets:",t),n.hasAttribute("show-no-data")?(setTimeout(function(){n.querySelector(".no-data-message")||(n.innerHTML+=`
1
+ function GetFormXml(a){if(0<$(a).find($('input[id^="txtFaxInfo"]')).length&&""!=$(a).find($('input[id^="txtFaxInfo"]')).val())return null;var r=[],i="",o="",s="",l=!0;if($(a).find('*[FormNode="true"]').each(function(){if(o="","checkbox"==$(this).attr("type")){var e="";try{1<$(a).find('input[type="checkbox"][name="'+$(this).attr("name")+'"]:checked').length&&(e=";")}catch(e){}$(a).find('input[type="checkbox"][name="'+$(this).attr("name")+'"]:checked').each(function(){o=o+$(this).val()+e})}else if("radio"==$(this).attr("type"))$(this).is(":checked")&&(o=$(this).val());else if($(this).attr("captcha"))try{var t=$(this).closest(".captcha").find("[captcha-value]"),n='<CaptchaValidator ID="'+t.attr("captcha-id")+'">'+$(this).val()+"</CaptchaValidator>";if(MD5($(this).val()).toLowerCase()!=t.attr("captcha-value").toLowerCase())return l=!1,alert($(this).attr("FormMessage")),!1;r.Captcha=n}catch(e){return l=!1,alert(e),!1}else o=$(this).val();if(isNullOrEmpty(o=IsNotNull(o)?o.trim():o)){if("true"==$(this).attr("Required")||"required"==$(this).attr("Required"))return l=!1,alert($(this).attr("FormMessage")),!1}else{if(""!=$(this).attr("FormType")&&"Email"==$(this).attr("FormType")&&!isValidEmail(o))return l=!1,alert($(this).attr("FormMessage")),!1;if(!isNullOrEmpty($(this).attr("MinLength"))&&parseInt($(this).attr("MinLength"))>o.length)return l=!1,alert($(this).attr("FormMessage")),!1}isNullOrEmpty($(this).attr("Entity"))||isNullOrEmpty($(this).attr("Node"))||(isNullOrEmpty(i=r[$(this).attr("Entity")])&&(r[$(this).attr("Entity")]=""),isNullOrEmpty(o)||(o=o.trim(),s=isNullOrEmpty($(this).attr("label"))?"":' label="'+$(this).attr("label")+'" ',i="<"+$(this).attr("Node")+s+">"+("xml"!=$(this).attr("data-agora-type")?"<![CDATA["+o+"]]>":o)+"</"+$(this).attr("Node")+">",r[$(this).attr("Entity")]+=i),"Lead"===$(this).attr("Entity")&&(t=window.location.href,n=new URL(t),(t=new URLSearchParams(n.search)).has("utm_term")&&(o=t.get("utm_term").trim(),i="<UTMTerm"+(s=' label="UTM Term" ')+">"+("xml"!=$(this).attr("data-agora-type")?"<![CDATA["+o+"]]>":o)+"</UTMTerm>",r[$(this).attr("Entity")]+=i),t.has("tm_corp_partner")&&(o=t.get("tm_corp_partner").trim(),i="<CorporatePartner"+(s=' label="Corporate Partner" ')+">"+("xml"!=$(this).attr("data-agora-type")?"<![CDATA["+o+"]]>":o)+"</CorporatePartner>",r[$(this).attr("Entity")]+=i),t.has("utm_campaign")&&(o=t.get("utm_campaign").trim(),i="<UTMCampaign"+(s=' label="UTM Campaign" ')+">"+("xml"!=$(this).attr("data-agora-type")?"<![CDATA["+o+"]]>":o)+"</UTMCampaign>",r[$(this).attr("Entity")]+=i),t.has("utm_content")&&(o=t.get("utm_content").trim(),i="<UTMContent"+(s=' label="UTM Content" ')+">"+("xml"!=$(this).attr("data-agora-type")?"<![CDATA["+o+"]]>":o)+"</UTMContent>",r[$(this).attr("Entity")]+=i),t.has("utm_medium")&&(o=t.get("utm_medium").trim(),i="<UTMMedium"+(s=' label="UTM Medium" ')+">"+("xml"!=$(this).attr("data-agora-type")?"<![CDATA["+o+"]]>":o)+"</UTMMedium>",r[$(this).attr("Entity")]+=i),t.has("utm_source"))&&(o=t.get("utm_source").trim(),i="<UTMSource"+(s=' label="UTM Source" ')+">"+("xml"!=$(this).attr("data-agora-type")?"<![CDATA["+o+"]]>":o)+"</UTMSource>",r[$(this).attr("Entity")]+=i))}),!l)return null;var e="<d>";for(p=0;p<Object.keys(r).length;p++)e+="<"+Object.keys(r)[p]+">"+r[Object.keys(r)[p]]+"</"+Object.keys(r)[p]+">";return e+="</d>",escape(e)}function composeUrlQuery(e){var t,a,n,r;return null==e?"":(t="",a=new Object,n=$(e.select).add($(e.select).find("[urlidentifier]")),null!=e.nonselect&&null!=e.nonselect&&(n=$(n).not(e.nonselect)),r=$(),$(n).each(function(){var e=((e,t)=>{if(null!=$(e).attr("onesearchname")){var n=e,a=new Array;if($(n).parent().find("[onesearchidentifier]").each(function(){var e=o(this);null!=e&&a.push(e)}),0==a.length||(e=>null!=e&&null!=$(e).attr("multiselectboxid")&&""!=$(e).attr("multiselectboxid"))(n))if(s(n))return o(n);return a}try{return 0<$(t).find(e).length?null:(t=t.add(e),o(e))}catch(e){console.log("Error For Field")}return null})(this,r),t=a;if(null!=e)if(e instanceof Array)for(var n in e)i(e[n],t);else i(e,t)}),t=(e=>{var t,n="";for(t in e){var a,r="{$value}"==t.toLowerCase(),i=r?"/":";",o="",s=null;for(a in e[t])"min"==e[t][a].Operation.toLowerCase()||"max"==e[t][a].Operation.toLowerCase()?(null==s&&(s={Min:0,Max:0}),"min"==e[t][a].Operation.toLowerCase()&&(s.Min=e[t][a].Value),"max"==e[t][a].Operation.toLowerCase()&&(s.Max=e[t][a].Value)):"thes"==e[t][a].Operation.toLowerCase()?o=e[t][a].Value.toString().replace(/[^0-9A-z\\.]/g,";"):o+=e[t][a].Value.toString()+(1<e[t].length&&e[t].length-1>a?i:"");null!=s?r?n="/"+s.Min+(0!=s.Max?"-"+s.Max:"")+n:n+="/"+t+"-"+s.Min+(0!=s.Max?"-"+s.Max:""):r?n="/"+o+n:n+="/"+t+"-"+o}return n})(a),null!=e.additional&&null!=e.additional?e.additional(t):t);function i(e,t){null!=e&&(null==t[e.UrlIdentifier]&&(t[e.UrlIdentifier]=new Array),t[e.UrlIdentifier].push(e))}function o(t){try{if(!s(t))return null}catch(e){console.log("Error For Field Value Check:"+$(t).attr("type"))}try{return{UrlIdentifier:null!=$(t).attr("urlidentifier")?$(t).attr("urlidentifier"):$(t).attr("onesearchidentifier"),Value:(e=>{var t=$(e).val(),n=void 0!==$(e).attr("onesearchidentifier");if("object"!=typeof t)return(null!=$(e).attr("urlidentifier")&&"price"==$(e).attr("urlidentifier")?t.replace(/\,/g,"").replace(/\-/g,"_").replace(/\//g,"!").replace(/\&/,"$").replace(/\@/g,""):(n?t.replace(/\,/g,"@"):t).replace(/\-/g,"_").replace(/\//g,"!").replace(/\&/,"$")).replace(/\#/g,"%23");var a,r="";for(a in t)""!=t[a]&&(r+=(""==r?"":";")+t[a].replace(/\-/g,"_").replace(/\//g,"!").replace(/\,/g,"@").replace(/\&/,"$").replace(/\#/g,"%23"));return r})(t),Operation:null!=$(t).attr("operation")?$(t).attr("operation"):""}}catch(e){console.log("Error For Field Value:"+$(t).prop("tagName"))}return null}function s(e){var t;return null==$(e).attr("type")||"radio"!=$(e).attr("type")&&"checkbox"!=$(e).attr("type")?null!=e&&$(e).is("select")?"object"==typeof(t=$(e).val())?null!=t&&""!=t:""!=t.trim():null!=e&&""!=$(e).val().trim():null!=e&&""!=$(e).val().trim()&&$(e)[0].checked}}function isValidEmail(e){e=IsNotNull(e)?e.trim():e;document.getElementById("txtEmail");return!!/^([a-zA-Z0-9_\.\-\+])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/.test(e)}function isNullOrEmpty(e){return null==e||""==e||"string"==typeof e&&""==e.trim()}function isNotNullOrZero(e){return null!=e&&0<e.length}function isNullOrEmptyControl(e){return null!=e&&(null==$(e).val()||null==$(e).val()||""==$(e).val())}function OpenIWBPopup(e,t,n){isNullOrEmpty(t)||(e+="?"+t),$("#PERFORM_IWB_ACTION_TRIGGER").attr("href",e),$("#PERFORM_IWB_ACTION_TRIGGER").trigger("click"),isNullOrEmpty(n)&&(n=1e3),setTimeout(function(){$("#PERFORM_IWB_ACTION_TRIGGER").trigger("click")},n)}function CloseIWBPopup(){$("#MODAL_ACCESS").foundation("reveal","close")}function OpenPopup(e){isNullOrEmpty(e)&&(e=1e3),setTimeout(function(){$("#PERFORM_ACTION_TRIGGER").trigger("click")},e)}function ClosePopup(){$("#MODAL_ACCESS").foundation("reveal","close")}function getFormattedPrice(e){return"$"+(0<e.toString().length?e.toString().length<=6&&3<e.toString().length?e.toString().substring(0,e.toString().length-3)+"K":6<e.toString().length?e.toString().substring(0,e.toString().length-6)+"."+e.toString().substring(e.toString().length-6,e.toString().length-5)+"M":e.toString():"N/A")}function isMultiLingual(){return null!=$("#MULTILINGUAL")&&null!=$("#MULTILINGUAL")&&!isNullOrEmpty($("#MULTILINGUAL").val())&&"1"==$("#MULTILINGUAL").val()}function getLocale(){return isMultiLingual()?$("#LOCALE").val():""}function InitDataSourceRelation(e,r,i){for(var o=$("#"+e),t=0;t<r.split(",").length;t++){var n=$("#"+r.split(",")[t]);$(n).change(function(){for(var e="",t=(e=(e=(e+="Source="+$(o).attr("Source"))+("&AutoSort="+$(o).attr("AutoSort")))+("&DefaultItem="+$(o).attr("DefaultItem")),"Xml"==$(o).attr("Source")?e=(e+="&XmlFileCode="+$(o).attr("XmlFileCode"))+"&XmlDataListKey="+$(o).attr("XmlDataListKey"):"Database"==$(o).attr("Source")&&(e=(e=(e+="&DataObjectName="+$(o).attr("DataObjectName"))+"&UrlIdentifier="+$(o).attr("UrlIdentifier"))+"&AdditionalWhere="+$(o).attr("AdditionalWhere")),""),n=0;n<r.split(",").length;n++){var a="#"+r.split(",")[n];0<n&&(t+=","),""==$(a).val()?t+=$(a+" input:checked").val():t+=$(a).val()}e+="&ParentValue="+(t=t.replace("undefined","")),$(o).attr("disabled","disabled"),$.ajax({type:"POST",url:"/services/agoraRelationalDataSource.ashx",data:e,dataType:"json",success:function(e){$(o).get(0).options.length=0,$.each(e,function(e,t){$(o).get(0).options[$(o).get(0).options.length]=new Option(t.Value,t.Key)}),$(o).removeAttr("disabled"),null!=i&&i($(o))},statusCode:{404:function(){alert("Service (agoraParentDataSource) not found!")}}})})}}function enterFullScreen(){document.documentElement.requestFullscreen?document.documentElement.requestFullscreen():document.documentElement.mozRequestFullScreen?document.documentElement.mozRequestFullScreen():document.documentElement.webkitRequestFullscreen&&document.documentElement.webkitRequestFullscreen(Element.ALLOW_KEYBOARD_INPUT)}function exitFullScreen(){document.cancelFullScreen?document.cancelFullScreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitCancelFullScreen&&document.webkitCancelFullScreen()}function ShowLoading(){try{$("body").hasClass("is-busy")?$("body").removeClass("is-busy"):$("body").addClass("is-busy")}catch(e){}}((e,t)=>{"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(e.document)return t(e);throw new Error("jQuery requires a window with a document")}:t(e)})(window,function(f,D){function I(e){var t=e.length,n=x.type(e);return"function"!==n&&!x.isWindow(e)&&(!(1!==e.nodeType||!t)||"array"===n||0===t||"number"==typeof t&&0<t&&t-1 in e)}function j(e,n,a){if(x.isFunction(n))return x.grep(e,function(e,t){return!!n.call(e,t,e)!==a});if(n.nodeType)return x.grep(e,function(e){return e===n!==a});if("string"==typeof n){if(ve.test(n))return x.filter(n,e,a);n=x.filter(n,e)}return x.grep(e,function(e){return 0<=r.call(n,e)!==a})}function R(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}function t(){y.removeEventListener("DOMContentLoaded",t,!1),f.removeEventListener("load",t,!1),x.ready()}function e(){Object.defineProperty(this.cache={},0,{get:function(){return{}}}),this.expando=x.expando+Math.random()}function F(e,t,n){var a;if(void 0===n&&1===e.nodeType)if(a="data-"+t.replace($e,"-$1").toLowerCase(),"string"==typeof(n=e.getAttribute(a))){try{n="true"===n||"false"!==n&&("null"===n?null:+n+""===n?+n:ke.test(n)?x.parseJSON(n):n)}catch(e){}p.set(e,t,n)}else n=void 0;return n}function n(){return!0}function s(){return!1}function U(){try{return y.activeElement}catch(e){}}function H(e,t){return x.nodeName(e,"table")&&x.nodeName(11!==t.nodeType?t:t.firstChild,"tr")?e.getElementsByTagName("tbody")[0]||e.appendChild(e.ownerDocument.createElement("tbody")):e}function z(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function B(e){var t=Ie.exec(e.type);return t?e.type=t[1]:e.removeAttribute("type"),e}function G(e,t){for(var n=0,a=e.length;n<a;n++)b.set(e[n],"globalEval",!t||b.get(t[n],"globalEval"))}function W(e,t){var n,a,r,i,o,s;if(1===t.nodeType){if(b.hasData(e)&&(i=b.access(e),o=b.set(t,i),s=i.events))for(r in delete o.handle,o.events={},s)for(n=0,a=s[r].length;n<a;n++)x.event.add(t,r,s[r][n]);p.hasData(e)&&(i=p.access(e),o=x.extend({},i),p.set(t,o))}}function g(e,t){var n=e.getElementsByTagName?e.getElementsByTagName(t||"*"):e.querySelectorAll?e.querySelectorAll(t||"*"):[];return void 0===t||t&&x.nodeName(e,t)?x.merge([e],n):n}function V(e,t){e=x(t.createElement(e)).appendTo(t.body),t=f.getDefaultComputedStyle&&(t=f.getDefaultComputedStyle(e[0]))?t.display:x.css(e[0],"display");return e.detach(),t}function Q(e){var t=y,n=ze[e];return n||("none"!==(n=V(e,t))&&n||((t=(Fe=(Fe||x("<iframe frameborder='0' width='0' height='0'/>")).appendTo(t.documentElement))[0].contentDocument).write(),t.close(),n=V(e,t),Fe.detach()),ze[e]=n),n}function l(e,t,n){var a,r,i=e.style;return(n=n||Re(e))&&(r=n.getPropertyValue(t)||n[t]),n&&(""!==r||x.contains(e.ownerDocument,e)||(r=x.style(e,t)),Ge.test(r))&&Be.test(t)&&(e=i.width,t=i.minWidth,a=i.maxWidth,i.minWidth=i.maxWidth=i.width=r,r=n.width,i.width=e,i.minWidth=t,i.maxWidth=a),void 0!==r?r+"":r}function Y(e,t){return{get:function(){return e()?void delete this.get:(this.get=t).apply(this,arguments)}}}function X(e,t){if(t in e)return t;for(var n=t[0].toUpperCase()+t.slice(1),a=t,r=Je.length;r--;)if((t=Je[r]+n)in e)return t;return a}function K(e,t,n){var a=Qe.exec(t);return a?Math.max(0,a[1]-(n||0))+(a[2]||"px"):t}function J(e,t,n,a,r){for(var i=n===(a?"border":"content")?4:"width"===t?1:0,o=0;i<4;i+=2)"margin"===n&&(o+=x.css(e,n+w[i],!0,r)),a?("content"===n&&(o-=x.css(e,"padding"+w[i],!0,r)),"margin"!==n&&(o-=x.css(e,"border"+w[i]+"Width",!0,r))):(o+=x.css(e,"padding"+w[i],!0,r),"padding"!==n&&(o+=x.css(e,"border"+w[i]+"Width",!0,r)));return o}function Z(e,t,n){var a=!0,r="width"===t?e.offsetWidth:e.offsetHeight,i=Re(e),o="border-box"===x.css(e,"boxSizing",!1,i);if(r<=0||null==r){if(((r=l(e,t,i))<0||null==r)&&(r=e.style[t]),Ge.test(r))return r;a=o&&(m.boxSizingReliable()||r===e.style[t]),r=parseFloat(r)||0}return r+J(e,t,n||(o?"border":"content"),a,i)+"px"}function ee(e,t){for(var n,a,r,i=[],o=0,s=e.length;o<s;o++)(a=e[o]).style&&(i[o]=b.get(a,"olddisplay"),n=a.style.display,t?(i[o]||"none"!==n||(a.style.display=""),""===a.style.display&&v(a)&&(i[o]=b.access(a,"olddisplay",Q(a.nodeName)))):(r=v(a),"none"===n&&r||b.set(a,"olddisplay",r?n:x.css(a,"display"))));for(o=0;o<s;o++)!(a=e[o]).style||t&&"none"!==a.style.display&&""!==a.style.display||(a.style.display=t?i[o]||"":"none");return e}function i(e,t,n,a,r){return new i.prototype.init(e,t,n,a,r)}function te(){return setTimeout(function(){A=void 0}),A=x.now()}function o(e,t){var n,a=0,r={height:e};for(t=t?1:0;a<4;a+=2-t)r["margin"+(n=w[a])]=r["padding"+n]=e;return t&&(r.opacity=r.width=e),r}function ne(e,t,n){for(var a,r=(N[t]||[]).concat(N["*"]),i=0,o=r.length;i<o;i++)if(a=r[i].call(n,t,e))return a}function ae(r,e,t){var n,i,a,o,s,l,c,u=0,d=at.length,h=x.Deferred().always(function(){delete p.elem}),p=function(){if(i)return!1;for(var e=A||te(),e=Math.max(0,f.startTime+f.duration-e),t=1-(e/f.duration||0),n=0,a=f.tweens.length;n<a;n++)f.tweens[n].run(t);return h.notifyWith(r,[f,t,e]),t<1&&a?e:(h.resolveWith(r,[f]),!1)},f=h.promise({elem:r,props:x.extend({},e),opts:x.extend(!0,{specialEasing:{}},t),originalProperties:e,originalOptions:t,startTime:A||te(),duration:t.duration,tweens:[],createTween:function(e,t){t=x.Tween(r,f.opts,e,t,f.opts.specialEasing[e]||f.opts.easing);return f.tweens.push(t),t},stop:function(e){var t=0,n=e?f.tweens.length:0;if(!i){for(i=!0;t<n;t++)f.tweens[t].run(1);e?h.resolveWith(r,[f,e]):h.rejectWith(r,[f,e])}return this}}),g=f.props,m=g,y=f.opts.specialEasing;for(a in m)if(o=x.camelCase(a),s=y[o],l=m[a],x.isArray(l)&&(s=l[1],l=m[a]=l[0]),a!==o&&(m[o]=l,delete m[a]),c=x.cssHooks[o],c&&"expand"in c)for(a in l=c.expand(l),delete m[o],l)a in m||(m[a]=l[a],y[a]=s);else y[o]=s;for(;u<d;u++)if(n=at[u].call(f,r,g,f.opts))return n;return x.map(g,ne,f),x.isFunction(f.opts.start)&&f.opts.start.call(r,f),x.fx.timer(x.extend(p,{elem:r,anim:f,queue:f.opts.queue})),f.progress(f.opts.progress).done(f.opts.done,f.opts.complete).fail(f.opts.fail).always(f.opts.always)}function re(i){return function(e,t){"string"!=typeof e&&(t=e,e="*");var n,a=0,r=e.toLowerCase().match(C)||[];if(x.isFunction(t))for(;n=r[a++];)"+"===n[0]?(n=n.slice(1)||"*",(i[n]=i[n]||[]).unshift(t)):(i[n]=i[n]||[]).push(t)}}function ie(t,a,r,i){function o(e){var n;return s[e]=!0,x.each(t[e]||[],function(e,t){t=t(a,r,i);return"string"!=typeof t||l||s[t]?l?!(n=t):void 0:(a.dataTypes.unshift(t),o(t),!1)}),n}var s={},l=t===yt;return o(a.dataTypes[0])||!s["*"]&&o("*")}function oe(e,t){var n,a,r=x.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((r[n]?e:a=a||{})[n]=t[n]);return a&&x.extend(!0,e,a),e}function se(e){return x.isWindow(e)?e:9===e.nodeType&&e.defaultView}function le(e,t){return t.toUpperCase()}var a=[],u=a.slice,ce=a.concat,ue=a.push,r=a.indexOf,c={},de=c.toString,he=c.hasOwnProperty,m={},y=f.document,x=function(e,t){return new x.fn.init(e,t)},pe=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,fe=/^-ms-/,ge=/-([\da-z])/gi,a=(x.fn=x.prototype={jquery:"2.1.1",constructor:x,selector:"",length:0,toArray:function(){return u.call(this)},get:function(e){return null!=e?e<0?this[e+this.length]:this[e]:u.call(this)},pushStack:function(e){e=x.merge(this.constructor(),e);return e.prevObject=this,e.context=this.context,e},each:function(e,t){return x.each(this,e,t)},map:function(n){return this.pushStack(x.map(this,function(e,t){return n.call(e,t,e)}))},slice:function(){return this.pushStack(u.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(e){var t=this.length,e=+e+(e<0?t:0);return this.pushStack(0<=e&&e<t?[this[e]]:[])},end:function(){return this.prevObject||this.constructor(null)},push:ue,sort:a.sort,splice:a.splice},x.extend=x.fn.extend=function(){var e,t,n,a,r,i=arguments[0]||{},o=1,s=arguments.length,l=!1;for("boolean"==typeof i&&(l=i,i=arguments[o]||{},o++),"object"==typeof i||x.isFunction(i)||(i={}),o===s&&(i=this,o--);o<s;o++)if(null!=(e=arguments[o]))for(t in e)r=i[t],n=e[t],i!==n&&(l&&n&&(x.isPlainObject(n)||(a=x.isArray(n)))?(r=a?(a=!1,r&&x.isArray(r)?r:[]):r&&x.isPlainObject(r)?r:{},i[t]=x.extend(l,r,n)):void 0!==n&&(i[t]=n));return i},x.extend({expando:"jQuery"+("2.1.1"+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isFunction:function(e){return"function"===x.type(e)},isArray:Array.isArray,isWindow:function(e){return null!=e&&e===e.window},isNumeric:function(e){return!x.isArray(e)&&0<=e-parseFloat(e)},isPlainObject:function(e){return!("object"!==x.type(e)||e.nodeType||x.isWindow(e)||e.constructor&&!he.call(e.constructor.prototype,"isPrototypeOf"))},isEmptyObject:function(e){for(var t in e)return!1;return!0},type:function(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?c[de.call(e)]||"object":typeof e},globalEval:function(e){var t,n=eval;(e=x.trim(e))&&(1===e.indexOf("use strict")?((t=y.createElement("script")).text=e,y.head.appendChild(t).parentNode.removeChild(t)):n(e))},camelCase:function(e){return e.replace(fe,"ms-").replace(ge,le)},nodeName:function(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()},each:function(e,t,n){var a,r=0,i=e.length,o=I(e);if(n){if(o)for(;r<i&&!1!==(a=t.apply(e[r],n));r++);else for(r in e)if(a=t.apply(e[r],n),!1===a)break}else if(o)for(;r<i&&!1!==(a=t.call(e[r],r,e[r]));r++);else for(r in e)if(a=t.call(e[r],r,e[r]),!1===a)break;return e},trim:function(e){return null==e?"":(e+"").replace(pe,"")},makeArray:function(e,t){t=t||[];return null!=e&&(I(Object(e))?x.merge(t,"string"==typeof e?[e]:e):ue.call(t,e)),t},inArray:function(e,t,n){return null==t?-1:r.call(t,e,n)},merge:function(e,t){for(var n=+t.length,a=0,r=e.length;a<n;a++)e[r++]=t[a];return e.length=r,e},grep:function(e,t,n){for(var a=[],r=0,i=e.length,o=!n;r<i;r++)!t(e[r],r)!=o&&a.push(e[r]);return a},map:function(e,t,n){var a,r=0,i=e.length,o=[];if(I(e))for(;r<i;r++)null!=(a=t(e[r],r,n))&&o.push(a);else for(r in e)a=t(e[r],r,n),null!=a&&o.push(a);return ce.apply([],o)},guid:1,proxy:function(e,t){var n,a;return"string"==typeof t&&(a=e[t],t=e,e=a),x.isFunction(e)?(n=u.call(arguments,2),(a=function(){return e.apply(t||this,n.concat(u.call(arguments)))}).guid=e.guid=e.guid||x.guid++,a):void 0},now:Date.now,support:m}),x.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(e,t){c["[object "+t+"]"]=t.toLowerCase()}),(D=>{function w(e,t,n,a){var r,i,o,s,l,c,u;if((t?t.ownerDocument||t:$)!==k&&g(t),n=n||[],!e||"string"!=typeof e)return n;if(1!==(r=(t=t||k).nodeType)&&9!==r)return[];if(m&&!a){if(c=ge.exec(e))if(u=c[1]){if(9===r){if(!(s=t.getElementById(u))||!s.parentNode)return n;if(s.id===u)return n.push(s),n}else if(t.ownerDocument&&(s=t.ownerDocument.getElementById(u))&&v(t,s)&&s.id===u)return n.push(s),n}else{if(c[2])return A.apply(n,t.getElementsByTagName(e)),n;if((u=c[3])&&p.getElementsByClassName&&t.getElementsByClassName)return A.apply(n,t.getElementsByClassName(u)),n}if(p.qsa&&(!y||!y.test(e))){if(l=s=b,c=t,u=9===r&&e,1===r&&"object"!==t.nodeName.toLowerCase()){for(o=f(e),(s=t.getAttribute("id"))?l=s.replace(ye,"\\$&"):t.setAttribute("id",l),l="[id='"+l+"'] ",i=o.length;i--;)o[i]=l+h(o[i]);c=me.test(e)&&F(t.parentNode)||t,u=o.join(",")}if(u)try{return A.apply(n,c.querySelectorAll(u)),n}catch(e){}finally{s||t.removeAttribute("id")}}}return Q(e.replace(P,"$1"),t,n,a)}function I(){function n(e,t){return a.push(e+" ")>C.cacheLength&&delete n[a.shift()],n[e+" "]=t}var a=[];return n}function n(e){return e[b]=!0,e}function t(e){var t=k.createElement("div");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t)}}function j(e,t){for(var n=e.split("|"),a=e.length;a--;)C.attrHandle[n[a]]=t}function R(e,t){var n=t&&e,a=n&&1===e.nodeType&&1===t.nodeType&&(~t.sourceIndex||1<<31)-(~e.sourceIndex||1<<31);if(a)return a;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function e(o){return n(function(i){return i=+i,n(function(e,t){for(var n,a=o([],e.length,i),r=a.length;r--;)e[n=a[r]]&&(e[n]=!(t[n]=e[n]))})})}function F(e){return e&&typeof e.getElementsByTagName!==T&&e}function U(){}function h(e){for(var t=0,n=e.length,a="";t<n;t++)a+=e[t].value;return a}function H(o,e,t){var s=e.dir,l=t&&"parentNode"===s,c=Y++;return e.first?function(e,t,n){for(;e=e[s];)if(1===e.nodeType||l)return o(e,t,n)}:function(e,t,n){var a,r,i=[S,c];if(n){for(;e=e[s];)if((1===e.nodeType||l)&&o(e,t,n))return!0}else for(;e=e[s];)if(1===e.nodeType||l){if((a=(r=e[b]||(e[b]={}))[s])&&a[0]===S&&a[1]===c)return i[2]=a[2];if((r[s]=i)[2]=o(e,t,n))return!0}}}function z(r){return 1<r.length?function(e,t,n){for(var a=r.length;a--;)if(!r[a](e,t,n))return!1;return!0}:r[0]}function x(e,t,n,a,r){for(var i,o=[],s=0,l=e.length,c=null!=t;s<l;s++)(i=e[s])&&(!n||n(i,a,r))&&(o.push(i),c)&&t.push(s);return o}function B(p,f,g,m,y,e){return m&&!m[b]&&(m=B(m)),y&&!y[b]&&(y=B(y,e)),n(function(e,t,n,a){var r,i,o,s=[],l=[],c=t.length,u=e||((e,t,n)=>{for(var a=0,r=t.length;a<r;a++)w(e,t[a],n);return n})(f||"*",n.nodeType?[n]:n,[]),d=!p||!e&&f?u:x(u,s,p,n,a),h=g?y||(e?p:c||m)?[]:t:d;if(g&&g(d,h,n,a),m)for(r=x(h,l),m(r,[],n,a),i=r.length;i--;)(o=r[i])&&(h[l[i]]=!(d[l[i]]=o));if(e){if(y||p){if(y){for(r=[],i=h.length;i--;)(o=h[i])&&r.push(d[i]=o);y(null,h=[],r,a)}for(i=h.length;i--;)(o=h[i])&&-1<(r=y?_.call(e,o):s[i])&&(e[r]=!(t[r]=o))}}else h=x(h===t?h.splice(c,h.length):h),y?y(null,t,h,a):A.apply(t,h)})}function G(m,y){function e(e,t,n,a,r){var i,o,s,l=0,c="0",u=e&&[],d=[],h=E,p=e||b&&C.find.TAG("*",r),f=S+=null==h?1:Math.random()||.1,g=p.length;for(r&&(E=t!==k&&t);c!==g&&null!=(i=p[c]);c++){if(b&&i){for(o=0;s=m[o++];)if(s(i,t,n)){a.push(i);break}r&&(S=f)}v&&((i=!s&&i)&&l--,e)&&u.push(i)}if(l+=c,v&&c!==l){for(o=0;s=y[o++];)s(u,d,t,n);if(e){if(0<l)for(;c--;)u[c]||d[c]||(d[c]=te.call(a));d=x(d)}A.apply(a,d),r&&!e&&0<d.length&&1<l+y.length&&w.uniqueSort(a)}return r&&(S=f,E=h),u}var v=0<y.length,b=0<m.length;return v?n(e):e}function d(e,t,n){var a="0x"+t-65536;return a!=a||n?t:a<0?String.fromCharCode(65536+a):String.fromCharCode(a>>10|55296,1023&a|56320)}var a,p,C,i,W,f,V,Q,E,c,u,g,k,r,m,y,o,s,v,b="sizzle"+-new Date,$=D.document,S=0,Y=0,X=I(),K=I(),J=I(),Z=function(e,t){return e===t&&(u=!0),0},T="undefined",ee={}.hasOwnProperty,l=[],te=l.pop,ne=l.push,A=l.push,ae=l.slice,_=l.indexOf||function(e){for(var t=0,n=this.length;t<n;t++)if(this[t]===e)return t;return-1},re="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",L="[\\x20\\t\\r\\n\\f]",N="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",ie=N.replace("w","w#"),oe="\\["+L+"*("+N+")(?:"+L+"*([*^$|!~]?=)"+L+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+ie+"))|)"+L+"*\\]",se=":("+N+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+oe+")*)|.*)\\)|)",P=new RegExp("^"+L+"+|((?:^|[^\\\\])(?:\\\\.)*)"+L+"+$","g"),le=new RegExp("^"+L+"*,"+L+"*"),ce=new RegExp("^"+L+"*([>+~]|"+L+")"+L+"*"),ue=new RegExp("="+L+"*([^\\]'\"]*?)"+L+"*\\]","g"),de=new RegExp(se),he=new RegExp("^"+ie+"$"),M={ID:new RegExp("^#("+N+")"),CLASS:new RegExp("^\\.("+N+")"),TAG:new RegExp("^("+N.replace("w","w*")+")"),ATTR:new RegExp("^"+oe),PSEUDO:new RegExp("^"+se),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+L+"*(even|odd|(([+-]|)(\\d*)n|)"+L+"*(?:([+-]|)"+L+"*(\\d+)|))"+L+"*\\)|)","i"),bool:new RegExp("^(?:"+re+")$","i"),needsContext:new RegExp("^"+L+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+L+"*((?:-\\d)?\\d*)"+L+"*\\)|)(?=[^-]|$)","i")},pe=/^(?:input|select|textarea|button)$/i,fe=/^h\d$/i,O=/^[^{]+\{\s*\[native \w/,ge=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,me=/[+~]/,ye=/'|\\/g,q=new RegExp("\\\\([\\da-f]{1,6}"+L+"?|("+L+")|.)","ig");try{A.apply(l=ae.call($.childNodes),$.childNodes),l[$.childNodes.length].nodeType}catch(e){A={apply:l.length?function(e,t){ne.apply(e,ae.call(t))}:function(e,t){for(var n=e.length,a=0;e[n++]=t[a++];);e.length=n-1}}}for(a in p=w.support={},W=w.isXML=function(e){e=e&&(e.ownerDocument||e).documentElement;return!!e&&"HTML"!==e.nodeName},g=w.setDocument=function(e){var l=e?e.ownerDocument||e:$,e=l.defaultView;return l!==k&&9===l.nodeType&&l.documentElement?(r=(k=l).documentElement,m=!W(l),e&&e!==e.top&&(e.addEventListener?e.addEventListener("unload",function(){g()},!1):e.attachEvent&&e.attachEvent("onunload",function(){g()})),p.attributes=t(function(e){return e.className="i",!e.getAttribute("className")}),p.getElementsByTagName=t(function(e){return e.appendChild(l.createComment("")),!e.getElementsByTagName("*").length}),p.getElementsByClassName=O.test(l.getElementsByClassName)&&t(function(e){return e.innerHTML="<div class='a'></div><div class='a i'></div>",e.firstChild.className="i",2===e.getElementsByClassName("i").length}),p.getById=t(function(e){return r.appendChild(e).id=b,!l.getElementsByName||!l.getElementsByName(b).length}),p.getById?(C.find.ID=function(e,t){if(typeof t.getElementById!==T&&m)return(t=t.getElementById(e))&&t.parentNode?[t]:[]},C.filter.ID=function(e){var t=e.replace(q,d);return function(e){return e.getAttribute("id")===t}}):(delete C.find.ID,C.filter.ID=function(e){var t=e.replace(q,d);return function(e){e=typeof e.getAttributeNode!==T&&e.getAttributeNode("id");return e&&e.value===t}}),C.find.TAG=p.getElementsByTagName?function(e,t){return typeof t.getElementsByTagName!==T?t.getElementsByTagName(e):void 0}:function(e,t){var n,a=[],r=0,i=t.getElementsByTagName(e);if("*"!==e)return i;for(;n=i[r++];)1===n.nodeType&&a.push(n);return a},C.find.CLASS=p.getElementsByClassName&&function(e,t){return typeof t.getElementsByClassName!==T&&m?t.getElementsByClassName(e):void 0},o=[],y=[],(p.qsa=O.test(l.querySelectorAll))&&(t(function(e){e.innerHTML="<select msallowclip=''><option selected=''></option></select>",e.querySelectorAll("[msallowclip^='']").length&&y.push("[*^$]="+L+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||y.push("\\["+L+"*(?:value|"+re+")"),e.querySelectorAll(":checked").length||y.push(":checked")}),t(function(e){var t=l.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&y.push("name"+L+"*[*^$|!~]?="),e.querySelectorAll(":enabled").length||y.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),y.push(",.*:")})),(p.matchesSelector=O.test(s=r.matches||r.webkitMatchesSelector||r.mozMatchesSelector||r.oMatchesSelector||r.msMatchesSelector))&&t(function(e){p.disconnectedMatch=s.call(e,"div"),s.call(e,"[s!='']:x"),o.push("!=",se)}),y=y.length&&new RegExp(y.join("|")),o=o.length&&new RegExp(o.join("|")),e=O.test(r.compareDocumentPosition),v=e||O.test(r.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,t=t&&t.parentNode;return e===t||!(!t||1!==t.nodeType||!(n.contains?n.contains(t):e.compareDocumentPosition&&16&e.compareDocumentPosition(t)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},Z=e?function(e,t){var n;return e===t?(u=!0,0):(n=!e.compareDocumentPosition-!t.compareDocumentPosition)||(1&(n=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!p.sortDetached&&t.compareDocumentPosition(e)===n?e===l||e.ownerDocument===$&&v($,e)?-1:t===l||t.ownerDocument===$&&v($,t)?1:c?_.call(c,e)-_.call(c,t):0:4&n?-1:1)}:function(e,t){if(e===t)return u=!0,0;var n,a=0,r=e.parentNode,i=t.parentNode,o=[e],s=[t];if(!r||!i)return e===l?-1:t===l?1:r?-1:i?1:c?_.call(c,e)-_.call(c,t):0;if(r===i)return R(e,t);for(n=e;n=n.parentNode;)o.unshift(n);for(n=t;n=n.parentNode;)s.unshift(n);for(;o[a]===s[a];)a++;return a?R(o[a],s[a]):o[a]===$?-1:s[a]===$?1:0},l):k},w.matches=function(e,t){return w(e,null,null,t)},w.matchesSelector=function(e,t){if((e.ownerDocument||e)!==k&&g(e),t=t.replace(ue,"='$1']"),!(!p.matchesSelector||!m||o&&o.test(t)||y&&y.test(t)))try{var n=s.call(e,t);if(n||p.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(e){}return 0<w(t,k,null,[e]).length},w.contains=function(e,t){return(e.ownerDocument||e)!==k&&g(e),v(e,t)},w.attr=function(e,t){(e.ownerDocument||e)!==k&&g(e);var n=C.attrHandle[t.toLowerCase()],n=n&&ee.call(C.attrHandle,t.toLowerCase())?n(e,t,!m):void 0;return void 0!==n?n:p.attributes||!m?e.getAttribute(t):(n=e.getAttributeNode(t))&&n.specified?n.value:null},w.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},w.uniqueSort=function(e){var t,n=[],a=0,r=0;if(u=!p.detectDuplicates,c=!p.sortStable&&e.slice(0),e.sort(Z),u){for(;t=e[r++];)t===e[r]&&(a=n.push(r));for(;a--;)e.splice(n[a],1)}return c=null,e},i=w.getText=function(e){var t,n="",a=0,r=e.nodeType;if(r){if(1===r||9===r||11===r){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=i(e)}else if(3===r||4===r)return e.nodeValue}else for(;t=e[a++];)n+=i(t);return n},(C=w.selectors={cacheLength:50,createPseudo:n,match:M,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(q,d),e[3]=(e[3]||e[4]||e[5]||"").replace(q,d),"~="===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]||w.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]&&w.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return M.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&de.test(n)&&(t=(t=f(n,!0))&&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(q,d).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=X[e+" "];return t||(t=new RegExp("(^|"+L+")"+e+"("+L+"|$)"))&&X(e,function(e){return t.test("string"==typeof e.className&&e.className||typeof e.getAttribute!==T&&e.getAttribute("class")||"")})},ATTR:function(t,n,a){return function(e){e=w.attr(e,t);return null==e?"!="===n:!n||(e+="","="===n?e===a:"!="===n?e!==a:"^="===n?a&&0===e.indexOf(a):"*="===n?a&&-1<e.indexOf(a):"$="===n?a&&e.slice(-a.length)===a:"~="===n?-1<(" "+e+" ").indexOf(a):"|="===n&&(e===a||e.slice(0,a.length+1)===a+"-"))}},CHILD:function(p,e,t,f,g){var m="nth"!==p.slice(0,3),y="last"!==p.slice(-4),v="of-type"===e;return 1===f&&0===g?function(e){return!!e.parentNode}:function(e,t,n){var a,r,i,o,s,l,c=m!=y?"nextSibling":"previousSibling",u=e.parentNode,d=v&&e.nodeName.toLowerCase(),h=!n&&!v;if(u){if(m){for(;c;){for(i=e;i=i[c];)if(v?i.nodeName.toLowerCase()===d:1===i.nodeType)return!1;l=c="only"===p&&!l&&"nextSibling"}return!0}if(l=[y?u.firstChild:u.lastChild],y&&h){for(s=(a=(r=u[b]||(u[b]={}))[p]||[])[0]===S&&a[1],o=a[0]===S&&a[2],i=s&&u.childNodes[s];i=++s&&i&&i[c]||(o=s=0,l.pop());)if(1===i.nodeType&&++o&&i===e){r[p]=[S,s,o];break}}else if(h&&(a=(e[b]||(e[b]={}))[p])&&a[0]===S)o=a[1];else for(;(i=++s&&i&&i[c]||(o=s=0,l.pop()))&&((v?i.nodeName.toLowerCase()!==d:1!==i.nodeType)||!++o||(h&&((i[b]||(i[b]={}))[p]=[S,o]),i!==e)););return(o-=g)===f||o%f==0&&0<=o/f}}},PSEUDO:function(e,i){var t,o=C.pseudos[e]||C.setFilters[e.toLowerCase()]||w.error("unsupported pseudo: "+e);return o[b]?o(i):1<o.length?(t=[e,e,"",i],C.setFilters.hasOwnProperty(e.toLowerCase())?n(function(e,t){for(var n,a=o(e,i),r=a.length;r--;)e[n=_.call(e,a[r])]=!(t[n]=a[r])}):function(e){return o(e,0,t)}):o}},pseudos:{not:n(function(e){var a=[],r=[],s=V(e.replace(P,"$1"));return s[b]?n(function(e,t,n,a){for(var r,i=s(e,null,a,[]),o=e.length;o--;)(r=i[o])&&(e[o]=!(t[o]=r))}):function(e,t,n){return a[0]=e,s(a,null,n,r),!r.pop()}}),has:n(function(t){return function(e){return 0<w(t,e).length}}),contains:n(function(t){return function(e){return-1<(e.textContent||e.innerText||i(e)).indexOf(t)}}),lang:n(function(n){return he.test(n||"")||w.error("unsupported lang: "+n),n=n.replace(q,d).toLowerCase(),function(e){var t;do{if(t=m?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return(t=t.toLowerCase())===n||0===t.indexOf(n+"-")}while((e=e.parentNode)&&1===e.nodeType);return!1}}),target:function(e){var t=D.location&&D.location.hash;return t&&t.slice(1)===e.id},root:function(e){return e===r},focus:function(e){return e===k.activeElement&&(!k.hasFocus||k.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:function(e){return!1===e.disabled},disabled:function(e){return!0===e.disabled},checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!C.pseudos.empty(e)},header:function(e){return fe.test(e.nodeName)},input:function(e){return pe.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(e=e.getAttribute("type"))||"text"===e.toLowerCase())},first:e(function(){return[0]}),last:e(function(e,t){return[t-1]}),eq:e(function(e,t,n){return[n<0?n+t:n]}),even:e(function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e}),odd:e(function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e}),lt:e(function(e,t,n){for(var a=n<0?n+t:n;0<=--a;)e.push(a);return e}),gt:e(function(e,t,n){for(var a=n<0?n+t:n;++a<t;)e.push(a);return e})}}).pseudos.nth=C.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})C.pseudos[a]=(t=>function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t})(a);for(a in{submit:!0,reset:!0})C.pseudos[a]=(n=>function(e){var t=e.nodeName.toLowerCase();return("input"===t||"button"===t)&&e.type===n})(a);return U.prototype=C.filters=C.pseudos,C.setFilters=new U,f=w.tokenize=function(e,t){var n,a,r,i,o,s,l,c=K[e+" "];if(c)return t?0:c.slice(0);for(o=e,s=[],l=C.preFilter;o;){for(i in n&&!(a=le.exec(o))||(a&&(o=o.slice(a[0].length)||o),s.push(r=[])),n=!1,(a=ce.exec(o))&&(n=a.shift(),r.push({value:n,type:a[0].replace(P," ")}),o=o.slice(n.length)),C.filter)!(a=M[i].exec(o))||l[i]&&!(a=l[i](a))||(n=a.shift(),r.push({value:n,type:i,matches:a}),o=o.slice(n.length));if(!n)break}return t?o.length:o?w.error(e):K(e,s).slice(0)},V=w.compile=function(e,t){var n,a=[],r=[],i=J[e+" "];if(!i){for(n=(t=t||f(e)).length;n--;)((i=function e(t){for(var a,n,r,i=t.length,o=C.relative[t[0].type],s=o||C.relative[" "],l=o?1:0,c=H(function(e){return e===a},s,!0),u=H(function(e){return-1<_.call(a,e)},s,!0),d=[function(e,t,n){return!o&&(n||t!==E)||((a=t).nodeType?c:u)(e,t,n)}];l<i;l++)if(n=C.relative[t[l].type])d=[H(z(d),n)];else{if((n=C.filter[t[l].type].apply(null,t[l].matches))[b]){for(r=++l;r<i&&!C.relative[t[r].type];r++);return B(1<l&&z(d),1<l&&h(t.slice(0,l-1).concat({value:" "===t[l-2].type?"*":""})).replace(P,"$1"),n,l<r&&e(t.slice(l,r)),r<i&&e(t=t.slice(r)),r<i&&h(t))}d.push(n)}return z(d)}(t[n]))[b]?a:r).push(i);(i=J(e,G(r,a))).selector=e}return i},Q=w.select=function(e,t,n,a){var r,i,o,s,l,c="function"==typeof e&&e,u=!a&&f(e=c.selector||e);if(n=n||[],1===u.length){if(2<(i=u[0]=u[0].slice(0)).length&&"ID"===(o=i[0]).type&&p.getById&&9===t.nodeType&&m&&C.relative[i[1].type]){if(!(t=(C.find.ID(o.matches[0].replace(q,d),t)||[])[0]))return n;c&&(t=t.parentNode),e=e.slice(i.shift().value.length)}for(r=M.needsContext.test(e)?0:i.length;r--&&(o=i[r],!C.relative[s=o.type]);)if((l=C.find[s])&&(a=l(o.matches[0].replace(q,d),me.test(i[0].type)&&F(t.parentNode)||t))){if(i.splice(r,1),e=a.length&&h(i))break;return A.apply(n,a),n}}return(c||V(e,u))(a,t,!m,n,me.test(e)&&F(t.parentNode)||t),n},p.sortStable=b.split("").sort(Z).join("")===b,p.detectDuplicates=!!u,g(),p.sortDetached=t(function(e){return 1&e.compareDocumentPosition(k.createElement("div"))}),t(function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")})||j("type|href|height|width",function(e,t,n){return n?void 0:e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),p.attributes&&t(function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||j("value",function(e,t,n){return n||"input"!==e.nodeName.toLowerCase()?void 0:e.defaultValue}),t(function(e){return null==e.getAttribute("disabled")})||j(re,function(e,t,n){return n?void 0:!0===e[t]?t.toLowerCase():(n=e.getAttributeNode(t))&&n.specified?n.value:null}),w})(f)),me=(x.find=a,x.expr=a.selectors,x.expr[":"]=x.expr.pseudos,x.unique=a.uniqueSort,x.text=a.getText,x.isXMLDoc=a.isXML,x.contains=a.contains,x.expr.match.needsContext),ye=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,ve=/^.[^:#\[\.,]*$/;x.filter=function(e,t,n){var a=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===a.nodeType?x.find.matchesSelector(a,e)?[a]:[]:x.find.matches(e,x.grep(t,function(e){return 1===e.nodeType}))},x.fn.extend({find:function(e){var t,n=this.length,a=[],r=this;if("string"!=typeof e)return this.pushStack(x(e).filter(function(){for(t=0;t<n;t++)if(x.contains(r[t],this))return!0}));for(t=0;t<n;t++)x.find(e,r[t],a);return(a=this.pushStack(1<n?x.unique(a):a)).selector=this.selector?this.selector+" "+e:e,a},filter:function(e){return this.pushStack(j(this,e||[],!1))},not:function(e){return this.pushStack(j(this,e||[],!0))},is:function(e){return!!j(this,"string"==typeof e&&me.test(e)?x(e):e||[],!1).length}});function v(e,t){return"none"===x.css(e=t||e,"display")||!x.contains(e.ownerDocument,e)}var d,be,we=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,xe=((x.fn.init=function(e,t){var n,a;if(e){if("string"!=typeof e)return e.nodeType?(this.context=this[0]=e,this.length=1,this):x.isFunction(e)?void 0!==d.ready?d.ready(e):e(x):(void 0!==e.selector&&(this.selector=e.selector,this.context=e.context),x.makeArray(e,this));if(!(n="<"===e[0]&&">"===e[e.length-1]&&3<=e.length?[null,e,null]:we.exec(e))||!n[1]&&t)return(!t||t.jquery?t||d:this.constructor(t)).find(e);if(n[1]){if(t=t instanceof x?t[0]:t,x.merge(this,x.parseHTML(n[1],t&&t.nodeType?t.ownerDocument||t:y,!0)),ye.test(n[1])&&x.isPlainObject(t))for(n in t)x.isFunction(this[n])?this[n](t[n]):this.attr(n,t[n])}else(a=y.getElementById(n[2]))&&a.parentNode&&(this.length=1,this[0]=a),this.context=y,this.selector=e}return this}).prototype=x.fn,d=x(y),/^(?:parents|prev(?:Until|All))/),Ce={children:!0,contents:!0,next:!0,prev:!0},C=(x.extend({dir:function(e,t,n){for(var a=[],r=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(r&&x(e).is(n))break;a.push(e)}return a},sibling:function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n}}),x.fn.extend({has:function(e){var t=x(e,this),n=t.length;return this.filter(function(){for(var e=0;e<n;e++)if(x.contains(this,t[e]))return!0})},closest:function(e,t){for(var n,a=0,r=this.length,i=[],o=me.test(e)||"string"!=typeof e?x(e,t||this.context):0;a<r;a++)for(n=this[a];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(o?-1<o.index(n):1===n.nodeType&&x.find.matchesSelector(n,e))){i.push(n);break}return this.pushStack(1<i.length?x.unique(i):i)},index:function(e){return e?"string"==typeof e?r.call(x(e),this[0]):r.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(x.unique(x.merge(this.get(),x(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),x.each({parent:function(e){e=e.parentNode;return e&&11!==e.nodeType?e:null},parents:function(e){return x.dir(e,"parentNode")},parentsUntil:function(e,t,n){return x.dir(e,"parentNode",n)},next:function(e){return R(e,"nextSibling")},prev:function(e){return R(e,"previousSibling")},nextAll:function(e){return x.dir(e,"nextSibling")},prevAll:function(e){return x.dir(e,"previousSibling")},nextUntil:function(e,t,n){return x.dir(e,"nextSibling",n)},prevUntil:function(e,t,n){return x.dir(e,"previousSibling",n)},siblings:function(e){return x.sibling((e.parentNode||{}).firstChild,e)},children:function(e){return x.sibling(e.firstChild)},contents:function(e){return e.contentDocument||x.merge([],e.childNodes)}},function(a,r){x.fn[a]=function(e,t){var n=x.map(this,r,e);return(t="Until"!==a.slice(-5)?e:t)&&"string"==typeof t&&(n=x.filter(t,n)),1<this.length&&(Ce[a]||x.unique(n),xe.test(a))&&n.reverse(),this.pushStack(n)}}),/\S+/g),Ee={},h=(x.Callbacks=function(r){var e,n;r="string"==typeof r?Ee[r]||(n=Ee[e=r]={},x.each(e.match(C)||[],function(e,t){n[t]=!0}),n):x.extend({},r);function a(e){for(t=r.memory&&e,i=!0,c=s||0,s=0,l=u.length,o=!0;u&&c<l;c++)if(!1===u[c].apply(e[0],e[1])&&r.stopOnFalse){t=!1;break}o=!1,u&&(d?d.length&&a(d.shift()):t?u=[]:h.disable())}var t,i,o,s,l,c,u=[],d=!r.once&&[],h={add:function(){var e;return u&&(e=u.length,function a(e){x.each(e,function(e,t){var n=x.type(t);"function"===n?r.unique&&h.has(t)||u.push(t):t&&t.length&&"string"!==n&&a(t)})}(arguments),o?l=u.length:t&&(s=e,a(t))),this},remove:function(){return u&&x.each(arguments,function(e,t){for(var n;-1<(n=x.inArray(t,u,n));)u.splice(n,1),o&&(n<=l&&l--,n<=c)&&c--}),this},has:function(e){return e?-1<x.inArray(e,u):!(!u||!u.length)},empty:function(){return u=[],l=0,this},disable:function(){return u=d=t=void 0,this},disabled:function(){return!u},lock:function(){return d=void 0,t||h.disable(),this},locked:function(){return!d},fireWith:function(e,t){return!u||i&&!d||(t=[e,(t=t||[]).slice?t.slice():t],o?d.push(t):a(t)),this},fire:function(){return h.fireWith(this,arguments),this},fired:function(){return!!i}};return h},x.extend({Deferred:function(e){var i=[["resolve","done",x.Callbacks("once memory"),"resolved"],["reject","fail",x.Callbacks("once memory"),"rejected"],["notify","progress",x.Callbacks("memory")]],r="pending",o={state:function(){return r},always:function(){return s.done(arguments).fail(arguments),this},then:function(){var r=arguments;return x.Deferred(function(a){x.each(i,function(e,t){var n=x.isFunction(r[e])&&r[e];s[t[1]](function(){var e=n&&n.apply(this,arguments);e&&x.isFunction(e.promise)?e.promise().done(a.resolve).fail(a.reject).progress(a.notify):a[t[0]+"With"](this===o?a.promise():this,n?[e]:arguments)})}),r=null}).promise()},promise:function(e){return null!=e?x.extend(e,o):o}},s={};return o.pipe=o.then,x.each(i,function(e,t){var n=t[2],a=t[3];o[t[1]]=n.add,a&&n.add(function(){r=a},i[1^e][2].disable,i[2][2].lock),s[t[0]]=function(){return s[t[0]+"With"](this===s?o:this,arguments),this},s[t[0]+"With"]=n.fireWith}),o.promise(s),e&&e.call(s,s),s},when:function(e){function t(t,n,a){return function(e){n[t]=this,a[t]=1<arguments.length?u.call(arguments):e,a===r?c.notifyWith(n,a):--l||c.resolveWith(n,a)}}var r,n,a,i=0,o=u.call(arguments),s=o.length,l=1!==s||e&&x.isFunction(e.promise)?s:0,c=1===l?e:x.Deferred();if(1<s)for(r=new Array(s),n=new Array(s),a=new Array(s);i<s;i++)o[i]&&x.isFunction(o[i].promise)?o[i].promise().done(t(i,a,o)).fail(c.reject).progress(t(i,n,r)):--l;return l||c.resolveWith(a,o),c.promise()}}),x.fn.ready=function(e){return x.ready.promise().done(e),this},x.extend({isReady:!1,readyWait:1,holdReady:function(e){e?x.readyWait++:x.ready(!0)},ready:function(e){(!0===e?--x.readyWait:x.isReady)||(x.isReady=!0)!==e&&0<--x.readyWait||(be.resolveWith(y,[x]),x.fn.triggerHandler&&(x(y).triggerHandler("ready"),x(y).off("ready")))}}),x.ready.promise=function(e){return be||(be=x.Deferred(),"complete"===y.readyState?setTimeout(x.ready):(y.addEventListener("DOMContentLoaded",t,!1),f.addEventListener("load",t,!1))),be.promise(e)},x.ready.promise(),x.access=function(e,t,n,a,r,i,o){var s=0,l=e.length,c=null==n;if("object"===x.type(n))for(s in r=!0,n)x.access(e,t,s,n[s],!0,i,o);else if(void 0!==a&&(r=!0,x.isFunction(a)||(o=!0),t=c?o?(t.call(e,a),null):(c=t,function(e,t,n){return c.call(x(e),n)}):t))for(;s<l;s++)t(e[s],n,o?a:a.call(e[s],s,t(e[s],n)));return r?e:c?t.call(e):l?t(e[0],n):i}),b=(x.acceptData=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType},e.uid=1,e.accepts=x.acceptData,e.prototype={key:function(t){if(!e.accepts(t))return 0;var n={},a=t[this.expando];if(!a){a=e.uid++;try{n[this.expando]={value:a},Object.defineProperties(t,n)}catch(e){n[this.expando]=a,x.extend(t,n)}}return this.cache[a]||(this.cache[a]={}),a},set:function(e,t,n){var a,e=this.key(e),r=this.cache[e];if("string"==typeof t)r[t]=n;else if(x.isEmptyObject(r))x.extend(this.cache[e],t);else for(a in t)r[a]=t[a];return r},get:function(e,t){e=this.cache[this.key(e)];return void 0===t?e:e[t]},access:function(e,t,n){var a;return void 0===t||t&&"string"==typeof t&&void 0===n?void 0!==(a=this.get(e,t))?a:this.get(e,x.camelCase(t)):(this.set(e,t,n),void 0!==n?n:t)},remove:function(e,t){var n,a,e=this.key(e),r=this.cache[e];if(void 0===t)this.cache[e]={};else{n=(a=x.isArray(t)?t.concat(t.map(x.camelCase)):(e=x.camelCase(t),t in r?[t,e]:(a=e)in r?[a]:a.match(C)||[])).length;for(;n--;)delete r[a[n]]}},hasData:function(e){return!x.isEmptyObject(this.cache[e[this.expando]]||{})},discard:function(e){e[this.expando]&&delete this.cache[e[this.expando]]}},new e),p=new e,ke=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,$e=/([A-Z])/g,a=(x.extend({hasData:function(e){return p.hasData(e)||b.hasData(e)},data:function(e,t,n){return p.access(e,t,n)},removeData:function(e,t){p.remove(e,t)},_data:function(e,t,n){return b.access(e,t,n)},_removeData:function(e,t){b.remove(e,t)}}),x.fn.extend({data:function(a,e){var t,n,r,i=this[0],o=i&&i.attributes;if(void 0!==a)return"object"==typeof a?this.each(function(){p.set(this,a)}):h(this,function(t){var e,n=x.camelCase(a);if(i&&void 0===t)return void 0!==(e=p.get(i,a))||void 0!==(e=p.get(i,n))||void 0!==(e=F(i,n,void 0))?e:void 0;this.each(function(){var e=p.get(this,n);p.set(this,n,t),-1!==a.indexOf("-")&&void 0!==e&&p.set(this,a,t)})},null,e,1<arguments.length,null,!0);if(this.length&&(r=p.get(i),1===i.nodeType)&&!b.get(i,"hasDataAttrs")){for(t=o.length;t--;)o[t]&&0===(n=o[t].name).indexOf("data-")&&(n=x.camelCase(n.slice(5)),F(i,n,r[n]));b.set(i,"hasDataAttrs",!0)}return r},removeData:function(e){return this.each(function(){p.remove(this,e)})}}),x.extend({queue:function(e,t,n){var a;return e?(a=b.get(e,t=(t||"fx")+"queue"),n&&(!a||x.isArray(n)?a=b.access(e,t,x.makeArray(n)):a.push(n)),a||[]):void 0},dequeue:function(e,t){t=t||"fx";var n=x.queue(e,t),a=n.length,r=n.shift(),i=x._queueHooks(e,t);"inprogress"===r&&(r=n.shift(),a--),r&&("fx"===t&&n.unshift("inprogress"),delete i.stop,r.call(e,function(){x.dequeue(e,t)},i)),!a&&i&&i.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return b.get(e,n)||b.access(e,n,{empty:x.Callbacks("once memory").add(function(){b.remove(e,[t+"queue",n])})})}}),x.fn.extend({queue:function(t,n){var e=2;return"string"!=typeof t&&(n=t,t="fx",e--),arguments.length<e?x.queue(this[0],t):void 0===n?this:this.each(function(){var e=x.queue(this,t,n);x._queueHooks(this,t),"fx"===t&&"inprogress"!==e[0]&&x.dequeue(this,t)})},dequeue:function(e){return this.each(function(){x.dequeue(this,e)})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){function n(){--r||i.resolveWith(o,[o])}var a,r=1,i=x.Deferred(),o=this,s=this.length;for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";s--;)(a=b.get(o[s],e+"queueHooks"))&&a.empty&&(r++,a.empty.add(n));return n(),i.promise(t)}}),/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source),w=["Top","Right","Bottom","Left"],Se=/^(?:checkbox|radio)$/i,E=(L=y.createDocumentFragment().appendChild(y.createElement("div")),(_=y.createElement("input")).setAttribute("type","radio"),_.setAttribute("checked","checked"),_.setAttribute("name","t"),L.appendChild(_),m.checkClone=L.cloneNode(!0).cloneNode(!0).lastChild.checked,L.innerHTML="<textarea>x</textarea>",m.noCloneChecked=!!L.cloneNode(!0).lastChild.defaultValue,"undefined"),Te=(m.focusinBubbles="onfocusin"in f,/^key/),Ae=/^(?:mouse|pointer|contextmenu)|click/,_e=/^(?:focusinfocus|focusoutblur)$/,Le=/^([^.]*)(?:\.(.+)|)$/,Ne=(x.event={global:{},add:function(t,e,n,a,r){var i,o,s,l,c,u,d,h,p,f=b.get(t);if(f)for(n.handler&&(n=(i=n).handler,r=i.selector),n.guid||(n.guid=x.guid++),s=(s=f.events)||(f.events={}),o=(o=f.handle)||(f.handle=function(e){return typeof x!=E&&x.event.triggered!==e.type?x.event.dispatch.apply(t,arguments):void 0}),l=(e=(e||"").match(C)||[""]).length;l--;)d=p=(h=Le.exec(e[l])||[])[1],h=(h[2]||"").split(".").sort(),d&&(c=x.event.special[d]||{},d=(r?c.delegateType:c.bindType)||d,c=x.event.special[d]||{},p=x.extend({type:d,origType:p,data:a,handler:n,guid:n.guid,selector:r,needsContext:r&&x.expr.match.needsContext.test(r),namespace:h.join(".")},i),(u=s[d])||((u=s[d]=[]).delegateCount=0,c.setup&&!1!==c.setup.call(t,a,h,o))||t.addEventListener&&t.addEventListener(d,o,{capture:!1,passive:-1<d.indexOf("touch")&&-1<d.indexOf("scroll")}),c.add&&(c.add.call(t,p),p.handler.guid||(p.handler.guid=n.guid)),r?u.splice(u.delegateCount++,0,p):u.push(p),x.event.global[d]=!0)},remove:function(e,t,n,a,r){var i,o,s,l,c,u,d,h,p,f,g,m=b.hasData(e)&&b.get(e);if(m&&(l=m.events)){for(c=(t=(t||"").match(C)||[""]).length;c--;)if(p=g=(s=Le.exec(t[c])||[])[1],f=(s[2]||"").split(".").sort(),p){for(d=x.event.special[p]||{},h=l[p=(a?d.delegateType:d.bindType)||p]||[],s=s[2]&&new RegExp("(^|\\.)"+f.join("\\.(?:.*\\.|)")+"(\\.|$)"),o=i=h.length;i--;)u=h[i],!r&&g!==u.origType||n&&n.guid!==u.guid||s&&!s.test(u.namespace)||a&&a!==u.selector&&("**"!==a||!u.selector)||(h.splice(i,1),u.selector&&h.delegateCount--,d.remove&&d.remove.call(e,u));o&&!h.length&&(d.teardown&&!1!==d.teardown.call(e,f,m.handle)||x.removeEvent(e,p,m.handle),delete l[p])}else for(p in l)x.event.remove(e,p+t[c],n,a,!0);x.isEmptyObject(l)&&(delete m.handle,b.remove(e,"events"))}},trigger:function(e,t,n,a){var r,i,o,s,l,c,u=[n||y],d=he.call(e,"type")?e.type:e,h=he.call(e,"namespace")?e.namespace.split("."):[],p=i=n=n||y;if(3!==n.nodeType&&8!==n.nodeType&&!_e.test(d+x.event.triggered)&&(0<=d.indexOf(".")&&(d=(h=d.split(".")).shift(),h.sort()),s=d.indexOf(":")<0&&"on"+d,(e=e[x.expando]?e:new x.Event(d,"object"==typeof e&&e)).isTrigger=a?2:3,e.namespace=h.join("."),e.namespace_re=e.namespace?new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=n),t=null==t?[e]:x.makeArray(t,[e]),c=x.event.special[d]||{},a||!c.trigger||!1!==c.trigger.apply(n,t))){if(!a&&!c.noBubble&&!x.isWindow(n)){for(o=c.delegateType||d,_e.test(o+d)||(p=p.parentNode);p;p=p.parentNode)u.push(p),i=p;i===(n.ownerDocument||y)&&u.push(i.defaultView||i.parentWindow||f)}for(r=0;(p=u[r++])&&!e.isPropagationStopped();)e.type=1<r?o:c.bindType||d,(l=(b.get(p,"events")||{})[e.type]&&b.get(p,"handle"))&&l.apply(p,t),(l=s&&p[s])&&l.apply&&x.acceptData(p)&&(e.result=l.apply(p,t),!1===e.result)&&e.preventDefault();return e.type=d,a||e.isDefaultPrevented()||c._default&&!1!==c._default.apply(u.pop(),t)||!x.acceptData(n)||s&&x.isFunction(n[d])&&!x.isWindow(n)&&((i=n[s])&&(n[s]=null),n[x.event.triggered=d](),x.event.triggered=void 0,i)&&(n[s]=i),e.result}},dispatch:function(e){e=x.event.fix(e);var t,n,a,r,i,o=u.call(arguments),s=(b.get(this,"events")||{})[e.type]||[],l=x.event.special[e.type]||{};if((o[0]=e).delegateTarget=this,!l.preDispatch||!1!==l.preDispatch.call(this,e)){for(i=x.event.handlers.call(this,e,s),t=0;(a=i[t++])&&!e.isPropagationStopped();)for(e.currentTarget=a.elem,n=0;(r=a.handlers[n++])&&!e.isImmediatePropagationStopped();)e.namespace_re&&!e.namespace_re.test(r.namespace)||(e.handleObj=r,e.data=r.data,void 0===(r=((x.event.special[r.origType]||{}).handle||r.handler).apply(a.elem,o)))||!1!==(e.result=r)||(e.preventDefault(),e.stopPropagation());return l.postDispatch&&l.postDispatch.call(this,e),e.result}},handlers:function(e,t){var n,a,r,i,o=[],s=t.delegateCount,l=e.target;if(s&&l.nodeType&&(!e.button||"click"!==e.type))for(;l!==this;l=l.parentNode||this)if(!0!==l.disabled||"click"!==e.type){for(a=[],n=0;n<s;n++)void 0===a[r=(i=t[n]).selector+" "]&&(a[r]=i.needsContext?0<=x(r,this).index(l):x.find(r,this,null,[l]).length),a[r]&&a.push(i);a.length&&o.push({elem:l,handlers:a})}return s<t.length&&o.push({elem:this,handlers:t.slice(s)}),o},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 offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(e,t){var n,a,r=t.button;return null==e.pageX&&null!=t.clientX&&(n=(a=e.target.ownerDocument||y).documentElement,a=a.body,e.pageX=t.clientX+(n&&n.scrollLeft||a&&a.scrollLeft||0)-(n&&n.clientLeft||a&&a.clientLeft||0),e.pageY=t.clientY+(n&&n.scrollTop||a&&a.scrollTop||0)-(n&&n.clientTop||a&&a.clientTop||0)),e.which||void 0===r||(e.which=1&r?1:2&r?3:4&r?2:0),e}},fix:function(e){if(e[x.expando])return e;var t,n,a,r=e.type,i=e,o=this.fixHooks[r];for(o||(this.fixHooks[r]=o=Ae.test(r)?this.mouseHooks:Te.test(r)?this.keyHooks:{}),a=o.props?this.props.concat(o.props):this.props,e=new x.Event(i),t=a.length;t--;)e[n=a[t]]=i[n];return e.target||(e.target=y),3===e.target.nodeType&&(e.target=e.target.parentNode),o.filter?o.filter(e,i):e},special:{load:{noBubble:!0},focus:{trigger:function(){return this!==U()&&this.focus?(this.focus(),!1):void 0},delegateType:"focusin"},blur:{trigger:function(){return this===U()&&this.blur?(this.blur(),!1):void 0},delegateType:"focusout"},click:{trigger:function(){return"checkbox"===this.type&&this.click&&x.nodeName(this,"input")?(this.click(),!1):void 0},_default:function(e){return x.nodeName(e.target,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}},simulate:function(e,t,n,a){e=x.extend(new x.Event,n,{type:e,isSimulated:!0,originalEvent:{}});a?x.event.trigger(e,null,t):x.event.dispatch.call(t,e),e.isDefaultPrevented()&&n.preventDefault()}},x.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n,!1)},x.Event=function(e,t){return this instanceof x.Event?(e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?n:s):this.type=e,t&&x.extend(this,t),this.timeStamp=e&&e.timeStamp||x.now(),void(this[x.expando]=!0)):new x.Event(e,t)},x.Event.prototype={isDefaultPrevented:s,isPropagationStopped:s,isImmediatePropagationStopped:s,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=n,e&&e.preventDefault&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=n,e&&e.stopPropagation&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=n,e&&e.stopImmediatePropagation&&e.stopImmediatePropagation(),this.stopPropagation()}},x.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(e,r){x.event.special[e]={delegateType:r,bindType:r,handle:function(e){var t,n=e.relatedTarget,a=e.handleObj;return n&&(n===this||x.contains(this,n))||(e.type=a.origType,t=a.handler.apply(this,arguments),e.type=r),t}}}),m.focusinBubbles||x.each({focus:"focusin",blur:"focusout"},function(n,a){function r(e){x.event.simulate(a,e.target,x.event.fix(e),!0)}x.event.special[a]={setup:function(){var e=this.ownerDocument||this,t=b.access(e,a);t||e.addEventListener(n,r,!0),b.access(e,a,(t||0)+1)},teardown:function(){var e=this.ownerDocument||this,t=b.access(e,a)-1;t?b.access(e,a,t):(e.removeEventListener(n,r,!0),b.remove(e,a))}}}),x.fn.extend({on:function(e,t,n,a,r){var i,o;if("object"==typeof e){for(o in"string"!=typeof t&&(n=n||t,t=void 0),e)this.on(o,t,n,e[o],r);return this}if(null==n&&null==a?(a=t,n=t=void 0):null==a&&("string"==typeof t?(a=n,n=void 0):(a=n,n=t,t=void 0)),!1===a)a=s;else if(!a)return this;return 1===r&&(i=a,(a=function(e){return x().off(e),i.apply(this,arguments)}).guid=i.guid||(i.guid=x.guid++)),this.each(function(){x.event.add(this,e,a,n,t)})},one:function(e,t,n,a){return this.on(e,t,n,a,1)},off:function(e,t,n){var a,r;if(e&&e.preventDefault&&e.handleObj)a=e.handleObj,x(e.delegateTarget).off(a.namespace?a.origType+"."+a.namespace:a.origType,a.selector,a.handler);else{if("object"!=typeof e)return!1!==t&&"function"!=typeof t||(n=t,t=void 0),!1===n&&(n=s),this.each(function(){x.event.remove(this,e,n,t)});for(r in e)this.off(r,t,e[r])}return this},trigger:function(e,t){return this.each(function(){x.event.trigger(e,t,this)})},triggerHandler:function(e,t){var n=this[0];return n?x.event.trigger(e,t,n,!0):void 0}}),/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi),Pe=/<([\w:]+)/,Me=/<|&#?\w+;/,Oe=/<(?:script|style|link)/i,qe=/checked\s*(?:[^=]|=\s*.checked.)/i,De=/^$|\/(?:java|ecma)script/i,Ie=/^true\/(.*)/,je=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,k={option:[1,"<select multiple='multiple'>","</select>"],thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};k.optgroup=k.option,k.tbody=k.tfoot=k.colgroup=k.caption=k.thead,k.th=k.td,x.extend({clone:function(e,t,n){var a,r,i,o,s,l,c,u=e.cloneNode(!0),d=x.contains(e.ownerDocument,e);if(!(m.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||x.isXMLDoc(e)))for(o=g(u),a=0,r=(i=g(e)).length;a<r;a++)s=i[a],l=o[a],c=void 0,"input"===(c=l.nodeName.toLowerCase())&&Se.test(s.type)?l.checked=s.checked:"input"!==c&&"textarea"!==c||(l.defaultValue=s.defaultValue);if(t)if(n)for(i=i||g(e),o=o||g(u),a=0,r=i.length;a<r;a++)W(i[a],o[a]);else W(e,u);return 0<(o=g(u,"script")).length&&G(o,!d&&g(e,"script")),u},buildFragment:function(e,t,n,a){for(var r,i,o,s,l,c=t.createDocumentFragment(),u=[],d=0,h=e.length;d<h;d++)if((r=e[d])||0===r)if("object"===x.type(r))x.merge(u,r.nodeType?[r]:r);else if(Me.test(r)){for(i=i||c.appendChild(t.createElement("div")),o=(Pe.exec(r)||["",""])[1].toLowerCase(),i.innerHTML=(o=k[o]||k._default)[1]+r.replace(Ne,"<$1></$2>")+o[2],l=o[0];l--;)i=i.lastChild;x.merge(u,i.childNodes),(i=c.firstChild).textContent=""}else u.push(t.createTextNode(r));for(c.textContent="",d=0;r=u[d++];)if((!a||-1===x.inArray(r,a))&&(s=x.contains(r.ownerDocument,r),i=g(c.appendChild(r),"script"),s&&G(i),n))for(l=0;r=i[l++];)De.test(r.type||"")&&n.push(r);return c},cleanData:function(e){for(var t,n,a,r,i=x.event.special,o=0;void 0!==(n=e[o]);o++){if(x.acceptData(n)&&(r=n[b.expando])&&(t=b.cache[r])){if(t.events)for(a in t.events)i[a]?x.event.remove(n,a):x.removeEvent(n,a,t.handle);b.cache[r]&&delete b.cache[r]}delete p.cache[n[p.expando]]}}}),x.fn.extend({text:function(e){return h(this,function(e){return void 0===e?x.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)})},null,e,arguments.length)},append:function(){return this.domManip(arguments,function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||H(this,e).appendChild(e)})},prepend:function(){return this.domManip(arguments,function(e){var t;1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(t=H(this,e)).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,a=e?x.filter(e,this):this,r=0;null!=(n=a[r]);r++)t||1!==n.nodeType||x.cleanData(g(n)),n.parentNode&&(t&&x.contains(n.ownerDocument,n)&&G(g(n,"script")),n.parentNode.removeChild(n));return this},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(x.cleanData(g(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map(function(){return x.clone(this,e,t)})},html:function(e){return h(this,function(e){var t=this[0]||{},n=0,a=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!Oe.test(e)&&!k[(Pe.exec(e)||["",""])[1].toLowerCase()]){e=e.replace(Ne,"<$1></$2>");try{for(;n<a;n++)1===(t=this[n]||{}).nodeType&&(x.cleanData(g(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var t=arguments[0];return this.domManip(arguments,function(e){t=this.parentNode,x.cleanData(g(this)),t&&t.replaceChild(e,this)}),t&&(t.length||t.nodeType)?this:this.remove()},detach:function(e){return this.remove(e,!0)},domManip:function(n,a){n=ce.apply([],n);var e,t,r,i,o,s,l=0,c=this.length,u=this,d=c-1,h=n[0],p=x.isFunction(h);if(p||1<c&&"string"==typeof h&&!m.checkClone&&qe.test(h))return this.each(function(e){var t=u.eq(e);p&&(n[0]=h.call(this,e,t.html())),t.domManip(n,a)});if(c&&(t=(e=x.buildFragment(n,this[0].ownerDocument,!1,this)).firstChild,1===e.childNodes.length&&(e=t),t)){for(i=(r=x.map(g(e,"script"),z)).length;l<c;l++)o=e,l!==d&&(o=x.clone(o,!0,!0),i)&&x.merge(r,g(o,"script")),a.call(this[l],o,l);if(i)for(s=r[r.length-1].ownerDocument,x.map(r,B),l=0;l<i;l++)o=r[l],De.test(o.type||"")&&!b.access(o,"globalEval")&&x.contains(s,o)&&(o.src?x._evalUrl&&x._evalUrl(o.src):x.globalEval(o.textContent.replace(je,"")))}return this}}),x.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,o){x.fn[e]=function(e){for(var t,n=[],a=x(e),r=a.length-1,i=0;i<=r;i++)t=i===r?this:this.clone(!0),x(a[i])[o](t),ue.apply(n,t.get());return this.pushStack(n)}});function Re(e){return e.ownerDocument.defaultView.getComputedStyle(e,null)}var Fe,Ue,He,$,S,T,ze={},Be=/^margin/,Ge=new RegExp("^("+a+")(?!px)[a-z%]+$","i");function We(){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",T.innerHTML="",$.appendChild(S);var e=f.getComputedStyle(T,null);Ue="1%"!==e.top,He="4px"===e.width,$.removeChild(S)}$=y.documentElement,S=y.createElement("div"),(T=y.createElement("div")).style&&(T.style.backgroundClip="content-box",T.cloneNode(!0).style.backgroundClip="",m.clearCloneStyle="content-box"===T.style.backgroundClip,S.style.cssText="border:0;width:0;height:0;top:0;left:-9999px;margin-top:1px;position:absolute",S.appendChild(T),f.getComputedStyle)&&x.extend(m,{pixelPosition:function(){return We(),Ue},boxSizingReliable:function(){return null==He&&We(),He},reliableMarginRight:function(){var e=T.appendChild(y.createElement("div"));return e.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",e.style.marginRight=e.style.width="0",T.style.width="1px",$.appendChild(S),e=!parseFloat(f.getComputedStyle(e,null).marginRight),$.removeChild(S),e}}),x.swap=function(e,t,n,a){var r,i={};for(r in t)i[r]=e.style[r],e.style[r]=t[r];for(r in n=n.apply(e,a||[]),t)e.style[r]=i[r];return n};var Ve=/^(none|table(?!-c[ea]).+)/,Qe=new RegExp("^("+a+")(.*)$","i"),Ye=new RegExp("^([+-])=("+a+")","i"),Xe={position:"absolute",visibility:"hidden",display:"block"},Ke={letterSpacing:"0",fontWeight:"400"},Je=["Webkit","O","Moz","ms"];x.extend({cssHooks:{opacity:{get:function(e,t){if(t)return""===(t=l(e,"opacity"))?"1":t}}},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:"cssFloat"},style:function(e,t,n,a){var r,i,o,s,l;if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style)return s=x.camelCase(t),l=e.style,t=x.cssProps[s]||(x.cssProps[s]=X(l,s)),o=x.cssHooks[t]||x.cssHooks[s],void 0===n?o&&"get"in o&&void 0!==(r=o.get(e,!1,a))?r:l[t]:("string"===(i=typeof n)&&(r=Ye.exec(n))&&(n=(r[1]+1)*r[2]+parseFloat(x.css(e,t)),i="number"),void(null!=n&&n==n&&("number"!==i||x.cssNumber[s]||(n+="px"),m.clearCloneStyle||""!==n||0!==t.indexOf("background")||(l[t]="inherit"),o&&"set"in o&&void 0===(n=o.set(e,n,a))||(l[t]=n))))},css:function(e,t,n,a){var r,i=x.camelCase(t);return t=x.cssProps[i]||(x.cssProps[i]=X(e.style,i)),"normal"===(r=void 0===(r=(i=x.cssHooks[t]||x.cssHooks[i])&&"get"in i?i.get(e,!0,n):r)?l(e,t,a):r)&&t in Ke&&(r=Ke[t]),(""===n||n)&&(i=parseFloat(r),!0===n||x.isNumeric(i))?i||0:r}}),x.each(["height","width"],function(e,r){x.cssHooks[r]={get:function(e,t,n){return t?Ve.test(x.css(e,"display"))&&0===e.offsetWidth?x.swap(e,Xe,function(){return Z(e,r,n)}):Z(e,r,n):void 0},set:function(e,t,n){var a=n&&Re(e);return K(0,t,n?J(e,r,n,"border-box"===x.css(e,"boxSizing",!1,a),a):0)}}}),x.cssHooks.marginRight=Y(m.reliableMarginRight,function(e,t){return t?x.swap(e,{display:"inline-block"},l,[e,"marginRight"]):void 0}),x.each({margin:"",padding:"",border:"Width"},function(r,i){x.cssHooks[r+i]={expand:function(e){for(var t=0,n={},a="string"==typeof e?e.split(" "):[e];t<4;t++)n[r+w[t]+i]=a[t]||a[t-2]||a[0];return n}},Be.test(r)||(x.cssHooks[r+i].set=K)}),x.fn.extend({css:function(e,t){return h(this,function(e,t,n){var a,r,i={},o=0;if(x.isArray(t)){for(a=Re(e),r=t.length;o<r;o++)i[t[o]]=x.css(e,t[o],!1,a);return i}return void 0!==n?x.style(e,t,n):x.css(e,t)},e,t,1<arguments.length)},show:function(){return ee(this,!0)},hide:function(){return ee(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){v(this)?x(this).show():x(this).hide()})}}),((x.Tween=i).prototype={constructor:i,init:function(e,t,n,a,r,i){this.elem=e,this.prop=n,this.easing=r||"swing",this.options=t,this.start=this.now=this.cur(),this.end=a,this.unit=i||(x.cssNumber[n]?"":"px")},cur:function(){var e=i.propHooks[this.prop];return(e&&e.get?e:i.propHooks._default).get(this)},run:function(e){var t=i.propHooks[this.prop];return this.pos=e=this.options.duration?x.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):e,this.now=(this.end-this.start)*e+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),(t&&t.set?t:i.propHooks._default).set(this),this}}).init.prototype=i.prototype,(i.propHooks={_default:{get:function(e){var t;return null==e.elem[e.prop]||e.elem.style&&null!=e.elem.style[e.prop]?(t=x.css(e.elem,e.prop,""))&&"auto"!==t?t:0:e.elem[e.prop]},set:function(e){x.fx.step[e.prop]?x.fx.step[e.prop](e):e.elem.style&&(null!=e.elem.style[x.cssProps[e.prop]]||x.cssHooks[e.prop])?x.style(e.elem,e.prop,e.now+e.unit):e.elem[e.prop]=e.now}}}).scrollTop=i.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},x.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2}},x.fx=i.prototype.init,x.fx.step={};var A,Ze,_,L,et=/^(?:toggle|show|hide)$/,tt=new RegExp("^(?:([+-])=|)("+a+")([a-z%]*)$","i"),nt=/queueHooks$/,at=[function(t,e,n){var a,r,i,o,s,l,c,u=this,d={},h=t.style,p=t.nodeType&&v(t),f=b.get(t,"fxshow");for(a in n.queue||(null==(s=x._queueHooks(t,"fx")).unqueued&&(s.unqueued=0,l=s.empty.fire,s.empty.fire=function(){s.unqueued||l()}),s.unqueued++,u.always(function(){u.always(function(){s.unqueued--,x.queue(t,"fx").length||s.empty.fire()})})),1===t.nodeType&&("height"in e||"width"in e)&&(n.overflow=[h.overflow,h.overflowX,h.overflowY],"inline"===("none"===(c=x.css(t,"display"))?b.get(t,"olddisplay")||Q(t.nodeName):c))&&"none"===x.css(t,"float")&&(h.display="inline-block"),n.overflow&&(h.overflow="hidden",u.always(function(){h.overflow=n.overflow[0],h.overflowX=n.overflow[1],h.overflowY=n.overflow[2]})),e)if(r=e[a],et.exec(r)){if(delete e[a],i=i||"toggle"===r,r===(p?"hide":"show")){if("show"!==r||!f||void 0===f[a])continue;p=!0}d[a]=f&&f[a]||x.style(t,a)}else c=void 0;if(x.isEmptyObject(d))"inline"===("none"===c?Q(t.nodeName):c)&&(h.display=c);else for(a in f?"hidden"in f&&(p=f.hidden):f=b.access(t,"fxshow",{}),i&&(f.hidden=!p),p?x(t).show():u.done(function(){x(t).hide()}),u.done(function(){for(var e in b.remove(t,"fxshow"),d)x.style(t,e,d[e])}),d)o=ne(p?f[a]:0,a,u),a in f||(f[a]=o.start,p&&(o.end=o.start,o.start="width"===a||"height"===a?1:0))}],N={"*":[function(e,t){var n=this.createTween(e,t),a=n.cur(),t=tt.exec(t),r=t&&t[3]||(x.cssNumber[e]?"":"px"),i=(x.cssNumber[e]||"px"!==r&&+a)&&tt.exec(x.css(n.elem,e)),o=1,s=20;if(i&&i[3]!==r)for(r=r||i[3],t=t||[],i=+a||1;x.style(n.elem,e,(i/=o=o||".5")+r),o!==(o=n.cur()/a)&&1!==o&&--s;);return t&&(i=n.start=+i||+a||0,n.unit=r,n.end=t[1]?i+(t[1]+1)*t[2]:+t[2]),n}]};x.Animation=x.extend(ae,{tweener:function(e,t){for(var n,a=0,r=(e=x.isFunction(e)?(t=e,["*"]):e.split(" ")).length;a<r;a++)n=e[a],N[n]=N[n]||[],N[n].unshift(t)},prefilter:function(e,t){t?at.unshift(e):at.push(e)}}),x.speed=function(e,t,n){var a=e&&"object"==typeof e?x.extend({},e):{complete:n||!n&&t||x.isFunction(e)&&e,duration:e,easing:n&&t||t&&!x.isFunction(t)&&t};return a.duration=x.fx.off?0:"number"==typeof a.duration?a.duration:a.duration in x.fx.speeds?x.fx.speeds[a.duration]:x.fx.speeds._default,null!=a.queue&&!0!==a.queue||(a.queue="fx"),a.old=a.complete,a.complete=function(){x.isFunction(a.old)&&a.old.call(this),a.queue&&x.dequeue(this,a.queue)},a},x.fn.extend({fadeTo:function(e,t,n,a){return this.filter(v).css("opacity",0).show().end().animate({opacity:t},e,n,a)},animate:function(t,e,n,a){function r(){var e=ae(this,x.extend({},t),o);(i||b.get(this,"finish"))&&e.stop(!0)}var i=x.isEmptyObject(t),o=x.speed(e,n,a);return r.finish=r,i||!1===o.queue?this.each(r):this.queue(o.queue,r)},stop:function(r,e,i){function o(e){var t=e.stop;delete e.stop,t(i)}return"string"!=typeof r&&(i=e,e=r,r=void 0),e&&!1!==r&&this.queue(r||"fx",[]),this.each(function(){var e=!0,t=null!=r&&r+"queueHooks",n=x.timers,a=b.get(this);if(t)a[t]&&a[t].stop&&o(a[t]);else for(t in a)a[t]&&a[t].stop&&nt.test(t)&&o(a[t]);for(t=n.length;t--;)n[t].elem!==this||null!=r&&n[t].queue!==r||(n[t].anim.stop(i),e=!1,n.splice(t,1));!e&&i||x.dequeue(this,r)})},finish:function(o){return!1!==o&&(o=o||"fx"),this.each(function(){var e,t=b.get(this),n=t[o+"queue"],a=t[o+"queueHooks"],r=x.timers,i=n?n.length:0;for(t.finish=!0,x.queue(this,o,[]),a&&a.stop&&a.stop.call(this,!0),e=r.length;e--;)r[e].elem===this&&r[e].queue===o&&(r[e].anim.stop(!0),r.splice(e,1));for(e=0;e<i;e++)n[e]&&n[e].finish&&n[e].finish.call(this);delete t.finish})}}),x.each(["toggle","show","hide"],function(e,a){var r=x.fn[a];x.fn[a]=function(e,t,n){return null==e||"boolean"==typeof e?r.apply(this,arguments):this.animate(o(a,!0),e,t,n)}}),x.each({slideDown:o("show"),slideUp:o("hide"),slideToggle:o("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,a){x.fn[e]=function(e,t,n){return this.animate(a,e,t,n)}}),x.timers=[],x.fx.tick=function(){var e,t=0,n=x.timers;for(A=x.now();t<n.length;t++)(e=n[t])()||n[t]!==e||n.splice(t--,1);n.length||x.fx.stop(),A=void 0},x.fx.timer=function(e){x.timers.push(e),e()?x.fx.start():x.timers.pop()},x.fx.interval=13,x.fx.start=function(){Ze=Ze||setInterval(x.fx.tick,x.fx.interval)},x.fx.stop=function(){clearInterval(Ze),Ze=null},x.fx.speeds={slow:600,fast:200,_default:400},x.fn.delay=function(a,e){return a=x.fx&&x.fx.speeds[a]||a,this.queue(e=e||"fx",function(e,t){var n=setTimeout(e,a);t.stop=function(){clearTimeout(n)}})},_=y.createElement("input"),L=y.createElement("select"),a=L.appendChild(y.createElement("option")),_.type="checkbox",m.checkOn=""!==_.value,m.optSelected=a.selected,L.disabled=!0,m.optDisabled=!a.disabled,(_=y.createElement("input")).value="t",_.type="radio",m.radioValue="t"===_.value;var rt,P=x.expr.attrHandle,it=(x.fn.extend({attr:function(e,t){return h(this,x.attr,e,t,1<arguments.length)},removeAttr:function(e){return this.each(function(){x.removeAttr(this,e)})}}),x.extend({attr:function(e,t,n){var a,r,i=e.nodeType;if(e&&3!==i&&8!==i&&2!==i)return typeof e.getAttribute==E?x.prop(e,t,n):(1===i&&x.isXMLDoc(e)||(t=t.toLowerCase(),a=x.attrHooks[t]||(x.expr.match.bool.test(t)?rt:void 0)),void 0===n?!(a&&"get"in a&&null!==(r=a.get(e,t)))&&null==(r=x.find.attr(e,t))?void 0:r:null!==n?a&&"set"in a&&void 0!==(r=a.set(e,n,t))?r:(e.setAttribute(t,n+""),n):void x.removeAttr(e,t))},removeAttr:function(e,t){var n,a,r=0,i=t&&t.match(C);if(i&&1===e.nodeType)for(;n=i[r++];)a=x.propFix[n]||n,x.expr.match.bool.test(n)&&(e[a]=!1),e.removeAttribute(n)},attrHooks:{type:{set:function(e,t){var n;if(!m.radioValue&&"radio"===t&&x.nodeName(e,"input"))return n=e.value,e.setAttribute("type",t),n&&(e.value=n),t}}}}),rt={set:function(e,t,n){return!1===t?x.removeAttr(e,n):e.setAttribute(n,n),n}},x.each(x.expr.match.bool.source.match(/\w+/g),function(e,t){var i=P[t]||x.find.attr;P[t]=function(e,t,n){var a,r;return n||(r=P[t],P[t]=a,a=null!=i(e,t,n)?t.toLowerCase():null,P[t]=r),a}}),/^(?:input|select|textarea|button)$/i),ot=(x.fn.extend({prop:function(e,t){return h(this,x.prop,e,t,1<arguments.length)},removeProp:function(e){return this.each(function(){delete this[x.propFix[e]||e]})}}),x.extend({propFix:{for:"htmlFor",class:"className"},prop:function(e,t,n){var a,r,i=e.nodeType;if(e&&3!==i&&8!==i&&2!==i)return(1!==i||!x.isXMLDoc(e))&&(t=x.propFix[t]||t,r=x.propHooks[t]),void 0!==n?r&&"set"in r&&void 0!==(a=r.set(e,n,t))?a:e[t]=n:r&&"get"in r&&null!==(a=r.get(e,t))?a:e[t]},propHooks:{tabIndex:{get:function(e){return e.hasAttribute("tabindex")||it.test(e.nodeName)||e.href?e.tabIndex:-1}}}}),m.optSelected||(x.propHooks.selected={get:function(e){e=e.parentNode;return e&&e.parentNode&&e.parentNode.selectedIndex,null}}),x.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){x.propFix[this.toLowerCase()]=this}),/[\t\r\n\f]/g),st=(x.fn.extend({addClass:function(t){var e,n,a,r,i,o,s="string"==typeof t&&t,l=0,c=this.length;if(x.isFunction(t))return this.each(function(e){x(this).addClass(t.call(this,e,this.className))});if(s)for(e=(t||"").match(C)||[];l<c;l++)if(a=1===(n=this[l]).nodeType&&(n.className?(" "+n.className+" ").replace(ot," "):" ")){for(i=0;r=e[i++];)a.indexOf(" "+r+" ")<0&&(a+=r+" ");o=x.trim(a),n.className!==o&&(n.className=o)}return this},removeClass:function(t){var e,n,a,r,i,o,s=0===arguments.length||"string"==typeof t&&t,l=0,c=this.length;if(x.isFunction(t))return this.each(function(e){x(this).removeClass(t.call(this,e,this.className))});if(s)for(e=(t||"").match(C)||[];l<c;l++)if(a=1===(n=this[l]).nodeType&&(n.className?(" "+n.className+" ").replace(ot," "):"")){for(i=0;r=e[i++];)for(;0<=a.indexOf(" "+r+" ");)a=a.replace(" "+r+" "," ");o=t?x.trim(a):"",n.className!==o&&(n.className=o)}return this},toggleClass:function(r,t){var i=typeof r;return"boolean"==typeof t&&"string"==i?t?this.addClass(r):this.removeClass(r):this.each(x.isFunction(r)?function(e){x(this).toggleClass(r.call(this,e,this.className,t),t)}:function(){if("string"==i)for(var e,t=0,n=x(this),a=r.match(C)||[];e=a[t++];)n.hasClass(e)?n.removeClass(e):n.addClass(e);else i!=E&&"boolean"!=i||(this.className&&b.set(this,"__className__",this.className),this.className=!this.className&&!1!==r&&b.get(this,"__className__")||"")})},hasClass:function(e){for(var t=" "+e+" ",n=0,a=this.length;n<a;n++)if(1===this[n].nodeType&&0<=(" "+this[n].className+" ").replace(ot," ").indexOf(t))return!0;return!1}}),/\r/g),lt=(x.fn.extend({val:function(t){var n,e,a,r=this[0];return arguments.length?(a=x.isFunction(t),this.each(function(e){1===this.nodeType&&(null==(e=a?t.call(this,e,x(this).val()):t)?e="":"number"==typeof e?e+="":x.isArray(e)&&(e=x.map(e,function(e){return null==e?"":e+""})),(n=x.valHooks[this.type]||x.valHooks[this.nodeName.toLowerCase()])&&"set"in n&&void 0!==n.set(this,e,"value")||(this.value=e))})):r?(n=x.valHooks[r.type]||x.valHooks[r.nodeName.toLowerCase()])&&"get"in n&&void 0!==(e=n.get(r,"value"))?e:"string"==typeof(e=r.value)?e.replace(st,""):null==e?"":e:void 0}}),x.extend({valHooks:{option:{get:function(e){var t=x.find.attr(e,"value");return null!=t?t:x.trim(x.text(e))}},select:{get:function(e){for(var t,n=e.options,a=e.selectedIndex,r="select-one"===e.type||a<0,i=r?null:[],o=r?a+1:n.length,s=a<0?o:r?a:0;s<o;s++)if(!(!(t=n[s]).selected&&s!==a||(m.optDisabled?t.disabled:null!==t.getAttribute("disabled"))||t.parentNode.disabled&&x.nodeName(t.parentNode,"optgroup"))){if(t=x(t).val(),r)return t;i.push(t)}return i},set:function(e,t){for(var n,a,r=e.options,i=x.makeArray(t),o=r.length;o--;)((a=r[o]).selected=0<=x.inArray(a.value,i))&&(n=!0);return n||(e.selectedIndex=-1),i}}}}),x.each(["radio","checkbox"],function(){x.valHooks[this]={set:function(e,t){return x.isArray(t)?e.checked=0<=x.inArray(x(e).val(),t):void 0}},m.checkOn||(x.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})}),x.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,n){x.fn[n]=function(e,t){return 0<arguments.length?this.on(n,null,e,t):this.trigger(n)}}),x.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,a){return this.on(t,e,n,a)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)}}),x.now()),ct=/\?/;x.parseJSON=function(e){return JSON.parse(e+"")},x.parseXML=function(e){var t;if(!e||"string"!=typeof e)return null;try{t=(new DOMParser).parseFromString(e,"text/xml")}catch(e){t=void 0}return t&&!t.getElementsByTagName("parsererror").length||x.error("Invalid XML: "+e),t};var M,O,ut=/#.*$/,dt=/([?&])_=[^&]*/,ht=/^(.*?):[ \t]*([^\r\n]*)$/gm,pt=/^(?:GET|HEAD)$/,ft=/^\/\//,gt=/^([\w.+-]+:)(?:\/\/(?:[^\/?#]*@|)([^\/?#:]*)(?::(\d+)|)|)/,mt={},yt={},vt="*/".concat("*");try{O=location.href}catch(e){(O=y.createElement("a")).href="",O=O.href}M=gt.exec(O.toLowerCase())||[],x.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:O,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(M[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":vt,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":x.parseJSON,"text xml":x.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?oe(oe(e,x.ajaxSettings),t):oe(x.ajaxSettings,e)},ajaxPrefilter:re(mt),ajaxTransport:re(yt),ajax:function(e,t){function n(e,t,n,a){var r,i,o,s=t;2!==b&&(b=2,d&&clearTimeout(d),l=void 0,u=a||"",w.readyState=0<e?4:0,a=200<=e&&e<300||304===e,n&&(o=((e,t,n)=>{for(var a,r,i,o,s=e.contents,l=e.dataTypes;"*"===l[0];)l.shift(),void 0===a&&(a=e.mimeType||t.getResponseHeader("Content-Type"));if(a)for(r in s)if(s[r]&&s[r].test(a)){l.unshift(r);break}if(l[0]in n)i=l[0];else{for(r in n){if(!l[0]||e.converters[r+" "+l[0]]){i=r;break}o=o||r}i=i||o}return i?(i!==l[0]&&l.unshift(i),n[i]):void 0})(p,w,n)),o=((e,t,n,a)=>{var r,i,o,s,l,c={},u=e.dataTypes.slice();if(u[1])for(o in e.converters)c[o.toLowerCase()]=e.converters[o];for(i=u.shift();i;)if(e.responseFields[i]&&(n[e.responseFields[i]]=t),!l&&a&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),l=i,i=u.shift())if("*"===i)i=l;else if("*"!==l&&l!==i){if(!(o=c[l+" "+i]||c["* "+i]))for(r in c)if(s=r.split(" "),s[1]===i&&(o=c[l+" "+s[0]]||c["* "+s[0]])){!0===o?o=c[r]:!0!==c[r]&&(i=s[0],u.unshift(s[1]));break}if(!0!==o)if(o&&e.throws)t=o(t);else try{t=o(t)}catch(e){return{state:"parsererror",error:o?e:"No conversion from "+l+" to "+i}}}return{state:"success",data:t}})(p,o,w,a),a?(p.ifModified&&((n=w.getResponseHeader("Last-Modified"))&&(x.lastModified[c]=n),n=w.getResponseHeader("etag"))&&(x.etag[c]=n),204===e||"HEAD"===p.type?s="nocontent":304===e?s="notmodified":(s=o.state,r=o.data,a=!(i=o.error))):(i=s,(e||!s)&&(s="error",e<0)&&(e=0)),w.status=e,w.statusText=(t||s)+"",a?m.resolveWith(f,[r,s,w]):m.rejectWith(f,[w,s,i]),w.statusCode(v),v=void 0,h&&g.trigger(a?"ajaxSuccess":"ajaxError",[w,p,a?r:i]),y.fireWith(f,[w,s]),h)&&(g.trigger("ajaxComplete",[w,p]),--x.active||x.event.trigger("ajaxStop"))}"object"==typeof e&&(t=e,e=void 0);var l,c,u,a,d,h,r,p=x.ajaxSetup({},t=t||{}),f=p.context||p,g=p.context&&(f.nodeType||f.jquery)?x(f):x.event,m=x.Deferred(),y=x.Callbacks("once memory"),v=p.statusCode||{},i={},o={},b=0,s="canceled",w={readyState:0,getResponseHeader:function(e){var t;if(2===b){if(!a)for(a={};t=ht.exec(u);)a[t[1].toLowerCase()]=t[2];t=a[e.toLowerCase()]}return null==t?null:t},getAllResponseHeaders:function(){return 2===b?u:null},setRequestHeader:function(e,t){var n=e.toLowerCase();return b||(e=o[n]=o[n]||e,i[e]=t),this},overrideMimeType:function(e){return b||(p.mimeType=e),this},statusCode:function(e){if(e)if(b<2)for(var t in e)v[t]=[v[t],e[t]];else w.always(e[w.status]);return this},abort:function(e){e=e||s;return l&&l.abort(e),n(0,e),this}};if(m.promise(w).complete=y.add,w.success=w.done,w.error=w.fail,p.url=((e||p.url||O)+"").replace(ut,"").replace(ft,M[1]+"//"),p.type=t.method||t.type||p.method||p.type,p.dataTypes=x.trim(p.dataType||"*").toLowerCase().match(C)||[""],null==p.crossDomain&&(e=gt.exec(p.url.toLowerCase()),p.crossDomain=!(!e||e[1]===M[1]&&e[2]===M[2]&&(e[3]||("http:"===e[1]?"80":"443"))===(M[3]||("http:"===M[1]?"80":"443")))),p.data&&p.processData&&"string"!=typeof p.data&&(p.data=x.param(p.data,p.traditional)),ie(mt,p,t,w),2!==b){for(r in(h=p.global)&&0==x.active++&&x.event.trigger("ajaxStart"),p.type=p.type.toUpperCase(),p.hasContent=!pt.test(p.type),c=p.url,p.hasContent||(p.data&&(c=p.url+=(ct.test(c)?"&":"?")+p.data,delete p.data),!1===p.cache&&(p.url=dt.test(c)?c.replace(dt,"$1_="+lt++):c+(ct.test(c)?"&":"?")+"_="+lt++)),p.ifModified&&(x.lastModified[c]&&w.setRequestHeader("If-Modified-Since",x.lastModified[c]),x.etag[c])&&w.setRequestHeader("If-None-Match",x.etag[c]),(p.data&&p.hasContent&&!1!==p.contentType||t.contentType)&&w.setRequestHeader("Content-Type",p.contentType),w.setRequestHeader("Accept",p.dataTypes[0]&&p.accepts[p.dataTypes[0]]?p.accepts[p.dataTypes[0]]+("*"!==p.dataTypes[0]?", "+vt+"; q=0.01":""):p.accepts["*"]),p.headers)w.setRequestHeader(r,p.headers[r]);if(p.beforeSend&&(!1===p.beforeSend.call(f,w,p)||2===b))return w.abort();for(r in s="abort",{success:1,error:1,complete:1})w[r](p[r]);if(l=ie(yt,p,t,w)){w.readyState=1,h&&g.trigger("ajaxSend",[w,p]),p.async&&0<p.timeout&&(d=setTimeout(function(){w.abort("timeout")},p.timeout));try{b=1,l.send(i,n)}catch(e){if(!(b<2))throw e;n(-1,e)}}else n(-1,"No Transport")}return w},getJSON:function(e,t,n){return x.get(e,t,n,"json")},getScript:function(e,t){return x.get(e,void 0,t,"script")}}),x.each(["get","post"],function(e,r){x[r]=function(e,t,n,a){return x.isFunction(t)&&(a=a||n,n=t,t=void 0),x.ajax({url:e,type:r,dataType:a,data:t,success:n})}}),x.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){x.fn[t]=function(e){return this.on(t,e)}}),x._evalUrl=function(e){return x.ajax({url:e,type:"GET",dataType:"script",async:!1,global:!1,throws:!0})},x.fn.extend({wrapAll:function(t){var e;return x.isFunction(t)?this.each(function(e){x(this).wrapAll(t.call(this,e))}):(this[0]&&(e=x(t,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&e.insertBefore(this[0]),e.map(function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e}).append(this)),this)},wrapInner:function(n){return this.each(x.isFunction(n)?function(e){x(this).wrapInner(n.call(this,e))}:function(){var e=x(this),t=e.contents();t.length?t.wrapAll(n):e.append(n)})},wrap:function(t){var n=x.isFunction(t);return this.each(function(e){x(this).wrapAll(n?t.call(this,e):t)})},unwrap:function(){return this.parent().each(function(){x.nodeName(this,"body")||x(this).replaceWith(this.childNodes)}).end()}}),x.expr.filters.hidden=function(e){return e.offsetWidth<=0&&e.offsetHeight<=0},x.expr.filters.visible=function(e){return!x.expr.filters.hidden(e)};var bt=/%20/g,wt=/\[\]$/,xt=/\r?\n/g,Ct=/^(?:submit|button|image|reset|file)$/i,Et=/^(?:input|select|textarea|keygen)/i,kt=(x.param=function(e,t){function n(e,t){t=x.isFunction(t)?t():null==t?"":t,r[r.length]=encodeURIComponent(e)+"="+encodeURIComponent(t)}var a,r=[];if(void 0===t&&(t=x.ajaxSettings&&x.ajaxSettings.traditional),x.isArray(e)||e.jquery&&!x.isPlainObject(e))x.each(e,function(){n(this.name,this.value)});else for(a in e)!function n(a,e,r,i){if(x.isArray(e))x.each(e,function(e,t){r||wt.test(a)?i(a,t):n(a+"["+("object"==typeof t?e:"")+"]",t,r,i)});else if(r||"object"!==x.type(e))i(a,e);else for(var t in e)n(a+"["+t+"]",e[t],r,i)}(a,e[a],t,n);return r.join("&").replace(bt,"+")},x.fn.extend({serialize:function(){return x.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=x.prop(this,"elements");return e?x.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!x(this).is(":disabled")&&Et.test(this.nodeName)&&!Ct.test(e)&&(this.checked||!Se.test(e))}).map(function(e,t){var n=x(this).val();return null==n?null:x.isArray(n)?x.map(n,function(e){return{name:t.name,value:e.replace(xt,"\r\n")}}):{name:t.name,value:n.replace(xt,"\r\n")}}).get()}}),x.ajaxSettings.xhr=function(){try{return new XMLHttpRequest}catch(e){}},0),$t={},St={0:200,1223:204},q=x.ajaxSettings.xhr(),Tt=(f.ActiveXObject&&x(f).on("unload",function(){for(var e in $t)$t[e]()}),m.cors=!!q&&"withCredentials"in q,m.ajax=q=!!q,x.ajaxTransport(function(i){var o;return m.cors||q&&!i.crossDomain?{send:function(e,t){var n,a=i.xhr(),r=++kt;if(a.open(i.type,i.url,i.async,i.username,i.password),i.xhrFields)for(n in i.xhrFields)a[n]=i.xhrFields[n];for(n in i.mimeType&&a.overrideMimeType&&a.overrideMimeType(i.mimeType),i.crossDomain||e["X-Requested-With"]||(e["X-Requested-With"]="XMLHttpRequest"),e)a.setRequestHeader(n,e[n]);o=function(e){return function(){o&&(delete $t[r],o=a.onload=a.onerror=null,"abort"===e?a.abort():"error"===e?t(a.status,a.statusText):t(St[a.status]||a.status,a.statusText,"string"==typeof a.responseText?{text:a.responseText}:void 0,a.getAllResponseHeaders()))}},a.onload=o(),a.onerror=o("error"),o=$t[r]=o("abort");try{a.send(i.hasContent&&i.data||null)}catch(e){if(o)throw e}},abort:function(){o&&o()}}:void 0}),x.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/(?:java|ecma)script/},converters:{"text script":function(e){return x.globalEval(e),e}}}),x.ajaxPrefilter("script",function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")}),x.ajaxTransport("script",function(n){var a,r;if(n.crossDomain)return{send:function(e,t){a=x("<script>").prop({async:!0,charset:n.scriptCharset,src:n.url}).on("load error",r=function(e){a.remove(),r=null,e&&t("error"===e.type?404:200,e.type)}),y.head.appendChild(a[0])},abort:function(){r&&r()}}}),[]),At=/(=)\?(?=&|$)|\?\?/,_t=(x.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Tt.pop()||x.expando+"_"+lt++;return this[e]=!0,e}}),x.ajaxPrefilter("json jsonp",function(e,t,n){var a,r,i,o=!1!==e.jsonp&&(At.test(e.url)?"url":"string"==typeof e.data&&!(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&At.test(e.data)&&"data");return o||"jsonp"===e.dataTypes[0]?(a=e.jsonpCallback=x.isFunction(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,o?e[o]=e[o].replace(At,"$1"+a):!1!==e.jsonp&&(e.url+=(ct.test(e.url)?"&":"?")+e.jsonp+"="+a),e.converters["script json"]=function(){return i||x.error(a+" was not called"),i[0]},e.dataTypes[0]="json",r=f[a],f[a]=function(){i=arguments},n.always(function(){f[a]=r,e[a]&&(e.jsonpCallback=t.jsonpCallback,Tt.push(a)),i&&x.isFunction(r)&&r(i[0]),i=r=void 0}),"script"):void 0}),x.parseHTML=function(e,t,n){if(!e||"string"!=typeof e)return null;"boolean"==typeof t&&(n=t,t=!1),t=t||y;var a=ye.exec(e),n=!n&&[];return a?[t.createElement(a[1])]:(a=x.buildFragment([e],t,n),n&&n.length&&x(n).remove(),x.merge([],a.childNodes))},x.fn.load),Lt=(x.fn.load=function(e,t,n){var a,r,i,o,s;return"string"!=typeof e&&_t?_t.apply(this,arguments):(o=this,0<=(s=e.indexOf(" "))&&(a=x.trim(e.slice(s)),e=e.slice(0,s)),x.isFunction(t)?(n=t,t=void 0):t&&"object"==typeof t&&(r="POST"),0<o.length&&x.ajax({url:e,type:r,dataType:"html",data:t}).done(function(e){i=arguments,o.html(a?x("<div>").append(x.parseHTML(e)).find(a):e)}).complete(n&&function(e,t){o.each(n,i||[e.responseText,t,e])}),this)},x.expr.filters.animated=function(t){return x.grep(x.timers,function(e){return t===e.elem}).length},f.document.documentElement),Nt=(x.offset={setOffset:function(e,t,n){var a,r,i,o,s=x.css(e,"position"),l=x(e),c={};"static"===s&&(e.style.position="relative"),i=l.offset(),a=x.css(e,"top"),o=x.css(e,"left"),s=("absolute"===s||"fixed"===s)&&-1<(a+o).indexOf("auto")?(r=(s=l.position()).top,s.left):(r=parseFloat(a)||0,parseFloat(o)||0),null!=(t=x.isFunction(t)?t.call(e,n,i):t).top&&(c.top=t.top-i.top+r),null!=t.left&&(c.left=t.left-i.left+s),"using"in t?t.using.call(e,c):l.css(c)}},x.fn.extend({offset:function(t){var e,n,a,r;return arguments.length?void 0===t?this:this.each(function(e){x.offset.setOffset(this,t,e)}):(a={top:0,left:0},(r=(n=this[0])&&n.ownerDocument)?(e=r.documentElement,x.contains(e,n)?(typeof n.getBoundingClientRect!=E&&(a=n.getBoundingClientRect()),n=se(r),{top:a.top+n.pageYOffset-e.clientTop,left:a.left+n.pageXOffset-e.clientLeft}):a):void 0)},position:function(){var e,t,n,a;if(this[0])return n=this[0],a={top:0,left:0},"fixed"===x.css(n,"position")?t=n.getBoundingClientRect():(e=this.offsetParent(),t=this.offset(),(a=x.nodeName(e[0],"html")?a:e.offset()).top+=x.css(e[0],"borderTopWidth",!0),a.left+=x.css(e[0],"borderLeftWidth",!0)),{top:t.top-a.top-x.css(n,"marginTop",!0),left:t.left-a.left-x.css(n,"marginLeft",!0)}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent||Lt;e&&!x.nodeName(e,"html")&&"static"===x.css(e,"position");)e=e.offsetParent;return e||Lt})}}),x.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,r){var i="pageYOffset"===r;x.fn[t]=function(e){return h(this,function(e,t,n){var a=se(e);return void 0===n?a?a[r]:e[t]:void(a?a.scrollTo(i?f.pageXOffset:n,i?n:f.pageYOffset):e[t]=n)},t,e,arguments.length,null)}}),x.each(["top","left"],function(e,n){x.cssHooks[n]=Y(m.pixelPosition,function(e,t){return t?(t=l(e,n),Ge.test(t)?x(e).position()[n]+"px":t):void 0})}),x.each({Height:"height",Width:"width"},function(i,o){x.each({padding:"inner"+i,content:o,"":"outer"+i},function(a,e){x.fn[e]=function(e,t){var n=arguments.length&&(a||"boolean"!=typeof e),r=a||(!0===e||!0===t?"margin":"border");return h(this,function(e,t,n){var a;return x.isWindow(e)?e.document.documentElement["client"+i]:9===e.nodeType?(a=e.documentElement,Math.max(e.body["scroll"+i],a["scroll"+i],e.body["offset"+i],a["offset"+i],a["client"+i])):void 0===n?x.css(e,t,r):x.style(e,t,n,r)},o,n?e:void 0,n,null)}})}),x.fn.size=function(){return this.length},x.fn.andSelf=x.fn.addBack,"function"==typeof define&&define.amd&&define("jquery",[],function(){return x}),f.jQuery),Pt=f.$;return x.noConflict=function(e){return f.$===x&&(f.$=Pt),e&&f.jQuery===x&&(f.jQuery=Nt),x},typeof D==E&&(f.jQuery=f.$=x),x});var _agoraMsgDelay=null;function ShowAlert(e,t,n,a,r,i,o,s){_showAlert(e,t,n,a,r??!0,i,o,s)}function _showAlert(e,t,n,a,r,i,o,s){$("body").addClass("alert_box_loaded");var l=$("div#agoraAlertMessageBox");(null==l||l.length<1)&&(l=$("<div>").attr("id","agoraAlertMessageBox").addClass(n).html('<div class="message-body"><span id="msg" class="msg"></span><div id="btn_ok"></div><div id="btn_close"></div></div>'),$(l).prependTo("body")),$(l).attr("class",""),$(l).addClass(n),$(l).show(),$(l).find("span#msg").html(e),s||$(l).find("div#btn_close").html('<a class="closeBtn right" href="javascript:void(0);" onclick="javascript:CloseAlert();"><i class="fa fa-times-circle"></i></a>'),i&&$(l).find("div#btn_ok").html("<a "+(isNotNullOrZero(o)?'href="'+o+'"':'href="javascript:void(0);" onclick="javascript:CloseAlert();"')+' title="Close" class="mdl-button mdl-button--primary mdl-button--raised mdl-js-button mdl-js-ripple-effect" style="align-content: right;">Ok</a>'),clearTimeout(_agoraMsgDelay),r&&(null==t&&(t=4e3),_agoraMsgDelay=setTimeout(function(){CloseAlert()},t))}function CloseAlert(){$("body").removeClass("alert_box_loaded"),$("div#agoraAlertMessageBox").hide();try{$("body").hasClass("is-busy")&&$("body").removeClass("is-busy")}catch(e){}}function RecallCkeIFrame(){$("img.cke_iframe").each(function(){$(this).replaceWith(unescape($(this).attr("data-cke-realelement")))})}function EnableNearBySearch(e,n,a,r,t){$(e).each(function(){$(this).click(function(){navigator.geolocation?navigator.geolocation.getCurrentPosition(function(e){var t=e.coords.latitude.toString().replace("-","_"),e=e.coords.longitude.toString().replace("-","_");location.href=n+"/rlat-"+t+"/rlon-"+e+"/rad-"+r+a},function(e){0==e.message.indexOf("Only secure origins are allowed")?alert("Your browser does not support this feature"):1==e.code?alert("Permission denied to access geolocation"):(2!=e.code&&e.code,alert("Your geolocation is not available"));location.href=t},{timeout:2e4}):alert("Geolocation functionality not available")})})}function BackToTop(e){e=$(e).closest("[data-back-to-top-container]").offset();null!=e?$("html,body").animate({scrollTop:e.top},700):window.scrollTo(0,0)}function TopToBottom(e){$("html,body").animate({scrollTop:$(window).height()-$("#agora-layout-header").height()},700)}function EnableGoogleEventTracking(){$(document).on("click","[data-ga-track]",null,function(){try{GoogleAnalyticLogEvent($(this).data("ga-track"))}catch(e){}})}function GoogleAnalyticLogEvent(e){if(null!=ga&&"undefined"!=typeof ga){var t=e.split(",");switch(t.length){case 3:ga("send","event",t[0],t[1],t[2]);break;case 2:ga("send","event",t[0],t[1])}}}function EnableStickyHeader(t){function e(){var e=$(window).scrollTop();t<e?r.addClass("scroll"):r.removeClass("scroll").removeClass("scroll-down").removeClass("scroll-up"),e<a&&r.addClass("scroll-up").removeClass("scroll-down"),a<e&&r.addClass("scroll-down").removeClass("scroll-up"),a=e}var n,a,r;null==t&&(t=0),n=$("body"),a=0,r=$(n),$(window).on("scroll",e),e()}function CloseAgoraDropDownOnBodyClick(){$(document).on("reset",".agora-dropdown",null,function(){try{var e=$(this).children("input").get(0);e.checked&&(e.checked=!1)}catch(e){}}),$("body").on("click",function(e){try{var t,n=$(e.target);n.is("input")||0==$(document).find(n).length||(0==(t=n.closest(".agora-dropdown")).length?$(".agora-dropdown"):t.hasClass("actions")&&!n.hasClass("agora-dropdown-handle")&&0<t.children("input:checked").length?t:$(".agora-dropdown").not(t)).trigger("reset")}catch(e){}})}function MdlReloadControlState(e,t,n){null==n&&(n=!1),$this=e,$parent=t;var a=$("#"+$parent.attr("data-search-partner")),r=$("#"+$parent.attr("data-search-value-bind")),o=$("#"+$parent.attr("data-search-view"));switch($parent.attr("data-search")){case"SelectBox":try{$parent.parent().find("[data-search-enable-for]").each(function(){$(this).addClass("mdl-cell--hide"),$(this).find("input:checkbox").each(function(){n||($(this).removeAttr("checked"),0<$(this).closest(".mdl-js-checkbox").length&&$(this).closest(".mdl-js-checkbox")[0].MaterialCheckbox.uncheck())}),$(this).find("select option").each(function(){$(this).removeAttr("selected"),$(this).closest(".mdl-js-selectfield")[0].MaterialSelectfield.mdlDowngrade_()})})}catch(e){console.log(e.message)}$('[data-search-enable-for="'+$parent.val()+'"]').removeClass("mdl-cell--hide"),o.html($parent.attr("data-search-name-label")+" ("+$parent.parent().find('[data-search-enable-for="'+$parent.val()+'"]').find("input[type=checkbox]:checked").length+")");break;case"group":var s=$this.closest("[data-search-group]"),o=$("#"+s.attr("data-search-view")),l=s.find('[data-search="group"] input[type=checkbox]:checked').length,c={};s.find('[data-search="group"] [data-type="dropdown"]').each(function(){var e=$(this);""!=e.val()&&(e.data("default-item"),1)&&e.val()!=e.data("default-item")&&l++}),s.find('[data-search="group"] input[type=text]').each(function(){var e=$(this),t=e.attr("urlidentifier");isNotNullOrZero(e.val())&&void 0===c[t]&&(c[t]=l++)}),s.find('[data-search="group"] input[type=hidden][onesearchidentifier]').each(function(){var e=$(this),t=e.attr("onesearchidentifier");isNotNullOrZero(e.val())&&void 0===c[t]&&(c[t]=l++)}),o.html(s.attr("data-search-name-label")+" ("+l+")");break;case"checkList":try{null!=$parent.attr("data-search-child")&&"true"==$parent.attr("data-search-child")&&0<$parent.parents().find('[data-search-parent="true"]').length?o.html($parent.attr("data-search-name-label")+" ("+$parent.parent().find("input[type=checkbox]:checked").length+")"):o.html($parent.attr("data-search-name-label")+" ("+$parent.find("input[type=checkbox]:checked").length+")")}catch(e){console.log(e.message),o.html($parent.attr("data-search-name-label")+" ("+$parent.find("input[type=checkbox]:checked").length+")")}break;case"singleItem":if(0<$this.length){$parent.children().removeClass("select");try{var u=$parent.attr("data-search-name-label-position"),d=null!=typeof $parent.attr("data-select")&&null!=$parent.attr("data-select")&&""!=$parent.attr("data-select")?$parent.attr("data-select"):"";void 0!==u&&!1!==u&&"left"==u?"label"==d?(o.html($parent.attr("data-search-name-label")+$this.attr("label")),o.attr("data-selected-value",$this.attr("value"))):o.html($parent.attr("data-search-name-label")+$this.attr("value")):"label"==d?(o.html($this.attr("label")+$parent.attr("data-search-name-label")),o.attr("data-selected-value",$this.attr("value"))):o.html($this.attr("value")+$parent.attr("data-search-name-label"));try{var h=$parent.attr("data-search-name-label-showCountOnly");void 0!==h&&0!=h&&o.html($parent.attr("data-search-name-label")+" ("+$this.length+")")}catch(e){console.log(e.message)}try{var p=$parent.attr("data-search-name-label-skip-for").split(",");for(i=0;i<p.length;++i)null!=typeof p[i]&&null!=p[i]&&p[i]==$this.attr("value")&&o.html($this.attr("value"))}catch(e){console.log(e.message)}}catch(e){o.html($this.attr("value")+$parent.attr("data-search-name-label"))}$this.addClass("select"),IsNotNull($this.attr("value"))?r.attr("value",$this.attr("value")):r.attr("value","")}break;case"oneSearch":o.html($this.attr("data-search-name-label")+" ("+$(".multiselect-context .agora-onesearch-multi-sel-item-cont").length+")");break;case"range":a.removeClass("s-d-n"),$parent.addClass("s-d-n"),0<$this.length&&(IsNotNull($this.attr("value"))?r.val($this.attr("value")):r.val("")),0<r.closest(".mdl-js-textfield").length&&r.closest(".mdl-js-textfield").get(0).MaterialTextfield&&r.closest(".mdl-js-textfield").get(0).MaterialTextfield.checkDirty(),o.html(BindRangeView($parent))}}function BindRangeView(o){var e=new getMinMax(o);if(IsNotNull(e.Min)&&IsNotNull(e.Max)&&parseInt(e.Min)>parseInt(e.Max))return alert("Minimum value should not exceed the maximum value"),$("#"+o.attr("data-search-value-bind")).attr("value",""),$("#"+$("#"+o.attr("data-search-partner")).attr("data-search-value-bind")).attr("value",""),o.attr("data-search-name-label");switch($("#"+o.attr("data-search-value-bind")).attr("operation")){case"min":var t=e.Min;if(void 0===(i=$("#"+o.attr("data-search-partner"))).data("is-init")&&(i.data("init-value",i.html()),i.data("is-init",!0)),IsNotNull(t)){i.empty();var n=(l=$("#"+o.attr("data-search-partner")).is("select"))?"option":"li";l&&i.append('<option value=""></option>');for(var a=0;a<5;++a)switch(o.attr("data-search-type")){case"price":var r=((e,t)=>{try{var n=$(t).data("stage"),a=$(t).data("min-value"),r="bed"==o.attr("data-search-type")||"bath"==o.attr("data-search-type")?1:1e6,i="bed"==o.attr("data-search-type")||"bath"==o.attr("data-search-type")?1:1e5;try{isNullOrEmpty(n)||(i=parseInt(n,10)),void 0!==r&&null!=r&&""!=r&&(r=parseInt(a,10))}catch(e){}return"bed"==o.attr("data-search-type")||"bath"==o.attr("data-search-type")?1:parseInt(e)<r?25e3:parseInt(e)<10*r?5e4:i}catch(e){}return 1e5})(t,o),t=h(t,r);t=parseInt(t)+r,i.append("<"+n+' value="'+t+'" tabindex="22"><span>$'+t.toString().replace(/(\d)(?=(\d\d\d)+(?!\d))/g,"$1,")+"</span></"+n+">");break;case"year":t=parseInt(t)+5,i.append("<"+n+' value="'+t+'" tabindex="22"><span>'+t+"</span></"+n+">");break;case"bed":case"bath":t=parseInt(t)+1,i.append("<"+n+' value="'+t+'" tabindex="22"><span>'+t+"</span></"+n+">");break;default:isNotNullOrZero(o.attr("data-default-increment"))&&(t=parseInt(t)+parseInt(o.attr("data-default-increment")),i.append("<"+n+' value="'+t+'" tabindex="22"><span>'+t+"</span></"+n+">"))}i.append("<"+n+' value="0" tabindex="22"><span>Any</span></'+n+">")}else void 0!==i.data("is-init")&&1==i.data("is-init")&&i.html(i.data("init-value"));break;case"max":var i,s=e.Max;if(void 0===(i=$("#"+o.attr("data-search-partner"))).data("is-init")&&(i.data("init-value",i.html()),i.data("is-init",!0)),IsNotNull(s)){i.empty();for(var l,c,n=(l=$("#"+o.attr("data-search-partner")).is("select"))?"option":"li",u=(l&&i.append('<option value=""></option>'),((e,t)=>{try{var n=$(t).data("stage"),a="bed"==o.attr("data-search-type")||"bath"==o.attr("data-search-type")?1:1e5;try{isNullOrEmpty(n)||(a=parseInt(n,10))}catch(e){}return"bed"==o.attr("data-search-type")||"bath"==o.attr("data-search-type")?1:parseInt(e)<1e5?1e4:parseInt(e)<1e6?5e4:a}catch(e){}return 1e5})(s,o)),s=h(s,u),a=0;a<5;++a)switch(o.attr("data-search-type")){case"price":0<(s=parseInt(s)-u)&&i.prepend("<"+n+' value="'+s+'" tabindex="22"><span>$'+s.toString().replace(/(\d)(?=(\d\d\d)+(?!\d))/g,"$1,")+"</span></"+n+">");break;case"year":0<(s=parseInt(s)-5)&&i.append("<"+n+' value="'+s+'" tabindex="22"><span>'+s+"</span></"+n+">");break;case"bed":case"bath":0<(s=parseInt(s)-1)&&i.append("<"+n+' value="'+s+'" tabindex="22"><span>'+s+"</span></"+n+">");break;default:isNotNullOrZero(o.attr("data-default-decrement"))&&(isNullOrEmpty(c)&&(s=e.Max,c="Yes"),0<(s=parseInt(s)-parseInt(o.attr("data-default-decrement"))))&&i.prepend("<"+n+' value="'+s+'" tabindex="22"><span>'+s+"</span></"+n+">")}i.prepend("<"+n+' value="0" tabindex="22"><span>Any</span></'+n+">")}else void 0!==i.data("is-init")&&1==i.data("is-init")&&i.html(i.data("init-value"))}return"price"!==o.attr("data-search-type")?IsNotNull(e.Min)&&IsNotNull(e.Max)?e.Min+"-"+e.Max:IsNotNull(e.Min)&&!IsNotNull(e.Max)?e.Min+"+":!IsNotNull(e.Min)&&IsNotNull(e.Max)?"<"+e.Max:o.attr("data-search-name-label"):IsNotNull(e.Min)&&IsNotNull(e.Max)?d(e.Min)+"-"+d(e.Max):IsNotNull(e.Min)&&!IsNotNull(e.Max)?d(e.Min)+"+":!IsNotNull(e.Min)&&IsNotNull(e.Max)?"<"+d(e.Max):o.attr("data-search-name-label");function d(e){console.log("Formatt : "+e);try{var t=null!=e&&""!=e?e:"0";return t=1e6<=e?"$"+(t/1e6).toFixed(2).replace(/\.?0+$/,"")+"M":1e3<=e?"$"+(t/1e3).toFixed(2).replace(/\.?0+$/,"")+"K":"$"+t.replace(/\.0+$/,"")}catch(e){}return"0"}function h(e,t){try{return(parseInt(e)-parseInt(e)%t).toString()}catch(e){}return e}}function getMinMax(e){var t=0,n=0;switch($("#"+e.attr("data-search-value-bind")).attr("operation")){case"min":t=$("#"+e.attr("data-search-value-bind")).val(),n=$("#"+$("#"+e.attr("data-search-partner")).attr("data-search-value-bind")).val();break;case"max":t=$("#"+$("#"+e.attr("data-search-partner")).attr("data-search-value-bind")).val(),n=$("#"+e.attr("data-search-value-bind")).val()}return{Min:t,Max:n}}function OnClassBehaviorChange(e,t){IsNullorEmpty($(e).attr("oldClassName"))||$(e).attr("oldClassName")==$(e).attr("class")||t(),$(e).attr("oldClassName",$(e).attr("class")),setTimeout(function(){OnClassBehaviorChange(e,t)},100)}function AnimatePlaceholderText(e,t,n){var a=t;0==n&&(a=e.attr("placeholder"),e.attr("placeholder","")),n!=a.length&&setTimeout(function(){e.attr("placeholder",a.substr(0,++n)),AnimatePlaceholderText(e,a,n)},150)}function AddReadMore(e,t,n){var a=e,r=t,i=n;$(".addReadMore").each(function(){var e;$(this).find(".firstSec").length||(e=$(this).text()).length>a&&(e=e.substring(0,a)+"<span class='SecSec'>"+e.substring(a,e.length)+"</span><span class='readMore' title='Click to Show More'>"+r+"</span><span class='readLess' title='Click to Show Less'>"+i+"</span>",$(this).html(e))}),$(document).on("click",".readMore,.readLess",function(){$(this).closest(".addReadMore").toggleClass("showlesscontent showmorecontent")})}function SignUp(e,t,n,a,r,i){e=GetFormXml($("#"+e));null==e||a&&!a(e)||$.ajax({type:"POST",url:(isMultiLingual()?"/"+getLocale():"")+"/services/agoraAccess.ashx?action=SignUp",data:{contact:e},dataType:"json",success:function(e){switch(e.Number){case 100:null!=r&&r(e.Contact)||(!isNullOrEmpty(t)&&isNullOrEmpty(n)?document.location.replace(t):isNullOrEmpty(t)||isNullOrEmpty(n)||"popup"!=n?isNullOrEmpty(t)&&!isNullOrEmpty(n)&&"stay"==n?(UpdateUserArea(e.UserAreaHtml),ClosePopup()):(ClosePopup(),location.replace((isMultiLingual()?"/"+getLocale():"")+"/dashboard/default.aspx?mode=signUp")):(UpdateUserArea(e.UserAreaHtml),$("#PERFORM_ACTION_TRIGGER").attr("href",t),ClosePopup(),OpenPopup()),$("body").removeClass("restricted-listing"));break;case 1:null==i?alert("Unable to connect to Database!"):i(1,"Please enter a valid Password");break;case 2:null==i?alert("Query execution failure!"):i(2,"Query execution failure!");break;case 9:null==i?alert(e.Message):i(11,e.Message);break;case 10:null==i?alert("Invalid Data. Please retry!"):i(10,"Invalid Data. Please retry!");break;case 11:null==i?alert('The email address you entered is already registered. Please sign in to your existing account or click "Forgot Password" for help.'):i(11,'The email address you entered is already registered. Please sign in to your existing account or click "Forgot Password" for help.');break;case 204:ShowAlert("SMS Gateway email addresses, which send email as text messages, are not permitted. Please enter a standard email address.",2e3,"alert_box",null)}},error:function(e){null==i?alert("Unknown Error. Please try later!"):i(99,"Unknown Error. Please try later")},statusCode:{404:function(){alert("Service (agoraAccess) not found!")}}})}function SignIn(e,t,n,a,r,i){e=GetFormXml($("#"+e));null==e||a&&!a(e)||$.ajax({type:"POST",url:(isMultiLingual()?"/"+getLocale():"")+"/services/agoraAccess.ashx?action=SignIn",data:{contact:e},dataType:"json",success:function(e){switch(e.Number){case 100:null!=r&&r(e.Contact),!isNullOrEmpty(t)&&isNullOrEmpty(n)?document.location.replace(t):isNullOrEmpty(t)||isNullOrEmpty(n)||"popup"!=n?isNullOrEmpty(t)&&!isNullOrEmpty(n)&&"stay"==n?(UpdateUserArea(e.UserAreaHtml),ClosePopup()):(ClosePopup(),location.replace((isMultiLingual()?"/"+getLocale():"")+"/dashboard/default.aspx?mode=signIn")):(UpdateUserArea(e.UserAreaHtml),$("#PERFORM_ACTION_TRIGGER").attr("href",t),ClosePopup(),OpenPopup()),$("body").removeClass("restricted-listing");break;case 401:null==i?alert("Invalid email address or password. Please try again!"):i(401,"Invalid email address or password. Please try again!");break;case 302:isNullOrEmpty(e.Url)||(location.href=e.Url);break;case 1:null==i?alert("Unable to connect to Database!"):i(1,"Please enter a valid Password");break;case 2:null==i?alert("Query execution failure!"):i(2,"Query execution failure!");break;case 9:null==i?alert(e.Message):i(11,e.Message);break;case 10:null==i?alert("Invalid email address or password. Please try again!"):i(10,"Invalid email address or password. Please try again!")}},error:function(e){null==i?alert("Unknown Error. Please try later!"):i(99,"Unknown Error. Please try later")},statusCode:{404:function(){alert("Service (agoraAccess) not found!")}}})}function SaveSearch(e,t,n,a,r,i){e=GetFormXml($("#"+e));null==e||a&&!a(e)||$.ajax({type:"POST",url:(isMultiLingual()?"/"+getLocale():"")+"/services/agoraAccess.ashx?action=SaveSearch",data:{demand:e},dataType:"json",success:function(e){switch(e.Number){case 100:null==r?alert("You have successfully saved the search"):r(100,"You have successfully saved the search"),ClosePopup();break;case 1:null==i?alert("Unable to connect to Database!"):i(1,"Please enter a valid Password");break;case 2:null==i?alert("Query execution failure!"):i(2,"Query execution failure!");break;case 9:null==i?alert(e.Message):i(11,e.Message);break;case 10:null==i?alert("Invalid email address or password. Please try again!"):i(10,"Invalid email address or password. Please try again!")}},error:function(e){null==i?alert("Unknown Error. Please try later!"):i(99,"Unknown Error. Please try later")},statusCode:{404:function(){alert("Service (agoraAccess) not found!")}}})}function RequestInfo(e,t,n,a){e=GetFormXml($("#"+e));null==e||t&&!t(e)||$.ajax({type:"POST",url:(isMultiLingual()?"/"+getLocale():"")+"/services/agoraRequestInfo.ashx",data:{WebRequest:e},dataType:"json",success:function(e){switch(e.Number){case 100:null==n?alert("Your request has been submitted successfully"):n(100,"Your request has been submitted successfully"),ClosePopup();break;case 1:null==a?alert("Unable to connect to Database!"):a(1,"Please enter a valid Password");break;case 2:null==a?alert("Query execution failure!"):a(2,"Query execution failure!");break;case 9:null==a?alert(e.Message):a(11,e.Message);break;case 10:null==a?alert("Invalid input parameters. Please try again!"):a(10,"Invalid input parameters. Please try again!")}},error:function(e){null==a?alert("Unknown Error. Please try later!"):a(99,"Unknown Error. Please try later")},statusCode:{404:function(){alert("Service (agoraRequestInfo) not found!")}}})}function NeighborhoodReport(e,t,n,a){e=GetFormXml($("#"+e));null==e||t&&!t(e)||$.ajax({type:"POST",url:(isMultiLingual()?"/"+getLocale():"")+"/services/agoraNeighborhoodReport.ashx",data:{WebRequest:e},dataType:"json",success:function(e){switch(e.Number){case 100:null==n?alert("Your Neighborhood Report request has been submitted. A report will be emailed to you within the next 24 business hours."):n(100,"Your Neighborhood Report request has been submitted. A report will be emailed to you within the next 24 business hours."),ClosePopup();break;case 1:null==a?alert("Unable to connect to Database!"):a(1,"Please enter a valid Password");break;case 2:null==a?alert("Query execution failure!"):a(2,"Query execution failure!");break;case 9:null==a?alert(e.Message):a(11,e.Message);break;case 10:null==a?alert("Invalid input parameters. Please try again!"):a(10,"Invalid input parameters. Please try again!")}},error:function(e){null==a?alert("Unknown Error. Please try later!"):a(99,"Unknown Error. Please try later")},statusCode:{404:function(){alert("Service (agoraNeighborhoodReport) not found!")}}})}function ContactMortgageSpecialist(e,t,n,a){e=GetFormXml($("#"+e));null==e||t&&!t(e)||$.ajax({type:"POST",url:(isMultiLingual()?"/"+getLocale():"")+"/services/agoraContactMortgageSpecialist.ashx",data:{WebRequest:e},dataType:"json",success:function(e){switch(e.Number){case 100:null==n?alert("Thank you for your request. A Mortgage Consultant will contact you shortly."):n(100,"Thank you for your request. A Mortgage Consultant will contact you shortly."),ClosePopup();break;case 1:null==a?alert("Unable to connect to Database!"):a(1,"Please enter a valid Password");break;case 2:null==a?alert("Query execution failure!"):a(2,"Query execution failure!");break;case 9:null==a?alert(e.Message):a(11,e.Message);break;case 10:null==a?alert("Invalid input parameters. Please try again!"):a(10,"Invalid input parameters. Please try again!")}},error:function(e){null==a?alert("Unknown Error. Please try later!"):a(99,"Unknown Error. Please try later")},statusCode:{404:function(){alert("Service (ContactMortgageSpecialist) not found!")}}})}function RequestShowing(e,t,n,a){e=GetFormXml($("#"+e));null==e||t&&!t(e)||$.ajax({type:"POST",url:(isMultiLingual()?"/"+getLocale():"")+"/services/agoraRequestShowing.ashx",data:{WebRequest:e},dataType:"json",success:function(e){switch(e.Number){case 100:null==n?alert("Your request has been submitted successfully"):n(100,"Your request has been submitted successfully"),ClosePopup();break;case 1:null==a?alert("Unable to connect to Database!"):a(1,"Please enter a valid Password");break;case 2:null==a?alert("Query execution failure!"):a(2,"Query execution failure!");break;case 9:null==a?alert(e.Message):a(11,e.Message);break;case 10:null==a?alert("Invalid input parameters. Please try again!"):a(10,"Invalid input parameters. Please try again!")}},error:function(e){null==a?alert("Unknown Error. Please try later!"):a(99,"Unknown Error. Please try later")},statusCode:{404:function(){alert("Service (agoraRequestShowing) not found!")}}})}function TextListing(e,t,n,a){e=GetFormXml($("#"+e));null==e||t&&!t(e)||$.ajax({type:"POST",url:(isMultiLingual()?"/"+getLocale():"")+"/services/agoraTextListing.ashx",data:{WebRequest:e},dataType:"json",success:function(e){switch(e.Number){case 100:null==n?alert("Your request has been submitted successfully"):n(100,"Your request has been submitted successfully"),ClosePopup();break;case 1:null==a?alert("Unable to connect to Database!"):a(1,"Please enter a valid Password");break;case 2:null==a?alert("Query execution failure!"):a(2,"Query execution failure!");break;case 9:null==a?alert(e.Message):a(11,e.Message);break;case 10:null==a?alert("Invalid input parameters. Please try again!"):a(10,"Invalid input parameters. Please try again!")}},error:function(e){null==a?alert("Unknown Error. Please try later!"):a(99,"Unknown Error. Please try later")},statusCode:{404:function(){alert("Service (agoraTextListing) not found!")}}})}function EmailListing(e,t,n,a){e=GetFormXml($("#"+e));null==e||t&&!t(e)||$.ajax({type:"POST",url:(isMultiLingual()?"/"+getLocale():"")+"/services/agoraEmailListing.ashx",data:{WebRequest:e},dataType:"json",success:function(e){switch(e.Number){case 100:null==n?alert("The property details has been sent successfully"):n(100,"The property details has been sent successfully"),ClosePopup();break;case 1:null==a?alert("Unable to connect to Database!"):a(1,"Please enter a valid Password");break;case 2:null==a?alert("Query execution failure!"):a(2,"Query execution failure!");break;case 9:null==a?alert(e.Message):a(11,e.Message);break;case 10:null==a?alert("Invalid input parameters. Please try again!"):a(10,"Invalid input parameters. Please try again!")}},error:function(e){null==a?alert("Unknown Error. Please try later!"):a(99,"Unknown Error. Please try later")},statusCode:{404:function(){alert("Service (agoraEmailListing) not found!")}}})}function ContactUs(e,t,n,a,r){var i=$("#"+e),e=GetFormXml(i);null==e||t&&!t(e)||$.ajax({type:"POST",url:(isMultiLingual()?"/"+getLocale():"")+"/services/agoraContactUs.ashx",data:{WebRequest:e,ContactType:r},dataType:"json",success:function(e){switch(e.Number){case 100:null==n?alert("Your request has been submitted successfully"):n(100,"Your request has been submitted successfully"),ClosePopup();break;case 1:null==a?alert("Unable to connect to Database!"):a(1,"Please enter a valid Password");break;case 2:null==a?alert("Query execution failure!"):a(2,"Query execution failure!");break;case 9:null==a?alert(e.Message):a(11,e.Message);break;case 10:null==a?alert("Invalid input parameters. Please try again!"):a(10,"Invalid input parameters. Please try again!")}},error:function(e){null==a?alert("Unknown Error. Please try later!"):a(99,"Unknown Error. Please try later")},statusCode:{401:function(){try{i.find("[data-captcha-reload]").trigger("click")}catch(e){}},404:function(){alert("Service (agoraContactUs) not found!")}}})}function SellAHome(e,t,n,a){e=GetFormXml($("#"+e));null==e||t&&!t(e)||$.ajax({type:"POST",url:(isMultiLingual()?"/"+getLocale():"")+"/services/agoraSellAHome.ashx",data:{WebRequest:e},dataType:"json",success:function(e){switch(e.Number){case 100:null==n?alert("Your request has been submitted successfully"):n(100,"Your request has been submitted successfully"),ClosePopup();break;case 1:null==a?alert("Unable to connect to Database!"):a(1,"Please enter a valid Password");break;case 2:null==a?alert("Query execution failure!"):a(2,"Query execution failure!");break;case 9:null==a?alert(e.Message):a(11,e.Message);break;case 10:null==a?alert("Invalid input parameters. Please try again!"):a(10,"Invalid input parameters. Please try again!")}},error:function(e){null==a?alert("Unknown Error. Please try later!"):a(99,"Unknown Error. Please try later")},statusCode:{404:function(){alert("Service (agoraContactUs) not found!")}}})}function MaintenanceService(e,t,n,a){e=GetFormXml($("#"+e));null==e||t&&!t(e)||$.ajax({type:"POST",url:(isMultiLingual()?"/"+getLocale():"")+"/services/MaintenanceService.ashx",data:{WebRequest:e},dataType:"json",success:function(e){switch(e.Number){case 100:null==n?alert("Your request has been submitted successfully"):n(100,"Your request has been submitted successfully"),ClosePopup();break;case 1:null==a?alert("Unable to connect to Database!"):a(1,"Please enter a valid Password");break;case 2:null==a?alert("Query execution failure!"):a(2,"Query execution failure!");break;case 9:null==a?alert(e.Message):a(11,e.Message);break;case 10:null==a?alert("Invalid input parameters. Please try again!"):a(10,"Invalid input parameters. Please try again!")}},error:function(e){null==a?alert("Unknown Error. Please try later!"):a(99,"Unknown Error. Please try later")},statusCode:{404:function(){alert("Service (agoraContactUs) not found!")}}})}function OrderReloc(e,t,n,a){e=GetFormXml($("#"+e));null==e||t&&!t(e)||$.ajax({type:"POST",url:(isMultiLingual()?"/"+getLocale():"")+"/services/agoraOrderReloc.ashx",data:{WebRequest:e},dataType:"json",success:function(e){switch(e.Number){case 100:null==n?alert("Your request has been submitted successfully"):n(100,"Your request has been submitted successfully"),ClosePopup();break;case 1:null==a?alert("Unable to connect to Database!"):a(1,"Please enter a valid Password");break;case 2:null==a?alert("Query execution failure!"):a(2,"Query execution failure!");break;case 9:null==a?alert(e.Message):a(11,e.Message);break;case 10:null==a?alert("Invalid input parameters. Please try again!"):a(10,"Invalid input parameters. Please try again!")}},error:function(e){null==a?alert("Unknown Error. Please try later!"):a(99,"Unknown Error. Please try later")},statusCode:{404:function(){alert("Service (agoraOrderReloc) not found!")}}})}function ForgotPassword(e,t,n,a){e=GetFormXml($("#"+e));null==e||t&&!t(e)||$.ajax({type:"POST",url:(isMultiLingual()?"/"+getLocale():"")+"/services/agoraForgotPassword.ashx",data:{Contact:e},dataType:"json",success:function(e){switch(e.Number){case 100:null==n?alert("Please check your email shortly for instructions on resetting your password."):n(100,"Please check your email shortly for instructions on resetting your password."),ClosePopup();break;case 1:null==a?alert("Unable to connect to Database!"):a(1,"Please enter a valid Password");break;case 2:null==a?alert("Query execution failure!"):a(2,"Query execution failure!");break;case 9:null==a?alert(e.Message):a(11,e.Message);break;case 10:null==a?alert("An account with that email address cannot be found. Please try again."):a(10,"An account with that email address cannot be found. Please try again.")}},error:function(e){null==a?alert("Unknown Error. Please try later!"):a(99,"Unknown Error. Please try later")},statusCode:{404:function(){alert("Service (ForgotPassword) not found!")}}})}function CompanyNewsLetter(e,t,n,a){e=GetFormXml($("#"+e));null==e||t&&!t(e)||$.ajax({type:"POST",url:(isMultiLingual()?"/"+getLocale():"")+"/services/agoraCompanyNewsLetter.ashx",data:{WebRequest:e},dataType:"json",success:function(e){switch(e.Number){case 100:null==n?alert("You have registered for newsletter successfully"):n(100,"You have registered for newsletter successfully"),ClosePopup();break;case 1:null==a?alert("Unable to connect to Database!"):a(1,"Please enter a valid Password");break;case 2:null==a?alert("Query execution failure!"):a(2,"Query execution failure!");break;case 9:null==a?alert(e.Message):a(11,e.Message);break;case 10:null==a?alert("Invalid input parameters. Please try again!"):a(10,"Invalid input parameters. Please try again!")}},error:function(e){null==a?alert("Unknown Error. Please try later!"):a(99,"Unknown Error. Please try later")},statusCode:{404:function(){alert("Service (agoraEmailListing) not found!")}}})}function EmailFriend(e,t,n,a){e=GetFormXml($("#"+e));null==e||t&&!t(e)||$.ajax({type:"POST",url:(isMultiLingual()?"/"+getLocale():"")+"/services/agoraEmailFriend.ashx",data:{WebRequest:e},dataType:"json",success:function(e){switch(e.Number){case 100:null==n?alert("The details has been sent successfully"):n(100,"The details has been sent successfully"),ClosePopup();break;case 1:null==a?alert("Unable to connect to Database!"):a(1,"Please enter a valid Password");break;case 2:null==a?alert("Query execution failure!"):a(2,"Query execution failure!");break;case 9:null==a?alert(e.Message):a(11,e.Message);break;case 10:null==a?alert("Invalid input parameters. Please try again!"):a(10,"Invalid input parameters. Please try again!")}},error:function(e){null==a?alert("Unknown Error. Please try later!"):a(99,"Unknown Error. Please try later")},statusCode:{404:function(){alert("Service (agoraEmailListing) not found!")}}})}function UpdateUserArea(e){$("#DIV_USER_AREA").html(e)}function PerformAction(e,t){var n="",a=(isMultiLingual()?"/"+getLocale():"")+"/dashboard/Access.aspx";"SignUp"!=e&&"SignIn"!=e&&"MarketTrends"!=e?IsSignedIn()?(n=(isMultiLingual()?"/"+getLocale():"")+"/dashboard/"+e+".aspx",isNullOrEmpty(t)||(n+="?"+t)):(n=a+"?view=popup&accessUrl="+escape("/dashboard/"+e+".aspx"),isNullOrEmpty(t)||(n+="?"+escape(t))):"MarketTrends"==e?n="/dashboard/MarketTrends.aspx?"+t:(n=a,isNullOrEmpty(t)||(n+="?"+t)),$("#PERFORM_ACTION_TRIGGER").attr("href",n),$("#PERFORM_ACTION_TRIGGER").trigger("click")}function IsSignedIn(){return!isNullOrEmpty($("#CONTACT_GUID"))&&!isNullOrEmpty($("#CONTACT_GUID").val())&&36==$("#CONTACT_GUID").val().length}function ContactOffice(e){$.ajax({type:"POST",url:(isMultiLingual()?"/"+getLocale():"")+"/services/agoraContactOffice.ashx",data:{Name:$("#textname").val(),Email:$("#txtEmail").val(),ToEmail:e,Subject:$("#textsubject").val(),comment:$("#textmsg").val()},dataType:"text",success:function(e){"100"==e&&(alert("Your request has been submitted successfully"),ClosePopup())},error:function(e){null==onError?alert("Unknown Error. Please try later!"):onError(99,"Unknown Error. Please try later")},statusCode:{404:function(){alert("Service (agoraContactUs) not found!")}}})}function EnableHJNImport(){$("img[data-demograhics]:not(img[data-init-completed])").each(function(){var e=$(this);e.closest("div[contenteditable]").attr("contenteditable")||(isOnScreen(e)?(e.attr("data-init-completed","1"),GetHJN(e,e.data("hjn-id"))):$(window).scroll(function(){jQuery(window).scrollTop()>t&&jQuery(window).scrollTop()-t<10||t>jQuery(window).scrollTop()&&t-jQuery(window).scrollTop()<10||(t=jQuery(window).scrollTop(),isOnScreen(e)&&!e.attr("data-init-completed")&&(GetHJN(e,e.data("hjn-id")),e.attr("data-init-completed","1")))}))});var t=jQuery(window).scrollTop()}function GetHJN(t,e){var n=new Date,n=n.getFullYear()+("0"+(n.getMonth()+1)).slice(-2)+("0"+n.getDate()).slice(-2)+("0"+n.getHours()+1).slice(-2)+("0"+n.getMinutes()).slice(-2)+("0"+n.getSeconds()).slice(-2)+("0"+n.getMilliseconds()).slice(-2);$.ajax({url:"/services/agoraDemographicsWidget.aspx",data:{hjnId:e,containerIdSufix:n},type:"GET",dataType:"html",success:function(e){t.closest("div[contenteditable]").attr("contenteditable")||(t.after(e),t.remove(),"undefined"!=typeof componentHandler&&componentHandler.upgradeDom())},error:function(){}})}function EnableYelpImport(){$("img[data-yelp-control]:not(img[data-init-completed]").each(function(){var e=$(this);e.closest("div[contenteditable]").attr("contenteditable")||(isOnScreen(e)?(e.attr("data-init-completed","1"),processYelpControlSearch(e)):$(window).scroll(function(){jQuery(window).scrollTop()>t&&jQuery(window).scrollTop()-t<10||t>jQuery(window).scrollTop()&&t-jQuery(window).scrollTop()<10||(t=jQuery(window).scrollTop(),isOnScreen(e)&&!e.attr("data-init-completed")&&(e.attr("data-init-completed","1"),processYelpControlSearch(e)))}))});var t=jQuery(window).scrollTop()}function processYelpControlSearch(t){var e=t.data("location"),n=t.data("latitude"),a=t.data("longitude"),r=new Date,i=r.getFullYear()+("0"+(r.getMonth()+1)).slice(-2)+("0"+r.getDate()).slice(-2)+("0"+r.getHours()+1).slice(-2)+("0"+r.getMinutes()).slice(-2)+("0"+r.getSeconds()).slice(-2)+("0"+r.getMilliseconds()).slice(-2);$.ajax({url:"/services/agoraYelpWidget.aspx",data:{location:e,latitude:n,longitude:a,containerIdSufix:i},type:"GET",dataType:"html",success:function(e){t.closest("div[contenteditable]").attr("contenteditable")||(t.after(e),t.remove(),"undefined"!=typeof componentHandler&&componentHandler.upgradeDom(),$(".yelp-import-result-"+i).find(".owl-carousel").owlCarousel({items:4,nav:!0,navText:["<i class='aga-keyboard-arrow-left'></i>","<i class='aga-keyboard-arrow-right'></i>"],responsive:{0:{items:1},480:{items:1},768:{items:2},1024:{items:4}}}))},error:function(){}})}function EnableAreaMapImport(){$("img[data-areamap-control]:not(img[data-init-completed]").each(function(){var e=$(this);e.closest("div[contenteditable]").attr("contenteditable")||(isOnScreen(e)?(e.attr("data-init-completed","1"),getAreaMapControl(e)):$(window).scroll(function(){jQuery(window).scrollTop()>t&&jQuery(window).scrollTop()-t<10||t>jQuery(window).scrollTop()&&t-jQuery(window).scrollTop()<10||(t=jQuery(window).scrollTop(),isOnScreen(e)&&!e.attr("data-init-completed")&&(e.attr("data-init-completed","1"),getAreaMapControl(e)))}))});var t=jQuery(window).scrollTop()}function getAreaMapControl(t){var e=t.data("latitude"),n=t.data("longitude");$.ajax({url:"/services/agoraAreaMapWidget.aspx",data:{latitude:e,longitude:n},type:"GET",dataType:"html",success:function(e){t.closest("div[contenteditable]").attr("contenteditable")||(t.after(e),t.remove(),"undefined"!=typeof componentHandler&&componentHandler.upgradeDom())},error:function(){}})}function isOnScreen(e){var t,n,a,r,i;if(0!=e.length)return a=(t=(n=jQuery(window)).scrollTop())+(n=n.height()),i=(r=(e=jQuery(e)).offset().top)+(e=e.height()),t<=r&&r<a||t<i&&i<=a||n<e&&r<=t&&a<=i}function showPropertyGallery(e,t,n,a,r){for(var i=window.pageYOffset,o=document.querySelector(".property-gallery-container"),s=document.createElement("button"),l=(s.classList.add("property-gallery-container-close"),s.setAttribute("title","Close Property Gallery"),s.innerText="X",s.addEventListener("click",function(e){null!=document.querySelector(".property-gallery-container")&&document.querySelector(".property-gallery-container").remove(),window.scrollTo(0,i),document.body.style.overflow="visible"},!0),null==o&&((o=document.createElement("div")).classList.add("property-gallery-container"),r!=n&&o.classList.add(r),document.body.appendChild(o)),o.innerHTML='<div class="s-w-100 s-h-100 s-p-r hero-slider"><i class="left-btn">&lt;</i><div class="item-s show-nav"></div><i class="right-btn">&gt;</i><div class="dots-wrapper"></div><div style="clear: both;"></div></div>',o.appendChild(s),o.querySelector(".item-s")),c=null,u=0;u<a;u++)(c=document.createElement("div")).innerHTML='<div class="item"><img class="lazy s-h-100 s-of-cn" alt="property photo '+(u+1)+'" data-src="https://cdn.datafloat.com/'+e+"_PUBLIC/MLSPhotos/"+t.toUpperCase()+"/"+n+"_"+(u+1)+'.jpg" /></div>',l.append(c.firstElementChild);agSlider({autoPlay:!0,autoPlayDelay:5e3,loop:!0,showBullets:!0,showControls:!0,bulletContainer:".dots-wrapper",showBulletsAsThumb:!0,itemWrapper:".item-s",itemContainer:".item"},".property-gallery-container",function(e){document.body.style.overflow="hidden",document.querySelectorAll(".ldp-caro").forEach(e=>{e.querySelectorAll(".item").forEach((e,t)=>{e.addEventListener("click",()=>{document.querySelector(".property-gallery-container .dots-wrapper .idx-"+t).click()})})}),window.scrollTo(0,0)})}function handleCommunityClickEvent(e,t){window.agEvent&&window.agEvent.push(e,t)}function IsNotNull(e){return null!=e&&0<e.length&&"0"!=e&&0!=e}function IsNotNullOrIsZero(e){return null!=e&&0<e.length}function EnableSearchForm(){function t(i){setTimeout(function(){var e=$(i).closest("[data-search-form]"),t=composeUrlQuery({select:e}),n=e.data("search-form"),n=$('[data-sort-object="'+n+'"]'),a=e.data("default-search"),r=e.data("default-sort");void 0!==a&&""!=a&&-1==t.indexOf("/address-")&&-1==t.indexOf("/mls-")&&(t+=a),0<n.length?t+=null!=(a=n.val())&&""!=a?a:"":void 0!==r&&null!=r&&""!=r&&(t+=r),e.triggerHandler("search",[{query:t}])},200)}$(document).on("click","[data-search-form] [data-search-button]",{},function(){t(this)}),$(document).on("keydown","[data-search-form] [data-search-action]",{},function(e){13==e.keyCode&&t(this)}),$("[data-search-form]").on("search",function(e,t){var n=$(this),a=n.data("search-prefix"),a=IsNotNull(a)&&"undefined"!=a?a:GetSearchPrefixForRecordType(n.data("search-form"));/^\/\//.test((null!=a&&""!=a&&"undefined"!=a?a:"")+t.query)||(window.location=(null!=a&&""!=a&&"undefined"!=a?a:"")+t.query)})}function GetSearchPrefixForRecordType(e){switch(e){case"PROPERTY":return"/properties";case"COMMUNITY":return"/communities";case"BUILDER":return"/builders";case"PROPERTYRENT":return"/property-search-map-on-rent";case"PROPERTYSOLD":return"/property-search-map/sold";case"AGENT":return"/real-estate-agents";case"OFFICE":return"/real-estate-offices";case"BLOG":return"/blog/search";case"AGENTTEAM":return"/real-estate-agents"}return"/"}function GetDefaultSortForRecordType(e){switch(e){case"PROPERTY":case"COMMUNITY":case"PROPERTYRENT":return"/dsort-p";case"AGENT":case"AGENTTEAM":case"OFFICE":return"/sort-n"}return""}function getCookie(e){for(var t=e+"=",n=decodeURIComponent(document.cookie).split(";"),a=0;a<n.length;a++){for(var r=n[a];" "==r.charAt(0);)r=r.substring(1);if(0==r.indexOf(t))return r.substring(t.length,r.length)}return""}function initMapDefault(){window.onMapLoaded&&window.onMapLoaded()}function EnableDemandImport(){function e(t,n,i,a){if(!t.closest("div[contenteditable]").attr("contenteditable")&&void 0!==n||void 0!==i)switch((a=void 0!==a?a:"gallery").toLowerCase()){case"gallery":var e=t.find('[data-sort-object="CMNCMN"]');("undefined"!=e&&null!=e&&0<e.length||!n.match(/(^|\/)(d)?sort\-[a-z]+/g))&&(n=((e=>"undefined"!=(e=e.find('[data-sort-object="CMNCMN"]'))&&null!=e&&0<e.length&&IsNotNull(e.val())?e.val():GetDefaultSortForRecordType("PROPERTY"))(t)+"/"+n.replace("http://","").replace(/(^|\/)(d)?sort\-[a-z]+/g,"")).replace("//","/")),$.ajax({type:"POST",url:"/services/MAX/agoraGetGalleryView.aspx",data:{UrlQuery:n,TypeOfSearch:"SALE",IsContentPage:"true",DemandKey:i},dataType:"html",success:function(e){t.closest("div[contenteditable]").attr("contenteditable")||(e='<section class="result-page" data-ck-propertylist="" data-ck-demand-key="'+i+'" data-ck-property-url="'+n+'" data-ck-demand-layout="'+a+'">'+e+"</section>",t.after(e),t.remove(),"undefined"!=typeof componentHandler&&componentHandler.upgradeDom(),$('[data-ck-demand-key="'+i+'"] #propertyGrid').each(function(){$(this).find(".property:not(.init)").each(function(){GetPropertyImageGallery($(this))})}),window.agLazy.refresh())},error:function(){ShowLoading()}});break;case"carousel":$.ajax({type:"POST",url:"/services/MAX/agoraGetCarouselItem.aspx",data:{UrlQuery:n,TypeOfSearch:"SALE",IsContentPage:"true",DemandKey:i},dataType:"html",success:function(e){t.closest("div[contenteditable]").attr("contenteditable")||(e='<section class="result-page" data-ck-propertylist="" data-ck-demand-key="'+i+'" data-ck-property-url="'+n+'" data-ck-demand-layout="'+a+'">'+e+"</section>",t.after(e),$('[data-query-list]:not(.init)[data-service-url][data-rt^="CMN"]').each(function(){var t=$(this),e=t.attr("data-owner-key"),n=t.attr("data-owner-rt"),a=t.attr("data-rt"),r=t.data("service-url");document.body.dispatchEvent(new CustomEvent("ag.render.refresh")),setTimeout(()=>{window.agRender.pagedResult("PropertySavedListingData",r,{ownerPK:e,ownerRT:n,RT:a,urlQuery:"",Q:t.data("urlquery"),demandKey:i,PagSize:12},function(e){!e||e.ResultCount<1?t.addClass("s-d-n"):(console.log(e),agSlider({autoPlay:!1,loop:!1,showBullets:!0,showControls:!1,bulletContainer:".dots-wrapper",showBulletsAsThumb:!1,wrapperMask:0},".saved-listing-slider",function(e){}),e.ResultCount<=3&&$("[data-saved-listing]").find(".saved-listing-slider div.dots-wrapper").hide())})},500)}),t.remove(),"undefined"!=typeof componentHandler&&componentHandler.upgradeDom())},error:function(){ShowLoading()}})}}$("img[data-demand-key]").each(function(){e($(this),$(this).data("demand-url"),$(this).data("demand-key"),$(this).data("layout"))}),$(document).on("click","[data-ck-href]",null,function(){e($(this).parents("[data-ck-propertylist]:first"),$(this).data("ck-href"),$(this).parents("[data-ck-propertylist]:first").data("ck-demand-key"),$(this).parents("[data-ck-propertylist]:first").data("ck-demand-layout"))}),(async()=>{var u,n,p={languages:[{code:"en",label:"English"},{code:"es",label:"Spanish",localLabel:"Español"},{code:"nl",label:"Dutch",localLabel:"Nederlands"},{code:"pr",label:"Portugese",localLabel:"Português"},{code:"fr",label:"French",localLabel:"Français"}],currencies:[{code:"USD",base:"USD",label:"Dollar",format:"$###,###,###.##"},{code:"AED",base:"USD",label:"United Arab Emirates Dirham",format:"AED###,###,###.##"},{code:"BSD",base:"USD",label:"Bahamian Dollar",format:"B$###,###,###.##"},{code:"CAD",base:"USD",label:"Canadian Dollar",format:"$###,###,###.##"},{code:"DOP",base:"USD",label:"Dominican Peso",format:"RD$###,###,###.##"},{code:"EUR",base:"USD",label:"Euro",format:"€###,###,###.##"},{code:"JMD",base:"USD",label:"Jamaican Dollar",format:"J$###,###,###.##"},{code:"KYD",base:"USD",label:"Cayman Islands Dollar",format:"CI$###,###,###.##"},{code:"MXN",base:"USD",label:"Mexican Peso",format:"$###,###,###.##"},{code:"PAB",base:"USD",label:"Panamanian Balboa",format:"B/.###,###,###.##"}],units:[{code:"imperial",label:"Imperial"},{code:"metric",label:"Metric"}],presets:[{code:"BS",longCode:"BHS",label:"Bahamas",currency:"BSD",language:"en",messurement:"metric"},{code:"CA",longCode:"CAN",label:"Canada",currency:"CAD",language:["en","fr"],messurement:"metric",states:{QC:"fr"}},{code:"JM",longCode:"JAM",label:"Jamaica",currency:"JMD",language:"en",messurement:"metric"},{code:"KY",longCode:"CYM",label:"Cayman Islands",currency:"KYD",language:"en",messurement:"metric"},{code:"TC",longCode:"TCA",label:"Turks & Caicos Islands",localLabel:"",currency:"USD",language:"en",messurement:"imperial"},{code:"US",longCode:"USA",label:"United States",localLabel:"",currency:"USD",language:"en",messurement:"imperial"},{code:"DY",longCode:"DOM",label:"Dominican Republic",localLabel:"República Dominicana",currency:"USD",language:"en",messurement:"metric"},{code:"ES",longCode:"ESP",label:"Spain",localLabel:"España",currency:"EUR",language:"en",messurement:"metric"},{code:"MX",longCode:"MEX",label:"Mexico",localLabel:"México",currency:"MXN",language:"en",messurement:"metric"},{code:"PA",longCode:"PAN",label:"Panama",localLabel:"Panamá",currency:"PAB",language:"en",messurement:"metric"},{code:"NL",longCode:"NLD",label:"Nederlands",localLabel:"Nederland",currency:"EUR",language:"en",messurement:"metric"},{code:"PT",longCode:"PRT",label:"Portugal",currency:"EUR",language:"en",messurement:"metric"}],unitConvertions:[{unit:"SQFT",tragetUnit:"Sq.M",constant:.092903,notation:["Sqft","Sq.Ft","Sq.Ft.","Sq. Ft.","SF","square feet","square feets"]},{unit:"MI",tragetUnit:"KM",constant:1.60934,notation:["mi","miles","mile"]},{unit:"AC",tragetUnit:"Sq.M",constant:4046.86,notation:["acre","acres"]}]},o=null;async function s(){var t,e=C();null==o&&(o=Object.assign({},e)),e?.language!=o?.language?setTimeout(function(){window.location.reload()},1e3):(o=Object.assign({},e),t=await new Promise(async function(e,t){var n=await(async()=>{var e=window.localStorage.getItem("LOCALLABELS"),t=null;return t=null!=e?JSON.parse(e):t})(),a=C();if(null!=n){var r=new Date;if(r.setHours(r.getHours()-1),new Date(n.updatedOn)>r&&-1<n.Locale.indexOf(a.language))return void e(n)}(n=await L("/services/agoraClient.ashx",{type:"LABELS"})).updatedOn=new Date,l(n),e(n)}),e?.language&&-1==t.Locale.indexOf(e.language)&&(await S(),window.location.reload()),(e=document.querySelectorAll("[ag-l-k]"))&&e.forEach(function(e){(async(e,t)=>{var n,a=e.getAttribute("ag-l-k"),r=null;if(t[a]||h.test(a))if(e.childNodes&&1==e.childNodes.length)if(h.lastIndex=0,h.test(a)){h.lastIndex=0;for(var i=a;null!=(r=h.exec(i));)i=i.replace(r[0],t[r.groups.LabelID]?t[r.groups.LabelID].lbl:"");e.childNodes[0].textContent=i}else e.childNodes[0].textContent=t[a]?t[a].lbl:"";else t[a]&&((n=document.createElement("span")).innerHTML=t[a].lbl,async function e(t,n){for(var a=0;a<n.childNodes.length;a++)if(n.childNodes[a]?.textContent&&t.childNodes[a]?.textContent)t.childNodes[a].textContent=n.childNodes[a]?.textContent;else{if(!(a<n.childNodes.length&&a<t.childNodes.length))return;e(t.childNodes[a],n.childNodes[a])}}(e,n));for(var o=0;o<e.attributes.length;o++){var s=e.attributes[o];if(d.lastIndex=0,null!=(r=d.exec(s.name))){for(var l=r.groups.Attribute,c=s.value;null!=(r=h.exec(c));)c=c.replace(r[0],t[r.groups.LabelID]?t[r.groups.LabelID].lbl:"");e.setAttribute(l,c)}}e&&null!=e&&e.dispatchEvent(new CustomEvent("ag.language.update.item"))})(e,t.Labels)}),setTimeout(function(){function e(e,t){var n;e&&((n=t.find('li[value="'+e+'"]')).length?MdlReloadControlState(n,t):(n=$('<li class="temp-li" value="'+e+'"><span>'+e+"</span></li>"),t.find(".temp-li").remove(),t.prepend(n),MdlReloadControlState(n,t)))}$('ul[ag-l-k-data-search-name-label*="PROPERTY_STATUS"], ul[ag-l-k-data-search-name-label*="PROPERTY_TYPE"], div[ag-l-k-data-search-name-label*="PROPERTY_MORE"]').each(function(){$(this).find("li").each(function(){var e=$(this);MdlReloadControlState(e,e.parent())})});e($("#txtMinimumPrice").val(),$("#MinimumPrice"));var t=$("#txtMaximumPrice").val();e(t,$("#MaximumPrice")),$('ul[data-search="singleItem"]').each(function(){var e=$(this),t=e.attr("data-search-value-bind"),t=$("#"+t).val();t&&(t=e.find('li[value="'+t+'"]')).length&&MdlReloadControlState(t,e)})},300))}async function l(e){window.localStorage.setItem("LOCALLABELS",JSON.stringify(e))}var d=/ag\-l\-k\-(?<Attribute>[^\=]+)/gm,h=/\[(?<LabelID>[^\]]+)\]/gm;async function c(e){var t,n,a,r=await new Promise(async function(e,t){var n=localStorage.getItem("CONVERTIONRATES"),a=null;if(n&&null!=n){a=JSON.parse(n),n=new Date;if(n.setDate(n.getDate()-1),new Date(a.updatedOn)>n)return void e(a)}(a=await L("/services/agoraClient.ashx",{type:"CONVERTIONRATES"})).updatedOn=(new Date).toISOString(),localStorage.setItem("CONVERTIONRATES",JSON.stringify(a)),e(a)}),i=C();i.currency&&(t=r.Rates?.ExchangeRates?.filter(function(e){return e.Code==i.currency})[0],(a=p.currencies.filter(function(e){return e.code==i.currency})[0])&&(t.formatter=g(a.format)),n=t.Code,a=e?document.querySelectorAll('[ag-l-p]:not(.is-applied):not([ag-l-p="0"])'):document.querySelectorAll('[ag-l-p]:not([ag-l-p="0"])'))&&a.forEach(async function(e){-1<e.innerHTML.indexOf("{{")||((async e=>{var t,n,a,r,i;e.classList.contains("is-applied")||(r=e.getBoundingClientRect(),n=(n=null)!=(n=e.closest("article"))&&0<n.length?n[0].getBoundingClientRect():e.parentElement?.getBoundingClientRect(),t=(n.top+n.bottom)/2,n=(n.left+n.right)/2,a=(r.top+r.bottom)/2,r=(r.left+r.right)/2,i="ag-l-p-p",i="ag-l-p-p-"+(r<n?"l":"r")+"-"+(a<t?"b":"t"),e.classList.add(i))})(e),e.classList.add("is-applied"),(async(e,t,n,a)=>{var r=null!=e.getAttribute("ag-l-p-c")&&(null==e.getAttribute("ag-l-p-o")&&null==e.getAttribute("ag-l-p-o-p")||e.getAttribute("ag-l-p-o-p")!=e.getAttribute("ag-l-p"))&&e.getAttribute("ag-l-p-c")!=n;if(e.getAttribute("ag-l-p-c")!=n||!r||!f.test(e.textContent)){var i=e.getAttribute("ag-l-p-c"),o=1,s=null;try{s=a.Rates?.ExchangeRates?.filter(function(e){return e.Code==i})[0];var l=p.currencies.filter(function(e){return e.code==s.Code})[0];l&&(s.formatter=g(l.format)),o=s.Constant}catch(e){}for(var c=0;c<e.childNodes.length;c++){var u,d=e.childNodes[c],h=null;if(f.lastIndex=0,d.textContent&&null!=(h=f.exec(d.textContent)))return t&&null!=t&&e.setAttribute("ag-l-p-c-t",t.Code),r?(e.setAttribute("ag-l-p-o-p",e.getAttribute("ag-l-p")),e.setAttribute("ag-l-p-o",s?s.formatter(parseFloat(e.getAttribute("ag-l-p"))):e.getAttribute("ag-l-p"))):null!=e.getAttribute("ag-l-p-c")&&e.getAttribute("ag-l-p-c")==t.Code&&e.removeAttribute("ag-l-p-o"),f.lastIndex=0,u=Math.round(parseFloat(e.getAttribute("ag-l-p"))/o*t.Constant),!(d.textContent=d.textContent.replace(h[0],t.formatter?t.formatter(u):u.toString()))}}})(e,t,n,r))})}var f=/(([^A-z0-9]|[A-Z]|[A-Z]{3})*\s?[0-9\,\.]+)/gm;function g(e){var t=e.replace(/[#\,\.]+/gi,"");return function(e){return t+e.toLocaleString("en-US")}}async function m(e){var t="metric"==C().messurement,n=t?document.querySelectorAll("[ag-l-m]:not(.is-applied)"):document.querySelectorAll("[ag-l-m]");t?setTimeout(function(){n&&n.forEach(async function(e){-1<e.innerHTML.indexOf("{{")||e.classList.contains("is-applied")||(e.classList.add("is-applied"),async function a(e,r,t,n,i){if(n&&i)return void(0<e?.childNodes?.length&&e.childNodes.forEach(async function(e){var t,n;e?.textContent&&(t=e.textContent,(n=await w(e.textContent,2,i)).success)&&(e.textContent=n.content,r.addEventListener("ag.language.messurement.revert",function(){e.textContent=t}))}));{var o,s;v(e)?(o=p.unitConvertionSchema.getLabelForAttribute(e),n=await b(o,1),p.unitConvertionSchema.setLabelForAttribute(e,n.content),s=p.unitConvertionSchema.getValueForAttribute(e),n=await w(s,2,n.units[0]),p.unitConvertionSchema.setValueForAttribute(e,n.content),r.addEventListener("ag.language.messurement.revert",function(){p.unitConvertionSchema.setLabelForAttribute(e,o),p.unitConvertionSchema.setValueForAttribute(e,s)})):0<e?.childNodes?.length&&e.childNodes.forEach(async function(e){var t,n;e.nodeType==Node.TEXT_NODE&&y(e)?(t=e.textContent,(n=await b(t)).success?e.textContent=n.content:(n=await b(e.textContent,1),e.textContent=n.content,a(e.parentElement,r,!1,!0,n.units[0])),r.addEventListener("ag.language.messurement.revert",function(){e.textContent=t})):a(e,r)})}return!1}(e,e))})},e?500:0):n&&n.forEach(async function(e){-1<e.innerHTML.indexOf("{{")||!e.classList.contains("is-applied")||(e.classList.remove("is-applied"),e.dispatchEvent(new CustomEvent("ag.language.messurement.revert")))})}function y(e){return p.unitConvertionSchema.expression.test(e.textContent)||p.unitConvertionSchema.notationExpression.test(e.textContent)}function v(e){return null!=(p.unitConvertionSchema.haveValidAttribute(e)?p.unitConvertionSchema.getLabelForAttribute(e).match(p.unitConvertionSchema.notationExpression):null)}async function b(e,t){var n,a=[],r=!1;t=t||0;for(n of p.unitConvertions){var i=await w(e,t,n);e=i.content,r|=i.success,i.success&&a.push(n),p.unitConvertionSchema.notationExpressions[n.unit].lastIndex=-1,p.unitConvertionSchema.notationOnlyExpressions[n.unit].lastIndex=-1}return{content:e,success:r,units:a}}async function w(e,t,n){for(var a=null,r=!1;null!=(a=((e,t,n)=>0==n?p.unitConvertionSchema.notationExpressions[t.unit].exec(e):1==n?p.unitConvertionSchema.notationOnlyExpressions[t.unit].exec(e):2==n?(p.unitConvertionSchema.valueExpression.lastIndex=-1,p.unitConvertionSchema.valueExpression.exec(e)):null)(e,n,t));){var r=!0,i=1==t?0:parseFloat(p.unitConvertionSchema.getValue(a.groups.V)),o=a.groups.N,s=a.index,l=s+a[0].length,i=(1!=t?a[0].replaceAll(a.groups.V,p.unitConvertionSchema.formatValue(Math.floor(Math.round(i*n.constant)))):a[0]).replaceAll(o,n.tragetUnit);if(2==t&&n.targetNotation&&(i+=" "+n.targetNotation),e=e.substring(0,s)+i+e.substring(l),2==t)return{content:e,success:r}}return{content:e,success:r}}async function x(t){i("US").split(" ").map(function(e){t.classList.add(e)}),document.body.addEventListener("ag.language.update",function(e){t.className=t.className.replace(/fflag\-[A-Z]{1,2}/gi,""),i(e.detail.code).split(" ").map(function(e){t.classList.add(e)}),e.detail.longCode&&k("longCode",e.detail.longCode);e=C();window.agLocale||(window.agLocale={}),window.agLocale.locale=e,document.body.dispatchEvent(new CustomEvent("ag.language.update.success"))}),t.addEventListener("click",async function(e){u=u||await(async()=>{var n,t,e=new _("span"),a=e.n("span");function r(e){A(t,"Language","language",e,function(e,t){e.h(t.localLabel||t.label)},function(e){return e?e.localLabel||e.label:""})}return A(a,"Location","code",p.presets,function(e,t){e.n("i").a("class",i(t.code)),e.n("b").h(t.localLabel||t.label)},function(t,e){return n.a("class",i(t.code)),r(p.languages.filter(function(e){return Array.isArray(t.language)?-1<t.language.indexOf(e.code):e.code==t.language})),e||document.body.dispatchEvent(new CustomEvent("ag.language.update",{detail:t})),t.localLabel||t.label}),n=a.n("i"),t=e.n("span"),r(p.languages),A(e.n("span"),"Currency","currency",p.currencies,function(e,t){e.h(t.localLabel||t.label)},function(e){return e.localLabel||e.label}),A(a=e.n("span"),"Property Measurement","messurement",p.units,function(e,t){e.h(t.localLabel||t.label)},function(e){return e.localLabel||e.label}),A(a=e.n("span"),"Distance Measurement","messurement",p.units,function(e,t){e.h(t.localLabel||t.label)},function(e){return e.localLabel||e.label}),e.node.setAttribute("ag-language-select",""),document.body.appendChild(e.node),(a=C())?.code&&document.body.dispatchEvent(new CustomEvent("ag.language.update",{detail:a})),e})(),e.stopPropagation(),(async e=>{e=e.getBoundingClientRect(),u.node.style.top=Math.floor(e.top-8)+"px",u.node.style.right="calc(100% - "+Math.floor(e.right+8)+"px)",u.node.querySelectorAll(".active")?.forEach(function(e){e.classList.remove("active")}),u.node.classList.add("active")})(t),document.body.addEventListener("click",a)})}function a(e){e.stopPropagation(),null==e.target.closest("[ag-language-select],[ag-language]")&&(document.body.removeEventListener("click",a),(async()=>{u.node.classList.remove("active")})(e.target))}function i(e){return"fflag ff-lg fflag-"+e}function C(){var e=window.localStorage.AGLANGUAGE,t={};return t=e&&""!=e?JSON.parse(e):t}var r=null,E=null;function k(e,t){var n,a=C();(a=null==a?{}:a)[e]&&a[e]==t||(a[e]=t,window.localStorage.setItem("AGLANGUAGE",JSON.stringify(a)),null!=r&&clearTimeout(S),r=setTimeout(async function(){r=null,await S(),null!=E&&(E(),E=null)},100),n=E,E=function(){null!=n&&n(),document.body.dispatchEvent(new CustomEvent("ag.language.change."+e))})}async function S(e){var t=C();JSON.stringify(n)!=JSON.stringify(t)&&(n=t)&&t.code&&await window.agRequest.POST("/services/agoraClient.ashx",Object.assign({type:"SET"},t))}var T={};function A(e,t,a,r,n,i){var o=t.toLowerCase().replace(/[^A-z0-9]/gi,""),s=!!T["itemList"+o],t=(s||e.h(t),s?T["itemList"+o]:T["itemList"+o]=e.n("span")),l=s?T["itemListValue"+o]:T["itemListValue"+o]=t.n("label"),c=(l.h("Selected Value"),s||l.cl(function(e){e.stopPropagation(),u.node.querySelectorAll(".active")?.forEach(function(e){e!=l.node&&e.classList.remove("active")}),l.node.classList.contains("active")?l.node.classList.remove("active"):l.node.classList.add("active")}),s?T["itemOptions"+o]:T["itemOptions"+o]=t.n("span"));c.h(""),r.map(function(e){var t=c.n("label");t.cl(function(){l.node.classList.remove("active"),k(a,e.code),l.h(i(e))}),n(t,e)}),a&&""!=a&&(T["General"+o]||(T["General"+o]=function(e){document.body.dispatchEvent(new CustomEvent("ag.language.update."+o,{detail:e.detail}))},document.body.addEventListener("ag.language.update",T["General"+o])),T["Field"+o]||(T["Field"+o]=function(e){var e=e.detail[a],n=Array.isArray(e)?e[0]:e,e=r.find(function(e,t){return e.code==n});i&&(k(a,n),l.h(i(e,!0)))},document.body.addEventListener("ag.language.update."+o,T["Field"+o])))}function _(e){return this.node=document.createElement(e),this}async function L(e,t){var n,a="";for(n in t)a+=(""!=a?"&":"")+n+"="+t[n];return e+=-1<e.indexOf("?")?"&":"?"+a,(await fetch(e,{method:"GET",cache:"no-cache",headers:{"Content-Type":"application/json"}})).json()}_.prototype.a=function(e,t){return this.node.setAttribute(e,t),this},_.prototype.n=function(e){e=new _(e);return this.node.appendChild(e.node),e},_.prototype.h=function(e){return this.node.innerHTML=e,this},_.prototype.cl=function(e){return this.node.removeEventListener("click",e),this.node.addEventListener("click",e),this},window.agLanguage={refresh:function(){document.body.dispatchEvent(new CustomEvent("ag.language.refresh.currency"))},refreshLocale:function(){document.body.dispatchEvent(new CustomEvent("ag.language.change.language"))}},(async()=>{var e=document.querySelectorAll("[ag-language]");if(!(e&&e.length<=0)){e.forEach(x);var a,r,i,e=!1,t=C();if(!t?.code)for(var n in e=!0,document.body.addEventListener("ag.language.country.auto-discovery",function(t){var e=p.presets.filter(function(e){return e.code==t.detail.countryCode});if(null!=e&&0<e.length&&"US"!=e[0].code){for(var n in e[0]){var a=Array.isArray(e[0][n])?e[0][n][0]:e[0][n];k(n,a="language"==n&&e[0].states&&e[0].states[t.detail.state]?e[0].states[t.detail.state]:a)}document.body.dispatchEvent(new CustomEvent("ag.language.update",{detail:e[0]}))}}),t=p.presets.filter(function(e){return"US"==e.code})[0])k(n,Array.isArray(t[n])?t[n][0]:t[n]);document.body.dispatchEvent(new CustomEvent("ag.language.update",{detail:t})),c(!0),t.language&&-1==t.language.indexOf("en")?s():(o=Object.assign({},t),l({Locale:"en_US"})),(async()=>{document.body.addEventListener("ag.language.change.language",function(){s()}),document.body.addEventListener("ag.language.change.currency",function(){c()}),document.body.addEventListener("ag.language.change.messurement",function(){m()}),document.body.addEventListener("ag.lazy.refresh",function(){m()}),document.body.addEventListener("ag.language.refresh.currency",function(){c()})})(),p.unitConvertionSchema=(r=a="",i={notationExpressions:{},notationOnlyExpressions:{},getValue:function(e){return parseFloat(e.replaceAll(/[^0-9\\.]/gi,""))},formatValue:function(e){return e.toLocaleString("en-US",{maximumFractionDigits:2})},haveValidAttribute:function(e){return!!e.hasAttribute&&e.hasAttribute("data-th")},getLabelForAttribute:function(e){return e.getAttribute?e.getAttribute("data-th"):""},setLabelForAttribute:function(e,t){e.setAttribute&&e.setAttribute("data-th",t)},getValueForAttribute:function(e){return e.innerText},setValueForAttribute:function(e,t){e.innerText=t}},p.unitConvertions.forEach(function(e){var t="",n="";e.notation.forEach(function(e){n+=(""!=n?"|":"")+"((?<N>"+e.replaceAll(/\s/gi,"\\s").replaceAll(/([^0-9A-z])/gi,"\\$1")+")(\\s|[^A-z]|$))",t+=(""!=t?"|":"")+"((?<V>[0-9\\,\\.]+)(\\n|\\s)*(?<N>"+e.replaceAll(/\s/gi,"\\s").replaceAll(/([^0-9A-z])/gi,"\\$1")+")(\\s|[^A-z]|$))"}),i.notationExpressions[e.unit]=new RegExp(t,"gmi"),i.notationOnlyExpressions[e.unit]=new RegExp(n,"gmi"),a+=(""!=a?"|":"")+"("+t+")",r+=(""!=r?"|":"")+"("+n+")"}),i.expression=new RegExp(a,"gmi"),i.notationExpression=new RegExp(r,"gmi"),i.valueExpression=new RegExp("((?<V>[0-9\\,]+(\\.[0-9]+)?)(\\n|\\s)*)","gmi"),await i),m(!0),e||(window.agLocale||(window.agLocale={}),window.agLocale.locale=t,document.body.dispatchEvent(new CustomEvent("ag.language.update.success")))}})()})(),$(document).on("change",'[data-ck-propertylist] [data-sort-object="CMNCMN"]',{},function(){e($(this).parents("[data-ck-propertylist]:first"),$(this).parents("[data-ck-property-url]:first").data("ck-property-url"),$(this).parents("[data-ck-propertylist]:first").data("ck-demand-key"),$(this).parents("[data-ck-propertylist]:first").data("ck-demand-layout"))})}function GetPropertyImageGallery(e){var t=e.find(".slides"),n=(t.attr("data-css-slider","0"),e.find("[data-mk]").data("mk")),a=e.find("[data-mlsboard]").data("mlsboard"),r=e.find("[data-detail-url]").data("detail-url"),i=$("[data-pcode]").data("pcode"),o=e.find("[data-mls-photo]").data("mls-photo"),s=e.find("[data-native-tab]").data("native-tab"),i=(IsNotNull(o)||(o="/images/company/"+i+"/NoPhotoImage/image-not-found.jpg"),parseInt(t.data("value"),10)),l=e.closest("[id]");buildFirstTemplate(o,i,(0==e.length?"un":l.attr("id").replace(/\$/gi,""))+(new Date).getMilliseconds(),a,n,t,r,s),e.addClass("init")}function buildFirstTemplate(e,t,n,a,r,i,o,s){var l=n+a+r+"_",n=($('<input type="radio" aria-label="'+l+'slider" name="'+l+'slider" id="'+l+'0" checked />').appendTo(i),$('<div class="nav"></div>')),c=$('<label aria-label="next" aria-controls="myCarousel-items" data-css-slider-nav="propphoto" for="'+l+'1" class="next"><span aria-label="next" class="visuallyhidden">next</span></label>'),u=$('<label aria-label="prev" aria-controls="myCarousel-items" data-css-slider-nav="propphoto" for="'+l+(parseInt(t,10)-1)+'" class="prev"><span aria-label="prev" class="visuallyhidden">prev</span></label>'),s=(u.on("click",d),c.on("click",d),u.appendTo(n),c.appendTo(n),t="PSB"==$("[data-pcode]").data("pcode")?"":'target = "_blank"',"undefined"!=s&&""!=s&&1==s&&(t=""),$('<li class="slide-container" aria-roledescription="carousel" role="contentinfo"><div class="slide"><div class="Prop_img" role="img" aria-label="bannerImage" style="background-image:url(\''+e+'\');"><a aria-label="'+l+'slider"'+t+'href="'+o+'"></a></div></div></li>'));function d(){var t=$(this);u.off("click"),c.off("click"),$.ajax({url:"/services/agoraPropertyPhotos.aspx",data:{mlsboard:a,mlsno:r,container:l},success:function(e){i.append(e),t.trigger("click")}})}s.append(n),s.appendTo(i)}function openImageGallery(e){var t=e.getAttribute("data-mk"),n=e.getAttribute("data-rt");showPropertyGallery(document.body.getAttribute("data-pcode"),n,t,e.getAttribute("data-photocount")??1,"fullscreen")}function setForms(e){null!=document.querySelector('[node="FirstName"]')&&null!=document.querySelector('[node="FirstName"]')&&(document.querySelector('[node="FirstName"]').value=e.FirstName??""),null!=document.querySelector('[node="LastName"]')&&null!=document.querySelector('[node="LastName"]')&&(document.querySelector('[node="LastName"]').value=e.LastName??""),null!=document.querySelector('[node="Email"]')&&null!=document.querySelector('[node="Email"]')&&(document.querySelector('[node="Email"]').value=e.Email??""),null!=document.querySelector('[node="MobilePhone"]')&&null!=document.querySelector('[node="MobilePhone"]')&&(document.querySelector('[node="MobilePhone"]').value=e.MobilePhone??"")}agora(function(){function e(){var e=$(this),t=$("#"+e.data("page-scroll")),t=null!=t&&0<t.length?t.offset().top:0,n=0;try{var a=e.data("page-scroll-offset"),n=void 0!==a&&""!=a?parseInt(a):$("#agora-layout-header").height()}catch(e){}$("html, body").animate({scrollTop:t-n},1500);try{$("#"+e.data("page-scroll-tab-id")).trigger("click")}catch(e){}}jQuery.fn.ForceNumericOnly=function(){return this.each(function(){$(this).keydown(function(e){var t=e.charCode||e.keyCode||0;return 8==(t=e.shiftKey?0:t)||9==t||13==t||46==t||110==t||190==t||35<=t&&t<=40||48<=t&&t<=57||96<=t&&t<=105})})},$("[data-numeric-only]").ForceNumericOnly(),$(document).ready(function(){$("[data-numeric-only]").ForceNumericOnly()}),$(document).on("click","[data-page-scroll]",e),$(document).on("tap","[data-page-scroll]",e),$(document).on("click","[data-back-to-top]",function(){BackToTop(this)}),$(document).on("tap","[data-back-to-top]",function(){BackToTop(this)}),$(document).on("click","[data-back-to-down]",function(){TopToBottom(this)}),$(document).on("tap","[data-back-to-down]",function(){TopToBottom(this)}),$(document).on("click","[data-href]",function(e){0<$(e.target).closest("[data-non-click-content]").length||isNullOrEmpty($(this).data("href"))||(isNullOrEmpty($(this).data("target"))?location.href=$(this).data("href"):window.open($(this).data("href"),$(this).data("target")))})}),agora(function(){$(document).ready(function(){!location.hash||"#signup"!=location.hash.toLowerCase()&&"#register"!=location.hash.toLowerCase()&&"#reset-password"!=location.hash.toLowerCase()||OpenPopup()})}),((l,n,a,i)=>{function c(e,t){this.settings=null,this.options=l.extend({},c.Defaults,t),this.$element=l(e),this._handlers={},this._plugins={},this._supress={},this._current=null,this._speed=null,this._coordinates=[],this._breakpoint=null,this._width=null,this._items=[],this._clones=[],this._mergers=[],this._widths=[],this._invalidated={},this._pipe=[],this._drag={time:null,target:null,pointer:null,stage:{start:null,current:null},direction:null},this._states={current:{},tags:{initializing:["busy"],animating:["busy"],dragging:["interacting"]}},l.each(["onResize","onThrottledResize"],l.proxy(function(e,t){this._handlers[t]=l.proxy(this[t],this)},this)),l.each(c.Plugins,l.proxy(function(e,t){this._plugins[e.charAt(0).toLowerCase()+e.slice(1)]=new t(this)},this)),l.each(c.Workers,l.proxy(function(e,t){this._pipe.push({filter:t.filter,run:l.proxy(t.run,this)})},this)),this.setup(),this.initialize()}c.Defaults={items:3,loop:!1,center:!1,rewind:!1,mouseDrag:!0,touchDrag:!0,pullDrag:!0,freeDrag:!1,margin:0,stagePadding:0,merge:!1,mergeFit:!0,autoWidth:!1,startPosition:0,rtl:!1,smartSpeed:250,fluidSpeed:!1,dragEndSpeed:!1,responsive:{},responsiveRefreshRate:200,responsiveBaseElement:n,fallbackEasing:"swing",info:!1,nestedItemSelector:!1,itemElement:"div",stageElement:"div",refreshClass:"owl-refresh",loadedClass:"owl-loaded",loadingClass:"owl-loading",rtlClass:"owl-rtl",responsiveClass:"owl-responsive",dragClass:"owl-drag",itemClass:"owl-item",stageClass:"owl-stage",stageOuterClass:"owl-stage-outer",grabClass:"owl-grab"},c.Width={Default:"default",Inner:"inner",Outer:"outer"},c.Type={Event:"event",State:"state"},c.Plugins={},c.Workers=[{filter:["width","settings"],run:function(){this._width=this.$element.width()}},{filter:["width","items","settings"],run:function(e){e.current=this._items&&this._items[this.relative(this._current)]}},{filter:["items","settings"],run:function(){this.$stage.children(".cloned").remove()}},{filter:["width","items","settings"],run:function(e){var t=this.settings.margin||"",n=!this.settings.autoWidth,a=this.settings.rtl,a={width:"auto","margin-left":a?t:"","margin-right":a?"":t};n||this.$stage.children().css(a),e.css=a}},{filter:["width","items","settings"],run:function(e){var t,n=(this.width()/this.settings.items).toFixed(3)-this.settings.margin,a=this._items.length,r=!this.settings.autoWidth,i=[];for(e.items={merge:!1,width:n};a--;)t=this._mergers[a],t=this.settings.mergeFit&&Math.min(t,this.settings.items)||t,e.items.merge=1<t||e.items.merge,i[a]=r?n*t:this._items[a].width();this._widths=i}},{filter:["items","settings"],run:function(){var e=[],t=this._items,n=this.settings,a=Math.max(2*n.items,4),r=2*Math.ceil(t.length/2),i=n.loop&&t.length?n.rewind?a:Math.max(a,r):0,o="",s="";for(i/=2;i--;)e.push(this.normalize(e.length/2,!0)),o+=t[e[e.length-1]][0].outerHTML,e.push(this.normalize(t.length-1-(e.length-1)/2,!0)),s=t[e[e.length-1]][0].outerHTML+s;this._clones=e,l(o).addClass("cloned").appendTo(this.$stage),l(s).addClass("cloned").prependTo(this.$stage)}},{filter:["width","items","settings"],run:function(){for(var e,t,n=this.settings.rtl?1:-1,a=this._clones.length+this._items.length,r=-1,i=[];++r<a;)e=i[r-1]||0,t=this._widths[this.relative(r)]+this.settings.margin,i.push(e+t*n);this._coordinates=i}},{filter:["width","items","settings"],run:function(){var e=this.settings.stagePadding,t=this._coordinates,t={width:Math.ceil(Math.abs(t[t.length-1]))+2*e,"padding-left":e||"","padding-right":e||""};this.$stage.css(t)}},{filter:["width","items","settings"],run:function(e){var t=this._coordinates.length,n=!this.settings.autoWidth,a=this.$stage.children();if(n&&e.items.merge)for(;t--;)e.css.width=this._widths[this.relative(t)],a.eq(t).css(e.css);else n&&(e.css.width=e.items.width,a.css(e.css))}},{filter:["items"],run:function(){this._coordinates.length<1&&this.$stage.removeAttr("style")}},{filter:["width","items","settings"],run:function(e){e.current=e.current?this.$stage.children().index(e.current):0,e.current=Math.max(this.minimum(),Math.min(this.maximum(),e.current)),this.reset(e.current)}},{filter:["position"],run:function(){this.animate(this.coordinates(this._current))}},{filter:["width","position","items","settings"],run:function(){for(var e,t,n=this.settings.rtl?1:-1,a=2*this.settings.stagePadding,r=this.coordinates(this.current())+a,i=r+this.width()*n,o=[],s=0,l=this._coordinates.length;s<l;s++)e=this._coordinates[s-1]||0,t=Math.abs(this._coordinates[s])+a*n,(this.op(e,"<=",r)&&this.op(e,">",i)||this.op(t,"<",r)&&this.op(t,">",i))&&o.push(s);this.$stage.children(".active").removeClass("active"),this.$stage.children(":eq("+o.join("), :eq(")+")").addClass("active"),this.settings.center&&(this.$stage.children(".center").removeClass("center"),this.$stage.children().eq(this.current()).addClass("center"))}}],c.prototype.initialize=function(){var e,t;this.enter("initializing"),this.trigger("initialize"),this.$element.toggleClass(this.settings.rtlClass,this.settings.rtl),this.settings.autoWidth&&!this.is("pre-loading")&&(e=this.$element.find("img"),t=this.settings.nestedItemSelector?"."+this.settings.nestedItemSelector:i,t=this.$element.children(t).width(),e.length)&&t<=0&&this.preloadAutoWidthImages(e),this.$element.addClass(this.options.loadingClass),this.$stage=l("<"+this.settings.stageElement+' class="'+this.settings.stageClass+'"/>').wrap('<div class="'+this.settings.stageOuterClass+'"/>'),this.$element.append(this.$stage.parent()),this.replace(this.$element.children().not(this.$stage.parent())),this.$element.is(":visible")?this.refresh():this.invalidate("width"),this.$element.removeClass(this.options.loadingClass).addClass(this.options.loadedClass),this.registerEventHandlers(),this.leave("initializing"),this.trigger("initialized")},c.prototype.setup=function(){var t=this.viewport(),e=this.options.responsive,n=-1,a=null;e?(l.each(e,function(e){e<=t&&n<e&&(n=Number(e))}),"function"==typeof(a=l.extend({},this.options,e[n])).stagePadding&&(a.stagePadding=a.stagePadding()),delete a.responsive,a.responsiveClass&&this.$element.attr("class",this.$element.attr("class").replace(new RegExp("("+this.options.responsiveClass+"-)\\S+\\s","g"),"$1"+n))):a=l.extend({},this.options),this.trigger("change",{property:{name:"settings",value:a}}),this._breakpoint=n,this.settings=a,this.invalidate("settings"),this.trigger("changed",{property:{name:"settings",value:this.settings}})},c.prototype.optionsLogic=function(){this.settings.autoWidth&&(this.settings.stagePadding=!1,this.settings.merge=!1)},c.prototype.prepare=function(e){var t=this.trigger("prepare",{content:e});return t.data||(t.data=l("<"+this.settings.itemElement+"/>").addClass(this.options.itemClass).append(e)),this.trigger("prepared",{content:t.data}),t.data},c.prototype.update=function(){for(var e=0,t=this._pipe.length,n=l.proxy(function(e){return this[e]},this._invalidated),a={};e<t;)(this._invalidated.all||0<l.grep(this._pipe[e].filter,n).length)&&this._pipe[e].run(a),e++;this._invalidated={},this.is("valid")||this.enter("valid")},c.prototype.width=function(e){switch(e=e||c.Width.Default){case c.Width.Inner:case c.Width.Outer:return this._width;default:return this._width-2*this.settings.stagePadding+this.settings.margin}},c.prototype.refresh=function(){this.enter("refreshing"),this.trigger("refresh"),this.setup(),this.optionsLogic(),this.$element.addClass(this.options.refreshClass),this.update(),this.$element.removeClass(this.options.refreshClass),this.leave("refreshing"),this.trigger("refreshed")},c.prototype.onThrottledResize=function(){n.clearTimeout(this.resizeTimer),this.resizeTimer=n.setTimeout(this._handlers.onResize,this.settings.responsiveRefreshRate)},c.prototype.onResize=function(){return!!this._items.length&&this._width!==this.$element.width()&&!!this.$element.is(":visible")&&(this.enter("resizing"),this.trigger("resize").isDefaultPrevented()?(this.leave("resizing"),!1):(this.invalidate("width"),this.refresh(),this.leave("resizing"),void this.trigger("resized")))},c.prototype.registerEventHandlers=function(){l.support.transition&&this.$stage.on(l.support.transition.end+".owl.core",l.proxy(this.onTransitionEnd,this)),!1!==this.settings.responsive&&this.on(n,"resize",this._handlers.onThrottledResize),this.settings.mouseDrag&&(this.$element.addClass(this.options.dragClass),this.$stage.on("mousedown.owl.core",l.proxy(this.onDragStart,this)),this.$stage.on("dragstart.owl.core selectstart.owl.core",function(){return!1})),this.settings.touchDrag&&(this.$stage.on("touchstart.owl.core",l.proxy(this.onDragStart,this)),this.$stage.on("touchcancel.owl.core",l.proxy(this.onDragEnd,this)))},c.prototype.onDragStart=function(e){var t=null;3!==e.which&&(t=l.support.transform?{x:(t=this.$stage.css("transform").replace(/.*\(|\)| /g,"").split(","))[16===t.length?12:4],y:t[16===t.length?13:5]}:(t=this.$stage.position(),{x:this.settings.rtl?t.left+this.$stage.width()-this.width()+this.settings.margin:t.left,y:t.top}),this.is("animating")&&(l.support.transform?this.animate(t.x):this.$stage.stop(),this.invalidate("position")),this.$element.toggleClass(this.options.grabClass,"mousedown"===e.type),this.speed(0),this._drag.time=(new Date).getTime(),this._drag.target=l(e.target),this._drag.stage.start=t,this._drag.stage.current=t,this._drag.pointer=this.pointer(e),l(a).on("mouseup.owl.core touchend.owl.core",l.proxy(this.onDragEnd,this)),l(a).one("mousemove.owl.core touchmove.owl.core",l.proxy(function(e){var t=this.difference(this._drag.pointer,this.pointer(e));l(a).on("mousemove.owl.core touchmove.owl.core",l.proxy(this.onDragMove,this)),Math.abs(t.x)<Math.abs(t.y)&&this.is("valid")||(e.preventDefault(),this.enter("dragging"),this.trigger("drag"))},this)))},c.prototype.onDragMove=function(e){var t=null,n=null,a=this.difference(this._drag.pointer,this.pointer(e)),r=this.difference(this._drag.stage.start,a);this.is("dragging")&&(e.preventDefault(),this.settings.loop?(t=this.coordinates(this.minimum()),n=this.coordinates(this.maximum()+1)-t,r.x=((r.x-t)%n+n)%n+t):(t=this.settings.rtl?this.coordinates(this.maximum()):this.coordinates(this.minimum()),n=this.settings.rtl?this.coordinates(this.minimum()):this.coordinates(this.maximum()),e=this.settings.pullDrag?-1*a.x/5:0,r.x=Math.max(Math.min(r.x,t+e),n+e)),this._drag.stage.current=r,this.animate(r.x))},c.prototype.onDragEnd=function(e){var e=this.difference(this._drag.pointer,this.pointer(e)),t=this._drag.stage.current,n=0<e.x^this.settings.rtl?"left":"right";l(a).off(".owl.core"),this.$element.removeClass(this.options.grabClass),(0!==e.x&&this.is("dragging")||!this.is("valid"))&&(this.speed(this.settings.dragEndSpeed||this.settings.smartSpeed),this.current(this.closest(t.x,0!==e.x?n:this._drag.direction)),this.invalidate("position"),this.update(),this._drag.direction=n,3<Math.abs(e.x)||300<(new Date).getTime()-this._drag.time)&&this._drag.target.one("click.owl.core",function(){return!1}),this.is("dragging")&&(this.leave("dragging"),this.trigger("dragged"))},c.prototype.closest=function(n,a){var r=-1,i=this.width(),o=this.coordinates();return this.settings.freeDrag||l.each(o,l.proxy(function(e,t){return"left"===a&&t-30<n&&n<t+30?r=e:"right"===a&&t-i-30<n&&n<t-i+30?r=e+1:this.op(n,"<",t)&&this.op(n,">",o[e+1]||t-i)&&(r="left"===a?e+1:e),-1===r},this)),this.settings.loop||(this.op(n,">",o[this.minimum()])?r=n=this.minimum():this.op(n,"<",o[this.maximum()])&&(r=n=this.maximum())),r},c.prototype.animate=function(e){var t=0<this.speed();this.is("animating")&&this.onTransitionEnd(),t&&(this.enter("animating"),this.trigger("translate")),l.support.transform3d&&l.support.transition?this.$stage.css({transform:"translate3d("+e+"px,0px,0px)",transition:this.speed()/1e3+"s"}):t?this.$stage.animate({left:e+"px"},this.speed(),this.settings.fallbackEasing,l.proxy(this.onTransitionEnd,this)):this.$stage.css({left:e+"px"})},c.prototype.is=function(e){return this._states.current[e]&&0<this._states.current[e]},c.prototype.current=function(e){if(e!==i){if(0===this._items.length)return i;var t;e=this.normalize(e),this._current!==e&&((t=this.trigger("change",{property:{name:"position",value:e}})).data!==i&&(e=this.normalize(t.data)),this._current=e,this.invalidate("position"),this.trigger("changed",{property:{name:"position",value:this._current}}))}return this._current},c.prototype.invalidate=function(e){return"string"===l.type(e)&&(this._invalidated[e]=!0,this.is("valid"))&&this.leave("valid"),l.map(this._invalidated,function(e,t){return t})},c.prototype.reset=function(e){(e=this.normalize(e))!==i&&(this._speed=0,this._current=e,this.suppress(["translate","translated"]),this.animate(this.coordinates(e)),this.release(["translate","translated"]))},c.prototype.normalize=function(e,t){var n=this._items.length,t=t?0:this._clones.length;return!this.isNumeric(e)||n<1?e=i:(e<0||n+t<=e)&&(e=((e-t/2)%n+n)%n+t/2),e},c.prototype.relative=function(e){return e-=this._clones.length/2,this.normalize(e,!0)},c.prototype.maximum=function(e){var t,n,a,r=this.settings,i=this._coordinates.length;if(r.loop)i=this._clones.length/2+this._items.length-1;else if(r.autoWidth||r.merge){for(t=this._items.length,n=this._items[--t].width(),a=this.$element.width();t--&&!(a<(n+=this._items[t].width()+this.settings.margin)););i=t+1}else i=r.center?this._items.length-1:this._items.length-r.items;return e&&(i-=this._clones.length/2),Math.max(i,0)},c.prototype.minimum=function(e){return e?0:this._clones.length/2},c.prototype.items=function(e){return e===i?this._items.slice():(e=this.normalize(e,!0),this._items[e])},c.prototype.mergers=function(e){return e===i?this._mergers.slice():(e=this.normalize(e,!0),this._mergers[e])},c.prototype.clones=function(n){function a(e){return e%2==0?r+e/2:t-(e+1)/2}var t=this._clones.length/2,r=t+this._items.length;return n===i?l.map(this._clones,function(e,t){return a(t)}):l.map(this._clones,function(e,t){return e===n?a(t):null})},c.prototype.speed=function(e){return e!==i&&(this._speed=e),this._speed},c.prototype.coordinates=function(e){var t,n=1,a=e-1;return e===i?l.map(this._coordinates,l.proxy(function(e,t){return this.coordinates(t)},this)):(this.settings.center?(this.settings.rtl&&(n=-1,a=e+1),t=this._coordinates[e],t+=(this.width()-t+(this._coordinates[a]||0))/2*n):t=this._coordinates[a]||0,Math.ceil(t))},c.prototype.duration=function(e,t,n){return 0===n?0:Math.min(Math.max(Math.abs(t-e),1),6)*Math.abs(n||this.settings.smartSpeed)},c.prototype.to=function(e,t){var n=this.current(),a=e-this.relative(n),r=(0<a)-(a<0),i=this._items.length,o=this.minimum(),s=this.maximum();this.settings.loop?(!this.settings.rewind&&Math.abs(a)>i/2&&(a+=-1*r*i),(r=(((e=n+a)-o)%i+i)%i+o)!==e&&r-a<=s&&0<r-a&&this.reset(n=(e=r)-a)):e=this.settings.rewind?(e%(s+=1)+s)%s:Math.max(o,Math.min(s,e)),this.speed(this.duration(n,e,t)),this.current(e),this.$element.is(":visible")&&this.update()},c.prototype.next=function(e){e=e||!1,this.to(this.relative(this.current())+1,e)},c.prototype.prev=function(e){e=e||!1,this.to(this.relative(this.current())-1,e)},c.prototype.onTransitionEnd=function(e){if(e!==i&&(e.stopPropagation(),(e.target||e.srcElement||e.originalTarget)!==this.$stage.get(0)))return!1;this.leave("animating"),this.trigger("translated")},c.prototype.viewport=function(){var e;if(this.options.responsiveBaseElement!==n)e=l(this.options.responsiveBaseElement).width();else if(n.innerWidth)e=n.innerWidth;else{if(!a.documentElement||!a.documentElement.clientWidth)throw"Can not detect viewport width.";e=a.documentElement.clientWidth}return e},c.prototype.replace=function(e){this.$stage.empty(),this._items=[],e=e&&(e instanceof jQuery?e:l(e)),(e=this.settings.nestedItemSelector?e.find("."+this.settings.nestedItemSelector):e).filter(function(){return 1===this.nodeType}).each(l.proxy(function(e,t){t=this.prepare(t),this.$stage.append(t),this._items.push(t),this._mergers.push(+t.find("[data-merge]").addBack("[data-merge]").attr("data-merge")||1)},this)),this.reset(this.isNumeric(this.settings.startPosition)?this.settings.startPosition:0),this.invalidate("items")},c.prototype.add=function(e,t){var n=this.relative(this._current);t=t===i?this._items.length:this.normalize(t,!0),e=e instanceof jQuery?e:l(e),this.trigger("add",{content:e,position:t}),e=this.prepare(e),0===this._items.length||t===this._items.length?(0===this._items.length&&this.$stage.append(e),0!==this._items.length&&this._items[t-1].after(e),this._items.push(e),this._mergers.push(+e.find("[data-merge]").addBack("[data-merge]").attr("data-merge")||1)):(this._items[t].before(e),this._items.splice(t,0,e),this._mergers.splice(t,0,+e.find("[data-merge]").addBack("[data-merge]").attr("data-merge")||1)),this._items[n]&&this.reset(this._items[n].index()),this.invalidate("items"),this.trigger("added",{content:e,position:t})},c.prototype.remove=function(e){(e=this.normalize(e,!0))!==i&&(this.trigger("remove",{content:this._items[e],position:e}),this._items[e].remove(),this._items.splice(e,1),this._mergers.splice(e,1),this.invalidate("items"),this.trigger("removed",{content:null,position:e}))},c.prototype.preloadAutoWidthImages=function(e){e.each(l.proxy(function(e,t){this.enter("pre-loading"),t=l(t),l(new Image).one("load",l.proxy(function(e){t.attr("src",e.target.src),t.css("opacity",1),this.leave("pre-loading"),this.refresh()},this)).attr("src",t.attr("src")||t.attr("data-src")||t.attr("data-src-retina"))},this))},c.prototype.destroy=function(){for(var e in this.$element.off(".owl.core"),this.$stage.off(".owl.core"),l(a).off(".owl.core"),!1!==this.settings.responsive&&(n.clearTimeout(this.resizeTimer),this.off(n,"resize",this._handlers.onThrottledResize)),this._plugins)this._plugins[e].destroy();this.$stage.children(".cloned").remove(),this.$stage.unwrap(),this.$stage.children().contents().unwrap(),this.$stage.children().unwrap(),this.$element.removeClass(this.options.refreshClass).removeClass(this.options.loadingClass).removeClass(this.options.loadedClass).removeClass(this.options.rtlClass).removeClass(this.options.dragClass).removeClass(this.options.grabClass).attr("class",this.$element.attr("class").replace(new RegExp(this.options.responsiveClass+"-\\S+\\s","g"),"")).removeData("owl.carousel")},c.prototype.op=function(e,t,n){var a=this.settings.rtl;switch(t){case"<":return a?n<e:e<n;case">":return a?e<n:n<e;case">=":return a?e<=n:n<=e;case"<=":return a?n<=e:e<=n}},c.prototype.on=function(e,t,n,a){e.addEventListener?e.addEventListener(t,n,a):e.attachEvent&&e.attachEvent("on"+t,n)},c.prototype.off=function(e,t,n,a){e.removeEventListener?e.removeEventListener(t,n,a):e.detachEvent&&e.detachEvent("on"+t,n)},c.prototype.trigger=function(e,t,n,a,r){var i={item:{count:this._items.length,index:this.current()}},o=l.camelCase(l.grep(["on",e,n],function(e){return e}).join("-").toLowerCase()),s=l.Event([e,"owl",n||"carousel"].join(".").toLowerCase(),l.extend({relatedTarget:this},i,t));return this._supress[e]||(l.each(this._plugins,function(e,t){t.onTrigger&&t.onTrigger(s)}),this.register({type:c.Type.Event,name:e}),this.$element.trigger(s),this.settings&&"function"==typeof this.settings[o]&&this.settings[o].call(this,s)),s},c.prototype.enter=function(e){l.each([e].concat(this._states.tags[e]||[]),l.proxy(function(e,t){this._states.current[t]===i&&(this._states.current[t]=0),this._states.current[t]++},this))},c.prototype.leave=function(e){l.each([e].concat(this._states.tags[e]||[]),l.proxy(function(e,t){this._states.current[t]--},this))},c.prototype.register=function(n){var t;n.type===c.Type.Event?(l.event.special[n.name]||(l.event.special[n.name]={}),l.event.special[n.name].owl||(t=l.event.special[n.name]._default,l.event.special[n.name]._default=function(e){return!t||!t.apply||e.namespace&&-1!==e.namespace.indexOf("owl")?e.namespace&&-1<e.namespace.indexOf("owl"):t.apply(this,arguments)},l.event.special[n.name].owl=!0)):n.type===c.Type.State&&(this._states.tags[n.name]?this._states.tags[n.name]=this._states.tags[n.name].concat(n.tags):this._states.tags[n.name]=n.tags,this._states.tags[n.name]=l.grep(this._states.tags[n.name],l.proxy(function(e,t){return l.inArray(e,this._states.tags[n.name])===t},this)))},c.prototype.suppress=function(e){l.each(e,l.proxy(function(e,t){this._supress[t]=!0},this))},c.prototype.release=function(e){l.each(e,l.proxy(function(e,t){delete this._supress[t]},this))},c.prototype.pointer=function(e){var t={x:null,y:null};return(e=(e=e.originalEvent||e||n.event).touches&&e.touches.length?e.touches[0]:e.changedTouches&&e.changedTouches.length?e.changedTouches[0]:e).pageX?(t.x=e.pageX,t.y=e.pageY):(t.x=e.clientX,t.y=e.clientY),t},c.prototype.isNumeric=function(e){return!isNaN(parseFloat(e))},c.prototype.difference=function(e,t){return{x:e.x-t.x,y:e.y-t.y}},l.fn.owlCarousel=function(t){var a=Array.prototype.slice.call(arguments,1);return this.each(function(){var e=l(this),n=e.data("owl.carousel");n||(n=new c(this,"object"==typeof t&&t),e.data("owl.carousel",n),l.each(["next","prev","to","destroy","refresh","replace","add","remove"],function(e,t){n.register({type:c.Type.Event,name:t}),n.$element.on(t+".owl.carousel.core",l.proxy(function(e){e.namespace&&e.relatedTarget!==this&&(this.suppress([t]),n[t].apply(this,[].slice.call(arguments,1)),this.release([t]))},n))})),"string"==typeof t&&"_"!==t.charAt(0)&&n[t].apply(n,a)})},l.fn.owlCarousel.Constructor=c})(window.Zepto||window.jQuery,window,document),((t,n)=>{function a(e){this._core=e,this._interval=null,this._visible=null,this._handlers={"initialized.owl.carousel":t.proxy(function(e){e.namespace&&this._core.settings.autoRefresh&&this.watch()},this)},this._core.options=t.extend({},a.Defaults,this._core.options),this._core.$element.on(this._handlers)}a.Defaults={autoRefresh:!0,autoRefreshInterval:500},a.prototype.watch=function(){this._interval||(this._visible=this._core.$element.is(":visible"),this._interval=n.setInterval(t.proxy(this.refresh,this),this._core.settings.autoRefreshInterval))},a.prototype.refresh=function(){this._core.$element.is(":visible")!==this._visible&&(this._visible=!this._visible,this._core.$element.toggleClass("owl-hidden",!this._visible),this._visible)&&this._core.invalidate("width")&&this._core.refresh()},a.prototype.destroy=function(){var e,t;for(e in n.clearInterval(this._interval),this._handlers)this._core.$element.off(e,this._handlers[e]);for(t in Object.getOwnPropertyNames(this))"function"!=typeof this[t]&&(this[t]=null)},t.fn.owlCarousel.Constructor.Plugins.AutoRefresh=a})(window.Zepto||window.jQuery,window,document),((s,r)=>{function t(e){this._core=e,this._loaded=[],this._handlers={"initialized.owl.carousel change.owl.carousel resized.owl.carousel":s.proxy(function(e){if(e.namespace&&this._core.settings&&this._core.settings.lazyLoad&&(e.property&&"position"==e.property.name||"initialized"==e.type))for(var t=this._core.settings,n=t.center&&Math.ceil(t.items/2)||t.items,a=t.center&&-1*n||0,r=(e.property&&void 0!==e.property.value?e.property.value:this._core.current())+a,i=this._core.clones().length,o=s.proxy(function(e,t){this.load(t)},this);a++<n;)this.load(i/2+this._core.relative(r)),i&&s.each(this._core.clones(this._core.relative(r)),o),r++},this)},this._core.options=s.extend({},t.Defaults,this._core.options),this._core.$element.on(this._handlers)}t.Defaults={lazyLoad:!1},t.prototype.load=function(e){var e=this._core.$stage.children().eq(e),t=e&&e.find(".owl-lazy");!t||-1<s.inArray(e.get(0),this._loaded)||(t.each(s.proxy(function(e,t){var n=s(t),a=1<r.devicePixelRatio&&n.attr("data-src-retina")||n.attr("data-src");this._core.trigger("load",{element:n,url:a},"lazy"),n.is("img")?n.one("load.owl.lazy",s.proxy(function(){n.css("opacity",1),this._core.trigger("loaded",{element:n,url:a},"lazy")},this)).attr("src",a):((t=new Image).onload=s.proxy(function(){n.css({"background-image":"url("+a+")",opacity:"1"}),this._core.trigger("loaded",{element:n,url:a},"lazy")},this),t.src=a)},this)),this._loaded.push(e.get(0)))},t.prototype.destroy=function(){var e,t;for(e in this.handlers)this._core.$element.off(e,this.handlers[e]);for(t in Object.getOwnPropertyNames(this))"function"!=typeof this[t]&&(this[t]=null)},s.fn.owlCarousel.Constructor.Plugins.Lazy=t})(window.Zepto||window.jQuery,window,document),(a=>{function t(e){this._core=e,this._handlers={"initialized.owl.carousel refreshed.owl.carousel":a.proxy(function(e){e.namespace&&this._core.settings.autoHeight&&this.update()},this),"changed.owl.carousel":a.proxy(function(e){e.namespace&&this._core.settings.autoHeight&&"position"==e.property.name&&this.update()},this),"loaded.owl.lazy":a.proxy(function(e){e.namespace&&this._core.settings.autoHeight&&e.element.closest("."+this._core.settings.itemClass).index()===this._core.current()&&this.update()},this)},this._core.options=a.extend({},t.Defaults,this._core.options),this._core.$element.on(this._handlers)}t.Defaults={autoHeight:!1,autoHeightClass:"owl-height"},t.prototype.update=function(){var e=this._core._current,t=e+this._core.settings.items,e=this._core.$stage.children().toArray().slice(e,t),n=[];a.each(e,function(e,t){n.push(a(t).height())}),t=Math.max.apply(null,n),this._core.$stage.parent().height(t).addClass(this._core.settings.autoHeightClass)},t.prototype.destroy=function(){var e,t;for(e in this._handlers)this._core.$element.off(e,this._handlers[e]);for(t in Object.getOwnPropertyNames(this))"function"!=typeof this[t]&&(this[t]=null)},a.fn.owlCarousel.Constructor.Plugins.AutoHeight=t})(window.Zepto||window.jQuery,document),((u,t)=>{function n(e){this._core=e,this._videos={},this._playing=null,this._handlers={"initialized.owl.carousel":u.proxy(function(e){e.namespace&&this._core.register({type:"state",name:"playing",tags:["interacting"]})},this),"resize.owl.carousel":u.proxy(function(e){e.namespace&&this._core.settings.video&&this.isInFullScreen()&&e.preventDefault()},this),"refreshed.owl.carousel":u.proxy(function(e){e.namespace&&this._core.is("resizing")&&this._core.$stage.find(".cloned .owl-video-frame").remove()},this),"changed.owl.carousel":u.proxy(function(e){e.namespace&&"position"===e.property.name&&this._playing&&this.stop()},this),"prepared.owl.carousel":u.proxy(function(e){var t;e.namespace&&(t=u(e.content).find(".owl-video")).length&&(t.css("display","none"),this.fetch(t,u(e.content)))},this)},this._core.options=u.extend({},n.Defaults,this._core.options),this._core.$element.on(this._handlers),this._core.$element.on("click.owl.video",".owl-video-play-icon",u.proxy(function(e){this.play(e)},this))}n.Defaults={video:!1,videoHeight:!1,videoWidth:!1},n.prototype.fetch=function(e,t){var n=e.attr("data-vimeo-id")?"vimeo":e.attr("data-vzaar-id")?"vzaar":"youtube",a=e.attr("data-vimeo-id")||e.attr("data-youtube-id")||e.attr("data-vzaar-id"),r=e.attr("data-width")||this._core.settings.videoWidth,i=e.attr("data-height")||this._core.settings.videoHeight,o=e.attr("href");if(!o)throw new Error("Missing video URL.");if(-1<(a=o.match(/(http:|https:|)\/\/(player.|www.|app.)?(vimeo\.com|youtu(be\.com|\.be|be\.googleapis\.com)|vzaar\.com)\/(video\/|videos\/|embed\/|channels\/.+\/|groups\/.+\/|watch\?v=|v\/)?([A-Za-z0-9._%-]*)(\&\S+)?/))[3].indexOf("youtu"))n="youtube";else if(-1<a[3].indexOf("vimeo"))n="vimeo";else{if(!(-1<a[3].indexOf("vzaar")))throw new Error("Video URL not supported.");n="vzaar"}a=a[6],this._videos[o]={type:n,id:a,width:r,height:i},t.attr("data-video",o),this.thumbnail(e,this._videos[o])},n.prototype.thumbnail=function(t,e){function n(e){a=c.lazyLoad?'<div class="owl-video-tn '+l+'" '+s+'="'+e+'"></div>':'<div class="owl-video-tn" style="opacity:1;background-image:url('+e+')"></div>',t.after(a),t.after('<div class="owl-video-play-icon"></div>')}var a,r,i=e.width&&e.height?'style="width:'+e.width+"px;height:"+e.height+'px;"':"",o=t.find("img"),s="src",l="",c=this._core.settings;if(t.wrap('<div class="owl-video-wrapper"'+i+"></div>"),this._core.settings.lazyLoad&&(s="data-src",l="owl-lazy"),o.length)return n(o.attr(s)),o.remove(),!1;"youtube"===e.type?(r="//img.youtube.com/vi/"+e.id+"/hqdefault.jpg",n(r)):"vimeo"===e.type?u.ajax({type:"GET",url:"//vimeo.com/api/v2/video/"+e.id+".json",jsonp:"callback",dataType:"jsonp",success:function(e){r=e[0].thumbnail_large,n(r)}}):"vzaar"===e.type&&u.ajax({type:"GET",url:"//vzaar.com/api/videos/"+e.id+".json",jsonp:"callback",dataType:"jsonp",success:function(e){r=e.framegrab_url,n(r)}})},n.prototype.stop=function(){this._core.trigger("stop",null,"video"),this._playing.find(".owl-video-frame").remove(),this._playing.removeClass("owl-video-playing"),this._playing=null,this._core.leave("playing"),this._core.trigger("stopped",null,"video")},n.prototype.play=function(e){var t,e=u(e.target).closest("."+this._core.settings.itemClass),n=this._videos[e.attr("data-video")],a=n.width||"100%",r=n.height||this._core.$stage.height();this._playing||(this._core.enter("playing"),this._core.trigger("play",null,"video"),e=this._core.items(this._core.relative(e.index())),this._core.reset(e.index()),"youtube"===n.type?t='<iframe width="'+a+'" height="'+r+'" src="//www.youtube.com/embed/'+n.id+"?autoplay=1&v="+n.id+'" frameborder="0" allowfullscreen></iframe>':"vimeo"===n.type?t='<iframe src="//player.vimeo.com/video/'+n.id+'?autoplay=1" width="'+a+'" height="'+r+'" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>':"vzaar"===n.type&&(t='<iframe frameborder="0"height="'+r+'"width="'+a+'" allowfullscreen mozallowfullscreen webkitAllowFullScreen src="//view.vzaar.com/'+n.id+'/player?autoplay=true"></iframe>'),u('<div class="owl-video-frame">'+t+"</div>").insertAfter(e.find(".owl-video")),this._playing=e.addClass("owl-video-playing"))},n.prototype.isInFullScreen=function(){var e=t.fullscreenElement||t.mozFullScreenElement||t.webkitFullscreenElement;return e&&u(e).parent().hasClass("owl-video-frame")},n.prototype.destroy=function(){var e,t;for(e in this._core.$element.off("click.owl.video"),this._handlers)this._core.$element.off(e,this._handlers[e]);for(t in Object.getOwnPropertyNames(this))"function"!=typeof this[t]&&(this[t]=null)},u.fn.owlCarousel.Constructor.Plugins.Video=n})(window.Zepto||window.jQuery,document),(o=>{function t(e){this.core=e,this.core.options=o.extend({},t.Defaults,this.core.options),this.swapping=!0,this.previous=void 0,this.next=void 0,this.handlers={"change.owl.carousel":o.proxy(function(e){e.namespace&&"position"==e.property.name&&(this.previous=this.core.current(),this.next=e.property.value)},this),"drag.owl.carousel dragged.owl.carousel translated.owl.carousel":o.proxy(function(e){e.namespace&&(this.swapping="translated"==e.type)},this),"translate.owl.carousel":o.proxy(function(e){e.namespace&&this.swapping&&(this.core.options.animateOut||this.core.options.animateIn)&&this.swap()},this)},this.core.$element.on(this.handlers)}t.Defaults={animateOut:!1,animateIn:!1},t.prototype.swap=function(){var e,t,n,a,r,i;1===this.core.settings.items&&o.support.animation&&o.support.transition&&(this.core.speed(0),t=o.proxy(this.clear,this),n=this.core.$stage.children().eq(this.previous),a=this.core.$stage.children().eq(this.next),r=this.core.settings.animateIn,i=this.core.settings.animateOut,this.core.current()!==this.previous)&&(i&&(e=this.core.coordinates(this.previous)-this.core.coordinates(this.next),n.one(o.support.animation.end,t).css({left:e+"px"}).addClass("animated owl-animated-out").addClass(i)),r)&&a.one(o.support.animation.end,t).addClass("animated owl-animated-in").addClass(r)},t.prototype.clear=function(e){o(e.target).css({left:""}).removeClass("animated owl-animated-out owl-animated-in").removeClass(this.core.settings.animateIn).removeClass(this.core.settings.animateOut),this.core.onTransitionEnd()},t.prototype.destroy=function(){var e,t;for(e in this.handlers)this.core.$element.off(e,this.handlers[e]);for(t in Object.getOwnPropertyNames(this))"function"!=typeof this[t]&&(this[t]=null)},o.fn.owlCarousel.Constructor.Plugins.Animate=t})(window.Zepto||window.jQuery,document),((n,a,r)=>{function t(e){this._core=e,this._timeout=null,this._paused=!1,this._handlers={"changed.owl.carousel":n.proxy(function(e){e.namespace&&"settings"===e.property.name?this._core.settings.autoplay?this.play():this.stop():e.namespace&&"position"===e.property.name&&this._core.settings.autoplay&&this._setAutoPlayInterval()},this),"initialized.owl.carousel":n.proxy(function(e){e.namespace&&this._core.settings.autoplay&&this.play()},this),"play.owl.autoplay":n.proxy(function(e,t,n){e.namespace&&this.play(t,n)},this),"stop.owl.autoplay":n.proxy(function(e){e.namespace&&this.stop()},this),"mouseover.owl.autoplay":n.proxy(function(){this._core.settings.autoplayHoverPause&&this._core.is("rotating")&&this.pause()},this),"mouseleave.owl.autoplay":n.proxy(function(){this._core.settings.autoplayHoverPause&&this._core.is("rotating")&&this.play()},this),"touchstart.owl.core":n.proxy(function(){this._core.settings.autoplayHoverPause&&this._core.is("rotating")&&this.pause()},this),"touchend.owl.core":n.proxy(function(){this._core.settings.autoplayHoverPause&&this.play()},this)},this._core.$element.on(this._handlers),this._core.options=n.extend({},t.Defaults,this._core.options)}t.Defaults={autoplay:!1,autoplayTimeout:5e3,autoplayHoverPause:!1,autoplaySpeed:!1},t.prototype.play=function(e,t){this._paused=!1,this._core.is("rotating")||(this._core.enter("rotating"),this._setAutoPlayInterval())},t.prototype._getNextTimeout=function(e,t){return this._timeout&&a.clearTimeout(this._timeout),a.setTimeout(n.proxy(function(){this._paused||this._core.is("busy")||this._core.is("interacting")||r.hidden||this._core.next(t||this._core.settings.autoplaySpeed)},this),e||this._core.settings.autoplayTimeout)},t.prototype._setAutoPlayInterval=function(){this._timeout=this._getNextTimeout()},t.prototype.stop=function(){this._core.is("rotating")&&(a.clearTimeout(this._timeout),this._core.leave("rotating"))},t.prototype.pause=function(){this._core.is("rotating")&&(this._paused=!0)},t.prototype.destroy=function(){var e,t;for(e in this.stop(),this._handlers)this._core.$element.off(e,this._handlers[e]);for(t in Object.getOwnPropertyNames(this))"function"!=typeof this[t]&&(this[t]=null)},n.fn.owlCarousel.Constructor.Plugins.autoplay=t})(window.Zepto||window.jQuery,window,document),(r=>{function t(e){this._core=e,this._initialized=!1,this._pages=[],this._controls={},this._templates=[],this.$element=this._core.$element,this._overrides={next:this._core.next,prev:this._core.prev,to:this._core.to},this._handlers={"prepared.owl.carousel":r.proxy(function(e){e.namespace&&this._core.settings.dotsData&&this._templates.push('<div class="'+this._core.settings.dotClass+'">'+r(e.content).find("[data-dot]").addBack("[data-dot]").attr("data-dot")+"</div>")},this),"added.owl.carousel":r.proxy(function(e){e.namespace&&this._core.settings.dotsData&&this._templates.splice(e.position,0,this._templates.pop())},this),"remove.owl.carousel":r.proxy(function(e){e.namespace&&this._core.settings.dotsData&&this._templates.splice(e.position,1)},this),"changed.owl.carousel":r.proxy(function(e){e.namespace&&"position"==e.property.name&&this.draw()},this),"initialized.owl.carousel":r.proxy(function(e){e.namespace&&!this._initialized&&(this._core.trigger("initialize",null,"navigation"),this.initialize(),this.update(),this.draw(),this._initialized=!0,this._core.trigger("initialized",null,"navigation"))},this),"refreshed.owl.carousel":r.proxy(function(e){e.namespace&&this._initialized&&(this._core.trigger("refresh",null,"navigation"),this.update(),this.draw(),this._core.trigger("refreshed",null,"navigation"))},this)},this._core.options=r.extend({},t.Defaults,this._core.options),this.$element.on(this._handlers)}t.Defaults={nav:!1,navText:["prev","next"],navSpeed:!1,navElement:"div",navContainer:!1,navContainerClass:"owl-nav",navClass:["owl-prev","owl-next"],slideBy:1,dotClass:"owl-dot",dotsClass:"owl-dots",dots:!0,dotsEach:!1,dotsData:!1,dotsSpeed:!1,dotsContainer:!1},t.prototype.initialize=function(){var e,n=this._core.settings;for(e in this._controls.$relative=(n.navContainer?r(n.navContainer):r("<div>").addClass(n.navContainerClass).appendTo(this.$element)).addClass("disabled"),this._controls.$previous=r("<"+n.navElement+">").addClass(n.navClass[0]).html(n.navText[0]).prependTo(this._controls.$relative).on("click",r.proxy(function(e){this.prev(n.navSpeed)},this)),this._controls.$next=r("<"+n.navElement+">").addClass(n.navClass[1]).html(n.navText[1]).appendTo(this._controls.$relative).on("click",r.proxy(function(e){this.next(n.navSpeed)},this)),n.dotsData||(this._templates=[r("<div>").addClass(n.dotClass).append(r("<span>")).prop("outerHTML")]),this._controls.$absolute=(n.dotsContainer?r(n.dotsContainer):r("<div>").addClass(n.dotsClass).appendTo(this.$element)).addClass("disabled"),this._controls.$absolute.on("click","div",r.proxy(function(e){var t=(r(e.target).parent().is(this._controls.$absolute)?r(e.target):r(e.target).parent()).index();e.preventDefault(),this.to(t,n.dotsSpeed)},this)),this._overrides)this._core[e]=r.proxy(this[e],this)},t.prototype.destroy=function(){var e,t,n,a;for(e in this._handlers)this.$element.off(e,this._handlers[e]);for(t in this._controls)this._controls[t].remove();for(a in this.overides)this._core[a]=this._overrides[a];for(n in Object.getOwnPropertyNames(this))"function"!=typeof this[n]&&(this[n]=null)},t.prototype.update=function(){var e,t,n=this._core.clones().length/2,a=n+this._core.items().length,r=this._core.maximum(!0),i=this._core.settings,o=i.center||i.autoWidth||i.dotsData?1:i.dotsEach||i.items;if("page"!==i.slideBy&&(i.slideBy=Math.min(i.slideBy,i.items)),i.dots||"page"==i.slideBy)for(this._pages=[],e=n,t=0;e<a;e++){if(o<=t||0===t){if(this._pages.push({start:Math.min(r,e-n),end:e-n+o-1}),Math.min(r,e-n)===r)break;t=0,0}t+=this._core.mergers(this._core.relative(e))}},t.prototype.draw=function(){var e=this._core.settings,t=this._core.items().length<=e.items,n=this._core.relative(this._core.current()),a=e.loop||e.rewind;this._controls.$relative.toggleClass("disabled",!e.nav||t),e.nav&&(this._controls.$previous.toggleClass("disabled",!a&&n<=this._core.minimum(!0)),this._controls.$next.toggleClass("disabled",!a&&n>=this._core.maximum(!0))),this._controls.$absolute.toggleClass("disabled",!e.dots||t),e.dots&&(a=this._pages.length-this._controls.$absolute.children().length,e.dotsData&&0!=a?this._controls.$absolute.html(this._templates.join("")):0<a?this._controls.$absolute.append(new Array(1+a).join(this._templates[0])):a<0&&this._controls.$absolute.children().slice(a).remove(),this._controls.$absolute.find(".active").removeClass("active"),this._controls.$absolute.children().eq(r.inArray(this.current(),this._pages)).addClass("active"))},t.prototype.onTrigger=function(e){var t=this._core.settings;e.page={index:r.inArray(this.current(),this._pages),count:this._pages.length,size:t&&(t.center||t.autoWidth||t.dotsData?1:t.dotsEach||t.items)}},t.prototype.current=function(){var n=this._core.relative(this._core.current());return r.grep(this._pages,r.proxy(function(e,t){return e.start<=n&&e.end>=n},this)).pop()},t.prototype.getPosition=function(e){var t,n,a=this._core.settings;return"page"==a.slideBy?(t=r.inArray(this.current(),this._pages),n=this._pages.length,e?++t:--t,t=this._pages[(t%n+n)%n].start):(t=this._core.relative(this._core.current()),n=this._core.items().length,e?t+=a.slideBy:t-=a.slideBy),t},t.prototype.next=function(e){r.proxy(this._overrides.to,this._core)(this.getPosition(!0),e)},t.prototype.prev=function(e){r.proxy(this._overrides.to,this._core)(this.getPosition(!1),e)},t.prototype.to=function(e,t,n){!n&&this._pages.length?(n=this._pages.length,r.proxy(this._overrides.to,this._core)(this._pages[(e%n+n)%n].start,t)):r.proxy(this._overrides.to,this._core)(e,t)},r.fn.owlCarousel.Constructor.Plugins.Navigation=t})(window.Zepto||window.jQuery,document),((a,r)=>{function t(e){this._core=e,this._hashes={},this.$element=this._core.$element,this._handlers={"initialized.owl.carousel":a.proxy(function(e){e.namespace&&"URLHash"===this._core.settings.startPosition&&a(r).trigger("hashchange.owl.navigation")},this),"prepared.owl.carousel":a.proxy(function(e){var t;e.namespace&&(t=a(e.content).find("[data-hash]").addBack("[data-hash]").attr("data-hash"))&&(this._hashes[t]=e.content)},this),"changed.owl.carousel":a.proxy(function(e){var n;e.namespace&&"position"===e.property.name&&(n=this._core.items(this._core.relative(this._core.current())),e=a.map(this._hashes,function(e,t){return e===n?t:null}).join())&&r.location.hash.slice(1)!==e&&(r.location.hash=e)},this)},this._core.options=a.extend({},t.Defaults,this._core.options),this.$element.on(this._handlers),a(r).on("hashchange.owl.navigation",a.proxy(function(e){var t=r.location.hash.substring(1),n=this._core.$stage.children(),n=this._hashes[t]&&n.index(this._hashes[t]);void 0!==n&&n!==this._core.current()&&this._core.to(this._core.relative(n),!1,!0)},this))}t.Defaults={URLhashListener:!1},t.prototype.destroy=function(){var e,t;for(e in a(r).off("hashchange.owl.navigation"),this._handlers)this._core.$element.off(e,this._handlers[e]);for(t in Object.getOwnPropertyNames(this))"function"!=typeof this[t]&&(this[t]=null)},a.fn.owlCarousel.Constructor.Plugins.Hash=t})(window.Zepto||window.jQuery,window,document),(r=>{var i=r("<support>").get(0).style,o="Webkit Moz O ms".split(" "),e={transition:{end:{WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd",transition:"transitionend"}},animation:{end:{WebkitAnimation:"webkitAnimationEnd",MozAnimation:"animationend",OAnimation:"oAnimationEnd",animation:"animationend"}}},t=function(){return!!s("transform")},n=function(){return!!s("perspective")},a=function(){return!!s("animation")};function s(e,n){var a=!1,t=e.charAt(0).toUpperCase()+e.slice(1);return r.each((e+" "+o.join(t+" ")+t).split(" "),function(e,t){if(void 0!==i[t])return a=!n||t,!1}),a}function l(e){return s(e,!0)}!function(){return!!s("transition")}()||(r.support.transition=new String(l("transition")),r.support.transition.end=e.transition.end[r.support.transition]),a()&&(r.support.animation=new String(l("animation")),r.support.animation.end=e.animation.end[r.support.animation]),t()&&(r.support.transform=new String(l("transform")),r.support.transform3d=n())})(window.Zepto||window.jQuery,document),window.agRequest={GET:async function(e,t){var n,a="";for(n in t)a+=(""!=a?"&":"")+n+"="+t[n];return e+=-1<e.indexOf("?")?"&":"?"+a,(await fetch(e,{method:"GET",cache:"no-cache",headers:{"Content-Type":"application/json"}})).json()},POST:async function(e,t){var n,a=new URLSearchParams;for(n in t)a.append(n,t[n]);return(await fetch(e,{method:"POST",cache:"no-cache",body:a})).json()}},agora(function(){EnableHJNImport(),EnableYelpImport(),EnableAreaMapImport()}),(async()=>{async function t(){document.querySelectorAll('[data-src]:not(.ag-lazy):not(.no-ag):not([data-src*="{{"])').forEach(function(e,t){e.classList.add("ag-lazy");var n=function(){(async(e,t)=>{var n="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNkYAAAAAYAAjCB0C8AAAAASUVORK5CYII=";if(await(async e=>{let t=e.getBoundingClientRect(),n=document.body,a=document.documentElement,r=window.pageYOffset||a.scrollTop||n.scrollTop,i=(window.pageXOffset||a.scrollLeft||n.scrollLeft,a.clientTop||n.clientTop||0),o=(a.clientLeft||n.clientLeft,t.top+r-i),s=t.bottom+r-i,l=r,c=l+window.innerHeight;return s>l&&o<c})(e)){if(null==e)return;var a=await(async(e,t)=>{var n,a,r;return null==t?null:t.hasAttribute("data-ratio-auto")||"VIDEO"==t.nodeName||"OBJECT"==t.nodeName?{url:e}:null==(n=await async function e(t,n,a,r){if(null==t)return null;var i=t.getBoundingClientRect();var o=t.getAttribute("data-ratio");var s=t.getAttribute("data-scale");null!=s&&(r=parseFloat(s));s=null;o&&null!=o&&null!=(s=/^(?<width>[0-9\.]{1,4}):(?<height>[0-9\.]{1,4})$/gi.exec(o))&&(n=parseFloat(s.groups.width),a=parseFloat(s.groups.height),0==n&&(n=-1),0==a)&&(a=-1);o=i.width;s=i.height;t.classList.contains("ag-lazy")&&(o=t.getAttribute("width"),s=t.getAttribute("height"),o=null==(o=null!=o&&""!=o?o:t.style.width)||""==o?0:parseInt(o.replace(/[^\d]+/gi,"")),s=null==s||""==s?0:parseInt(s.replace(/[^\d]+/gi,"")));o!=s&&(null==o||null==s||s<o/n*a||o<s/a*n)&&(0<o?s=o/n*a:o=s/a*n);if((0<o||n<0)&&(0<s||a<0))return o=Math.floor(o),s=Math.floor(s),{width:n<0?0:o+(10-o%10),height:a<0?0:s+(10-s%10),scale:r};return e(t.parentElement,n,a,r)}(t,16,9,1))?null:(a=/.*\?(.*?(mh|mw)\=(\d+))*/gi.exec(e),r="",null!=t.getAttribute("data-crop")&&(r+="&mode=crop"),e.indexOf("/"),null!=a?{url:e,size:n}:{url:e+"?"+(0<n.width?"mw="+n.width*n.scale+(0<n.height?"&":""):"")+(0<n.height?"mh="+n.height*n.scale:"")+r,size:n})})(e.getAttribute("data-src"),e);e.setAttribute("data-src",a.url),"VIDEO"==e.nodeName||"OBJECT"==e.nodeName||"AUDIO"==e.nodeName?e.setAttribute("src",a.url):"IMG"==e.nodeName?(e.addEventListener("load",function(){e.getAttribute("src")!=n&&e.classList.add("ag-lazy-s")}),e.setAttribute("src",n),null!=a&&(a.size&&(0<a.size.width&&e.setAttribute("width",a.size.width),0<a.size.height)&&e.setAttribute("height",a.size.height),e.setAttribute("src",a.url))):e.style["background-image"]=`url('${a.url}')`,t()}new IntersectionObserver(function(){console.log(e,"View")},{root:null,rootMargin:"0px",threshold:.1})})(e,function(){document.body.removeEventListener("ag.lazy",n)})};document.body.addEventListener("ag.lazy",n),n()})}document.addEventListener("DOMContentLoaded",async function(){document.body.addEventListener("ag.lazy.refresh",t),document.body.addEventListener("ag.refresh",t);var e=new CustomEvent("ag.lazy.refresh"),e=(document.body.dispatchEvent(e),document.addEventListener("scroll",function(e){var t=new CustomEvent("ag.lazy");document.body.dispatchEvent(t)}),new CustomEvent("ag.lazy"));document.body.dispatchEvent(e),window.agLazy={refresh:function(){var e=new CustomEvent("ag.lazy.refresh");document.body.dispatchEvent(e)},validate:function(){var e=new CustomEvent("ag.lazy");document.body.dispatchEvent(e)}}}),window.addEventListener("resize",function(e){document.body.dispatchEvent(new CustomEvent("ag.lazy.refresh"))})})(),(async()=>{null!=document.querySelector(".item-acc-i")&&document.querySelectorAll(".item-acc-i").forEach(e=>{let t=e.closest(".item-acc-c");e.classList.contains("open")&&(t.style.maxHeight=t.scrollHeight+"px"),e.addEventListener("click",()=>{e.classList.toggle("open"),e.classList.contains("open")?t.style.maxHeight=t.scrollHeight+"px":e.classList.contains("open")||(t.style.maxHeight=document.querySelector(".item-acc-i").offsetHeight+"px")})})})(),(async()=>{null!=document.querySelector(".item-tab-b")&&document.querySelectorAll(".item-tab-b").forEach((a,r)=>{a.addEventListener("click",()=>{let t=document.querySelectorAll(".item-tab-c");var e=a.parentElement,n=e.parentElement;e.querySelectorAll(".item-tab-b").forEach(e=>{e.classList.remove("active")}),n.querySelectorAll(".item-tab-c").forEach(e=>{e.classList.remove("active"),t[r].classList.add("active")}),a.classList.add("active")})})})(),(async()=>{if(null!=document.querySelector(".item-sea")){document.querySelectorAll(".con-menu a").forEach(function(e){e.addEventListener("click",function(){document.querySelector(".label-con").setAttribute("data-country",e.innerHTML),e.closest(".item-dr-c").previousElementSibling.classList.contains("active")&&e.closest(".item-dr-c").previousElementSibling.classList.remove("active")})});let a=document.querySelectorAll(".item-dr > .item-dr-la");async function e(){window.innerWidth<=1024&&(document.querySelector(".item-onstxt").addEventListener("click",function(){document.body.classList.add("srch-opnd")}),document.querySelectorAll(".cancel-btn").forEach(function(e){e.addEventListener("click",function(){document.body.classList.remove("srch-opnd")})}))}a.forEach((e,t)=>{e.addEventListener("click",()=>{var n;n=t,e.classList.toggle("active"),a.forEach((e,t)=>{t!==n&&e.classList.remove("active")})})}),window.addEventListener("mouseup",function(t){a.forEach(e=>{t.target.closest(".item-dr-la")||t.target.closest(".item-dr-c")||e.classList.remove("active")})}),document.querySelectorAll(".item-cl").forEach(function(e){e.addEventListener("click",function(){e.closest(".item-dr-c").previousElementSibling.classList.contains("active")&&e.closest(".item-dr-c").previousElementSibling.classList.remove("active")})}),e(),window.addEventListener("resize",e)}})(),(async()=>{window.addEventListener("scroll",async function(){10<window.scrollY?document.body.classList.add("scroll"):document.body.classList.remove("scroll")})})(),(async()=>{async function e(){function t(r){r.removeAttribute("data-menu-count"),r.querySelector(".more").style.display="none";let i=r.offsetWidth,o=0,s=0,l=Array.from(r.querySelectorAll(".menu-item:not(.more)"));l.forEach((e,t)=>{var n,a;e&&e.closest(".menu-item")&&document.querySelector(".item-n-2")&&e.nextElementSibling?.classList.contains("sub")&&(a=navigator.userAgent,a=/iPhone|iPod/.test(a),n="MacIntel"===navigator.platform&&1<navigator.maxTouchPoints,a||n)&&(a="chk_"+t,(n=document.createElement("input")).type="checkbox",n.id=a,(t=document.createElement("label")).htmlFor=a,t.textContent=e.textContent,e.textContent="",e.appendChild(n),e.appendChild(t)),(o+=e.offsetWidth)>i-r.querySelector(".more").offsetWidth?(r.setAttribute("data-menu-count",s),r.querySelector(".more").style.display="inline-block",l.forEach(e=>e.style.display="inline-block"),l.slice(s).forEach(e=>e.style.display="none"),(a=r.querySelector(".more").querySelectorAll(".menu-item")).forEach(e=>e.style.display="none"),a.forEach((e,t)=>{t>=s&&(e.style.display="block")})):(s++,l.forEach(e=>e.style.display="inline-block"))})}null!=document.querySelector(".burger-c")&&(window.innerWidth<=1024&&(async()=>{var e;document.querySelector(".burger-c").classList.contains("item-n-2")&&(document.querySelector(".burger-c").classList.remove("item-n-2"),document.querySelector(".burger-c").classList.add("item-n-1")),null!=document.querySelector(".item-uc")&&(e=document.querySelector(".item-uc"),document.querySelector("header").querySelector("nav").insertBefore(e,document.querySelector("header").querySelector("nav").firstChild)),null!=document.querySelector(".logo-drawer")&&(e=document.querySelector(".logo-drawer"),document.querySelector("header").querySelector("nav").insertBefore(e,document.querySelector("header").querySelector("nav").firstChild))})(),1024<window.innerWidth&&(async()=>{var e;document.querySelector(".burger-c").classList.contains("item-n-1")&&(document.querySelector(".burger-c").classList.remove("item-n-1"),document.querySelector(".burger-c").classList.add("item-n-2")),null!=document.querySelector(".item-uc")&&(e=document.querySelector(".item-uc"),document.querySelector("header").querySelector(".item-uc-main").appendChild(e)),null!=document.querySelector(".logo-drawer")&&(e=document.querySelector(".logo-drawer"),document.querySelector("header").querySelector(".logo-drawer-main").appendChild(e))})(),document.addEventListener("DOMContentLoaded",function(){if(null!=document.querySelector(".header-menu nav")){let e=document.querySelector(".header-menu nav");t(e),window.addEventListener("resize",function(){t(e)})}}))}e(),window.addEventListener("resize",e)})(),(async()=>{var e=document.querySelectorAll(".a-b-1, .a-b-2, .a-b-3, .a-b-4, .a-b-5");null!=e&&e.forEach(e=>{e.addEventListener("click",function(e){var t,n=e.offsetX,e=e.offsetY;document.getElementsByClassName("ripple").length<10&&((t=document.createElement("span")).classList.add("ripple"),t.style.left=n+"px",t.style.top=e+"px",this.appendChild(t),setTimeout(function(){t.remove()},1e3))})})})(),(async()=>{var e=document.querySelectorAll(".video-play");null!=e&&e.forEach(e=>{e.addEventListener("playing",function(){e.closest("figure").classList.add("no-btn")}),e.addEventListener("pause",function(){e.closest("figure").classList.remove("no-btn")})})})(),(async()=>{null!=document.querySelector(".expand-more")&&(document.querySelector(".expand-more").addEventListener("click",function(e){this.closest(".subnav").classList.toggle("responsive")}),document.querySelectorAll(".subnav > a").forEach(e=>{e.addEventListener("click",function(e){this.closest(".subnav").classList.remove("responsive")})}))})(),(async()=>{null!=document.querySelector(".label-sel")&&document.querySelectorAll(".label-sel").forEach(e=>{e.querySelector(".item-select").addEventListener("change",function(){e.classList.add("active")})})})(),window.agSlider=function(e,t,k){for(var $={autoPlay:!1,autoPlayDelay:3e3,loop:!1,showControls:!0,btnLeft:".left-btn",btnRight:".right-btn",showBullets:!1,showBulletsAsThumb:!1,bulletContainer:".bullets",itemWrapper:".agy-caro-in",wrapperMask:0,itemContainer:".agy-caro-it"},n=(null!=e&&($=((e,t)=>{for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e})($,e)),null==t&&(t=".agy-caro"),document.querySelectorAll(t)),a=0;null!=n&&n.length>a;a++)(a=>{var r=a.querySelector($.itemWrapper),i=r.querySelectorAll($.itemContainer).length,o=r.querySelector($.itemContainer).offsetWidth,s=Math.round(r.offsetWidth/o),l=0,c=i,u=null!=$.btnLeft&&null!=$.btnLeft?a.querySelector($.btnLeft):null,d=null!=$.btnRight&&null!=$.btnRight?a.querySelector($.btnRight):null,h=!1,e=r.offsetWidth==o,p=!1,f=0;!isNaN($.wrapperMask)&&0<$.wrapperMask&&($.wrapperMask=100<$.wrapperMask?100:$.wrapperMask,r.style.scrollPadding=$.wrapperMask+"%",2<i)&&(p=!0);for(var t,n,g,m,y=r.querySelectorAll($.itemContainer),v=0;v<y.length;v++){var b=y[v].className;-1<b.indexOf("data-nosnippet")&&(b=b.split('" data-nosnippet="'),y[v].setAttribute("class",b[0]||""),y[v].setAttribute("data-nosnippet","")),y[v].classList.add("idx-"+v),p&&v==y.length-1&&(r.prepend(y[v]),f=r.scrollLeft)}if(null!=u&&($.showControls||(u.style.display="none"),u.addEventListener("click",()=>{0==l&&!$.loop||(0==l?(r.scrollLeft=o*(i-1),E(o*(i-s))):(r.scrollLeft=r.scrollLeft+-o,E(e?(l-1)*o:r.scrollLeft+-o)))})),null!=d&&($.showControls||(d.style.display="none"),d.addEventListener("click",()=>{c==i-1&&!$.loop||(c==i-1?(r.scrollLeft=0,E(f)):(r.scrollLeft=r.scrollLeft+ +o,E(e?(l+1)*o:r.scrollLeft+ +o)))})),$.showBullets){if(null==a.querySelector($.bulletContainer)||null==a.querySelector($.bulletContainer))return $.showBullets=!1;for(v=0;v<Math.trunc(i/s)+(0<Math.round(i%s)?1:0)&&v<i;v++){var w,x,C=document.createElement("bu");C.classList.add("dot"),C.classList.add("idx-"+v),C.setAttribute("idx",v),$.showBulletsAsThumb&&e&&(w=document.createElement("img"),x=null!=r.querySelector($.itemContainer+".idx-"+v+" img")?r.querySelector($.itemContainer+".idx-"+v+" img"):r.querySelector($.itemContainer+".idx-"+v+" video"),w.setAttribute("src","IMG"==x.nodeName?x.getAttribute("data-src"):x.getAttribute("poster")),C.appendChild(w)),0==v&&C.classList.add("active"),C.addEventListener("click",e=>{var t;t=parseInt(e.currentTarget.getAttribute("idx")),$.autoPlay=!1,h=!0,r.scrollLeft=t*s*o,E(t*s*o),e.preventDefault()}),a.querySelector($.bulletContainer).appendChild(C)}}function E(e){l=Math.round((e-f)/o),c=Math.round(l+s-1);for(var t,n=0;n<i;n++)r.querySelector($.itemContainer+".idx-"+n).classList.remove("active"),l<=n&&n<=c&&(n<=c-(p?1:0)&&(r.querySelector($.itemContainer+".idx-"+n).classList.add("active"),null!=r.querySelector($.itemContainer+".idx-"+n+" video"))&&((t=r.querySelector($.itemContainer+".idx-"+n+" video")).setAttribute("src",t.getAttribute("data-src")),t.pause(),t.currentTime=0,t.play(),h=!0,t.addEventListener("ended",function(e){h=!1},!1)),r.querySelectorAll($.itemContainer+".idx-"+n+" img").forEach(e=>{e.setAttribute("src",e.getAttribute("data-src"))})),p&&0==n&&r.querySelectorAll($.itemContainer+".idx-"+(i-1)+" img").forEach(e=>{e.setAttribute("src",e.getAttribute("data-src"))});if(0!=l||$.loop?u.classList.remove("disabled"):u.classList.add("disabled"),c!=i-1||$.loop?d.classList.remove("disabled"):d.classList.add("disabled"),$.showBullets)for(n=0;n<Math.round(i/s);n++)n!=Math.round((l+s)/s)-1?a.querySelector($.bulletContainer+" .dot.idx-"+n).classList.remove("active"):a.querySelector($.bulletContainer+" .dot.idx-"+n).classList.add("active")}$.showBulletsAsThumb&&(t=a.querySelector($.bulletContainer).querySelector(".dot").offsetWidth,null!=u&&u.addEventListener("click",()=>{a.querySelector($.bulletContainer).scrollLeft-=t}),null!=d&&d.addEventListener("click",()=>{a.querySelector($.bulletContainer).scrollLeft+=t}),n=!1,a.querySelector($.bulletContainer).addEventListener("mousedown",e=>{n=!0,a.querySelector($.bulletContainer).classList.add("dragging"),g=e.pageX,m=a.querySelector($.bulletContainer).scrollLeft}),a.querySelector($.bulletContainer).addEventListener("mousemove",e=>{n&&(a.querySelector($.bulletContainer).scrollLeft=m-(e.pageX-g))}),document.addEventListener("mouseup",()=>{n=!1,a.querySelector($.bulletContainer).classList.remove("dragging")})),$.autoPlay&&(function e(){setTimeout(function(){h||d.click(),e()},$.autoPlayDelay)}(),r.addEventListener("mouseenter",function(){r.offsetWidth!=o&&(h=!0)}),r.addEventListener("mouseleave",function(){r.offsetWidth!=o&&(h=!1)})),E(r.scrollLeft),null!=k&&k(a)})(n[a])},agora(function(){refreshTracking(),$(document).on("click","[data-for]",function(e){try{var t=$(this).data("for");$('[for="'+t+'"]').trigger("click")}catch(e){}}),1==$("[data-mob-format]").data("mob-format")&&$('[node="MobilePhone"]').not(".disablephoneformat").formatter({pattern:"({{999}}) {{999}}-{{9999}}"}),1==$("[data-mob-required]").data("mob-required")&&$('[data-mob-required="1"]').not("[data-no-mob-required]").length&&$(document).on("click","#id2",function(){setTimeout(function(){var e=$("#Phone");e.length&&!e.attr("required")&&(e.removeProp("required"),e.attr("required","required"))},500)})}),Date.prototype.yyyymmddhhmmss=function(){var e=this.getFullYear(),t=this.getMonth()<9?"0"+(this.getMonth()+1):this.getMonth()+1,n=this.getDate()<10?"0"+this.getDate():this.getDate(),a=this.getHours()<10?"0"+this.getHours():this.getHours(),r=this.getMinutes()<10?"0"+this.getMinutes():this.getMinutes(),i=this.getSeconds()<10?"0"+this.getSeconds():this.getSeconds();return"".concat(e).concat(t).concat(n).concat(a).concat(r).concat(i)},(async()=>{var a=!1;async function r(){var e=null;return null!=(e=null!=window.localStorage.getItem("AGUSER")?JSON.parse(window.localStorage.getItem("AGUSER")):e)&&document.body.classList.contains("restricted-listing")&&document.body.classList.remove("restricted-listing"),e}async function t(){var e=null;return e=null!=window.localStorage.getItem("AGAGENT")?JSON.parse(window.localStorage.getItem("AGAGENT")):e}async function n(e){var t;null==e?(window.localStorage.removeItem("AGUSER"),document.body.dispatchEvent(new CustomEvent("ag.user.clear"))):e.Guid&&((t={}).Guid=e.Guid,t.Name=e.Name,t.FirstName=e.FirstName,t.LastName=e.LastName,t.Email=e.Email,t.Phone=e.Phone,t.MobilePhone=e.MobilePhone,e.LoginAgent&&(t.LoginAgent={Key:e.LoginAgent.Key,Email:e.LoginAgent.Email,Name:e.LoginAgent.Name}),window.localStorage.setItem("AGUSER",JSON.stringify(t)),o(),s())}async function i(e){var t;null==e?(window.localStorage.removeItem("AGAGENT"),document.body.dispatchEvent(new CustomEvent("ag.agent.clear"))):e.Guid&&((t={}).Guid=e.Guid,t.Name=e.Name,t.Role=e.Role,window.localStorage.setItem("AGAGENT",JSON.stringify(t)),o())}async function o(){}async function s(){document.querySelectorAll("[ag-user]").forEach(function(e){(async e=>{e.classList.add("is-applied"),e.cloneNode(!0);var t,n=await r();null!=n&&((async()=>{a?l():document.body.addEventListener("ag.sync.verified.contact",function(){l()}),document.body.addEventListener("ag.lazy.refresh",function(){l()}),document.body.addEventListener("ag.user.refresh.collection",function(){l(!0)}),document.body.addEventListener("ag.user.clear.collection",function(){window.localStorage.removeItem("AGUSERCOLLECTION3")}),document.body.addEventListener("ag.user.clear",function(){document.body.dispatchEvent(new CustomEvent("ag.user.clear.collection"))})})(),t=await(async e=>{var t=new c("p"),n=(t.a("ag-user",""),t.n("button")),a=(n.a("class","user-logged-in a-b-1 f-s-2 u-logined s-c-p m-l-16 xa-b-w-l r-b"),n.h(e.Name),n.cl(function(e){return e.preventDefault(),n.node.classList.contains("active")?n.node.classList.remove("active"):n.node.classList.add("active"),!1}),t.n("span"));return a.n("span").h("Hi, "+e.Name),a.n("input").a("type","hidden").a("id","CONTACT_GUID").a("value",e.Guid),a.n("a").a("href","/dashboard/default.aspx").h("Dashboard"),a.n("span").a("data-modaldialog-src","/dashboard/EditProfile.aspx").a("data-modaldialog-ajax","true").a("data-modaldialog","").h("Edit Profile"),a.n("a").a("href","/dashboard/SignOut.aspx").a("data-agora-icon","").h("Log out").cl(function(){document.body.dispatchEvent(new CustomEvent("ag.user.out"))}),t.node})(n),e.parentElement.insertBefore(t,e),e.remove(),setForms(n))})(e)})}async function l(e){var r,i;r=3,i=e,(await new Promise(async function(e,t){var n=null,a=i?null:window.localStorage.getItem("AGUSERCOLLECTION"+r);null!=a?e(n=JSON.parse(a)):(n=await window.agRequest.GET("/services/agoraClient.ashx",{type:"USERCOLLECTION",collectionType:r}),window.localStorage.setItem("AGUSERCOLLECTION"+r,JSON.stringify(n)),e(n))})).Items.reduce(function(e,t){return e?[...e,...t.Items]:[...t.Items]},[]).forEach(async function(e){(async(e,t)=>{document.querySelectorAll('[data-perform-action-url*="pk='+e.PK+'"][data-perform-action-url*="rt='+e.RT+'"]').forEach(async function(e){e.setAttribute("ag-user-collection",t)})})(e,3)})}function c(e){return this.node=document.createElement(e),this}document.body.addEventListener("ag.user.in",function(e){n(e.detail)}),document.body.addEventListener("ag.agent.in",function(e){i(e.detail),document.body.dispatchEvent(new CustomEvent("ag.sync.autoupdate"))}),document.body.addEventListener("ag.user.out",function(e){n(null)}),document.body.addEventListener("ag.agent.out",function(e){i(null)}),c.prototype.a=function(e,t){return this.node.setAttribute(e,t),this},c.prototype.n=function(e){e=new c(e);return this.node.appendChild(e.node),e},c.prototype.h=function(e){return this.node.innerHTML=e,this},c.prototype.cl=function(e){return this.node.removeEventListener("click",e),this.node.addEventListener("click",e),this},window.agUser={collection:{refresh:function(){document.body.dispatchEvent(new CustomEvent("ag.user.refresh.collection"))}}},s(),t().then(e=>{}),document.body.addEventListener("ag.refresh",async function(){var e=await r();null!=e&&setForms(e)}),document.body.addEventListener("ag.sync.autoupdate",async function(){var e=await t();null!=e&&(document.body.dispatchEvent(new CustomEvent("ag.sync.set",{detail:{agentguid:e.Guid,eventType:"autoagent"}})),setTimeout(function(){document.body.dispatchEvent(new CustomEvent("ag.sync.autoupdate"))},6e4))}),document.body.addEventListener("ag.sync.check",async function(){var e=await r(),t=window.localStorage.getItem("AGSYNC");if(null!=t&&null!=e&&JSON.parse(t).ContactGuid!=e.Guid)return void document.body.dispatchEvent(new CustomEvent("ag.sync.set",{detail:{contactguid:e.Guid,agentkey:e.LoginAgent?e.LoginAgent.Key:"",eventType:"contact"}}));document.body.dispatchEvent(new CustomEvent("ag.sync.verified.contact")),a=!0}),document.body.addEventListener("ag.sync.verified",async function(){document.body.dispatchEvent(new CustomEvent("ag.sync.verified.contact")),a=!0}),document.body.addEventListener("ag.sync.verified.agent",function(){window.location.reload()})})(),(async()=>{async function n(){var e=await window.agRequest.GET("/services/agoraClient.ashx",{type:"SYNC"});e.updatedOn=new Date,window.localStorage.setItem("AGSYNC",JSON.stringify(e)),document.body.dispatchEvent(new CustomEvent("ag.sync.check"))}(async()=>{document.body.addEventListener("ag.sync.set",async function(e){await window.agRequest.POST("/services/agoraClient.ashx",Object.assign({type:"SET"},e.detail)),e.detail?.eventType&&document.body.dispatchEvent(new CustomEvent("ag.sync.verified."+e.detail.eventType))}),document.body.addEventListener("ag.sync.run",async function(e){await n()}),document.body.addEventListener("ag.sync.invalid",async function(e){document.body.dispatchEvent(new CustomEvent("ag.sync.reset")),window.location.reload()}),(async()=>{if(null!=(e=window.localStorage.getItem("AGSYNC"))){var e=JSON.parse(e),e=new Date(e.updatedOn),t=new Date;if(t.setMinutes(t.getMinutes()-1),t<e)return!document.body.dispatchEvent(new CustomEvent("ag.sync.verified"))}n()})()})()})(),(async()=>{(async()=>{window.userModuleFeatureAccessRegistry||(window.userModuleFeatureAccessRegistry={}),window.userModuleFeatureAccessRegistry.enter=(e,t,n)=>{document.body.dispatchEvent(new CustomEvent("ag.sync.set",{detail:{umfare:btoa(e+"|"+t+"|"+n)}}))},window.userModuleFeatureAccessRegistry.refresh=()=>{document.body.dispatchEvent(new CustomEvent("ag.sync.run"))},window.userModuleFeatureAccessRegistry.get=()=>{var e=localStorage.getItem("AGSYNC");if(null!=e){e=JSON.parse(e);if(e.UMFARE)return e.UMFARE}return null}})()})(),(async()=>{async function e(){var e=window.localStorage.getItem("AGUSERCOUNTRY");null!=e?(e=JSON.parse(e),document.body.dispatchEvent(new CustomEvent("ag.language.country.auto-discovery",{detail:e}))):(async()=>{var e=await window.agRequest.GET("https://ip-service.idcrealestate.com/ip",{});e.updatedOn=new Date,window.localStorage.setItem("AGUSERCOUNTRY",JSON.stringify(e)),document.body.dispatchEvent(new CustomEvent("ag.language.country.auto-discovery",{detail:e}))})()}(async()=>{e()})()})(),(async()=>{var a=new RegExp("(?<Guid>[A-z0-9\\-]+)\\|(?<AgentKey>[0-9]+)","gi");async function e(){var e,t,n=window.location.hash;n.length<1||(t=atob(n.substring(1)),e=null,console.log(t),null!=(e=a.exec(t))?(async(e,t)=>{document.body.classList.add("is-busy"),(e=await window.agRequest.POST("/services/agoraAccess.ashx",{action:"RemoteSignIn",contactguid:e,agentkey:t})).Contact&&(document.body.dispatchEvent(new CustomEvent("ag.user.in",{detail:e.Contact})),window.location.href="/dashboard/default.aspx#saved-searches")})(e.groups.Guid,e.groups.AgentKey):""!=n&&0<n.length&&null!=(t=document.querySelector('[data-tab="'+n.substring(1)+'"]'))&&t.click())}(async()=>{e(),window.addEventListener("hashchange",e)})()})(),(async()=>{let a=[],r="";async function t(e){"SET"==e&&(async i=>{document.querySelectorAll('header img[alt*="logo"]').forEach(e=>{let t=e.src,n=!1,a=(null!=t&&""!=t||!e.hasAttribute("data-src")||(t=e.getAttribute("data-src"),n=!0),t.replace(/(\.[A-z]{2,3})(\?|$)/gi,"-"+i.toLowerCase()+"$1$2"));var r;a&&""!=a&&a!=t&&((r=new Image).onload=()=>{n&&(e.setAttribute("data-source-data-src",t),e.setAttribute("data-src",a)),e.setAttribute("data-source-src",t),e.src=a},r.src=a)})})(e)}async function i(e){"SET"==e&&(async()=>{document.querySelectorAll('header img[alt*="logo"]').forEach(t=>{if(t.hasAttribute("data-source-src")){let e=t.getAttribute("data-source-src");t.hasAttribute("data-source-data-src")&&(e=t.getAttribute("data-source-data-src"),t.setAttribute("data-src",e)),t.src=e}})})()}async function e(){let n=[];a.forEach(e=>{null==document.querySelector('[data-webactivity-rt^="'+e+'"]')&&(r=r.replace(':not([data-webactivity-rt^="'+e+'"])',""),n.push(e),i(e))}),a=a.filter(t=>-1==n.findIndex(e=>e==t)),document.querySelectorAll("[data-webactivity-rt]"+r).forEach(e=>{let t=e.getAttribute("data-webactivity-rt").substring(0,3);-1==a.findIndex(e=>e==t)&&(a.push(t),r+=':not([data-webactivity-rt^="'+t+'"])',document.body.dispatchEvent(new CustomEvent("ag.mls.guidelines.update",{detail:t})))})}(async()=>{document.body.addEventListener("Plugin.Map.ResultUpdated",function(){e()}),document.body.addEventListener("ag.language.refresh.currency",function(){e()}),document.body.addEventListener("ag.language.change.language",function(){e()}),document.body.addEventListener("ag.mls.guidelines.update",function(e){t(e.detail)}),e()})()})();var loadEvent=new CustomEvent("onAgoraLoad");function refreshTracking(){$("[data-webactivity]").each(function(){var e,n;"true"!==$(this).attr("data-processed")&&(e=$(this).attr("data-webactivity"),n=[],$.each(this.attributes,function(){var e,t;this.name.startsWith("data-webactivity-")&&(e=this.name.substring("data-webactivity-".length),t=this.value,n.push({name:e,value:t}))}),WebActivityTracker("WEBACTIVITY","PROPERTY",e,n),$(this).attr("data-processed","true"))})}function clearSearchClick(e,t=0){var n=composeUrlQuery({select:$('[data-search-form="QUICKSEARCH"]'),nonselect:$('[data-rt-switch],[data-current-rt="CMNCMN"] [data-enable-for]:not([data-enable-for*="CMNCMN"]) [urlidentifier],[data-current-rt="CMNRNT"] [data-enable-for]:not([data-enable-for*="CMNRNT"]) [urlidentifier],[data-current-rt="CMNSLD"] [data-enable-for]:not([data-enable-for*="CMNSLD"]) [urlidentifier]')}),e=decodeURIComponent(e),n=decodeURIComponent(n),a=e.match(/lat-[^\/]+/),r=e.match(/lon-[^\/]+/),i=e.match(/status-[^\/]+/),o=e.match(/country-[^\/]+/),a=a?a[0]:"",r=r?r[0]:"",i=i?i[0]:"",o=o?o[0]:"",n=n.replace(/lat-[^\/]+/,"").replace(/lon-[^\/]+/,"").replace(/status-[^\/]+/,"").replace(/country-[^\/]+/,"").replace(/rental-[^\/]+/,"").split("/").filter(Boolean);let s=e;n.forEach(e=>{s=s.replace("/"+e,"")}),s=s.replace(/\/(polygon|mapcenter)-[^\/]+/g,""),"#grid"==window.location.hash?(a&&s.includes(a)&&(s=s.replace("/"+a,"")),r&&s.includes(r)&&(s=s.replace("/"+r,""))):(i&&!s.includes(i)&&(s+="/"+i),o&&!s.includes(o)&&(s+="/"+o),a&&!s.includes(a)&&(s+=(s.endsWith("/")?"":"/")+a),r&&!s.includes(r)&&(s+="/"+r)),window.location.href=s}function WebActivityTracker(e,t,n,a){var r,i=[];a&&0<a.length&&(r={TrackType:e,ObjectType:t,ObjectActivityType:n},a.forEach(function(e){r[e.name]=e.value}),i.push(r)),$.ajax({type:"POST",url:"/tracker",data:{track:JSON.stringify(i)},dataType:"json",success:function(e){console.log("Tracking successful:",e)},error:function(e){console.error("Tracker not found!",e)}})}function onScroll(e){var n=$(document).scrollTop();$(".c-menu .subnav a").each(function(){var e=$(this),t=$(e.attr("href"));t.position().top-($(".c-menu").outerHeight()+$(".item-h").outerHeight())<=n&&t.position().top+t.height()>n?($(".c-menu .subnav a").removeClass("active"),e.addClass("active")):e.removeClass("active")})}function isLabelOrLiWithController(e){return("LABEL"===e.tagName||"LI"===e.tagName)&&[...e.attributes].some(e=>e.name.endsWith("_controller"))}function handleEvent(e,t){e.stopPropagation();e=[...t.attributes].map(e=>e.name).find(e=>e.endsWith("_controller"))||"Unknown Section";document.body.dispatchEvent(new CustomEvent("controllerVisible",{detail:{controllerName:e}}))}function ClosePopup(){$("[data-modaldialog-close]").trigger("click")}document.dispatchEvent(loadEvent),document.isAgoraLoaded=!0,loadEvent=new CustomEvent("onCssLoad"),document.dispatchEvent(loadEvent),document.isCssLoaded=!0,EnableDemandImport(),EnableSearchForm(),document.body.addEventListener("Plugin.Map.ResultUpdated",function(){refreshTracking()}),null!=$(".c-menu .subnav a")&&($(".c-menu .subnav a").click(function(e){e.preventDefault();e=this.hash;$target=$(e),$("html, body").stop().animate({scrollTop:$target.offset().top-($(".c-menu").outerHeight()+$(".item-h").outerHeight())},"swing",function(){$(document).on("scroll",onScroll)}),$("a").each(function(){$(this).removeClass("active")}),$(this).addClass("active")}),$(document).on("scroll",onScroll),$(window).scroll(function(e){$("body").hasClass("scroll")&&$(".c-menu .subnav a").click(function(e){e.preventDefault(),$("html, body").stop().animate({scrollTop:$($(this).attr("href")).offset().top-($(".c-menu").outerHeight()+$(".item-h").outerHeight())},300)}),$("body").hasClass("scroll")||$(".c-menu .subnav a").click(function(e){$("html, body").stop().animate({scrollTop:$($(this).attr("href")).offset().top-(2*$(".c-menu").outerHeight()+$(".item-h").outerHeight())},300)})})),document.body.addEventListener("ag.widget.no-data",function(e){var t,n=e.detail.sender,e=n.getAttribute("ag-loader");e&&(t=document.querySelectorAll(`[${e+"_controller"}]`),console.log("Widgets:",t),n.hasAttribute("show-no-data")?(setTimeout(function(){n.querySelector(".no-data-message")||(n.innerHTML+=`
2
2
  <span class="no-data-message"
3
3
  style="
4
4
  display: block;