1/*! jQuery Migrate v3.4.1 | (c) OpenJS Foundation and other contributors | jquery.org/license */ 2"undefined"==typeof jQuery.migrateMute&&(jQuery.migrateMute=!0),function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery"],function(e){return t(e,window)}):"object"==typeof module&&module.exports?module.exports=t(require("jquery"),window):t(jQuery,window)}(function(s,n){"use strict";function e(e){return 0<=function(e,t){for(var r=/^(\d+)\.(\d+)\.(\d+)/,n=r.exec(e)||[],o=r.exec(t)||[],a=1;a<=3;a++){if(+o[a]<+n[a])return 1;if(+n[a]<+o[a])return-1}return 0}(s.fn.jquery,e)}s.migrateVersion="3.4.1";var t=Object.create(null);s.migrateDisablePatches=function(){for(var e=0;e<arguments.length;e++)t[arguments[e]]=!0},s.migrateEnablePatches=function(){for(var e=0;e<arguments.length;e++)delete t[arguments[e]]},s.migrateIsPatchEnabled=function(e){return!t[e]},n.console&&n.console.log&&(s&&e("3.0.0")&&!e("5.0.0")||n.console.log("JQMIGRATE: jQuery 3.x-4.x REQUIRED"),s.migrateWarnings&&n.console.log("JQMIGRATE: Migrate plugin loaded multiple times"),n.console.log("JQMIGRATE: Migrate is installed"+(s.migrateMute?"":" with logging active")+", version "+s.migrateVersion));var o={};function u(e,t){var r=n.console;!s.migrateIsPatchEnabled(e)||s.migrateDeduplicateWarnings&&o[t]||(o[t]=!0,s.migrateWarnings.push(t+" ["+e+"]"),r&&r.warn&&!s.migrateMute&&(r.warn("JQMIGRATE: "+t),s.migrateTrace&&r.trace&&r.trace()))}function r(e,t,r,n,o){Object.defineProperty(e,t,{configurable:!0,enumerable:!0,get:function(){return u(n,o),r},set:function(e){u(n,o),r=e}})}function a(e,t,r,n,o){var a=e[t];e[t]=function(){return o&&u(n,o),(s.migrateIsPatchEnabled(n)?r:a||s.noop).apply(this,arguments)}}function c(e,t,r,n,o){if(!o)throw new Error("No warning message provided");return a(e,t,r,n,o),0}function i(e,t,r,n){return a(e,t,r,n),0}s.migrateDeduplicateWarnings=!0,s.migrateWarnings=[],void 0===s.migrateTrace&&(s.migrateTrace=!0),s.migrateReset=function(){o={},s.migrateWarnings.length=0},"BackCompat"===n.document.compatMode&&u("quirks","jQuery is not compatible with Quirks Mode");var d,l,p,f={},m=s.fn.init,y=s.find,h=/\[(\s*[-\w]+\s*)([~|^$*]?=)\s*([-\w#]*?#[-\w#]*)\s*\]/,g=/\[(\s*[-\w]+\s*)([~|^$*]?=)\s*([-\w#]*?#[-\w#]*)\s*\]/g,v=/^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g;for(d in i(s.fn,"init",function(e){var t=Array.prototype.slice.call(arguments);return s.migrateIsPatchEnabled("selector-empty-id")&&"string"==typeof e&&"#"===e&&(u("selector-empty-id","jQuery( '#' ) is not a valid selector"),t[0]=[]),m.apply(this,t)},"selector-empty-id"),s.fn.init.prototype=s.fn,i(s,"find",function(t){var r=Array.prototype.slice.call(arguments);if("string"==typeof t&&h.test(t))try{n.document.querySelector(t)}catch(e){t=t.replace(g,function(e,t,r,n){return"["+t+r+'"'+n+'"]'});try{n.document.querySelector(t),u("selector-hash","Attribute selector with '#' must be quoted: "+r[0]),r[0]=t}catch(e){u("selector-hash","Attribute selector with '#' was not fixed: "+r[0])}}return y.apply(this,r)},"selector-hash"),y)Object.prototype.hasOwnProperty.call(y,d)&&(s.find[d]=y[d]);c(s.fn,"size",function(){return this.length},"size","jQuery.fn.size() is deprecated and removed; use the .length property"),c(s,"parseJSON",function(){return JSON.parse.apply(null,arguments)},"parseJSON","jQuery.parseJSON is deprecated; use JSON.parse"),c(s,"holdReady",s.holdReady,"holdReady","jQuery.holdReady is deprecated"),c(s,"unique",s.uniqueSort,"unique","jQuery.unique is deprecated; use jQuery.uniqueSort"),r(s.expr,"filters",s.expr.pseudos,"expr-pre-pseudos","jQuery.expr.filters is deprecated; use jQuery.expr.pseudos"),r(s.expr,":",s.expr.pseudos,"expr-pre-pseudos","jQuery.expr[':'] is deprecated; use jQuery.expr.pseudos"),e("3.1.1")&&c(s,"trim",function(e){return null==e?"":(e+"").replace(v,"$1")},"trim","jQuery.trim is deprecated; use String.prototype.trim"),e("3.2.0")&&(c(s,"nodeName",function(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()},"nodeName","jQuery.nodeName is deprecated"),c(s,"isArray",Array.isArray,"isArray","jQuery.isArray is deprecated; use Array.isArray")),e("3.3.0")&&(c(s,"isNumeric",function(e){var t=typeof e;return("number"==t||"string"==t)&&!isNaN(e-parseFloat(e))},"isNumeric","jQuery.isNumeric() is deprecated"),s.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){f["[object "+t+"]"]=t.toLowerCase()}),c(s,"type",function(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?f[Object.prototype.toString.call(e)]||"object":typeof e},"type","jQuery.type is deprecated"),c(s,"isFunction",function(e){return"function"==typeof e},"isFunction","jQuery.isFunction() is deprecated"),c(s,"isWindow",function(e){return null!=e&&e===e.window}
2,"isWindow","jQuery.isWindow() is deprecated")),s.ajax&&(l=s.ajax,p=/(=)\?(?=&|$)|\?\?/,i(s,"ajax",function(){var e=l.apply(this,arguments);return e.promise&&(c(e,"success",e.done,"jqXHR-methods","jQXHR.success is deprecated and removed"),c(e,"error",e.fail,"jqXHR-methods","jQXHR.error is deprecated and removed"),c(e,"complete",e.always,"jqXHR-methods","jQXHR.complete is deprecated and removed")),e},"jqXHR-methods"),e("4.0.0")||s.ajaxPrefilter("+json",function(e){!1!==e.jsonp&&(p.test(e.url)||"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&p.test(e.data))&&u("jsonp-promotion","JSON-to-JSONP auto-promotion is deprecated")}));var j=s.fn.removeAttr,b=s.fn.toggleClass,w=/\S+/g;function x(e){return e.replace(/-([a-z])/g,function(e,t){return t.toUpperCase()})}i(s.fn,"removeAttr",function(e){var r=this,n=!1;return s.each(e.match(w),function(e,t){s.expr.match.bool.test(t)&&r.each(function(){if(!1!==s(this).prop(t))return!(n=!0)}),n&&(u("removeAttr-bool","jQuery.fn.removeAttr no longer sets boolean properties: "+t),r.prop(t,!1))}),j.apply(this,arguments)},"removeAttr-bool"),i(s.fn,"toggleClass",function(t){return void 0!==t&&"boolean"!=typeof t?b.apply(this,arguments):(u("toggleClass-bool","jQuery.fn.toggleClass( boolean ) is deprecated"),this.each(function(){var e=this.getAttribute&&this.getAttribute("class")||"";e&&s.data(this,"__className__",e),this.setAttribute&&this.setAttribute("class",!e&&!1!==t&&s.data(this,"__className__")||"")}))},"toggleClass-bool");var Q,A,R=!1,C=/^[a-z]/,N=/^(?:Border(?:Top|Right|Bottom|Left)?(?:Width|)|(?:Margin|Padding)?(?:Top|Right|Bottom|Left)?|(?:Min|Max)?(?:Width|Height))$/;s.swap&&s.each(["height","width","reliableMarginRight"],function(e,t){var r=s.cssHooks[t]&&s.cssHooks[t].get;r&&(s.cssHooks[t].get=function(){var e;return R=!0,e=r.apply(this,arguments),R=!1,e})}),i(s,"swap",function(e,t,r,n){var o,a,i={};for(a in R||u("swap","jQuery.swap() is undocumented and deprecated"),t)i[a]=e.style[a],e.style[a]=t[a];for(a in o=r.apply(e,n||[]),t)e.style[a]=i[a];return o},"swap"),e("3.4.0")&&"undefined"!=typeof Proxy&&(s.cssProps=new Proxy(s.cssProps||{},{set:function(){return u("cssProps","jQuery.cssProps is deprecated"),Reflect.set.apply(this,arguments)}})),e("4.0.0")?(A={animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},"undefined"!=typeof Proxy?s.cssNumber=new Proxy(A,{get:function(){return u("css-number","jQuery.cssNumber is deprecated"),Reflect.get.apply(this,arguments)},set:function(){return u("css-number","jQuery.cssNumber is deprecated"),Reflect.set.apply(this,arguments)}}):s.cssNumber=A):A=s.cssNumber,Q=s.fn.css,i(s.fn,"css",function(e,t){var r,n,o=this;return e&&"object"==typeof e&&!Array.isArray(e)?(s.each(e,function(e,t){s.fn.css.call(o,e,t)}),this):("number"==typeof t&&(r=x(e),n=r,C.test(n)&&N.test(n[0].toUpperCase()+n.slice(1))||A[r]||u("css-number",'Number-typed values are deprecated for jQuery.fn.css( "'+e+'", value )')),Q.apply(this,arguments))},"css-number");var S,P,k,H,E=s.data;i(s,"data",function(e,t,r){var n,o,a;if(t&&"object"==typeof t&&2===arguments.length){for(a in n=s.hasData(e)&&E.call(this,e),o={},t)a!==x(a)?(u("data-camelCase","jQuery.data() always sets/gets camelCased names: "+a),n[a]=t[a]):o[a]=t[a];return E.call(this,e,o),t}return t&&"string"==typeof t&&t!==x(t)&&(n=s.hasData(e)&&E.call(this,e))&&t in n?(u("data-camelCase","jQuery.data() always sets/gets camelCased names: "+t),2<arguments.length&&(n[t]=r),n[t]):E.apply(this,arguments)},"data-camelCase"),s.fx&&(k=s.Tween.prototype.run,H=function(e){return e},i(s.Tween.prototype,"run",function(){1<s.easing[this.easing].length&&(u("easing-one-arg","'jQuery.easing."+this.easing.toString()+"' should use only one argument"),s.easing[this.easing]=H),k.apply(this,arguments)},"easing-one-arg"),S=s.fx.interval,P="jQuery.fx.interval is deprecated",n.requestAnimationFrame&&Object.defineProperty(s.fx,"interval",{configurable:!0,enumerable:!0,get:function(){return n.document.hidden||u("fx-interval",P),s.migrateIsPatchEnabled("fx-interval")&&void 0===S?13:S},set:function(e){u("fx-interval",P),S=e}}));var M=s.fn.load,q=s.event.add,O=s.event.fix;s.event.props=[],s.event.fixHooks={}
2,r(s.event.props,"concat",s.event.props.concat,"event-old-patch","jQuery.event.props.concat() is deprecated and removed"),i(s.event,"fix",function(e){var t,r=e.type,n=this.fixHooks[r],o=s.event.props;if(o.length){u("event-old-patch","jQuery.event.props are deprecated and removed: "+o.join());while(o.length)s.event.addProp(o.pop())}if(n&&!n._migrated_&&(n._migrated_=!0,u("event-old-patch","jQuery.event.fixHooks are deprecated and removed: "+r),(o=n.props)&&o.length))while(o.length)s.event.addProp(o.pop());return t=O.call(this,e),n&&n.filter?n.filter(t,e):t},"event-old-patch"),i(s.event,"add",function(e,t){return e===n&&"load"===t&&"complete"===n.document.readyState&&u("load-after-event","jQuery(window).on('load'...) called after load event occurred"),q.apply(this,arguments)},"load-after-event"),s.each(["load","unload","error"],function(e,t){i(s.fn,t,function(){var e=Array.prototype.slice.call(arguments,0);return"load"===t&&"string"==typeof e[0]?M.apply(this,e):(u("shorthand-removed-v3","jQuery.fn."+t+"() is deprecated"),e.splice(0,0,t),arguments.length?this.on.apply(this,e):(this.triggerHandler.apply(this,e),this))},"shorthand-removed-v3")}),s.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,r){c(s.fn,r,function(e,t){return 0<arguments.length?this.on(r,null,e,t):this.trigger(r)},"shorthand-deprecated-v3","jQuery.fn."+r+"() event shorthand is deprecated")}),s(function(){s(n.document).triggerHandler("ready")}),s.event.special.ready={setup:function(){this===n.document&&u("ready-event","'ready' event is deprecated")}},c(s.fn,"bind",function(e,t,r){return this.on(e,null,t,r)},"pre-on-methods","jQuery.fn.bind() is deprecated"),c(s.fn,"unbind",function(e,t){return this.off(e,null,t)},"pre-on-methods","jQuery.fn.unbind() is deprecated"),c(s.fn,"delegate",function(e,t,r,n){return this.on(t,e,r,n)},"pre-on-methods","jQuery.fn.delegate() is deprecated"),c(s.fn,"undelegate",function(e,t,r){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",r)},"pre-on-methods","jQuery.fn.undelegate() is deprecated"),c(s.fn,"hover",function(e,t){return this.on("mouseenter",e).on("mouseleave",t||e)},"pre-on-methods","jQuery.fn.hover() is deprecated");function T(e){var t=n.document.implementation.createHTMLDocument("");return t.body.innerHTML=e,t.body&&t.body.innerHTML}var F=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi;s.UNSAFE_restoreLegacyHtmlPrefilter=function(){s.migrateEnablePatches("self-closed-tags")},i(s,"htmlPrefilter",function(e){var t,r;return(r=(t=e).replace(F,"<$1></$2>"))!==t&&T(t)!==T(r)&&u("self-closed-tags","HTML tags must be properly nested and closed: "+t),e.replace(F,"<$1></$2>")},"self-closed-tags"),s.migrateDisablePatches("self-closed-tags");var D,W,_,I=s.fn.offset;return i(s.fn,"offset",function(){var e=this[0];return!e||e.nodeType&&e.getBoundingClientRect?I.apply(this,arguments):(u("offset-valid-elem","jQuery.fn.offset() requires a valid DOM element"),arguments.length?this:void 0)},"offset-valid-elem"),s.ajax&&(D=s.param,i(s,"param",function(e,t){var r=s.ajaxSettings&&s.ajaxSettings.traditional;return void 0===t&&r&&(u("param-ajax-traditional","jQuery.param() no longer uses jQuery.ajaxSettings.traditional"),t=r),D.call(this,e,t)},"param-ajax-traditional")),c(s.fn,"andSelf",s.fn.addBack,"andSelf","jQuery.fn.andSelf() is deprecated and removed, use jQuery.fn.addBack()"),s.Deferred&&(W=s.Deferred,_=[["resolve","done",s.Callbacks("once memory"),s.Callbacks("once memory"),"resolved"],["reject","fail",s.Callbacks("once memory"),s.Callbacks("once memory"),"rejected"],["notify","progress",s.Callbacks("memory"),s.Callbacks("memory")]],i(s,"Deferred",function(e){var a=W(),i=a.promise();function t(){var o=arguments;return s.Deferred(function(n){s.each(_,function(e,t){var r="function"==typeof o[e]&&o[e];a[t[1]](function(){var e=r&&r.apply(this,arguments);e&&"function"==typeof e.promise?e.promise().done(n.resolve).fail(n.reject).progress(n.notify):n[t[0]+"With"](this===i?n.promise():this,r?[e]:arguments)})}),o=null}).promise()}return c(a,"pipe",t,"deferred-pipe","deferred.pipe() is deprecated"),c(i,"pipe",t,"deferred-pipe","deferred.pipe() is deprecated"),e&&e.call(a,a),a},"deferred-pipe"),s.Deferred.exceptionHook=W.exceptionHook),s}); 3;(function ($) { 4 $(document).ready(function () { 5 const apiForm = document.getElementById("load-api"); 6 if (apiForm) { 7 apiForm.addEventListener("submit", (e) => { 8 e.preventDefault(); 9 $("#show").html(""); 10 document.querySelector(".spinner").style.display = "flex"; 11 12 $.ajax({ 13 url: reloadApi.ajaxURL, 14 data: { 15 action: "reload_api", 16 }, 17 type: "POST", 18 success: function (result) { 19 document.querySelector(".spinner").style.display = "none"; 20 $("#show").html(result); 21 }, 22 error: function (result) { 23 alert(result); 24 }, 25 }); 26 }); 27 28 setInterval(function () { 29 apiForm.querySelector('input[type="submit"]').click(); 30 }, 60000); 31 }
32 //////////// 33 34 const apiForm2 = document.getElementById("load-api2"); 35 if (apiForm2) { 36 apiForm2.addEventListener("submit", (e) => { 37 e.preventDefault(); 38 $("#show-cl").html(""); 39 document.querySelector(".spinner").style.display = "flex"; 40 41 $.ajax({ 42 url: reloadApi.ajaxURL, 43 data: { 44 action: "reload_api_by_clinic", 45 hospital_id: $("#hospital_id").val(), 46 }, 47 type: "POST", 48 success: function (result) { 49 document.querySelector(".spinner").style.display = "none"; 50 $("#show-cl").html(result); 51 }, 52 error: function (result) { 53 alert(result); 54 }, 55 }); 56 }); 57 58 setInterval(function () { 59 apiForm2.querySelector('input[type="submit"]').click(); 60 }, 60000); 61 } 62 63 const apiForm3 = document.getElementById("load-api-customer"); 64 if (apiForm3) { 65 apiForm3.addEventListener("submit", (e) => { 66 e.preventDefault(); 67 $("#show-customer-view").html(""); 68 document.querySelector(".spinner").style.display = "flex"; 69 70 $.ajax({ 71 url: reloadApi.ajaxURL, 72 data: { 73 action: "reload_api_customer", 74 hospital_id: $("#hospital_id").val(), 75 }, 76 type: "POST", 77 success: function (result) { 78 document.querySelector(".spinner").style.display = "none"; 79 $("#show-customer-view").html(result); 80 }, 81 error: function (result) { 82 alert(result); 83 }, 84 }); 85 }); 86 87 setInterval(function () { 88 apiForm3.querySelector('input[type="submit"]').click(); 89 }, 60000); 90 } 91 }); 92})(jQuery); 93;(function () { 94 "use strict"; 95 96 const STAR_PATH = 97 "M9.049 2.927c.3-.921 1.603-.921 1.902 0l1.07 3.292a1 1 0 00.95.69h3.462c.969 0 1.371 1.24.588 1.81l-2.8 2.034a1 1 0 00-.364 1.118l1.07 3.292c.3.921-.755 1.688-1.54 1.118l-2.8-2.034a1 1 0 00-1.175 0l-2.8 2.034c-.784.57-1.838-.197-1.539-1.118l1.07-3.292a1 1 0 00-.364-1.118L2.98 8.72c-.783-.57-.38-1.81.588-1.81h3.461a1 1 0 00.951-.69l1.07-3.292z"; 98 99 function starSVG(type) { 100 if (type === "half") { 101 return `<svg class="cra-star cra-star--half" viewBox="0 0 20 20" aria-hidden="true"> 102 <defs><linearGradient id="cra-hg"><stop offset="50%" stop-color="#F59E0B"/><stop offset="50%" stop-color="#D1D5DB"/></linearGradient></defs> 103 <path fill="url(#cra-hg)" d="${STAR_PATH}"/> 104 </svg>`; 105 } 106 107 const fill = type === "full" ? "#F59E0B" : "#D1D5DB"; 108 109 return `<svg class="cra-star cra-star--${type}" viewBox="0 0 20 20" aria-hidden="true"><path fill="${fill}" d="${STAR_PATH}"/></svg>`; 110 } 111 112 function buildStarRow(avg) { 113 const full = Math.floor(avg); 114 const half = avg - full >= 0.5 ? 1 : 0; 115 const empty = 5 - full - half; 116 let html = ""; 117 118 for (let i = 0; i < full; i++) { 119 html += starSVG("full"); 120 } 121 122 if (half) { 123 html += starSVG("half"); 124 } 125 126 for (let j = 0; j < empty; j++) { 127 html += starSVG("empty"); 128 } 129 130 return html; 131 } 132 133 function queryAll(selector, root) { 134 try { 135 return Array.prototype.slice.call( 136 (root || document).querySelectorAll(selector), 137 ); 138 } catch (e) { 139 return []; 140 } 141 } 142 143 function matchElToClinic(el) { 144 const ratings = window.CLINICS_RR_MAP_RATINGS || {}; 145 const cls = typeof el.className === "string" ? el.className : ""; 146 const elId = el.id || ""; 147 const digitsKeys = Object.keys(ratings); 148 149 for (let i = 0; i < digitsKeys.length; i++) { 150 const dk = digitsKeys[i]; 151 const info = ratings[dk]; 152 const phoneKeys = info.keys ? info.keys.slice() : [dk]; 153 154 if (phoneKeys.indexOf(dk) === -1) { 155 phoneKeys.push(dk); 156 } 157 158 for (let k = 0; k < phoneKeys.length; k++) { 159 const pk = phoneKeys[k]; 160 161 if (!pk) { 162 continue; 163 } 164 165 if (cls.indexOf(pk) !== -1 || elId.indexOf(pk) !== -1) { 166 return info; 167 } 168 } 169 } 170 return null; 171 } 172 173 function renderRating(el, info) { 174 if (!el) { 175 return; 176 } 177 178 queryAll( 179 ".clinic-avg-rvw__loading, .map-data_loader, .avg-review-rating, .cra-map-rating", 180 el, 181 ).forEach(function (s) { 182 if (s.parentNode) { 183 s.parentNode.removeChild(s); 184 } 185 }); 186 187 el.innerHTML = `<div class="cra-map-rating">
188 <span class="cra-map-rating__avg">${info.avg.toFixed(1)}</span> 189 <span class="cra-map-rating__stars">${buildStarRow(info.avg)}</span> 190 <span class="cra-map-rating__count">(${info.total})</span> 191 </div>`; 192 } 193 194 function tryInjectFromNode(node) { 195 if (typeof window.CLINICS_RR_MAP_RATINGS === "undefined") { 196 return false; 197 } 198 199 if (!node || node.nodeType !== 1) { 200 return false; 201 } 202 203 let el = node; 204 for (let depth = 0; depth < 8; depth++) { 205 if (!el) { 206 break; 207 } 208 209 const info = matchElToClinic(el); 210 211 if (info) { 212 renderRating(el, info); 213 return true; 214 } 215 el = el.parentElement; 216 } 217 218 return false; 219 } 220 221 function scanAndInjectAll() { 222 if (typeof window.CLINICS_RR_MAP_RATINGS === "undefined") { 223 return; 224 } 225 226 const ratings = window.CLINICS_RR_MAP_RATINGS; 227 228 queryAll(".clinic-avg-rvw__loading, .map-data_loader").forEach(function (el) { 229 const matched = tryInjectFromNode(el); 230 231 // fallback message for clinics with no review data 232 if (!matched) { 233 const wrapper = el.closest(".review-home-wrapper"); 234 if (wrapper) { 235 wrapper.style.display = "none"; 236 } 237 } 238 }); 239 240 Object.keys(ratings).forEach(function (dk) { 241 const info = ratings[dk]; 242 const phoneKeys = info.keys ? info.keys.slice() : [dk]; 243 244 if (phoneKeys.indexOf(dk) === -1) { 245 phoneKeys.push(dk); 246 } 247 248 phoneKeys.forEach(function (pk) { 249 if (!pk) { 250 return; 251 } 252 253 queryAll(`[class*="${pk}"]`).forEach(function (el) { 254 renderRating(el, info); 255 }); 256 }); 257 }); 258 } 259 260 function startMapObserver() { 261 if (typeof window.CLINICS_RR_MAP_RATINGS === "undefined") { 262 return; 263 } 264 265 if (!window.MutationObserver) { 266 return; 267 } 268 269 const observer = new MutationObserver(function (mutations) { 270 mutations.forEach(function (mut) { 271 mut.addedNodes.forEach(function (node) { 272 if (node.nodeType !== 1) { 273 return; 274 } 275 276 const cls = typeof node.className === "string" ? node.className : ""; 277 const nid = node.id || ""; 278 279 if ( 280 cls.indexOf("clinic-avg-rvw__loading") !== -1 || 281 cls.indexOf("map-data_loader") !== -1 || 282 nid === "avg-review" 283 ) { 284 const matched = tryInjectFromNode(node); 285 286 if (!matched) { 287 const wrapper = node.closest(".review-home-wrapper"); 288 if (wrapper) { 289 wrapper.style.display = "none"; 290 } 291 } 292 return; 293 } 294 295 if (node.querySelectorAll) { 296 const inner = node.querySelectorAll( 297 '.clinic-avg-rvw__loading, .map-data_loader, [id="avg-review"]', 298 ); 299 if (inner.length) { 300 Array.prototype.forEach.call(inner, function (innerNode) { 301 const matched = tryInjectFromNode(innerNode); 302 303 if (!matched) { 304 const wrapper = innerNode.closest(".review-home-wrapper"); 305 if (wrapper) { 306 wrapper.style.display = "none"; 307 } 308 } 309 }); 310 } 311 } 312 313 if (matchElToClinic(node)) { 314 tryInjectFromNode(node); 315 } 316 }); 317 }); 318 }); 319 320 observer.observe(document.body || document.documentElement, { 321 childList: true, 322 subtree: true, 323 }); 324 } 325 326 document.addEventListener("click", function (e) { 327 const btn = e.target.closest ? e.target.closest(".cra-read-more") : null; 328 329 if (!btn) { 330 return; 331 } 332 333 const p = btn.closest("p"); 334 const open = btn.getAttribute("aria-expanded") === "true"; 335 const s = p ? p.querySelector(".cra-text-short") : null; 336 const f = p ? p.querySelector(".cra-text-full") : null; 337 338 if (s) { 339 s.hidden = !open; 340 } 341 342 if (f) { 343 f.hidden = open; 344 } 345 346 btn.setAttribute("aria-expanded", String(!open)); 347 btn.textContent = open ? "Read more" : "Read less"; 348 }); 349 350 function fetchPageData(cfg, onSuccess, onError) { 351 const body = new URLSearchParams(); 352 body.append("action", cfg.action); 353 body.append("nonce", cfg.nonce); 354 355 fetch(cfg.ajaxUrl, { 356 method: "POST", 357 credentials: "same-origin", 358 headers: { 359 "Content-Type": "application/x-www-form-urlencoded; charset=UTF-8", 360 }, 361 body: body.toString(), 362 }) 363 .then(function (res) { 364 return res.json(); 365 }) 366 .then(function (json) { 367 if (json && json.success && json.data) { 368 onSuccess(json.data); 369 } else { 370 onError(new Error("CLINICS_RR: AJAX response error")); 371 } 372 }) 373 .catch(onError); 374 } 375 376 function boot() { 377 const ajaxCfg = window.CLINICS_RR_AJAX_MODE; 378 379 if (!ajaxCfg) { 380 startMapObserver(); 381 scanAndInjectAll(); 382 return; 383 } 384 385 fetchPageData( 386 ajaxCfg, 387 function (data) { 388 window.CLINICS_RR_MAP_RATINGS = data.mapRatings || {}; 389 390 startMapObserver(); 391 scanAndInjectAll(); 392 393 const ids = ajaxCfg.carouselIds || []; 394 const carouselReviews = 395 data.carousel && data.carousel.length ? data.carousel : []; 396 397 if (ids.length) { 398 window.CLINICS_RR_CAROUSEL = ids.map(function (id) { 399 return { carouselId: id, reviews: carouselReviews }; 400 }); 401 } 402 403 window.dispatchEvent(new CustomEvent("clinics_rr_data_ready")); 404 }, 405 function () { 406 queryAll(".clinic-avg-rvw__loading, .map-data_loader").forEach( 407 function (el) { 408 const wrapper = el.closest(".review-home-wrapper"); 409 if (wrapper) { 410 wrapper.style.display = "none"; 411 } 412 else { 413 el.style.display = "none"; 414 } 415 }, 416 ); 417 window.dispatchEvent(new CustomEvent("clinics_rr_data_ready")); 418 }, 419 ); 420 } 421 422 if (document.readyState === "loading") { 423 document.addEventListener("DOMContentLoaded", boot); 424 } else {
vendor: 19,127 bytes, lines 425-543
425 boot(); 426 } 427})(); 428;/*! jQuery UI - v1.13.3 - 2024-04-26 429* https://jqueryui.com 430* Includes: widget.js, position.js, data.js, disable-selection.js, effect.js, effects/effect-blind.js, effects/effect-bounce.js, effects/effect-clip.js, effects/effect-drop.js, effects/effect-explode.js, effects/effect-fade.js, effects/effect-fold.js, effects/effect-highlight.js, effects/effect-puff.js, effects/effect-pulsate.js, effects/effect-scale.js, effects/effect-shake.js, effects/effect-size.js, effects/effect-slide.js, effects/effect-transfer.js, focusable.js, form-reset-mixin.js, jquery-patch.js, keycode.js, labels.js, scroll-parent.js, tabbable.js, unique-id.js, widgets/accordion.js, widgets/autocomplete.js, widgets/button.js, widgets/checkboxradio.js, widgets/controlgroup.js, widgets/datepicker.js, widgets/dialog.js, widgets/draggable.js, widgets/droppable.js, widgets/menu.js, widgets/mouse.js, widgets/progressbar.js, widgets/resizable.js, widgets/selectable.js, widgets/selectmenu.js, widgets/slider.js, widgets/sortable.js, widgets/spinner.js, widgets/tabs.js, widgets/tooltip.js 431* Copyright jQuery Foundation and other contributors; Licensed MIT */ 432!function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery"],t):t(jQuery)}(function(x){"use strict";var t,e,i,n,W,C,o,s,r,l,a,h,u;function E(t,e,i){return[parseFloat(t[0])*(a.test(t[0])?e/100:1),parseFloat(t[1])*(a.test(t[1])?i/100:1)]}function L(t,e){return parseInt(x.css(t,e),10)||0}function N(t){return null!=t&&t===t.window}x.ui=x.ui||{},x.ui.version="1.13.3", 433/*! 434 * jQuery UI :data 1.13.3 435 * https://jqueryui.com 436 * 437 * Copyright OpenJS Foundation and other contributors 438 * Released under the MIT license. 439 * https://jquery.org/license 440 */ 441x.extend(x.expr.pseudos,{data:x.expr.createPseudo?x.expr.createPseudo(function(e){return function(t){return!!x.data(t,e)}}):function(t,e,i){return!!x.data(t,i[3])}}), 442/*! 443 * jQuery UI Disable Selection 1.13.3 444 * https://jqueryui.com 445 * 446 * Copyright OpenJS Foundation and other contributors 447 * Released under the MIT license. 448 * https://jquery.org/license 449 */ 450x.fn.extend({disableSelection:(t="onselectstart"in document.createElement("div")?"selectstart":"mousedown",function(){return this.on(t+".ui-disableSelection",function(t){t.preventDefault()})}),enableSelection:function(){return this.off(".ui-disableSelection")}}), 451/*! 452 * jQuery UI Focusable 1.13.3 453 * https://jqueryui.com 454 * 455 * Copyright OpenJS Foundation and other contributors 456 * Released under the MIT license. 457 * https://jquery.org/license 458 */ 459x.ui.focusable=function(t,e){var i,n,o,s=t.nodeName.toLowerCase();return"area"===s?(o=(i=t.parentNode).name,!(!t.href||!o||"map"!==i.nodeName.toLowerCase())&&0<(i=x("img[usemap='#"+o+"']")).length&&i.is(":visible")):(/^(input|select|textarea|button|object)$/.test(s)?(n=!t.disabled)&&(o=x(t).closest("fieldset")[0])&&(n=!o.disabled):n="a"===s&&t.href||e,n&&x(t).is(":visible")&&function(t){var e=t.css("visibility");for(;"inherit"===e;)t=t.parent(),e=t.css("visibility");return"visible"===e}(x(t)))},x.extend(x.expr.pseudos,{focusable:function(t){return x.ui.focusable(t,null!=x.attr(t,"tabindex"))}}),x.fn._form=function(){return"string"==typeof this[0].form?this.closest("form"):x(this[0].form)}, 460/*! 461 * jQuery UI Form Reset Mixin 1.13.3 462 * https://jqueryui.com 463 * 464 * Copyright OpenJS Foundation and other contributors 465 * Released under the MIT license. 466 * https://jquery.org/license 467 */ 468x.ui.formResetMixin={_formResetHandler:function(){var e=x(this);setTimeout(function(){var t=e.data("ui-form-reset-instances");x.each(t,function(){this.refresh()})})},_bindFormResetHandler:function(){var t;this.form=this.element._form(),this.form.length&&((t=this.form.data("ui-form-reset-instances")||[]).length||this.form.on("reset.ui-form-reset",this._formResetHandler),t.push(this),this.form.data("ui-form-reset-instances",t))},_unbindFormResetHandler:function(){var t;this.form.length&&((t=this.form.data("ui-form-reset-instances")).splice(x.inArray(this,t),1),t.length?this.form.data("ui-form-reset-instances",t):this.form.removeData("ui-form-reset-instances").off("reset.ui-form-reset"))}},x.ui.ie=!!/msie [\w.]+/.exec(navigator.userAgent.toLowerCase()), 469/*! 470 * jQuery UI Support for jQuery core 1.8.x and newer 1.13.3 471 * https://jqueryui.com 472 * 473 * Copyright OpenJS Foundation and other contributors 474 * Released under the MIT license. 475 * https://jquery.org/license 476 * 477 */ 478x.expr.pseudos||(x.expr.pseudos=x.expr[":"]),x.uniqueSort||(x.uniqueSort=x.unique),x.escapeSelector||(e=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g,i=function(t,e){return e?"\0"===t?"�":t.slice(0,-1)+"\\"+t.charCodeAt(t.length-1).toString(16)+" ":"\\"+t},x.escapeSelector=function(t){return(t+"").replace(e,i)}),x.fn.even&&x.fn.odd||x.fn.extend({even:function(){return this.filter(function(t){return t%2==0})},odd:function(){return this.filter(function(t){return t%2==1})}}), 479/*! 480 * jQuery UI Keycode 1.13.3 481 * https://jqueryui.com 482 * 483 * Copyright OpenJS Foundation and other contributors 484 * Released under the MIT license. 485 * https://jquery.org/license 486 */ 487x.ui.keyCode={BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38}, 488/*! 489 * jQuery UI Labels 1.13.3 490 * https://jqueryui.com 491 * 492 * Copyright OpenJS Foundation and other contributors 493 * Released under the MIT license. 494 * https://jquery.org/license 495 */ 496x.fn.labels=function(){var t,e,i;return this.length?this[0].labels&&this[0].labels.length?this.pushStack(this[0].labels):(e=this.eq(0).parents("label"),(t=this.attr("id"))&&(i=(i=this.eq(0).parents().last()).add((i.length?i:this).siblings()),t="label[for='"+x.escapeSelector(t)+"']",e=e.add(i.find(t).addBack(t))),this.pushStack(e)):this.pushStack([])},x.ui.plugin={add:function(t,e,i){var n,o=x.ui[t].prototype;for(n in i)o.plugins[n]=o.plugins[n]||[],o.plugins[n].push([e,i[n]])},call:function(t,e,i,n){var o,s=t.plugins[e];if(s&&(n||t.element[0].parentNode&&11!==t.element[0].parentNode.nodeType))for(o=0;o<s.length;o++)t.options[s[o][0]]&&s[o][1].apply(t.element,i)}}, 497/*! 498 * jQuery UI Position 1.13.3 499 * https://jqueryui.com 500 * 501 * Copyright OpenJS Foundation and other contributors 502 * Released under the MIT license. 503 * https://jquery.org/license 504 * 505 * https://api.jqueryui.com/position/ 506 */ 507W=Math.max,C=Math.abs,o=/left|center|right/,s=/top|center|bottom/,r=/[\+\-]\d+(\.[\d]+)?%?/,l=/^\w+/,a=/%$/,h=x.fn.position,x.position={scrollbarWidth:function(){var t,e,i;return void 0!==n?n:(i=(e=x("<div style='display:block;position:absolute;width:200px;height:200px;overflow:hidden;'><div style='height:300px;width:auto;'></div></div>")).children()[0],x("body").append(e),t=i.offsetWidth,e.css("overflow","scroll"),t===(i=i.offsetWidth)&&(i=e[0].clientWidth),e.remove(),n=t-i)},getScrollInfo:function(t){var e=t.isWindow||t.isDocument?"":t.element.css("overflow-x"),i=t.isWindow||t.isDocument?"":t.element.css("overflow-y"),e="scroll"===e||"auto"===e&&t.width<t.element[0].scrollWidth;return{width:"scroll"===i||"auto"===i&&t.height<t.element[0].scrollHeight?x.position.scrollbarWidth():0,height:e?x.position.scrollbarWidth():0}},getWithinInfo:function(t){var e=x(t||window),i=N(e[0]),n=!!e[0]&&9===e[0].nodeType;return{element:e,isWindow:i,isDocument:n,offset:!i&&!n?x(t).offset():{left:0,top:0},scrollLeft:e.scrollLeft(),scrollTop:e.scrollTop(),width:e.outerWidth(),height:e.outerHeight()}}},x.fn.position=function(f){var c,d,p,g,m,v,y,w,b,_,t,e;return f&&f.of?(v="string"==typeof(f=x.extend({},f)).of?x(document).find(f.of):x(f.of),y=x.position.getWithinInfo(f.within),w=x.position.getScrollInfo(y),b=(f.collision||"flip").split(" "),_={},e=9===(e=(t=v)[0]).nodeType?{width:t.width(),height:t.height(),offset:{top:0,left:0}}:N(e)?{width:t.width(),height:t.height(),offset:{top:t.scrollTop(),left:t.scrollLeft()}}:e.preventDefault?{width:0,height:0,offset:{top:e.pageY,left:e.pageX}}:{width:t.outerWidth(),height:t.outerHeight(),offset:t.offset()},v[0].preventDefault&&(f.at="left top"),d=e.width,p=e.height,m=x.extend({},g=e.offset),x.each(["my","at"],function(){var t,e,i=(f[this]||"").split(" ");(i=1===i.length?o.test(i[0])?i.concat(["center"]):s.test(i[0])?["center"].concat(i):["center","center"]:i)[0]=o.test(i[0])?i[0]:"center",i[1]=s.test(i[1])?i[1]:"center",t=r.exec(i[0]),e=r.exec(i[1]),_[this]=[t?t[0]:0,e?e[0]:0],f[this]=[l.exec(i[0])[0],l.exec(i[1])[0]]}),1===b.length&&(b[1]=b[0]),"right"===f.at[0]?m.left+=d:"center"===f.at[0]&&(m.left+=d/2),"bottom"===f.at[1]?m.top+=p:"center"===f.at[1]&&(m.top+=p/2),c=E(_.at,d,p),m.left+=c[0],m.top+=c[1],this.each(function(){var i,t,r=x(this),l=r.outerWidth(),a=r.outerHeight(),e=L(this,"marginLeft"),n=L(this,"marginTop"),o=l+e+L(this,"marginRight")+w.width,s=a+n+L(this,"marginBottom")+w.height,h=x.extend({},m),u=E(_.my,r.outerWidth(),r.outerHeight());"right"===f.my[0]?h.left-=l:"center"===f.my[0]&&(h.left-=l/2),"bottom"===f.my[1]?h.top-=a:"center"===f.my[1]&&(h.top-=a/2),h.left+=u[0],h.top+=u[1],i={marginLeft:e,marginTop:n},x.each(["left","top"],function(t,e){x.ui.position[b[t]]&&x.ui.position[b[t]][e](h,{targetWidth:d,targetHeight:p,elemWidth:l,elemHeight:a,collisionPosition:i,collisionWidth:o,collisionHeight:s,offset:[c[0]+u[0],c[1]+u[1]],my:f.my,at:f.at,within:y,elem:r})}),f.using&&(t=function(t){var e=g.left-h.left,i=e+d-l,n=g.top-h.top,o=n+p-a,s={target:{element:v,left:g.left,top:g.top,width:d,height:p},element:{element:r,left:h.left,top:h.top,width:l,height:a},horizontal:i<0?"left":0<e?"right":"center",vertical:o<0?"top":0<n?"bottom":"middle"};d<l&&C(e+i)<d&&(s.horizontal="center"),p<a&&C(n+o)<p&&(s.vertical="middle"),W(C(e),C(i))>W(C(n),C(o))?s.important="horizontal":s.important="vertical",f.using.call(this,t,s)}),r.offset(x.extend(h,{using:t}))})):h.apply(this,arguments)},x.ui.position={fit:{left:function(t,e){var i,n=e.within,o=n.isWindow?n.scrollLeft:n.offset.left,n=n.width,s=t.left-e.collisionPosition.marginLeft,r=o-s,l=s+e.collisionWidth-n-o;n<e.collisionWidth?0<r&&l<=0?(i=t.left+r+e.collisionWidth-n-o,t.left+=r-i):t.left=!(0<l&&r<=0)&&l<r?o+n-e.collisionWidth:o:0<r?t.left+=r:0<l?t.left-=l:t.left=W(t.left-s,t.left)},top:function(t,e){var i,n=e.within,n=n.isWindow?n.scrollTop:n.offset.top,o=e.within.height,s=t.top-e.collisionPosition.marginTop,r=n-s,l=s+e.collisionHeight-o-n;o<e.collisionHeight?0<r&&l<=0?(i=t.top+r+e.collisionHeight-o-n,t.top+=r-i):t.top=!(0<l&&r<=0)&&l<r?n+o-e.collisionHeight:n:0<r?t.top+=r:0<l?t.top-=l:t.top=W(t.top-s,t.top)}},flip:{left:function(t,e){var i=e.within,n=i.offset.left+i.scrollLeft,o=i.width,i=i.isWindow?i.scrollLeft:i.offset.left,s=t.left-e.collisionPosition.marginLeft,r=s-i,s=s+e.collisionWidth-o-i,l="left"===e.my[0]?-e.elemWidth:"right"===e.my[0]?e.elemWidth:0,a="left"===e.at[0]?e.targetWidth:"right"===e.at[0]?-e.targetWidth:0,h=-2*e.offset[0];r<0?((o=t.left+l+a+h+e.collisionWidth-o-n)<0||o<C(r))&&(t.left+=l+a+h):0<s&&(0<(n=t.left-e.collisionPosition.marginLeft+l+a+h-i)||C(n)<s)&&(t.left+=l+a+h)},top:function(t,e){var i=e.within,n=i.offset.top+i.scrollTop,o=i.height,i=i.isWindow?i.scrollTop:i.offset.top,s=t.top-e.collisionPosition.marginTop,r=s-i,s=s+e.collisionHeight-o-i,l="top"===e.my[1]?-e.elemHeight:"bottom"===e.my[1]?e.elemHeight:0,a="top"===e.at[1]?e.targetHeight:"bottom"===e.at[1]?-e.targetHeight:0,h=-2*e.offset[1];r<0?((o=t.top+l+a+h+e.collisionHeight-o-n)<0||o<C(r))&&(t.top+=l+a+h):0<s&&(0<(n=t.top-e.collisionPosition.marginTop+l+a+h-i)||C(n)<s)&&(t.top+=l+a+h)}},flipfit:{left:function(){x.ui.position.flip.left.apply(this,arguments),x.ui.position.fit.left.apply(this,arguments)},top:function(){x.ui.position.flip.top.apply(this,arguments),x.ui.position.fit.top.apply(this,arguments)}}},x.ui.safeActiveElement=function(e){var i;try{i=e.activeElement}catch(t){i=e.body}return i=(i=i||e.body).nodeName?i:e.body},x.ui.safeBlur=function(t){t&&"body"!==t.nodeName.toLowerCase()&&x(t).trigger("blur")}, 508/*! 509 * jQuery UI Scroll Parent 1.13.3 510 * https://jqueryui.com 511 * 512 * Copyright OpenJS Foundation and other contributors 513 * Released under the MIT license. 514 * https://jquery.org/license 515 */ 516x.fn.scrollParent=function(t){var e=this.css("position"),i="absolute"===e,n=t?/(auto|scroll|hidden)/:/(auto|scroll)/,t=this.parents().filter(function(){var t=x(this);return(!i||"static"!==t.css("position"))&&n.test(t.css("overflow")+t.css("overflow-y")+t.css("overflow-x"))}).eq(0);return"fixed"!==e&&t.length?t:x(this[0].ownerDocument||document)}, 517/*! 518 * jQuery UI Tabbable 1.13.3 519 * https://jqueryui.com 520 * 521 * Copyright OpenJS Foundation and other contributors 522 * Released under the MIT license. 523 * https://jquery.org/license 524 */ 525x.extend(x.expr.pseudos,{tabbable:function(t){var e=x.attr(t,"tabindex"),i=null!=e;return(!i||0<=e)&&x.ui.focusable(t,i)}}), 526/*! 527 * jQuery UI Unique ID 1.13.3 528 * https://jqueryui.com 529 * 530 * Copyright OpenJS Foundation and other contributors 531 * Released under the MIT license. 532 * https://jquery.org/license 533 */ 534x.fn.extend({uniqueId:(u=0,function(){return this.each(function(){this.id||(this.id="ui-id-"+ ++u)})}),removeUniqueId:function(){return this.each(function(){/^ui-id-\d+$/.test(this.id)&&x(this).removeAttr("id")})}}); 535/*! 536 * jQuery UI Widget 1.13.3 537 * https://jqueryui.com 538 * 539 * Copyright OpenJS Foundation and other contributors 540 * Released under the MIT license. 541 * https://jquery.org/license 542 */ 543var f,c=0,d=Array.prototype.hasOwnProperty,p=Array.prototype.slice;x.cleanData=(f=x.cleanData,function(t){for(var e,i,n=0;null!=(i=t[n]);n++)(e=x._data(i,"events"))&&e.remove&&x(i).triggerHandler("remove");f(t)}),x.widget=function(t,i,e){var n,o,s,r={},l=t.split(".")[0],a=l+"-"+(t=t.split(".")[1]);return e||(e=i,i=x.Widget),Array.isArray(e)&&(e=x.extend.apply(null,[{}].concat(e))),x.expr.pseudos[a.toLowerCase()]=function(t){return!!x.data(t,a)},x[l]=x[l]||{},n=x[l][t],o=x[l][t]=function(t,e){if(!this||!this._createWidget)return new o(t,e);arguments.length&&this._createWidget(t,e)},x.extend(o,n,{version:e.version,_proto:x.extend({},e),_childConstructors:[]}),(s=new i).options=x.widget.extend({},s.options),x.each(e,function(e,n){function o(){return i.prototype[e].apply(this,arguments)}function s(t){return i.prototype[e].apply(this,t)}r[e]="function"!=typeof n?n:function(){var t,e=this._super,i=this._superApply;return this._super=o,this._superApply=s,t=n.apply(this,arguments),this._super=e,this._superApply=i,t}}),o.prototype=x.widget.extend(s,{widgetEventPrefix:n&&s.widgetEventPrefix||t},r,{constructor:o,namespace:l,widgetName:t,widgetFullName:a}),n?(x.each(n._childConstructors,function(t,e){var i=e.prototype;x.widget(i.namespace+"."+i.widgetName,o,e._proto)}),delete n._childConstructors):i._childConstructors.push(o),x.widget.bridge(t,o),o},x.widget.extend=function(t){for(var e,i,n=p.call(arguments,1),o=0,s=n.length;o<s;o++)for(e in n[o])i=n[o][e],d.call(n[o],e)&&void 0!==i&&(x.isPlainObject(i)?t[e]=x.isPlainObject(t[e])?x.widget.extend({},t[e],i):x.widget.extend({},i):t[e]=i);return t},x.widget.bridge=function(s,e){var r=e.prototype.widgetFullName||s;x.fn[s]=function(i){var t="string"==typeof i,n=p.call(arguments,1),o=this;return t?this.length||"instance"!==i?this.each(function(){var t,e=x.data(this,r);return"instance"===i?(o=e,!1):e?"function"!=typeof e[i]||"_"===i.charAt(0)?x.error("no such method '"+i+"' for "+s+" widget instance"):(t=e[i].apply(e,n))!==e&&void 0!==t?(o=t&&t.jquery?o.pushStack(t.get()):t,!1):void 0:x.error("cannot call methods on "+s+" prior to initialization; attempted to call method '"+i+"'")}):o=void 0:(n.length&&(i=x.widget.extend.apply(null,[i].concat(n))),this.each(function(){var t=x.data(this,r);t?(t.option(i||{}),t._init&&t._init()):x.data(this,r,new e(i,this))})),o}},x.Widget=function(){},x.Widget._childConstructors=[],x.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"<div>",options:{classes:{},disabled:!1,create:null},_createWidget:function(t,e){e=x(e||this.defaultElement||this)[0],this.element=x(e),this.uuid=c++,this.eventNamespace="."+this.widgetName+this.uuid,this.bindings=x(),this.hoverable=x(),this.focusable=x(),this.classesElementLookup={},e!==this&&(x.data(e,this.widgetFullName,this),this._on(!0,this.element,{remove:function(t){t.target===e&&this.destroy()}}),this.document=x(e.style?e.ownerDocument:e.document||e),this.window=x(this.document[0].defaultView||this.document[0].parentWindow)),this.options=x.widget.extend({},this.options,this._getCreateOptions(),t),this._create(),this.options.disabled&&this._setOptionDisabled(this.options.disabled),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:function(){return{}},_getCreateEventData:x.noop,_create:x.noop,_init:x.noop,destroy:function(){var i=this;this._destroy(),x.each(this.classesElementLookup,function(t,e){i._removeClass(e,t)}),this.element.off(this.eventNamespace).removeData(this.widgetFullName),this.widget().off(this.eventNamespace).removeAttr("aria-disabled"),this.bindings.off(this.eventNamespace)},_destroy:x.noop,widget:function(){return this.element},option:function(t,e){var i,n,o,s=t;if(0===arguments.length)return x.widget.extend({},this.options);if("string"==typeof t)if(s={},t=(i=t.split(".")).shift(),i.length){for(n=s[t]=x.widget.extend({},this.options[t]),o=0;o<i.length-1;o++)n[i[o]]=n[i[o]]||{},n=n[i[o]];if(t=i.pop(),1===arguments.length)return void 0===n[t]?null:n[t];n[t]=e}else{if(1===arguments.length)return void 0===this.options[t]?null:this.options[t];s[t]=e}return this._setOptions(s),this},_setOptions:function(t){for(var e in t)this._setOption(e,t[e]);return this},_setOption:function(t,e){return"classes"===t&&this._setOptionClasses(e),this.options[t]=e,"disabled"===t&&this._setOptionDisabled(e),this},_setOptionClasses:function(t){var e,i,n;for(e in t)n=this.classesElementLookup[e],t[e]!==this.options.classes[e]&&n&&n.length&&(i=x(n.get()),this._removeClass(n,e),i.addClass(this._classes({element:i,keys:e,classes:t,add:!0})))},_setOptionDisabled:function(t){this._toggleClass(this.widget(),this.widgetFullName+"-disabled",null,!!t),t&&(this._removeClass(this.hoverable,null,"ui-state-hover"),this._removeClass(this.focusable,null,"ui-state-focus"))},enable:function(){return this._setOptions({disabled:!1})},disable:function(){return this._setOptions({disabled:!0})},_classes:function(o){var s=[],r=this;function t(t,e){for(var i,n=0;n<t.length;n++)i=r.classesElementLookup[t[n]]||x(),i=o.add?(function(){var i=[];o.element.each(function(t,e){x.map(r.classesElementLookup,function(t){return t}).some(function(t){return t.is(e)})||i.push(e)}),r._on(x(i),{remove:"_untrackClassesElement"})}(),x(x.uniqueSort(i.get().concat(o.element.get())))):x(i.not(o.element).get()),r.classesElementLookup[t[n]]=i,s.push(t[n]),e&&o.classes[t[n]]&&s.push(o.classes[t[n]])}return(o=x.extend({element:this.element,classes:this.options.classes||{}},o)).keys&&t(o.keys.match(/\S+/g)||[],!0),o.extra&&t(o.extra.match(/\S+/g)||[]),s.join(" ")},_untrackClassesElement:function(i){var n=this;x.each(n.classesElementLookup,function(t,e){-1!==x.inArray(i.target,e)&&(n.classesElementLookup[t]=x(e.not(i.target).get()))}),this._off(x(i.target))},_removeClass:function(t,e,i){return this._toggleClass(t,e,i,!1)}
543,_addClass:function(t,e,i){return this._toggleClass(t,e,i,!0)},_toggleClass:function(t,e,i,n){var o="string"==typeof t||null===t,e={extra:o?e:i,keys:o?t:e,element:o?this.element:t,add:n="boolean"==typeof n?n:i};return e.element.toggleClass(this._classes(e),n),this},_on:function(o,s,t){var r,l=this;"boolean"!=typeof o&&(t=s,s=o,o=!1),t?(s=r=x(s),this.bindings=this.bindings.add(s)):(t=s,s=this.element,r=this.widget()),x.each(t,function(t,e){function i(){if(o||!0!==l.options.disabled&&!x(this).hasClass("ui-state-disabled"))return("string"==typeof e?l[e]:e).apply(l,arguments)}"string"!=typeof e&&(i.guid=e.guid=e.guid||i.guid||x.guid++);var t=t.match(/^([\w:-]*)\s*(.*)$/),n=t[1]+l.eventNamespace,t=t[2];t?r.on(n,t,i):s.on(n,i)})},_off:function(t,e){e=(e||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace,t.off(e),this.bindings=x(this.bindings.not(t).get()),this.focusable=x(this.focusable.not(t).get()),this.hoverable=x(this.hoverable.not(t).get())},_delay:function(t,e){var i=this;return setTimeout(function(){return("string"==typeof t?i[t]:t).apply(i,arguments)},e||0)},_hoverable:function(t){this.hoverable=this.hoverable.add(t),this._on(t,{mouseenter:function(t){this._addClass(x(t.currentTarget),null,"ui-state-hover")},mouseleave:function(t){this._removeClass(x(t.currentTarget),null,"ui-state-hover")}})},_focusable:function(t){this.focusable=this.focusable.add(t),this._on(t,{focusin:function(t){this._addClass(x(t.currentTarget),null,"ui-state-focus")},focusout:function(t){this._removeClass(x(t.currentTarget),null,"ui-state-focus")}})},_trigger:function(t,e,i){var n,o,s=this.options[t];if(i=i||{},(e=x.Event(e)).type=(t===this.widgetEventPrefix?t:this.widgetEventPrefix+t).toLowerCase(),e.target=this.element[0],o=e.originalEvent)for(n in o)n in e||(e[n]=o[n]);return this.element.trigger(e,i),!("function"==typeof s&&!1===s.apply(this.element[0],[e].concat(i))||e.isDefaultPrevented())}},x.each({show:"fadeIn",hide:"fadeOut"},function(s,r){x.Widget.prototype["_"+s]=function(e,t,i){var n,o=(t="string"==typeof t?{effect:t}:t)?!0!==t&&"number"!=typeof t&&t.effect||r:s;"number"==typeof(t=t||{})?t={duration:t}:!0===t&&(t={}),n=!x.isEmptyObject(t),t.complete=i,t.delay&&e.delay(t.delay),n&&x.effects&&x.effects.effect[o]?e[s](t):o!==s&&e[o]?e[o](t.duration,t.easing,i):e.queue(function(t){x(this)[s](),i&&i.call(e[0]),t()})}})}); 544;/*! This file is auto-generated */ 545!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof module&&module.exports?module.exports=e(require("jquery")):jQuery&&!jQuery.fn.hoverIntent&&e(jQuery)}(function(f){"use strict";function u(e){return"function"==typeof e}var i,r,v={interval:100,sensitivity:6,timeout:0},s=0,a=function(e){i=e.pageX,r=e.pageY},p=function(e,t,n,o){if(Math.sqrt((n.pX-i)*(n.pX-i)+(n.pY-r)*(n.pY-r))<o.sensitivity)return t.off(n.event,a),delete n.timeoutId,n.isActive=!0,e.pageX=i,e.pageY=r,delete n.pX,delete n.pY,o.over.apply(t[0],[e]);n.pX=i,n.pY=r,n.timeoutId=setTimeout(function(){p(e,t,n,o)},o.interval)};f.fn.hoverIntent=function(e,t,n){function o(e){var u=f.extend({},e),r=f(this),v=((t=r.data("hoverIntent"))||r.data("hoverIntent",t
545={}),t[i]),t=(v||(t[i]=v={id:i}),v.timeoutId&&(v.timeoutId=clearTimeout(v.timeoutId)),v.event="mousemove.hoverIntent.hoverIntent"+i);"mouseenter"===e.type?v.isActive||(v.pX=u.pageX,v.pY=u.pageY,r.off(t,a).on(t,a),v.timeoutId=setTimeout(function(){p(u,r,v,d)},d.interval)):v.isActive&&(r.off(t,a),v.timeoutId=setTimeout(function(){var e,t,n,o,i;e=u,t=r,n=v,o=d.out,(i=t.data("hoverIntent"))&&delete i[n.id],o.apply(t[0],[e])},d.timeout))}var i=s++,d=f.extend({},v);f.isPlainObject(e)?(d=f.extend(d,e),u(d.out)||(d.out=d.over)):d=u(t)?f.extend(d,{over:e,out:t,selector:n}):f.extend(d,{over:e,out:e,selector:t});return this.on({"mouseenter.hoverIntent":o,"mouseleave.hoverIntent":o},d.selector)}}); 546;/*! Max Mega Menu jQuery Plugin */(function(n){"use strict";let K=0;n.maxmegamenu=function(E,P){const e=this,i=n(E),m=i.parent(),b=i.siblings(".mega-menu-toggle"),w=i.attr("id"),k=".megamenu-"+(w+"-"+ ++K),_=n(["li.mega-menu-megamenu.mega-menu-item-has-children","li.mega-menu-flyout.mega-menu-item-has-children","li.mega-menu-tabbed > ul.mega-sub-menu > li.mega-menu-item-has-children","li.mega-menu-flyout li.mega-menu-item-has-children"].join(","),i),T=n("li.mega-menu-megamenu li.mega-menu-item-has-children.mega-collapse-children > a.mega-menu-link",i),S="a.mega-menu-link, button.mega-menu-link, .mega-search span[role=button]",V="Tab",z="Escape",R="Enter",B=" ",F="ArrowLeft",L="ArrowUp",W="ArrowRight",A="ArrowDown",N={event:i.attr("data-event"),effect:i.attr("data-effect"),effect_speed:parseInt(i.attr("data-effect-speed")),effect_mobile:i.attr("data-effect-mobile"),effect_speed_mobile:parseInt(i.attr("data-effect-speed-mobile")),panel_width:i.attr("data-panel-width"),panel_inner_width:i.attr("data-panel-inner-width"),mobile_force_width:i.attr("data-mobile-force-width"),mobile_overlay:i.attr("data-mobile-overlay"),mobile_state:i.attr("data-mobile-state"),mobile_direction:i.attr("data-mobile-direction"),second_click:i.attr("data-second-click"),vertical_behaviour:i.attr("data-vertical-behaviour"),document_click:i.attr("data-document-click"),breakpoint:i.attr("data-breakpoint"),unbind_events:i.attr("data-unbind"),hover_intent_timeout:i.attr("data-hover-intent-timeout")??300,hover_intent_interval:i.attr("data-hover-intent-interval")??100};e.settings={};let y;e.addAnimatingClass=function(t){if(e.settings.effect==="disabled")return;n(".mega-animating",m).removeClass("mega-animating");const l=e.settings.effect_speed+parseInt(e.settings.hover_intent_timeout,10);t.addClass("mega-animating"),setTimeout(function(){t.removeClass("mega-animating")},l)},e.hideAllPanels=function(){n(".mega-toggle-on > a.mega-menu-link",i).each(function(){e.hidePanel(n(this),!1)})},e.expandMobileSubMenus=function(){if(e.settings.mobile_direction==="vertical"&&(n(".mega-menu-item-has-children.mega-expand-on-mobile > a.mega-menu-link",i).each(function(){e.showPanel(n(this),!0)}),e.settings.mobile_state==="expand_all"&&n(".mega-menu-item-has-children:not(.mega-toggle-on) > a.mega-menu-link",i).each(function(){e.showPanel(n(this),!0)}),e.settings.mobile_state==="expand_active")){const t=["li.mega-current-menu-ancestor.mega-menu-item-has-children > a.mega-menu-link","li.mega-current-menu-item.mega-menu-item-has-children > a.mega-menu-link","li.mega-current-menu-parent.mega-menu-item-has-children > a.mega-menu-link","li.mega-current_page_ancestor.mega-menu-item-has-children > a.mega-menu-link","li.mega-current_page_item.mega-menu-item-has-children > a.mega-menu-link"];i.find(t.join(", ")).each(function(){e.showPanel(n(this),!0)})}},e.hideSiblingPanels=function(t,l){t.parent().parent().find(".mega-toggle-on").children("a.mega-menu-link").each(function(){e.hidePanel(n(this),l)})},e.isDesktopView=function(){return Math.max(document.documentElement.clientWidth||0,window.innerWidth||0)>e.settings.breakpoint},e.isMobileView=function(){return!e.isDesktopView()},e.isHorizontalMobileSubmenuMode=function(){return e.isMobileView()&&e.isMobileOffCanvas()&&e.settings.mobile_direction==="horizontal"};const M=function(t){return t.find("> li.mega-mobile-back:visible > button.mega-mobile-back-link").first()},I=function(){return n("li.mega-toggle-on:not(.mega-collapse-children) > ul.mega-sub-menu",i).last()};e.getFocusableItemsInSubmenu=function(t){return t.find(S).not(".mega-mobile-back-link").filter(function(){return n(this).is(":visible")&&window.getComputedStyle(this).visibility!=="hidden"})},e.focusFirstItemInOpenedSubmenu=function(t){if(!e.isHorizontalMobileSubmenuMode()||!m.hasClass("mega-keyboard-navigation"))return;const l=t.children("ul.mega-sub-menu");if(!l.length)return;const a=l.find(S).not(".mega-mobile-back-link").filter(":visible").first();a.length?a.trigger("focus"):M(l).trigger("focus")},e.deferFocusFirstItemInOpenedSubmenu=function(t){const l=Math.min(120,parseInt(e.settings.effect_speed_mobile,10)||0);setTimeout(function(){e.focusFirstItemInOpenedSubmenu(t),setTimeout(function(){t.find("ul.mega-sub-menu").has(document.activeElement).length!==0||e.focusFirstItemInOpenedSubmenu(t)},40)},l)};const O=function(t){return typeof t=="number"||typeof t=="string"&&t.trim()!==""&&!isNaN(t)?n("li.mega-menu-item-"+t,i).find("a.mega-menu-link").first():t.is("li.mega-menu-item")?t.f
546ind("a.mega-menu-link").first():t};e.showPanel=function(t,l){t=O(t);const a=t.parent(),d=e.isDesktopView(),v=!d;if(a.triggerHandler("before_open_panel"),a.find("[aria-expanded]").first().attr("aria-expanded","true"),n(".mega-animating",m).removeClass("mega-animating"),!(v&&a.hasClass("mega-hide-sub-menu-on-mobile"))){if(d&&(i.hasClass("mega-menu-horizontal")||i.hasClass("mega-menu-vertical"))&&!a.hasClass("mega-collapse-children")&&e.hideSiblingPanels(t,!0),(v&&m.hasClass("mega-keyboard-navigation")||e.settings.vertical_behaviour==="accordion")&&e.hideSiblingPanels(t,!1),e.calculateDynamicSubmenuWidths(t),e.shouldUseSlideAnimation(t,l)){const p=v?e.settings.effect_speed_mobile:e.settings.effect_speed;t.siblings(".mega-sub-menu").css("display","none").animate({height:"show",paddingTop:"show",paddingBottom:"show",minHeight:"show"},p,function(){n(this).css("display","")})}a.addClass("mega-toggle-on").triggerHandler("open_panel"),e.deferFocusFirstItemInOpenedSubmenu(a)}},e.shouldUseSlideAnimation=function(t,l){if(l===!0)return!1;if(t.parent().hasClass("mega-collapse-children"))return!0;const a=e.isDesktopView();if(a&&e.settings.effect==="slide")return!0;if(!a){if(e.settings.effect_mobile==="slide")return!0;if(e.isMobileOffCanvas())return e.settings.mobile_direction!=="horizontal"}return!1},e.hidePanel=function(t,l){t=O(t);const a=t.parent(),d=t.siblings(".mega-sub-menu"),v=e.isMobileView();if(a.triggerHandler("before_close_panel"),a.find("[aria-expanded]").first().attr("aria-expanded","false"),e.shouldUseSlideAnimation(t)){const p=v?e.settings.effect_speed_mobile:e.settings.effect_speed;d.animate({height:"hide",paddingTop:"hide",paddingBottom:"hide",minHeight:"hide"},p,function(){d.css("display",""),a.removeClass("mega-toggle-on").triggerHandler("close_panel")});return}l&&d.css("display","none").delay(e.settings.effect_speed).queue(function(){n(this).css("display","").dequeue()}),d.find(".widget_media_video video").each(function(){this.player&&this.player.pause()}),a.removeClass("mega-toggle-on").triggerHandler("close_panel"),e.addAnimatingClass(a)};const x=function(t){return t==="$menu"?i:t==="$wrap"?m:n(t)};e.calculateDynamicSubmenuWidths=function(t){const l=t.parent(),a=t.siblings(".mega-sub-menu"),d=e.isDesktopView(),v=l.hasClass("mega-menu-megamenu")&&l.parent().hasClass("max-mega-menu");if(v&&e.settings.panel_width)if(d){const p=i.offset();if(e.settings.panel_width==="100vw"){const h=n("body").offset();a.css({left:h.left-p.left+"px"})}else{const h=x(e.settings.panel_width);h.length>0&&a.css({width:h.outerWidth(),left:h.offset().left-p.left+"px"})}}else a.css({width:"",left:""});if(v&&e.settings.panel_inner_width){const p=x(e.settings.panel_inner_width);if(p.length>0){const h=parseInt(p.width(),10);a.css({paddingLeft:"",paddingRight:""});const C=parseInt(a.innerWidth(),10);d&&h>0&&h<C&&a.css({paddingLeft:(C-h)/2+"px",paddingRight:(C-h)/2+"px"})}}};const H=function(){e.calculateDynamicSubmenuWidths(n("> li.mega-menu-megamenu > a.mega-menu-link",i))};e.bindClickEvents=function(){e.unbindClickEvents(!0);let t=!1;n(document).on({["touchmove"+k]:function(){t=!0},["touchstart"+k]:function(){t=!1}}),n(document).on("click"+k+" touchend"+k,function(a){!t&&e.settings.document_click==="collapse"&&!n(a.target).closest(".mega-menu-wrap").length&&(e.hideAllPanels(),e.hideMobileMenu()),t=!1}),T.off("click.megamenu touchend.megamenu");const l=n("> a.mega-menu-link",_).add(T);l.on("touchend.megamenu",function(a){e.settings.event==="hover_intent"&&e.unbindHoverIntentEvents(),e.settings.event==="hover"&&e.unbindHoverEvents()}),l.on("click.megamenu",function(a){if(!n(a.target).hasClass("mega-indicator")){if(e.isDesktopView()&&n(this).parent().hasClass("mega-toggle-on")&&n(this).closest("ul.mega-sub-menu").parent().hasClass("mega-menu-tabbed")){if(e.settings.second_click==="go")return;a.preventDefault();return}t||e.isMobileView()&&n(this).parent().hasClass("mega-hide-sub-menu-on-mobile")||((e.settings.second_click==="go"||n(this).parent().hasClass("mega-click-click-go"))&&n(this).attr("href")!==void 0?n(this).parent().hasClass("mega-toggle-on")||(a.preventDefault(),e.showPanel(n(this))):(a.preventDefault(),n(this).parent().hasClass("mega-toggle-on")?e.hidePanel(n(this),!1):e.showPanel(n(this))))}}),e.settings.second_click==="disabled"&&l.off("click.megamenu"),n(".mega-close-after-click:not(.mega-menu-item-has-children) > a.mega-menu-link",i).on("click.megamenu",function(){e.hideAllPanels(),e.hideMobileMenu()}),n("button.mega-close",m).on("click.megamenu",function(a){e.hideMobileMenu()})},e.bindHoverEvents=function(){_.on({"mouseenter.megamenu":function(){e.unbindClickEvents(),n(this).hasClass("mega-toggle-on")||e.showPanel(n(this).children("a.mega-menu-link"))},"mouseleave.megamenu":function(){n(this).hasClass("mega-toggle-on")&&!n(this).hasClass("mega-disable-collapse")&&!n(this).parent().parent().hasClass("mega-menu-tabbed")&&e.hidePanel(n(this).children("a.mega-menu-link"),!1)}})},e.bindHoverIntentEvents=function(){_.hoverIntent({over:function(){e.unbindClickEvents(),n(this).hasClass("mega-toggle-on")||e.showPanel(n(this).children("a.mega-menu-link"))},out:function(){n(this).hasClass("mega-toggle-on")&&!n(this).hasClass("mega-disable-collapse")&&!n(this).parent().parent().hasClass("mega-menu-tabbed")&&e.hidePanel(n(this).children("a.mega-menu-link"),!1)},timeout:e.settings.hover_intent_timeout,interval:e.settings.hover_intent_interval})},e.isMobileOffCanvas=function(){return e.settings.effect_mobile==="slide_left"||e.settings.effect_mobile==="slide_right"},e.shouldGoToNextTopLevelItem=function(t){return(t===W&&e.isDesktopView()||t===A&&e.isMobileView())&&i.hasClass("mega-menu-horizontal")},e.shouldGoToPreviousTopLevelItem=function(t){return(t===F&&e.isDesktopView()||t===L&&e.isMobileView())&&i.hasClass("mega-menu-horizontal")},e.bindKeyboardEvents=function(){const t=i.find("a.mega-menu-link").first(),l=m.find("button.mega-close").first(),a=S.split(", ").map(s=>"> "+s).join(", "),d=function(s){!s||!s.length||(s.parent().hasClass("mega-toggle-on")&&!s.closest("ul.mega-sub-menu").parent().hasClass("mega-menu-tabbed")?e.hidePanel(s):e.showPanel(s))},v=function(){const s=i[0].contains(document.activeElement)?n(document.activeElement):n(),o=n("> a.mega-menu-link",s.closest(".mega-toggle-on"));return o.length?(e.hidePanel(o),o.trigger("focus"),!0):!1},p=function(s,o,g,f){if(o.is(l)&&f){if(s.shiftKey){if(g){const u=e.getFocusableItemsInSubmenu(I()).last();u.length&&(s.preventDefault(),u.trigger("focus"))}}else{s.preventDefault();const u=g?M(I()):n();(u.length?u:t).trigger("focus")}return}if(f&&s.shiftKey&&o.is(t)){s.preventDefault(),l.trigger("focus");return}if(g){const u=I();if(u.length&&!u.has(o).length){if(s.preventDefault(),s.shiftKey)l.trigger("focus");else{const c=M(u);(c.length?c:e.getFocusableItemsInSubmenu(u).first()).trigger("focus")}return}const r=o.parentsUntil(i,"ul.mega-sub-menu").filter(function(){const c=n(this).parent();return c.hasClass("mega-toggle-on")&&!c.hasClass("mega-collapse-children")}).first();if(r.length)if(s.shiftKey)if(o.hasClass("mega-mobile-back-link"))s.preventDefault(),l.trigger("focus");else{const c=e.getFocusableItemsInSubmenu(r),D=M(r);c.length&&D.length&&o.is(c.first())&&(s.preventDefault(),D.trigger("focus"))}else{const c=e.getFocusableItemsInSubmenu(r);
546c.length&&o.is(c.last())&&(s.preventDefault(),l.trigger("focus"))}}},h=function(s){s.preventDefault(),b.hasClass("mega-menu-open")?e.hideMobileMenu():(e.showMobileMenu(),y=setTimeout(function(){i.find("a.mega-menu-link").first().trigger("focus")},e.settings.effect_speed_mobile))},C=function(s,o){o.is("a.mega-menu-link")?(s.preventDefault(),o.parent().is(_)&&d(o)):o.is(".mega-indicator")&&(s.preventDefault(),d(o.parent()))},U=function(){const s=n(".mega-toggle-on",i).length!==0;s&&v()||e.isMobileView()&&!s&&e.hideMobileMenu()},j=function(s,o){if(o.is(".mega-indicator")){d(o.parent());return}if(o.parent().is(_)){if(e.isMobileView()&&o.parent().is(".mega-hide-sub-menu-on-mobile"))return;if(!o.is("[href]")){d(o);return}if(o.parent().hasClass("mega-toggle-on")&&!o.closest("ul.mega-sub-menu").parent().hasClass("mega-menu-tabbed"))return;s.preventDefault(),e.showPanel(o)}},q=function(s,o){s.preventDefault();const g=I();if(g.length){const f=M(g),u=e.getFocusableItemsInSubmenu(g),r=[];f.length&&r.push(f[0]),u.each(function(){r.push(this)}),l.length&&r.push(l[0]);const c=r.indexOf(document.activeElement),D=c<0?o?0:r.length-1:(c+(o?1:-1)+r.length)%r.length;n(r[D]).trigger("focus")}else{const f=i.children("li.mega-menu-item:visible").find(a),u=f.index(document.activeElement);if(u>=0){const r=(u+(o?1:-1)+f.length)%f.length;f.eq(r).trigger("focus")}}},G=function(s,o){s.preventDefault();const g=i.children("li.mega-menu-item:visible").find(a),f=n(document.activeElement).closest(i.children("li.mega-menu-item")).find(a).first(),u=g.index(f),r=o?u+1:u-1;u>=0&&r>=0&&(e.hideAllPanels(),g.eq(r).trigger("focus"))};m.on("keyup.megamenu",".max-mega-menu, .mega-menu-toggle",function(s){if(s.key!==V)return;m.addClass("mega-keyboard-navigation"),e.bindClickEvents();const o=n(s.target);e.isDesktopView()&&o.is(".mega-menu-link")&&o.parent().parent().hasClass("max-mega-menu")&&e.hideAllPanels()}),m.on("keydown.megamenu","a.mega-menu-link, button.mega-menu-link, button.mega-mobile-back-link, .mega-indicator, .mega-menu-toggle-block, .mega-menu-toggle-animated-block button, button.mega-close",function(s){if(!m.hasClass("mega-keyboard-navigation"))return;const o=s.key,g=n(s.target),f=e.isHorizontalMobileSubmenuMode(),u=e.isMobileView()&&e.isMobileOffCanvas();switch(o){case V:p(s,g,f,u);break;case B:g.is(".mega-menu-toggle-block button, .mega-menu-toggle-animated-block button")?h(s):C(s,g);break;case R:g.is(".mega-menu-toggle-block button, .mega-menu-toggle-animated-block button")?h(s):j(s,g);break;case z:U();break;case L:case A:f&&q(s,o===A);break;case F:case W:const r=e.shouldGoToNextTopLevelItem(o),c=e.shouldGoToPreviousTopLevelItem(o);(r||c)&&G(s,r);break}}),m.on("focusout.megamenu",function(s){m.hasClass("mega-keyboard-navigation")&&setTimeout(function(){m[0].contains(document.activeElement)||(m.removeClass("mega-keyboard-navigation"),e.hideAllPanels(),e.hideMobileMenu())},10)})},e.unbindAllEvents=function(){n(document).off(k),n("ul.mega-sub-menu, li.mega-menu-item, li.mega-menu-row, li.mega-menu-column, a.mega-menu-link, .mega-indicator",i).off()},e.unbindClickEvents=function(t){!t&&m.hasClass("mega-keyboard-navigation")||(n(document).off(k),n("> a.mega-menu-link",_).not(T).off("click.megamenu touchend.megamenu"))},e.unbindHoverEvents=function(){_.off("mouseenter.megamenu mouseleave.megamenu")},e.unbindHoverIntentEvents=function(){_.off("mouseenter mouseleave").removeProp("hoverIntent_t").removeProp("hoverIntent_s")},e.unbindKeyboardEvents=function(){m.off("keyup.megamenu keydown.megamenu focusout.megamenu")},e.unbindMegaMenuEvents=function(){e.settings.event==="hover_intent"&&e.unbindHoverIntentEvents(),e.settings.event==="hover"&&e.unbindHoverEvents(),e.unbindClickEvents(),e.unbindKeyboardEvents()},e.bindMegaMenuEvents=function(){e.unbindMegaMenuEvents();const t=e.isDesktopView();t&&e.settings.event==="hover_intent"&&e.bindHoverIntentEvents(),t&&e.settings.event==="hover"&&e.bindHoverEvents(),e.bindClickEvents(),e.bindKeyboardEvents()},e.checkWidth=function(){e.isMobileView()&&i.data("view")==="desktop"&&e.switchToMobile(),e.isDesktopView()&&i.data("view")==="mobile"&&e.switchToDesktop(),H()},e.reverseRightAlignedItems=function(){!n("body").hasClass("rtl")&&i.hasClass("mega-menu-horizontal")&&i.css("display")!=="flex"&&i.append(i.children("li.mega-item-align-right").get().reverse())},e.addClearClassesToMobileItems=function(){n(".mega-menu-row",i).each(function(){n("> .mega-sub-menu > .mega-menu-column:not(.mega-hide-on-mobile)",n(this)).filter(":even").addClass("mega-menu-clear")}
546)},e.initDesktop=function(){i.data("view","desktop"),e.bindMegaMenuEvents(),e.initIndicators(),i.trigger("mmm:switchToDesktop")},e.initMobile=function(){e.switchToMobile()},e.switchToDesktop=function(){i.data("view","desktop"),e.bindMegaMenuEvents(),e.reverseRightAlignedItems(),e.hideAllPanels(),e.hideMobileMenu(!0),i.removeAttr("role"),i.removeAttr("aria-modal"),i.removeAttr("aria-hidden"),i.trigger("mmm:switchToDesktop")},e.switchToMobile=function(){i.data("view","mobile"),e.isMobileOffCanvas()&&b.is(":visible")&&(i.attr("role","dialog"),i.attr("aria-modal","true"),i.attr("aria-hidden","true")),e.bindMegaMenuEvents(),e.initIndicators(),e.reverseRightAlignedItems(),e.addClearClassesToMobileItems(),e.hideAllPanels(),e.expandMobileSubMenus(),i.trigger("mmm:switchToMobile")},e.initToggleBar=function(){b.on("click",function(t){n(t.target).closest(".mega-menu-toggle-block, button.mega-toggle-animated, .mega-menu-toggle-custom-block",this).length?(t.preventDefault(),n(this).hasClass("mega-menu-open")?e.hideMobileMenu():e.showMobileMenu()):t.target===this&&e.isMobileOffCanvas()&&e.hideMobileMenu()})},e.initIndicators=function(){i.off("click.megamenu",".mega-indicator"),i.on("click.megamenu",".mega-indicator",function(t){t.preventDefault(),t.stopPropagation(),n(this).closest(".mega-menu-item").hasClass("mega-toggle-on")?(!n(this).closest("ul.mega-sub-menu").parent().hasClass("mega-menu-tabbed")||e.isMobileView())&&e.hidePanel(n(this).parent(),!1):e.showPanel(n(this).parent(),!1)})},e.hideMobileMenu=function(t=!1){if(!b.is(":visible")&&!t)return;i.attr("aria-hidden","true"),clearTimeout(y),y=setTimeout(function(){n("body").removeClass(w+"-mobile-open"),n("html").removeClass(w+"-off-canvas-open")},e.settings.effect_speed_mobile),m.hasClass("mega-keyboard-navigation")&&n(".mega-menu-toggle-block button, button.mega-toggle-animated",b).first().trigger("focus"),n(".mega-toggle-label, .mega-toggle-animated",b).attr("aria-expanded","false");const l=function(){i.css({width:"",left:"",display:""}),b.removeClass("mega-menu-open")};e.settings.effect_mobile==="slide"&&!t?i.animate({height:"hide"},e.settings.effect_speed_mobile,l):l(),i.triggerHandler("mmm:hideMobileMenu")},e.showMobileMenu=function(){b.is(":visible")&&(clearTimeout(y),n("body").addClass(w+"-mobile-open"),e.expandMobileSubMenus(),e.isMobileOffCanvas()&&n("html").addClass(w+"-off-canvas-open"),e.settings.effect_mobile==="slide"&&i.animate({height:"show"},e.settings.effect_speed_mobile,function(){n(this).css("display","")}),n(".mega-toggle-label, .mega-toggle-animated",b).attr("aria-expanded","true"),b.addClass("mega-menu-open"),e.toggleBarForceWidth(),i.attr("aria-hidden","false"),i.triggerHandler("mmm:showMobileMenu"))},e.toggleBarForceWidth=function(){const t=n(e.settings.mobile_force_width);if(t.length&&(e.settings.effect_mobile==="slide"||e.settings.effect_mobile==="disabled")){const l=b.offset(),a=t.offset();i.css({width:t.outerWidth(),left:a.left-l.left+"px"})}},e.doConsoleChecks=function(){e.settings.mobile_force_width!=="false"&&!n(e.settings.mobile_force_width).length&&(e.settings.effect_mobile==="slide"||e.settings.effect_mobile==="disabled")&&console.warn("Max Mega Menu #"+m.attr("id")+": Mobile Force Width element ("+e.settings.mobile_force_width+") not found");const t=/^((\d+(\.\d+)?(px|%|em|rem|vw|vh|ch|ex|cm|mm|in|pt|pc))|auto)$/i;e.settings.panel_width!==void 0&&!t.test(e.settings.panel_width)&&!x(e.settings.panel_width).length&&console.warn("Max Mega Menu #"+m.attr("id")+": Panel Width (Outer) element ("+e.settings.panel_width+") not found"),e.settings.panel_inner_width!==void 0&&!t.test(e.settings.panel_inner_width)&&!x(e.settings.panel_inner_width).length&&console.warn("Max Mega Menu #"+m.attr("id")+": Panel Width (Inner) element ("+e.settings.panel_inner_width+") not found")},e.init=function(){i.triggerHandler("before_mega_menu_init"),e.settings=n.extend({},N,P),window.console&&e.doConsoleChecks(),i.removeClass("mega-no-js"),e.initToggleBar(),e.settings.unbind_events==="true"&&e.unbindAllEvents(),document.readyState==="complete"?H():n(window).on("load",H),e.isDesktopView()?e.initDesktop():e.initMobile(),n(window).on("resize",function(){e.checkWidth()}),i.triggerHandler("after_mega_menu_init")}
546,e.init()},n.fn.maxmegamenu=function(E){return this.each(function(){if(n(this).data("maxmegamenu")===void 0){const P=new n.maxmegamenu(this,E);n(this).data("maxmegamenu",P)}})},n(function(){n(".max-mega-menu").maxmegamenu()})})(jQuery); 547;/*! This file is auto-generated */ 548(()=>{var t={507:(t,e,r)=>{"use strict";r.d(e,{A:()=>A});var n=function(t){return"string"!=typeof t||""===t?(console.error("The namespace must be a non-empty string."),!1):!!/^[a-zA-Z][a-zA-Z0-9_.\-\/]*$/.test(t)||(console.error("The namespace can only contain numbers, letters, dashes, periods, underscores and slashes."),!1)};var i=function(t){return"string"!=typeof t||""===t?(console.error("The hook name must be a non-empty string."),!1):/^__/.test(t)?(console.error("The hook name cannot begin with `__`."),!1):!!/^[a-zA-Z][a-zA-Z0-9_.-]*$/.test(t)||(console.error("The hook name can only contain numbers, letters, dashes, periods and underscores."),!1)};var o=function(t,e){return function(r,o,s,c=10){const l=t[e];if(!i(r))return;if(!n(o))return;if("function"!=typeof s)return void console.error("The hook callback must be a function.");if("number"!=typeof c)return void console.error("If specified, the hook priority must be a number.");const a={callback:s,priority:c,namespace:o};if(l[r]){const t=l[r].handlers;let e;for(e=t.length;e>0&&!(c>=t[e-1].priority);e--);e===t.length?t[e]=a:t.splice(e,0,a),l.__current.forEach((t=>{t.name===r&&t.currentIndex>=e&&t.currentIndex++}))}else l[r]={handlers:[a],runs:0};"hookAdded"!==r&&t.doAction("hookAdded",r,o,s,c)}};var s=function(t,e,r=!1){return function(o,s){const c=t[e];if(!i(o))return;if(!r&&!n(s))return;if(!c[o])return 0;let l=0;if(r)l=c[o].handlers.length,c[o]={runs:c[o].runs,handlers:[]};else{const t=c[o].handlers;for(let e=t.length-1;e>=0;e--)t[e].namespace===s&&(t.splice(e,1),l++,c.__current.forEach((t=>{t.name===o&&t.currentIndex>=e&&t.currentIndex--})))}return"hookRemoved"!==o&&t.doAction("hookRemoved",o,s),l}};var c=function(t,e){return function(r,n){const i=t[e];return void 0!==n?r in i&&i[r].handlers.some((t=>t.namespace===n)):r in i}};var l=function(t,e,r,n){return function(i,...o){const s=t[e];s[i]||(s[i]={handlers:[],runs:0}),s[i].runs++;const c=s[i].handlers;if(!c||!c.length)return r?o[0]:void 0;const l={name:i,currentIndex:0};return(n?async function(){try{s.__current.add(l);let t=r?o[0]:void 0;for(;l.currentIndex<c.length;){const e=c[l.currentIndex];t=await e.callback.apply(null,o),r&&(o[0]=t),l.currentIndex++}return r?t:void 0}finally{s.__current.delete(l)}}:function(){try{s.__current.add(l);let t=r?o[0]:void 0;for(;l.currentIndex<c.length;){t=c[l.currentIndex].callback.apply(null,o),r&&(o[0]=t),l.currentIndex++}return r?t:void 0}finally{s.__current.delete(l)}})()}};var a=function(t,e){return function(){const r=t[e],n=Array.from(r.__current);return n.at(-1)?.name??null}};var d=function(t,e){return function(r){const n=t[e];return void 0===r?n.__current.size>0:Array.from(n.__current).some((t=>t.name===r))}};var u=function(t,e){return function(r){const n=t[e];if(i(r))return n[r]&&n[r].runs?n[r].runs:0}};class h{actions;filters;addAction;addFilter;removeAction;removeFilter;hasAction;hasFilter;removeAllActions;removeAllFilters;doAction;doActionAsync;applyFilters;applyFiltersAsync;currentAction;currentFilter;doingAction;doingFilter;didAction;didFilter;constructor(){this.actions=Object.create(null),this.actions.__current=new Set,this.filters=Object.create(null),this.filters.__current=new Set,this.addAction=o(this,"actions"),this.addFilter=o(this,"filters"),this.removeAction=s(this,"actions"),this.removeFilter=s(this,"filters"),this.hasAction=c(this,"actions"),this.hasFilter=c(this,"filters"),this.removeAllActions=s(this,"actions",!0),this.removeAllFilters=s(this,"filters",!0),this.doAction=l(this,"actions",!1,!1),this.doActionAsync=l(this,"actions",!1,!0),this.applyFilters=l(this,"filters",!0,!1),this.applyFiltersAsync=l(this,"filters",!0,!0),this.currentAction=a(this,"actions"),this.currentFilter=a(this,"filters"),this.doingAction=d(this,"actions"),this.doingFilter=d(this,"filters"),this.didAction=u(this,"actions"),this.didFilter=u(this,"filters")}}var A=function(){return new h}},8770:()=>{}},e={};function r(n){var i=e[n];if(void 0!==i)return i.exports;var o=e[n]={exports:{}};return t[n](o,o.exports,r),o.exports}r.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return r.d(e,{a:e}),e},r.d=(t,e)=>{for(var n in e)r.o(e,n)&&!r.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},r.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}
548),Object.defineProperty(t,"__esModule",{value:!0})};var n={};(()=>{"use strict";r.r(n),r.d(n,{actions:()=>x,addAction:()=>s,addFilter:()=>c,applyFilters:()=>m,applyFiltersAsync:()=>v,createHooks:()=>t.A,currentAction:()=>y,currentFilter:()=>F,defaultHooks:()=>o,didAction:()=>b,didFilter:()=>k,doAction:()=>f,doActionAsync:()=>p,doingAction:()=>_,doingFilter:()=>g,filters:()=>w,hasAction:()=>d,hasFilter:()=>u,removeAction:()=>l,removeAllActions:()=>h,removeAllFilters:()=>A,removeFilter:()=>a});var t=r(507),e=r(8770),i={};for(const t in e)["default","actions","addAction","addFilter","applyFilters","applyFiltersAsync","createHooks","currentAction","currentFilter","defaultHooks","didAction","didFilter","doAction","doActionAsync","doingAction","doingFilter","filters","hasAction","hasFilter","removeAction","removeAllActions","removeAllFilters","removeFilter"].indexOf(t)<0&&(i[t]=()=>e[t]);r.d(n,i);const o=(0,t.A)(),{addAction:s,addFilter:c,removeAction:l,removeFilter:a,hasAction:d,hasFilter:u,removeAllActions:h,removeAllFilters:A,doAction:f,doActionAsync:p,applyFilters:m,applyFiltersAsync:v,currentAction:y,currentFilter:F,doingAction:_,doingFilter:g,didAction:b,didFilter:k,actions:x,filters:w}=o})(),(window.wp=window.wp||{}).hooks=n})(); 549;/*! This file is auto-generated */ 550(()=>{"use strict";var t={d:(n,e)=>{for(var r in e)t.o(e,r)&&!t.o(n,r)&&Object.defineProperty(n,r,{enumerable:!0,get:e[r]})},o:(t,n)=>Object.prototype.hasOwnProperty.call(t,n),r:t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}},n={};t.r(n),t.d(n,{__:()=>F,_n:()=>L,_nx:()=>D,_x:()=>w,createI18n:()=>h,defaultI18n:()=>b,getLocaleData:()=>g,hasTranslation:()=>O,isRTL:()=>P,resetLocaleData:()=>x,setLocaleData:()=>v,sprintf:()=>l,subscribe:()=>m});var e,r,a,i,o=/%(((\d+)\$)|(\(([$_a-zA-Z][$_a-zA-Z0-9]*)\)))?[ +0#-]*\d*(\.(\d+|\*))?(ll|[lhqL])?([cduxXefgsp%])/g;function l(t,...n){return function(t,...n){var e=0;return Array.isArray(n[0])&&(n=n[0]),t.replace(o,(function(){var t,r,a,i,o;return t=arguments[3],r=arguments[5],"%"===(i=arguments[9])?"%":("*"===(a=arguments[7])&&(a=n[e],e++),void 0===r?(void 0===t&&(t=e+1),e++,o=n[t-1]):n[0]&&"object"==typeof n[0]&&n[0].hasOwnProperty(r)&&(o=n[0][r]),"f"===i?o=parseFloat(o)||0:"d"===i&&(o=parseInt(o)||0),void 0!==a&&("f"===i?o=o.toFixed(a):"s"===i&&(o=o.substr(0,a))),null!=o?o:"")}))}(t,...n)}e={"(":9,"!":8,"*":7,"/":7,"%":7,"+":6,"-":6,"<":5,"<=":5,">":5,">=":5,"==":4,"!=":4,"&&":3,"||":2,"?":1,"?:":1},r=["(","?"],a={")":["("],":":["?","?:"]},i=/<=|>=|==|!=|&&|\|\||\?:|\(|!|\*|\/|%|\+|-|<|>|\?|\)|:/;var s={"!":function(t){return!t},"*":function(t,n){return t*n},"/":function(t,n){return t/n},"%":function(t,n){return t%n},"+":function(t,n){return t+n},"-":function(t,n){return t-n},"<":function(t,n){return t<n},"<=":function(t,n){return t<=n},">":function(t,n){return t>n},">=":function(t,n){return t>=n},"==":function(t,n){return t===n},"!=":function(t,n){return t!==n},"&&":function(t,n){return t&&n},"||":function(t,n){return t||n},"?:":function(t,n,e){if(t)throw n;return e}};function u(t){var n=function(t){for(var n,o,l,s,u=[],d=[];n=t.match(i);){for(o=n[0],(l=t.substr(0,n.index).trim())&&u.push(l);s=d.pop();){if(a[o]){if(a[o][0]===s){o=a[o][1]||o;break}}else if(r.indexOf(s)>=0||e[s]<e[o]){d.push(s);break}u.push(s)}a[o]||d.push(o),t=t.substr(n.index+o.length)}return(t=t.trim())&&u.push(t),u.concat(d.reverse())}(t);return function(t){return function(t,n){var e,r,a,i,o,l,u=[];for(e=0;e<t.length;e++){if(o=t[e],i=s[o]){for(r=i.length,a=Array(r);r--;)a[r]=u.pop();try{l=i.apply(null,a)}catch(t){return t}}else l=n.hasOwnProperty(o)?n[o]:+o;u.push(l)}return u[0]}(n,t)}}var d={contextDelimiter:"�",onMissingKey:null};function c(t,n){var e;for(e in this.data=t,this.pluralForms={},this.options={},d)this.options[e]=void 0!==n&&e in n?n[e]:d[e]}c.prototype.getPluralForm=function(t,n){var e,r,a,i=this.pluralForms[t];return i||("function"!=typeof(a=(e=this.data[t][""])["Plural-Forms"]||e["plural-forms"]||e.plural_forms)&&(r=function(t){var n,e,r;for(n=t.split(";"),e=0;e<n.length;e++)if(0===(r=n[e].trim()).indexOf("plural="))return r.substr(7)}(e["Plural-Forms"]||e["plural-forms"]||e.plural_forms),a=function(t){var n=u(t);return function(t){return+n({n:t})}}(r)),i=this.pluralForms[t]=a),i(n)},c.prototype.dcnpgettext=function(t,n,e,r,a){var i,o,l;return i=void 0===a?0:this.getPluralForm(t,a),o=e,n&&(o=n+this.options.contextDelimiter+e),(l=this.data[t][o])&&l[i]?l[i]:(this.options.onMissingKey&&this.options.onMissingKey(e,t),0===i?e:r)};const p={plural_forms:t=>1===t?0:1},f=/^i18n\.(n?gettext|has_translation)(_|$)/,h=(t,n,e)=>{const r=new c({}),a=new Set,i=()=>{a.forEach((t=>t()))},o=(t,n="default")=>{r.data[n]={...r.data[n],...t},r.data[n][""]={...p,...r.data[n]?.[""]},delete r.pluralForms[n]},l=(t,n)=>{o(t,n),i()},s=(t="default",n,e,a,i)=>(r.data[t]||o(void 0,t),r.dcnpgettext(t,n,e,a,i)),u=t=>t||"default",d=(t,n,r)=>{let a=s(r,n,t);
550return e?(a=e.applyFilters("i18n.gettext_with_context",a,t,n,r),e.applyFilters("i18n.gettext_with_context_"+u(r),a,t,n,r)):a};if(t&&l(t,n),e){const t=t=>{f.test(t)&&i()};e.addAction("hookAdded","core/i18n",t),e.addAction("hookRemoved","core/i18n",t)}return{getLocaleData:(t="default")=>r.data[t],setLocaleData:l,addLocaleData:(t,n="default")=>{r.data[n]={...r.data[n],...t,"":{...p,...r.data[n]?.[""],...t?.[""]}},delete r.pluralForms[n],i()},resetLocaleData:(t,n)=>{r.data={},r.pluralForms={},l(t,n)},subscribe:t=>(a.add(t),()=>a.delete(t)),__:(t,n)=>{let r=s(n,void 0,t);return e?(r=e.applyFilters("i18n.gettext",r,t,n),e.applyFilters("i18n.gettext_"+u(n),r,t,n)):r},_x:d,_n:(t,n,r,a)=>{let i=s(a,void 0,t,n,r);return e?(i=e.applyFilters("i18n.ngettext",i,t,n,r,a),e.applyFilters("i18n.ngettext_"+u(a),i,t,n,r,a)):i},_nx:(t,n,r,a,i)=>{let o=s(i,a,t,n,r);return e?(o=e.applyFilters("i18n.ngettext_with_context",o,t,n,r,a,i),e.applyFilters("i18n.ngettext_with_context_"+u(i),o,t,n,r,a,i)):o},isRTL:()=>"rtl"===d("ltr","text direction"),hasTranslation:(t,n,a)=>{const i=n?n+"�"+t:t;let o=!!r.data?.[a??"default"]?.[i];return e&&(o=e.applyFilters("i18n.has_translation",o,t,n,a),o=e.applyFilters("i18n.has_translation_"+u(a),o,t,n,a)),o}}},_=window.wp.hooks,y=h(void 0,void 0,_.defaultHooks);var b=y;const g=y.getLocaleData.bind(y),v=y.setLocaleData.bind(y),x=y.resetLocaleData.bind(y),m=y.subscribe.bind(y),F=y.__.bind(y),w=y._x.bind(y),L=y._n.bind(y),D=y._nx.bind(y),P=y.isRTL.bind(y),O=y.hasTranslation.bind(y);(window.wp=window.wp||{}).i18n=n})(); 551;
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.