Liferay.Loader.define("frontend-js-metal-web@1.0.26/metal-soy-bundle/build/bundle",["exports","metal-incremental-dom/src/all/incremental-dom"],function(p){var m="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&"function"===typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a};(function(){this.CLOSURE_NO_DEPS=!0;var a=this.goog=this.goog||{};a.global=this;a.isDef=function(b){return void 0!==b};a.exportPath_=function(b,
c,e){b=b.split(".");e=e||a.global;b[0]in e||!e.execScript||e.execScript("var "+b[0]);for(var f;b.length&&(f=b.shift());)!b.length&&a.isDef(c)?e[f]=c:e=e[f]?e[f]:e[f]={}};a.define=function(b,c){var e=c;a.global.CLOSURE_UNCOMPILED_DEFINES&&Object.prototype.hasOwnProperty.call(a.global.CLOSURE_UNCOMPILED_DEFINES,b)?e=a.global.CLOSURE_UNCOMPILED_DEFINES[b]:a.global.CLOSURE_DEFINES&&Object.prototype.hasOwnProperty.call(a.global.CLOSURE_DEFINES,b)&&(e=a.global.CLOSURE_DEFINES[b]);a.exportPath_(b,e)};a.DEBUG=
!0;a.LOCALE="en";a.TRUSTED_SITE=!0;a.STRICT_MODE_COMPATIBLE=!1;a.DISALLOW_TEST_ONLY_CODE=!1;a.ENABLE_CHROME_APP_SAFE_SCRIPT_LOADING=!1;a.provide=function(b){if(a.isProvided_(b))throw Error('Namespace "'+b+'" already declared.');a.constructNamespace_(b)};a.constructNamespace_=function(b,c){delete a.implicitNamespaces_[b];for(var e=b;(e=e.substring(0,e.lastIndexOf(".")))&&!a.getObjectByName(e);)a.implicitNamespaces_[e]=!0;a.exportPath_(b,c)};a.VALID_MODULE_RE_=/^[a-zA-Z_$][a-zA-Z0-9._$]*$/;a.module=
function(b){if(!a.isString(b)||!b||-1==b.search(a.VALID_MODULE_RE_))throw Error("Invalid module identifier");if(!a.isInModuleLoader_())throw Error("Module "+b+" has been loaded incorrectly.");if(a.moduleLoaderState_.moduleName)throw Error("goog.module may only be called once per module.");a.moduleLoaderState_.moduleName=b;if(a.isProvided_(b))throw Error('Namespace "'+b+'" already declared.');delete a.implicitNamespaces_[b]};a.module.get=function(b){return a.module.getInternal_(b)};a.module.getInternal_=
function(b){return a.isProvided_(b)?b in a.loadedModules_?a.loadedModules_[b]:a.getObjectByName(b):null};a.moduleLoaderState_=null;a.isInModuleLoader_=function(){return null!=a.moduleLoaderState_};a.module.declareLegacyNamespace=function(){if(!a.isInModuleLoader_())throw Error("goog.module.declareLegacyNamespace must be called from within a goog.module");if(!a.moduleLoaderState_.moduleName)throw Error("goog.module must be called prior to goog.module.declareLegacyNamespace.");a.moduleLoaderState_.declareLegacyNamespace=
!0};a.setTestOnly=function(b){if(a.DISALLOW_TEST_ONLY_CODE)throw b=b||"",Error("Importing test-only code into non-debug environment"+(b?": "+b:"."));};a.isProvided_=function(b){return b in a.loadedModules_||!a.implicitNamespaces_[b]&&a.isDefAndNotNull(a.getObjectByName(b))};a.implicitNamespaces_={"goog.module":!0};a.getObjectByName=function(b,c){for(var e=b.split("."),f=c||a.global,d;d=e.shift();)if(a.isDefAndNotNull(f[d]))f=f[d];else return null;return f};a.globalize=function(b,c){var e=c||a.global,
f;for(f in b)e[f]=b[f]};a.addDependency=function(b,c,e,f){if(a.DEPENDENCIES_ENABLED){var d;b=b.replace(/\\/g,"/");var g=a.dependencies_;f&&"boolean"!==typeof f||(f=f?{module:"goog"}:{});for(var h=0;d=c[h];h++)g.nameToPath[d]=b,g.pathIsModule[b]="goog"==f.module;for(f=0;c=e[f];f++)b in g.requires||(g.requires[b]={}),g.requires[b][c]=!0}};a.ENABLE_DEBUG_LOADER=!0;a.logToConsole_=function(b){a.global.console&&a.global.console.error(b)};a.require=function(b){a.ENABLE_DEBUG_LOADER&&a.IS_OLD_IE_&&a.maybeProcessDeferredDep_(b);
if(a.isProvided_(b))return a.isInModuleLoader_()?a.module.getInternal_(b):null;if(a.ENABLE_DEBUG_LOADER){var c=a.getPathFromDeps_(b);if(c)return a.writeScripts_(c),null}b="goog.require could not find: "+b;a.logToConsole_(b);throw Error(b);};a.basePath="";a.nullFunction=function(){};a.abstractMethod=function(){throw Error("unimplemented abstract method");};a.addSingletonGetter=function(b){b.getInstance=function(){if(b.instance_)return b.instance_;a.DEBUG&&(a.instantiatedSingletons_[a.instantiatedSingletons_.length]=
b);return b.instance_=new b}};a.instantiatedSingletons_=[];a.LOAD_MODULE_USING_EVAL=!0;a.SEAL_MODULE_EXPORTS=a.DEBUG;a.loadedModules_={};a.DEPENDENCIES_ENABLED=a.ENABLE_DEBUG_LOADER;a.DEPENDENCIES_ENABLED&&(a.dependencies_={pathIsModule:{},nameToPath:{},requires:{},visited:{},written:{},deferred:{}},a.inHtmlDocument_=function(){var b=a.global.document;return null!=b&&"write"in b},a.findBasePath_=function(){if(a.isDef(a.global.CLOSURE_BASE_PATH))a.basePath=a.global.CLOSURE_BASE_PATH;else if(a.inHtmlDocument_())for(var b=
a.global.document.getElementsByTagName("SCRIPT"),c=b.length-1;0<=c;--c){var e=b[c].src,f=e.lastIndexOf("?"),f=-1==f?e.length:f;if("base.js"==e.substr(f-7,7)){a.basePath=e.substr(0,f-7);break}}},a.importScript_=function(b,c){(a.global.CLOSURE_IMPORT_SCRIPT||a.writeScriptTag_)(b,c)&&(a.dependencies_.written[b]=!0)},a.IS_OLD_IE_=!(a.global.atob||!a.global.document||!a.global.document.all),a.importModule_=function(b){a.importScript_("",'goog.retrieveAndExecModule_("'+b+'");')&&(a.dependencies_.written[b]=
!0)},a.queuedModules_=[],a.wrapModule_=function(b,c){return a.LOAD_MODULE_USING_EVAL&&a.isDef(a.global.JSON)?"goog.loadModule("+a.global.JSON.stringify(c+"\n//# sourceURL\x3d"+b+"\n")+");":'goog.loadModule(function(exports) {"use strict";'+c+"\n;return exports});\n//# sourceURL\x3d"+b+"\n"},a.loadQueuedModules_=function(){var b=a.queuedModules_.length;if(0<b){var c=a.queuedModules_;a.queuedModules_=[];for(var e=0;e<b;e++)a.maybeProcessDeferredPath_(c[e])}},a.maybeProcessDeferredDep_=function(b){a.isDeferredModule_(b)&&
a.allDepsAreAvailable_(b)&&(b=a.getPathFromDeps_(b),a.maybeProcessDeferredPath_(a.basePath+b))},a.isDeferredModule_=function(b){return(b=a.getPathFromDeps_(b))&&a.dependencies_.pathIsModule[b]?a.basePath+b in a.dependencies_.deferred:!1},a.allDepsAreAvailable_=function(b){if((b=a.getPathFromDeps_(b))&&b in a.dependencies_.requires)for(var c in a.dependencies_.requires[b])if(!a.isProvided_(c)&&!a.isDeferredModule_(c))return!1;return!0},a.maybeProcessDeferredPath_=function(b){if(b in a.dependencies_.deferred){var c=
a.dependencies_.deferred[b];delete a.dependencies_.deferred[b];a.globalEval(c)}},a.loadModuleFromUrl=function(b){a.retrieveAndExecModule_(b)},a.loadModule=function(b){var c=a.moduleLoaderState_;try{a.moduleLoaderState_={moduleName:void 0,declareLegacyNamespace:!1};var e;if(a.isFunction(b))e=b.call(a.global,{});else if(a.isString(b))e=a.loadModuleFromSource_.call(a.global,b);else throw Error("Invalid module definition");var f=a.moduleLoaderState_.moduleName;if(!a.isString(f)||!f)throw Error('Invalid module name "'+
f+'"');a.moduleLoaderState_.declareLegacyNamespace?a.constructNamespace_(f,e):a.SEAL_MODULE_EXPORTS&&Object.seal&&Object.seal(e);a.loadedModules_[f]=e}finally{a.moduleLoaderState_=c}},a.loadModuleFromSource_=function(b){eval(b);return{}},a.writeScriptSrcNode_=function(b){a.global.document.write('\x3cscript type\x3d"text/javascript" src\x3d"'+b+'"\x3e\x3c/script\x3e')},a.appendScriptSrcNode_=function(b){var c=a.global.document,e=c.createElement("script");e.type="text/javascript";e.src=b;e.defer=!1;
e.async=!1;c.head.appendChild(e)},a.writeScriptTag_=function(b,c){if(a.inHtmlDocument_()){var e=a.global.document;if(!a.ENABLE_CHROME_APP_SAFE_SCRIPT_LOADING&&"complete"==e.readyState){if(/\bdeps.js$/.test(b))return!1;throw Error('Cannot write "'+b+'" after document load');}var f=a.IS_OLD_IE_;void 0===c?f?(f=" onreadystatechange\x3d'goog.onScriptLoad_(this, "+ ++a.lastNonModuleScriptIndex_+")' ",e.write('\x3cscript type\x3d"text/javascript" src\x3d"'+b+'"'+f+"\x3e\x3c/script\x3e")):a.ENABLE_CHROME_APP_SAFE_SCRIPT_LOADING?
a.appendScriptSrcNode_(b):a.writeScriptSrcNode_(b):e.write('\x3cscript type\x3d"text/javascript"\x3e'+c+"\x3c/script\x3e");return!0}return!1},a.lastNonModuleScriptIndex_=0,a.onScriptLoad_=function(b,c){"complete"==b.readyState&&a.lastNonModuleScriptIndex_==c&&a.loadQueuedModules_();return!0},a.writeScripts_=function(b){function c(k){if(!(k in d.written||k in d.visited)){d.visited[k]=!0;if(k in d.requires)for(var l in d.requires[k])if(!a.isProvided_(l))if(l in d.nameToPath)c(d.nameToPath[l]);else throw Error("Undefined nameToPath for "+
l);k in f||(f[k]=!0,e.push(k))}}var e=[],f={},d=a.dependencies_;c(b);for(b=0;b<e.length;b++){var g=e[b];a.dependencies_.written[g]=!0}var h=a.moduleLoaderState_;a.moduleLoaderState_=null;for(b=0;b<e.length;b++)if(g=e[b])d.pathIsModule[g]?a.importModule_(a.basePath+g):a.importScript_(a.basePath+g);else throw a.moduleLoaderState_=h,Error("Undefined script input");a.moduleLoaderState_=h},a.getPathFromDeps_=function(b){return b in a.dependencies_.nameToPath?a.dependencies_.nameToPath[b]:null},a.findBasePath_(),
a.global.CLOSURE_NO_DEPS||a.importScript_(a.basePath+"deps.js"));a.normalizePath_=function(b){b=b.split("/");for(var c=0;c<b.length;)"."==b[c]?b.splice(c,1):c&&".."==b[c]&&b[c-1]&&".."!=b[c-1]?b.splice(--c,2):c++;return b.join("/")};a.loadFileSync_=function(b){if(a.global.CLOSURE_LOAD_FILE_SYNC)return a.global.CLOSURE_LOAD_FILE_SYNC(b);var c=new a.global.XMLHttpRequest;c.open("get",b,!1);c.send();return c.responseText};a.retrieveAndExecModule_=function(b){var c=b;b=a.normalizePath_(b);var e=a.global.CLOSURE_IMPORT_SCRIPT||
a.writeScriptTag_,f=a.loadFileSync_(b);if(null!=f)f=a.wrapModule_(b,f),a.IS_OLD_IE_?(a.dependencies_.deferred[c]=f,a.queuedModules_.push(c)):e(b,f);else throw Error("load of "+b+"failed");};a.typeOf=function(b){var c="undefined"===typeof b?"undefined":m(b);if("object"==c)if(b){if(b instanceof Array)return"array";if(b instanceof Object)return c;var e=Object.prototype.toString.call(b);if("[object Window]"==e)return"object";if("[object Array]"==e||"number"==typeof b.length&&"undefined"!=typeof b.splice&&
"undefined"!=typeof b.propertyIsEnumerable&&!b.propertyIsEnumerable("splice"))return"array";if("[object Function]"==e||"undefined"!=typeof b.call&&"undefined"!=typeof b.propertyIsEnumerable&&!b.propertyIsEnumerable("call"))return"function"}else return"null";else if("function"==c&&"undefined"==typeof b.call)return"object";return c};a.isNull=function(b){return null===b};a.isDefAndNotNull=function(b){return null!=b};a.isArray=function(b){return"array"==a.typeOf(b)};a.isArrayLike=function(b){var c=a.typeOf(b);
return"array"==c||"object"==c&&"number"==typeof b.length};a.isDateLike=function(b){return a.isObject(b)&&"function"==typeof b.getFullYear};a.isString=function(b){return"string"==typeof b};a.isBoolean=function(b){return"boolean"==typeof b};a.isNumber=function(b){return"number"==typeof b};a.isFunction=function(b){return"function"==a.typeOf(b)};a.isObject=function(b){var c="undefined"===typeof b?"undefined":m(b);return"object"==c&&null!=b||"function"==c};a.getUid=function(b){return b[a.UID_PROPERTY_]||
(b[a.UID_PROPERTY_]=++a.uidCounter_)};a.hasUid=function(b){return!!b[a.UID_PROPERTY_]};a.removeUid=function(b){null!==b&&"removeAttribute"in b&&b.removeAttribute(a.UID_PROPERTY_);try{delete b[a.UID_PROPERTY_]}catch(c){}};a.UID_PROPERTY_="closure_uid_"+(1E9*Math.random()>>>0);a.uidCounter_=0;a.getHashCode=a.getUid;a.removeHashCode=a.removeUid;a.cloneObject=function(b){var c=a.typeOf(b);if("object"==c||"array"==c){if(b.clone)return b.clone();var c="array"==c?[]:{},e;for(e in b)c[e]=a.cloneObject(b[e]);
return c}return b};a.bindNative_=function(b,c,e){return b.call.apply(b.bind,arguments)};a.bindJs_=function(b,c,e){if(!b)throw Error();if(2<arguments.length){var f=Array.prototype.slice.call(arguments,2);return function(){var d=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(d,f);return b.apply(c,d)}}return function(){return b.apply(c,arguments)}};a.bind=function(b,c,e){Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?a.bind=a.bindNative_:a.bind=
a.bindJs_;return a.bind.apply(null,arguments)};a.partial=function(b,c){var e=Array.prototype.slice.call(arguments,1);return function(){var f=e.slice();f.push.apply(f,arguments);return b.apply(this,f)}};a.mixin=function(b,c){for(var e in c)b[e]=c[e]};a.now=a.TRUSTED_SITE&&Date.now||function(){return+new Date};a.globalEval=function(b){if(a.global.execScript)a.global.execScript(b,"JavaScript");else if(a.global.eval){if(null==a.evalWorksForGlobals_)if(a.global.eval("var _evalTest_ \x3d 1;"),"undefined"!=
typeof a.global._evalTest_){try{delete a.global._evalTest_}catch(c){}a.evalWorksForGlobals_=!0}else a.evalWorksForGlobals_=!1;if(a.evalWorksForGlobals_)a.global.eval(b);else{var e=a.global.document,f=e.createElement("SCRIPT");f.type="text/javascript";f.defer=!1;f.appendChild(e.createTextNode(b));e.body.appendChild(f);e.body.removeChild(f)}}else throw Error("goog.globalEval not available");};a.evalWorksForGlobals_=null;a.getCssName=function(b,c){var e=function(d){return a.cssNameMapping_[d]||d},f=
function(d){d=d.split("-");for(var g=[],h=0;h<d.length;h++)g.push(e(d[h]));return g.join("-")},f=a.cssNameMapping_?"BY_WHOLE"==a.cssNameMappingStyle_?e:f:function(d){return d};return c?b+"-"+f(c):f(b)};a.setCssNameMapping=function(b,c){a.cssNameMapping_=b;a.cssNameMappingStyle_=c};a.global.CLOSURE_CSS_NAME_MAPPING&&(a.cssNameMapping_=a.global.CLOSURE_CSS_NAME_MAPPING);a.getMsg=function(b,c){c&&(b=b.replace(/\{\$([^}]+)}/g,function(e,f){return null!=c&&f in c?c[f]:e}));return b};a.getMsgWithFallback=
function(b,c){return b};a.exportSymbol=function(b,c,e){a.exportPath_(b,c,e)};a.exportProperty=function(b,c,e){b[c]=e};a.inherits=function(b,c){function e(){}e.prototype=c.prototype;b.superClass_=c.prototype;b.prototype=new e;b.prototype.constructor=b;b.base=function(f,d,g){for(var h=Array(arguments.length-2),k=2;k<arguments.length;k++)h[k-2]=arguments[k];return c.prototype[d].apply(f,h)}};a.base=function(b,c,e){var f=arguments.callee.caller;if(a.STRICT_MODE_COMPATIBLE||a.DEBUG&&!f)throw Error("arguments.caller not defined.  goog.base() cannot be used with strict mode code. See http://www.ecma-international.org/ecma-262/5.1/#sec-C");
if(f.superClass_){for(var d=Array(arguments.length-1),g=1;g<arguments.length;g++)d[g-1]=arguments[g];return f.superClass_.constructor.apply(b,d)}d=Array(arguments.length-2);for(g=2;g<arguments.length;g++)d[g-2]=arguments[g];for(var g=!1,h=b.constructor;h;h=h.superClass_&&h.superClass_.constructor)if(h.prototype[c]===f)g=!0;else if(g)return h.prototype[c].apply(b,d);if(b[c]===f)return b.constructor.prototype[c].apply(b,d);throw Error("goog.base called from a method of one name to a method of a different name");
};a.scope=function(b){b.call(a.global)};a.global.COMPILED=!1;a.string={};a.string.subs=function(b,c){for(var e=b.split("%s"),f="",d=Array.prototype.slice.call(arguments,1);d.length&&1<e.length;)f+=e.shift()+d.shift();return f+e.join("%s")};a.string.AMP_RE_=/&/g;a.string.LT_RE_=/</g;a.string.GT_RE_=/>/g;a.string.QUOT_RE_=/"/g;a.string.SINGLE_QUOTE_RE_=/'/g;a.string.NULL_RE_=/\x00/g;a.string.E_RE_=/e/g;a.string.ALL_RE_=a.string.DETECT_DOUBLE_ESCAPING?/[\x00&<>"'e]/:/[\x00&<>"']/;a.string.unescapeEntities=
function(b){return a.string.contains(b,"\x26")?!a.string.FORCE_NON_DOM_HTML_UNESCAPING&&"document"in a.global?a.string.unescapeEntitiesUsingDom_(b):a.string.unescapePureXmlEntities_(b):b};a.string.unescapeEntitiesUsingDom_=function(b,c){var e={"\x26amp;":"\x26","\x26lt;":"\x3c","\x26gt;":"\x3e","\x26quot;":'"'},f;f=c?c.createElement("div"):a.global.document.createElement("div");return b.replace(a.string.HTML_ENTITY_PATTERN_,function(d,g){var h=e[d];if(h)return h;if("#"==g.charAt(0)){var k=Number("0"+
g.substr(1));isNaN(k)||(h=String.fromCharCode(k))}h||(f.innerHTML=d+" ",h=f.firstChild.nodeValue.slice(0,-1));return e[d]=h})};a.string.unescapePureXmlEntities_=function(b){return b.replace(/&([^;]+);/g,function(c,e){switch(e){case "amp":return"\x26";case "lt":return"\x3c";case "gt":return"\x3e";case "quot":return'"';default:if("#"==e.charAt(0)){var f=Number("0"+e.substr(1));if(!isNaN(f))return String.fromCharCode(f)}return c}})};a.string.HTML_ENTITY_PATTERN_=/&([^;\s<&]+);?/g;a.string.contains=function(b,
c){return-1!=b.indexOf(c)};a.string.htmlEscape=function(b,c){if(c)b=b.replace(a.string.AMP_RE_,"\x26amp;").replace(a.string.LT_RE_,"\x26lt;").replace(a.string.GT_RE_,"\x26gt;").replace(a.string.QUOT_RE_,"\x26quot;").replace(a.string.SINGLE_QUOTE_RE_,"\x26#39;").replace(a.string.NULL_RE_,"\x26#0;"),a.string.DETECT_DOUBLE_ESCAPING&&(b=b.replace(a.string.E_RE_,"\x26#101;"));else{if(!a.string.ALL_RE_.test(b))return b;-1!=b.indexOf("\x26")&&(b=b.replace(a.string.AMP_RE_,"\x26amp;"));-1!=b.indexOf("\x3c")&&
(b=b.replace(a.string.LT_RE_,"\x26lt;"));-1!=b.indexOf("\x3e")&&(b=b.replace(a.string.GT_RE_,"\x26gt;"));-1!=b.indexOf('"')&&(b=b.replace(a.string.QUOT_RE_,"\x26quot;"));-1!=b.indexOf("'")&&(b=b.replace(a.string.SINGLE_QUOTE_RE_,"\x26#39;"));-1!=b.indexOf("\x00")&&(b=b.replace(a.string.NULL_RE_,"\x26#0;"));a.string.DETECT_DOUBLE_ESCAPING&&-1!=b.indexOf("e")&&(b=b.replace(a.string.E_RE_,"\x26#101;"))}return b};a.debug={};a.debug.runtimeType=function(b){return b instanceof Function?b.displayName||b.name||
"unknown type name":b instanceof Object?b.constructor.displayName||b.constructor.name||Object.prototype.toString.call(b):null===b?"null":"undefined"===typeof b?"undefined":m(b)};a.debug.Error=function(b){if(Error.captureStackTrace)Error.captureStackTrace(this,a.debug.Error);else{var c=Error().stack;c&&(this.stack=c)}b&&(this.message=String(b));this.reportErrorToServer=!0};a.inherits(a.debug.Error,Error);a.debug.Error.prototype.name="CustomError";a.dom={};a.dom.NodeType={ELEMENT:1,ATTRIBUTE:2,TEXT:3,
CDATA_SECTION:4,ENTITY_REFERENCE:5,ENTITY:6,PROCESSING_INSTRUCTION:7,COMMENT:8,DOCUMENT:9,DOCUMENT_TYPE:10,DOCUMENT_FRAGMENT:11,NOTATION:12};a.i18n={};a.i18n.bidi={};a.i18n.bidi.Dir={};a.i18n.bidi.DirectionalString={};a.i18n.bidi.Format={};a.i18n.bidi.FORCE_RTL=!1;a.i18n.bidi.IS_RTL=a.i18n.bidi.FORCE_RTL||("ar"==a.LOCALE.substring(0,2).toLowerCase()||"fa"==a.LOCALE.substring(0,2).toLowerCase()||"he"==a.LOCALE.substring(0,2).toLowerCase()||"iw"==a.LOCALE.substring(0,2).toLowerCase()||"ps"==a.LOCALE.substring(0,
2).toLowerCase()||"sd"==a.LOCALE.substring(0,2).toLowerCase()||"ug"==a.LOCALE.substring(0,2).toLowerCase()||"ur"==a.LOCALE.substring(0,2).toLowerCase()||"yi"==a.LOCALE.substring(0,2).toLowerCase())&&(2==a.LOCALE.length||"-"==a.LOCALE.substring(2,3)||"_"==a.LOCALE.substring(2,3))||3<=a.LOCALE.length&&"ckb"==a.LOCALE.substring(0,3).toLowerCase()&&(3==a.LOCALE.length||"-"==a.LOCALE.substring(3,4)||"_"==a.LOCALE.substring(3,4));a.i18n.bidi.Format={LRE:"\u202a",RLE:"\u202b",PDF:"\u202c",LRM:"\u200e",RLM:"\u200f"};
a.i18n.bidi.Dir={LTR:1,RTL:-1,NEUTRAL:0};a.i18n.bidi.RIGHT="right";a.i18n.bidi.LEFT="left";a.i18n.bidi.I18N_RIGHT=a.i18n.bidi.IS_RTL?a.i18n.bidi.LEFT:a.i18n.bidi.RIGHT;a.i18n.bidi.I18N_LEFT=a.i18n.bidi.IS_RTL?a.i18n.bidi.RIGHT:a.i18n.bidi.LEFT;a.i18n.bidi.toDir=function(b,c){return"number"==typeof b?0<b?a.i18n.bidi.Dir.LTR:0>b?a.i18n.bidi.Dir.RTL:c?null:a.i18n.bidi.Dir.NEUTRAL:null==b?null:b?a.i18n.bidi.Dir.RTL:a.i18n.bidi.Dir.LTR};a.i18n.bidi.ltrChars_="A-Za-z\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02b8\u0300-\u0590\u0800-\u1fff\u200e\u2c00-\ufb1c\ufe00-\ufe6f\ufefd-\uffff";
a.i18n.bidi.rtlChars_="\u0591-\u06ef\u06fa-\u07ff\u200f\ufb1d-\ufdff\ufe70-\ufefc";a.i18n.bidi.htmlSkipReg_=/<[^>]*>|&[^;]+;/g;a.i18n.bidi.stripHtmlIfNeeded_=function(b,c){return c?b.replace(a.i18n.bidi.htmlSkipReg_,""):b};a.i18n.bidi.rtlCharReg_=RegExp("["+a.i18n.bidi.rtlChars_+"]");a.i18n.bidi.ltrCharReg_=RegExp("["+a.i18n.bidi.ltrChars_+"]");a.i18n.bidi.hasAnyRtl=function(b,c){return a.i18n.bidi.rtlCharReg_.test(a.i18n.bidi.stripHtmlIfNeeded_(b,c))};a.i18n.bidi.hasRtlChar=a.i18n.bidi.hasAnyRtl;
a.i18n.bidi.hasAnyLtr=function(b,c){return a.i18n.bidi.ltrCharReg_.test(a.i18n.bidi.stripHtmlIfNeeded_(b,c))};a.i18n.bidi.ltrRe_=RegExp("^["+a.i18n.bidi.ltrChars_+"]");a.i18n.bidi.rtlRe_=RegExp("^["+a.i18n.bidi.rtlChars_+"]");a.i18n.bidi.isRtlChar=function(b){return a.i18n.bidi.rtlRe_.test(b)};a.i18n.bidi.isLtrChar=function(b){return a.i18n.bidi.ltrRe_.test(b)};a.i18n.bidi.isNeutralChar=function(b){return!a.i18n.bidi.isLtrChar(b)&&!a.i18n.bidi.isRtlChar(b)};a.i18n.bidi.ltrDirCheckRe_=RegExp("^[^"+
a.i18n.bidi.rtlChars_+"]*["+a.i18n.bidi.ltrChars_+"]");a.i18n.bidi.rtlDirCheckRe_=RegExp("^[^"+a.i18n.bidi.ltrChars_+"]*["+a.i18n.bidi.rtlChars_+"]");a.i18n.bidi.startsWithRtl=function(b,c){return a.i18n.bidi.rtlDirCheckRe_.test(a.i18n.bidi.stripHtmlIfNeeded_(b,c))};a.i18n.bidi.isRtlText=a.i18n.bidi.startsWithRtl;a.i18n.bidi.startsWithLtr=function(b,c){return a.i18n.bidi.ltrDirCheckRe_.test(a.i18n.bidi.stripHtmlIfNeeded_(b,c))};a.i18n.bidi.isLtrText=a.i18n.bidi.startsWithLtr;a.i18n.bidi.isRequiredLtrRe_=
/^http:\/\/.*/;a.i18n.bidi.isNeutralText=function(b,c){b=a.i18n.bidi.stripHtmlIfNeeded_(b,c);return a.i18n.bidi.isRequiredLtrRe_.test(b)||!a.i18n.bidi.hasAnyLtr(b)&&!a.i18n.bidi.hasAnyRtl(b)};a.i18n.bidi.ltrExitDirCheckRe_=RegExp("["+a.i18n.bidi.ltrChars_+"][^"+a.i18n.bidi.rtlChars_+"]*$");a.i18n.bidi.rtlExitDirCheckRe_=RegExp("["+a.i18n.bidi.rtlChars_+"][^"+a.i18n.bidi.ltrChars_+"]*$");a.i18n.bidi.endsWithLtr=function(b,c){return a.i18n.bidi.ltrExitDirCheckRe_.test(a.i18n.bidi.stripHtmlIfNeeded_(b,
c))};a.i18n.bidi.isLtrExitText=a.i18n.bidi.endsWithLtr;a.i18n.bidi.endsWithRtl=function(b,c){return a.i18n.bidi.rtlExitDirCheckRe_.test(a.i18n.bidi.stripHtmlIfNeeded_(b,c))};a.i18n.bidi.isRtlExitText=a.i18n.bidi.endsWithRtl;a.i18n.bidi.rtlLocalesRe_=RegExp("^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Arab|Hebr|Thaa|Nkoo|Tfng))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)","i");a.i18n.bidi.isRtlLanguage=function(b){return a.i18n.bidi.rtlLocalesRe_.test(b)};a.i18n.bidi.bracketGuardTextRe_=/(\(.*?\)+)|(\[.*?\]+)|(\{.*?\}+)|(<.*?>+)/g;
a.i18n.bidi.guardBracketInText=function(b,c){var e=(void 0===c?a.i18n.bidi.hasAnyRtl(b):c)?a.i18n.bidi.Format.RLM:a.i18n.bidi.Format.LRM;return b.replace(a.i18n.bidi.bracketGuardTextRe_,e+"$\x26"+e)};a.i18n.bidi.enforceRtlInHtml=function(b){return"\x3c"==b.charAt(0)?b.replace(/<\w+/,"$\x26 dir\x3drtl"):"\n\x3cspan dir\x3drtl\x3e"+b+"\x3c/span\x3e"};a.i18n.bidi.enforceRtlInText=function(b){return a.i18n.bidi.Format.RLE+b+a.i18n.bidi.Format.PDF};a.i18n.bidi.enforceLtrInHtml=function(b){return"\x3c"==
b.charAt(0)?b.replace(/<\w+/,"$\x26 dir\x3dltr"):"\n\x3cspan dir\x3dltr\x3e"+b+"\x3c/span\x3e"};a.i18n.bidi.enforceLtrInText=function(b){return a.i18n.bidi.Format.LRE+b+a.i18n.bidi.Format.PDF};a.i18n.bidi.dimensionsRe_=/:\s*([.\d][.\w]*)\s+([.\d][.\w]*)\s+([.\d][.\w]*)\s+([.\d][.\w]*)/g;a.i18n.bidi.leftRe_=/left/gi;a.i18n.bidi.rightRe_=/right/gi;a.i18n.bidi.tempRe_=/%%%%/g;a.i18n.bidi.mirrorCSS=function(b){return b.replace(a.i18n.bidi.dimensionsRe_,":$1 $4 $3 $2").replace(a.i18n.bidi.leftRe_,"%%%%").replace(a.i18n.bidi.rightRe_,
a.i18n.bidi.LEFT).replace(a.i18n.bidi.tempRe_,a.i18n.bidi.RIGHT)};a.i18n.bidi.doubleQuoteSubstituteRe_=/([\u0591-\u05f2])"/g;a.i18n.bidi.singleQuoteSubstituteRe_=/([\u0591-\u05f2])'/g;a.i18n.bidi.normalizeHebrewQuote=function(b){return b.replace(a.i18n.bidi.doubleQuoteSubstituteRe_,"$1\u05f4").replace(a.i18n.bidi.singleQuoteSubstituteRe_,"$1\u05f3")};a.i18n.bidi.wordSeparatorRe_=/\s+/;a.i18n.bidi.hasNumeralsRe_=/[\d\u06f0-\u06f9]/;a.i18n.bidi.rtlDetectionThreshold_=0.4;a.i18n.bidi.estimateDirection=
function(b,c){for(var e=0,f=0,d=!1,g=a.i18n.bidi.stripHtmlIfNeeded_(b,c).split(a.i18n.bidi.wordSeparatorRe_),h=0;h<g.length;h++){var k=g[h];a.i18n.bidi.startsWithRtl(k)?(e++,f++):a.i18n.bidi.isRequiredLtrRe_.test(k)?d=!0:a.i18n.bidi.hasAnyLtr(k)?f++:a.i18n.bidi.hasNumeralsRe_.test(k)&&(d=!0)}return 0==f?d?a.i18n.bidi.Dir.LTR:a.i18n.bidi.Dir.NEUTRAL:e/f>a.i18n.bidi.rtlDetectionThreshold_?a.i18n.bidi.Dir.RTL:a.i18n.bidi.Dir.LTR};a.i18n.bidi.detectRtlDirectionality=function(b,c){return a.i18n.bidi.estimateDirection(b,
c)==a.i18n.bidi.Dir.RTL};a.i18n.bidi.setElementDirAndAlign=function(b,c){b&&(c=a.i18n.bidi.toDir(c))&&(b.style.textAlign=c==a.i18n.bidi.Dir.RTL?a.i18n.bidi.RIGHT:a.i18n.bidi.LEFT,b.dir=c==a.i18n.bidi.Dir.RTL?"rtl":"ltr")};a.i18n.bidi.setElementDirByTextDirectionality=function(b,c){switch(a.i18n.bidi.estimateDirection(c)){case a.i18n.bidi.Dir.LTR:b.dir="ltr";break;case a.i18n.bidi.Dir.RTL:b.dir="rtl";break;default:b.removeAttribute("dir")}};a.i18n.bidi.DirectionalString=function(){};a.asserts={};a.asserts.ENABLE_ASSERTS=
a.DEBUG;a.asserts.AssertionError=function(b,c){c.unshift(b);a.debug.Error.call(this,a.string.subs.apply(null,c));c.shift();this.messagePattern=b};a.inherits(a.asserts.AssertionError,a.debug.Error);a.asserts.AssertionError.prototype.name="AssertionError";a.asserts.DEFAULT_ERROR_HANDLER=function(b){throw b;};a.asserts.errorHandler_=a.asserts.DEFAULT_ERROR_HANDLER;a.asserts.doAssertFailure_=function(b,c,e,f){var d="Assertion failed";if(e)var d=d+(": "+e),g=f;else b&&(d+=": "+b,g=c);b=new a.asserts.AssertionError(""+
d,g||[]);a.asserts.errorHandler_(b)};a.asserts.setErrorHandler=function(b){a.asserts.ENABLE_ASSERTS&&(a.asserts.errorHandler_=b)};a.asserts.assert=function(b,c,e){a.asserts.ENABLE_ASSERTS&&!b&&a.asserts.doAssertFailure_("",null,c,Array.prototype.slice.call(arguments,2));return b};a.asserts.fail=function(b,c){a.asserts.ENABLE_ASSERTS&&a.asserts.errorHandler_(new a.asserts.AssertionError("Failure"+(b?": "+b:""),Array.prototype.slice.call(arguments,1)))};a.asserts.assertNumber=function(b,c,e){a.asserts.ENABLE_ASSERTS&&
!a.isNumber(b)&&a.asserts.doAssertFailure_("Expected number but got %s: %s.",[a.typeOf(b),b],c,Array.prototype.slice.call(arguments,2));return b};a.asserts.assertString=function(b,c,e){a.asserts.ENABLE_ASSERTS&&!a.isString(b)&&a.asserts.doAssertFailure_("Expected string but got %s: %s.",[a.typeOf(b),b],c,Array.prototype.slice.call(arguments,2));return b};a.asserts.assertFunction=function(b,c,e){a.asserts.ENABLE_ASSERTS&&!a.isFunction(b)&&a.asserts.doAssertFailure_("Expected function but got %s: %s.",
[a.typeOf(b),b],c,Array.prototype.slice.call(arguments,2));return b};a.asserts.assertObject=function(b,c,e){a.asserts.ENABLE_ASSERTS&&!a.isObject(b)&&a.asserts.doAssertFailure_("Expected object but got %s: %s.",[a.typeOf(b),b],c,Array.prototype.slice.call(arguments,2));return b};a.asserts.assertArray=function(b,c,e){a.asserts.ENABLE_ASSERTS&&!a.isArray(b)&&a.asserts.doAssertFailure_("Expected array but got %s: %s.",[a.typeOf(b),b],c,Array.prototype.slice.call(arguments,2));return b};a.asserts.assertBoolean=
function(b,c,e){a.asserts.ENABLE_ASSERTS&&!a.isBoolean(b)&&a.asserts.doAssertFailure_("Expected boolean but got %s: %s.",[a.typeOf(b),b],c,Array.prototype.slice.call(arguments,2));return b};a.asserts.assertElement=function(b,c,e){!a.asserts.ENABLE_ASSERTS||a.isObject(b)&&b.nodeType==a.dom.NodeType.ELEMENT||a.asserts.doAssertFailure_("Expected Element but got %s: %s.",[a.typeOf(b),b],c,Array.prototype.slice.call(arguments,2));return b};a.asserts.assertInstanceof=function(b,c,e,f){!a.asserts.ENABLE_ASSERTS||
b instanceof c||a.asserts.doAssertFailure_("Expected instanceof %s but got %s.",[a.asserts.getType_(c),a.asserts.getType_(b)],e,Array.prototype.slice.call(arguments,3));return b};a.asserts.assertObjectPrototypeIsIntact=function(){for(var b in Object.prototype)a.asserts.fail(b+" should not be enumerable in Object.prototype.")};a.asserts.getType_=function(b){return b instanceof Function?b.displayName||b.name||"unknown type name":b instanceof Object?b.constructor.displayName||b.constructor.name||Object.prototype.toString.call(b):
null===b?"null":"undefined"===typeof b?"undefined":m(b)};a.string.StringBuffer=function(b,c){null!=b&&this.append.apply(this,arguments)};a.string.StringBuffer.prototype.buffer_="";a.string.StringBuffer.prototype.set=function(b){this.buffer_=""+b};a.string.StringBuffer.prototype.append=function(b,c,e){this.buffer_+=String(b);if(null!=c)for(var f=1;f<arguments.length;f++)this.buffer_+=arguments[f];return this};a.string.StringBuffer.prototype.clear=function(){this.buffer_=""};a.string.StringBuffer.prototype.getLength=
function(){return this.buffer_.length};a.string.StringBuffer.prototype.toString=function(){return this.buffer_};a.soy={};a.soy.data={};a.soy.data.SanitizedContentKind={HTML:a.DEBUG?{sanitizedContentKindHtml:!0}:{},JS:a.DEBUG?{sanitizedContentJsChars:!0}:{},URI:a.DEBUG?{sanitizedContentUri:!0}:{},TRUSTED_RESOURCE_URI:a.DEBUG?{sanitizedContentTrustedResourceUri:!0}:{},ATTRIBUTES:a.DEBUG?{sanitizedContentHtmlAttribute:!0}:{},CSS:a.DEBUG?{sanitizedContentCss:!0}:{},TEXT:a.DEBUG?{sanitizedContentKindText:!0}:
{}};a.soy.data.SanitizedContent=function(){throw Error("Do not instantiate directly");};a.soy.data.SanitizedContent.prototype.contentDir=null;a.soy.data.SanitizedContent.prototype.getContent=function(){return this.content};a.soy.data.SanitizedContent.prototype.toString=function(){return this.content};a.soy.data.UnsanitizedText=function(){a.soy.data.UnsanitizedText.base(this,"constructor")};a.inherits(a.soy.data.UnsanitizedText,a.soy.data.SanitizedContent);a.soy.data.SanitizedHtml=function(){a.soy.data.SanitizedHtml.base(this,
"constructor")};a.inherits(a.soy.data.SanitizedHtml,a.soy.data.SanitizedContent);a.soy.data.SanitizedHtml.prototype.contentKind=a.soy.data.SanitizedContentKind.HTML;a.soy.data.SanitizedHtml.isCompatibleWith=function(b){return a.isString(b)||b instanceof a.soy.data.SanitizedHtml||b instanceof a.soy.data.UnsanitizedText||b instanceof a.html.SafeHtml};(function(){var b={asserts:{},esc:{}},c={};b.StringBuilder=a.string.StringBuffer;c.SanitizedContentKind=a.soy.data.SanitizedContentKind;c.isContentKind=
function(d,g){return null!=d&&d.contentKind===g};c.SanitizedHtml=function(){c.SanitizedHtml.base(this,"constructor")};a.inherits(c.SanitizedHtml,a.soy.data.SanitizedHtml);c.SanitizedHtml.from=function(d){return null!=d&&d.contentKind===a.soy.data.SanitizedContentKind.HTML?(a.asserts.assert(d.constructor===a.soy.data.SanitizedHtml||d.constructor===c.SanitizedHtml),d):d instanceof a.html.SafeHtml?c.VERY_UNSAFE.ordainSanitizedHtml(a.html.SafeHtml.unwrap(d),d.getDirection()):c.VERY_UNSAFE.ordainSanitizedHtml(b.esc.$$escapeHtmlHelper(String(d)),
c.getContentDir(d))};c.SanitizedHtml.isCompatibleWith=function(d){return a.isString(d)||d instanceof a.soy.data.SanitizedHtml||d instanceof a.soy.data.UnsanitizedText||d instanceof a.html.SafeHtml};c.SanitizedUri=function(){a.soy.data.SanitizedContent.call(this)};a.inherits(c.SanitizedUri,a.soy.data.SanitizedContent);c.SanitizedUri.prototype.contentKind=c.SanitizedContentKind.URI;c.SanitizedUri.prototype.contentDir=a.i18n.bidi.Dir.LTR;c.UnsanitizedText=function(d,g){this.content=String(d);this.contentDir=
null!=g?g:null};a.inherits(c.UnsanitizedText,a.soy.data.UnsanitizedText);c.UnsanitizedText.prototype.contentKind=c.SanitizedContentKind.TEXT;c.$$EMPTY_STRING_={VALUE:""};c.$$makeSanitizedContentFactory_=function(d){function g(h){this.content=h}g.prototype=d.prototype;return function(h,k){var l=new g(String(h));void 0!==k&&(l.contentDir=k);return l}};c.$$makeSanitizedContentFactoryWithDefaultDirOnly_=function(d){function g(h){this.content=h}g.prototype=d.prototype;return function(h){return new g(String(h))}};
c.markUnsanitizedText=function(d,g){return new c.UnsanitizedText(d,g)};c.VERY_UNSAFE={};c.VERY_UNSAFE.ordainSanitizedUri=c.$$makeSanitizedContentFactoryWithDefaultDirOnly_(c.SanitizedUri);b.$$augmentMap=function(d,g){return b.$$assignDefaults(b.$$assignDefaults({},g),d)};b.$$assignDefaults=function(d,g){for(var h in g)h in d||(d[h]=g[h]);return d};b.$$checkMapKey=function(d){if("string"!=typeof d)throw Error("Map literal's key expression must evaluate to string (encountered type \""+("undefined"===
typeof d?"undefined":m(d))+'").');return d};b.$$getMapKeys=function(d){var g=[],h;for(h in d)g.push(h);return g};b.$$checkNotNull=function(d){if(null==d)throw Error("unexpected null value");return d};b.$$getDelTemplateId=function(d){return d};b.$$DELEGATE_REGISTRY_PRIORITIES_={};b.$$DELEGATE_REGISTRY_FUNCTIONS_={};b.$$registerDelegateFn=function(d,g,h,k){var l="key_"+d+":"+g,n=b.$$DELEGATE_REGISTRY_PRIORITIES_[l];if(void 0===n||h>n)b.$$DELEGATE_REGISTRY_PRIORITIES_[l]=h,b.$$DELEGATE_REGISTRY_FUNCTIONS_[l]=
k;else if(h==n)throw Error('Encountered two active delegates with the same priority ("'+d+":"+g+'").');};b.$$getDelegateFn=function(d,g,h){var k=b.$$DELEGATE_REGISTRY_FUNCTIONS_["key_"+d+":"+g];k||""==g||(k=b.$$DELEGATE_REGISTRY_FUNCTIONS_["key_"+d+":"]);if(k)return k;if(h)return b.$$EMPTY_TEMPLATE_FN_;throw Error('Found no active impl for delegate call to "'+d+":"+g+'" (and not allowemptydefault\x3d"true").');};b.$$EMPTY_TEMPLATE_FN_=function(d,g,h){return""};b.$$truncate=function(d,g,h){d=String(d);
if(d.length<=g)return d;h&&(3<g?g-=3:h=!1);b.$$isHighSurrogate_(d.charAt(g-1))&&b.$$isLowSurrogate_(d.charAt(g))&&(g-=1);d=d.substring(0,g);h&&(d+="...");return d};b.$$isHighSurrogate_=function(d){return 55296<=d&&56319>=d};b.$$isLowSurrogate_=function(d){return 56320<=d&&57343>=d};b.asserts.assertType=function(d,g,h,k){a.asserts.ENABLE_ASSERTS&&!d&&(d="expected param "+g+" of type "+k+(a.DEBUG?", but got "+a.debug.runtimeType(h):"")+".",a.asserts.fail(d));return h};b.esc.$$escapeHtmlHelper=function(d){return a.string.htmlEscape(String(d))};
b.$$filterImageDataUri=function(d){return c.VERY_UNSAFE.ordainSanitizedUri(b.esc.$$filterImageDataUriHelper(d))};b.esc.$$FILTER_FOR_FILTER_IMAGE_DATA_URI_=/^data:image\/(?:bmp|gif|jpe?g|png|tiff|webp);base64,[a-z0-9+\/]+=*$/i;b.esc.$$filterImageDataUriHelper=function(d){d=String(d);return b.esc.$$FILTER_FOR_FILTER_IMAGE_DATA_URI_.test(d)?d:(a.asserts.fail("Bad value `%s` for |filterImageDataUri",[d]),"data:image/gif;base64,zSoyz")};var e=IncrementalDOM,f={renderDynamicContent:function(d){a.isFunction(d)?
d():null!=d&&e.text(d)},print:function(d){if(d instanceof c.SanitizedHtml){var g=e.elementOpen("html-blob"),h=d.toString();g.__innerHTML!==h&&(b.renderHtml(g,d),g.__innerHTML=h);e.skip();e.elementClose("html-blob")}else f.renderDynamicContent(d)}};a.loadModule(function(){a.module("soy.idom");return f});a.loadModule(function(){a.module("soy");return b});a.loadModule(function(){a.module("soydata");return c});a.loadModule(function(){a.module("soy.asserts");return b})})();a.loadModule(function(){a.module("incrementaldom");
return IncrementalDOM})}).call("undefined"!==typeof p&&"undefined"!==typeof global?global:window)});
Liferay.Loader.define("frontend-js-metal-web@1.0.26/metal-soy/src/Soy","exports metal-component/src/all/component metal/src/metal metal-state/src/all/state metal-incremental-dom/src/all/incremental-dom ./SoyAop metal-soy-bundle/build/bundle".split(" "),function(g,w,k,t,n,q){function x(m,f){if("function"!==typeof f&&null!==f)throw new TypeError("Super expression must either be null or a function, not "+typeof f);m.prototype=Object.create(f&&f.prototype,{constructor:{value:m,enumerable:!1,writable:!0,
configurable:!0}});f&&(Object.setPrototypeOf?Object.setPrototypeOf(m,f):m.__proto__=f)}Object.defineProperty(g,"__esModule",{value:!0});g.validators=g.SoyAop=g.Soy=g.Config=void 0;var y=n&&n.__esModule?n:{default:n},h=q&&q.__esModule?q:{default:q},z=function(){function m(f,d){for(var a=0;a<d.length;a++){var b=d[a];b.enumerable=b.enumerable||!1;b.configurable=!0;"value"in b&&(b.writable=!0);Object.defineProperty(f,b.key,b)}}return function(f,d,a){d&&m(f.prototype,d);a&&m(f,a);return f}}(),u=function f(d,
a,b){null===d&&(d=Function.prototype);var c=Object.getOwnPropertyDescriptor(d,a);if(void 0===c)return d=Object.getPrototypeOf(d),null===d?void 0:f(d,a,b);if("value"in c)return c.value;a=c.get;return void 0===a?void 0:a.call(b)},v={},p=new (function(f){function d(){if(!(this instanceof d))throw new TypeError("Cannot call a class as a function");var a=(d.__proto__||Object.getPrototypeOf(d)).apply(this,arguments);if(!this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
return!a||"object"!==typeof a&&"function"!==typeof a?this:a}x(d,f);z(d,[{key:"getExtraDataConfig",value:function(a){var b=a.constructor.TEMPLATE;if((0,k.isFunction)(b)){b=h.default.getOriginalFn(b);this.soyParamTypes_=b.types||{};for(var b=b.params||[],c={},e=0;e<b.length;e++)a[b[e]]||(c[b[e]]={});return c}}},{key:"buildTemplateData_",value:function(a,b){var c=this,e=k.object.mixin({},this.getConfig(a));a.getStateKeys().forEach(function(r){var s=a[r];c.isHtmlParam_(a,r)&&(s=p.toIncDom(s));e[r]=s});
for(var l=0;l<b.length;l++)!e[b[l]]&&(0,k.isFunction)(a[b[l]])&&(e[b[l]]=a[b[l]].bind(a));return(0,k.isFunction)(a.prepareStateForRender)?a.prepareStateForRender(e)||e:e}},{key:"getTemplate",value:function(a,b){return function(c,e,l){if(!goog.loadedModules_[a])throw Error('No template with namespace "'+a+'" has been loaded yet.');return goog.loadedModules_[a][b](c,e,l)}}},{key:"handleInterceptedCall_",value:function(a){var b=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},c=[a.componentCtor,
null,[]],e;for(e in b)Object.prototype.hasOwnProperty.call(b,e)&&c.push(e,b[e]);IncrementalDOM.elementVoid.apply(null,c)}},{key:"isHtmlParam_",value:function(a,b){return a.getDataManager().getStateInstance(a).getStateKeyConfig(b).isHtml?!0:-1!==((h.default.getOriginalFn(a.constructor.TEMPLATE).types||{})[b]||"").split("|").indexOf("html")}},{key:"register",value:function(a,b){var c=2<arguments.length&&void 0!==arguments[2]?arguments[2]:"render";a.RENDERER=p;a.TEMPLATE=h.default.getOriginalFn(b[c]);
a.TEMPLATE.componentCtor=a;h.default.registerForInterception(b,c);w.ComponentRegistry.register(a)}},{key:"renderIncDom",value:function(a){var b=a.constructor.TEMPLATE;(0,k.isFunction)(b)&&!a.render?(b=h.default.getOriginalFn(b),h.default.startInterception(this.handleInterceptedCall_),a=this.buildTemplateData_(a,b.params||[]),b(a,null,v),h.default.stopInterception()):u(d.prototype.__proto__||Object.getPrototypeOf(d.prototype),"renderIncDom",this).call(this,a)}},{key:"setInjectedData",value:function(a){v=
a||{}}},{key:"shouldUpdate",value:function(a,b){var c=u(d.prototype.__proto__||Object.getPrototypeOf(d.prototype),"shouldUpdate",this).call(this,a,b);if(!c||a.shouldUpdate)return c;for(var c=(c=a.constructor.TEMPLATE)?h.default.getOriginalFn(c).params:[],e=0;e<c.length;e++)if(b.props[c[e]])return!0;return!1}},{key:"toHtmlString",value:function(a){var b=document.createElement("div");IncrementalDOM.patch(b,a);return b.innerHTML}},{key:"toIncDom",value:function(a){(0,k.isObject)(a)&&(0,k.isString)(a.content)&&
"HTML"===a.contentKind&&(a=a.content);(0,k.isString)(a)&&(a=n.HTML2IncDom.buildFn(a));return a}}]);return d}(y.default.constructor));p.RENDERER_NAME="soy";g.default=p;g.Config=t.Config;g.Soy=p;g.SoyAop=h.default;g.validators=t.validators});
Liferay.Loader.define("gsearch-mini-web@2.1.0/js/DevbridgeAutocomplete.es",[],function(){$.fn.devbridgeAutocomplete=function(q,w){function l(a,b){this.element=a;this.el=$(a);this.suggestions=[];this.badQueries=[];this.selectedIndex=-1;this.currentValue=this.element.value;this.timeoutId=null;this.cachedResponse={};this.onChange=this.onChangeTimeout=null;this.isLocal=!1;this.noSuggestionsContainer=this.suggestionsContainer=null;this.options=$.extend({},l.defaults,b);this.classes={selected:"autocomplete-selected",
suggestion:"autocomplete-suggestion"};this.hint=null;this.hintValue="";this.selection=null;this.initialize();this.setOptions(b)}var u=function(){return{escapeRegExChars:function(a){return a.replace(/[|\\{}()[\]^$+*?.]/g,"\\$\x26")},createNode:function(a){var b=document.createElement("div");b.className=a;b.style.position="absolute";b.style.display="none";return b}}}(),k={ESC:27,TAB:9,RETURN:13,LEFT:37,UP:38,RIGHT:39,DOWN:40},r=$.noop;l.utils=u;$.Autocomplete=l;l.defaults={ajaxSettings:{},autoSelectFirst:!1,
appendTo:"body",serviceUrl:null,lookup:null,onSelect:null,width:"auto",minChars:1,maxHeight:300,deferRequestBy:0,params:{},formatResult:function(a,b){if(!b)return a.value;var c="("+u.escapeRegExChars(b)+")";return a.value.replace(RegExp(c,"gi"),"\x3cstrong\x3e$1\x3c/strong\x3e").replace(/&/g,"\x26amp;").replace(/</g,"\x26lt;").replace(/>/g,"\x26gt;").replace(/"/g,"\x26quot;").replace(/&lt;(\/?strong)&gt;/g,"\x3c$1\x3e")},formatGroup:function(a,b){return'\x3cdiv class\x3d"autocomplete-group"\x3e'+
b+"\x3c/div\x3e"},delimiter:null,zIndex:9999,type:"GET",noCache:!1,onSearchStart:r,onSearchComplete:r,onSearchError:r,preserveInput:!1,containerClass:"autocomplete-suggestions",tabDisabled:!1,dataType:"text",currentRequest:null,triggerSelectOnValidInput:!0,preventBadQueries:!0,lookupFilter:function(a,b,c){return-1!==a.value.toLowerCase().indexOf(c)},paramName:"query",transformResult:function(a){return"string"===typeof a?$.parseJSON(a):a},showNoSuggestionNotice:!1,noSuggestionNotice:"No results",orientation:"bottom",
forceFixPosition:!1};l.prototype={initialize:function(){var a=this,b="."+a.classes.suggestion,c=a.classes.selected,d=a.options,e;a.element.setAttribute("autocomplete","off");a.noSuggestionsContainer=$('\x3cdiv class\x3d"autocomplete-no-suggestion"\x3e\x3c/div\x3e').html(this.options.noSuggestionNotice).get(0);a.suggestionsContainer=l.utils.createNode(d.containerClass);e=$(a.suggestionsContainer);e.appendTo(d.appendTo||"body");"auto"!==d.width&&e.css("width",d.width);e.on("mouseover.autocomplete",
b,function(){a.activate($(this).data("index"))});e.on("mouseout.autocomplete",function(){a.selectedIndex=-1;e.children("."+c).removeClass(c)});e.on("click.autocomplete",b,function(){a.select($(this).data("index"))});e.on("click.autocomplete",function(){clearTimeout(a.blurTimeoutId)});a.fixPositionCapture=function(){a.visible&&a.fixPosition()};$(window).on("resize.autocomplete",a.fixPositionCapture);a.el.on("keydown.autocomplete",function(f){a.onKeyPress(f)});a.el.on("keyup.autocomplete",function(f){a.onKeyUp(f)});
a.el.on("blur.autocomplete",function(){a.onBlur()});a.el.on("focus.autocomplete",function(){a.onFocus()});a.el.on("change.autocomplete",function(f){a.onKeyUp(f)});a.el.on("input.autocomplete",function(f){a.onKeyUp(f)})},onFocus:function(){this.fixPosition();if(this.el.val().length>=this.options.minChars)this.onValueChange()},onBlur:function(){var a=this;a.blurTimeoutId=setTimeout(function(){a.hide()},200)},abortAjax:function(){this.currentRequest&&(this.currentRequest.abort(),this.currentRequest=
null)},setOptions:function(a){a=$.extend({},this.options,a);if(this.isLocal=Array.isArray(a.lookup))a.lookup=this.verifySuggestionsFormat(a.lookup);a.orientation=this.validateOrientation(a.orientation,"bottom");$(this.suggestionsContainer).css({"max-height":a.maxHeight+"px",width:a.width+"px","z-index":a.zIndex});this.options=a},clearCache:function(){this.cachedResponse={};this.badQueries=[]},clear:function(){this.clearCache();this.currentValue="";this.suggestions=[]},disable:function(){this.disabled=
!0;clearTimeout(this.onChangeTimeout);this.abortAjax()},enable:function(){this.disabled=!1},fixPosition:function(){var a=$(this.suggestionsContainer),b=a.parent().get(0);if(b===document.body||this.options.forceFixPosition){var c=this.options.orientation,d=a.outerHeight(),e=this.el.outerHeight(),f=this.el.offset(),g={top:f.top,left:f.left};if("auto"===c)var c=$(window).height(),h=$(window).scrollTop(),m=-h+f.top-d,c=Math.max(m,h+c-(f.top+e+d))===m?"top":"bottom";g.top="top"===c?g.top+-d:g.top+e;b!==
document.body&&(b=a.css("opacity"),this.visible||a.css("opacity",0).show(),d=a.offsetParent().offset(),g.top-=d.top,g.left-=d.left,this.visible||a.css("opacity",b).hide());"auto"===this.options.width&&(g.width=this.el.outerWidth()+"px");a.css(g)}},isCursorAtEnd:function(){var a=this.el.val().length,b=this.element.selectionStart;return"number"===typeof b?b===a:document.selection?(b=document.selection.createRange(),b.moveStart("character",-a),a===b.text.length):!0},onKeyPress:function(a){if(!this.disabled&&
!this.visible&&a.which===k.DOWN&&this.currentValue)this.suggest();else if(!this.disabled&&this.visible){switch(a.which){case k.ESC:this.el.val(this.currentValue);this.hide();break;case k.RIGHT:if(this.hint&&this.options.onHint&&this.isCursorAtEnd()){this.selectHint();break}return;case k.TAB:if(this.hint&&this.options.onHint){this.selectHint();return}if(-1===this.selectedIndex){this.hide();return}this.select(this.selectedIndex);if(!1===this.options.tabDisabled)return;break;case k.RETURN:if(-1===this.selectedIndex){this.hide();
return}this.select(this.selectedIndex);break;case k.UP:this.moveUp();break;case k.DOWN:this.moveDown();break;default:return}a.stopImmediatePropagation();a.preventDefault()}},onKeyUp:function(a){var b=this;if(!b.disabled){switch(a.which){case k.UP:case k.DOWN:return}clearTimeout(b.onChangeTimeout);if(b.currentValue!==b.el.val())if(b.findBestHint(),0<b.options.deferRequestBy)b.onChangeTimeout=setTimeout(function(){b.onValueChange()},b.options.deferRequestBy);else b.onValueChange()}},onValueChange:function(){if(this.ignoreValueChange)this.ignoreValueChange=
!1;else{var a=this.options,b=this.el.val(),c=this.getQuery(b);this.selection&&this.currentValue!==c&&(this.selection=null,(a.onInvalidateSelection||$.noop).call(this.element));clearTimeout(this.onChangeTimeout);this.currentValue=b;this.selectedIndex=-1;a.triggerSelectOnValidInput&&this.isExactMatch(c)?this.select(0):c.length<a.minChars?this.hide():this.getSuggestions(c)}},isExactMatch:function(a){var b=this.suggestions;return 1===b.length&&b[0].value.toLowerCase()===a.toLowerCase()},getQuery:function(a){var b=
this.options.delimiter;if(!b)return a;a=a.split(b);return $.trim(a[a.length-1])},getSuggestionsLocal:function(a){var b=this.options,c=a.toLowerCase(),d=b.lookupFilter,e=parseInt(b.lookupLimit,10),b={suggestions:$.grep(b.lookup,function(f){return d(f,a,c)})};e&&b.suggestions.length>e&&(b.suggestions=b.suggestions.slice(0,e));return b},getSuggestions:function(a){var b,c=this,d=c.options,e=d.serviceUrl,f,g;d.params[d.paramName]=a;!1!==d.onSearchStart.call(c.element,d.params)&&(f=d.ignoreParams?null:
d.params,$.isFunction(d.lookup)?d.lookup(a,function(h){c.suggestions=h.suggestions;c.suggest();d.onSearchComplete.call(c.element,a,h.suggestions)}):(c.isLocal?b=c.getSuggestionsLocal(a):($.isFunction(e)&&(e=e.call(c.element,a)),g=e+"?"+$.param(f||{}),b=c.cachedResponse[g]),b&&Array.isArray(b.suggestions)?(c.suggestions=b.suggestions,c.suggest(),d.onSearchComplete.call(c.element,a,b.suggestions)):c.isBadQuery(a)?d.onSearchComplete.call(c.element,a,[]):(c.abortAjax(),b={url:e,data:f,type:d.type,dataType:d.dataType},
$.extend(b,d.ajaxSettings),c.currentRequest=$.ajax(b).done(function(h){c.currentRequest=null;h=d.transformResult(h,a);c.processResponse(h,a,g);d.onSearchComplete.call(c.element,a,h.suggestions)}).fail(function(h,m,n){d.onSearchError.call(c.element,a,h,m,n)}))))},isBadQuery:function(a){if(!this.options.preventBadQueries)return!1;for(var b=this.badQueries,c=b.length;c--;)if(0===a.indexOf(b[c]))return!0;return!1},hide:function(){var a=$(this.suggestionsContainer);$.isFunction(this.options.onHide)&&this.visible&&
this.options.onHide.call(this.element,a);this.visible=!1;this.selectedIndex=-1;clearTimeout(this.onChangeTimeout);$(this.suggestionsContainer).hide();this.signalHint(null)},suggest:function(){if(this.suggestions.length){var a=this.options,b=a.groupBy,c=a.formatResult,d=this.getQuery(this.currentValue),e=this.classes.suggestion,f=this.classes.selected,g=$(this.suggestionsContainer),h=$(this.noSuggestionsContainer),m=a.beforeRender,n="",s;a.triggerSelectOnValidInput&&this.isExactMatch(d)?this.select(0):
($.each(this.suggestions,function(v,t){if(b){var x=n,p;p=t.data[b];s===p?p="":(s=p,p=a.formatGroup(t,s));n=x+p}n+='\x3cdiv class\x3d"'+e+'" data-index\x3d"'+v+'"\x3e'+c(t,d,v)+"\x3c/div\x3e"}),this.adjustContainerWidth(),h.detach(),g.html(n),$.isFunction(m)&&m.call(this.element,g,this.suggestions),this.fixPosition(),g.show(),a.autoSelectFirst&&(this.selectedIndex=0,g.scrollTop(0),g.children("."+e).first().addClass(f)),this.visible=!0,this.findBestHint())}else this.options.showNoSuggestionNotice?this.noSuggestions():
this.hide()},noSuggestions:function(){var a=this.options.beforeRender,b=$(this.suggestionsContainer),c=$(this.noSuggestionsContainer);this.adjustContainerWidth();c.detach();b.empty();b.append(c);$.isFunction(a)&&a.call(this.element,b,this.suggestions);this.fixPosition();b.show();this.visible=!0},adjustContainerWidth:function(){var a=this.options,b=$(this.suggestionsContainer);"auto"===a.width?(a=this.el.outerWidth(),b.css("width",0<a?a:300)):"flex"===a.width&&b.css("width","")},findBestHint:function(){var a=
this.el.val().toLowerCase(),b=null;a&&($.each(this.suggestions,function(c,d){var e=0===d.value.toLowerCase().indexOf(a);e&&(b=d);return!e}),this.signalHint(b))},signalHint:function(a){var b="";a&&(b=this.currentValue+a.value.substr(this.currentValue.length));this.hintValue!==b&&(this.hintValue=b,this.hint=a,(this.options.onHint||$.noop)(b))},verifySuggestionsFormat:function(a){return a.length&&"string"===typeof a[0]?$.map(a,function(b){return{value:b,data:null}}):a},validateOrientation:function(a,
b){a=$.trim(a||"").toLowerCase();-1===$.inArray(a,["auto","bottom","top"])&&(a=b);return a},processResponse:function(a,b,c){var d=this.options;a.suggestions=this.verifySuggestionsFormat(a.suggestions);d.noCache||(this.cachedResponse[c]=a,d.preventBadQueries&&!a.suggestions.length&&this.badQueries.push(b));b===this.getQuery(this.currentValue)&&(this.suggestions=a.suggestions,this.suggest())},activate:function(a){var b=this.classes.selected,c=$(this.suggestionsContainer),d=c.find("."+this.classes.suggestion);
c.find("."+b).removeClass(b);this.selectedIndex=a;return-1!==this.selectedIndex&&d.length>this.selectedIndex?(a=d.get(this.selectedIndex),$(a).addClass(b),a):null},selectHint:function(){var a=$.inArray(this.hint,this.suggestions);this.select(a)},select:function(a){this.hide();this.onSelect(a)},moveUp:function(){-1!==this.selectedIndex&&(0===this.selectedIndex?($(this.suggestionsContainer).children().first().removeClass(this.classes.selected),this.selectedIndex=-1,this.ignoreValueChange=!1,this.el.val(this.currentValue),
this.findBestHint()):this.adjustScroll(this.selectedIndex-1))},moveDown:function(){this.selectedIndex!==this.suggestions.length-1&&this.adjustScroll(this.selectedIndex+1)},adjustScroll:function(a){var b=this.activate(a);if(b){var c,d,e=$(b).outerHeight(),b=b.offsetTop;c=$(this.suggestionsContainer).scrollTop();d=c+this.options.maxHeight-e;b<c?$(this.suggestionsContainer).scrollTop(b):b>d&&$(this.suggestionsContainer).scrollTop(b-this.options.maxHeight+e);this.options.preserveInput||(this.ignoreValueChange=
!0,this.el.val(this.getValue(this.suggestions[a].value)));this.signalHint(null)}},onSelect:function(a){var b=this.options.onSelect;a=this.suggestions[a];this.currentValue=this.getValue(a.value);this.currentValue===this.el.val()||this.options.preserveInput||this.el.val(this.currentValue);this.signalHint(null);this.suggestions=[];this.selection=a;$.isFunction(b)&&b.call(this.element,a)},getValue:function(a){var b=this.options.delimiter,c;if(!b)return a;c=this.currentValue;b=c.split(b);return 1===b.length?
a:c.substr(0,c.length-b[b.length-1].length)+a},dispose:function(){this.el.off(".autocomplete").removeData("autocomplete");$(window).off("resize.autocomplete",this.fixPositionCapture);$(this.suggestionsContainer).remove()}};return arguments.length?this.each(function(){var a=$(this),b=a.data("autocomplete");if("string"===typeof q){if(b&&"function"===typeof b[q])b[q](w)}else b&&b.dispose&&b.dispose(),b=new l(this,q),a.data("autocomplete",b)}):this.first().data("autocomplete")}});
Liferay.Loader.define("gsearch-mini-web@2.1.0/MiniView.soy",["exports","metal-component/src/all/component","metal-soy/src/Soy"],function(e,d,f){function n(c,b){if("function"!==typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function, not "+typeof b);c.prototype=Object.create(b&&b.prototype,{constructor:{value:c,enumerable:!1,writable:!0,configurable:!0}});b&&(Object.setPrototypeOf?Object.setPrototypeOf(c,b):c.__proto__=b)}Object.defineProperty(e,"__esModule",{value:!0});
e.templates=e.MiniView=void 0;d=d&&d.__esModule?d:{default:d};f=f&&f.__esModule?f:{default:f};var k;goog.loadModule(function(c){function b(g,l,h){l="";h="Clear".replace(/{(\d+)}/g,"\u0001$1\u0001");l+=goog.string.unescapeEntities(h);h="";var m;m="What are you looking for?".replace(/{(\d+)}/g,"\u0001$1\u0001");h+=goog.string.unescapeEntities(m);a.elementOpenStart("div");a.attr("class","container-fluid gsearch-container");a.attr("id",g.id);a.elementOpenEnd();a.elementOpenStart("div");a.attr("class",
"row");a.elementOpenEnd();a.elementOpenStart("div");a.attr("class","col-xs-12 col-sm-10 col-md-6 gsearch-searchfield gsearch-centered");a.elementOpenEnd();a.elementOpenStart("div");a.attr("class","input-group");a.elementOpenEnd();a.elementOpenStart("label");a.attr("for",g.portletNamespace+"MiniSearchField");a.attr("class","hidden-label");a.elementOpenEnd();m="Search".replace(/{(\d+)}/g,"\u0001$1\u0001");a.text(goog.string.unescapeEntities(m));a.elementClose("label");a.elementOpenStart("input");a.attr("autofocus",
"");a.attr("class","form-control input-lg textinput");a.attr("id",g.portletNamespace+"MiniSearchField");a.attr("name",g.portletNamespace+"MiniSearchField");a.attr("maxlength","100");a.attr("placeholder",h);a.attr("required","required");a.attr("type","text");a.attr("value","");a.elementOpenEnd();a.elementClose("input");a.elementOpenStart("span");a.attr("class","input-group-btn");a.elementOpenEnd();a.elementOpenStart("button");a.attr("class","btn btn-secondary");a.attr("id",g.portletNamespace+"MiniClearButton");
a.attr("type","button");a.attr("title",l);a.elementOpenEnd();a.elementClose("button");a.elementClose("span");a.elementClose("div");a.elementClose("div");a.elementClose("div");a.elementOpenStart("div");a.attr("class","message-wrapper");a.attr("data-title","");a.attr("id",g.portletNamespace+"MiniSearchFieldMessage");a.elementOpenEnd();a.elementClose("div");a.elementClose("div")}goog.require("soy");goog.require("soydata");goog.module("MiniView.incrementaldom");var a=goog.require("incrementaldom");goog.require("soy.idom");
c.render=b;goog.DEBUG&&(b.soyTemplateName="MiniView.render");c.render.params=["id","portletNamespace"];c.render.types={id:"any",portletNamespace:"any"};return c.templates=k=c});d=function(c){function b(){if(!(this instanceof b))throw new TypeError("Cannot call a class as a function");var a=(b.__proto__||Object.getPrototypeOf(b)).apply(this,arguments);if(!this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!a||"object"!==typeof a&&"function"!==typeof a?
this:a}n(b,c);return b}(d.default);f.default.register(d,k);e.MiniView=d;e.templates=k;e.default=k});
Liferay.Loader.define("gsearch-mini-web@2.1.0/MiniView.es",["exports","metal-component/src/Component","metal-soy/src/Soy","./js/DevbridgeAutocomplete.es","./MiniView.soy"],function(m,h,k,l,f){function g(d){return d&&d.__esModule?d:{default:d}}function n(d,c){if("function"!==typeof c&&null!==c)throw new TypeError("Super expression must either be null or a function, not "+typeof c);d.prototype=Object.create(c&&c.prototype,{constructor:{value:d,enumerable:!1,writable:!0,configurable:!0}});c&&(Object.setPrototypeOf?
Object.setPrototypeOf(d,c):d.__proto__=c)}Object.defineProperty(m,"__esModule",{value:!0});h=g(h);k=g(k);g(l);l=g(f);var p=function(){function d(c,b){for(var a=0;a<b.length;a++){var e=b[a];e.enumerable=e.enumerable||!1;e.configurable=!0;"value"in e&&(e.writable=!0);Object.defineProperty(c,e.key,e)}}return function(c,b,a){b&&d(c.prototype,b);a&&d(c,a);return c}}();f=function(d){function c(b){if(!(this instanceof c))throw new TypeError("Cannot call a class as a function");var a;a=(c.__proto__||Object.getPrototypeOf(c)).call(this,
b);if(!this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");a=!a||"object"!==typeof a&&"function"!==typeof a?this:a;a.autoCompleteEnabled=b.autoCompleteEnabled;a.autoCompleteRequestDelay=b.autoCompleteRequestDelay;a.portletNamespace=b.portletNamespace;a.queryMinLength=b.queryMinLength;a.requestTimeout=b.requestTimeout;a.searchPageURL=b.searchPageURL;a.suggestionsURL=b.suggestionsURL;a.autoCompleteEnabled&&a.initAutocomplete();a.setClickEvents();return a}n(c,d);
p(c,[{key:"doSearch",value:function(){var b=$("#"+this.portletNamespace+"MiniSearchField").val();if(b.length<this.queryMinLength)return this.showMessage("Minimum character count is  "+this.queryMinLength),!1;window.location.replace(this.searchPageURL+"?q\x3d"+b)}},{key:"initAutocomplete",value:function(){var b=this;$("#"+this.portletNamespace+"MiniSearchField").devbridgeAutocomplete({dataType:"json",deferRequestBy:b.autoCompleteRequestDelay,minChars:b.queryMinLength,noCache:!1,onSelect:function(a){b.doSearch()},
paramName:"q",serviceUrl:b.suggestionsURL,transformResult:function(a){return a?{suggestions:$.map(a,function(e){return{value:e,data:e}})}:{suggestions:[]}},triggerSelectOnValidInput:!1})}},{key:"setClickEvents",value:function(){var b=this;$("#"+this.portletNamespace+"MiniSearchButton").on("click",function(a){b.doSearch()});$("#"+this.portletNamespace+"MiniClearButton").on("click",function(a){$("[id$\x3dMiniSearchField]").val("")});$("#"+this.portletNamespace+"MiniSearchField").keypress(function(a){13===
(a.keyCode?a.keyCode:a.which)&&b.doSearch()})}},{key:"showMessage",value:function(b){var a=this.portletNamespace+"MiniSearchFieldMessage";$("#"+a).tooltip({title:b}).tooltip("show");setTimeout(function(){$("#"+a).tooltip("hide")},2E3)}}]);return c}(h.default);k.default.register(f,l.default);m.default=f});
