(function(b){"object"===typeof module&&module.exports?module.exports=b():(window.Granite=window.Granite||{}).Sling=b()})(function(){return{SELECTOR_INFINITY:".infinity",CHARSET:"_charset_",STATUS:":status",STATUS_BROWSER:"browser",OPERATION:":operation",OPERATION_DELETE:"delete",OPERATION_MOVE:"move",DELETE_SUFFIX:"@Delete",TYPEHINT_SUFFIX:"@TypeHint",COPY_SUFFIX:"@CopyFrom",MOVE_SUFFIX:"@MoveFrom",ORDER:":order",REPLACE:":replace",DESTINATION:":dest",SAVE_PARAM_PREFIX:":saveParamPrefix",IGNORE_PARAM:":ignore",
REQUEST_LOGIN_PARAM:"sling:authRequestLogin",LOGIN_URL:"/system/sling/login.html",LOGOUT_URL:"/system/sling/logout.html"}});
(function(b){"object"===typeof module&&module.exports?module.exports=b():(window.Granite=window.Granite||{}).Util=b()})(function(){return{patchText:function(b,e){if(e)if("[object Array]"!==Object.prototype.toString.call(e))b=b.replace("{0}",e);else for(var d=0;d<e.length;d++)b=b.replace("{"+d+"}",e[d]);return b},getTopWindow:function(){var b=window;if(this.iFrameTopWindow)return this.iFrameTopWindow;try{for(;b.parent&&b!==b.parent&&b.parent.location.href;)b=b.parent}catch(e){}return b},setIFrameMode:function(b){this.iFrameTopWindow=
b||window},applyDefaults:function(){for(var b,e=arguments[0]||{},d=1;d<arguments.length;d++){b=arguments[d];for(var f in b){var h=b[f];b.hasOwnProperty(f)&&void 0!==h&&(e[f]=null===h||"object"!==typeof h||h instanceof Array?h instanceof Array?h.slice(0):h:this.applyDefaults(e[f],h))}}return e},getKeyCode:function(b){return b.keyCode?b.keyCode:b.which}}});
(function(b){"object"===typeof module&&module.exports?module.exports=b(require("@granite/util"),require("jquery")):window.Granite.HTTP=b(Granite.Util,jQuery)})(function(b,e){return function(){var d=null,f=/^(?:http|https):\/\/[^/]+(\/.*)\/(?:etc\.clientlibs|etc(\/.*)*\/clientlibs|libs(\/.*)*\/clientlibs|apps(\/.*)*\/clientlibs|etc\/designs).*\.js(\?.*)?$/,h=/[^\w-.~%:/?[\]@!$&'()*+,;=]/,l=/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/,k=!1,c={getSchemeAndAuthority:function(a){if(!a)return"";
a=l.exec(a);return null===a?"":[a[1],a[3]].join("")},getContextPath:function(){null===d&&(d=c.detectContextPath());return d},detectContextPath:function(){try{if(window.CQURLInfo)d=CQURLInfo.contextPath||"";else{for(var a=document.getElementsByTagName("script"),c=0;c<a.length;c++){var g=f.exec(a[c].src);if(g)return d=g[1]}d=""}}catch(n){}return d},externalize:function(a){try{0===a.indexOf("/")&&c.getContextPath()&&0!==a.indexOf(c.getContextPath()+"/")&&(a=c.getContextPath()+a)}catch(m){}return a},
internalize:function(a,b){if("/"===a.charAt(0))return d===a?"":d&&0===a.indexOf(d+"/")?a.substring(d.length):a;b||(b=document);b=c.getSchemeAndAuthority(b.location.href);var g=c.getSchemeAndAuthority(a);return b===g?a.substring(g.length+(d?d.length:0)):a},getPath:function(a){if(a)a=c.removeParameters(a),a=c.removeAnchor(a);else{if(window.CQURLInfo&&CQURLInfo.requestPath)return CQURLInfo.requestPath;a=window.location.pathname}a=c.internalize(a);var b=a.indexOf(".",a.lastIndexOf("/"));-1!==b&&(a=a.substring(0,
b));return a},removeAnchor:function(a){var b=a.indexOf("#");return 0<=b?a.substring(0,b):a},removeParameters:function(a){var b=a.indexOf("?");return 0<=b?a.substring(0,b):a},encodePathOfURI:function(a){for(var b=["?","#"],g=[a],d,e=0,f=b.length;e<f;e++)if(d=b[e],0<=a.indexOf(d)){g=a.split(d);break}h.test(g[0])&&(g[0]=c.encodePath(g[0]));return g.join(d)},encodePath:function(a){a=encodeURI(a);a=a.replace(/%5B/g,"[").replace(/%5D/g,"]");a=a.replace(/\?/g,"%3F");return a=a.replace(/#/g,"%23")},handleLoginRedirect:function(){if(!k){k=
!0;alert(Granite.I18n.get("Your request could not be completed because you have been signed out."));var a=b.getTopWindow().document.location;a.href=c.externalize("/")+"?resource\x3d"+encodeURIComponent(a.pathname+a.search+a.hash)}},getXhrHook:function(a,b,g){return window.G_XHR_HOOK&&"function"===typeof G_XHR_HOOK?(a={url:a,method:b||"GET"},g&&(a.params=g),G_XHR_HOOK(a)):null},eval:function(a){"object"!==typeof a&&(a=e.ajax({url:a,type:"get",async:!1}));try{return JSON.parse(a.body?a.body:a.responseText)}catch(m){}return null}};
return c}()});
(function(b){"object"===typeof module&&module.exports?module.exports=b(require("@granite/http")):window.Granite.I18n=b(window.Granite.HTTP)})(function(b){return function(){var e={},d="/libs/cq/i18n/dict.",f=".json",h=void 0,l=!1,k=null,c={},a=!1,m=function(b){if(a)return d+b+f;var g,c=document.querySelector("html");c&&(g=c.getAttribute("data-i18n-dictionary-src"));return g?g.replace("{locale}",encodeURIComponent(b)).replace("{+locale}",b):d+b+f};c.LOCALE_DEFAULT="en";c.PSEUDO_LANGUAGE="zz";c.PSEUDO_PATTERN_KEY=
"_pseudoPattern_";c.init=function(a){a=a||{};this.setLocale(a.locale);this.setUrlPrefix(a.urlPrefix);this.setUrlSuffix(a.urlSuffix)};c.setLocale=function(a){a&&(h=a)};c.getLocale=function(){"function"===typeof h&&(h=h());return h||document.documentElement.lang||c.LOCALE_DEFAULT};c.setUrlPrefix=function(b){b&&(d=b,a=!0)};c.setUrlSuffix=function(b){b&&(f=b,a=!0)};c.getDictionary=function(a){a=a||c.getLocale();if(!e[a]){l=0===a.indexOf(c.PSEUDO_LANGUAGE);try{var g=new XMLHttpRequest;g.open("GET",b.externalize(m(a)),
!1);g.send();e[a]=JSON.parse(g.responseText)}catch(p){}e[a]||(e[a]={})}return e[a]};c.get=function(a,b,d){var e;var g=c.getDictionary();var h=l?c.PSEUDO_PATTERN_KEY:d?a+" (("+d+"))":a;g&&(e=g[h]);e||(e=a);l&&(e=e.replace("{string}",a).replace("{comment}",d?d:""));a=e;if(b)if(Array.isArray(b))for(d=0;d<b.length;d++)a=a.replace("{"+d+"}",b[d]);else a=a.replace("{0}",b);return a};c.getVar=function(a,b){return a?c.get(a,null,b):null};c.getLanguages=function(){if(!k)try{var a=b.externalize("/libs/wcm/core/resources/languages.overlay.infinity.json"),
d=new XMLHttpRequest;d.open("GET",a,!1);d.send();var e=JSON.parse(d.responseText);Object.keys(e).forEach(function(a){a=e[a];a.language&&(a.title=c.getVar(a.language));a.title&&a.country&&"*"!==a.country&&(a.title+=" ("+c.getVar(a.country)+")")});k=e}catch(q){k={}}return k};c.parseLocale=function(a){if(!a)return null;var b=a.indexOf("_");0>b&&(b=a.indexOf("-"));if(0>b){var c=a;b=null}else c=a.substring(0,b),b=a.substring(b+1);return{code:a,language:c,country:b}};return c}()});
(function(b){"object"===typeof module&&module.exports?module.exports=b():(window.Granite=window.Granite||{}).TouchIndicator=b()})(function(){var b={},e=[];return{debugWithMouse:!1,init:function(){var b=this,e=function(d){b.update(d.touches);return!0};document.addEventListener("touchstart",e);document.addEventListener("touchmove",e);document.addEventListener("touchend",e);this.debugWithMouse&&document.addEventListener("mousemove",function(d){d.identifer="fake";b.update([d]);return!0})},update:function(d){for(var f=
{},h=0;h<d.length;h++){var l=d[h],k=l.identifier,c=b[k];c||(c=e.pop(),c||(c=document.createElement("div"),c.style.visibility="hidden",c.style.position="absolute",c.style.width="30px",c.style.height="30px",c.style.borderRadius="20px",c.style.border="5px solid orange",c.style.userSelect="none",c.style.opacity="0.5",c.style.zIndex="2000",c.style.pointerEvents="none",document.body.appendChild(c)));f[k]=c;c.style.left=l.pageX-20+"px";c.style.top=l.pageY-20+"px";c.style.visibility="visible"}for(k in b)b.hasOwnProperty(k)&&
!f[k]&&(c=b[k],c.style.visibility="hidden",e.push(c));b=f}}});
(function(b){"object"===typeof module&&module.exports?module.exports=b():(window.Granite=window.Granite||{}).OptOutUtil=b()})(function(b){return function(){var b={},d=[],f=[];b.init=function(b){b?(d=b.cookieNames||[],f=b.whitelistCookieNames||[]):(d=[],f=[])};b.getCookieNames=function(){return d};b.getWhitelistCookieNames=function(){return f};b.isOptedOut=function(){for(var d=document.cookie.split(";"),e=0;e<d.length;e++){var f=d[e].split("\x3d")[0];f=String.prototype.trim?f.trim():f.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,
"");if(0<=b.getCookieNames().indexOf(f))return!0}return!1};b.maySetCookie=function(d){return!(b.isOptedOut()&&-1===b.getWhitelistCookieNames().indexOf(d))};return b}()});Granite.OptOutUtil.init(window.GraniteOptOutConfig);Granite.HTTP.detectContextPath();