function GetCoveoSourceQueryExpression(n){var t="";return n!=null&&(t=GetCoveoSourcesExpression(n.externalSources,n.indexSourceName),n.externalCollections.length>0&&(t+=" OR "+GetCoveoCollectionsExpression(n.externalCollections,n.indexSourceName))),t}function GetCoveoLanguageAndVersionQueryExpression(n){var t="";return n!=null&&(t="("+n.clientLanguageFieldName+'=="'+n.clientLanguageName+'"',n.externalSources.length!=0&&(t+=" OR "+GetCoveoSourcesExpression(n.externalSources)),n.externalCollections.length!=0&&(t+=" OR "+GetCoveoCollectionsExpression(n.externalCollections)),t+=")",t+=" ("+n.latestVersionFieldName+'=="1"',n.externalSources.length!=0&&(t+=" OR "+GetCoveoSourcesExpression(n.externalSources)),n.externalCollections.length!=0&&(t+=" OR "+GetCoveoCollectionsExpression(n.externalCollections)),t+=")"),t}function GetCoveoSourcesExpression(n,t){var i="@syssource==(",r;for(typeof t!="undefined"&&(i+='"'+t+'",'),r=0;r<n.length;r++)i+='"'+n[r]+'",';return i=i.replace(/,+$/,""),i+")"}function GetCoveoCollectionsExpression(n){var t,i;if(n.length>0){for(t="@syscollection==(",i=0;i<n.length;i++)t+='"'+n[i]+'",';return t=t.replace(/,+$/,""),t+")"}}function formatDateForCoveoIndex(n){return Globalize.format(n,"yyyy/MM/dd")}function getCoveoUrlParameterByName(n){n=n.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");var i=new RegExp("[\\?#&]"+n+"=([^&]*)"),t=i.exec(location.href);return t==null?"":decodeURIComponent(t[1].replace(/\+/g," "))}function setTabHashValue(n){var r=getCoveoUrlParameterByName("tab"),t=window.location.hash,i;t.indexOf("tab="+n)>-1||(i="tab="+r,t.indexOf(i)>-1?window.location.hash=t.replace(i,"tab="+n):window.location.hash+=(t.length>0?"&":"")+"tab="+n)}function makeTabsSelect(){$(".content-block-nav").addClass("make-select").on("click touchstart",function(n){n.preventDefault();$(this).hasClass("select-open")?$(this).removeClass("select-open"):$(this).addClass("select-open")})}function loadEducationalActivityPrice(n){var i="@isAuthenticatedMember.ToString().ToLower()",r="@customerID",t,u;r!=""&&i=="true"&&(t=$(n).find(".educational-details .price").eq(0),t!=null&&(u=t.data("product-code"),$.ajax({type:"POST",contentType:"application/json; charset=utf-8",dataType:"json",data:JSON.stringify({productcode:u,customerid:r,isLoggedIn:i}),url:"/services/EducationalActivityProductInformation.asmx/GetCustomerProductPrice",success:function(n){n&&n.d!=""&&(t.text("Price: "+n.d),t.show())},error:function(){t.hide()}})))}!function(n,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define("underscore",t):(n="undefined"!=typeof globalThis?globalThis:n||self,function(){var r=n._,i=n._=t();i.noConflict=function(){return n._=r,i}}())}(this,function(){function f(n,t){return t=null==t?n.length-1:+t,function(){for(var u,f=Math.max(arguments.length-t,0),r=Array(f),i=0;i<f;i++)r[i]=arguments[i+t];switch(t){case 0:return n.call(this,r);case 1:return n.call(this,arguments[0],r);case 2:return n.call(this,arguments[0],arguments[1],r)}for(u=Array(t+1),i=0;i<t;i++)u[i]=arguments[i];return u[t]=r,n.apply(this,u)}}function l(n){var t=typeof n;return"function"===t||"object"===t&&!!n}function lr(n){return void 0===n}function ar(n){return!0===n||!1===n||"[object Boolean]"===g.call(n)}function i(n){var t="[object "+n+"]";return function(n){return g.call(n)===t}}function c(n,t){return null!=n&&re.call(n,t)}function dr(n){return vr(n)&&ee(n)}function gr(n){return function(){return n}}function nu(n){return function(t){var i=n(t);return"number"==typeof i&&i>=0&&i<=se}}function tu(n){return function(t){if(null!=t)return t[n]}}function ru(n,t){t=function(n){for(var t={},r=n.length,i=0;i<r;++i)t[n[i]]=!0;return{contains:function(n){return t[n]},push:function(i){return t[i]=!0,n.push(i)}}}(t);var u=cr.length,f=n.constructor,e=r(f)&&f.prototype||pt,i="constructor";for(c(n,i)&&!t.contains(i)&&t.push(i);u--;)(i=cr[u])in n&&n[i]!==e[i]&&!t.contains(i)&&t.push(i)}function t(n){var t,i;if(!l(n))return[];if(er)return er(n);t=[];for(i in n)c(n,i)&&t.push(i);return hr&&ru(n,t),t}function uu(n,i){var e=t(i),o=e.length,f,r,u;if(null==n)return!o;for(f=Object(n),r=0;r<o;r++)if(u=e[r],i[u]!==f[u]||!(u in f))return!1;return!0}function n(t){return t instanceof n?t:this instanceof n?void(this._wrapped=t):new n(t)}function fu(n){return new Uint8Array(n.buffer||n,n.byteOffset||0,st(n))}function dt(i,u,f,e){if(i===u)return 0!==i||1/i==1/u;if(null==i||null==u)return!1;if(i!=i)return u!=u;var o=typeof i;return("function"===o||"object"===o||"object"==typeof u)&&function i(u,f,e,o){var h,l,a,v,s,y,p;if(u instanceof n&&(u=u._wrapped),f instanceof n&&(f=f._wrapped),h=g.call(u),h!==g.call(f))return!1;if(kr&&"[object Object]"==h&&ft(u)){if(!ft(f))return!1;h=kt}switch(h){case"[object RegExp]":case"[object String]":return""+u==""+f;case"[object Number]":return+u!=+u?+f!=+f:0==+u?1/+u==1/f:+u==+f;case"[object Date]":case"[object Boolean]":return+u==+f;case"[object Symbol]":return ur.valueOf.call(u)===ur.valueOf.call(f);case"[object ArrayBuffer]":case kt:return i(fu(u),fu(f),e,o)}if(l="[object Array]"===h,!l&&iu(u)){if(st(u)!==st(f))return!1;if(u.buffer===f.buffer&&u.byteOffset===f.byteOffset)return!0;l=!0}if(!l&&("object"!=typeof u||"object"!=typeof f||(a=u.constructor,v=f.constructor,a!==v&&!(r(a)&&a instanceof a&&r(v)&&v instanceof v)&&"constructor"in u&&"constructor"in f)))return!1;for(o=o||[],s=(e=e||[]).length;s--;)if(e[s]===u)return o[s]===f;if(e.push(u),o.push(f),l){if((s=u.length)!==f.length)return!1;for(;s--;)if(!dt(u[s],f[s],e,o))return!1}else{if(p=t(u),s=p.length,t(f).length!==s)return!1;for(;s--;)if(y=p[s],!c(f,y)||!dt(u[y],f[y],e,o))return!1}return e.pop(),o.pop(),!0}(i,u,f,e)}function nt(n){var t,i;if(!l(n))return[];t=[];for(i in n)t.push(i);return hr&&ru(n,t),t}function gt(n){var t=e(n);return function(i){var f,u;if(null==i||(f=nt(i),e(f)))return!1;for(u=0;u<t;u++)if(!r(i[n[u]]))return!1;return n!==su||!r(i[ni])}}function v(n){for(var r=t(n),u=r.length,f=Array(u),i=0;i<u;i++)f[i]=n[r[i]];return f}function hu(n){for(var u={},r=t(n),i=0,f=r.length;i<f;i++)u[n[r[i]]]=r[i];return u}function ii(n){var i=[],t;for(t in n)r(n[t])&&i.push(t);return i.sort()}function ri(n,t){return function(i){var e=arguments.length,r,u;if(t&&(i=Object(i)),e<2||null==i)return i;for(r=1;r<e;r++)for(var o=arguments[r],s=n(o),h=s.length,f=0;f<h;f++)u=s[f],t&&void 0!==i[u]||(i[u]=o[u]);return i}}function au(n){var t,i;return l(n)?or?or(n):(t=function(){},t.prototype=n,i=new t,t.prototype=null,i):{}}function vu(n){return l(n)?a(n)?n.slice():cu({},n):n}function yu(n){return a(n)?n:[n]}function tt(t){return n.toPath(t)}function ui(n,t){for(var r=t.length,i=0;i<r;i++){if(null==n)return;n=n[t[i]]}if(r)return n}function pu(n,t,i){var r=ui(n,tt(t));return lr(r)?i:r}function fi(n){return n}function it(n){return n=ht({},n),function(t){return uu(t,n)}}function ei(n){return n=tt(n),function(t){return ui(t,n)}}function rt(n,t,i){if(void 0===t)return n;switch(null==i?3:i){case 1:return function(i){return n.call(t,i)};case 3:return function(i,r,u){return n.call(t,i,r,u)};case 4:return function(i,r,u,f){return n.call(t,i,r,u,f)}}return function(){return n.apply(t,arguments)}}function wu(n,t,i){return null==n?fi:r(n)?rt(n,t,i):l(n)&&!a(n)?it(n):ei(n)}function oi(n,t){return wu(n,t,1/0)}function o(t,i,r){return n.iteratee!==oi?n.iteratee(t,i):wu(t,i,r)}function bu(){}function si(n,t){return null==t&&(t=n,n=0),n+Math.floor(Math.random()*(t-n+1))}function ku(n){var r=function(t){return n[t]},i="(?:"+t(n).join("|")+")",u=RegExp(i),f=RegExp(i,"g");return function(n){return n=null==n?"":""+n,u.test(n)?n.replace(f,r):n}}function eo(n){return"\\"+uo[n]}function tf(n,t,i,r,u){if(!(r instanceof t))return n.apply(i,u);var f=au(n.prototype),e=n.apply(f,u);return l(e)?e:f}function p(n,t,i,r){var f,h,c;if(r=r||[],t||0===t){if(t<=0)return r.concat(n)}else t=1/0;for(var o=r.length,s=0,l=e(n);s<l;s++)if(f=n[s],u(f)&&(a(f)||ot(f)))if(t>1)p(f,t-1,i,r),o=r.length;else for(h=0,c=f.length;h<c;)r[o++]=f[h++];else i||(r[o++]=f);return r}function li(n){return function(){return!n.apply(this,arguments)}}function uf(n,t){var i;return function(){return--n>0&&(i=t.apply(this,arguments)),n<=1&&(t=null),i}}function ef(n,i,r){i=o(i,r);for(var u,e=t(n),f=0,s=e.length;f<s;f++)if(i(n[u=e[f]],u,n))return u}function of(n){return function(t,i,r){i=o(i,r);for(var f=e(t),u=n>0?0:f-1;u>=0&&u<f;u+=n)if(i(t[u],u,t))return u;return-1}}function sf(n,t,i,r){for(var f,h=(i=o(i,r,1))(t),u=0,s=e(n);u<s;)f=Math.floor((u+s)/2),i(n[f])<h?u=f+1:s=f;return u}function hf(n,t,i){return function(r,u,f){var s=0,o=e(r);if("number"==typeof f)n>0?s=f>=0?f:Math.max(f+o,s):o=f>=0?Math.min(f+1,o):f+o+1;else if(i&&f&&o)return r[f=i(r,u)]===u?f:-1;if(u!=u)return(f=t(d.call(r,s,o),dr))>=0?f+s:-1;for(f=n>0?s:o-1;f>=0&&f<o;f+=n)if(r[f]===u)return f;return-1}}function yi(n,t,i){var r=(u(n)?ct:ef)(n,t,i);if(void 0!==r&&-1!==r)return n[r]}function s(n,i,r){var f,e,o;if(i=rt(i,r),u(n))for(f=0,e=n.length;f<e;f++)i(n[f],f,n);else for(o=t(n),f=0,e=o.length;f<e;f++)i(n[o[f]],o[f],n);return n}function w(n,i,r){var s;i=o(i,r);for(var e=!u(n)&&t(n),h=(e||n).length,c=Array(h),f=0;f<h;f++)s=e?e[f]:f,c[f]=i(n[s],s,n);return c}function lf(n){var i=function(i,r,f,e){var s=!u(i)&&t(i),c=(s||i).length,o=n>0?0:c-1,h;for(e||(f=i[s?s[o]:o],o+=n);o>=0&&o<c;o+=n)h=s?s[o]:o,f=r(f,i[h],h,i);return f};return function(n,t,r,u){var f=arguments.length>=3;return i(n,rt(t,u,4),r,f)}}function k(n,t,i){var r=[];return t=o(t,i),s(n,function(n,i,u){t(n,i,u)&&r.push(n)}),r}function af(n,i,r){var s;i=o(i,r);for(var e=!u(n)&&t(n),h=(e||n).length,f=0;f<h;f++)if(s=e?e[f]:f,!i(n[s],s,n))return!1;return!0}function vf(n,i,r){var s;i=o(i,r);for(var e=!u(n)&&t(n),h=(e||n).length,f=0;f<h;f++)if(s=e?e[f]:f,i(n[s],s,n))return!0;return!1}function h(n,t,i,r){return u(n)||(n=v(n)),("number"!=typeof i||r)&&(i=0),vi(n,t,i)>=0}function wi(n,t){return w(n,ei(t))}function pf(n,t,i){var e,h,r=-1/0,c=-1/0,f,l;if(null==t||"number"==typeof t&&"object"!=typeof n[0]&&null!=n)for(f=0,l=(n=u(n)?n:v(n)).length;f<l;f++)null!=(e=n[f])&&e>r&&(r=e);else t=o(t,i),s(n,function(n,i,u){((h=t(n,i,u))>c||h===-1/0&&r===-1/0)&&(r=n,c=h)});return r}function wf(n,t,i){var r,o,h,f,s,c;if(null==t||i)return u(n)||(n=v(n)),n[si(n.length-1)];for(r=u(n)?vu(n):v(n),o=e(r),t=Math.max(Math.min(t,o),0),h=o-1,f=0;f<t;f++)s=si(f,h),c=r[f],r[f]=r[s],r[s]=c;return r.slice(0,t)}function at(n,t){return function(i,r,u){var f=t?[[],[]]:{};return r=o(r,u),s(i,function(t,u){var e=r(t,u,i);n(f,t,e)}),f}}function yo(n,t,i){return t in i}function kf(n,t,i){return d.call(n,0,Math.max(0,n.length-(null==t||i?1:t)))}function ki(n,t,i){return null==n||n.length<1?null==t||i?void 0:[]:null==t||i?n[0]:kf(n,n.length-t)}function vt(n,t,i){return d.call(n,null==t||i?1:t)}function gi(n,t,i,r){var u,c;ar(t)||(r=i,i=t,t=!1);null!=i&&(i=o(i,r));for(var f=[],l=[],s=0,a=e(n);s<a;s++)u=n[s],c=i?i(u,s,n):u,t&&!i?(s&&l===c||f.push(u),l=c):i?h(l,c)||(l.push(c),f.push(u)):h(f,u)||f.push(u);return f}function nr(n){for(var i=n&&pf(n,e).length||0,r=Array(i),t=0;t<i;t++)r[t]=wi(n,t);return r}function tr(t,i){return t._chain?n(i).chain():i}function te(t){return s(ii(t),function(i){var r=n[i]=t[i];n.prototype[i]=function(){var t=[this._wrapped];return ie.apply(t,arguments),tr(this,r.apply(n,t))}}),n}var ir="1.13.1",rr="object"==typeof self&&self.self===self&&self||"object"==typeof global&&global.global===global&&global||Function("return this")()||{},ut=Array.prototype,pt=Object.prototype,ur="undefined"!=typeof Symbol?Symbol.prototype:null,ie=ut.push,d=ut.slice,g=pt.toString,re=pt.hasOwnProperty,fr="undefined"!=typeof ArrayBuffer,ue="undefined"!=typeof DataView,fe=Array.isArray,er=Object.keys,or=Object.create,sr=fr&&ArrayBuffer.isView,ee=isNaN,oe=isFinite,hr=!{toString:null}.propertyIsEnumerable("toString"),cr=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],se=Math.pow(2,53)-1,wt=i("String"),vr=i("Number"),he=i("Date"),ce=i("RegExp"),le=i("Error"),yr=i("Symbol"),pr=i("ArrayBuffer"),wr=i("Function"),ae=rr.document&&rr.document.childNodes,et,ot,kt,b,gu,nf,y,ci,u,ff,ct,ai,vi,cf,lt,pi,yf,bi,bf,di,df,gf,ne,yt;"function"!=typeof/./&&"object"!=typeof Int8Array&&"function"!=typeof ae&&(wr=function(n){return"function"==typeof n||!1});var r=wr,br=i("Object"),kr=ue&&br(new DataView(new ArrayBuffer(8))),bt="undefined"!=typeof Map&&br(new Map),ve=i("DataView"),ft=kr?function(n){return null!=n&&r(n.getInt8)&&pr(n.buffer)}:ve,a=fe||i("Array");et=i("Arguments");!function(){et(arguments)||(et=function(n){return c(n,"callee")})}();ot=et;var st=tu("byteLength"),ye=nu(st),pe=/\[object ((I|Ui)nt(8|16|32)|Float(32|64)|Uint8Clamped|Big(I|Ui)nt64)Array\]/,iu=fr?function(n){return sr?sr(n)&&!ft(n):ye(n)&&pe.test(g.call(n))}:gr(!1),e=tu("length");n.VERSION=ir;n.prototype.value=function(){return this._wrapped};n.prototype.valueOf=n.prototype.toJSON=n.prototype.value;n.prototype.toString=function(){return String(this._wrapped)};kt="[object DataView]";var ni="forEach",eu="has",ti=["clear","delete"],ou=["get",eu,"set"],we=ti.concat(ni,ou),su=ti.concat(ou),be=["add"].concat(ti,ni,eu),ke=bt?gt(we):i("Map"),de=bt?gt(su):i("WeakMap"),ge=bt?gt(be):i("Set"),no=i("WeakSet");var cu=ri(nt),ht=ri(t),lu=ri(nt,!0);n.toPath=yu;n.iteratee=oi;b=Date.now||function(){return(new Date).getTime()};var du={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},to=ku(du),io=ku(hu(du)),ro=n.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g},hi=/(.)^/,uo={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},fo=/\\|'|\r|\n|\u2028|\u2029/g;gu=/^\s*(\w|\$)+\s*$/;nf=0;y=f(function(n,t){var r=y.placeholder,i=function(){for(var f=0,o=t.length,e=Array(o),u=0;u<o;u++)e[u]=t[u]===r?arguments[f++]:t[u];for(;f<arguments.length;)e.push(arguments[f++]);return tf(n,i,this,this,e)};return i});y.placeholder=n;ci=f(function(n,t,i){if(!r(n))throw new TypeError("Bind must be called on a function");var u=f(function(r){return tf(n,u,t,this,i.concat(r))});return u});u=nu(e);var oo=f(function(n,t){var i=(t=p(t,!1,!1)).length,r;if(i<1)throw new Error("bindAll must be passed function names");for(;i--;)r=t[i],n[r]=ci(n[r],n);return n}),rf=f(function(n,t,i){return setTimeout(function(){return n.apply(null,i)},t)}),so=y(rf,n,1);ff=y(uf,2);ct=of(1);ai=of(-1);vi=hf(1,ct,sf);cf=hf(-1,ai);lt=lf(1);pi=lf(-1);yf=f(function(n,t,i){var u,f;return r(t)?f=t:(t=tt(t),u=t.slice(0,-1),t=t[t.length-1]),w(n,function(n){var r=f;if(!r){if(u&&u.length&&(n=ui(n,u)),null==n)return;r=n[t]}return null==r?r:r.apply(n,i)})});var ho=at(function(n,t,i){c(n,i)?n[i].push(t):n[i]=[t]}),co=at(function(n,t,i){n[i]=t}),lo=at(function(n,t,i){c(n,i)?n[i]++:n[i]=1}),ao=at(function(n,t,i){n[i?0:1].push(t)},!0),vo=/[^\ud800-\udfff]|[\ud800-\udbff][\udc00-\udfff]|[\ud800-\udfff]/g;return bi=f(function(n,t){var e={},i=t[0],u,s,f,o;if(null==n)return e;for(r(i)?(t.length>1&&(i=rt(i,t[1])),t=nt(n)):(i=yo,t=p(t,!1,!1),n=Object(n)),u=0,s=t.length;u<s;u++)f=t[u],o=n[f],i(o,f,n)&&(e[f]=o);return e}),bf=f(function(n,t){var u,i=t[0];return r(i)?(i=li(i),t.length>1&&(u=t[1])):(t=w(p(t,!1,!1),String),i=function(n,i){return!h(t,i)}),bi(n,i,u)}),di=f(function(n,t){return t=p(t,!0,!0),k(n,function(n){return!h(t,n)})}),df=f(function(n,t){return di(n,t)}),gf=f(function(n){return gi(p(n,!0,!0))}),ne=f(nr),s(["pop","push","reverse","shift","sort","splice","unshift"],function(t){var i=ut[t];n.prototype[t]=function(){var n=this._wrapped;return null!=n&&(i.apply(n,arguments),"shift"!==t&&"splice"!==t||0!==n.length||delete n[0]),tr(this,n)}}),s(["concat","join","slice"],function(t){var i=ut[t];n.prototype[t]=function(){var n=this._wrapped;return null!=n&&(n=i.apply(n,arguments)),tr(this,n)}}),yt=te({__proto__:null,VERSION:ir,restArguments:f,isObject:l,isNull:function(n){return null===n},isUndefined:lr,isBoolean:ar,isElement:function(n){return!(!n||1!==n.nodeType)},isString:wt,isNumber:vr,isDate:he,isRegExp:ce,isError:le,isSymbol:yr,isArrayBuffer:pr,isDataView:ft,isArray:a,isFunction:r,isArguments:ot,isFinite:function(n){return!yr(n)&&oe(n)&&!isNaN(parseFloat(n))},isNaN:dr,isTypedArray:iu,isEmpty:function(n){if(null==n)return!0;var i=e(n);return"number"==typeof i&&(a(n)||wt(n)||ot(n))?0===i:0===e(t(n))},isMatch:uu,isEqual:function(n,t){return dt(n,t)},isMap:ke,isWeakMap:de,isSet:ge,isWeakSet:no,keys:t,allKeys:nt,values:v,pairs:function(n){for(var r=t(n),u=r.length,f=Array(u),i=0;i<u;i++)f[i]=[r[i],n[r[i]]];return f},invert:hu,functions:ii,methods:ii,extend:cu,extendOwn:ht,assign:ht,defaults:lu,create:function(n,t){var i=au(n);return t&&ht(i,t),i},clone:vu,tap:function(n,t){return t(n),n},get:pu,has:function(n,t){for(var u,r=(t=tt(t)).length,i=0;i<r;i++){if(u=t[i],!c(n,u))return!1;n=n[u]}return!!r},mapObject:function(n,i,r){var u;i=o(i,r);for(var e=t(n),h=e.length,s={},f=0;f<h;f++)u=e[f],s[u]=i(n[u],u,n);return s},identity:fi,constant:gr,noop:bu,toPath:yu,property:ei,propertyOf:function(n){return null==n?bu:function(t){return pu(n,t)}},matcher:it,matches:it,times:function(n,t,i){var u=Array(Math.max(0,n)),r;for(t=rt(t,i,1),r=0;r<n;r++)u[r]=t(r);return u},random:si,now:b,escape:to,unescape:io,templateSettings:ro,template:function(t,i,r){var s,f,e;!i&&r&&(i=r);i=lu({},i,n.templateSettings);var h=RegExp([(i.escape||hi).source,(i.interpolate||hi).source,(i.evaluate||hi).source].join("|")+"|$","g"),o=0,u="__p+='";if(t.replace(h,function(n,i,r,f,e){return u+=t.slice(o,e).replace(fo,eo),o=e+n.length,i?u+="'+\n((__t=("+i+"))==null?'':_.escape(__t))+\n'":r?u+="'+\n((__t=("+r+"))==null?'':__t)+\n'":f&&(u+="';\n"+f+"\n__p+='"),n}),u+="';\n",f=i.variable,f){if(!gu.test(f))throw new Error("variable is not a bare identifier: "+f);}else u="with(obj||{}){\n"+u+"}\n",f="obj";u="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+u+"return __p;\n";try{s=new Function(f,"_",u)}catch(t){throw t.source=u,t;}return e=function(t){return s.call(this,t,n)},e.source="function("+f+"){\n"+u+"}",e},result:function(n,t,i){var e=(t=tt(t)).length,f,u;if(!e)return r(i)?i.call(n):i;for(f=0;f<e;f++)u=null==n?void 0:n[t[f]],void 0===u&&(u=i,f=e),n=r(u)?u.call(n):u;return n},uniqueId:function(n){var t=++nf+"";return n?n+t:t},chain:function(t){var i=n(t);return i._chain=!0,i},iteratee:oi,partial:y,bind:ci,bindAll:oo,memoize:function(n,t){var i=function(r){var u=i.cache,f=""+(t?t.apply(this,arguments):r);return c(u,f)||(u[f]=n.apply(this,arguments)),u[f]};return i.cache={},i},delay:rf,defer:so,throttle:function(n,t,i){var r,u,f,o,e=0,h,s;return i||(i={}),h=function(){e=!1===i.leading?0:b();r=null;o=n.apply(u,f);r||(u=f=null)},s=function(){var c=b(),s;return e||!1!==i.leading||(e=c),s=t-(c-e),u=this,f=arguments,s<=0||s>t?(r&&(clearTimeout(r),r=null),e=c,o=n.apply(u,f),r||(u=f=null)):r||!1===i.trailing||(r=setTimeout(h,s)),o},s.cancel=function(){clearTimeout(r);e=0;r=u=f=null},s},debounce:function(n,t,i){var r,s,u,o,e,h=function(){var f=b()-s;t>f?r=setTimeout(h,t-f):(r=null,i||(o=n.apply(e,u)),r||(u=e=null))},c=f(function(f){return e=this,u=f,s=b(),r||(r=setTimeout(h,t),i&&(o=n.apply(e,u))),o});return c.cancel=function(){clearTimeout(r);r=u=e=null},c},wrap:function(n,t){return y(t,n)},negate:li,compose:function(){var n=arguments,t=n.length-1;return function(){for(var r=t,i=n[t].apply(this,arguments);r--;)i=n[r].call(this,i);return i}},after:function(n,t){return function(){if(--n<1)return t.apply(this,arguments)}},before:uf,once:ff,findKey:ef,findIndex:ct,findLastIndex:ai,sortedIndex:sf,indexOf:vi,lastIndexOf:cf,find:yi,detect:yi,findWhere:function(n,t){return yi(n,it(t))},each:s,forEach:s,map:w,collect:w,reduce:lt,foldl:lt,inject:lt,reduceRight:pi,foldr:pi,filter:k,select:k,reject:function(n,t,i){return k(n,li(o(t)),i)},every:af,all:af,some:vf,any:vf,contains:h,includes:h,include:h,invoke:yf,pluck:wi,where:function(n,t){return k(n,it(t))},max:pf,min:function(n,t,i){var e,h,r=1/0,c=1/0,f,l;if(null==t||"number"==typeof t&&"object"!=typeof n[0]&&null!=n)for(f=0,l=(n=u(n)?n:v(n)).length;f<l;f++)null!=(e=n[f])&&e<r&&(r=e);else t=o(t,i),s(n,function(n,i,u){((h=t(n,i,u))<c||h===1/0&&r===1/0)&&(r=n,c=h)});return r},shuffle:function(n){return wf(n,1/0)},sample:wf,sortBy:function(n,t,i){var r=0;return t=o(t,i),wi(w(n,function(n,i,u){return{value:n,index:r++,criteria:t(n,i,u)}}).sort(function(n,t){var i=n.criteria,r=t.criteria;if(i!==r){if(i>r||void 0===i)return 1;if(i<r||void 0===r)return-1}return n.index-t.index}),"value")},groupBy:ho,indexBy:co,countBy:lo,partition:ao,toArray:function(n){return n?a(n)?d.call(n):wt(n)?n.match(vo):u(n)?w(n,fi):v(n):[]},size:function(n){return null==n?0:u(n)?n.length:t(n).length},pick:bi,omit:bf,first:ki,head:ki,take:ki,initial:kf,last:function(n,t,i){return null==n||n.length<1?null==t||i?void 0:[]:null==t||i?n[n.length-1]:vt(n,Math.max(0,n.length-t))},rest:vt,tail:vt,drop:vt,compact:function(n){return k(n,Boolean)},flatten:function(n,t){return p(n,t,!1)},without:df,uniq:gi,unique:gi,union:gf,intersection:function(n){for(var i,t,r=[],f=arguments.length,u=0,o=e(n);u<o;u++)if(i=n[u],!h(r,i)){for(t=1;t<f&&h(arguments[t],i);t++);t===f&&r.push(i)}return r},difference:di,unzip:nr,transpose:nr,zip:ne,object:function(n,t){for(var r={},i=0,u=e(n);i<u;i++)t?r[n[i]]=t[i]:r[n[i][0]]=n[i][1];return r},range:function(n,t,i){null==t&&(t=n||0,n=0);i||(i=t<n?-1:1);for(var u=Math.max(Math.ceil((t-n)/i),0),f=Array(u),r=0;r<u;r++,n+=i)f[r]=n;return f},chunk:function(n,t){if(null==t||t<1)return[];for(var r=[],i=0,u=n.length;i<u;)r.push(d.call(n,i,i+=t));return r},mixin:te,"default":n}),yt._=yt,yt});!function(n,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.Coveo__temporary=t():n.Coveo__temporary=t()}("undefined"!=typeof self?self:this,function(){return function(n){function t(i){if(r[i])return r[i].exports;var u=r[i]={i:i,l:!1,exports:{}};return n[i].call(u.exports,u,u.exports,t),u.l=!0,u.exports}var u=window.webpackJsonpCoveo__temporary,r,i;return window.webpackJsonpCoveo__temporary=function(t,r,f){for(var e,o,s=0,h=[];s<t.length;s++)o=t[s],i[o]&&h.push(i[o][0]),i[o]=0;for(e in r)Object.prototype.hasOwnProperty.call(r,e)&&(n[e]=r[e]);for(u&&u(t,r,f);h.length;)h.shift()()},r={},i={88:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:0,16:0,17:0,18:0,19:0,20:0,21:0,22:0,23:0,24:0,25:0,26:0,27:0,28:0,29:0,30:0,31:0,32:0,33:0,34:0,35:0,36:0,37:0,38:0,39:0,40:0,41:0,42:0,43:0,44:0,45:0,46:0,47:0,48:0,49:0,50:0,51:0,52:0,53:0,54:0,55:0,56:0,57:0,58:0,59:0,60:0,61:0,62:0,63:0,64:0,65:0,66:0,67:0,68:0,69:0,70:0,71:0,72:0,73:0,74:0,75:0,76:0,77:0,78:0,79:0,80:0,81:0,82:0,83:0,84:0,85:0,86:0,87:0},t.e=function(n){function e(){r.onerror=r.onload=null;clearTimeout(s);var t=i[n];0!==t&&(t&&t[1](new Error("Loading chunk "+n+" failed.")),i[n]=void 0)}var u=i[n],f,o,r,s;return 0===u?new Promise(function(n){n()}):u?u[2]:(f=new Promise(function(t,r){u=i[n]=[t,r]}),u[2]=f,o=document.getElementsByTagName("head")[0],r=document.createElement("script"),r.type="text/javascript",r.charset="utf-8",r.async=!0,r.timeout=12e4,t.nc&&r.setAttribute("nonce",t.nc),r.src=t.p+""+({0:"RelevanceInspector",3:"FacetsMobileMode"}[n]||n)+".min__7d400a8f34d33214ce02.js",s=setTimeout(e,12e4),r.onerror=r.onload=e,o.appendChild(r),f)},t.m=n,t.c=r,t.d=function(n,i,r){t.o(n,i)||Object.defineProperty(n,i,{configurable:!1,enumerable:!0,get:r})},t.n=function(n){var i=n&&n.__esModule?function(){return n.default}:function(){return n};return t.d(i,"a",i),i},t.o=function(n,t){return Object.prototype.hasOwnProperty.call(n,t)},t.p="js/",t.oe=function(n){throw console.error(n),n;},t(t.s=808)}([function(n,t,i){"use strict";function h(n,t){return t=null==t?n.length-1:+t,function(){for(var u,f=Math.max(arguments.length-t,0),r=Array(f),i=0;i<f;i++)r[i]=arguments[i+t];switch(t){case 0:return n.call(this,r);case 1:return n.call(this,arguments[0],r);case 2:return n.call(this,arguments[0],arguments[1],r)}for(u=Array(t+1),i=0;i<t;i++)u[i]=arguments[i];return u[t]=r,n.apply(this,u)}}function w(n){var t=typeof n;return"function"===t||"object"===t&&!!n}function su(n){return null===n}function ci(n){return void 0===n}function li(n){return!0===n||!1===n||"[object Boolean]"===u.t.call(n)}function hu(n){return!(!n||1!==n.nodeType)}function o(n){var t="[object "+n+"]";return function(n){return u.t.call(n)===t}}function os(n){return null!=n&&s(n.getInt8)&&vr(n.buffer)}function b(n,t){return null!=n&&u.i.call(n,t)}function cu(n){return!ar(n)&&Object(u.f)(n)&&!isNaN(parseFloat(n))}function ai(n){return lr(n)&&Object(u.g)(n)}function vi(n){return function(){return n}}function lu(n){return function(t){var i=n(t);return"number"==typeof i&&i>=0&&i<=u.b}}function au(n){return function(t){if(null!=t)return t[n]}}function ss(n){return u.l?Object(u.l)(n)&&!yt(n):ps(n)&&ws.test(u.t.call(n))}function hs(n){for(var t={},r=n.length,i=0;i<r;++i)t[n[i]]=!0;return{contains:function(n){return t[n]},push:function(i){return t[i]=!0,n.push(i)}}}function vu(n,t){t=hs(t);var r=u.n.length,f=n.constructor,e=s(f)&&f.prototype||u.c,i="constructor";for(b(n,i)&&!t.contains(i)&&t.push(i);r--;)(i=u.n[r])in n&&n[i]!==e[i]&&!t.contains(i)&&t.push(i)}function e(n){var t,i;if(!w(n))return[];if(u.m)return Object(u.m)(n);t=[];for(i in n)b(n,i)&&t.push(i);return u.h&&vu(n,t),t}function yu(n){if(null==n)return!0;var t=l(n);return"number"==typeof t&&(g(n)||ui(n)||fi(n))?0===t:0===l(e(n))}function yi(n,t){var f=e(t),o=f.length,u,i,r;if(null==n)return!o;for(u=Object(n),i=0;i<o;i++)if(r=f[i],t[r]!==u[r]||!(r in u))return!1;return!0}function f(n){return n instanceof f?n:this instanceof f?void(this._wrapped=n):new f(n)}function pu(n){return new Uint8Array(n.buffer||n,n.byteOffset||0,ei(n))}function pi(n,t,i,r){if(n===t)return 0!==n||1/n==1/t;if(null==n||null==t)return!1;if(n!==n)return t!==t;var u=typeof n;return("function"===u||"object"===u||"object"==typeof t)&&wu(n,t,i,r)}function wu(n,t,i,r){var h,c,l,a,o,v,y;if(n instanceof f&&(n=n._wrapped),t instanceof f&&(t=t._wrapped),h=u.t.call(n),h!==u.t.call(t))return!1;if(no&&"[object Object]"==h&&yt(n)){if(!yt(t))return!1;h=to}switch(h){case"[object RegExp]":case"[object String]":return""+n==""+t;case"[object Number]":return+n!=+n?+t!=+t:0==+n?1/+n==1/t:+n==+t;case"[object Date]":case"[object Boolean]":return+n==+t;case"[object Symbol]":return u.d.valueOf.call(n)===u.d.valueOf.call(t);case"[object ArrayBuffer]":case to:return wu(pu(n),pu(t),i,r)}if(c="[object Array]"===h,!c&&wr(n)){if(ei(n)!==ei(t))return!1;if(n.buffer===t.buffer&&n.byteOffset===t.byteOffset)return!0;c=!0}if(!c&&("object"!=typeof n||"object"!=typeof t||(l=n.constructor,a=t.constructor,l!==a&&!(s(l)&&l instanceof l&&s(a)&&a instanceof a)&&"constructor"in n&&"constructor"in t)))return!1;for(i=i||[],r=r||[],o=i.length;o--;)if(i[o]===n)return r[o]===t;if(i.push(n),r.push(t),c){if((o=n.length)!==t.length)return!1;for(;o--;)if(!pi(n[o],t[o],i,r))return!1}else{if(y=e(n),o=y.length,e(t).length!==o)return!1;for(;o--;)if(v=y[o],!b(t,v)||!pi(n[v],t[v],i,r))return!1}return i.pop(),r.pop(),!0}function bu(n,t){return pi(n,t)}function rt(n){var t,i;if(!w(n))return[];t=[];for(i in n)t.push(i);return u.h&&vu(n,t),t}function wi(n){var t=l(n);return function(i){var u,r;if(null==i||(u=rt(i),l(u)))return!1;for(r=0;r<t;r++)if(!s(i[n[r]]))return!1;return n!==ro||!s(i[br])}}function k(n){for(var i=e(n),r=i.length,u=Array(r),t=0;t<r;t++)u[t]=n[i[t]];return u}function ku(n){for(var i=e(n),r=i.length,u=Array(r),t=0;t<r;t++)u[t]=[i[t],n[i[t]]];return u}function bi(n){for(var r={},i=e(n),t=0,u=i.length;t<u;t++)r[n[i[t]]]=i[t];return r}function st(n){var i=[],t;for(t in n)s(n[t])&&i.push(t);return i.sort()}function ki(n,t){return function(i){var e=arguments.length,r,u;if(t&&(i=Object(i)),e<2||null==i)return i;for(r=1;r<e;r++)for(var o=arguments[r],s=n(o),h=s.length,f=0;f<h;f++)u=s[f],t&&void 0!==i[u]||(i[u]=o[u]);return i}}function cs(){return function(){}}function du(n){var t,i;return w(n)?u.j?Object(u.j)(n):(t=cs(),t.prototype=n,i=new t,t.prototype=null,i):{}}function gu(n,t){var i=du(n);return t&&ft(i,t),i}function di(n){return w(n)?g(n)?n.slice():dr({},n):n}function nf(n,t){return t(n),n}function gi(n){return g(n)?n:[n]}function ht(n){return f.toPath(n)}function nr(n,t){for(var r=t.length,i=0;i<r;i++){if(null==n)return;n=n[t[i]]}if(r)return n}function tr(n,t,i){var r=nr(n,ht(t));return ci(r)?i:r}function tf(n,t){var r,i,u;for(t=ht(t),r=t.length,i=0;i<r;i++){if(u=t[i],!b(n,u))return!1;n=n[u]}return!!r}function wt(n){return n}function nt(n){return n=ft({},n),function(t){return yi(t,n)}}function bt(n){return n=ht(n),function(t){return nr(t,n)}}function ct(n,t,i){if(void 0===t)return n;switch(null==i?3:i){case 1:return function(i){return n.call(t,i)};case 3:return function(i,r,u){return n.call(t,i,r,u)};case 4:return function(i,r,u,f){return n.call(t,i,r,u,f)}}return function(){return n.apply(t,arguments)}}function rf(n,t,i){return null==n?wt:s(n)?ct(n,t,i):w(n)&&!g(n)?nt(n):bt(n)}function kt(n,t){return rf(n,t,1/0)}function c(n,t,i){return f.iteratee!==kt?f.iteratee(n,t):rf(n,t,i)}function uf(n,t,i){var r;t=c(t,i);for(var f=e(n),s=f.length,o={},u=0;u<s;u++)r=f[u],o[r]=t(n[r],r,n);return o}function ir(){}function ff(n){return null==n?ir:function(t){return tr(n,t)}}function ef(n,t,i){var u=Array(Math.max(0,n)),r;for(t=ct(t,i,1),r=0;r<n;r++)u[r]=t(r);return u}function dt(n,t){return null==t&&(t=n,n=0),n+Math.floor(Math.random()*(t-n+1))}function of(n){var i=function(t){return n[t]},t="(?:"+e(n).join("|")+")",r=RegExp(t),u=RegExp(t,"g");return function(n){return n=null==n?"":""+n,r.test(n)?n.replace(u,i):n}}function ls(n){return"\\"+gs[n]}function sf(n,t,i){var u,s,e;!t&&i&&(t=i);t=gr({},t,f.templateSettings);var h=RegExp([(t.escape||nu).source,(t.interpolate||nu).source,(t.evaluate||nu).source].join("|")+"|$","g"),o=0,r="__p+='";if(n.replace(h,function(t,i,u,f,e){return r+=n.slice(o,e).replace(nh,ls),o=e+t.length,i?r+="'+\n((__t=("+i+"))==null?'':_.escape(__t))+\n'":u?r+="'+\n((__t=("+u+"))==null?'':__t)+\n'":f&&(r+="';\n"+f+"\n__p+='"),t}),r+="';\n",u=t.variable,u){if(!th.test(u))throw new Error("variable is not a bare identifier: "+u);}else r="with(obj||{}){\n"+r+"}\n",u="obj";r="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+r+"return __p;\n";try{s=new Function(u,"_",r)}catch(n){throw n.source=r,n;}return e=function(n){return s.call(this,n,f)},e.source="function("+u+"){\n"+r+"}",e}function hf(n,t,i){var f,u,r;if(t=ht(t),f=t.length,!f)return s(i)?i.call(n):i;for(u=0;u<f;u++)r=null==n?void 0:n[t[u]],void 0===r&&(r=i,u=f),n=s(r)?r.call(n):r;return n}function cf(n){var t=++ih+"";return n?n+t:t}function lf(n){var t=f(n);return t._chain=!0,t}function af(n,t,i,r,u){if(!(r instanceof t))return n.apply(i,u);var f=du(n.prototype),e=n.apply(f,u);return w(e)?e:f}function tt(n,t,i,r){var u,o,s;if(r=r||[],t||0===t){if(t<=0)return r.concat(n)}else t=1/0;for(var f=r.length,e=0,h=l(n);e<h;e++)if(u=n[e],a(u)&&(g(u)||fi(u)))if(t>1)tt(u,t-1,i,r),f=r.length;else for(o=0,s=u.length;o<s;)r[f++]=u[o++];else i||(r[f++]=u);return r}function vf(n,t){var i=function(r){var u=i.cache,f=""+(t?t.apply(this,arguments):r);return b(u,f)||(u[f]=n.apply(this,arguments)),u[f]};return i.cache={},i}function yf(n,t,i){var r,u,f,o,e=0,h,s;return i||(i={}),h=function(){e=!1===i.leading?0:et();r=null;o=n.apply(u,f);r||(u=f=null)},s=function(){var c=et(),s;return e||!1!==i.leading||(e=c),s=t-(c-e),u=this,f=arguments,s<=0||s>t?(r&&(clearTimeout(r),r=null),e=c,o=n.apply(u,f),r||(u=f=null)):r||!1===i.trailing||(r=setTimeout(h,s)),o},s.cancel=function(){clearTimeout(r);e=0;r=u=f=null},s}function pf(n,t,i){var r,o,u,e,f,s=function(){var h=et()-o;t>h?r=setTimeout(s,t-h):(r=null,i||(e=n.apply(f,u)),r||(u=f=null))},c=h(function(h){return f=this,u=h,o=et(),r||(r=setTimeout(s,t),i&&(e=n.apply(f,u))),e});return c.cancel=function(){clearTimeout(r);r=u=f=null},c}function wf(n,t){return pt(t,n)}function gt(n){return function(){return!n.apply(this,arguments)}}function bf(){var n=arguments,t=n.length-1;return function(){for(var r=t,i=n[t].apply(this,arguments);r--;)i=n[r].call(this,i);return i}}function kf(n,t){return function(){if(--n<1)return t.apply(this,arguments)}}function rr(n,t){var i;return function(){return--n>0&&(i=t.apply(this,arguments)),n<=1&&(t=null),i}}function ur(n,t,i){t=c(t,i);for(var r,f=e(n),u=0,o=f.length;u<o;u++)if(r=f[u],t(n[r],r,n))return r}function df(n){return function(t,i,r){i=c(i,r);for(var f=l(t),u=n>0?0:f-1;u>=0&&u<f;u+=n)if(i(t[u],u,t))return u;return-1}}function fr(n,t,i,r){var f;i=c(i,r,1);for(var o=i(t),u=0,e=l(n);u<e;)f=Math.floor((u+e)/2),i(n[f])<o?u=f+1:e=f;return u}function gf(n,t,i){return function(r,f,e){var s=0,o=l(r);if("number"==typeof e)n>0?s=e>=0?e:Math.max(e+o,s):o=e>=0?Math.min(e+1,o):e+o+1;else if(i&&e&&o)return e=i(r,f),r[e]===f?e:-1;if(f!==f)return e=t(u.q.call(r,s,o),ai),e>=0?e+s:-1;for(e=n>0?s:o-1;e>=0&&e<o;e+=n)if(r[e]===f)return e;return-1}}function lt(n,t,i){var u=a(n)?oi:ur,r=u(n,t,i);if(void 0!==r&&-1!==r)return n[r]}function ne(n,t){return lt(n,nt(t))}function y(n,t,i){var r,u,f;if(t=ct(t,i),a(n))for(r=0,u=n.length;r<u;r++)t(n[r],r,n);else for(f=e(n),r=0,u=f.length;r<u;r++)t(n[f[r]],f[r],n);return n}function p(n,t,i){var f;t=c(t,i);for(var u=!a(n)&&e(n),o=(u||n).length,s=Array(o),r=0;r<o;r++)f=u?u[r]:r,s[r]=t(n[f],f,n);return s}function te(n){var t=function(t,i,r,u){var o=!a(t)&&e(t),h=(o||t).length,f=n>0?0:h-1,s;for(u||(r=t[o?o[f]:f],f+=n);f>=0&&f<h;f+=n)s=o?o[f]:f,r=i(r,t[s],s,t);return r};return function(n,i,r,u){var f=arguments.length>=3;return t(n,ct(i,u,4),r,f)}}function d(n,t,i){var r=[];return t=c(t,i),y(n,function(n,i,u){t(n,i,u)&&r.push(n)}),r}function ie(n,t,i){return d(n,gt(c(t)),i)}function ni(n,t,i){var f;t=c(t,i);for(var u=!a(n)&&e(n),o=(u||n).length,r=0;r<o;r++)if(f=u?u[r]:r,!t(n[f],f,n))return!1;return!0}function ti(n,t,i){var f;t=c(t,i);for(var u=!a(n)&&e(n),o=(u||n).length,r=0;r<o;r++)if(f=u?u[r]:r,t(n[f],f,n))return!0;return!1}function v(n,t,i,r){return a(n)||(n=k(n)),("number"!=typeof i||r)&&(i=0),fu(n,t,i)>=0}function ii(n,t){return p(n,bt(t))}function re(n,t){return d(n,nt(t))}function er(n,t,i){var f,e,r=-1/0,o=-1/0,u,s;if(null==t||"number"==typeof t&&"object"!=typeof n[0]&&null!=n)for(n=a(n)?n:k(n),u=0,s=n.length;u<s;u++)null!=(f=n[u])&&f>r&&(r=f);else t=c(t,i),y(n,function(n,i,u){((e=t(n,i,u))>o||e===-1/0&&r===-1/0)&&(r=n,o=e)});return r}function ue(n,t,i){var f,e,r=1/0,o=1/0,u,s;if(null==t||"number"==typeof t&&"object"!=typeof n[0]&&null!=n)for(n=a(n)?n:k(n),u=0,s=n.length;u<s;u++)null!=(f=n[u])&&f<r&&(r=f);else t=c(t,i),y(n,function(n,i,u){((e=t(n,i,u))<o||e===1/0&&r===1/0)&&(r=n,o=e)});return r}function or(n,t,i){var r,f,o,u,e,s;if(null==t||i)return a(n)||(n=k(n)),n[dt(n.length-1)];for(r=a(n)?di(n):k(n),f=l(r),t=Math.max(Math.min(t,f),0),o=f-1,u=0;u<t;u++)e=dt(u,o),s=r[u],r[u]=r[e],r[e]=s;return r.slice(0,t)}function fe(n){return or(n,1/0)}function ee(n,t,i){var r=0;return t=c(t,i),ii(p(n,function(n,i,u){return{value:n,index:r++,criteria:t(n,i,u)}}).sort(function(n,t){var i=n.criteria,r=t.criteria;if(i!==r){if(i>r||void 0===i)return 1;if(i<r||void 0===r)return-1}return n.index-t.index}),"value")}function ri(n,t){return function(i,r,u){var f=t?[[],[]]:{};return r=c(r,u),y(i,function(t,u){var e=r(t,u,i);n(f,t,e)}),f}}function oe(n){return n?g(n)?u.q.call(n):ui(n)?n.match(rh):a(n)?p(n,wt):k(n):[]}function se(n){return null==n?0:a(n)?n.length:e(n).length}function as(n,t,i){return t in i}function sr(n,t,i){return u.q.call(n,0,Math.max(0,n.length-(null==t||i?1:t)))}function ut(n,t,i){return null==n||n.length<1?null==t||i?void 0:[]:null==t||i?n[0]:sr(n,n.length-t)}function it(n,t,i){return u.q.call(n,null==t||i?1:t)}function he(n,t,i){return null==n||n.length<1?null==t||i?void 0:[]:null==t||i?n[n.length-1]:it(n,Math.max(0,n.length-t))}function ce(n){return d(n,Boolean)}function le(n,t){return tt(n,t,!1)}function at(n,t,i,r){var u,o;li(t)||(r=i,i=t,t=!1);null!=i&&(i=c(i,r));for(var f=[],s=[],e=0,h=l(n);e<h;e++)u=n[e],o=i?i(u,e,n):u,t&&!i?(e&&s===o||f.push(u),s=o):i?v(s,o)||(s.push(o),f.push(u)):v(f,u)||f.push(u);return f}function ae(n){for(var i,t,r=[],f=arguments.length,u=0,e=l(n);u<e;u++)if(i=n[u],!v(r,i)){for(t=1;t<f&&v(arguments[t],i);t++);t===f&&r.push(i)}return r}function vt(n){for(var i=n&&er(n,l).length||0,r=Array(i),t=0;t<i;t++)r[t]=ii(n,t);return r}function ve(n,t){for(var r={},i=0,u=l(n);i<u;i++)t?r[n[i]]=t[i]:r[n[i][0]]=n[i][1];return r}function ye(n,t,i){null==t&&(t=n||0,n=0);i||(i=t<n?-1:1);for(var u=Math.max(Math.ceil((t-n)/i),0),f=Array(u),r=0;r<u;r++,n+=i)f[r]=n;return f}function pe(n,t){if(null==t||t<1)return[];for(var r=[],i=0,f=n.length;i<f;)r.push(u.q.call(n,i,i+=t));return r}function hr(n,t){return n._chain?f(t).chain():t}function cr(n){return y(st(n),function(t){var i=f[t]=n[t];f.prototype[t]=function(){var n=[this._wrapped];return u.o.apply(n,arguments),hr(this,i.apply(f,n))}}),f}var r,fs,hi,es;Object.defineProperty(t,"__esModule",{value:!0});r={};i.d(r,"VERSION",function(){return u.e});i.d(r,"restArguments",function(){return h});i.d(r,"isObject",function(){return w});i.d(r,"isNull",function(){return su});i.d(r,"isUndefined",function(){return ci});i.d(r,"isBoolean",function(){return li});i.d(r,"isElement",function(){return hu});i.d(r,"isString",function(){return ui});i.d(r,"isNumber",function(){return lr});i.d(r,"isDate",function(){return we});i.d(r,"isRegExp",function(){return be});i.d(r,"isError",function(){return ke});i.d(r,"isSymbol",function(){return ar});i.d(r,"isArrayBuffer",function(){return vr});i.d(r,"isDataView",function(){return yt});i.d(r,"isArray",function(){return g});i.d(r,"isFunction",function(){return s});i.d(r,"isArguments",function(){return fi});i.d(r,"isFinite",function(){return cu});i.d(r,"isNaN",function(){return ai});i.d(r,"isTypedArray",function(){return wr});i.d(r,"isEmpty",function(){return yu});i.d(r,"isMatch",function(){return yi});i.d(r,"isEqual",function(){return bu});i.d(r,"isMap",function(){return uo});i.d(r,"isWeakMap",function(){return fo});i.d(r,"isSet",function(){return eo});i.d(r,"isWeakSet",function(){return oo});i.d(r,"keys",function(){return e});i.d(r,"allKeys",function(){return rt});i.d(r,"values",function(){return k});i.d(r,"pairs",function(){return ku});i.d(r,"invert",function(){return bi});i.d(r,"functions",function(){return st});i.d(r,"methods",function(){return st});i.d(r,"extend",function(){return dr});i.d(r,"extendOwn",function(){return ft});i.d(r,"assign",function(){return ft});i.d(r,"defaults",function(){return gr});i.d(r,"create",function(){return gu});i.d(r,"clone",function(){return di});i.d(r,"tap",function(){return nf});i.d(r,"get",function(){return tr});i.d(r,"has",function(){return tf});i.d(r,"mapObject",function(){return uf});i.d(r,"identity",function(){return wt});i.d(r,"constant",function(){return vi});i.d(r,"noop",function(){return ir});i.d(r,"toPath",function(){return gi});i.d(r,"property",function(){return bt});i.d(r,"propertyOf",function(){return ff});i.d(r,"matcher",function(){return nt});i.d(r,"matches",function(){return nt});i.d(r,"times",function(){return ef});i.d(r,"random",function(){return dt});i.d(r,"now",function(){return et});i.d(r,"escape",function(){return ho});i.d(r,"unescape",function(){return co});i.d(r,"templateSettings",function(){return lo});i.d(r,"template",function(){return sf});i.d(r,"result",function(){return hf});i.d(r,"uniqueId",function(){return cf});i.d(r,"chain",function(){return lf});i.d(r,"iteratee",function(){return kt});i.d(r,"partial",function(){return pt});i.d(r,"bind",function(){return iu});i.d(r,"bindAll",function(){return ao});i.d(r,"memoize",function(){return vf});i.d(r,"delay",function(){return ru});i.d(r,"defer",function(){return vo});i.d(r,"throttle",function(){return yf});i.d(r,"debounce",function(){return pf});i.d(r,"wrap",function(){return wf});i.d(r,"negate",function(){return gt});i.d(r,"compose",function(){return bf});i.d(r,"after",function(){return kf});i.d(r,"before",function(){return rr});i.d(r,"once",function(){return yo});i.d(r,"findKey",function(){return ur});i.d(r,"findIndex",function(){return oi});i.d(r,"findLastIndex",function(){return uu});i.d(r,"sortedIndex",function(){return fr});i.d(r,"indexOf",function(){return fu});i.d(r,"lastIndexOf",function(){return po});i.d(r,"find",function(){return lt});i.d(r,"detect",function(){return lt});i.d(r,"findWhere",function(){return ne});i.d(r,"each",function(){return y});i.d(r,"forEach",function(){return y});i.d(r,"map",function(){return p});i.d(r,"collect",function(){return p});i.d(r,"reduce",function(){return ot});i.d(r,"foldl",function(){return ot});i.d(r,"inject",function(){return ot});i.d(r,"reduceRight",function(){return si});i.d(r,"foldr",function(){return si});i.d(r,"filter",function(){return d});i.d(r,"select",function(){return d});i.d(r,"reject",function(){return ie});i.d(r,"every",function(){return ni});i.d(r,"all",function(){return ni});i.d(r,"some",function(){return ti});i.d(r,"any",function(){return ti});i.d(r,"contains",function(){return v});i.d(r,"includes",function(){return v});i.d(r,"include",function(){return v});i.d(r,"invoke",function(){return wo});i.d(r,"pluck",function(){return ii});i.d(r,"where",function(){return re});i.d(r,"max",function(){return er});i.d(r,"min",function(){return ue});i.d(r,"shuffle",function(){return fe});i.d(r,"sample",function(){return or});i.d(r,"sortBy",function(){return ee});i.d(r,"groupBy",function(){return bo});i.d(r,"indexBy",function(){return ko});i.d(r,"countBy",function(){return go});i.d(r,"partition",function(){return ns});i.d(r,"toArray",function(){return oe});i.d(r,"size",function(){return se});i.d(r,"pick",function(){return eu});i.d(r,"omit",function(){return ts});i.d(r,"first",function(){return ut});i.d(r,"head",function(){return ut});i.d(r,"take",function(){return ut});i.d(r,"initial",function(){return sr});i.d(r,"last",function(){return he});i.d(r,"rest",function(){return it});i.d(r,"tail",function(){return it});i.d(r,"drop",function(){return it});i.d(r,"compact",function(){return ce});i.d(r,"flatten",function(){return le});i.d(r,"without",function(){return is});i.d(r,"uniq",function(){return at});i.d(r,"unique",function(){return at});i.d(r,"union",function(){return rs});i.d(r,"intersection",function(){return ae});i.d(r,"difference",function(){return ou});i.d(r,"unzip",function(){return vt});i.d(r,"transpose",function(){return vt});i.d(r,"zip",function(){return us});i.d(r,"object",function(){return ve});i.d(r,"range",function(){return ye});i.d(r,"chunk",function(){return pe});i.d(r,"mixin",function(){return cr});i.d(r,"default",function(){return fs});var u=i(14),ui=o("String"),lr=o("Number"),we=o("Date"),be=o("RegExp"),ke=o("Error"),ar=o("Symbol"),vr=o("ArrayBuffer"),de=o("Function"),vs=u.p.document&&u.p.document.childNodes;"function"!=typeof/./&&"object"!=typeof Int8Array&&"function"!=typeof vs&&(de=function(n){return"function"==typeof n||!1});var s=de,ge=o("Object"),no=u.s&&ge(new DataView(new ArrayBuffer(8))),yr="undefined"!=typeof Map&&ge(new Map),ys=o("DataView"),yt=no?os:ys,g=u.k||o("Array"),pr=o("Arguments");!function(){pr(arguments)||(pr=function(n){return b(n,"callee")})}();var fi=pr,ei=au("byteLength"),ps=lu(ei),ws=/\[object ((I|Ui)nt(8|16|32)|Float(32|64)|Uint8Clamped|Big(I|Ui)nt64)Array\]/,wr=u.r?ss:vi(!1),l=au("length");f.VERSION=u.e;f.prototype.value=function(){return this._wrapped};f.prototype.valueOf=f.prototype.toJSON=f.prototype.value;f.prototype.toString=function(){return String(this._wrapped)};var to="[object DataView]",br="forEach",kr=["clear","delete"],io=["get","has","set"],bs=kr.concat(br,io),ro=kr.concat(io),ks=["add"].concat(kr,br,"has"),uo=yr?wi(bs):o("Map"),fo=yr?wi(ro):o("WeakMap"),eo=yr?wi(ks):o("Set"),oo=o("WeakSet"),dr=ki(rt),ft=ki(e),gr=ki(rt,!0);f.toPath=gi;f.iteratee=kt;var et=Date.now||function(){return(new Date).getTime()},so={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},ho=of(so),ds=bi(so),co=of(ds),lo=f.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g},nu=/(.)^/,gs={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},nh=/\\|'|\r|\n|\u2028|\u2029/g,th=/^\s*(\w|\$)+\s*$/,ih=0,tu=h(function(n,t){var r=tu.placeholder,i=function(){for(var f=0,o=t.length,e=Array(o),u=0;u<o;u++)e[u]=t[u]===r?arguments[f++]:t[u];for(;f<arguments.length;)e.push(arguments[f++]);return af(n,i,this,this,e)};return i});tu.placeholder=f;var pt=tu,iu=h(function(n,t,i){if(!s(n))throw new TypeError("Bind must be called on a function");var r=h(function(u){return af(n,r,t,this,i.concat(u))});return r}),a=lu(l),ao=h(function(n,t){var i,r;if(t=tt(t,!1,!1),i=t.length,i<1)throw new Error("bindAll must be passed function names");for(;i--;)r=t[i],n[r]=iu(n[r],n);return n}),ru=h(function(n,t,i){return setTimeout(function(){return n.apply(null,i)},t)}),vo=pt(ru,f,1),yo=pt(rr,2),oi=df(1),uu=df(-1),fu=gf(1,oi,fr),po=gf(-1,uu),ot=te(1),si=te(-1),wo=h(function(n,t,i){var r,u;return s(t)?u=t:(t=ht(t),r=t.slice(0,-1),t=t[t.length-1]),p(n,function(n){var f=u;if(!f){if(r&&r.length&&(n=nr(n,r)),null==n)return;f=n[t]}return null==f?f:f.apply(n,i)})}),bo=ri(function(n,t,i){b(n,i)?n[i].push(t):n[i]=[t]}),ko=ri(function(n,t,i){n[i]=t}),go=ri(function(n,t,i){b(n,i)?n[i]++:n[i]=1}),ns=ri(function(n,t,i){n[i?0:1].push(t)},!0),rh=/[^\ud800-\udfff]|[\ud800-\udbff][\udc00-\udfff]|[\ud800-\udfff]/g,eu=h(function(n,t){var f={},i=t[0],r,o,u,e;if(null==n)return f;for(s(i)?(t.length>1&&(i=ct(i,t[1])),t=rt(n)):(i=as,t=tt(t,!1,!1),n=Object(n)),r=0,o=t.length;r<o;r++)u=t[r],e=n[u],i(e,u,n)&&(f[u]=e);return f}),ts=h(function(n,t){var r,i=t[0];return s(i)?(i=gt(i),t.length>1&&(r=t[1])):(t=p(tt(t,!1,!1),String),i=function(n,i){return!v(t,i)}),eu(n,i,r)}),ou=h(function(n,t){return t=tt(t,!0,!0),d(n,function(n){return!v(t,n)})}),is=h(function(n,t){return ou(n,t)}),rs=h(function(n){return at(tt(n,!0,!0))}),us=h(vt);y(["pop","push","reverse","shift","sort","splice","unshift"],function(n){var t=u.a[n];f.prototype[n]=function(){var i=this._wrapped;return null!=i&&(t.apply(i,arguments),"shift"!==n&&"splice"!==n||0!==i.length||delete i[0]),hr(this,i)}});y(["concat","join","slice"],function(n){var t=u.a[n];f.prototype[n]=function(){var n=this._wrapped;return null!=n&&(n=t.apply(n,arguments)),hr(this,n)}});fs=f;hi=cr(r);hi._=hi;es=hi;i.d(t,"default",function(){return es});i.d(t,"VERSION",function(){return u.e});i.d(t,"restArguments",function(){return h});i.d(t,"isObject",function(){return w});i.d(t,"isNull",function(){return su});i.d(t,"isUndefined",function(){return ci});i.d(t,"isBoolean",function(){return li});i.d(t,"isElement",function(){return hu});i.d(t,"isString",function(){return ui});i.d(t,"isNumber",function(){return lr});i.d(t,"isDate",function(){return we});i.d(t,"isRegExp",function(){return be});i.d(t,"isError",function(){return ke});i.d(t,"isSymbol",function(){return ar});i.d(t,"isArrayBuffer",function(){return vr});i.d(t,"isDataView",function(){return yt});i.d(t,"isArray",function(){return g});i.d(t,"isFunction",function(){return s});i.d(t,"isArguments",function(){return fi});i.d(t,"isFinite",function(){return cu});i.d(t,"isNaN",function(){return ai});i.d(t,"isTypedArray",function(){return wr});i.d(t,"isEmpty",function(){return yu});i.d(t,"isMatch",function(){return yi});i.d(t,"isEqual",function(){return bu});i.d(t,"isMap",function(){return uo});i.d(t,"isWeakMap",function(){return fo});i.d(t,"isSet",function(){return eo});i.d(t,"isWeakSet",function(){return oo});i.d(t,"keys",function(){return e});i.d(t,"allKeys",function(){return rt});i.d(t,"values",function(){return k});i.d(t,"pairs",function(){return ku});i.d(t,"invert",function(){return bi});i.d(t,"functions",function(){return st});i.d(t,"methods",function(){return st});i.d(t,"extend",function(){return dr});i.d(t,"extendOwn",function(){return ft});i.d(t,"assign",function(){return ft});i.d(t,"defaults",function(){return gr});i.d(t,"create",function(){return gu});i.d(t,"clone",function(){return di});i.d(t,"tap",function(){return nf});i.d(t,"get",function(){return tr});i.d(t,"has",function(){return tf});i.d(t,"mapObject",function(){return uf});i.d(t,"identity",function(){return wt});i.d(t,"constant",function(){return vi});i.d(t,"noop",function(){return ir});i.d(t,"toPath",function(){return gi});i.d(t,"property",function(){return bt});i.d(t,"propertyOf",function(){return ff});i.d(t,"matcher",function(){return nt});i.d(t,"matches",function(){return nt});i.d(t,"times",function(){return ef});i.d(t,"random",function(){return dt});i.d(t,"now",function(){return et});i.d(t,"escape",function(){return ho});i.d(t,"unescape",function(){return co});i.d(t,"templateSettings",function(){return lo});i.d(t,"template",function(){return sf});i.d(t,"result",function(){return hf});i.d(t,"uniqueId",function(){return cf});i.d(t,"chain",function(){return lf});i.d(t,"iteratee",function(){return kt});i.d(t,"partial",function(){return pt});i.d(t,"bind",function(){return iu});i.d(t,"bindAll",function(){return ao});i.d(t,"memoize",function(){return vf});i.d(t,"delay",function(){return ru});i.d(t,"defer",function(){return vo});i.d(t,"throttle",function(){return yf});i.d(t,"debounce",function(){return pf});i.d(t,"wrap",function(){return wf});i.d(t,"negate",function(){return gt});i.d(t,"compose",function(){return bf});i.d(t,"after",function(){return kf});i.d(t,"before",function(){return rr});i.d(t,"once",function(){return yo});i.d(t,"findKey",function(){return ur});i.d(t,"findIndex",function(){return oi});i.d(t,"findLastIndex",function(){return uu});i.d(t,"sortedIndex",function(){return fr});i.d(t,"indexOf",function(){return fu});i.d(t,"lastIndexOf",function(){return po});i.d(t,"find",function(){return lt});i.d(t,"detect",function(){return lt});i.d(t,"findWhere",function(){return ne});i.d(t,"each",function(){return y});i.d(t,"forEach",function(){return y});i.d(t,"map",function(){return p});i.d(t,"collect",function(){return p});i.d(t,"reduce",function(){return ot});i.d(t,"foldl",function(){return ot});i.d(t,"inject",function(){return ot});i.d(t,"reduceRight",function(){return si});i.d(t,"foldr",function(){return si});i.d(t,"filter",function(){return d});i.d(t,"select",function(){return d});i.d(t,"reject",function(){return ie});i.d(t,"every",function(){return ni});i.d(t,"all",function(){return ni});i.d(t,"some",function(){return ti});i.d(t,"any",function(){return ti});i.d(t,"contains",function(){return v});i.d(t,"includes",function(){return v});i.d(t,"include",function(){return v});i.d(t,"invoke",function(){return wo});i.d(t,"pluck",function(){return ii});i.d(t,"where",function(){return re});i.d(t,"max",function(){return er});i.d(t,"min",function(){return ue});i.d(t,"shuffle",function(){return fe});i.d(t,"sample",function(){return or});i.d(t,"sortBy",function(){return ee});i.d(t,"groupBy",function(){return bo});i.d(t,"indexBy",function(){return ko});i.d(t,"countBy",function(){return go});i.d(t,"partition",function(){return ns});i.d(t,"toArray",function(){return oe});i.d(t,"size",function(){return se});i.d(t,"pick",function(){return eu});i.d(t,"omit",function(){return ts});i.d(t,"first",function(){return ut});i.d(t,"head",function(){return ut});i.d(t,"take",function(){return ut});i.d(t,"initial",function(){return sr});i.d(t,"last",function(){return he});i.d(t,"rest",function(){return it});i.d(t,"tail",function(){return it});i.d(t,"drop",function(){return it});i.d(t,"compact",function(){return ce});i.d(t,"flatten",function(){return le});i.d(t,"without",function(){return is});i.d(t,"uniq",function(){return at});i.d(t,"unique",function(){return at});i.d(t,"union",function(){return rs});i.d(t,"intersection",function(){return ae});i.d(t,"difference",function(){return ou});i.d(t,"unzip",function(){return vt});i.d(t,"transpose",function(){return vt});i.d(t,"zip",function(){return us});i.d(t,"object",function(){return ve});i.d(t,"range",function(){return ye});i.d(t,"chunk",function(){return pe});i.d(t,"mixin",function(){return cr})},function(n,t,i){"use strict";function u(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];return 1===n.length&&n[0]instanceof f?n[0]:new f(1!==n.length||r.isString(n[0])?f.createElement.apply(f,n):n[0])}var s,h;Object.defineProperty(t,"__esModule",{value:!0});var r=i(0),c=i(5),l=i(9),e=i(76),o=i(4),a=i(24),f=function(){function n(n){c.Assert.exists(n);this.el=n}return n.createElement=function(t,i){for(var u,f,h,s=[],e=2;e<arguments.length;e++)s[e-2]=arguments[e];u=document.createElement(t);for(f in i)"className"===f?u.className=i.className:(h=-1!==f.indexOf("-")?f:o.Utils.toDashCase(f),u.setAttribute(h,i[f]));return r.each(s,function(t){t instanceof HTMLElement?u.appendChild(t):r.isString(t)?u.innerHTML+=t:t instanceof n&&u.appendChild(t.el)}),u},n.prototype.append=function(n){this.el.appendChild(n)},n.prototype.css=function(n){return this.el.style[n]?this.el.style[n]:window.getComputedStyle(this.el).getPropertyValue(n)},n.prototype.text=function(n){if(o.Utils.isUndefined(n))return this.el.innerText||this.el.textContent;void 0!=this.el.innerText?this.el.innerText=n:void 0!=this.el.textContent&&(this.el.textContent=n)},n.nodeListToArray=function(n){for(var t=n.length,i=new Array(t);t--;)i[t]=n.item(t);return i},n.prototype.focus=function(n){if("IE"===a.DeviceUtils.getDeviceName()){var t=window.pageXOffset,i=window.pageYOffset;this.el.focus();n&&window.scrollTo(t,i)}else this.el.focus({preventScroll:n})},n.prototype.empty=function(){for(;this.el.firstChild;)this.removeChild(this.el.firstChild)},n.prototype.removeChild=function(n){var i=n.parentNode;try{this.el.removeChild(n)}catch(t){if("NotFoundError"!==t.name)throw t;if(i===n.parentNode)throw t;}},n.prototype.remove=function(){this.el.parentNode&&this.el.parentNode.removeChild(this.el)},n.prototype.show=function(){this.el.style.display="block";u(this.el).setAttribute("aria-hidden","false")},n.prototype.hide=function(){this.el.style.display="none";u(this.el).setAttribute("aria-hidden","true")},n.prototype.unhide=function(){this.el.style.display="";u(this.el).setAttribute("aria-hidden","false")},n.prototype.toggle=function(n){void 0===n?"block"==this.el.style.display?this.hide():this.show():n?this.show():this.hide()},n.prototype.isVisible=function(){return"none"!==this.css("display")&&"hidden"!==this.css("visibility")&&!this.hasClass("coveo-tab-disabled")&&!this.hasClass("coveo-hidden")&&!this.hasClass("coveo-hidden-dependant-facet")},n.prototype.getAttribute=function(n){return this.el.getAttribute(n)},n.prototype.setAttribute=function(n,t){this.el.setAttribute(n,t)},n.prototype.find=function(n){return this.el.querySelector(n)},n.prototype.is=function(n){return this.el.tagName.toLowerCase()==n.toLowerCase()||!("."!=n[0]||!this.hasClass(n.substr(1)))||"#"==n[0]&&this.el.getAttribute("id")==n.substr(1)},n.prototype.closest=function(n){return this.traverseAncestorForClass(this.el,n)},n.prototype.parent=function(n){if(void 0!=this.el.parentElement)return this.traverseAncestorForClass(this.el.parentElement,n)},n.prototype.parents=function(t){for(var r=[],i=this.parent(t);i;)r.push(i),i=new n(i).parent(t);return r},n.prototype.children=function(){return n.nodeListToArray(this.el.children)},n.prototype.siblings=function(n){for(var i=[],t=this.el.parentNode.firstChild;t;t=t.nextSibling)t!=this.el&&(!this.matches(t,n)&&n||i.push(t));return i},n.prototype.matches=function(n,t){for(var r=document.querySelectorAll(t),i=0;i<r.length;i++)if(r[i]===n)return!0;return!1},n.prototype.findAll=function(t){return n.nodeListToArray(this.el.querySelectorAll(t))},n.prototype.findClass=function(t){if("getElementsByClassName"in this.el)return n.nodeListToArray(this.el.getElementsByClassName(t))},n.prototype.findId=function(n){return document.getElementById(n)},n.prototype.addClass=function(n){var t=this;r.isArray(n)?r.each(n,function(n){t.addClass(n)}):this.hasClass(n)||(this.el.className?this.el.className+=" "+n:this.el.className=n)},n.prototype.removeClass=function(n){this.el.className=this.el.className.replace(new RegExp("(^|\\s)"+n+"(\\s|$)","g"),"$1").trim()},n.prototype.toggleClass=function(n,t){o.Utils.isNullOrUndefined(t)?this.hasClass(n)?this.removeClass(n):this.addClass(n):t?this.addClass(n):this.removeClass(n)},n.prototype.setHtml=function(n){this.el.innerHTML=n},n.prototype.getClass=function(){var t=this.getAttribute("class");return t&&t.match?t.match(n.CLASS_NAME_REGEX)||[]:[]},n.prototype.hasClass=function(n){return r.contains(this.getClass(),n)},n.prototype.detach=function(){this.el.parentElement&&this.el.parentElement.removeChild(this.el)},n.prototype.insertAfter=function(n){n.parentNode&&n.parentNode.insertBefore(this.el,n.nextSibling)},n.prototype.insertBefore=function(n){n.parentNode&&n.parentNode.insertBefore(this.el,n)},n.prototype.prepend=function(t){this.el.firstChild?new n(t).insertBefore(this.el.firstChild):this.el.appendChild(t)},n.prototype.on=function(t,i){var s=this,u,o,f;if(r.isArray(t))r.each(t,function(n){s.on(n,i)});else if(u=this.processEventTypeToBeJQueryCompatible(t),o=e.JQueryUtils.getJQuery(),this.shouldUseJQueryEvent())o(this.el).on(u,i);else this.el.addEventListener?(f=function(n){i(n,n.detail)},n.handlers.set(i,f),u&&-1!=u.indexOf("touch")?this.el.addEventListener(u,f,{passive:!0}):this.el.addEventListener(u,f,!1)):this.el.on&&this.el.on("on"+u,i)},n.prototype.one=function(n,t){var f=this,i,u;if(r.isArray(n))r.each(n,function(n){f.one(n,t)});else{i=this.processEventTypeToBeJQueryCompatible(n);u=function(n,r){return f.off(i,u),t(n,r)};this.on(i,u)}},n.prototype.off=function(t,i){var s=this,u,o,f;r.isArray(t)?r.each(t,function(n){s.off(n,i)}):(u=this.processEventTypeToBeJQueryCompatible(t),o=e.JQueryUtils.getJQuery(),this.shouldUseJQueryEvent()?o(this.el).off(u,i):this.el.removeEventListener?(f=n.handlers.get(i),f&&this.el.removeEventListener(u,f,!1)):this.el.off&&this.el.off("on"+u,i))},n.prototype.trigger=function(n,t){var i=this.processEventTypeToBeJQueryCompatible(n),r;if(this.shouldUseJQueryEvent())e.JQueryUtils.getJQuery()(this.el).trigger(i,t);else if(void 0!==window.CustomEvent)r=new CustomEvent(i,{detail:t,bubbles:!0}),this.el.dispatchEvent(r);else try{this.el.dispatchEvent(this.buildIE11CustomEvent(i,t))}catch(n){this.oldBrowserError()}},n.prototype.isEmpty=function(){return n.ONLY_WHITE_SPACE_REGEX.test(this.el.innerHTML)},n.prototype.isValid=function(){return null!=this.el&&void 0!=this.el.getAttribute},n.prototype.isDescendant=function(n){for(var t=this.el.parentNode;null!=t;){if(t==n)return!0;t=t.parentNode}return!1},n.prototype.replaceWith=function(t){this.el.parentNode&&new n(t).insertAfter(this.el);this.detach()},n.prototype.position=function(){var e=this.offsetParent(),o=this.offset(),n={top:0,left:0},t,i,r,f;return u(e).is("html")||(n=u(e).offset()),t=parseInt(u(e).css("borderTopWidth")),i=parseInt(u(e).css("borderLeftWidth")),t=isNaN(t)?0:t,i=isNaN(i)?0:i,n={top:n.top+t,left:n.left+i},r=parseInt(this.css("marginTop")),f=parseInt(this.css("marginLeft")),r=isNaN(r)?0:r,f=isNaN(f)?0:f,{top:o.top-n.top-r,left:o.left-n.left-f}},n.prototype.offsetParent=function(){for(var n=this.el.offsetParent;n instanceof HTMLElement&&"static"===u(n).css("position");)n=n.offsetParent;return n instanceof HTMLElement?n:document.documentElement},n.prototype.offset=function(){var n,i,t;return this.el.getClientRects().length?(n=this.el.getBoundingClientRect(),n.width||n.height)?(i=this.el.ownerDocument,t=i.documentElement,{top:n.top+window.pageYOffset-t.clientTop,left:n.left+window.pageXOffset-t.clientLeft}):n:{top:0,left:0}},n.prototype.width=function(){return this.el.offsetWidth},n.prototype.height=function(){return this.el.offsetHeight},n.prototype.clone=function(n){return void 0===n&&(n=!1),u(this.el.cloneNode(n))},n.prototype.canHandleEvent=function(n){var t="on"+n,i=t in this.el;return!i&&this.el.setAttribute&&(this.el.setAttribute(t,"return;"),i="function"==typeof this.el[t],this.el.removeAttribute(t)),i},n.prototype.buildIE11CustomEvent=function(n,t){var i=document.createEvent("CustomEvent");return i.initCustomEvent(n,!0,!0,t),i},n.prototype.shouldUseJQueryEvent=function(){return e.JQueryUtils.getJQuery()&&!n.useNativeJavaScriptEvents},n.prototype.processEventTypeToBeJQueryCompatible=function(n){return n?n.replace(/[^a-zA-Z0-9\:\_]/g,""):n},n.prototype.traverseAncestorForClass=function(n,t){void 0===n&&(n=this.el);0==t.indexOf(".")&&(t=t.substr(1));for(var i=!1;!i&&(u(n).hasClass(t)&&(i=!0),"body"!=n.tagName.toLowerCase())&&null!=n.parentElement;)i||(n=n.parentElement);if(i)return n},n.prototype.oldBrowserError=function(){new l.Logger(this).error("CANNOT TRIGGER EVENT FOR OLDER BROWSER")},n.CLASS_NAME_REGEX=/-?[_a-zA-Z]+[_a-zA-Z0-9-]*/g,n.ONLY_WHITE_SPACE_REGEX=/^\s*$/,n.useNativeJavaScriptEvents=!1,n.handlers=new WeakMap,n}();t.Dom=f;s=function(){function n(n){this.win=n}return n.prototype.height=function(){return this.win.innerHeight},n.prototype.width=function(){return this.win.innerWidth},n.prototype.scrollY=function(){return this.supportPageOffset()?this.win.pageYOffset:this.isCSS1Compat()?this.win.document.documentElement.scrollTop:this.win.document.body.scrollTop},n.prototype.scrollX=function(){return this.supportPageOffset()?window.pageXOffset:this.isCSS1Compat()?document.documentElement.scrollLeft:document.body.scrollLeft},n.prototype.isCSS1Compat=function(){return"CSS1Compat"===(this.win.document.compatMode||"")},n.prototype.supportPageOffset=function(){return void 0!==this.win.pageXOffset},n}();t.Win=s;h=function(){function n(n){this.doc=n}return n.prototype.height=function(){var n=this.doc.body;return Math.max(n.scrollHeight,n.offsetHeight)},n.prototype.width=function(){var n=this.doc.body;return Math.max(n.scrollWidth,n.offsetWidth)},n}();t.Doc=h;t.$$=u},function(n,t,i){"use strict";var b=this&&this.__assign||Object.assign||function(n){for(var t,r,i=1,u=arguments.length;i<u;i++){t=arguments[i];for(r in t)Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},k=this&&this.__awaiter||function(n,t,i,r){return new(i||(i=Promise))(function(u,f){function o(n){try{e(r.next(n))}catch(n){f(n)}}function s(n){try{e(r.throw(n))}catch(n){f(n)}}function e(n){n.done?u(n.value):new i(function(t){t(n.value)}).then(o,s)}e((r=r.apply(n,t||[])).next())})},d=this&&this.__generator||function(n,t){function f(n){return function(t){return s([n,t])}}function s(f){if(e)throw new TypeError("Generator is already executing.");for(;r;)try{if(e=1,u&&(i=u[2&f[0]?"return":f[0]?"throw":"next"])&&!(i=i.call(u,f[1])).done)return i;switch(u=0,i&&(f=[0,i.value]),f[0]){case 0:case 1:i=f;break;case 4:return r.label++,{value:f[1],done:!1};case 5:r.label++;u=f[1];f=[0];continue;case 7:f=r.ops.pop();r.trys.pop();continue;default:if(i=r.trys,!(i=i.length>0&&i[i.length-1])&&(6===f[0]||2===f[0])){r=0;continue}if(3===f[0]&&(!i||f[1]>i[0]&&f[1]<i[3])){r.label=f[1];break}if(6===f[0]&&r.label<i[1]){r.label=i[1];i=f;break}if(i&&r.label<i[2]){r.label=i[2];r.ops.push(f);break}i[2]&&r.ops.pop();r.trys.pop();continue}f=t.call(n,r)}catch(n){f=[6,n];u=0}finally{e=i=0}if(5&f[0])throw f[1];return{value:f[0]?f[1]:void 0,done:!0}}var e,u,i,o,r={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:f(0),"throw":f(1),"return":f(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o},v,h;Object.defineProperty(t,"__esModule",{value:!0});var e=i(0),p=i(44),s=i(17),r=i(5),l=i(9),tt=i(28),it=i(78),rt=i(13),c=i(1),y=i(42),ut=i(76),u=i(4),w=i(10),f=i(7),a=i(19),g=i(454),nt=i(30),o=function(){function n(){}return n.registerDefaultOptions=function(n,t){var i=n.CoveoDefaultOptions||{},r=u.Utils.extendDeep(i,t);n.CoveoDefaultOptions=r},n.resolveDefaultOptions=function(t,i){var r,f=t.CoveoDefaultOptions;return r=u.Utils.exists(f)?u.Utils.extendDeep(f,i):i,t.parentElement?n.resolveDefaultOptions(t.parentElement,r):r},n.registerAutoCreateComponent=function(t){r.Assert.exists(t);r.Assert.exists(t.ID);r.Assert.doesNotExists(n.namedMethods[t.ID]);e.contains(n.registeredComponents,t.ID)||(n.registeredComponents.push(t.ID),t.aliases&&(n.componentAliases[t.ID]=t.aliases));null==h.eagerlyLoadedComponents[t.ID]&&(h.eagerlyLoadedComponents[t.ID]=t);null==v.lazyLoadedComponents[t.ID]&&(v.lazyLoadedComponents[t.ID]=function(){return new Promise(function(n){n(t)})})},n.registerComponentFields=function(t,i){n.fieldsNeededForQuery=u.Utils.concatWithoutDuplicate(n.fieldsNeededForQuery,i);var r=function(t){n.fieldsNeededForQueryByComponent[t]=null==n.fieldsNeededForQueryByComponent[t]?i:u.Utils.concatWithoutDuplicate(n.fieldsNeededForQueryByComponent[t],i)};r(t);r(f.Component.computeCssClassNameForType(t))},n.getRegisteredFieldsForQuery=function(){return n.fieldsNeededForQuery},n.getRegisteredFieldsComponentForQuery=function(t){var i=n.fieldsNeededForQueryByComponent[t]||[],r=n.fieldsNeededForQueryByComponent[f.Component.computeCssClassNameForType(t)]||[];return u.Utils.concatWithoutDuplicate(i,r)},n.isComponentClassIdRegistered=function(t){return e.contains(n.registeredComponents,t)||e.contains(n.registeredComponents,f.Component.computeCssClassNameForType(t))},n.getListOfRegisteredComponents=function(){return n.registeredComponents},n.getListOfLoadedComponents=function(){return e.keys(h.eagerlyLoadedComponents)},n.getRegisteredComponent=function(n){return h.eagerlyLoadedComponents[n]},n.initializeFramework=function(t,i,u){var l=this,v,e,o,h;return(r.Assert.exists(t),f.Component.get(t,p.QueryController,!0))?(this.logger.error("This DOM element has already been initialized as a search interface, skipping initialization",t),Promise.resolve({elem:t})):(i=n.resolveDefaultOptions(t,i),v=function(n,t){return k(l,void 0,void 0,function(){var i,r=this;return d(this,function(){try{return i=t.map(function(t){return t.catch(function(t){return r.logger.warn('An error occurred when trying to defer the "'+n+'" event. The defer will be ignored.',"Error: "+t)})}),[2,Promise.all(i)]}catch(n){this.logger.error('An unexpected error occurred when trying to defer the "'+event+'" event. All defers will be ignored.',"Error: "+n)}return[2]})})},e=function(n){var i={defer:[]};return c.$$(t).trigger(n,i),i.defer.length>0?v(n,i.defer):Promise.resolve()},n.performInitFunctionsOption(i,s.InitializationEvents.beforeInitialization),c.$$(t).trigger(s.InitializationEvents.beforeInitialization),o=function(){return k(l,void 0,void 0,function(){var o,r,u;return d(this,function(h){switch(h.label){case 0:return[4,n.initExternalComponents(t,i)];case 1:return o=h.sent(),n.performInitFunctionsOption(i,s.InitializationEvents.afterComponentsInitialization),[4,e(s.InitializationEvents.afterComponentsInitialization)];case 2:return h.sent(),c.$$(t).trigger(s.InitializationEvents.restoreHistoryState),n.performInitFunctionsOption(i,s.InitializationEvents.afterInitialization),[4,e(s.InitializationEvents.afterInitialization)];case 3:return h.sent(),r=f.Component.get(t,a.SearchInterface),n.shouldExecuteFirstQueryAutomatically(r)&&(n.logFirstQueryCause(r),u=!0,Coveo.Recommendation&&(u=!(r instanceof Coveo.Recommendation)),f.Component.get(t,p.QueryController).executeQuery({logInActionsHistory:u,isFirstQuery:!0})),[2,o]}})})},h=u(t,i),h.isLazyInit?h.initResult.then(o).then(function(){return{elem:t}}):o().then(function(){return{elem:t}}))},n.initSearchInterface=function(t,i){var r,u;return void 0===i&&(i={}),i=n.resolveDefaultOptions(t,i),r=new a.SearchInterface(t,i.SearchInterface,i.Analytics),r.options.originalOptionsObject=i,u={options:i,bindings:r.getBindings()},n.automaticallyCreateComponentsInside(t,u,["Recommendation"])},n.initStandaloneSearchInterface=function(t,i){var r,u;return void 0===i&&(i={}),i=n.resolveDefaultOptions(t,i),i.Querybox||(i.Querybox={}),i.Omnibox||(i.Omnibox={}),i.Searchbox||(i.Searchbox={}),i.Querybox.triggerQueryOnClear&&i.Omnibox.triggerQueryOnClear&&i.Searchbox.triggerOnQueryClear||(i.Querybox.triggerQueryOnClear=!1,i.Omnibox.triggerQueryOnClear=!1,i.Searchbox.triggerQueryOnClear=!1),r=new a.StandaloneSearchInterface(t,i.StandaloneSearchInterface,i.Analytics),r.options.originalOptionsObject=i,u={options:i,bindings:r.getBindings()},n.automaticallyCreateComponentsInside(t,u)},n.initRecommendationInterface=function(t,i){var r,u,f;return void 0===i&&(i={}),i=n.resolveDefaultOptions(t,i),r=e.extend({},i.SearchInterface,i.Recommendation),r.mainSearchInterface&&(r.firstLoadingAnimation=c.$$("span").el),u=new window.Coveo.Recommendation(t,r,i.Analytics),u.options.originalOptionsObject=i,f={options:i,bindings:u.getBindings()},n.automaticallyCreateComponentsInside(t,f)},n.automaticallyCreateComponentsInsideResult=function(t,i,r){void 0===r&&(r={});var u=b({initOptions:r},i.searchInterface.options.originalOptionsObject),f=b({},i.searchInterface.getBindings(),{resultElement:t}),e={options:u,bindings:f,result:i};return n.automaticallyCreateComponentsInside(t,e)},n.automaticallyCreateComponentsInside=function(n,t,i){var u=this;void 0===i&&(i=[]);r.Assert.exists(n);var f,o=g.InitializationHelper.findDOMElementsToIgnore(n,i),s=g.InitializationHelper.findDOMElementsToInitialize(n,o),h=e.chain(s).map(function(n){var i=u.componentsFactory(n.htmlElements,n.componentClassId,t);return f=i.isLazyInit,i.factory}).map(function(n){var t=n();return t?Promise.all(t).then(function(){return!0}):Promise.resolve(!0)}).value();return{initResult:Promise.all(h).then(function(){return!0}).catch(function(n){return u.logger.error(n),u.logger.warn("Skipping initialization of previous component in error ... "),!0}),isLazyInit:f}},n.registerNamedMethod=function(t,i){r.Assert.isNonEmptyString(t);r.Assert.doesNotExists(h.eagerlyLoadedComponents[t]);r.Assert.doesNotExists(n.namedMethods[t]);r.Assert.exists(i);n.namedMethods[t]=i},n.isNamedMethodRegistered=function(t){return u.Utils.exists(n.namedMethods[t])},n.monkeyPatchComponentMethod=function(n,t,i){var h,o,e,s;r.Assert.isNonEmptyString(n);r.Assert.exists(i);n.indexOf(".")>0&&(o=n.split("."),r.Assert.check(2==o.length,"Invalid method name, correct syntax is CoveoComponent.methodName."),h=o[0],n=o[1]);e=f.Component.get(t,h);r.Assert.exists(e);r.Assert.exists(e[n]);s="__"+n;u.Utils.exists(e[s])||(e[s]=e[n]);e[n]=i},n.initBoxInterface=function(t,i,u,e){var o,s,c,h,a;return(void 0===i&&(i={}),void 0===u&&(u="Standard"),void 0===e&&(e=!0),i=n.resolveDefaultOptions(t,i),o="Box","Standard"!=u&&(o+="For"+u),s=f.Component.getComponentRef(o),s)?(new l.Logger(t).info("Initializing box of type "+o),c=e?s.getInjection:function(){},h=new s(t,i[o],i.Analytics,c,i),h.options.originalOptionsObject=i,a={options:i,bindings:h.getBindings()},n.automaticallyCreateComponentsInside(t,a)):{initResult:new Promise(function(n,i){new l.Logger(t).error("Trying to initialize box of type : "+o+" but not found in code (not compiled)!");r.Assert.fail("Cannot initialize unknown type of box");i(!1)}),isLazyInit:!1}},n.dispatchNamedMethodCall=function(t,i,u){r.Assert.isNonEmptyString(t);r.Assert.exists(i);var f=n.namedMethods[t];return r.Assert.exists(f),n.logger.trace("Dispatching named method call of "+t,i,u),0!=u.length?f.apply(null,[i].concat(u)):f.apply(null,[i])},n.dispatchNamedMethodCallOrComponentCreation=function(t,i,u){return r.Assert.isNonEmptyString(t),r.Assert.exists(i),n.isNamedMethodRegistered(t)?n.dispatchNamedMethodCall(t,i,u):n.isThereASingleComponentBoundToThisElement(i)?n.dispatchMethodCallOnBoundComponent(t,i,u):void r.Assert.fail("No method or component named "+t+" are registered.")},n.isSearchFromLink=function(n){return u.Utils.isNonEmptyString(n.getBindings().queryStateModel.get("q"))},n.isThereASingleComponentBoundToThisElement=function(n){return r.Assert.exists(n),u.Utils.exists(f.Component.get(n,null,!0))},n.isThereANonSearchInterfaceComponentBoundToThisElement=function(t){return!!c.$$(t).hasClass("CoveoRecommendation")||n.isThereASingleComponentBoundToThisElement(t)&&!nt.get(t,a.SearchInterface,!0)&&!c.$$(t).hasClass("CoveoRecommendation")},n.dispatchMethodCallOnBoundComponent=function(n,t,i){var e,o;if(r.Assert.isNonEmptyString(n),r.Assert.exists(t),e=f.Component.get(t),r.Assert.exists(e),o=e[n],u.Utils.exists(o))return o.apply(e,i);r.Assert.fail("No method named "+n+" exist on component "+e.type)},n.logFirstQueryCause=function(t){var i=y.HashUtils.getValue("firstQueryCause",y.HashUtils.getHash()),r;null!=i?(r=y.HashUtils.getValue("firstQueryMeta",y.HashUtils.getHash())||{},t.usageAnalytics.logSearchEvent(w.analyticsActionCauseList[i],r)):n.isSearchFromLink(t)?t.usageAnalytics.logSearchEvent(w.analyticsActionCauseList.searchFromLink,{}):t.usageAnalytics.logSearchEvent(w.analyticsActionCauseList.interfaceLoad,{})},n.performInitFunctionsOption=function(t,i){u.Utils.exists(t)&&n.performFunctions(t[i])},n.performFunctions=function(n){u.Utils.exists(n)&&e.each(n,function(n){"function"==typeof n&&n()})},n.initExternalComponents=function(t,i){var w=this,s,y;if(i&&i.externalComponents){var o=f.Component.get(t,a.SearchInterface),h=f.Component.get(t,rt.QueryStateModel),c=f.Component.get(t,it.ComponentStateModel),l=f.Component.get(t,p.QueryController),b=f.Component.get(t,tt.ComponentOptionsModel),v=o.usageAnalytics;return r.Assert.exists(o),r.Assert.exists(h),r.Assert.exists(l),r.Assert.exists(c),r.Assert.exists(v),s={options:i,bindings:{searchInterface:o,queryStateModel:h,queryController:l,usageAnalytics:v,componentStateModel:c,componentOptionsModel:b,root:t}},y=e.map(i.externalComponents,function(t){var i=t;return u.Utils.isHtmlElement(i)?n.automaticallyCreateComponentsInside(i,s).initResult:ut.JQueryUtils.isInstanceOfJQuery(i)?n.automaticallyCreateComponentsInside(i.get(0),s).initResult:void 0}),Promise.all(y).then(function(n){return e.first(n)}).catch(function(n){return w.logger.error(n),!1})}return Promise.resolve(!1)},n.shouldExecuteFirstQueryAutomatically=function(n){var t=n.options;return!t||!1!==t.autoTriggerQuery&&(!0===t.allowQueriesWithoutKeywords||""!=nt.state(n.element).get("q"))},n.logger=new l.Logger("Initialization"),n.registeredComponents=[],n.componentAliases={},n.namedMethods={},n.fieldsNeededForQuery=[],n.fieldsNeededForQueryByComponent={},n}();t.Initialization=o;v=function(){function n(){}return n.getLazyRegisteredComponent=function(t){return n.lazyLoadedComponents[t]()},n.getLazyRegisteredModule=function(t){return n.lazyLoadedModule[t]()},n.registerLazyComponent=function(t,i,u){null==n.lazyLoadedComponents[t]?(r.Assert.exists(i),e.contains(o.registeredComponents,t)||o.registeredComponents.push(t),n.lazyLoadedComponents[t]=i,u&&(o.componentAliases[t]=u)):this.logger.warn("Component being registered twice",t)},n.buildErrorCallback=function(t,i){return function(r){n.logger.warn("Cannot load chunk for "+t+". You may need to add the coveo-script class on the script tag that includes the Coveo framework. More details [here](https://docs.coveo.com/en/295/javascript-search-framework/lazy-versus-eager-component-loading#fixing-code-chunks-loading-path-issues).\n        "+r);i(function(){})}},n.registerLazyModule=function(t,i){null==n.lazyLoadedModule[t]?(r.Assert.exists(i),n.lazyLoadedModule[t]=i):this.logger.warn("Module being registered twice",t)},n.componentsFactory=function(t,i,r){return{factory:function(){var o=[];return e.each(t,function(t){var s,h;if(null==f.Component.get(t,i)){if(s=void 0,u.Utils.exists(r.options)){var c=r.options[i],l=r.options[t.id],a=r.options.initOptions?r.options.initOptions[i]:{};s=u.Utils.extendDeep(l,a);s=u.Utils.extendDeep(c,s)}h=e.extend({},r,{options:s});o.push(n.createComponentOfThisClassOnElement(i,t,h))}}),o},isLazyInit:!0}},n.createComponentOfThisClassOnElement=function(t,i,u){return r.Assert.isNonEmptyString(t),r.Assert.exists(i),o.isThereANonSearchInterfaceComponentBoundToThisElement(i)?null:n.getLazyRegisteredComponent(t).then(function(f){if(r.Assert.exists(f),o.isThereANonSearchInterfaceComponentBoundToThisElement(i))return null;var h,c={},s={};return void 0!=u&&(e.each(u.bindings,function(n,t){c[t]=n}),s=u.options,h=u.result),n.logger.trace("Creating component of class "+t,i,s),new f(i,s,c,h)})},n.logger=new l.Logger("LazyInitialization"),n.lazyLoadedComponents={},n.lazyLoadedModule={},n}();t.LazyInitialization=v;h=function(){function n(){}return n.componentsFactory=function(t,i,r){return{factory:function(){e.each(t,function(t){var o,s;if(null==f.Component.get(t,i)){if(o=void 0,u.Utils.exists(r.options)){var h=r.options[i],c=r.options[t.id],l=r.options.initOptions?r.options.initOptions[i]:{};o=u.Utils.extendDeep(c,l);o=u.Utils.extendDeep(h,o)}s=e.extend({},r,{options:o});n.createComponentOfThisClassOnElement(i,t,s)}})},isLazyInit:!1}},n.createComponentOfThisClassOnElement=function(t,i,u){r.Assert.isNonEmptyString(t);r.Assert.exists(i);var s,c=o.getRegisteredComponent(t),h={},f={};return void 0!=u&&(e.each(u.bindings,function(n,t){h[t]=n}),f=u.options,s=u.result),o.isThereANonSearchInterfaceComponentBoundToThisElement(i)?null:(n.logger.trace("Creating component of class "+t,i,f),null==c?(v.getLazyRegisteredComponent(t).then(function(r){n.logger.warn("Component of class "+t+' was not found in "Eager" mode. Using lazy mode as a fallback.');new r(i,f,h,s)}).catch(function(){n.logger.error("Component of class "+t+' was not found in "Eager" mode nor "Lazy" mode. It will not be initialized properly...')}),null):new c(i,f,h,s))},n.logger=new l.Logger("EagerInitialization"),n.eagerlyLoadedComponents={},n}();t.EagerInitialization=h},function(n,t,i){"use strict";function u(n){void 0==window.Coveo&&(window.Coveo={});r.each(r.keys(n),function(t){null==window.Coveo[t]&&(window.Coveo[t]=n[t])})}function f(n,t){n.doExport?n.doExport():new o.Logger(this).error("Component "+n+" has no export function !");s.Initialization.registerAutoCreateComponent(n);t(n)}function e(n,t){n.doExport&&n.doExport();t(n)}Object.defineProperty(t,"__esModule",{value:!0});var r=i(0),o=i(9),s=i(2);t.exportGlobally=u;t.lazyExport=f;t.lazyExportModule=e},function(n,t,i){"use strict";var u=this&&this.__assign||Object.assign||function(n){for(var t,r,i=1,u=arguments.length;i<u;i++){t=arguments[i];for(r in t)Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n};Object.defineProperty(t,"__esModule",{value:!0});var r=i(0),f=/^@[a-zA-Z0-9_\.]+$/,e=function(){function n(){}return n.isUndefined=function(n){return void 0===n},n.isNull=function(n){return null===n},n.isNullOrUndefined=function(t){return n.isUndefined(t)||n.isNull(t)},n.exists=function(t){return!n.isNullOrUndefined(t)},n.toNotNullString=function(n){return r.isString(n)?n:""},n.anyTypeToString=function(n){return n?n.toString():""},n.isNullOrEmptyString=function(t){return n.isNullOrUndefined(t)||!n.isNonEmptyString(t)},n.isNonEmptyString=function(n){return r.isString(n)&&""!==n},n.isEmptyString=function(t){return!n.isNonEmptyString(t)},n.stringStartsWith=function(n,t){return n.slice(0,t.length)==t},n.stringEndsWith=function(n,t){return n.substring(n.length-t.length,n.length)===t},n.isNonEmptyArray=function(n){return r.isArray(n)&&n.length>0},n.isEmptyArray=function(t){return!n.isNonEmptyArray(t)},n.isHtmlElement=function(n){return void 0!=window.HTMLElement?n instanceof HTMLElement:n&&n.nodeType&&1==n.nodeType},n.parseIntIfNotUndefined=function(t){if(n.isNonEmptyString(t))return parseInt(t,10)},n.parseFloatIfNotUndefined=function(t){return HTMLDocument,n.isNonEmptyString(t)?parseFloat(t):void 0},n.round=function(n,t){return Math.round(n*Math.pow(10,t))/Math.pow(10,t)},n.parseBooleanIfNotUndefined=function(t){if(n.isNonEmptyString(t))switch(t.toLowerCase()){case"true":case"1":case"yes":return!0;case"false":case"0":case"no":return!1;default:return}},n.trim=function(n){return null==n?null:n.replace(/^\s+|\s+$/g,"")},n.encodeHTMLEntities=function(n){for(var i=[],t=n.length-1;t>=0;t--)/^[a-z0-9]/i.test(n[t])?i.unshift(n[t]):i.unshift(["&#",n.charCodeAt(t),";"].join(""));return i.join("")},n.decodeHTMLEntities=function(n){return n.replace(/&#(\d+);/g,function(n,t){return String.fromCharCode(t)})},n.safeEncodeURIComponent=function(n){return r.isString(n)?encodeURIComponent(n.replace(/[\uD800-\uDBFF](?![\uDC00-\uDFFF])/g,"").split("").reverse().join("").replace(/[\uDC00-\uDFFF](?![\uD800-\uDBFF])/g,"").split("").reverse().join("")):encodeURIComponent(n)},n.arrayEqual=function(n,t,i){if(void 0===i&&(i=!0),i)return r.isEqual(n,t);var u=[n,t];return r.all(u,function(n){return n.length==u[0].length&&0==r.difference(n,u[0]).length})},n.objectEqual=function(n,t){return r.isEqual(n,t)},n.isCoveoField=function(n){return f.test(n)},n.escapeRegexCharacter=function(n){return n.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")},n.getCaseInsensitiveProperty=function(n,t){var i=n[t],u,f;return null==i&&(u=t.toLowerCase(),null==(i=n[u])&&(f=r.find(r.keys(n),function(n){return n.toLowerCase()==u}),null!=f&&(i=n[f]))),i},n.getFirstAvailableFieldValue=function(t,i){for(var u,r=0;r<i.length;r++)if(u=n.getFieldValue(t,i[r]),void 0!==u)return u},n.getFieldValue=function(t,i){var u,r,f;if(null!=i&&(i=n.trim(i),"@"==i[0]&&(i=i.substr(1)),""!=i)){if(!n.isCoveoField("@"+i))throw"Not a valid field : "+i;for(u=i.split(".").reverse(),r=t.raw;u.length>1;)if(r=n.getCaseInsensitiveProperty(r,u.pop()),n.isUndefined(r))return;return f=n.getCaseInsensitiveProperty(r,u[0]),null==f&&(f=n.getCaseInsensitiveProperty(t,i)),f}},n.throttle=function(n,t,i,r,u){void 0===i&&(i={});var o,f=null,e=0,s=function(){e=!1===i.leading?0:(new Date).getTime();f=null;o=n.apply(r,u)};return function(){var h=(new Date).getTime(),c;return e||!1!==i.leading||(e=h),c=t-(h-e),r=this,u=arguments,c<=0?(clearTimeout(f),f=null,e=h,o=n.apply(r,u)):f||!1===i.trailing||(f=window.setTimeout(s,c)),o}},n.extendDeep=function(t,i){t||(t={});var f=r.isArray(i),u=f&&[]||{};return f?(t=t||[],u=u.concat(t),r.each(i,function(i,f){void 0===t[f]?u[f]=i:"object"!=typeof i||r.isElement(i)?-1===t.indexOf(i)&&u.push(i):u[f]=n.extendDeep(t[f],i)})):(t&&"object"==typeof t&&!r.isElement(t)&&r.each(r.keys(t),function(n){u[n]=t[n]}),r.each(r.keys(i),function(r){u[r]="object"==typeof i[r]&&i[r]&&t[r]?n.extendDeep(t[r],i[r]):i[r]})),u},n.getQueryStringValue=function(n,t){return void 0===t&&(t=window.location.search),t.replace(new RegExp("^(?:.*[&\\?]"+n.replace(/[\.\+\*]/g,"\\$&")+"(?:\\=([^&]*))?)?.*$","i"),"$1")},n.isValidUrl=function(n){return/(ftp|http|https):\/\/(\w+:{0,1}\w*@)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&%@!\-\/]))?/.test(n)},n.debounce=function(n,t){var i,r;return function(){for(var e=this,f=[],u=0;u<arguments.length;u++)f[u]=arguments[u];null==i?(i=window.setTimeout(function(){i=null},t),r=setTimeout(function(){n.apply(e,f);r=null})):null==r&&(clearTimeout(i),i=window.setTimeout(function(){n.apply(e,f);i=null},t))}},n.readCookie=function(n){for(var t,r=n+"=",u=document.cookie.split(";"),i=0;i<u.length;i++){for(t=u[i];" "==t.charAt(0);)t=t.substring(1,t.length);if(0==t.indexOf(r))return t.substring(r.length,t.length)}return null},n.toDashCase=function(n){return n.replace(/([a-z][A-Z])/g,function(n){return n[0]+"-"+n[1].toLowerCase()})},n.toCamelCase=function(n){return n.replace(/-([a-z])/g,function(n){return n[1].toUpperCase()})},n.parseXml=function(n){if("undefined"!=typeof DOMParser)return(new DOMParser).parseFromString(n,"text/xml");if("undefined"!=typeof ActiveXObject&&new ActiveXObject("Microsoft.XMLDOM")){var t=new ActiveXObject("Microsoft.XMLDOM");return t.async="false",t.loadXML(n),t}throw new Error("No XML parser found");},n.copyObject=function(n,t){var i=this;r.each(r.keys(t),function(r){"object"==typeof t[r]&&t[r]&&n[r]?i.copyObject(n[r],t[r]):n[r]=t[r]})},n.copyObjectAttributes=function(n,t,i){var u=this;r.each(r.keys(t),function(f){r.contains(i,f)&&("object"==typeof t[f]&&t[f]&&n[f]?u.copyObject(n[f],t[f]):n[f]=t[f])})},n.concatWithoutDuplicate=function(n,t){var i=r.difference(t,n);return i&&i.length>0&&(n=n.concat(i)),n},n.differenceBetweenObjects=function(n,t){var i={},r=function(n,t){for(var r in n)n[r]!==t[r]&&null==i[r]&&(i[r]=n[r])};return r(n,t),r(t,n),i},n.resolveAfter=function(n,t){return new Promise(function(i){return setTimeout(function(){return void 0!==t?i(t):i()},n)})},n.reorderValuesByKeys=function(n,t,i){var e=n.reduce(function(n,t){return u({},n,(r={},r[i(t)]=t,r));var r},{}),f=[];return t.forEach(function(n){e[n]&&f.push(e[n])}),f.concat(r.without.apply(r,[n].concat(f)))},n}();t.Utils=e},function(n,t,i){"use strict";var e=this&&this.__extends||function(){var n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])};return function(t,i){function r(){this.constructor=t}n(t,i);t.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),u;Object.defineProperty(t,"__esModule",{value:!0});var o=i(9),r=i(4),f=i(0),s=function(){function n(){}return n.fail=function(t){n.failureHandler(t)},n.check=function(t,i){t||n.fail(i)},n.isUndefined=function(t){n.check(r.Utils.isUndefined(t),"Value should be undefined.")},n.isNotUndefined=function(t){n.check(!r.Utils.isUndefined(t),"Value should not be undefined.")},n.isNull=function(t){n.check(r.Utils.isNull(t),"Value should be null.")},n.isNotNull=function(t){n.check(!r.Utils.isNull(t),"Value should not be null.")},n.exists=function(t){n.check(!r.Utils.isNullOrUndefined(t),"Value should not be null or undefined")},n.doesNotExists=function(t){n.check(r.Utils.isNullOrUndefined(t),"Value should be null or undefined")},n.isString=function(t){n.check(f.isString(t),"Value should be a string.")},n.stringStartsWith=function(t,i){n.isNonEmptyString(t);n.isNonEmptyString(i);n.check(0==t.indexOf(i),"Value should start with "+i)},n.isNonEmptyString=function(t){n.check(r.Utils.isNonEmptyString(t),"Value should be a non-empty string.")},n.isNumber=function(t){n.check(f.isNumber(t),"Value should be a number.")},n.isLargerThan=function(t,i){n.check(i>t,"Value "+i+" should be larger than "+t)},n.isLargerOrEqualsThan=function(t,i){n.check(i>=t,"Value "+i+" should be larger or equal than "+t)},n.isSmallerThan=function(t,i){n.check(i<t,"Value "+i+" should be smaller than "+t)},n.isSmallerOrEqualsThan=function(t,i){n.check(i<=t,"Value "+i+" should be smaller or equal than "+t)},n.logger=new o.Logger("Assert"),n.failureHandler=function(t){throw n.logger.error("Assertion Failed!",t),window.console&&console.trace&&console.trace(),new u(r.Utils.isNonEmptyString(t)?t:"Assertion Failed!");},n}();t.Assert=s;u=function(n){function t(t){var i=n.call(this,t)||this;return i.message=t,i}return e(t,n),t.prototype.toString=function(){return this.message},t}(Error);t.PreconditionFailedException=u},function(n,t,i){"use strict";function r(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return u.L10N.format.apply(this,arguments)}Object.defineProperty(t,"__esModule",{value:!0});var u=i(152);t.l=r},function(n,t,i){"use strict";var l=this&&this.__extends||function(){var n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])};return function(t,i){function r(){this.constructor=t}n(t,i);t.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),c;Object.defineProperty(t,"__esModule",{value:!0});var u=i(5),a=i(4),f=i(76),r=i(1),v=i(13),y=i(78),p=i(28),w=i(44),o=i(19),b=i(106),s=i(36),k=i(105),e=i(0),d=i(3),h=function(){function n(n){this.owner=n;u.Assert.exists(n)}return n.doExport=function(){d.exportGlobally({ComponentEvents:n})},n.prototype.on=function(n,t,i){this.shouldTreatElementAsJQuery(n)?n.on(t,this.wrapToCallIfEnabled(i)):r.$$(n).on(t,this.wrapToCallIfEnabled(i))},n.prototype.one=function(n,t,i){this.shouldTreatElementAsJQuery(n)?n.one(t,this.wrapToCallIfEnabled(i)):r.$$(n).one(t,this.wrapToCallIfEnabled(i))},n.prototype.onRootElement=function(n,t){this.on(this.owner.root,n,t)},n.prototype.oneRootElement=function(n,t){this.one(this.owner.root,n,t)},n.prototype.onQueryState=function(n,t,i){this.onRootElement(this.getQueryStateEventName(n,t),i)},n.prototype.onComponentOptions=function(n,t,i){this.onRootElement(this.getComponentOptionEventName(n,t),i)},n.prototype.oneQueryState=function(n,t,i){this.oneRootElement(this.getQueryStateEventName(n,t),i)},n.prototype.trigger=function(n,t,i){var u=this;this.wrapToCallIfEnabled(function(){u.shouldTreatElementAsJQuery(n)?n.trigger(t,i):r.$$(n).trigger(t,i)})(i)},n.prototype.wrapToCallIfEnabled=function(n){var t=this;return function(){for(var i=[],r=0;r<arguments.length;r++)i[r]=arguments[r];if(!t.owner.disabled)return i&&i[0]instanceof CustomEvent?i[0].detail&&(i=[i[0].detail]):i&&t.shouldTreatEventAsJQuery(i[0])&&(i=void 0!=i[1]?[i[1]]:i[0].hasOwnProperty("originalEvent")?[i[0].originalEvent]:[]),n.apply(t.owner,i)}},n.prototype.shouldTreatElementAsJQuery=function(n){return!0!==r.Dom.useNativeJavaScriptEvents&&!(!f.JQueryUtils.getJQuery()||!f.JQueryUtils.isInstanceOfJQuery(n))},n.prototype.shouldTreatEventAsJQuery=function(n){return!0!==r.Dom.useNativeJavaScriptEvents&&f.JQueryUtils.getJQuery()&&f.JQueryUtils.isInstanceOfJqueryEvent(n)},n.prototype.getQueryStateEventName=function(n,t){return this.getModelEvent(this.owner.queryStateModel,n,t)},n.prototype.getComponentOptionEventName=function(n,t){return this.getModelEvent(this.owner.componentOptionsModel,n,t)},n.prototype.getModelEvent=function(n,t,i){return t&&i?n.getEventName(t+i):n.getEventName(t)},n}();t.ComponentEvents=h;c=function(n){function t(i,r,u){void 0===u&&(u={});var f=n.call(this,i,r)||this;return f.element=i,f.type=r,f.bind=new t.ComponentEventClass(f),f.root=u.root||t.resolveRoot(i),f.queryStateModel=u.queryStateModel||f.resolveQueryStateModel(),f.componentStateModel=u.componentStateModel||f.resolveComponentStateModel(),f.queryController=u.queryController||f.resolveQueryController(),f.searchInterface=u.searchInterface||f.resolveSearchInterface(),f.componentOptionsModel=u.componentOptionsModel||f.resolveComponentOptionsModel(),f.ensureDom=e.once(function(){return f.createDom()}),null!=f.searchInterface&&f.searchInterface.attachComponent(r,f),f.initDebugInfo(),f}return l(t,n),t.prototype.getBindings=function(){return{root:this.root,queryStateModel:this.queryStateModel,queryController:this.queryController,searchInterface:this.searchInterface,componentStateModel:this.componentStateModel,componentOptionsModel:this.componentOptionsModel,usageAnalytics:this.usageAnalytics}},Object.defineProperty(t.prototype,"usageAnalytics",{get:function(){return this.resolveUA()},enumerable:!0,configurable:!0}),t.prototype.createDom=function(){},t.prototype.resolveSearchInterface=function(){return t.resolveBinding(this.element,o.SearchInterface)},t.prototype.resolveQueryController=function(){return t.resolveBinding(this.element,w.QueryController)},t.prototype.resolveComponentStateModel=function(){return t.resolveBinding(this.element,y.ComponentStateModel)},t.prototype.resolveQueryStateModel=function(){return t.resolveBinding(this.element,v.QueryStateModel)},t.prototype.resolveComponentOptionsModel=function(){return t.resolveBinding(this.element,p.ComponentOptionsModel)},t.prototype.resolveUA=function(){return this.searchInterface&&this.searchInterface.usageAnalytics?this.searchInterface.usageAnalytics:new b.NoopAnalyticsClient},t.prototype.resolveResult=function(){return t.getResult(this.element)},t.prototype.removeTabSupport=function(){this.element.hasAttribute("data-tab")&&(this.logger.warn('The "data-tab" attribute is not supported for this component and was removed.'),this.element.removeAttribute("data-tab"));this.element.hasAttribute("data-tab-not")&&(this.logger.warn('The "data-tab-not" attribute is not supported for this component and was removed.'),this.element.removeAttribute("data-tab-not"))},t.prototype.initDebugInfo=function(){var n=this;r.$$(this.element).on("dblclick",function(t){t.altKey&&null!=n.debugInfo()&&r.$$(n.root).trigger(k.DebugEvents.showDebugPanel,n.debugInfo())})},t.get=function(n,i,r){if(u.Assert.exists(n),e.isString(i))return n[t.computeCssClassNameForType(i)];if(a.Utils.exists(i))return u.Assert.exists(i.ID),n[t.computeCssClassNameForType(i.ID)];var f=s.BaseComponent.getBoundComponentsForElement(n);return r||u.Assert.check(f.length<=1,"More than one component is bound to this element. You need to specify the component type."),f[0]},t.getResult=function(n,t){void 0===t&&(t=!1);var i=r.$$(n).closest(".CoveoResult");return u.Assert.check(t||void 0!=i),i.CoveoResult},t.bindResultToElement=function(n,t){u.Assert.exists(n);u.Assert.exists(t);r.$$(n).addClass("CoveoResult");n.CoveoResult=t;var i=f.JQueryUtils.getJQuery();i&&i(n).data(t)},t.bindFoldedResultToElement=function(n){u.Assert.exists(n);r.$$(n).addClass("coveo-result-folding-child-result")},t.resolveRoot=function(n){var i,r;return(u.Assert.exists(n),i=t.resolveBinding(n,o.SearchInterface),i)?i.element:(r=t.findRootInParents(n),r||document.body)},t.resolveBinding=function(n,i){var f,e,o,s;return u.Assert.exists(n),u.Assert.exists(i),u.Assert.exists(i.ID),e=t.computeCssClassNameForType(i.ID),r.$$(n).is("."+e)?f=n:(o=r.$$(n).findClass(e),o&&0!==o.length?f=o[0]:(s=r.$$(n).closest(e),s&&(f=s))),f?f[e]:void 0},t.pointElementsToDummyForm=function(n){var t=r.$$(n).is("input")?[n]:[];t=t.concat(r.$$(n).findAll("input"));e.each(e.compact(t),function(n){n.setAttribute("form","coveo-dummy-form")})},t.findRootInParents=function(n){for(var u,r=t.getBoundComponentsForElement(n),i=0;i<r.length;i++)if(u=r[i],u instanceof t)return u.root;return n.parentElement?t.findRootInParents(n.parentElement):null},t.ComponentEventClass=h,t}(s.BaseComponent);t.Component=c},function(n,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var f=i(0),o=i(5),s=i(9),e=i(1),c=i(12),u=i(4),l=i(383),a=i(384),v=i(385),y=i(386),r=i(51),p=i(62),w=/([A-Z])|\W+(\w)/g,b=/\s*,\s*/,h=/([a-zA-Z\-]+)\s*:\s*(([^,]|,\s*(?!([a-zA-Z\-]+)\s*:))+)/g,k=function(){function n(){}return n.buildTemplateOption=function(n){return p.TemplateComponentOptions.buildTemplateOption(n)},n.buildBooleanOption=function(t){return n.buildOption(r.ComponentOptionsType.BOOLEAN,n.loadBooleanOption,t)},n.buildNumberOption=function(t){return n.buildOption(r.ComponentOptionsType.NUMBER,n.loadNumberOption,t)},n.buildStringOption=function(t){return n.buildOption(r.ComponentOptionsType.STRING,n.loadStringOption,t)},n.buildIconOption=function(t){return n.buildOption(r.ComponentOptionsType.ICON,n.loadIconOption,t)},n.buildColorOption=function(t){return n.buildOption(r.ComponentOptionsType.COLOR,n.loadStringOption,t)},n.buildHelperOption=function(t){return n.buildOption(r.ComponentOptionsType.HELPER,n.loadStringOption,t)},n.buildJsonOption=function(t){return n.buildOption(r.ComponentOptionsType.JSON,n.loadJsonObjectOption,t)},n.buildJsonObjectOption=function(t){return n.buildJsonOption(t)},n.buildLocalizedStringOption=function(t){return n.buildOption(r.ComponentOptionsType.LOCALIZED_STRING,n.loadLocalizedStringOption,t)},n.buildFieldOption=function(t){return n.buildOption(r.ComponentOptionsType.FIELD,n.loadFieldOption,t)},n.buildFieldsOption=function(t){return n.buildOption(r.ComponentOptionsType.FIELDS,n.loadFieldsOption,t)},n.buildQueryExpressionOption=function(t){return n.buildOption(r.ComponentOptionsType.QUERY_EXPRESSION,n.loadStringOption,t)},n.buildListOption=function(t){return n.buildOption(r.ComponentOptionsType.LIST,n.loadListOption,t)},n.buildSelectorOption=function(t){return n.buildOption(r.ComponentOptionsType.SELECTOR,n.loadSelectorOption,t)},n.buildChildHtmlElementOption=function(t){return n.buildOption(r.ComponentOptionsType.CHILD_HTML_ELEMENT,n.loadChildHtmlElementOption,t)},n.buildCustomOption=function(t,i){var f=function(i,r,f){var e=n.loadStringOption(i,r,f);if(!u.Utils.isNullOrEmptyString(e))return t(e)};return n.buildOption(r.ComponentOptionsType.STRING,f,i)},n.buildCustomListOption=function(t,i){var u=function(i,r,u){var f=n.loadListOption(i,r,u);return t(f)};return n.buildOption(r.ComponentOptionsType.LIST,u,i)},n.buildObjectOption=function(t){var i=function(i,r){for(var e,o,s=f.keys(t.subOptions),c={},h={},u=0;u<s.length;u++)e=s[u],o=n.mergeCamelCase(r,e),c[o]=t.subOptions[e];n.initOptions(i,c,h,"");for(var l={},a=!1,u=0;u<s.length;u++)e=s[u],o=n.mergeCamelCase(r,e),null!=h[o]&&(l[e]=h[o],a=!0);return a?l:null};return n.buildOption(r.ComponentOptionsType.OBJECT,i,t)},n.buildFieldConditionOption=function(){return n.buildOption(r.ComponentOptionsType.FIELD,n.loadFieldConditionOption)},n.buildOption=function(n,t,i){void 0===i&&(i={});var r=i;return r.type=n,r.load=t,r},n.attrNameFromName=function(t,i){return i&&i.attrName?i.attrName:t?"data-"+n.camelCaseToHyphen(t):t},n.camelCaseToHyphen=function(n){return n.replace(w,"-$1$2").toLowerCase()},n.mergeCamelCase=function(n,t){return n+t.substr(0,1).toUpperCase()+t.substr(1)},n.initComponentOptions=function(t,i,r){return n.initOptions(t,i.options,r,i.ID)},n.initOptions=function(n,t,i,r){return void 0===i&&(i={}),u.Utils.isNullOrUndefined(i)&&(i={}),f.each(t,function(t,u){var f=new l.ComponentOptionLoader(n,i,u,t).load();new a.ComponentOptionsMerger(t,{value:f,name:u},i).merge();new y.ComponentOptionsValidator(t,{componentID:r,name:u,value:f},i).validate()}),new v.ComponentOptionsPostProcessor(t,i,r).postProcess(),i},n.tryLoadFromAttribute=function(n,t,i){var r=i.load;return r?r(n,t,i):null},n.loadStringOption=function(t,i,r){return t.getAttribute(n.attrNameFromName(i,r))||n.getAttributeFromAlias(t,r)},n.loadIconOption=function(t,i,r){var f=n.loadStringOption(t,i,r);return null==f?null:(f=f.replace("coveo-sprites-replies","replies"),f=f.replace("coveo-sprites-main-search-active","search"),u.Utils.isNullOrUndefined(c.SVGIcons.icons[f])?(new s.Logger(t).warn("Icon with name "+f+" not found."),null):f=u.Utils.toCamelCase(f))},n.loadFieldOption=function(t,i,r){var f=n.loadStringOption(t,i,r);return o.Assert.check(!u.Utils.isNonEmptyString(f)||u.Utils.isCoveoField(f),f+" is not a valid field"),f},n.loadFieldConditionOption=function(n){var t=e.Dom.nodeListToArray(n.attributes).filter(function(n){return u.Utils.stringStartsWith(n.nodeName,"data-condition-field-")});if(0!=t.length)return t.map(function(n){return{field:n.nodeName.replace("data-condition-field-not-","").replace("data-condition-field-",""),values:u.Utils.isNonEmptyString(n.nodeValue)?n.nodeValue.split(/\s*,\s*/):null,reverseCondition:0==n.nodeName.indexOf("data-condition-field-not-")}})},n.loadFieldsOption=function(t,i,r){var s=n.loadStringOption(t,i,r),e;return null==s?null:(e=s.split(b),f.each(e,function(n){o.Assert.check(u.Utils.isCoveoField(n),n+" is not a valid field")}),e)},n.loadLocalizedStringOption=function(t,i,r){var u=n.loadStringOption(t,i,r),c=String.locale||String.defaultLocale,e,o,a;if(null!=c&&null!=u){var l=c.toLowerCase().split("-"),v=f.map(l,function(n,t){return l.slice(0,t+1).join("-")}),s=u.match(h);if(null!=s)for(e=0;e<s.length;e++)if(o=h.exec(s[e]),null!=o&&(a=o[1].toLowerCase(),f.contains(v,a)))return o[2].replace(/^\s+|\s+$/g,"");return null!=u?u.toLocaleString():null}return u},n.loadNumberOption=function(t,i,r){var e=n.loadStringOption(t,i,r),f;return null==e?null:(f=!0===r.float?u.Utils.parseFloatIfNotUndefined(e):u.Utils.parseIntIfNotUndefined(e),null!=r.min&&r.min>f&&(new s.Logger(t).info("Value for option "+i+" is less than the possible minimum (Value is "+f+", minimum is "+r.min+"). It has been forced to its minimum value.",r),f=r.min),null!=r.max&&r.max<f&&(new s.Logger(t).info("Value for option "+i+" is higher than the possible maximum (Value is "+f+", maximum is "+r.max+"). It has been forced to its maximum value.",r),f=r.max),f)},n.loadBooleanOption=function(t,i,r){return u.Utils.parseBooleanIfNotUndefined(n.loadStringOption(t,i,r))},n.loadListOption=function(t,i,r){var e=r.separator||/\s*,\s*/,f=n.loadStringOption(t,i,r);return u.Utils.isNonEmptyString(f)?f.split(e):null},n.loadEnumOption=function(t,i,r,u){var f=n.loadStringOption(t,i,r);return null!=f?u[f]:null},n.loadJsonObjectOption=function(t,i,r){var u=n.loadStringOption(t,i,r);if(null==u)return null;try{return JSON.parse(u)}catch(n){return new s.Logger(t).info("Value for option "+i+" is not a valid JSON string (Value is "+u+"). It has been disabled.",n),null}},n.loadSelectorOption=function(t,i,r,f){void 0===f&&(f=document);var e=n.loadStringOption(t,i,r);return u.Utils.isNonEmptyString(e)?f.querySelector(e):null},n.loadChildHtmlElementOption=function(t,i,r,u){var f,s,o,e;return void 0===u&&(u=document),s=r.selectorAttr||n.attrNameFromName(i,r)+"-selector",o=t.getAttribute(s)||n.getAttributeFromAlias(t,r),(null!=o&&(f=u.body.querySelector(o)),null==f)&&(e=r.childSelector,null==e&&(e="."+i),f=n.loadChildHtmlElementFromSelector(t,e)),f},n.loadChildHtmlElementFromSelector=function(n,t){return o.Assert.isNonEmptyString(t),e.$$(n).is(t)?n:e.$$(n).find(t)},n.loadChildrenHtmlElementFromSelector=function(n,t){return o.Assert.isNonEmptyString(t),e.$$(n).findAll(t)},n.findParentScrolling=function(t,i){return void 0===i&&(i=document),t=this.findParentScrollLockable(t,i),t instanceof HTMLBodyElement||!n.isElementScrollable(t)?window:t},n.findParentScrollLockable=function(t,i){return void 0===i&&(i=document),t?n.isElementScrollable(t)||t instanceof HTMLBodyElement||!t.parentElement?t:n.findParentScrollLockable(t.parentElement,i):i.body},n.isElementScrollable=function(n){var t=e.$$(n).css("overflow-y");return"scroll"==t||"auto"==t},n.getAttributeFromAlias=function(t,i){if(f.isArray(i.alias)){var r;return f.each(i.alias,function(i){var u=t.getAttribute(n.attrNameFromName(i));u&&(r=u)}),r}if(i.alias)return t.getAttribute(n.attrNameFromName(i.alias))},n}();t.ComponentOptions=k},function(n,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});window.console||(console={log:function(){},debug:function(){},info:function(){},warn:function(){},error:function(){},assert:function(){},clear:function(){},count:function(){},dir:function(){},dirxml:function(){},group:function(){},groupCollapsed:function(){},groupEnd:function(){},msIsIndependentlyComposed:function(){},profile:function(){},profileEnd:function(){},select:function(){},time:function(){},timeEnd:function(){},trace:function(){}});var i=function(){function n(n){this.owner=n}return n.prototype.trace=function(){for(var i=[],t=0;t<arguments.length;t++)i[t]=arguments[t];n.level<=n.TRACE&&this.log("TRACE",i)},n.prototype.debug=function(){for(var i=[],t=0;t<arguments.length;t++)i[t]=arguments[t];n.level<=n.DEBUG&&this.log("DEBUG",i)},n.prototype.info=function(){for(var i=[],t=0;t<arguments.length;t++)i[t]=arguments[t];n.level<=n.INFO&&this.log("INFO",i)},n.prototype.warn=function(){for(var i=[],t=0;t<arguments.length;t++)i[t]=arguments[t];n.level<=n.WARN&&this.log("WARN",i)},n.prototype.error=function(){for(var i=[],t=0;t<arguments.length;t++)i[t]=arguments[t];n.level<=n.ERROR&&this.log("ERROR",i)},n.prototype.log=function(t,i){window.console&&console.log&&(console.error&&"ERROR"==t?console.error([t,this.owner].concat(i)):console.info&&"INFO"==t?console.info([t,this.owner].concat(i)):console.warn&&"WARN"==t?console.warn([t,this.owner].concat(i)):console.log([t,this.owner].concat(i)),n.executionTime&&(console.timeEnd("Execution time"),console.time("Execution time")))},n.enable=function(){n.level=n.TRACE},n.disable=function(){n.level=n.NOTHING},n.TRACE=1,n.DEBUG=2,n.INFO=3,n.WARN=4,n.ERROR=5,n.NOTHING=6,n.level=n.INFO,n.executionTime=!1,n}();t.Logger=i},function(n,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});!function(n){n.DoesNotAnswer="does_not_answer";n.PartiallyAnswers="partially_answers";n.WasNotAQuestion="was_not_a_question";n.Other="other"}(t.AnalyticsSmartSnippetFeedbackReason||(t.AnalyticsSmartSnippetFeedbackReason={}));t.analyticsActionCauseList={interfaceLoad:{name:"interfaceLoad",type:"interface"},interfaceChange:{name:"interfaceChange",type:"interface"},contextRemove:{name:"contextRemove",type:"misc"},didyoumeanAutomatic:{name:"didyoumeanAutomatic",type:"misc"},didyoumeanClick:{name:"didyoumeanClick",type:"misc"},resultsSort:{name:"resultsSort",type:"misc"},searchboxSubmit:{name:"searchboxSubmit",type:"search box"},searchboxClear:{name:"searchboxClear",type:"search box"},searchboxAsYouType:{name:"searchboxAsYouType",type:"search box"},breadcrumbFacet:{name:"breadcrumbFacet",type:"breadcrumb"},breadcrumbAdvancedSearch:{name:"breadcrumbAdvancedSearch",type:"breadcrumb"},breadcrumbResetAll:{name:"breadcrumbResetAll",type:"breadcrumb"},documentTag:{name:"documentTag",type:"document"},documentField:{name:"documentField",type:"document"},documentQuickview:{name:"documentQuickview",type:"document"},documentOpen:{name:"documentOpen",type:"document"},omniboxFacetSelect:{name:"omniboxFacetSelect",type:"omnibox"},omniboxFacetExclude:{name:"omniboxFacetExclude",type:"omnibox"},omniboxFacetDeselect:{name:"omniboxFacetDeselect",type:"omnibox"},omniboxFacetUnexclude:{name:"omniboxFacetUnexclude",type:"omnibox"},omniboxAnalytics:{name:"omniboxAnalytics",type:"omnibox"},omniboxFromLink:{name:"omniboxFromLink",type:"omnibox"},omniboxField:{name:"omniboxField",type:"omnibox"},facetClearAll:{name:"facetClearAll",type:"facet"},facetSearch:{name:"facetSearch",type:"facet"},facetToggle:{name:"facetToggle",type:"facet"},facetRangeSlider:{name:"facetRangeSlider",type:"facet"},facetRangeGraph:{name:"facetRangeGraph",type:"facet"},facetSelect:{name:"facetSelect",type:"facet"},facetSelectAll:{name:"facetSelectAll",type:"facet"},facetDeselect:{name:"facetDeselect",type:"facet"},facetExclude:{name:"facetExclude",type:"facet"},facetUnexclude:{name:"facetUnexclude",type:"facet"},facetUpdateSort:{name:"facetUpdateSort",type:"facet"},facetShowMore:{name:"showMoreFacetResults",type:"facet"},facetShowLess:{name:"showLessFacetResults",type:"facet"},categoryFacetSelect:{name:"categoryFacetSelect",type:"categoryFacet"},categoryFacetReload:{name:"categoryFacetReload",type:"categoryFacet"},categoryFacetClear:{name:"categoryFacetClear",type:"categoryFacet"},categoryFacetBreadcrumb:{name:"categoryFacetBreadcrumb",type:"categoryFacet"},categoryFacetSearch:{name:"categoryFacetSearch",type:"categoryFacet"},dynamicFacetSelect:{name:"facetSelect",type:"dynamicFacet"},dynamicFacetDeselect:{name:"facetDeselect",type:"dynamicFacet"},dynamicFacetClearAll:{name:"facetClearAll",type:"dynamicFacet"},dynamicFacetShowMore:{name:"showMoreFacetResults",type:"dynamicFacet"},dynamicFacetShowLess:{name:"showLessFacetResults",type:"dynamicFacet"},errorBack:{name:"errorBack",type:"errors"},errorClearQuery:{name:"errorClearQuery",type:"errors"},errorRetry:{name:"errorRetry",type:"errors"},noResultsBack:{name:"noResultsBack",type:"noResults"},expandToFullUI:{name:"expandToFullUI",type:"interface"},caseCreationInputChange:{name:"inputChange",type:"caseCreation"},caseCreationSubmitButton:{name:"submitButton",type:"caseCreation"},caseCreationCancelButton:{name:"cancelButton",type:"caseCreation"},caseCreationUnloadPage:{name:"unloadPage",type:"caseCreation"},casecontextAdd:{name:"casecontextAdd",type:"casecontext"},casecontextRemove:{name:"casecontextRemove",type:"casecontext"},preferencesChange:{name:"preferencesChange",type:"preferences"},getUserHistory:{name:"getUserHistory",type:"userHistory"},userActionDocumentClick:{name:"userActionDocumentClick",type:"userHistory"},caseAttach:{name:"caseAttach",type:"case"},caseDetach:{name:"caseDetach",type:"case"},customfiltersChange:{name:"customfiltersChange",type:"customfilters"},pagerNumber:{name:"pagerNumber",type:"getMoreResults"},pagerNext:{name:"pagerNext",type:"getMoreResults"},pagerPrevious:{name:"pagerPrevious",type:"getMoreResults"},pagerScrolling:{name:"pagerScrolling",type:"getMoreResults"},pagerResize:{name:"pagerResize",type:"getMoreResults"},positionSet:{name:"positionSet",type:"distance"},searchFromLink:{name:"searchFromLink",type:"interface"},triggerNotify:{name:"notify",type:"queryPipelineTriggers"},triggerExecute:{name:"execute",type:"queryPipelineTriggers"},triggerQuery:{name:"query",type:"queryPipelineTriggers"},triggerRedirect:{name:"redirect",type:"queryPipelineTriggers"},queryError:{name:"query",type:"errors"},exportToExcel:{name:"exportToExcel",type:"misc"},recommendation:{name:"recommendation",type:"recommendation"},recommendationInterfaceLoad:{name:"recommendationInterfaceLoad",type:"recommendation"},recommendationOpen:{name:"recommendationOpen",type:"recommendation"},advancedSearch:{name:"advancedSearch",type:"advancedSearch"},searchAlertsFollowDocument:{name:"followDocument",type:"searchAlerts"},searchAlertsFollowQuery:{name:"followQuery",type:"searchAlerts"},searchAlertsUpdateSubscription:{name:"updateSubscription",type:"searchAlerts"},searchAlertsDeleteSubscription:{name:"deleteSubscription",type:"searchAlerts"},searchAlertsUnfollowDocument:{name:"unfollowDocument",type:"searchAlerts"},searchAlertsUnfollowQuery:{name:"unfollowQuery",type:"searchAlerts"},simpleFilterSelectValue:{name:"selectValue",type:"simpleFilter"},simpleFilterDeselectValue:{name:"deselectValue",type:"simpleFilter"},simpleFilterClearAll:{name:"clearAll",type:"simpleFilter"},resultsLayoutChange:{name:"changeResultsLayout",type:"resultsLayout"},foldingShowMore:{name:"showMoreFoldedResults",type:"folding"},foldingShowLess:{name:"showLessFoldedResults",type:"folding"},addMissingTerm:{name:"addMissingTerm",type:"missingTerm"},removeMissingTerm:{name:"removeMissingTerm",type:"missingTerm"},showQuerySuggestPreview:{name:"showQuerySuggestPreview",type:"querySuggestPreview"},clickQuerySuggestPreview:{name:"clickQuerySuggestPreview",type:"querySuggestPreview"},likeSmartSnippet:{name:"likeSmartSnippet",type:"smartSnippet"},dislikeSmartSnippet:{name:"dislikeSmartSnippet",type:"smartSnippet"},expandSmartSnippet:{name:"expandSmartSnippet",type:"smartSnippet"},collapseSmartSnippet:{name:"collapseSmartSnippet",type:"smartSnippet"},openSmartSnippetFeedbackModal:{name:"openSmartSnippetFeedbackModal",type:"smartSnippet"},closeSmartSnippetFeedbackModal:{name:"closeSmartSnippetFeedbackModal",type:"smartSnippet"},sendSmartSnippetReason:{name:"sendSmartSnippetReason",type:"smartSnippet"},openSmartSnippetSource:{name:"openSmartSnippetSource",type:"smartSnippet"},openSmartSnippetInlineLink:{name:"openSmartSnippetInlineLink",type:"smartSnippet"},expandSmartSnippetSuggestion:{name:"expandSmartSnippetSuggestion",type:"smartSnippetSuggestions"},collapseSmartSnippetSuggestion:{name:"collapseSmartSnippetSuggestion",type:"smartSnippetSuggestions"},openSmartSnippetSuggestionSource:{name:"openSmartSnippetSuggestionSource",type:"smartSnippet"},openSmartSnippetSuggestionInlineLink:{name:"openSmartSnippetSuggestionInlineLink",type:"smartSnippet"}}},function(n,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function n(){}return n.newQuery="newQuery",n.buildingQuery="buildingQuery",n.doneBuildingQuery="doneBuildingQuery",n.duringQuery="duringQuery",n.duringFetchMoreQuery="duringFetchMoreQuery",n.querySuccess="querySuccess",n.fetchMoreSuccess="fetchMoreSuccess",n.deferredQuerySuccess="deferredQuerySuccess",n.queryError="queryError",n.preprocessResults="preprocessResults",n.preprocessMoreResults="preprocessMoreResults",n.noResults="noResults",n.buildingCallOptions="buildingCallOptions",n}();t.QueryEvents=i},function(n,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function n(){}return n.icons={search:i(343),more:i(344),loading:i(345),checkboxHookExclusionMore:i(346),arrowUp:i(347),arrowDown:i(348),mainClear:i(349),clearSmall:i(350),clear:i(351),close:i(352),"delete":i(353),save:i(354),checkYes:i(355),orAnd:i(356),sort:i(357),ascending:i(358),descending:i(359),dropdownMore:i(360),dropdownLess:i(361),facetCollapse:i(362),facetExpand:i(363),dropdownShareQuery:i(364),dropdownPreferences:i(365),dropdownAuthenticate:i(366),dropdownExport:i(367),dropdownFollowQuery:i(368),quickview:i(369),pagerRightArrow:i(370),pagerLeftArrow:i(371),replies:i(372),video:i(373),coveoLogo:i(374),coveoPoweredBy:i(375),taggingOk:i(376),edit:i(377),star:i(378),listLayout:i(379),cardLayout:i(380),tableLayout:i(381),plus:i(382)},n}();t.SVGIcons=r},function(n,t,i){"use strict";function o(n,t){var e,i;if(u.Assert.exists(n),0==t.length||void 0==t[0])return n;if(1==t.length&&f.Utils.isNonEmptyString(t[0]))return n.get(t[0]);if(r.isObject(t[0]))return e=t[0],i=r.extend({customAttribute:!0},t[1]),n.setMultiple(e,i);if(t.length>1){var o=t[0],s=t[1],i=r.extend({customAttribute:!0},t[2]);return u.Assert.isNonEmptyString(o),n.set(o,s,i)}}var s=this&&this.__extends||function(){var n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])};return function(t,i){function r(){this.constructor=t}n(t,i);t.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),h=this&&this.__assign||Object.assign||function(n){for(var t,r,i=1,u=arguments.length;i<u;i++){t=arguments[i];for(r in t)Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},e;Object.defineProperty(t,"__esModule",{value:!0});var c=i(18),u=i(5),r=i(0),f=i(4);t.QUERY_STATE_ATTRIBUTES={Q:"q",FIRST:"first",T:"t",TG:"tg",SORT:"sort",LAYOUT:"layout",HD:"hd",HQ:"hq",QUICKVIEW:"quickview",DEBUG:"debug",NUMBER_OF_RESULTS:"numberOfResults",MISSING_TERMS:"missingTerms"};e=function(n){function t(i,r){var u=h({},t.defaultAttributes,r);return n.call(this,i,t.ID,u)||this}return s(t,n),t.getFacetId=function(n,t){return void 0===t&&(t=!0),"f:"+n+(t?"":":not")},t.getFacetOperator=function(n){return"f:"+n+":operator"},t.getFacetLookupValue=function(n){return t.getFacetId(n)+":lookupvalues"},t.prototype.atLeastOneFacetIsActive=function(){var n=this;return!r.isUndefined(r.find(this.attributes,function(t,i){return i.match(/^f:/)&&!f.Utils.arrayEqual(n.getDefault(i),t)}))},t.prototype.set=function(t,i,r){this.validate(t,i);n.prototype.set.call(this,t,i,r)},t.prototype.validate=function(n,i){n==t.attributesEnum.first&&(u.Assert.isNumber(i),u.Assert.isLargerOrEqualsThan(0,i))},t.ID="state",t.defaultAttributes={q:"",first:0,fv:"",t:"",hd:"",hq:"",sort:"",layout:"list",tg:"",quickview:"",debug:!1,numberOfResults:10,missingTerms:[]},t.attributesEnum={q:"q",first:"first",fv:"fv",t:"t",sort:"sort",layout:"layout",hd:"hd",hq:"hq",tg:"tg",quickview:"quickview",debug:"debug",numberOfResults:"numberOfResults",missingTerms:"missingTerms"},t}(c.Model);t.QueryStateModel=e;t.setState=o},function(n,t,i){"use strict";(function(n){i.d(t,"e",function(){return e});i.d(t,"p",function(){return o});i.d(t,"a",function(){return r});i.d(t,"c",function(){return u});i.d(t,"d",function(){return s});i.d(t,"o",function(){return h});i.d(t,"q",function(){return c});i.d(t,"t",function(){return l});i.d(t,"i",function(){return a});i.d(t,"r",function(){return f});i.d(t,"s",function(){return v});i.d(t,"k",function(){return y});i.d(t,"m",function(){return p});i.d(t,"j",function(){return w});i.d(t,"l",function(){return b});i.d(t,"g",function(){return k});i.d(t,"f",function(){return d});i.d(t,"h",function(){return g});i.d(t,"n",function(){return nt});i.d(t,"b",function(){return tt});var e="1.13.1",o="object"==typeof self&&self.self===self&&self||"object"==typeof n&&n.global===n&&n||Function("return this")()||{},r=Array.prototype,u=Object.prototype,s="undefined"!=typeof Symbol?Symbol.prototype:null,h=r.push,c=r.slice,l=u.toString,a=u.hasOwnProperty,f="undefined"!=typeof ArrayBuffer,v="undefined"!=typeof DataView,y=Array.isArray,p=Object.keys,w=Object.create,b=f&&ArrayBuffer.isView,k=isNaN,d=isFinite,g=!{toString:null}.propertyIsEnumerable("toString"),nt=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],tt=Math.pow(2,53)-1}).call(t,i(75))},function(n,t,i){"use strict";var f,e;Object.defineProperty(t,"__esModule",{value:!0});var o=i(9),r=i(25),u=i(1);i(453);!function(n){n[n.UP=0]="UP";n[n.RIGHT=1]="RIGHT";n[n.DOWN=2]="DOWN";n[n.LEFT=3]="LEFT"}(f=t.ArrowDirection||(t.ArrowDirection={}));e=function(){function n(){this.labelOrTitleRequired=!0;this.logger=new o.Logger(this)}return n.prototype.withOwner=function(n){return this.eventOwner=n,this},n.prototype.withElement=function(n){return this.element=n instanceof HTMLElement?u.$$(n):n,this},n.prototype.withLabel=function(n){return this.label=n,this},n.prototype.withoutLabelOrTitle=function(){return this.labelOrTitleRequired=!1,this},n.prototype.withTitle=function(n){return this.title=n,this},n.prototype.withSelectAction=function(n){return this.clickAction=n,this.enterKeyboardAction=n,this},n.prototype.withClickAction=function(n){return this.clickAction=n,this},n.prototype.withEnterKeyboardAction=function(n){return this.enterKeyboardAction=n,this},n.prototype.withFocusAndMouseEnterAction=function(n){return this.focusAction=n,this.mouseenterAction=n,this},n.prototype.withFocusAction=function(n){return this.focusAction=n,this},n.prototype.withMouseEnterAction=function(n){return this.mouseenterAction=n,this},n.prototype.withBlurAndMouseLeaveAction=function(n){return this.mouseleaveAction=n,this.blurAction=n,this},n.prototype.withMouseLeaveAction=function(n){return this.mouseleaveAction=n,this},n.prototype.withBlurAction=function(n){return this.blurAction=n,this},n.prototype.withArrowsAction=function(n){return this.arrowsAction=n,this},n.prototype.withRole=function(n){return this.role=n,this},n.prototype.build=function(){return this.element||(this.element=u.$$("div")),this.ensureCorrectRole(),this.ensureCorrectLabelOrTitle(),this.ensureSelectAction(),this.ensureUnselectAction(),this.ensureMouseenterAndFocusAction(),this.ensureMouseleaveAndBlurAction(),this.ensureArrowsAction(),this.ensureDifferentiationBetweenKeyboardAndMouseFocus(),this},n.prototype.ensureDifferentiationBetweenKeyboardAndMouseFocus=function(){var n=this;u.$$(this.element).addClass("coveo-accessible-button");u.$$(this.element).on("mouseup",function(){return u.$$(n.element).addClass("coveo-accessible-button-pressed")});u.$$(this.element).on("focus",function(){u.$$(n.element).removeClass("coveo-accessible-button-pressed")})},n.prototype.ensureCorrectRole=function(){this.element.getAttribute("role")||this.element.setAttribute("role",this.role||"button")},n.prototype.ensureCorrectLabelOrTitle=function(){if(this.labelOrTitleRequired)return this.label||this.title?this.title?void this.element.setAttribute("title",this.title):void this.element.setAttribute("aria-label",this.label):void this.logger.error("Missing a label or title to create an accessible button!")},n.prototype.ensureTabIndex=function(){this.element.setAttribute("tabindex","0")},n.prototype.ensureSelectAction=function(){var n=this;this.enterKeyboardAction&&(this.ensureTabIndex(),this.bindEvent("keyup",r.KeyboardUtils.keypressAction(r.KEYBOARD.ENTER,function(t){return n.enterKeyboardAction(t)})),this.bindEvent("keydown",r.KeyboardUtils.keypressAction(r.KEYBOARD.SPACEBAR,function(n){n.target instanceof HTMLInputElement||n.preventDefault()})),this.bindEvent("keyup",r.KeyboardUtils.keypressAction(r.KEYBOARD.SPACEBAR,function(t){t.target instanceof HTMLInputElement||n.enterKeyboardAction(t)})));this.clickAction&&this.bindEvent("click",this.clickAction)},n.prototype.ensureUnselectAction=function(){this.blurAction&&this.bindEvent("blur",this.blurAction);this.mouseleaveAction&&this.bindEvent("mouseleave",this.mouseleaveAction)},n.prototype.ensureMouseenterAndFocusAction=function(){this.mouseenterAction&&this.bindEvent("mouseenter",this.mouseenterAction);this.focusAction&&this.bindEvent("focus",this.focusAction)},n.prototype.ensureMouseleaveAndBlurAction=function(){this.mouseleaveAction&&this.bindEvent("mouseleave",this.mouseleaveAction);this.blurAction&&this.bindEvent("blur",this.blurAction)},n.prototype.ensureArrowsAction=function(){var n=this;this.arrowsAction&&(this.bindEvent("keyup",r.KeyboardUtils.keypressAction(r.KEYBOARD.UP_ARROW,function(t){return n.arrowsAction(f.UP,t)})),this.bindEvent("keyup",r.KeyboardUtils.keypressAction(r.KEYBOARD.RIGHT_ARROW,function(t){return n.arrowsAction(f.RIGHT,t)})),this.bindEvent("keyup",r.KeyboardUtils.keypressAction(r.KEYBOARD.DOWN_ARROW,function(t){return n.arrowsAction(f.DOWN,t)})),this.bindEvent("keyup",r.KeyboardUtils.keypressAction(r.KEYBOARD.LEFT_ARROW,function(t){return n.arrowsAction(f.LEFT,t)})))},n.prototype.bindEvent=function(n,t){this.eventOwner?this.eventOwner.on(this.element,n,t):u.$$(this.element).on(n,t)},n}();t.AccessibleButton=e},function(n,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=i(0),u=function(){function n(){}return n.addClassToSVGInContainer=function(t,i){var r=t.querySelector("svg");r.setAttribute("class",""+n.getClass(r)+i)},n.removeClassFromSVGInContainer=function(t,i){var r=t.querySelector("svg");r.setAttribute("class",n.getClass(r).replace(i,""))},n.addStyleToSVGInContainer=function(n,t){var i=n.querySelector("svg");r.each(t,function(n,t){i.style[t]=n})},n.addAttributesToSVGInContainer=function(n,t){var i=n.querySelector("svg");r.each(t,function(n,t){i.setAttribute(t,n)})},n.getClass=function(n){var t=n.getAttribute("class");return t?t+" ":""},n}();t.SVGDom=u},function(n,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function n(){}return n.beforeInitialization="beforeInitialization",n.afterComponentsInitialization="afterComponentsInitialization",n.restoreHistoryState="restoreHistoryState",n.afterInitialization="afterInitialization",n.nuke="nuke",n}();t.InitializationEvents=i},function(n,t,i){"use strict";var o=this&&this.__extends||function(){var n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])};return function(t,i){function r(){this.constructor=t}n(t,i);t.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),e;Object.defineProperty(t,"__esModule",{value:!0});var f=i(1),s=i(5),u=i(4),h=i(36),r=i(0);t.MODEL_EVENTS={PREPROCESS:"preprocess",CHANGE_ONE:"change:",CHANGE:"change",RESET:"reset",ALL:"all"};e=function(n){function t(t,i,r){var f=n.call(this,t,i)||this;return f.eventNameSpace=i,f.defaultAttributes=u.Utils.extendDeep(f.defaultAttributes,r),f.attributes=r,f.logger.debug("Creating model"),f}return o(t,n),t.prototype.set=function(n,t,i){var r={};r[n]=t;this.setMultiple(r,i)},t.prototype.getAttributes=function(){var t=this,n={};return r.each(this.attributes,function(i,f){r.isObject(i)?u.Utils.objectEqual(i,t.defaultAttributes[f])||(n[f]=u.Utils.extendDeep({},i)):i!=t.defaultAttributes[f]&&(n[f]=i)}),n},t.prototype.setMultiple=function(n,t){var i=this,u=!1;this.preprocessEvent(n);r.each(n,function(n,r){t&&t.customAttribute||i.checkIfAttributeExists(r);n=i.parseToCorrectType(r,n);(t&&!t.validateType||i.typeIsValid(r,n))&&i.checkIfAttributeChanged(r,n)&&(i.attributes[r]=n,u=!0,null!=t&&t.silent||i.attributeHasChangedEvent(r))});!u||null!=t&&t.silent||(this.attributesHasChangedEvent(),this.anyEvent())},t.prototype.setNewDefault=function(n,t,i){i&&i.customAttribute||this.checkIfAttributeExists(n);this.defaultAttributes[n]=t},t.prototype.setDefault=function(n){this.set(n,this.defaultAttributes[n])},t.prototype.get=function(n){return void 0==n?this.attributes:this.attributes[n]},t.prototype.getDefault=function(n){return void 0==n?this.defaultAttributes:this.defaultAttributes[n]},t.prototype.reset=function(){this.setMultiple(this.defaultAttributes);this.modelWasResetEvent()},t.prototype.registerNewAttribute=function(n,t){this.defaultAttributes[n]=t;this.attributes[n]=t},t.prototype.getEventName=function(n){return this.eventNameSpace+":"+n},t.prototype.attributesHasChangedEvent=function(){f.$$(this.element).trigger(this.getEventName(t.eventTypes.change),this.createAttributesChangedArgument())},t.prototype.attributeHasChangedEvent=function(n){f.$$(this.element).trigger(this.getEventName(t.eventTypes.changeOne)+n,this.createAttributeChangedArgument(n))},t.prototype.preprocessEvent=function(n){f.$$(this.element).trigger(this.getEventName(t.eventTypes.preprocess),n)},t.prototype.modelWasResetEvent=function(){f.$$(this.element).trigger(this.getEventName(t.eventTypes.reset),this.createModelChangedArgument())},t.prototype.anyEvent=function(){f.$$(this.element).trigger(this.getEventName(t.eventTypes.all),this.createModelChangedArgument())},t.prototype.createAttributeChangedArgument=function(n){return{attribute:n,value:this.attributes[n]}},t.prototype.createAttributesChangedArgument=function(){return{attributes:this.attributes}},t.prototype.createModelChangedArgument=function(){return{model:this}},t.prototype.checkIfAttributeExists=function(n){s.Assert.check(r.has(this.attributes,n),"The attribute "+n+" is not registered.")},t.prototype.typeIsValid=function(n,t){return!(!u.Utils.isNullOrUndefined(this.attributes[n])&&!u.Utils.isUndefined(t))||(r.isNumber(this.attributes[n])?this.validateNumber(n,t):r.isBoolean(this.attributes[n])?this.validateBoolean(n,t):this.validateOther(n,t))},t.prototype.validateNumber=function(n,t){return!(!r.isNumber(t)||isNaN(t))||(this.logger.error("Non-matching type for "+n+". Expected number and got "+t),!1)},t.prototype.validateBoolean=function(n,t){return!(!r.isBoolean(t)&&void 0!==!u.Utils.parseBooleanIfNotUndefined(t))||(this.logger.error("Non matching type for "+n+". Expected boolean and got "+t),!1)},t.prototype.validateOther=function(n,t){if(!u.Utils.isNullOrUndefined(this.defaultAttributes[n])){var i=typeof t,r=typeof this.defaultAttributes[n];if(i!==r)return this.logger.error("Non-matching type for "+n+". Expected "+r+" and got "+i),!1}return!0},t.prototype.parseToCorrectType=function(n,t){return r.isNumber(this.attributes[n])?parseInt(t,10):r.isBoolean(this.attributes[n])?r.isBoolean(t)?t:u.Utils.parseBooleanIfNotUndefined(t):t},t.prototype.checkIfAttributeChanged=function(n,t){var i=this.attributes[n];return r.isNumber(i)||r.isString(i)||r.isBoolean(i)?i!==t:r.isArray(i)?!u.Utils.arrayEqual(i,t):!r.isObject(i)||!u.Utils.objectEqual(i,t)},t.prototype.debugInfo=function(){return null},t.eventTypes={preprocess:"preprocess",changeOne:"change:",change:"change",reset:"reset",all:"all"},t}(h.BaseComponent);t.Model=e},function(n,t,i){"use strict";var k=this&&this.__extends||function(){var n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])};return function(t,i){function r(){this.constructor=t}n(t,i);t.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),c=this&&this.__assign||Object.assign||function(n){for(var t,r,i=1,u=arguments.length;i<u;i++){t=arguments[i];for(r in t)Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},rt=this&&this.__awaiter||function(n,t,i,r){return new(i||(i=Promise))(function(u,f){function o(n){try{e(r.next(n))}catch(n){f(n)}}function s(n){try{e(r.throw(n))}catch(n){f(n)}}function e(n){n.done?u(n.value):new i(function(t){t(n.value)}).then(o,s)}e((r=r.apply(n,t||[])).next())})},ut=this&&this.__generator||function(n,t){function f(n){return function(t){return s([n,t])}}function s(f){if(e)throw new TypeError("Generator is already executing.");for(;r;)try{if(e=1,u&&(i=u[2&f[0]?"return":f[0]?"throw":"next"])&&!(i=i.call(u,f[1])).done)return i;switch(u=0,i&&(f=[0,i.value]),f[0]){case 0:case 1:i=f;break;case 4:return r.label++,{value:f[1],done:!1};case 5:r.label++;u=f[1];f=[0];continue;case 7:f=r.ops.pop();r.trys.pop();continue;default:if(i=r.trys,!(i=i.length>0&&i[i.length-1])&&(6===f[0]||2===f[0])){r=0;continue}if(3===f[0]&&(!i||f[1]>i[0]&&f[1]<i[3])){r.label=f[1];break}if(6===f[0]&&r.label<i[1]){r.label=i[1];i=f;break}if(i&&r.label<i[2]){r.label=i[2];r.ops.push(f);break}i[2]&&r.ops.pop();r.trys.pop();continue}f=t.call(n,r)}catch(n){f=[6,n];u=0}finally{e=i=0}if(5&f[0])throw f[1];return{value:f[0]?f[1]:void 0,done:!0}}var e,u,i,o,r={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:f(0),"throw":f(1),"return":f(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o},d,b;Object.defineProperty(t,"__esModule",{value:!0});d=i(333);i(336);i(337);i(338);i(339);var e=i(0),ft=i(155),g=i(156),et=i(340),ot=i(44),l=i(17),h=i(11),st=i(99),nt=i(5),ht=i(28),ct=i(78),a=i(18),f=i(13),v=i(53),r=i(1),lt=i(42),o=i(4),y=i(10),at=i(106),vt=i(341),s=i(36),u=i(8),p=i(176),yt=i(45),pt=i(159),wt=i(206),bt=i(448),w=i(54),tt=i(449),kt=i(450),dt=i(47),gt=i(451),it=function(n){function t(i,r,e,o){var s,h;return void 0===o&&(o=window),s=n.call(this,i,t.ID)||this,s.element=i,s.options=r,s.analyticsOptions=e,s._window=o,s.isResultsPerPageModifiedByPipeline=!1,s.options=u.ComponentOptions.initComponentOptions(i,t,r),nt.Assert.exists(i),nt.Assert.exists(s.options),s.root=i,s.setupQueryMode(),s.queryStateModel=new f.QueryStateModel(i),s.componentStateModel=new ct.ComponentStateModel(i),s.componentOptionsModel=new ht.ComponentOptionsModel(i),s.usageAnalytics=s.initializeAnalytics(),s.queryController=new ot.QueryController(i,s.options,s.usageAnalytics,s),s.facetValueStateHandler=new kt.FacetValueStateHandler(s),h={element:s.element,queryStateModel:s.queryStateModel,queryController:s.queryController,usageAnalytics:s.usageAnalytics},new wt.MissingTermManager(h),s.omniboxAnalytics=new bt.OmniboxAnalytics,s.setupEventsHandlers(),s.setupHistoryManager(i,o),s.setupScrollRestorer(i,o,s.queryStateModel),s.element.style.display=i.style.display||"block",s.setupDebugInfo(),s.setupResponsiveComponents(),s.ariaLive=new vt.AriaLive(i),s}return k(t,n),Object.defineProperty(t.prototype,"resultsPerPage",{get:function(){return null!=this.queryPipelineConfigurationForResultsPerPage&&0!=this.queryPipelineConfigurationForResultsPerPage?this.queryPipelineConfigurationForResultsPerPage:null!=this.queryController.options.resultsPerPage&&0!=this.queryController.options.resultsPerPage?this.queryController.options.resultsPerPage:(this.logger.warn("Results per page is incoherent in the search interface.",this),10)},set:function(n){this.options.resultsPerPage=this.queryController.options.resultsPerPage=n},enumerable:!0,configurable:!0}),t.prototype.getOmniboxAnalytics=function(){return this.omniboxAnalytics},t.prototype.attachComponent=function(n,t){this.getComponents(n).push(t)},t.prototype.detachComponent=function(n,t){var i=this.getComponents(n),r=e.indexOf(i,t);r>-1&&i.splice(r,1)},t.prototype.getBindings=function(){return{root:this.root,queryStateModel:this.queryStateModel,queryController:this.queryController,searchInterface:this,componentStateModel:this.componentStateModel,componentOptionsModel:this.componentOptionsModel,usageAnalytics:this.usageAnalytics}},t.prototype.getQueryContext=function(){var t,r=this.queryController.getLastQuery(),n,i;return r.context?t=r.context:(n=this.getComponents("PipelineContext"),n&&!e.isEmpty(n)&&(i=e.chain(n).map(function(n){return n.getContext()}).reduce(function(n,t){return c({},n,t)},{}).value(),e.isEmpty(i)||(t=i))),t},t.prototype.getComponents=function(n){return null==this.attachedComponents&&(this.attachedComponents={}),n in this.attachedComponents||(this.attachedComponents[n]=[]),this.attachedComponents[n]},t.prototype.detachComponentsInside=function(n){var t=this;e.each(this.attachedComponents,function(i,r){i.filter(function(t){return n!=t.element&&n.contains(t.element)}).forEach(function(n){return t.detachComponent(r,n)})})},t.prototype.initializeAnalytics=function(){var n=s.BaseComponent.getComponentRef("Analytics");return n?n.create(this.element,this.analyticsOptions,this.getBindings()):new at.NoopAnalyticsClient},t.prototype.setupHistoryManager=function(n,t){var i=this;return this.options.enableHistory?this.options.useLocalStorageForHistory?void(this.historyManager=new g.LocalStorageHistoryController(n,t,this.queryStateModel,this.queryController)):void(this.historyManager=new ft.HistoryController(n,t,this.queryStateModel,this.queryController)):(this.historyManager=new et.NoopHistoryController,void r.$$(this.element).on(l.InitializationEvents.restoreHistoryState,function(){return i.queryStateModel.setMultiple(c({},i.queryStateModel.defaultAttributes))}))},t.prototype.setupQueryMode=function(){this.options.allowQueriesWithoutKeywords?this.initializeEmptyQueryAllowed():this.initializeEmptyQueryNotAllowed()},t.prototype.setupEventsHandlers=function(){var n=this,u=this.queryStateModel.getEventName(a.Model.eventTypes.preprocess),t,i;r.$$(this.element).on(u,function(t,i){return n.handlePreprocessQueryStateModel(i)});r.$$(this.element).on(h.QueryEvents.buildingQuery,function(t,i){return n.handleBuildingQuery(i)});r.$$(this.element).on(h.QueryEvents.querySuccess,function(t,i){return n.handleQuerySuccess(i)});r.$$(this.element).on(h.QueryEvents.queryError,function(t,i){return n.handleQueryError(i)});r.$$(this.element).on(l.InitializationEvents.afterComponentsInitialization,function(){return n.handleAfterComponentsInitialization()});t=this.queryStateModel.getEventName(a.Model.eventTypes.changeOne+f.QueryStateModel.attributesEnum.debug);r.$$(this.element).on(t,function(t,i){return n.handleDebugModeChange(i)});this.queryStateModel.registerNewAttribute(f.QueryStateModel.attributesEnum.fv,{});i=this.queryStateModel.getEventName(a.Model.eventTypes.changeOne+f.QueryStateModel.attributesEnum.quickview);r.$$(this.element).on(i,function(t,i){return n.handleQuickviewChanged(i)})},t.prototype.setupDebugInfo=function(){var n=this;this.options.enableDebugInfo&&setTimeout(function(){return new pt.Debug(n.element,n.getBindings())})},t.prototype.setupScrollRestorer=function(n,t,i){this.options.enableScrollRestoration&&(this.scrollRestorer=new gt.ScrollRestorer(n,i))},t.prototype.setupResponsiveComponents=function(){this.responsiveComponents=new w.ResponsiveComponents;this.responsiveComponents.setMediumScreenWidth(this.options.responsiveMediumBreakpoint);this.responsiveComponents.setSmallScreenWidth(this.options.responsiveSmallBreakpoint);this.responsiveComponents.setResponsiveMode(this.options.responsiveMode);this.ensureFacetsMobileMode()},t.prototype.ensureFacetsMobileMode=function(){var n=this;this.root.querySelector(".CoveoFacetsMobileMode")||i.e(3).then(function(){var f=i(85),e=f.FacetsMobileMode,t=r.$$("div"),u;r.$$(n.element).prepend(t.el);u=n.options.originalOptionsObject.FacetsMobileMode||{};new e(t.el,u,n.getBindings())}.bind(null,i)).catch(null)},t.prototype.handleDebugModeChange=function(n){var t=this;n.value&&!this.relevanceInspector&&this.options.enableDebugInfo&&i.e(0).then(function(){var u=i(235),f=u.RelevanceInspector,n=r.$$("btn");r.$$(t.element).prepend(n.el);t.relevanceInspector=new f(n.el,t.getBindings())}.bind(null,i)).catch(null)},t.prototype.handlePreprocessQueryStateModel=function(n){var r=this.queryStateModel.get(f.QueryStateModel.attributesEnum.tg),u=this.queryStateModel.get(f.QueryStateModel.attributesEnum.t),t=r,i=u;n&&void 0!==n.tg&&(n.tg=this.getTabGroupId(n.tg),t!=n.tg&&(n.t=n.t||f.QueryStateModel.defaultAttributes.t,n.sort=n.sort||f.QueryStateModel.defaultAttributes.sort,t=n.tg));n&&void 0!==n.t&&(n.t=this.getTabId(t,n.t),i!=n.t&&(n.sort=n.sort||f.QueryStateModel.defaultAttributes.sort,i=n.t));n&&void 0!==n.sort&&(n.sort=this.getSort(i,n.sort));n&&void 0!==n.quickview&&(n.quickview=this.getQuickview(n.quickview));!n||!n.fv||this instanceof b||this.facetValueStateHandler.handleFacetValueState(n)},t.prototype.getTabGroupId=function(n){var i=s.BaseComponent.getComponentRef("TabGroup"),t;if(i){if(t=this.getComponents(i.ID),n!=f.QueryStateModel.defaultAttributes.tg&&e.any(t,function(t){return!t.disabled&&n==t.options.id}))return n;if(t.length>0)return t[0].options.id}return f.QueryStateModel.defaultAttributes.tg},t.prototype.getTabId=function(n,t){var o=s.BaseComponent.getComponentRef("Tab"),h=s.BaseComponent.getComponentRef("TabGroup"),i,c,r,u;if(o){if(i=this.getComponents(o.ID),h&&n!=f.QueryStateModel.defaultAttributes.tg)return(c=this.getComponents(h.ID),r=e.find(c,function(t){return n==t.options.id}),t!=f.QueryStateModel.defaultAttributes.t&&e.any(i,function(n){return t==n.options.id&&r.isElementIncludedInTabGroup(n.element)}))?t:(u=e.find(i,function(n){return r.isElementIncludedInTabGroup(n.element)}),null!=u?u.options.id:f.QueryStateModel.defaultAttributes.t);if(t!=f.QueryStateModel.defaultAttributes.t&&e.any(i,function(n){return t==n.options.id}))return t;if(i.length>0)return i[0].options.id}return f.QueryStateModel.defaultAttributes.t},t.prototype.getSort=function(n,t){var h=s.BaseComponent.getComponentRef("Sort"),i,r,o;if(h){if(i=this.getComponents(h.ID),r=s.BaseComponent.getComponentRef("Tab"),r&&n!=f.QueryStateModel.defaultAttributes.t){var l=this.getComponents(r.ID),u=e.find(l,function(t){return n==t.options.id}),c=u.options.sort;return t!=f.QueryStateModel.defaultAttributes.sort&&e.any(i,function(n){return u.isElementIncludedInTab(n.element)&&n.match(t)})?t:null!=c?c.toString():(o=e.find(i,function(n){return u.isElementIncludedInTab(n.element)}),null!=o?o.options.sortCriteria[0].toString():f.QueryStateModel.defaultAttributes.sort)}if(t!=f.QueryStateModel.defaultAttributes.sort&&e.any(i,function(n){return n.match(t)}))return t;if(i.length>0)return i[0].options.sortCriteria[0].toString()}return f.QueryStateModel.defaultAttributes.sort},t.prototype.getQuickview=function(n){var t=s.BaseComponent.getComponentRef("Quickview"),i;return t&&(i=this.getComponents(t.ID),e.any(i,function(t){return t.getHashId()==n}))?n:f.QueryStateModel.defaultAttributes.quickview},t.prototype.handleQuickviewChanged=function(n){var r=s.BaseComponent.getComponentRef("Quickview"),i,t;r&&(i=this.getComponents(r.ID),""!=n.value?(t=e.partition(i,function(t){return t.getHashId()==n.value}),0!=t[0].length&&(e.first(t[0]).open(),e.each(e.tail(t[0]),function(n){return n.close()})),e.each(t[1],function(n){return n.close()})):e.each(i,function(n){n.close()}))},t.prototype.handleBuildingQuery=function(n){this.options.enableDuplicateFiltering&&(n.queryBuilder.enableDuplicateFiltering=!0);o.Utils.isNullOrUndefined(this.options.pipeline)||(n.queryBuilder.pipeline=this.options.pipeline);o.Utils.isNullOrUndefined(this.options.maximumAge)||(n.queryBuilder.maximumAge=this.options.maximumAge);o.Utils.isNullOrUndefined(this.options.resultsPerPage)||(n.queryBuilder.numberOfResults=this.options.resultsPerPage);o.Utils.isNullOrUndefined(this.options.excerptLength)||(n.queryBuilder.excerptLength=this.options.excerptLength);o.Utils.isNonEmptyString(this.options.expression)&&n.queryBuilder.constantExpression.add(this.options.expression);o.Utils.isNonEmptyString(this.options.filterField)&&(n.queryBuilder.filterField=this.options.filterField);o.Utils.isNonEmptyString(this.options.timezone)&&(n.queryBuilder.timezone=this.options.timezone);n.queryBuilder.enableCollaborativeRating=this.options.enableCollaborativeRating;n.queryBuilder.enableDuplicateFiltering=this.options.enableDuplicateFiltering;n.queryBuilder.allowQueriesWithoutKeywords=this.options.allowQueriesWithoutKeywords;var t=this.queryController.getEndpoint();null!=t&&t.options&&this.queryStateModel.get(f.QueryStateModel.attributesEnum.debug)&&(n.queryBuilder.maximumAge=0,n.queryBuilder.enableDebug=!0,n.queryBuilder.fieldsToExclude=["allmetadatavalues"],n.queryBuilder.fieldsToInclude=null)},t.prototype.handleQuerySuccess=function(n){var i=0==n.results.results.length,t;this.toggleSectionState("coveo-no-results",i);this.handlePossiblyModifiedNumberOfResultsInQueryPipeline(n);t=r.$$(this.element).find(".coveo-results-header");t&&r.$$(t).removeClass("coveo-query-error")},t.prototype.handlePossiblyModifiedNumberOfResultsInQueryPipeline=function(n){if(n&&n.query&&n.results){var i=n.query.numberOfResults,t=n.results.results.length,r=n.results.totalCountFiltered-n.query.firstResult===t,u=!r&&n.results.totalCountFiltered>t;i!=t&&u?(this.isResultsPerPageModifiedByPipeline=!0,this.queryPipelineConfigurationForResultsPerPage=t):(this.isResultsPerPageModifiedByPipeline=!1,this.queryPipelineConfigurationForResultsPerPage=null)}},t.prototype.handleQueryError=function(){this.toggleSectionState("coveo-no-results");var n=r.$$(this.element).find(".coveo-results-header");n&&r.$$(n).addClass("coveo-query-error")},t.prototype.handleAfterComponentsInitialization=function(){var n=this;e.each(this.attachedComponents,function(t){t.forEach(function(t){tt.FacetColumnAutoLayoutAdjustment.isAutoLayoutAdjustable(t)&&tt.FacetColumnAutoLayoutAdjustment.initializeAutoLayoutAdjustment(n.element,t)})});this.duplicatesFacets.length&&this.logger.warn("The following facets have duplicate id/field:",this.duplicatesFacets,"Ensure that each facet in your search interface has a unique id.")},Object.defineProperty(t.prototype,"duplicatesFacets",{get:function(){var n=[],t=dt.ComponentsTypes.getAllFacetsFromSearchInterface(this);return t.forEach(function(i){t.forEach(function(t){if(i!=t){i.options.id===t.options.id;return}})}),n},enumerable:!0,configurable:!0}),t.prototype.toggleSectionState=function(n,t){var h=this;void 0===t&&(t=!0);var u=r.$$(this.element).find(".coveo-facet-column"),f=r.$$(this.element).find(".coveo-results-column"),o=r.$$(this.element).find(".coveo-results-header"),i=r.$$(this.element).findAll(".coveo-facet-search-results"),s=r.$$(this.element).find(".coveo-recommendation-main-section");u&&r.$$(u).toggleClass(n,t&&!this.queryStateModel.atLeastOneFacetIsActive());f&&r.$$(f).toggleClass(n,t&&!this.queryStateModel.atLeastOneFacetIsActive());o&&r.$$(o).toggleClass(n,t&&!this.queryStateModel.atLeastOneFacetIsActive());s&&r.$$(s).toggleClass(n,t);i&&i.length>0&&e.each(i,function(i){r.$$(i).toggleClass(n,t&&!h.queryStateModel.atLeastOneFacetIsActive())})},t.prototype.initializeEmptyQueryAllowed=function(){new p.InitializationPlaceholder(this.element).withFullInitializationStyling().withAllPlaceholders()},t.prototype.initializeEmptyQueryNotAllowed=function(){var n=this,t=new p.InitializationPlaceholder(this.element).withEventToRemovePlaceholder(h.QueryEvents.newQuery).withFullInitializationStyling().withHiddenRootElement().withPlaceholderForFacets().withPlaceholderForResultList();r.$$(this.root).on(l.InitializationEvents.restoreHistoryState,function(){t.withVisibleRootElement();""==n.queryStateModel.get("q")&&t.withWaitingForFirstQueryMode()});r.$$(this.element).on(h.QueryEvents.doneBuildingQuery,function(t,i){if(!i.queryBuilder.containsEndUserKeywords()){var r=n.queryController.getLastQuery().q;o.Utils.isNonEmptyString(r)?(n.queryStateModel.set(f.QUERY_STATE_ATTRIBUTES.Q,r),i.queryBuilder.expression.add(r)):(n.logger.info("Query cancelled by the Search Interface","Configuration does not allow empty query",n,n.options),i.cancel=!0,n.queryStateModel.reset(),new p.InitializationPlaceholder(n.element).withEventToRemovePlaceholder(h.QueryEvents.newQuery).withFullInitializationStyling().withVisibleRootElement().withPlaceholderForFacets().withPlaceholderForResultList().withWaitingForFirstQueryMode())}})},t.ID="SearchInterface",t.options={enableHistory:u.ComponentOptions.buildBooleanOption({defaultValue:!1}),enableAutomaticResponsiveMode:u.ComponentOptions.buildBooleanOption({defaultValue:!0}),useLocalStorageForHistory:u.ComponentOptions.buildBooleanOption({defaultValue:!1}),resultsPerPage:u.ComponentOptions.buildNumberOption({defaultValue:10,min:0}),excerptLength:u.ComponentOptions.buildNumberOption({defaultValue:200,min:0}),expression:u.ComponentOptions.buildQueryExpressionOption({defaultValue:""}),filterField:u.ComponentOptions.buildFieldOption({defaultValue:""}),hideUntilFirstQuery:u.ComponentOptions.buildBooleanOption({deprecated:"Exposed for legacy reasons. The loading animation is now composed of placeholders, and this option is obsolete."}),firstLoadingAnimation:u.ComponentOptions.buildChildHtmlElementOption({deprecated:"Exposed for legacy reasons. The loading animation is now composed of placeholder, and this options is obsolete."}),autoTriggerQuery:u.ComponentOptions.buildBooleanOption({defaultValue:!0}),allowQueriesWithoutKeywords:u.ComponentOptions.buildBooleanOption({defaultValue:!0}),endpoint:u.ComponentOptions.buildCustomOption(function(n){return null!=n&&n in v.SearchEndpoint.endpoints?v.SearchEndpoint.endpoints[n]:null},{defaultFunction:function(){return v.SearchEndpoint.endpoints.default}}),timezone:u.ComponentOptions.buildStringOption({defaultFunction:function(){return d.determine().name()}}),enableDebugInfo:u.ComponentOptions.buildBooleanOption({defaultValue:!0}),enableCollaborativeRating:u.ComponentOptions.buildBooleanOption({defaultValue:!1}),enableDuplicateFiltering:u.ComponentOptions.buildBooleanOption({defaultValue:!1}),pipeline:u.ComponentOptions.buildStringOption(),maximumAge:u.ComponentOptions.buildNumberOption(),searchPageUri:u.ComponentOptions.buildStringOption(),responsiveMediumBreakpoint:u.ComponentOptions.buildNumberOption({defaultValue:w.MEDIUM_SCREEN_WIDTH,depend:"enableAutomaticResponsiveMode"}),responsiveSmallBreakpoint:u.ComponentOptions.buildNumberOption({defaultValue:w.SMALL_SCREEN_WIDTH,depend:"enableAutomaticResponsiveMode"}),responsiveMode:u.ComponentOptions.buildCustomOption(function(n){return"auto"===n||"small"===n||"medium"===n||"large"===n?n:(console.warn(n+" is not a proper value for responsiveMode, auto has been used instead."),"auto")},{defaultValue:"auto"}),enableScrollRestoration:u.ComponentOptions.buildBooleanOption({defaultValue:!1}),modalContainer:u.ComponentOptions.buildSelectorOption({defaultFunction:function(n){return n.ownerDocument.body}})},t.SMALL_INTERFACE_CLASS_NAME="coveo-small-search-interface",t}(yt.RootComponent);t.SearchInterface=it;b=function(n){function t(i,f,e,o){void 0===o&&(o=window);var s=n.call(this,i,u.ComponentOptions.initComponentOptions(i,t,f),e,o)||this;return s.element=i,s.options=f,s.analyticsOptions=e,s._window=o,r.$$(s.root).on(h.QueryEvents.newQuery,function(n,t){return s.handleRedirect(n,t)}),s}return k(t,n),t.prototype.handleRedirect=function(n,t){if(!1!==t.shouldRedirectStandaloneSearchbox){var i={searchPageUri:this.options.searchPageUri,cancel:!1};r.$$(this.root).trigger(st.StandaloneSearchInterfaceEvents.beforeRedirect,i);i.cancel||(t.cancel=!0,this.searchboxIsEmpty()&&!this.options.redirectIfEmpty||this.doRedirect(i.searchPageUri))}},t.prototype.doRedirect=function(n){return rt(this,void 0,void 0,function(){var i,t,r;return ut(this,function(u){switch(u.label){case 0:return i=this.encodedHashValues,[4,this.queryController.fetchQueryExecutionPlan()];case 1:return t=u.sent(),(r=t&&t.redirectionURL)?(this.redirectToURL(r),[2]):[2,this.redirectToSearchPage(n,i)]}})})},t.prototype.redirectToURL=function(n){this.usageAnalytics.logCustomEvent(y.analyticsActionCauseList.triggerRedirect,{redirectedTo:n,query:this.queryStateModel.get(f.QueryStateModel.attributesEnum.q)},this.element);this._window.location.assign(n)},t.prototype.redirectToSearchPage=function(n,t){var r=this,i=document.createElement("a");i.href=n;i.href=i.href;var u=0==i.pathname.indexOf("/")?i.pathname:"/"+i.pathname,f=i.hash?i.hash+"&":"#",e=t||this.encodedHashValues;setTimeout(function(){r._window.location.href=i.protocol+"//"+i.host+u+i.search+f+e},0)},Object.defineProperty(t.prototype,"encodedHashValues",{get:function(){var n=c({},this.modelAttributesToIncludeInUrl,this.uaCausedByAttribute,this.uaMetadataAttribute);return lt.HashUtils.encodeValues(n)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"modelAttributesToIncludeInUrl",{get:function(){return this.historyManager instanceof g.LocalStorageHistoryController?{}:this.queryStateModel.getAttributes()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"uaCausedByAttribute",{get:function(){var n=this.uaCausedBy;return n?{firstQueryCause:n}:{}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"uaCausedBy",{get:function(){var n=this.usageAnalytics.getCurrentEventCause();return n===y.analyticsActionCauseList.searchboxSubmit.name?y.analyticsActionCauseList.searchFromLink.name:n},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"uaMetadataAttribute",{get:function(){var n=this.usageAnalytics.getCurrentEventMeta();return n&&!e.isEmpty(n)?{firstQueryMeta:n}:{}},enumerable:!0,configurable:!0}),t.prototype.searchboxIsEmpty=function(){return o.Utils.isEmptyString(this.queryStateModel.get(f.QueryStateModel.attributesEnum.q))},t.ID="StandaloneSearchInterface",t.options={redirectIfEmpty:u.ComponentOptions.buildBooleanOption({defaultValue:!0})},t}(it);t.StandaloneSearchInterface=b},function(n,t,i){"use strict";function r(n){for(var i in n)t.hasOwnProperty(i)||(t[i]=n[i])}Object.defineProperty(t,"__esModule",{value:!0});window.Promise instanceof Function||i(300);var u=i(210);t._=u.underscoreInstance;r(i(302));r(i(66));r(i(329));r(i(101));r(i(154));r(i(204));r(i(332));r(i(457));r(i(73))},function(n,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=i(5),f=i(4),u=i(0),e=function(){function n(){}return n.createGuid=function(){var t,i=!1;if("undefined"!=typeof crypto&&void 0!==crypto.getRandomValues)try{t=n.generateWithCrypto();i=!0}catch(n){i=!1}return i||(t=n.generateWithRandom()),t},n.generateWithRandom=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(n){var t=16*Math.random()|0;return("x"==n?t:3&t|8).toString(16)})},n.generateWithCrypto=function(){var n=new Uint16Array(8),t;return crypto.getRandomValues(n),t=function(n){for(var t=n.toString(16);t.length<4;)t="0"+t;return t},t(n[0])+t(n[1])+"-"+t(n[2])+"-"+function(n,t){return t+n.slice(1)}(t(n[3]),4)+"-"+t(n[4])+"-"+t(n[5])+t(n[6])+t(n[7])},n.setStateObjectOnQueryResults=function(t,i){n.setPropertyOnResults(i,"state",t)},n.setStateObjectOnQueryResult=function(t,i){n.setPropertyOnResult(i,"state",t)},n.setSearchInterfaceObjectOnQueryResult=function(t,i){n.setPropertyOnResult(i,"searchInterface",t)},n.setIndexAndUidOnQueryResults=function(t,i,u,f,e){r.Assert.exists(t);r.Assert.exists(i);var o=t.firstResult;n.setPropertyOnResults(i,"queryUid",u);n.setPropertyOnResults(i,"pipeline",f);n.setPropertyOnResults(i,"splitTestRun",e);n.setPropertyOnResults(i,"index",o,function(){return++o})},n.setTermsToHighlightOnQueryResults=function(t,i){n.setPropertyOnResults(i,"termsToHighlight",i.termsToHighlight);n.setPropertyOnResults(i,"phrasesToHighlight",i.phrasesToHighlight)},n.splitFlags=function(n,t){return void 0===t&&(t=";"),r.Assert.exists(n),n.split(t)},n.isAttachment=function(t){return u.contains(n.splitFlags(t.flags),"IsAttachment")},n.containsAttachment=function(t){return u.contains(n.splitFlags(t.flags),"ContainsAttachment")},n.hasHTMLVersion=function(t){return u.contains(n.splitFlags(t.flags),"HasHtmlVersion")},n.hasThumbnail=function(t){return u.contains(n.splitFlags(t.flags),"HasThumbnail")},n.hasExcerpt=function(n){return void 0!=n.excerpt&&""!=n.excerpt},n.getAuthor=function(n){return n.raw.author},n.getUriHash=function(n){return n.raw.urihash},n.getObjectType=function(n){return n.raw.objecttype},n.getCollection=function(n){return n.raw.collection||"default"},n.getSource=function(n){return n.raw.source},n.getLanguage=function(n){return n.raw.language},n.getPermanentId=function(n){var t,i,r=f.Utils.getFieldValue(n,"permanentid");return r?(i="permanentid",t=r):(i="urihash",t=f.Utils.getFieldValue(n,"urihash")),{fieldValue:t,fieldUsed:i}},n.quoteAndEscapeIfNeeded=function(t,i){return void 0===i&&(i=!1),r.Assert.isString(t),!i&&(n.isAtomicString(t)||n.isRangeString(t)||n.isRangeWithoutOuterBoundsString(t))?t:n.quoteAndEscape(t)},n.quoteAndEscape=function(t){return r.Assert.isString(t),'"'+n.escapeString(t)+'"'},n.escapeString=function(n){return r.Assert.isString(n),n.replace(/"/g," ")},n.isAtomicString=function(n){return r.Assert.isString(n),/^\d+(\.\d+)?$|^[\d\w]+$/.test(n)},n.isRangeString=function(n){return r.Assert.isString(n),/^\d+(\.\d+)?\.\.\d+(\.\d+)?$|^\d{4}\/\d{2}\/\d{2}@\d{2}:\d{2}:\d{2}\.\.\d{4}\/\d{2}\/\d{2}@\d{2}:\d{2}:\d{2}$/.test(n)},n.isRangeWithoutOuterBoundsString=function(n){return r.Assert.isString(n),/^\d+(\.\d+)?$|^\d{4}\/\d{2}\/\d{2}@\d{2}:\d{2}:\d{2}$/.test(n)},n.buildFieldExpression=function(t,i,f,e){return void 0===e&&(e=!1),r.Assert.isNonEmptyString(t),r.Assert.stringStartsWith(t,"@"),r.Assert.isNonEmptyString(i),r.Assert.isLargerOrEqualsThan(1,f.length),1==f.length?t+i+n.quoteAndEscapeIfNeeded(f[0],e):t+i+"("+u.map(f,function(t){return n.quoteAndEscapeIfNeeded(t,e)}).join(",")+")"},n.buildFieldNotEqualExpression=function(t,i,f){return void 0===f&&(f=!1),r.Assert.isNonEmptyString(t),r.Assert.stringStartsWith(t,"@"),r.Assert.isLargerOrEqualsThan(1,i.length),"(NOT "+(1==i.length?t+"=="+n.quoteAndEscapeIfNeeded(i[0],f):t+"==("+u.map(i,function(t){return n.quoteAndEscapeIfNeeded(t,f)}).join(",")+")")+")"},n.setPropertyOnResults=function(t,i,r,f){u.each(t.results,function(t){n.setPropertyOnResult(t,i,r);r=f?f():r})},n.setPropertyOnResult=function(n,t,i){n[t]=i;u.each(n.childResults,function(n){n[t]=i});f.Utils.isNullOrUndefined(n.parentResult)||(n.parentResult[t]=i)},n.isStratusAgnosticField=function(n,t){var u=/^(@?)(sys)?(.*)/i,i=u.exec(n),r=u.exec(t);return!(!i||!r)&&(i[1]+i[3]).toLowerCase()==(r[1]+r[3]).toLowerCase()},n}();t.QueryUtils=e},function(n,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=i(5),f=i(1),e=i(9),o=i(387),u=i(0),s=function(){function n(){}return n.javascriptEncode=function(n){return r.Assert.isString(n),n=n.replace(/\\/g,"\\\\"),n=n.replace(/'/g,"\\'"),n=n.replace(/"/g,'\\"')},n.htmlEncode=function(n){r.Assert.isString(n);var t=f.$$("div");return t.text(n),t.el.innerHTML},n.splice=function(n,t,i,r){return n.slice(0,t)+r+n.slice(t+Math.abs(i))},n.removeMiddle=function(t,i,r){if(t.length<i)return t;var u=t.length-i,f=Math.floor(i/2);return n.splice(t,f,u,r)},n.regexEncode=function(n){return r.Assert.isString(n),n.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")},n.stringToRegex=function(t,i){void 0===i&&(i=!1);r.Assert.isString(t);var f=n.regexEncode(t);return i?u.map(f,function(t){var i=u.find(n.accented,function(n){return null!=t.match(n)});return i?i.source:t}).join(""):f},n.wildcardsToRegex=function(t,i){void 0===i&&(i=!1);r.Assert.isString(t);var u=n.stringToRegex(t,i);return u=u.replace(/\\\*/,".*"),u=u.replace(/\\\?/,".")},n.getHighlights=function(n,t,i){for(var r,f=[];r=t.exec(n);){var e=r[2],o=r[1],s=r.index+o.length;if(f.push({offset:s,length:e.length,dataHighlightGroupTerm:i}),!t.global)break}if(!u.isEmpty(f))return f},n.encodeCarriageReturn=function(n){return r.Assert.isString(n),n.replace(/\n/g,"<br/>")},n.equalsCaseInsensitive=function(n,t){return n.toLowerCase()==t.toLowerCase()},n.match=function(n,t){for(var i,r=[];null!==(i=t.exec(n));)r.push(i);return r},n.hashCode=function(n){for(var t=0,r=n.length,i=0;i<r;i++)t=(t<<5)-t+n.charCodeAt(i),t&=t;return t.toString(16)},n.latinize=function(n){return o.latinize(n)},n.capitalizeFirstLetter=function(n){return n.charAt(0).toUpperCase()+n.slice(1)},n.buildStringTemplateFromResult=function(t,i){var r=this;return t?t.replace(/\$\{(.*?)\}/g,function(t){var f=t.substring(2,t.length-1),u=n.readFromObject(i,f);return u||(u=n.readFromObject(window,f)),u||new e.Logger(r).warn(f+" used in the ResultLink template is undefined for this result: "+i.title),u||t}):""},n.readFromObject=function(n,t){var i=t.indexOf("."),r;return n&&-1!==i?(r=t.substring(i+1),t=t.substring(0,i),this.readFromObject(n[t],r)):n?n[t]:void 0},n.accented={A:/[Aa\xaa\xc0-\xc5\xe0-\xe5\u0100-\u0105\u01cd\u01ce\u0200-\u0203\u0226\u0227\u1d2c\u1d43\u1e00\u1e01\u1e9a\u1ea0-\u1ea3\u2090\u2100\u2101\u213b\u249c\u24b6\u24d0\u3371-\u3374\u3380-\u3384\u3388\u3389\u33a9-\u33af\u33c2\u33ca\u33df\u33ff\uff21\uff41]/g,B:/[Bb\u1d2e\u1d47\u1e02-\u1e07\u212c\u249d\u24b7\u24d1\u3374\u3385-\u3387\u33c3\u33c8\u33d4\u33dd\uff22\uff42]/g,C:/[Cc\xc7\xe7\u0106-\u010d\u1d9c\u2100\u2102\u2103\u2105\u2106\u212d\u216d\u217d\u249e\u24b8\u24d2\u3376\u3388\u3389\u339d\u33a0\u33a4\u33c4-\u33c7\uff23\uff43]/g,D:/[Dd\u010e\u010f\u01c4-\u01c6\u01f1-\u01f3\u1d30\u1d48\u1e0a-\u1e13\u2145\u2146\u216e\u217e\u249f\u24b9\u24d3\u32cf\u3372\u3377-\u3379\u3397\u33ad-\u33af\u33c5\u33c8\uff24\uff44]/g,E:/[Ee\xc8-\xcb\xe8-\xeb\u0112-\u011b\u0204-\u0207\u0228\u0229\u1d31\u1d49\u1e18-\u1e1b\u1eb8-\u1ebd\u2091\u2121\u212f\u2130\u2147\u24a0\u24ba\u24d4\u3250\u32cd\u32ce\uff25\uff45]/g,F:/[Ff\u1da0\u1e1e\u1e1f\u2109\u2131\u213b\u24a1\u24bb\u24d5\u338a-\u338c\u3399\ufb00-\ufb04\uff26\uff46]/g,G:/[Gg\u011c-\u0123\u01e6\u01e7\u01f4\u01f5\u1d33\u1d4d\u1e20\u1e21\u210a\u24a2\u24bc\u24d6\u32cc\u32cd\u3387\u338d-\u338f\u3393\u33ac\u33c6\u33c9\u33d2\u33ff\uff27\uff47]/g,H:/[Hh\u0124\u0125\u021e\u021f\u02b0\u1d34\u1e22-\u1e2b\u1e96\u210b-\u210e\u24a3\u24bd\u24d7\u32cc\u3371\u3390-\u3394\u33ca\u33cb\u33d7\uff28\uff48]/g,I:/[Ii\xcc-\xcf\xec-\xef\u0128-\u0130\u0132\u0133\u01cf\u01d0\u0208-\u020b\u1d35\u1d62\u1e2c\u1e2d\u1ec8-\u1ecb\u2071\u2110\u2111\u2139\u2148\u2160-\u2163\u2165-\u2168\u216a\u216b\u2170-\u2173\u2175-\u2178\u217a\u217b\u24a4\u24be\u24d8\u337a\u33cc\u33d5\ufb01\ufb03\uff29\uff49]/g,J:/[Jj\u0132-\u0135\u01c7-\u01cc\u01f0\u02b2\u1d36\u2149\u24a5\u24bf\u24d9\u2c7c\uff2a\uff4a]/g,K:/[Kk\u0136\u0137\u01e8\u01e9\u1d37\u1d4f\u1e30-\u1e35\u212a\u24a6\u24c0\u24da\u3384\u3385\u3389\u338f\u3391\u3398\u339e\u33a2\u33a6\u33aa\u33b8\u33be\u33c0\u33c6\u33cd-\u33cf\uff2b\uff4b]/g,L:/[Ll\u0139-\u0140\u01c7-\u01c9\u02e1\u1d38\u1e36\u1e37\u1e3a-\u1e3d\u2112\u2113\u2121\u216c\u217c\u24a7\u24c1\u24db\u32cf\u3388\u3389\u33d0-\u33d3\u33d5\u33d6\u33ff\ufb02\ufb04\uff2c\uff4c]/g,M:/[Mm\u1d39\u1d50\u1e3e-\u1e43\u2120\u2122\u2133\u216f\u217f\u24a8\u24c2\u24dc\u3377-\u3379\u3383\u3386\u338e\u3392\u3396\u3399-\u33a8\u33ab\u33b3\u33b7\u33b9\u33bd\u33bf\u33c1\u33c2\u33ce\u33d0\u33d4-\u33d6\u33d8\u33d9\u33de\u33df\uff2d\uff4d]/g,N:/[Nn\xd1\xf1\u0143-\u0149\u01ca-\u01cc\u01f8\u01f9\u1d3a\u1e44-\u1e4b\u207f\u2115\u2116\u24a9\u24c3\u24dd\u3381\u338b\u339a\u33b1\u33b5\u33bb\u33cc\u33d1\uff2e\uff4e]/g,O:/[Oo\xba\xd2-\xd6\xf2-\xf6\u014c-\u0151\u01a0\u01a1\u01d1\u01d2\u01ea\u01eb\u020c-\u020f\u022e\u022f\u1d3c\u1d52\u1ecc-\u1ecf\u2092\u2105\u2116\u2134\u24aa\u24c4\u24de\u3375\u33c7\u33d2\u33d6\uff2f\uff4f]/g,P:/[Pp\u1d3e\u1d56\u1e54-\u1e57\u2119\u24ab\u24c5\u24df\u3250\u3371\u3376\u3380\u338a\u33a9-\u33ac\u33b0\u33b4\u33ba\u33cb\u33d7-\u33da\uff30\uff50]/g,Q:/[Qq\u211a\u24ac\u24c6\u24e0\u33c3\uff31\uff51]/g,R:/[Rr\u0154-\u0159\u0210-\u0213\u02b3\u1d3f\u1d63\u1e58-\u1e5b\u1e5e\u1e5f\u20a8\u211b-\u211d\u24ad\u24c7\u24e1\u32cd\u3374\u33ad-\u33af\u33da\u33db\uff32\uff52]/g,S:/[Ss\u015a-\u0161\u017f\u0218\u0219\u02e2\u1e60-\u1e63\u20a8\u2101\u2120\u24ae\u24c8\u24e2\u33a7\u33a8\u33ae-\u33b3\u33db\u33dc\ufb06\uff33\uff53]/g,T:/[Tt\u0162-\u0165\u021a\u021b\u1d40\u1d57\u1e6a-\u1e71\u1e97\u2121\u2122\u24af\u24c9\u24e3\u3250\u32cf\u3394\u33cf\ufb05\ufb06\uff34\uff54]/g,U:/[Uu\xd9-\xdc\xf9-\xfc\u0168-\u0173\u01af\u01b0\u01d3\u01d4\u0214-\u0217\u1d41\u1d58\u1d64\u1e72-\u1e77\u1ee4-\u1ee7\u2106\u24b0\u24ca\u24e4\u3373\u337a\uff35\uff55]/g,V:/[Vv\u1d5b\u1d65\u1e7c-\u1e7f\u2163-\u2167\u2173-\u2177\u24b1\u24cb\u24e5\u2c7d\u32ce\u3375\u33b4-\u33b9\u33dc\u33de\uff36\uff56]/g,W:/[Ww\u0174\u0175\u02b7\u1d42\u1e80-\u1e89\u1e98\u24b2\u24cc\u24e6\u33ba-\u33bf\u33dd\uff37\uff57]/g,X:/[Xx\u02e3\u1e8a-\u1e8d\u2093\u213b\u2168-\u216b\u2178-\u217b\u24b3\u24cd\u24e7\u33d3\uff38\uff58]/g,Y:/[Yy\xdd\xfd\xff\u0176-\u0178\u0232\u0233\u02b8\u1e8e\u1e8f\u1e99\u1ef2-\u1ef9\u24b4\u24ce\u24e8\u33c9\uff39\uff59]/g,Z:/[Zz\u0179-\u017e\u01f1-\u01f3\u1dbb\u1e90-\u1e95\u2124\u2128\u24b5\u24cf\u24e9\u3390-\u3394\uff3a\uff5a]/g},n}();t.StringUtils=s},function(n,t,i){(function(t){n.exports=t.Globalize=i(328)}).call(t,i(75))},function(n,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=i(54),u=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),f=function(){function n(){}return n.getDeviceName=function(n){return void 0===n&&(n=navigator.userAgent),n.match(/Edge/i)?"Edge":n.match(/Opera Mini/i)?"Opera Mini":n.match(/Android/i)?"Android":n.match(/BlackBerry/i)?"BlackBerry":n.match(/iPhone/i)?"iPhone":n.match(/iPad/i)||this.isSafariIPadOS(n)?"iPad":n.match(/iPod/i)?"iPod":n.match(/Chrome/i)?"Chrome":n.match(/MSIE/i)||n.match(/Trident/i)?"IE":n.match(/Opera/i)?"Opera":n.match(/Firefox/i)?"Firefox":n.match(/Safari/i)?"Safari":"Others"},n.isAndroid=function(){return"Android"==n.getDeviceName()},n.isIos=function(){var t=n.getDeviceName();return"iPhone"==t||"iPad"==t||"iPod"==t},n.isMobileDevice=function(){return!!this.isSafariIPadOS()||u},n.isSafariIPadOS=function(n){return void 0===n&&(n=navigator.userAgent),n.match(/Macintosh/i)&&navigator.maxTouchPoints&&navigator.maxTouchPoints>2},n.isSmallScreenWidth=function(){return(new r.ResponsiveComponents).isSmallScreenWidth()},n}();t.DeviceUtils=f},function(n,t,i){"use strict";var r,u,f,e;Object.defineProperty(t,"__esModule",{value:!0});u=i(4);f=i(0);!function(n){n[n.BACKSPACE=8]="BACKSPACE";n[n.TAB=9]="TAB";n[n.ENTER=13]="ENTER";n[n.SHIFT=16]="SHIFT";n[n.CTRL=17]="CTRL";n[n.ALT=18]="ALT";n[n.ESCAPE=27]="ESCAPE";n[n.SPACEBAR=32]="SPACEBAR";n[n.PAGE_UP=33]="PAGE_UP";n[n.PAGE_DOWN=34]="PAGE_DOWN";n[n.END=35]="END";n[n.HOME=36]="HOME";n[n.LEFT_ARROW=37]="LEFT_ARROW";n[n.UP_ARROW=38]="UP_ARROW";n[n.RIGHT_ARROW=39]="RIGHT_ARROW";n[n.DOWN_ARROW=40]="DOWN_ARROW";n[n.INSERT=45]="INSERT";n[n.DELETE=46]="DELETE"}(r=t.KEYBOARD||(t.KEYBOARD={}));e=function(){function n(){}return n.keysEqual=function(n,t){return u.Utils.isNullOrUndefined(n.keyCode)?!u.Utils.isNullOrUndefined(n.which)&&n.which==t:n.keyCode==t},n.isAllowedKeyForOmnibox=function(t){var i=t.keyCode;return n.isNumberKeyPushed(i)||32==i||13==i||n.isLetterKeyPushed(i)||i>95&&i<112||i>185&&i<193||i>218&&i<223||i==r.BACKSPACE||i==r.DELETE||n.isArrowKeyPushed(i)},n.isAllowedKeyForSearchAsYouType=function(t){return n.isAllowedKeyForOmnibox(t)&&!n.isArrowKeyPushed(t.keyCode)},n.isDeleteOrBackspace=function(t){return n.keysEqual(t,r.BACKSPACE)||n.keysEqual(t,r.DELETE)},n.isArrowKeyPushed=function(n){return n==r.LEFT_ARROW||n==r.UP_ARROW||n==r.RIGHT_ARROW||n==r.DOWN_ARROW},n.isNumberKeyPushed=function(n){return n>47&&n<58},n.isLetterKeyPushed=function(n){return n>64&&n<91},n.keypressAction=function(n,t){return function(i){for(var u,e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];i&&(u=i.charCode||i.keyCode,u&&(f.isArray(n)&&f.contains(n,u)?t(i):u===n&&t(i)))}},n}();t.KeyboardUtils=e},function(n,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.ModalBox=i(326);t.LocaleString=i(327)},function(n,t,i){"use strict";var c;Object.defineProperty(t,"__esModule",{value:!0});var u=i(9),e=i(1),l=i(157),a=i(136),o=i(54),r=i(0),s=i(2),h=i(4),f=function(){function n(){this.currentLayout=null;this.checkCondition=!0;this.wrapInDiv=!0;this.responsiveComponents=new o.ResponsiveComponents}return n.prototype.get=function(){return{currentLayout:this.currentLayout,checkCondition:this.checkCondition,wrapInDiv:this.wrapInDiv,responsiveComponents:this.responsiveComponents}},n.prototype.merge=function(n){return n?r.extend(this.get(),n):this.get()},n}();t.DefaultInstantiateTemplateOptions=f;c=function(){function n(n){this.dataToString=n;this.logger=new u.Logger(this);this.fields=[]}return n.prototype.instantiateToString=function(n,t){if(void 0===t&&(t=new f),this.dataToString){if(!1===t.checkCondition)return this.dataToString(n);if(null==t.responsiveComponents&&(t.responsiveComponents=new o.ResponsiveComponents),!0===this.mobile&&!t.responsiveComponents.isSmallScreenWidth())return this.logger.trace("Template was skipped because it is optimized for small screen width",this),null;if(!1===this.mobile&&t.responsiveComponents.isSmallScreenWidth())return this.logger.trace("Template was skipped because it is not optimized for small screen width",this),null;if(!0===this.tablet&&!t.responsiveComponents.isMediumScreenWidth())return this.logger.trace("Template was skipped because it is optimized for medium screen width",this),null;if(!1===this.tablet&&t.responsiveComponents.isMediumScreenWidth())return this.logger.trace("Template was skipped because it is not optimized for medium screen width",this),null;if(!0===this.desktop&&!t.responsiveComponents.isLargeScreenWidth())return this.logger.trace("Template was skipped because it is optimized for large screen width",this),null;if(!1===this.desktop&&t.responsiveComponents.isLargeScreenWidth())return this.logger.trace("Template was skipped because it is not optimized for large screen width",this),null;if(null!=this.layout&&null!=t.currentLayout&&t.currentLayout!==this.layout)return this.logger.trace("Template was skipped because layout does not match",this,this.layout),null;try{if(this.logger.trace("Evaluating template ..."),null!=this.condition&&this.condition(n))return this.logger.trace("Template was loaded because condition was :",this.condition,n),this.dataToString(n);if(null!=this.conditionToParse&&l.TemplateConditionEvaluator.evaluateCondition(this.conditionToParse,n,t.responsiveComponents))return this.logger.trace("Template was loaded because condition was :",this.conditionToParse,n),this.dataToString(n);if(null!=this.fieldsToMatch&&a.TemplateFieldsEvaluator.evaluateFieldsToMatch(this.fieldsToMatch,n))return this.logger.trace("Template was loaded because condition was :",this.fieldsToMatch,n),this.dataToString(n);if(null==this.condition&&null==this.conditionToParse&&null==this.fieldsToMatch)return this.logger.trace("Template was loaded because there was *NO* condition",this.condition,n),this.dataToString(n)}catch(n){return new u.Logger(this).error("Cannot instantiate template",n.message,this.getTemplateInfo()),new u.Logger(this).warn("A default template was used"),null}}return this.logger.trace("Template was skipped because it did not match any condition",this),null},n.prototype.addField=function(n){r.contains(this.fields,n)||this.fields.push(n)},n.prototype.addFields=function(n){h.Utils.isNonEmptyArray(n)&&(this.fields=h.Utils.concatWithoutDuplicate(this.fields,n))},n.prototype.getComponentsInside=function(n){var t=r.map(s.Initialization.getListOfRegisteredComponents(),function(t){return new RegExp("Coveo"+t,"g").exec(n)?t:null});return r.compact(t)},n.prototype.instantiateToElement=function(n,t){var u=this,r,i;return void 0===t&&(t={}),r=(new f).merge(t),i=this.instantiateToString(n,r),null==i?null:this.ensureComponentsInHtmlStringHaveLoaded(i).then(function(){var t=u.buildTemplate(i,r);return u.logger.trace("Instantiated result template",n,t),t})},n.prototype.toHtmlElement=function(){return null},n.prototype.getFields=function(){return this.fields},n.prototype.getType=function(){return"Template"},n.prototype.setConditionWithFallback=function(n){try{this.condition=new Function("obj","with(obj||{}){return "+n+"}")}catch(t){this.conditionToParse=n}},n.prototype.getTemplateInfo=function(){return void 0!=this.conditionToParse?this.conditionToParse:void 0!=this.condition?this.condition:this.fieldsToMatch},n.prototype.ensureComponentsInHtmlStringHaveLoaded=function(n){var t=this.getComponentsInside(n).map(function(n){return s.LazyInitialization.getLazyRegisteredComponent(n)});return Promise.all(t)},n.prototype.buildTemplate=function(n,t){var r=this.layout||t.currentLayout,u="table"===r?"tr":"div",i=e.$$(u,{},n).el;return t.wrapInDiv||1!==i.children.length||(i=i.children.item(0)),r&&e.$$(i).addClass("coveo-"+r+"-layout"),i.template=this,i},n}();t.Template=c},function(n,t,i){"use strict";var e=this&&this.__extends||function(){var n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])};return function(t,i){function r(){this.constructor=t}n(t,i);t.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),r,u,f;Object.defineProperty(t,"__esModule",{value:!0});r=i(18);u=i(0);t.COMPONENT_OPTIONS_ATTRIBUTES={RESULT_LINK:"resultLink",SEARCH_HUB:"searchHub",SEARCH_BOX:"searchBox"};f=function(n){function t(i,r){var f=u.extend({},t.defaultAttributes,r);return n.call(this,i,t.ID,f)||this}return e(t,n),t.ID="ComponentOptions",t.defaultAttributes={resultLink:void 0,searchHub:void 0,searchBox:void 0},t.attributesEnum={resultLink:"resultLink",searchHub:"searchHub",searchBox:"searchBox"},t}(r.Model);t.ComponentOptionsModel=f},function(n,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function n(){}return n.newResultsDisplayed="newResultsDisplayed",n.newResultDisplayed="newResultDisplayed",n.openQuickview="openQuickview",n.changeLayout="changeLayout",n}();t.ResultListEvents=i},function(n,t,i){"use strict";function a(n,t){return void 0===t&&(t={}),r.Initialization.initializeFramework(n,t,function(){return r.Initialization.initSearchInterface(n,t)})}function v(n,t,i){void 0===i&&(i={});f.Assert.isNonEmptyString(t);var u={};return u.searchPageUri=t,u.autoTriggerQuery=!1,u.enableHistory=!1,u=pt({},u,i.StandaloneSearchInterface),i=s.extend({},i,{StandaloneSearchInterface:u}),r.Initialization.initializeFramework(n,i,function(){return r.Initialization.initStandaloneSearchInterface(n,i)})}function y(n,t,i,u){void 0===u&&(u={});var f={};return f.mainSearchInterface=t,f.userContext=i,f.enableHistory=!1,u=s.extend({},u,{Recommendation:f}),null!=window.Coveo.Recommendation&&(r.LazyInitialization.registerLazyComponent("Recommendation",function(){return Promise.resolve(window.Coveo.Recommendation)}),r.EagerInitialization.eagerlyLoadedComponents.Recommendation=window.Coveo.Recommendation),r.LazyInitialization.getLazyRegisteredComponent("Recommendation").then(function(){return r.Initialization.initializeFramework(n,u,function(){return r.Initialization.initRecommendationInterface(n,u)})})}function p(n){f.Assert.exists(n);var t=u.Component.resolveBinding(n,wt.QueryController);return f.Assert.exists(t),t.executeQuery()}function h(n){for(var r,i=[],t=1;t<arguments.length;t++)i[t-1]=arguments[t];return f.Assert.exists(n),r=u.Component.resolveBinding(n,at.QueryStateModel),at.setState(r,i)}function w(n,t,i){return f.Assert.exists(n),u.Component.get(n,t,i)}function b(n,t){return f.Assert.exists(n),u.Component.getResult(n,t)}function e(n){var t=o(n);if(t)return t.client}function o(n){var t=n.classList.contains(u.Component.computeCssClassNameForType("Analytics"))?n:vt.$$(n).find(u.Component.computeSelectorForType("Analytics"));if(t)return u.Component.resolveBinding(t,gt.Analytics)}function k(n,t,i,r){var u=e(n);u&&u.logCustomEvent(t,i,n,r)}function d(n,t,i){var r=e(n);r&&r.logSearchEvent(t,i)}function g(n,t,i){var r=e(n);r&&r.logSearchAsYouType(t,i)}function nt(n,t,i,r){var u=e(n);u&&u.logClickEvent(t,i,r,n)}function tt(n,t){void 0===t&&(t={});r.Initialization.registerDefaultOptions(n,t)}function it(n,t,i){r.Initialization.monkeyPatchComponentMethod(t,n,i)}function rt(n){for(var u,o,i,h,t=[],e=1;e<arguments.length;e++)t[e-1]=arguments[e];i={};0==t.length?(u="Standard",o=!1):1==t.length?"string"==typeof t[0]?(u=t[0],o=!0):"object"==typeof t[0]?(u="Standard",o=!1,i=t[0]):f.Assert.fail("Invalid parameters to init a box"):2==t.length&&(u=t[0],i=t[1],o=!0);h={};h[u||"Container"]=s.extend({},i.SearchInterface,i[u]);i=s.extend({},i,h);r.Initialization.initializeFramework(n,i,function(){return r.Initialization.initBoxInterface(n,i,u,o)})}function ut(n){vt.$$(n).trigger(bt.InitializationEvents.nuke)}function ft(n){kt.PublicPathUtils.configureResourceRoot(n)}function et(n){void 0===n&&(n=document.querySelector(u.Component.computeSelectorForType(c.SearchInterface.ID)));var t=o(n);if(!t)return l.warn("Could not enable analytics because no Analytics component could be found in the specified searchRoot.");t.enable()}function ot(n){void 0===n&&(n=document.querySelector(u.Component.computeSelectorForType(c.SearchInterface.ID)));var t=o(n);if(!t)return l.warn("Could not clear local data because no Analytics component could be found in the specified searchRoot.");t.clearLocalData()}function st(n){void 0===n&&(n=document.querySelector(u.Component.computeSelectorForType(c.SearchInterface.ID)));var t=o(n);if(!t)return l.warn("Could not disable analytics because no Analytics component could be found in the specified searchRoot.");t.disable()}function ht(n){yt.AnalyticsUtils.addActionCauseToList(n)}function ct(n){yt.AnalyticsUtils.removeActionCauseFromList(n)}function lt(n){return null!=r.LazyInitialization.lazyLoadedComponents[n]?r.LazyInitialization.getLazyRegisteredComponent(n):null!=r.LazyInitialization.lazyLoadedModule[n]?r.LazyInitialization.getLazyRegisteredModule(n):Promise.reject("Module "+n+" is not available")}var pt=this&&this.__assign||Object.assign||function(n){for(var t,r,i=1,u=arguments.length;i<u;i++){t=arguments[i];for(r in t)Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n};Object.defineProperty(t,"__esModule",{value:!0});var r=i(2),f=i(5),wt=i(44),at=i(13),bt=i(17),vt=i(1),u=i(7),c=i(19),s=i(0),kt=i(128),dt=i(9),gt=i(129),yt=i(211),l=new dt.Logger("RegisteredNamedMethods");t.init=a;r.Initialization.registerNamedMethod("init",function(n,t){return void 0===t&&(t={}),a(n,t)});t.initSearchbox=v;r.Initialization.registerNamedMethod("initSearchbox",function(n,t,i){void 0===i&&(i={});v(n,t,i)});t.initRecommendation=y;r.Initialization.registerNamedMethod("initRecommendation",function(n,t,i,r){void 0===i&&(i={});void 0===r&&(r={});y(n,t,i,r)});t.executeQuery=p;r.Initialization.registerNamedMethod("executeQuery",function(n){return p(n)});t.state=h;r.Initialization.registerNamedMethod("state",function(n){for(var i=[],t=1;t<arguments.length;t++)i[t-1]=arguments[t];return 0!=i.length?h.apply(void 0,[n].concat(i)):h.apply(void 0,[n])});t.get=w;r.Initialization.registerNamedMethod("get",function(n,t,i){return w(n,t,i)});t.result=b;r.Initialization.registerNamedMethod("result",function(n,t){return b(n,t)});t.logCustomEvent=k;r.Initialization.registerNamedMethod("logCustomEvent",function(n,t,i,r){k(n,t,i,r)});t.logSearchEvent=d;r.Initialization.registerNamedMethod("logSearchEvent",function(n,t,i){d(n,t,i)});t.logSearchAsYouTypeEvent=g;r.Initialization.registerNamedMethod("logSearchAsYouTypeEvent",function(n,t,i){g(n,t,i)});t.logClickEvent=nt;r.Initialization.registerNamedMethod("logClickEvent",function(n,t,i,r){nt(n,t,i,r)});t.options=tt;r.Initialization.registerNamedMethod("options",function(n,t){void 0===t&&(t={});tt(n,t)});t.patch=it;r.Initialization.registerNamedMethod("patch",function(n,t,i){it(n,t,i)});t.initBox=rt;r.Initialization.registerNamedMethod("initBox",function(n){for(var i=[],t=1;t<arguments.length;t++)i[t-1]=arguments[t];rt(n,i)});t.nuke=ut;r.Initialization.registerNamedMethod("nuke",function(n){ut(n)});t.configureResourceRoot=ft;r.Initialization.registerNamedMethod("configureResourceRoot",function(n){ft(n)});t.enableAnalytics=et;r.Initialization.registerNamedMethod("enableAnalytics",function(){et()});t.clearLocalData=ot;r.Initialization.registerNamedMethod("clearLocalData",function(){ot()});t.disableAnalytics=st;r.Initialization.registerNamedMethod("disableAnalytics",function(){st()});t.addActionCauseToList=ht;r.Initialization.registerNamedMethod("addActionCauseToList",function(n){ht(n)});t.removeActionCauseFromList=ct;r.Initialization.registerNamedMethod("removeActionCauseFromList",function(n){ct(n)});t.load=lt;r.Initialization.registerNamedMethod("require",function(n){return lt(n)})},function(n,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=i(0),u=function(){function n(){}return n.defer=function(t){n.functions.push(t);n.arm()},n.flush=function(){for(;n.popOne(););},n.arm=function(){r.defer(function(){n.popOne()&&n.arm()})},n.popOne=function(){if(n.functions.length>0){var t=n.functions[0];return n.functions=r.rest(n.functions),t(),n.functions.length>0}return!1},n.functions=[],n}();t.Defer=u},function(n,t,i){"use strict";function ut(n){return function(t,i){return u(n(t),i)}}function c(n,t){return[n,t]}function l(n,t,i){var f=(t-n)/Math.max(0,i),u=Math.floor(Math.log(f)/Math.LN10),r=f/Math.pow(10,u);return u>=0?(r>=o?10:r>=s?5:r>=h?2:1)*Math.pow(10,u):-Math.pow(10,-u)/(r>=o?10:r>=s?5:r>=h?2:1)}function a(n,t,i){var f=Math.abs(t-n)/Math.max(0,i),r=Math.pow(10,Math.floor(Math.log(f)/Math.LN10)),u=f/r;return u>=o?r*=10:u>=s?r*=5:u>=h&&(r*=2),t<n?-r:r}function ft(n){return n.length}var u=function(n,t){return n<t?-1:n>t?1:n>=t?0:NaN},v=function(n){return 1===n.length&&(n=ut(n)),{left:function(t,i,r,u){for(null==r&&(r=0),null==u&&(u=t.length);r<u;){var f=r+u>>>1;n(t[f],i)<0?r=f+1:u=f}return r},right:function(t,i,r,u){for(null==r&&(r=0),null==u&&(u=t.length);r<u;){var f=r+u>>>1;n(t[f],i)>0?u=f:r=f+1}return r}}},y=v(u),p=y.right,et=y.left,w=p,ot=function(n,t){null==t&&(t=c);for(var i=0,r=n.length-1,u=n[0],f=new Array(r<0?0:r);i<r;)f[i]=t(u,u=n[++i]);return f},st=function(n,t,i){var r,u,f,e,o=n.length,s=t.length,h=new Array(o*s);for(null==i&&(i=c),r=f=0;r<o;++r)for(e=n[r],u=0;u<s;++u,++f)h[f]=i(e,t[u]);return h},ht=function(n,t){return t<n?-1:t>n?1:t>=n?0:NaN},r=function(n){return null===n?NaN:+n},b=function(n,t){var i,u,h=n.length,o=0,e=-1,f=0,s=0;if(null==t)for(;++e<h;)isNaN(i=r(n[e]))||(u=i-f,f+=u/++o,s+=u*(i-f));else for(;++e<h;)isNaN(i=r(t(n[e],e,n)))||(u=i-f,f+=u/++o,s+=u*(i-f));if(o>1)return s/(o-1)},k=function(n,t){var i=b(n,t);return i?Math.sqrt(i):i},d=function(n,t){var i,u,f,e=n.length,r=-1;if(null==t){for(;++r<e;)if(null!=(i=n[r])&&i>=i)for(u=f=i;++r<e;)null!=(i=n[r])&&(u>i&&(u=i),f<i&&(f=i))}else for(;++r<e;)if(null!=(i=t(n[r],r,n))&&i>=i)for(u=f=i;++r<e;)null!=(i=t(n[r],r,n))&&(u>i&&(u=i),f<i&&(f=i));return[u,f]},g=Array.prototype,ct=g.slice,lt=g.map,e=function(n){return function(){return n}},at=function(n){return n},nt=function(n,t,i){n=+n;t=+t;i=(r=arguments.length)<2?(t=n,n=0,1):r<3?1:+i;for(var u=-1,r=0|Math.max(0,Math.ceil((t-n)/i)),f=new Array(r);++u<r;)f[u]=n+u*i;return f},o=Math.sqrt(50),s=Math.sqrt(10),h=Math.sqrt(2),vt=function(n,t,i){var o,u,f,r,e=-1;if(t=+t,n=+n,i=+i,n===t&&i>0)return[n];if((o=t<n)&&(u=n,n=t,t=u),0===(r=l(n,t,i))||!isFinite(r))return[];if(r>0)for(n=Math.ceil(n/r),t=Math.floor(t/r),f=new Array(u=Math.ceil(t-n+1));++e<u;)f[e]=(n+e)*r;else for(n=Math.floor(n*r),t=Math.ceil(t*r),f=new Array(u=Math.ceil(n-t+1));++e<u;)f[e]=(n-e)/r;return o&&f.reverse(),f},tt=function(n){return Math.ceil(Math.log(n.length)/Math.LN2)+1},yt=function(){function n(n){for(var h,v=n.length,c=new Array(v),e,y,l,u=0;u<v;++u)c[u]=t(n[u],u,n);var p=i(c),o=p[0],s=p[1],f=r(c,o,s);for(Array.isArray(f)||(f=a(o,s,f),f=nt(Math.ceil(o/f)*f,s,f)),e=f.length;f[0]<=o;)f.shift(),--e;for(;f[e-1]>s;)f.pop(),--e;for(l=new Array(e+1),u=0;u<=e;++u)y=l[u]=[],y.x0=u>0?f[u-1]:o,y.x1=u<e?f[u]:s;for(u=0;u<v;++u)h=c[u],o<=h&&h<=s&&l[w(f,h,0,e)].push(n[u]);return l}var t=at,i=d,r=tt;return n.value=function(i){return arguments.length?(t="function"==typeof i?i:e(i),n):t},n.domain=function(t){return arguments.length?(i="function"==typeof t?t:e([t[0],t[1]]),n):i},n.thresholds=function(t){return arguments.length?(r="function"==typeof t?t:e(Array.isArray(t)?ct.call(t):t),n):r},n},f=function(n,t,i){if(null==i&&(i=r),u=n.length){if((t=+t)<=0||u<2)return+i(n[0],0,n);if(t>=1)return+i(n[u-1],u-1,n);var u,e=(u-1)*t,f=Math.floor(e),o=+i(n[f],f,n);return o+(+i(n[f+1],f+1,n)-o)*(e-f)}},pt=function(n,t,i){return n=lt.call(n,r).sort(u),Math.ceil((i-t)/(2*(f(n,.75)-f(n,.25))*Math.pow(n.length,-1/3)))},wt=function(n,t,i){return Math.ceil((i-t)/(3.5*k(n)*Math.pow(n.length,-1/3)))},bt=function(n,t){var i,u,f=n.length,r=-1;if(null==t){for(;++r<f;)if(null!=(i=n[r])&&i>=i)for(u=i;++r<f;)null!=(i=n[r])&&i>u&&(u=i)}else for(;++r<f;)if(null!=(i=t(n[r],r,n))&&i>=i)for(u=i;++r<f;)null!=(i=t(n[r],r,n))&&i>u&&(u=i);return u},kt=function(n,t){var u,e=n.length,f=e,i=-1,o=0;if(null==t)for(;++i<e;)isNaN(u=r(n[i]))?--f:o+=u;else for(;++i<e;)isNaN(u=r(t(n[i],i,n)))?--f:o+=u;if(f)return o/f},dt=function(n,t){var e,s=n.length,i=-1,o=[];if(null==t)for(;++i<s;)isNaN(e=r(n[i]))||o.push(e);else for(;++i<s;)isNaN(e=r(t(n[i],i,n)))||o.push(e);return f(o.sort(u),.5)},gt=function(n){for(var t,i,r,u=n.length,e=-1,f=0;++e<u;)f+=n[e].length;for(i=new Array(f);--u>=0;)for(r=n[u],t=r.length;--t>=0;)i[--f]=r[t];return i},it=function(n,t){var i,u,f=n.length,r=-1;if(null==t){for(;++r<f;)if(null!=(i=n[r])&&i>=i)for(u=i;++r<f;)null!=(i=n[r])&&u>i&&(u=i)}else for(;++r<f;)if(null!=(i=t(n[r],r,n))&&i>=i)for(u=i;++r<f;)null!=(i=t(n[r],r,n))&&u>i&&(u=i);return u},ni=function(n,t){for(var i=t.length,r=new Array(i);i--;)r[i]=n[t[i]];return r},ti=function(n,t){if(e=n.length){var e,o,r=0,f=0,i=n[f];for(null==t&&(t=u);++r<e;)(t(o=n[r],i)<0||0!==t(i,i))&&(i=o,f=r);return 0===t(i,i)?f:void 0}},ii=function(n,t,i){for(var f,u,r=(null==i?n.length:i)-(t=null==t?0:+t);r;)u=Math.random()*r--|0,f=n[r+t],n[r+t]=n[u+t],n[u+t]=f;return n},ri=function(n,t){var r,f=n.length,i=-1,u=0;if(null==t)for(;++i<f;)(r=+n[i])&&(u+=r);else for(;++i<f;)(r=+t(n[i],i,n))&&(u+=r);return u},rt=function(n){var r,t,e;if(!(r=n.length))return[];for(var i=-1,u=it(n,ft),f=new Array(u);++i<u;)for(t=-1,e=f[i]=new Array(r);++t<r;)e[t]=n[t][i];return f},ui=function(){return rt(arguments)};i.d(t,"b",function(){return w});i.d(t,"d",function(){return p});i.d(t,"c",function(){return et});i.d(t,"a",function(){return u});i.d(t,"e",function(){return v});i.d(t,"f",function(){return st});i.d(t,"g",function(){return ht});i.d(t,"h",function(){return k});i.d(t,"i",function(){return d});i.d(t,"j",function(){return yt});i.d(t,"w",function(){return pt});i.d(t,"x",function(){return wt});i.d(t,"y",function(){return tt});i.d(t,"k",function(){return bt});i.d(t,"l",function(){return kt});i.d(t,"m",function(){return dt});i.d(t,"n",function(){return gt});i.d(t,"o",function(){return it});i.d(t,"p",function(){return ot});i.d(t,"q",function(){return ni});i.d(t,"r",function(){return f});i.d(t,"s",function(){return nt});i.d(t,"t",function(){return ti});i.d(t,"u",function(){return ii});i.d(t,"v",function(){return ri});i.d(t,"B",function(){return vt});i.d(t,"z",function(){return l});i.d(t,"A",function(){return a});i.d(t,"C",function(){return rt});i.d(t,"D",function(){return b});i.d(t,"E",function(){return ui})},function(n,t,i){"use strict";var h=this&&this.__extends||function(){var n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])};return function(t,i){function r(){this.constructor=t}n(t,i);t.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var c=i(77),f=i(4),u=i(6),o=i(0),r=i(102),e=i(9),s=function(n){function t(){var t=null!==n&&n.apply(this,arguments)||this;return t.now=r().toDate(),t.useTodayYesterdayAndTomorrow=!0,t.useWeekdayIfThisWeek=!0,t.omitYearIfCurrentOne=!0,t.useLongDateFormat=!1,t.includeTimeIfToday=!0,t.includeTimeIfThisWeek=!0,t.alwaysIncludeTime=!1,t.predefinedFormat=void 0,t}return h(t,n),t}(c.Options),l=function(){function n(){}return n.convertFromJsonDateIfNeeded=function(t){return n.convertToStandardDate(t)},n.convertToStandardDate=function(n){return o.isDate(n)?r(n).toDate():null!==n&&!isNaN(Number(n))?r(Number(n)).toDate():o.isString(n)?r(n,"YYYY/MM/DD@HH:mm:ssZ").toDate():void 0},n.setLocale=function(){n.saveOriginalMomentLocaleData();r.updateLocale(n.momentjsCompatibleLocale,n.transformGlobalizeCalendarToMomentCalendar());r.locale(n.momentjsCompatibleLocale)},n.saveOriginalMomentLocaleData=function(){var t=n.momentjsCompatibleLocale;null!=n.momentjsLocaleDataMap[t]||(n.momentjsLocaleDataMap[t]=r.localeData())},n.dateForQuery=function(t){return n.setLocale(),r(t).format("YYYY/MM/DD")},n.dateTimeForQuery=function(t){return n.setLocale(),r(t).format("YYYY/MM/DD@HH:mm:ss")},n.keepOnlyDatePart=function(t){n.setLocale();var i=r(t);return new Date(i.year(),i.month(),i.date())},n.offsetDateByDays=function(n,t){return r(n).add(t,"days").toDate()},n.isTodayYesterdayOrTomorrow=function(t,i){var f=r(n.keepOnlyDatePart(t)),e=r(n.keepOnlyDatePart(i.now)),u=f.diff(e,"days");return 0==u||1==u||-1==u},n.getMomentJsFormat=function(t){var i=t,o=n.buildRegexMatchingExactCharSequence("y",4),r,u,f,e;return i=i.replace(o,"$1YYYY"),r=n.buildRegexMatchingExactCharSequence("y",2),i=i.replace(r,"$1YY"),u=n.buildRegexMatchingExactCharSequence("d",2),i=i.replace(u,"$1DD"),f=n.buildRegexMatchingExactCharSequence("d",1),i=i.replace(f,"$1D"),e=n.buildRegexMatchingExactCharSequence("h",2),i.replace(e,"$1H")},n.buildRegexMatchingExactCharSequence=function(n,t){var i="(?:([^"+n+"]|^))",r=n+"{"+t+"}",u="(?!"+n+")",f=""+i+r+u;return new RegExp(f,"g")},n.dateToString=function(t,i){var o,h,c;return(n.setLocale(),f.Utils.isNullOrUndefined(t))?(new e.Logger(this).warn("Impossible to format an undefined or null date."),""):(i=(new s).merge(i),o=r(n.keepOnlyDatePart(t)),h=r(n.keepOnlyDatePart(i.now)),i.predefinedFormat)?o.format(this.getMomentJsFormat(i.predefinedFormat)):i.useTodayYesterdayAndTomorrow&&n.isTodayYesterdayOrTomorrow(t,i)?r(o).calendar(r(h)):(c=0==o.diff(r(h),"weeks"),i.useWeekdayIfThisWeek&&c?o.valueOf()>h.valueOf()?u.l("NextDay",u.l(o.format("dddd"))):o.valueOf()<h.valueOf()?u.l("LastDay",u.l(o.format("dddd"))):o.format("dddd"):i.omitYearIfCurrentOne&&o.year()===h.year()?o.format("LL"):i.useLongDateFormat?o.format(this.longDateFormat):o.format("L"))},Object.defineProperty(n,"longDateFormat",{get:function(){return n.momentjsLocaleDataMap[n.momentjsCompatibleLocale].longDateFormat("LLLL").replace(/[h:mA]/g,"").trim()},enumerable:!0,configurable:!0}),n.timeToString=function(n){return f.Utils.isNullOrUndefined(n)?"":r(n).format("h:mm A")},n.dateTimeToString=function(t,i){if(n.setLocale(),i=(new s).merge(i),f.Utils.isNullOrUndefined(t))return new e.Logger(this).warn("Impossible to format an undefined or null date."),"";if(!r(t).isValid())return new e.Logger(this).warn("Impossible to format an invalid date: "+t),"";if(i.predefinedFormat)return r(t).format(this.getMomentJsFormat(i.predefinedFormat));var u=n.keepOnlyDatePart(i.now),o=n.dateToString(t,i),h=n.keepOnlyDatePart(t),c=0==r(t).diff(r(u),"weeks"),l=h.valueOf()==u.valueOf();return function(){return!!i.alwaysIncludeTime||!(!i.includeTimeIfThisWeek||!c)||!(!i.includeTimeIfToday||!l)}()?o+", "+n.timeToString(t):o},n.monthToString=function(t){n.setLocale();var i=r(new Date(1980,t)).toDate();return r(i).format("MMMM")},n.isValid=function(t){return n.setLocale(),t instanceof Date&&!isNaN(t.getTime())},n.timeBetween=function(n,t){return f.Utils.isNullOrUndefined(n)||f.Utils.isNullOrUndefined(t)?"":("0"+((r(t).valueOf()-r(n).valueOf())/36e5).toFixed()).slice(-2)+":"+("0"+((r(t).valueOf()-r(n).valueOf())%36e5/6e4).toFixed()).slice(-2)+":"+("0"+((r(t).valueOf()-r(n).valueOf())%6e4/1e3).toFixed()).slice(-2)},Object.defineProperty(n,"currentGlobalizeCalendar",{get:function(){return Globalize.culture(n.currentLocale).calendar},enumerable:!0,configurable:!0}),Object.defineProperty(n,"currentLocale",{get:function(){return String.locale},enumerable:!0,configurable:!0}),Object.defineProperty(n,"momentjsCompatibleLocale",{get:function(){var t=n.currentLocale;return"no"==t.toLowerCase()?t="nn":"es-es"==t.toLowerCase()&&(t="es"),t},enumerable:!0,configurable:!0}),n.transformGlobalizeCalendarToMomentCalendar=function(){var t=function(n){return n.replace(/y/g,"Y").replace(/d/g,"D")};return{months:n.currentGlobalizeCalendar.months.names,monthsShort:n.currentGlobalizeCalendar.months.namesAbbr,weekdays:n.currentGlobalizeCalendar.days.names,weekdaysShort:n.currentGlobalizeCalendar.days.namesAbbr,weekdaysMin:n.currentGlobalizeCalendar.days.namesShort,longDateFormat:{LT:t(n.currentGlobalizeCalendar.patterns.t),LTS:t(n.currentGlobalizeCalendar.patterns.T),L:t(n.currentGlobalizeCalendar.patterns.d),LL:t(n.currentGlobalizeCalendar.patterns.M),LLL:t(n.currentGlobalizeCalendar.patterns.f),LLLL:t(n.currentGlobalizeCalendar.patterns.F)},calendar:{lastDay:"["+u.l("Yesterday")+"]",sameDay:"["+u.l("Today")+"]",nextDay:"["+u.l("Tomorrow")+"]"}}},n.momentjsLocaleDataMap={},n}();t.DateUtils=l},function(n,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function n(){}return n.populateOmnibox="populateOmnibox",n.populateOmniboxSuggestions="populateOmniboxSuggestions",n.omniboxPreprocessResultForQuery="omniboxPreprocessResultForQuery",n.buildingQuerySuggest="buildingQuerySuggest",n.querySuggestSuccess="querySuggestSuccess",n.querySuggestRendered="querySuggestRendered",n.querySuggestGetFocus="querySuggestGetFocus",n.querySuggestLoseFocus="querySuggestLooseFocus",n.querySuggestSelection="querySuggestSelection",n}();t.OmniboxEvents=i},function(n,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function n(){}return n.populateBreadcrumb="populateBreadcrumb",n.clearBreadcrumb="clearBreadcrumb",n.redrawBreadcrumb="redrawBreadcrumb",n}();t.BreadcrumbEvents=i},function(n,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=i(5),u=i(1),f=i(9),e=function(){function n(t,i){this.element=t;this.type=i;this.disabled=!1;r.Assert.exists(t);r.Assert.isNonEmptyString(i);this.logger=new f.Logger(this);n.bindComponentToElement(t,this)}return n.prototype.debugInfo=function(){var n={};return n[this.constructor.ID]=this,n},n.prototype.disable=function(){this.disabled=!0},n.prototype.enable=function(){this.disabled=!1},n.bindComponentToElement=function(t,i){r.Assert.exists(t);r.Assert.exists(i);r.Assert.isNonEmptyString(i.type);t[n.computeCssClassNameForType(i.type)]=i;u.$$(t).addClass(n.computeCssClassNameForType(i.type));n.getBoundComponentsForElement(t).push(i)},n.computeCssClassName=function(t){return n.computeCssClassNameForType(t.ID)},n.computeCssClassNameForType=function(n){return r.Assert.isNonEmptyString(n),"Coveo"+n},n.computeSelectorForType=function(t){return r.Assert.isNonEmptyString(t),"."+n.computeCssClassNameForType(t)},n.getBoundComponentsForElement=function(n){return r.Assert.exists(n),null==n.CoveoBoundComponents&&(n.CoveoBoundComponents=[]),n.CoveoBoundComponents},n.getComponentRef=function(n){return Coveo[n]},n}();t.BaseComponent=e},function(n){function t(n){return n&&n.__esModule?n:{"default":n}}n.exports=t},function(n){var t=n.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=t)},function(n){var t=n.exports={version:"2.6.11"};"number"==typeof __e&&(__e=t)},function(n,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var h=i(22),u=i(21),f=i(120),e=i(33),o=i(4),s=i(1),r=i(0),c=i(6),l=function(){function n(){}return n.getRegexToUseForFacetSearch=function(n,t){return new RegExp(h.StringUtils.stringToRegex(n,t),"i")},n.getDisplayValueFromValueCaption=function(n,t,i){var r=this.tryToGetTranslatedCaption(t,n,!1);return i[n]||r},n.getValuesToUseForSearchInFacet=function(n,t){var i=[n],o=this.getRegexToUseForFacetSearch(n,t.options.facetSearchIgnoreAccents);return t.options.valueCaption?(r.chain(t.options.valueCaption).pairs().filter(function(n){return o.test(n[1])}).each(function(n){i.push(n[0])}),(u.QueryUtils.isStratusAgnosticField(t.options.field,"@objecttype")||u.QueryUtils.isStratusAgnosticField(t.options.field,"@filetype"))&&r.each(f.FileTypes.getFileTypeCaptions(),function(n,r){r in t.options.valueCaption||!o.test(n)||i.push(r)})):u.QueryUtils.isStratusAgnosticField(t.options.field,"@objecttype")||u.QueryUtils.isStratusAgnosticField(t.options.field,"@filetype")?r.each(r.filter(r.pairs(f.FileTypes.getFileTypeCaptions()),function(n){return o.test(n[1])}),function(n){i.push(n[0])}):u.QueryUtils.isStratusAgnosticField(t.options.field,"@month")&&r.each(r.range(1,13),function(n){o.test(e.DateUtils.monthToString(n-1))&&i.push(("0"+n.toString()).substr(-2))}),i},n.buildFacetSearchPattern=function(n){return n=r.map(n,function(n){return o.Utils.escapeRegexCharacter(n)}),n[0]=".*"+n[0]+".*",n.join("|")},n.needAnotherFacetSearch=function(n,t,i,r){return n<t&&n<r&&n>i},n.addNoStateCssClassToFacetValues=function(n,t){if(0!=n.values.getSelected().length){var i=s.$$(t).findAll("li:not(.coveo-selected)");r.each(i,function(n){s.$$(n).addClass("coveo-no-state")})}},n.tryToGetTranslatedCaption=function(t,i,r){var s,h;return void 0===r&&(r=!0),u.QueryUtils.isStratusAgnosticField(t.toLowerCase(),"@filetype")?s=f.FileTypes.getFileType(i,r).caption:u.QueryUtils.isStratusAgnosticField(t.toLowerCase(),"@objecttype")?s=f.FileTypes.getObjectType(i,r).caption:n.isMonthFieldValue(t,i)?(h=parseInt(i,10),s=e.DateUtils.monthToString(h-1)):r&&(s=c.l(i)),void 0!=s&&o.Utils.isNonEmptyString(s)?s:i},n.isMonthFieldValue=function(n,t){if(!u.QueryUtils.isStratusAgnosticField(n.toLowerCase(),"@month"))return!1;var i=parseInt(t,10);return!isNaN(i)&&!(i<1||i>12)},n}();t.FacetUtils=l},function(n,t){"use strict";var i,r,u;Object.defineProperty(t,"__esModule",{value:!0});try{i=window.localStorage}catch(n){console.warn("Unable to access localStorage. Certain features like analytics will not work. If this is unintended, consider adjusting your browser settings to allow third-party cookies and data.\n\n",n);i=null}t.localStorageExists=!!i;r=function(){function n(n){this.id=n}return n.prototype.save=function(n){try{null!=i&&i.setItem(this.getLocalStorageKey(),JSON.stringify(n))}catch(n){}},n.prototype.load=function(){try{if(null==i)return null;var n=i.getItem(this.getLocalStorageKey());return n&&JSON.parse(n)}catch(n){return null}},n.prototype.remove=function(n){try{if(null!=i)if(void 0==n)i.removeItem(this.getLocalStorageKey());else{var t=this.load();delete t[n];this.save(t)}}catch(n){}},n.prototype.getLocalStorageKey=function(){return"coveo-"+this.id},n}();t.LocalStorageUtils=r;u=function(){function n(){}return n.prototype.getItem=function(n){try{return i.getItem(n)}catch(n){return null}},n.prototype.removeItem=function(n){try{i.removeItem(n)}catch(n){}},n.prototype.setItem=function(n,t){try{i.setItem(n,t)}catch(n){}},n.prototype.clear=function(){try{i.clear()}catch(n){}},n.prototype.key=function(n){try{return i.key(n)}catch(n){return null}},Object.defineProperty(n.prototype,"length",{get:function(){try{return i.length}catch(n){return 0}},enumerable:!0,configurable:!0}),n}();t.SafeLocalStorage=u},function(n,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var f=i(5),r=i(4),u=i(0),e=i(66),o=function(){function n(){}return n.getHash=function(t){void 0===t&&(t=window);f.Assert.exists(t);var i="#"+(t.location.href.split("#")[1]||"");return n.getAjaxcrawlableHash(i)},n.getValue=function(t,i){f.Assert.isNonEmptyString(t);f.Assert.exists(i);i=n.getAjaxcrawlableHash(i);var r=n.getRawValue(t,i);return void 0!=r&&(r=n.getValueDependingOnType(t,r)),r},n.encodeValues=function(t){var i=[];return u.each(t,function(t,f){var e="";r.Utils.isNonEmptyArray(t)?e=n.encodeArray(t):u.isObject(t)&&r.Utils.isNonEmptyArray(u.keys(t))?e=n.encodeObject(t):r.Utils.isNullOrUndefined(t)||(e=r.Utils.safeEncodeURIComponent(t.toString()));""!=e&&i.push(f+"="+e)}),i.join("&")},n.getAjaxcrawlableHash=function(n){return void 0!=n[1]&&"!"==n[1]?n.substring(0,1)+n.substring(2):n},n.getRawValue=function(n,t){var u;f.Assert.exists(n);f.Assert.exists(t);f.Assert.check(0==t.indexOf("#")||""==t);for(var e=t.substr(1).split("&"),i=0,r=!0,o=void 0;r;)u=e[i].split("="),u[0]==n?(r=!1,o=u[1]):++i>=e.length&&(i=void 0,r=!1);return o},n.getValueDependingOnType=function(t,i){var r,u=n.getValueType(t,i);if("object"==u)r=n.decodeObject(i);else if("array"==u)r=n.decodeArray(i);else try{r=decodeURIComponent(i)}catch(r){new e.Logger(n).warn("Error while decoding a value from the URL as a standard value",r,t,i)}return r},n.getValueType=function(t,i){return"q"==t?"other":n.isObject(i)?"object":n.startsOrEndsWithSquareBracket(i)?"array":"other"},n.startsWithLeftSquareBracket=function(t){return n.DELIMITER.arrayStartRegExp.test(t)},n.startsWithEncodedLeftSquareBracket=function(t){return 0==t.indexOf(r.Utils.safeEncodeURIComponent(n.DELIMITER.arrayStart))},n.endsWithRightSquareBracket=function(t){return n.DELIMITER.arrayEndRegExp.test(t)},n.endsWithEncodedRightSquareBracket=function(t){var i=r.Utils.safeEncodeURIComponent(n.DELIMITER.arrayEnd),u=t.indexOf(i);return-1!==u&&u==t.length-i.length},n.isObjectStartNotEncoded=function(t){return t.substr(0,1)==n.DELIMITER.objectStart},n.isObjectStartEncoded=function(t){return 0==t.indexOf(r.Utils.safeEncodeURIComponent(n.DELIMITER.objectStart))},n.isObjectEndNotEncoded=function(t){return t.substr(t.length-1)==n.DELIMITER.objectEnd},n.isObjectEndEncoded=function(t){return t.indexOf(r.Utils.safeEncodeURIComponent(n.DELIMITER.objectEnd))==t.length-r.Utils.safeEncodeURIComponent(n.DELIMITER.objectEnd).length},n.isObject=function(t){var i=n.isObjectStartNotEncoded(t)||n.isObjectStartEncoded(t),r=n.isObjectEndNotEncoded(t)||n.isObjectEndEncoded(t);return i&&r},n.startsOrEndsWithSquareBracket=function(t){var i=n.startsWithLeftSquareBracket(t)||n.startsWithEncodedLeftSquareBracket(t),r=n.endsWithRightSquareBracket(t)||n.endsWithEncodedRightSquareBracket(t);return i||r},n.encodeArray=function(t){var i=u.map(t,function(n){return r.Utils.safeEncodeURIComponent(n)});return n.DELIMITER.arrayStart+i.join(",")+n.DELIMITER.arrayEnd},n.encodeObject=function(t){var i=this,f=u.map(t,function(n,t){return'"'+r.Utils.safeEncodeURIComponent(t)+'":'+i.encodeValue(n)});return n.DELIMITER.objectStart+f.join(" , ")+n.DELIMITER.objectEnd},n.encodeValue=function(t){return u.isArray(t)?n.encodeArray(t):u.isObject(t)?JSON.stringify(t):u.isNumber(t)||u.isBoolean(t)?r.Utils.safeEncodeURIComponent(t.toString()):'"'+r.Utils.safeEncodeURIComponent(t)+'"'},n.decodeObject=function(t){var i,u;n.isObjectStartEncoded(t)&&n.isObjectEndEncoded(t)&&(t=t.replace(/encodeURIComponent(HashUtils.Delimiter.objectStart)/,n.DELIMITER.objectStart),t=t.replace(r.Utils.safeEncodeURIComponent(n.DELIMITER.objectEnd),n.DELIMITER.objectEnd));try{return i=/(\[.*\])/.exec(t),i&&(t=t.replace(/(\[.*\])/,"["+this.decodeArray(i[1]).map(function(n){return'"'+n+'"'}).join(",")+"]")),u=decodeURIComponent(t),JSON.parse(u)}catch(i){return new e.Logger(n).warn("Error while decoding a value from the URL as an object",i,t),{}}},n.decodeArray=function(t){var i=n.removeSquareBrackets(t),r=i.split(",");return u.chain(r).map(function(i){try{return decodeURIComponent(i)}catch(r){return new e.Logger(n).warn("Error while decoding a value from the URL as an array",r,i,t),null}}).compact().value()},n.removeSquareBrackets=function(t){return n.startsWithEncodedLeftSquareBracket(t)&&(t=t.replace(r.Utils.safeEncodeURIComponent(n.DELIMITER.arrayStart),"")),n.endsWithEncodedRightSquareBracket(t)&&(t=t.replace(r.Utils.safeEncodeURIComponent(n.DELIMITER.arrayEnd),"")),n.startsWithLeftSquareBracket(t)&&(t=t.replace(n.DELIMITER.arrayStart,"")),n.endsWithRightSquareBracket(t)&&(t=t.replace(n.DELIMITER.arrayEnd,"")),t},n.DELIMITER={objectStart:"{",objectEnd:"}",arrayStart:"[",arrayEnd:"]",arrayStartRegExp:/^\[/,arrayEndRegExp:/\]$/},n}();t.HashUtils=o},function(n,t,i){"use strict";var f=this&&this.__assign||Object.assign||function(n){for(var t,r,i=1,u=arguments.length;i<u;i++){t=arguments[i];for(r in t)Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n};Object.defineProperty(t,"__esModule",{value:!0});var u=i(0),r=i(4),e=function(){function n(){}return n.getUrlParameter=function(n){return decodeURIComponent((new RegExp("[?|&]"+n+"=([^&;]+?)(&|#|;|$)").exec(location.search)||[,""])[1].replace(/\+/g,"%20"))||null},n.merge=function(t){for(var u=[],i=1;i<arguments.length;i++)u[i-1]=arguments[i];return u.forEach(function(i){var e=n.normalizeAsParts(i),o=e.path,u=e.queryNormalized,s,h;(r.Utils.isNonEmptyString(o)&&(t=f({},t,{url:o})),r.Utils.isNonEmptyArray(u))&&(s=r.Utils.isNonEmptyArray(t.queryString),h=s?r.Utils.concatWithoutDuplicate(t.queryString,u):u,t=f({},t,{queryString:h}))}),t},n.normalizeAsString=function(n){var t=this.normalizeAsParts(n),i=t.queryNormalized;return""+t.path+this.addToUrlIfNotEmpty(i,"&","?")},n.normalizeAsParts=function(t){var i=this.normalizePaths(t);return{pathsNormalized:i,queryNormalized:this.normalizeQueryString(t),path:this.addToUrlIfNotEmpty(i,"/",n.getRelativePathLeadingCharacters(t))}},n.getRelativePathLeadingCharacters=function(n){var i="",r=u.first(this.toArray(n.paths)),t;return r&&(t=/^(([\/])+)/.exec(r),t&&(i=t[0])),i},n.normalizePaths=function(n){var t=this;return this.toArray(n.paths).map(function(n){return r.Utils.isNonEmptyString(n)?t.removeProblematicChars(n):""})},n.normalizeQueryString=function(t){var r=this,i=[],f,e,o;return t.queryAsString&&(f=this.toArray(t.queryAsString).map(function(n){return n=r.removeProblematicChars(n),n=r.encodeKeyValuePair(n)}),i=i.concat(f)),t.query&&(e=u.pairs(t.query),o=e.map(function(t){var i=t[0],f=t[1];return u.isString(i)&&u.contains(["pipeline"],i.toLowerCase())||!n.isInvalidQueryStringValue(f)&&!n.isInvalidQueryStringValue(i)?[r.removeProblematicChars(i),r.decodeThenEncode(f)].join("="):""}),i=i.concat(o)),u.uniq(i)},n.addToUrlIfNotEmpty=function(n,t,i){return r.Utils.isNonEmptyArray(n)?""+i+u.compact(n).join(t):""},n.startsWith=function(n,t){return r.Utils.stringStartsWith(t,n)},n.endsWith=function(n,t){return r.Utils.stringEndsWith(t,n)},n.removeAtEnd=function(n,t){for(;this.endsWith(n,t);)t=t.slice(0,t.length-n.length);return t},n.removeAtStart=function(n,t){for(;this.startsWith(n,t);)t=t.slice(n.length);return t},n.toArray=function(n){return u.isArray(n)?n:[n]},n.encodeKeyValuePair=function(n){var r=n.split("="),t,i;return 0==r.length?n:(t=r[0],i=u.rest(r,1).join(""),t&&i?(t=this.removeProblematicChars(t),i=this.decodeThenEncode(i),t+"="+i):n)},n.removeProblematicChars=function(n){var t=this;return["?","/","#","="].forEach(function(i){n=t.removeAtStart(i,n);n=t.removeAtEnd(i,n)}),n},n.decodeThenEncode=function(n){var t=decodeURIComponent(n);return r.Utils.safeEncodeURIComponent(t)},n.isInvalidQueryStringValue=function(n){return u.isString(n)?r.Utils.isEmptyString(n):r.Utils.isNullOrUndefined(n)},n}();t.UrlUtils=e},function(n,t,i){"use strict";var v=this&&this.__extends||function(){var n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])};return function(t,i){function r(){this.constructor=t}n(t,i);t.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),y=this&&this.__awaiter||function(n,t,i,r){return new(i||(i=Promise))(function(u,f){function o(n){try{e(r.next(n))}catch(n){f(n)}}function s(n){try{e(r.throw(n))}catch(n){f(n)}}function e(n){n.done?u(n.value):new i(function(t){t(n.value)}).then(o,s)}e((r=r.apply(n,t||[])).next())})},p=this&&this.__generator||function(n,t){function f(n){return function(t){return s([n,t])}}function s(f){if(e)throw new TypeError("Generator is already executing.");for(;r;)try{if(e=1,u&&(i=u[2&f[0]?"return":f[0]?"throw":"next"])&&!(i=i.call(u,f[1])).done)return i;switch(u=0,i&&(f=[0,i.value]),f[0]){case 0:case 1:i=f;break;case 4:return r.label++,{value:f[1],done:!1};case 5:r.label++;u=f[1];f=[0];continue;case 7:f=r.ops.pop();r.trys.pop();continue;default:if(i=r.trys,!(i=i.length>0&&i[i.length-1])&&(6===f[0]||2===f[0])){r=0;continue}if(3===f[0]&&(!i||f[1]>i[0]&&f[1]<i[3])){r.label=f[1];break}if(6===f[0]&&r.label<i[1]){r.label=i[1];i=f;break}if(i&&r.label<i[2]){r.label=i[2];r.ops.push(f);break}i[2]&&r.ops.pop();r.trys.pop();continue}f=t.call(n,r)}catch(n){f=[6,n];u=0}finally{e=i=0}if(5&f[0])throw f[1];return{value:f[0]?f[1]:void 0,done:!0}}var e,u,i,o,r={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:f(0),"throw":f(1),"return":f(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o};Object.defineProperty(t,"__esModule",{value:!0});var c=i(88),f=i(0),u=i(11),w=i(26),e=i(5),l=i(31),b=i(331),k=i(36),o=i(49),d=i(45),r=i(1),g=i(41),a=i(21),nt=i(43),s=i(4),tt=i(50),it=i(139),h=function(){function n(){this.searchAsYouType=!1;this.cancel=!1;this.logInActionsHistory=!1;this.shouldRedirectStandaloneSearchbox=!0}return n}(),rt=function(n){function t(i,r,u,f){var o=n.call(this,i,t.ID)||this;return o.options=r,o.searchInterface=f,o.modalBox=w.ModalBox,o.closeModalBox=!0,o.showingExecutingQueryAnimation=!1,o.localStorage=new g.LocalStorageUtils("lastQueryHash"),e.Assert.exists(i),e.Assert.exists(r),o.firstQuery=!0,o.initializeActionsHistory(),o}return v(t,n),Object.defineProperty(t.prototype,"usageAnalytics",{get:function(){return this.searchInterface.usageAnalytics},enumerable:!0,configurable:!0}),t.prototype.setEndpoint=function(n){this.overrideEndpoint=n;this.logger.debug("Endpoint set",n)},t.prototype.getEndpoint=function(){var n=this.overrideEndpoint||this.options.endpoint;return new b.SearchEndpointWithDefaultCallOptions(n,this.getCallOptions())},t.prototype.getLastQuery=function(){return this.lastQuery||(new o.QueryBuilder).build()},t.prototype.getLastResults=function(){return this.lastQueryResults},t.prototype.fetchQueryExecutionPlan=function(){return y(this,void 0,void 0,function(){var n,t;return p(this,function(i){switch(i.label){case 0:n=this.createQueryBuilder(new h).build();this.logger.debug("Fetching query execution plan");i.label=1;case 1:return i.trys.push([1,3,,4]),[4,this.getEndpoint().plan(n)];case 2:return[2,i.sent()];case 3:return t=i.sent(),[2,null];case 4:return[2]}})})},t.prototype.executeQuery=function(n){var t=this,o,r,i,s,u,c;return(n=f.extend(new h,n),this.closeModalBoxIfNeeded(n?n.closeModalBox:void 0),this.logger.debug("Executing new query"),this.cancelAnyCurrentPendingQuery(),null!=n.beforeExecuteQuery&&n.beforeExecuteQuery(),n.ignoreWarningSearchEvent||this.usageAnalytics.warnAboutSearchEvent(),this.showExecutingQueryAnimation(),o={searchAsYouType:n.searchAsYouType,cancel:n.cancel,origin:n.origin,shouldRedirectStandaloneSearchbox:n.shouldRedirectStandaloneSearchbox},this.newQueryEvent(o),o.cancel)?void this.cancelQuery():(r=this.createQueryBuilder(n),r?(i=r.build(),n.logInActionsHistory&&this.logQueryInActionsHistory(i),s=this.getEndpoint(),u=this.currentPendingQuery=s.search(i,{analyticsInformation:this.getAnalyticsInformation()}),u.then(function(f){var h,o,s;if(e.Assert.exists(f),t.firstQuery&&(t.firstQuery=!1),u===t.currentPendingQuery)return(t.logger.debug("Query results received",i,f),t.keepLastSearchUid(i,f,n)?(f.searchUid=t.getLastSearchUid(),f._reusedSearchUid=!0,a.QueryUtils.setPropertyOnResults(f,"queryUid",t.getLastSearchUid())):(t.lastQueryHash=t.queryHash(i,f),t.lastSearchUid=f.searchUid),t.lastQuery=i,t.lastQueryResults=f,t.currentError=null,h={queryBuilder:r,query:i,results:f,searchAsYouType:n.searchAsYouType},t.preprocessResultsEvent(h),o={queryBuilder:r,query:i,results:f,searchAsYouType:n.searchAsYouType,retryTheQuery:!1},0==f.results.length&&t.noResultEvent(o),o.retryTheQuery)?t.executeQuery():(t.lastQueryBuilder=r,t.currentPendingQuery=void 0,s={queryBuilder:r,query:i,results:f,searchAsYouType:n.searchAsYouType},t.querySuccessEvent(s),l.Defer.defer(function(){t.deferredQuerySuccessEvent(s);t.hideExecutingQueryAnimation()}),f)}).catch(function(f){if(u===t.currentPendingQuery){t.logger.error("Query triggered an error",i,f);t.currentPendingQuery=void 0;var e={queryBuilder:r,endpoint:s,query:i,error:f,searchAsYouType:n.searchAsYouType};t.lastQuery=i;t.lastQueryResults=null;t.currentError=f;t.queryError(e);t.hideExecutingQueryAnimation()}}),c={queryBuilder:r,query:i,searchAsYouType:n.searchAsYouType,promise:u},this.duringQueryEvent(c),this.currentPendingQuery):void 0)},t.prototype.fetchMore=function(n){var t=this,i;if(void 0==this.currentPendingQuery){this.usageAnalytics.sendAllPendingEvents();i=new o.QueryBuilder;this.continueLastQueryBuilder(i,n);var e=i.build(),h=this.getEndpoint(),s=this.currentPendingQuery=h.search(e),c={queryBuilder:i,query:e,searchAsYouType:!1,promise:s};return r.$$(this.element).trigger(u.QueryEvents.duringFetchMoreQuery,c),this.lastQueryBuilder=i,this.lastQuery=e,s.then(function(n){var r,u;t.currentPendingQuery=void 0;null==t.lastQueryResults?t.lastQueryResults=n:f.forEach(n.results,function(n){t.lastQueryResults.results.push(n)});r={queryBuilder:i,query:e,results:n,searchAsYouType:!1};t.preprocessResultsEvent(r);a.QueryUtils.setIndexAndUidOnQueryResults(e,n,t.getLastSearchUid(),n.pipeline,n.splitTestRun);u={query:e,results:n,queryBuilder:i,searchAsYouType:!1};t.fetchMoreSuccessEvent(u)}),this.currentPendingQuery}},t.prototype.cancelQuery=function(){this.cancelAnyCurrentPendingQuery();this.hideExecutingQueryAnimation()},t.prototype.deferExecuteQuery=function(n){var t=this;this.showExecutingQueryAnimation();l.Defer.defer(function(){return t.executeQuery(n)})},t.prototype.ensureCreatedQueryBuilder=function(){this.createdOneQueryBuilder||this.createQueryBuilder(new h)},t.prototype.createQueryBuilder=function(n){var t,i,r,u;return(e.Assert.exists(n),it.QueryboxQueryParameters.allowDuplicateQuery(),this.createdOneQueryBuilder=!0,t=new o.QueryBuilder,t.locale=String.locale,t.firstResult=t.firstResult||0,i={queryBuilder:t,searchAsYouType:n.searchAsYouType,cancel:n.cancel},this.buildingQueryEvent(i),r={queryBuilder:t,searchAsYouType:n.searchAsYouType,cancel:n.cancel},this.doneBuildingQueryEvent(r),i.cancel||r.cancel)?void this.cancelQuery():(u=this.getPipelineInUrl(),u&&(t.pipeline=u),t)},t.prototype.isStandaloneSearchbox=function(){return s.Utils.isNonEmptyString(this.options.searchPageUri)},t.prototype.saveLastQuery=function(){this.localStorage.save({expire:(new Date).getTime()+18e5,hash:this.lastQueryHash,uid:this.lastSearchUid})},t.prototype.getLastQueryHash=function(){return this.lastQueryHash?this.lastQueryHash:(this.loadLastQueryHash(),this.lastQueryHash||this.queryHash((new o.QueryBuilder).build()))},t.prototype.resetHistory=function(){this.historyStore.clear()},t.prototype.enableHistory=function(){this.historyStore=c.buildHistoryStore()},t.prototype.disableHistory=function(){this.historyStore=c.buildNullHistoryStore()},t.prototype.initializeActionsHistory=function(){this.enableHistory();this.usageAnalytics.isActivated()||(this.historyStore.clear(),this.disableHistory())},t.prototype.closeModalBoxIfNeeded=function(n){(void 0!=n?n:this.closeModalBox)&&this.modalBox.close(!0)},t.prototype.getLastSearchUid=function(){return null!=this.lastSearchUid?this.lastSearchUid:(this.loadLastQueryHash(),this.lastSearchUid)},t.prototype.loadLastQueryHash=function(){var n=this.localStorage.load();null!=n&&(new Date).getTime()<=n.expire&&(this.lastQueryHash=n.hash,this.lastSearchUid=n.uid,this.localStorage.remove())},t.prototype.continueLastQueryBuilder=function(n,t){f.extend(n,this.lastQueryBuilder);n.firstResult=n.firstResult+n.numberOfResults;n.numberOfResults=t},t.prototype.getPipelineInUrl=function(){return nt.UrlUtils.getUrlParameter("pipeline")},t.prototype.cancelAnyCurrentPendingQuery=function(){return!!s.Utils.exists(this.currentPendingQuery)&&(this.logger.debug("Cancelling current pending query"),Promise.reject("Cancelling current pending query"),this.currentPendingQuery=void 0,!0)},t.prototype.showExecutingQueryAnimation=function(){this.showingExecutingQueryAnimation||(r.$$(this.element).addClass("coveo-executing-query"),this.showingExecutingQueryAnimation=!0)},t.prototype.hideExecutingQueryAnimation=function(){this.showingExecutingQueryAnimation&&(r.$$(this.element).removeClass("coveo-executing-query"),this.showingExecutingQueryAnimation=!1)},t.prototype.keepLastSearchUid=function(n,t,i){return!0===i.keepLastSearchUid||!!(this.searchInterface&&this.searchInterface.options&&this.searchInterface.options.enableHistory)&&this.compareWithLastQueryHash(this.queryHash(n,t))},t.prototype.compareWithLastQueryHash=function(n){var t=JSON.parse(this.getLastQueryHash()),i=JSON.parse(n);return s.Utils.objectEqual(t,i)},t.prototype.queryHash=function(n,t){var i=f.pick.apply(void 0,[n].concat(["q","aq","cq","dq","lq","searchHub","tab","pipeline","sortCriteria","recommendation","commerce","facets"]));return t&&(i.pipeline=t.pipeline),JSON.stringify(i)},t.prototype.getCallOptions=function(){var n={options:{authentication:[]}};return r.$$(this.element).trigger(u.QueryEvents.buildingCallOptions,n),n.options},t.prototype.newQueryEvent=function(n){r.$$(this.element).trigger(u.QueryEvents.newQuery,n)},t.prototype.buildingQueryEvent=function(n){r.$$(this.element).trigger(u.QueryEvents.buildingQuery,n)},t.prototype.doneBuildingQueryEvent=function(n){r.$$(this.element).trigger(u.QueryEvents.doneBuildingQuery,n)},t.prototype.duringQueryEvent=function(n){r.$$(this.element).trigger(u.QueryEvents.duringQuery,n)},t.prototype.querySuccessEvent=function(n){r.$$(this.element).trigger(u.QueryEvents.querySuccess,n)},t.prototype.fetchMoreSuccessEvent=function(n){r.$$(this.element).trigger(u.QueryEvents.fetchMoreSuccess,n)},t.prototype.deferredQuerySuccessEvent=function(n){r.$$(this.element).trigger(u.QueryEvents.deferredQuerySuccess,n)},t.prototype.queryError=function(n){r.$$(this.element).trigger(u.QueryEvents.queryError,n)},t.prototype.preprocessResultsEvent=function(n){r.$$(this.element).trigger(u.QueryEvents.preprocessResults,n)},t.prototype.noResultEvent=function(n){r.$$(this.element).trigger(u.QueryEvents.noResults,n)},t.prototype.debugInfo=function(){var n=this,t={query:this.lastQuery};return null!=this.lastQueryResults&&(t.queryDuration=function(){return n.buildQueryDurationSection(n.lastQueryResults)},t.results=function(){return f.omit(n.lastQueryResults,"results")}),null!=this.currentError&&(t.error=function(){return n.currentError}),t},t.prototype.buildQueryDurationSection=function(n){var t=r.Dom.createElement("div",{className:"coveo-debug-queryDuration"}),i=r.Dom.createElement("div",{className:"coveo-debug-durations"}),u=k.BaseComponent.getComponentRef("Debug");return t.appendChild(i),f.forEach(u.durationKeys,function(u){var e=n[u],f,o,s;null!=e&&(i.appendChild(r.Dom.createElement("div",{className:"coveo-debug-duration",style:"width:"+e+"px","data-id":u})),f=r.Dom.createElement("div",{className:"coveo-debug-duration-legend","data-id":u}),t.appendChild(f),o=r.Dom.createElement("span",{className:"coveo-debug-duration-label"}),o.appendChild(document.createTextNode(u)),f.appendChild(o),s=r.Dom.createElement("span",{className:"coveo-debug-duration-value"}),s.appendChild(document.createTextNode(e)),f.appendChild(s))}),t},t.prototype.logQueryInActionsHistory=function(n){var t={name:"Query",value:n.q,time:JSON.stringify(new Date)};this.historyStore.addElement(t)},t.prototype.getAnalyticsInformation=function(){var n=new tt.AnalyticsInformation;return n.pendingSearchEvent=this.usageAnalytics.getPendingSearchEvent(),n.originContext=this.usageAnalytics.getOriginContext?this.usageAnalytics.getOriginContext():"Search",n.userDisplayName=this.usageAnalytics.getUserDisplayName?this.usageAnalytics.getUserDisplayName():void 0,n},t.ID="QueryController",t}(d.RootComponent);t.QueryController=rt},function(n,t,i){"use strict";var f=this&&this.__extends||function(){var n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])};return function(t,i){function r(){this.constructor=t}n(t,i);t.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),r,u;Object.defineProperty(t,"__esModule",{value:!0});r=i(36);u=function(n){function t(t,i){var r=n.call(this,t,i)||this;return r.element=t,r.type=i,r}return f(t,n),t}(r.BaseComponent);t.RootComponent=u},function(n,t,i){var r=i(163)("wks"),e=i(165),u=i(38).Symbol,f="function"==typeof u;(n.exports=function(n){return r[n]||(r[n]=f&&u[n]||(f?u:e)("Symbol."+n))}).store=r},function(n,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var u=i(7),r=i(1),f=function(){function n(){}return Object.defineProperty(n,"allFacetsType",{get:function(){return["Facet","FacetSlider","FacetRange","TimespanFacet","HierarchicalFacet","CategoryFacet","DynamicFacet","DynamicFacetRange","DynamicHierarchicalFacet"]},enumerable:!0,configurable:!0}),Object.defineProperty(n,"allFacetsClassname",{get:function(){return n.allFacetsType.map(function(n){return"Coveo"+n})},enumerable:!0,configurable:!0}),n.getAllFacetElementsFromElement=function(t){var i=n.allFacetsClassname.map(function(n){return"."+n}).join(", "),u=function(n){return!r.$$(n).findAll(i).length};return r.$$(t).findAll(i).filter(u)},n.getAllFacetInstancesFromElement=function(t){return n.getAllFacetElementsFromElement(t).map(function(n){return u.Component.get(n)})},n.getAllFacetsFromSearchInterface=function(t){return n.allFacetsType.reduce(function(n,i){return n.concat(t.getComponents(i))},[])},n}();t.ComponentsTypes=f},function(n,t){"use strict";function i(n,t){return void 0===t&&(t="div"),void 0===n||n<1||n>6?t:"h"+n}Object.defineProperty(t,"__esModule",{value:!0});t.getHeadingTag=i},function(n,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var u=i(0),f=i(4),r=i(74),e=i(184),o=function(){function n(){this.expression=new r.ExpressionBuilder;this.advancedExpression=new r.ExpressionBuilder;this.constantExpression=new r.ExpressionBuilder;this.longQueryExpression=new r.ExpressionBuilder;this.disjunctionExpression=new r.ExpressionBuilder;this.enableQuerySyntax=!1;this.firstResult=0;this.numberOfResults=10;this.requiredFields=[];this.includeRequiredFields=!1;this.enableDidYouMean=!1;this.enableDebug=!1;this.sortCriteria="relevancy";this.retrieveFirstSentences=!0;this.queryFunctions=[];this.rankingFunctions=[];this.groupByRequests=[];this.facetRequests=[];this.facetOptions={};this.categoryFacets=[];this.enableDuplicateFiltering=!1}return n.prototype.build=function(){return{q:this.expression.build(),aq:this.advancedExpression.build(),cq:this.constantExpression.build(),lq:this.longQueryExpression.build(),dq:this.disjunctionExpression.build(),searchHub:this.searchHub,tab:this.tab,locale:this.locale,pipeline:this.pipeline,maximumAge:this.maximumAge,wildcards:this.enableWildcards,questionMark:this.enableQuestionMarks,lowercaseOperators:this.enableLowercaseOperators,partialMatch:this.enablePartialMatch,partialMatchKeywords:this.partialMatchKeywords,partialMatchThreshold:this.partialMatchThreshold,firstResult:this.firstResult,numberOfResults:this.numberOfResults,excerptLength:this.excerptLength,filterField:this.filterField,filterFieldRange:this.filterFieldRange,parentField:this.parentField,childField:this.childField,fieldsToInclude:this.computeFieldsToInclude(),fieldsToExclude:this.fieldsToExclude,enableDidYouMean:this.enableDidYouMean,sortCriteria:this.sortCriteria,sortField:this.sortField,queryFunctions:this.queryFunctions,rankingFunctions:this.rankingFunctions,groupBy:this.groupBy,facets:this.facets,facetOptions:this.facetOptions,categoryFacets:this.categoryFacets,retrieveFirstSentences:this.retrieveFirstSentences,timezone:this.timezone,enableQuerySyntax:this.enableQuerySyntax,enableDuplicateFiltering:this.enableDuplicateFiltering,enableCollaborativeRating:this.enableCollaborativeRating,debug:this.enableDebug,context:this.context,actionsHistory:this.actionsHistory,recommendation:this.recommendation,allowQueriesWithoutKeywords:this.allowQueriesWithoutKeywords,userActions:this.userActions,commerce:this.commerce}},n.prototype.computeCompleteExpression=function(){return this.computeCompleteExpressionParts().full},n.prototype.computeCompleteExpressionParts=function(){return new e.QueryBuilderExpression(this.expression.build(),this.advancedExpression.build(),this.constantExpression.build(),this.disjunctionExpression.build())},n.prototype.computeCompleteExpressionExcept=function(n){return this.computeCompleteExpressionPartsExcept(n).full},n.prototype.computeCompleteExpressionPartsExcept=function(n){var t,i,u,f;return r.ExpressionBuilder.merge(this.expression,this.advancedExpression).remove(n),t=new r.ExpressionBuilder,t.fromExpressionBuilder(this.expression),t.remove(n),i=new r.ExpressionBuilder,i.fromExpressionBuilder(this.advancedExpression),i.remove(n),u=new r.ExpressionBuilder,u.fromExpressionBuilder(this.constantExpression),u.remove(n),f=new r.ExpressionBuilder,f.fromExpressionBuilder(this.disjunctionExpression),f.remove(n),new e.QueryBuilderExpression(t.build(),i.build(),u.build(),f.build())},n.prototype.addFieldsToInclude=function(n){this.fieldsToInclude=u.uniq((this.fieldsToInclude||[]).concat(n))},n.prototype.addRequiredFields=function(n){this.requiredFields=u.uniq(this.requiredFields.concat(n))},n.prototype.addFieldsToExclude=function(n){this.fieldsToExclude=u.uniq((this.fieldsToInclude||[]).concat(n))},n.prototype.computeFieldsToInclude=function(){return this.includeRequiredFields||null!=this.fieldsToInclude?this.requiredFields.concat(this.fieldsToInclude||[]):null},n.prototype.addContextValue=function(n,t){null==this.context&&(this.context={});this.context[n]=t},n.prototype.addContext=function(n){null==this.context&&(this.context={});u.extend(this.context,n)},n.prototype.containsEndUserKeywords=function(){var n=this.build();return f.Utils.isNonEmptyString(n.q)||f.Utils.isNonEmptyString(n.lq)},Object.defineProperty(n.prototype,"groupBy",{get:function(){if(!f.Utils.isEmptyArray(this.groupByRequests))return this.groupByRequests},set:function(n){this.groupByRequests=n},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"facets",{get:function(){if(!f.Utils.isEmptyArray(this.facetRequests))return this.facetRequests},set:function(n){this.facetRequests=n},enumerable:!0,configurable:!0}),n}();t.QueryBuilder=o},function(n,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=i(0),u=i(20),f=i(325),e=i(91),o=i(88),s=function(){function n(){this.visitorIdKey="visitorId";this.clientIdKey="clientId";this.storage=new f.CookieAndLocalStorage}return Object.defineProperty(n.prototype,"clientId",{get:function(){return this.storage.getItem(this.visitorIdKey)||null},set:function(n){this.storage.setItem(this.visitorIdKey,n)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"lastPageId",{get:function(){var i=o.buildHistoryStore(),n=i.getHistory(),t=r.findLastIndex(n,function(n){return"PageView"===n.name});return-1===t?null:n[t].value},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"location",{get:function(){return document.location.href},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"referrer",{get:function(){return document.referrer},enumerable:!0,configurable:!0}),n.prototype.clear=function(){this.clearVisitorId();this.clearClientId()},n.prototype.clearVisitorId=function(){this.storage.removeItem(this.visitorIdKey)},n.prototype.clearClientId=function(){new u.LocalStorageUtils(this.clientIdKey).remove();e.ScopedCookie.erase(this.clientIdKey)},n}();t.AnalyticsInformation=s},function(n,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});!function(n){n[n.BOOLEAN=0]="BOOLEAN";n[n.NUMBER=1]="NUMBER";n[n.STRING=2]="STRING";n[n.LOCALIZED_STRING=3]="LOCALIZED_STRING";n[n.LIST=4]="LIST";n[n.SELECTOR=5]="SELECTOR";n[n.CHILD_HTML_ELEMENT=6]="CHILD_HTML_ELEMENT";n[n.TEMPLATE=7]="TEMPLATE";n[n.FIELD=8]="FIELD";n[n.FIELDS=9]="FIELDS";n[n.ICON=10]="ICON";n[n.COLOR=11]="COLOR";n[n.OBJECT=12]="OBJECT";n[n.QUERY=13]="QUERY";n[n.HELPER=14]="HELPER";n[n.LONG_STRING=15]="LONG_STRING";n[n.JSON=16]="JSON";n[n.JAVASCRIPT=17]="JAVASCRIPT";n[n.NONE=18]="NONE";n[n.QUERY_EXPRESSION=19]="QUERY_EXPRESSION"}(t.ComponentOptionsType||(t.ComponentOptionsType={}))},function(n,t,i){"use strict";var o=this&&this.__extends||function(){var n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])};return function(t,i){function r(){this.constructor=t}n(t,i);t.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),e;Object.defineProperty(t,"__esModule",{value:!0});var f=i(217),s=i(218),r=i(0),u=function(){function n(n,t,i){var u=this;this.expression=t;this.input=i;r.isString(n)?this.value=n:r.isArray(n)&&(this.subResults=n,r.forEach(this.subResults,function(n){n.parent=u}))}return n.prototype.isSuccess=function(){return null!=this.value||null!=this.subResults&&r.all(this.subResults,function(n){return n.isSuccess()})},n.prototype.path=function(n){var t=null!=this.parent&&this.parent!=n?this.parent.path(n):[];return t.push(this),t},n.prototype.findParent=function(n){for(var t=this,i=r.isString(n)?function(t){return n==t.expression.id}:n;null!=t&&!i(t);)t=t.parent;return t},n.prototype.find=function(n){var u=r.isString(n)?function(t){return n==t.expression.id}:n,t,i;if(u(this))return this;if(this.subResults)for(t=0;t<this.subResults.length;t++)if(i=this.subResults[t].find(u),i)return i;return null},n.prototype.findAll=function(n){var t=[],i=r.isString(n)?function(t){return n==t.expression.id}:n;return i(this)&&t.push(this),this.subResults&&(t=r.reduce(this.subResults,function(n,t){return n.concat(t.findAll(i))},t)),t},n.prototype.resultAt=function(n,t){var i,u,f;if(n<0||n>this.getLength())return[];if(null!=t){if(r.isString(t)){if(t==this.expression.id)return[this]}else if(t(this))return[this]}else if(null!=(null==this.value&&null==this.subResults?this.input:this.value))return[this];if(null!=this.subResults){for(i=[],u=0;u<this.subResults.length;u++)if(f=this.subResults[u],i=i.concat(f.resultAt(n,t)),(n-=f.getLength())<0)break;return i}return[]},n.prototype.getExpect=function(){return null==this.value&&null==this.subResults?[this]:null!=this.subResults?r.reduce(this.subResults,function(n,t){return n.concat(t.getExpect())},[]):[]},n.prototype.getBestExpect=function(){var t=this.getExpect(),n=r.groupBy(t,function(n){return n.input}),i=r.last(r.keys(n).sort(function(n,t){return t.length-n.length})),u=n[i],n=r.groupBy(u,function(n){return n.expression.id});return r.map(n,function(n){return r.chain(n).map(function(n){return{path:n.path().length,result:n}}).sortBy("path").pluck("result").first().value()})},n.prototype.getHumanReadableExpect=function(){var n=this.getBestExpect(),t=n.length>0?r.last(n).input:"";return"Expected "+r.map(n,function(n){return n.getHumanReadable()}).join(" or ")+" but "+(t.length>0?JSON.stringify(t[0]):"end of input")+" found."},n.prototype.before=function(){if(null==this.parent)return"";var n=r.indexOf(this.parent.subResults,this);return this.parent.before()+r.chain(this.parent.subResults).first(n).map(function(n){return n.toString()}).join("").value()},n.prototype.after=function(){if(null==this.parent)return"";var n=r.indexOf(this.parent.subResults,this);return r.chain(this.parent.subResults).last(this.parent.subResults.length-n-1).map(function(n){return n.toString()}).join("").value()+this.parent.after()},n.prototype.getLength=function(){return null!=this.value?this.value.length:null!=this.subResults?r.reduce(this.subResults,function(n,t){return n+t.getLength()},0):this.input.length},n.prototype.toHtmlElement=function(){var n=document.createElement("span"),t=null!=this.expression?this.expression.id:null;return null!=t&&n.setAttribute("data-id",t),n.setAttribute("data-success",this.isSuccess().toString()),null!=this.value?(n.appendChild(document.createTextNode(this.value)),n.setAttribute("data-value",this.value)):null!=this.subResults?r.each(this.subResults,function(t){n.appendChild(t.toHtmlElement())}):(n.appendChild(document.createTextNode(this.input)),n.setAttribute("data-input",this.input),n.className="magic-box-error"+(this.input.length>0?"":" magic-box-error-empty")),n.result=this,n},n.prototype.clean=function(t){var i,u,f;return null!=t||!this.isSuccess()?(t=t||r.last(this.getBestExpect()).path(this),i=r.first(t),null!=i)?(u=r.indexOf(this.subResults,i),f=-1==u?[]:r.map(r.first(this.subResults,u),function(n){return n.clean()}),f.push(i.clean(r.rest(t))),new n(f,this.expression,this.input)):new n(null,this.expression,this.input):null!=this.value?new n(this.value,this.expression,this.input):null!=this.subResults?new n(r.map(this.subResults,function(n){return n.clean()}),this.expression,this.input):void 0},n.prototype.clone=function(){return null!=this.value?new n(this.value,this.expression,this.input):null!=this.subResults?new n(r.map(this.subResults,function(n){return n.clone()}),this.expression,this.input):new n(null,this.expression,this.input)},n.prototype.toString=function(){return null!=this.value?this.value:null!=this.subResults?r.map(this.subResults,function(n){return n.toString()}).join(""):this.input},n.prototype.getHumanReadable=function(){return this.expression instanceof s.ExpressionConstant?JSON.stringify(this.expression.value):this.expression.id},n}();t.Result=u;e=function(n){function t(t){var i=n.call(this,[t],f.ExpressionEndOfInput,t.input)||this,r=new u(null,f.ExpressionEndOfInput,t.input.substr(t.getLength()));return r.parent=i,i.subResults.push(r),i}return o(t,n),t}(u);t.EndOfInputResult=e},function(n,t,i){"use strict";function c(n,t,i){return{originalMethod:i.value,nbParams:n[t].prototype.constructor.length}}function rt(){return{url:"",queryString:[],requestData:{},method:"",responseType:"",errorsAsSuccess:!1}}function l(n,t){return t[n-1]||(t[n-1]=rt()),t[n-1]}function f(n){return function(t,i,r){var u=c(t,i,r),f=u.originalMethod,e=u.nbParams;return r.value=function(){for(var i=[],t=0;t<arguments.length;t++)i[t]=arguments[t];return l(e,i).url=this.buildBaseUri(n),f.apply(this,i)},r}}function k(n){return function(t,i,r){var u=c(t,i,r),f=u.originalMethod,e=u.nbParams;return r.value=function(){for(var i=[],t=0;t<arguments.length;t++)i[t]=arguments[t];return l(e,i).url=this.buildSearchAlertsUri(n),f.apply(this,i)},r}}function p(n){return function(t,i,r){var u=c(t,i,r),f=u.originalMethod,e=u.nbParams;return r.value=function(){for(var i=[],t=0;t<arguments.length;t++)i[t]=arguments[t];return l(e,i).requestDataType=n,f.apply(this,i)},r}}function e(n){return function(t,i,r){var u=c(t,i,r),f=u.originalMethod,e=u.nbParams;return r.value=function(){for(var i=[],t=0;t<arguments.length;t++)i[t]=arguments[t];return l(e,i).method=n,f.apply(this,i)},r}}function o(n){return function(t,i,r){var u=c(t,i,r),f=u.originalMethod,e=u.nbParams;return r.value=function(){for(var i=[],t=0;t<arguments.length;t++)i[t]=arguments[t];return l(e,i).responseType=n,f.apply(this,i)},r}}function a(n){return void 0===n&&(n="access_token"),function(t,i,r){var u=c(t,i,r),f=u.originalMethod,e=u.nbParams,o=function(n,t){var i=[];return v.Utils.isNonEmptyString(t.accessToken.token)&&i.push(n+"="+v.Utils.safeEncodeURIComponent(t.accessToken.token)),i};return r.value=function(){for(var u,r,i=[],t=0;t<arguments.length;t++)i[t]=arguments[t];return u=o(n,this),r=l(e,i),r.queryString=(r.queryString||[]).concat(u),f.apply(this,i)},r}}function ut(n){return void 0===n&&(n=yt.buildHistoryStore()),function(t,i,r){var u=c(t,i,r),f=u.originalMethod,e=u.nbParams;return r.value=function(){for(var r,i=[],t=0;t<arguments.length;t++)i[t]=arguments[t];return r=n.getHistory(),null==r&&(r=[]),l(e,i).requestData.actionsHistory=r,f.apply(this,i)},r}}function ft(){return function(n,t,i){var r=c(n,t,i),u=r.originalMethod,f=r.nbParams;return i.value=function(){for(var i,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return i=document.referrer,null==i&&(i=""),l(f,t).requestData.referrer=i,u.apply(this,t)},i}}function et(){return function(n,t,i){var u=c(n,t,i),f=u.originalMethod,e=u.nbParams;return i.value=function(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];var n=t&&t[1]&&t[1].analyticsInformation||new nt.AnalyticsInformation,u=n.pendingSearchEvent?n.pendingSearchEvent.getEventCause():null,o=n.pendingSearchEvent?n.pendingSearchEvent.getEventMeta():null,s=n.userDisplayName,h=n.originContext,c=r({clientId:n.clientId,documentLocation:n.location,documentReferrer:n.referrer,pageId:n.lastPageId},u&&{actionCause:u},o&&{customData:o},s&&{userDisplayName:s},h&&{originContext:h});return l(e,t).requestData.analytics=dt.mapObject(c,function(n){return n||""}),f.apply(this,t)},i}}function ot(){return function(n,t,i){var r=c(n,t,i),u=r.originalMethod,f=r.nbParams;return i.value=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return l(f,t).requestData.visitorId=(new nt.AnalyticsInformation).clientId,u.apply(this,t)},i}}function st(){return function(n,t,i){var r=c(n,t,i),u=r.originalMethod,f=r.nbParams;return i.value=function(){for(var i,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return i=this.options.isGuestUser,l(f,t).requestData.isGuestUser=i,u.apply(this,t)},i}}var r=this&&this.__assign||Object.assign||function(n){for(var t,r,i=1,u=arguments.length;i<u;i++){t=arguments[i];for(r in t)Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},u=this&&this.__decorate||function(n,t,i,r){var f,e=arguments.length,u=e<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r,o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)u=Reflect.decorate(n,t,i,r);else for(o=n.length-1;o>=0;o--)(f=n[o])&&(u=(e<3?f(u):e>3?f(t,i,u):f(t,i))||u);return e>3&&u&&Object.defineProperty(t,i,u),u},w=this&&this.__awaiter||function(n,t,i,r){return new(i||(i=Promise))(function(u,f){function o(n){try{e(r.next(n))}catch(n){f(n)}}function s(n){try{e(r.throw(n))}catch(n){f(n)}}function e(n){n.done?u(n.value):new i(function(t){t(n.value)}).then(o,s)}e((r=r.apply(n,t||[])).next())})},b=this&&this.__generator||function(n,t){function f(n){return function(t){return s([n,t])}}function s(f){if(e)throw new TypeError("Generator is already executing.");for(;r;)try{if(e=1,u&&(i=u[2&f[0]?"return":f[0]?"throw":"next"])&&!(i=i.call(u,f[1])).done)return i;switch(u=0,i&&(f=[0,i.value]),f[0]){case 0:case 1:i=f;break;case 4:return r.label++,{value:f[1],done:!1};case 5:r.label++;u=f[1];f=[0];continue;case 7:f=r.ops.pop();r.trys.pop();continue;default:if(i=r.trys,!(i=i.length>0&&i[i.length-1])&&(6===f[0]||2===f[0])){r=0;continue}if(3===f[0]&&(!i||f[1]>i[0]&&f[1]<i[3])){r.label=f[1];break}if(6===f[0]&&r.label<i[1]){r.label=i[1];i=f;break}if(i&&r.label<i[2]){r.label=i[2];r.ops.push(f);break}i[2]&&r.ops.pop();r.trys.pop();continue}f=t.call(n,r)}catch(n){f=[6,n];u=0}finally{e=i=0}if(5&f[0])throw f[1];return{value:f[0]?f[1]:void 0,done:!0}}var e,u,i,o,r={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:f(0),"throw":f(1),"return":f(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o},it;Object.defineProperty(t,"__esModule",{value:!0});var ht=i(90),ct=i(9),y=i(5),lt=i(103),g=i(307),at=i(308),d=i(21),vt=i(144),v=i(4),h=i(0),yt=i(88),pt=i(72),s=i(43),wt=i(148),bt=i(316),kt=i(324),dt=i(0),nt=i(50),tt=function(){function n(){this.version="v2";this.queryStringArguments={};this.anonymous=!1;this.isGuestUser=!1}return n}();t.DefaultSearchEndpointOptions=tt;it=function(){function n(t){var r=this,i;this.options=t;y.Assert.exists(t);y.Assert.exists(t.restUri);i=new tt;i.anonymous=0==window.location.href.indexOf("file://")&&v.Utils.isNonEmptyString(t.accessToken);this.options=h.extend({},i,t);this.accessToken=new wt.AccessToken(this.options.accessToken,this.options.renewAccessToken);this.accessToken.subscribeToRenewal(function(){return r.createEndpointCaller()});n.isDebugArgumentPresent()&&(this.options.queryStringArguments.debug=1);this.onUnload=function(){r.handleUnload()};window.addEventListener("beforeunload",this.onUnload);this.logger=new ct.Logger(this);this.createEndpointCaller()}return n.configureSampleEndpoint=function(t){n.endpoints.default=n.isUseLocalArgumentPresent()?new n(h.extend({restUri:"http://localhost:8100/rest/search",searchAlertsUri:"http://localhost:8088/rest/search/alerts/"},t)):new n(h.extend({restUri:"https://cloudplatform.coveo.com/rest/search",accessToken:"52d806a2-0f64-4390-a3f2-e0f41a4a73ec"},t))},n.configureSampleEndpointV2=function(t){n.endpoints.default=new n(h.extend({restUri:"https://platform.cloud.coveo.com/rest/search",accessToken:"xx564559b1-0045-48e1-953c-3addd1ee4457",queryStringArguments:{organizationId:"searchuisamples",viewAllContent:1}},t))},n.configureCloudEndpoint=function(t,i,r,u){void 0===r&&(r="https://cloudplatform.coveo.com/rest/search");var f={restUri:r,accessToken:i,queryStringArguments:{organizationId:t}},e=n.mergeConfigOptions(f,u);n.endpoints.default=new n(n.removeUndefinedConfigOption(e))},n.configureCloudV2Endpoint=function(t,i,r,u){return void 0===r&&(r="https://platform.cloud.coveo.com/rest/search"),n.configureCloudEndpoint(t,i,r,u)},n.configureOnPremiseEndpoint=function(t,i,r){var u=n.mergeConfigOptions({restUri:t,accessToken:i},r);n.endpoints.default=new n(n.removeUndefinedConfigOption(u))},Object.defineProperty(n,"defaultEndpoint",{get:function(){return this.endpoints.default||h.find(n.endpoints,function(n){return null!=n})},enumerable:!0,configurable:!0}),n.removeUndefinedConfigOption=function(n){return h.each(h.keys(n),function(t){void 0==n[t]&&delete n[t]}),n},n.mergeConfigOptions=function(t,i){return t=n.removeUndefinedConfigOption(t),i=n.removeUndefinedConfigOption(i),h.extend({},t,i)},n.prototype.reset=function(){this.createEndpointCaller()},n.prototype.setRequestModifier=function(n){this.caller.options.requestModifier=n},n.prototype.getBaseUri=function(){return this.buildBaseUri("")},n.prototype.getBaseAlertsUri=function(){return this.buildSearchAlertsUri("")},n.prototype.getAuthenticationProviderUri=function(n,t,i,u,f){return s.UrlUtils.normalizeAsString({paths:[f.url,n],queryAsString:f.queryString,query:r({redirectUri:t,message:i},this.buildBaseQueryString(u))})},n.prototype.exchangeHandshakeToken=function(n,t,i){return w(this,void 0,void 0,function(){var r,u;return b(this,function(f){switch(f.label){case 0:return r=this.buildCompleteCall(n,t,i),[4,this.performOneCall(r.params,r.options)];case 1:if(u=f.sent(),!u.token)throw new Error("Failed to exchange handshake token.");return[2,u.token]}})})},n.prototype.isJsonp=function(){return this.caller.useJsonp},n.prototype.buildCompleteCall=function(n,t,i){return y.Assert.exists(n),i=r({},i,{requestData:r({},i.requestData,h.omit(n,function(n){return v.Utils.isNullOrUndefined(n)}))}),{options:t,params:i}},n.prototype.search=function(n,t,i){var r=this,u=this.buildCompleteCall(n,t,i),f;return this.logger.info("Performing REST query",n),f=new Date,this.performOneCall(u.params,u.options).then(function(t){return r.logger.info("REST query successful",t,n),null==t.apiVersion&&(t.apiVersion=1),t.apiVersion<lt.version.supportedApiVersion&&r.logger.error("Please update your REST Search API"),t.searchAPIDuration=t.duration,t.duration=pt.TimeSpan.fromDates(f,new Date).getMilliseconds(),v.Utils.isNullOrEmptyString(t.searchUid)&&(t.searchUid=d.QueryUtils.createGuid()),d.QueryUtils.setIndexAndUidOnQueryResults(n,t,t.searchUid,t.pipeline,t.splitTestRun),d.QueryUtils.setTermsToHighlightOnQueryResults(n,t),t})},n.prototype.fetchBinary=function(n,t,i){return w(this,void 0,void 0,function(){var r;return b(this,function(){return r=this.buildCompleteCall(n,t,i),this.logger.info("Performing REST query",n),[2,this.performOneCall(r.params,r.options)]})})},n.prototype.plan=function(n,t,i){return w(this,void 0,void 0,function(){var r,u;return b(this,function(f){switch(f.label){case 0:return r=this.buildCompleteCall(n,t,i),this.logger.info("Performing REST query PLAN",n),[4,this.performOneCall(r.params,r.options)];case 1:return u=f.sent(),this.logger.info("REST query successful",u,n),[2,new kt.ExecutionPlan(u)]}})})},n.prototype.getExportToExcelLink=function(n,t,i,u){return s.UrlUtils.normalizeAsString({paths:u.url,queryAsString:u.queryString,query:r({numberOfResults:t?t.toString():null,format:"xlsx"},this.buildQueryAsQueryString(null,n),this.buildBaseQueryString(i))})},n.prototype.getRawDataStream=function(n,t,i,u){var f=this;return y.Assert.exists(n),u=s.UrlUtils.merge(u,{paths:u.url,query:r({dataStream:t},this.buildViewAsHtmlQueryString(n,i))}),this.logger.info("Performing REST query for datastream "+t+" on item uniqueID "+n),this.performOneCall(u,i).then(function(t){return f.logger.info("REST query successful",t,n),t})},n.prototype.getViewAsDatastreamUri=function(n,t,i,u){return void 0===i&&(i={}),s.UrlUtils.normalizeAsString({paths:u.url,queryAsString:u.queryString,query:r({dataStream:t},this.buildViewAsHtmlQueryString(n,i),this.buildQueryAsQueryString(i.query,i.queryObject),this.buildBaseQueryString(i))})},n.prototype.getDocument=function(n,t,i){var u=this;return i=s.UrlUtils.merge(i,{paths:i.url,queryAsString:i.queryString,query:r({},this.buildViewAsHtmlQueryString(n,t))}),this.logger.info("Performing REST query to retrieve document",n),this.performOneCall(i,t).then(function(t){return u.logger.info("REST query successful",t,n),t})},n.prototype.getDocumentText=function(n,t,i){var u=this;return i=s.UrlUtils.merge(i,{paths:i.url,queryAsString:i.queryString,query:r({},this.buildViewAsHtmlQueryString(n,t))}),this.logger.info('Performing REST query to retrieve "TEXT" version of document',n),this.performOneCall(i,t).then(function(t){return u.logger.info("REST query successful",t,n),t.content})},n.prototype.getDocumentHtml=function(n,t,i){var u=this;return t=r({},t),i=s.UrlUtils.merge(r({},i,{requestData:t.queryObject||{q:t.query}}),{paths:i.url,queryAsString:i.queryString,query:r({},this.buildViewAsHtmlQueryString(n,t))}),this.logger.info('Performing REST query to retrieve "HTML" version of document',n),this.performOneCall(i,t).then(function(t){return u.logger.info("REST query successful",t,n),t})},n.prototype.getViewAsHtmlUri=function(n,t,i){return s.UrlUtils.normalizeAsString({paths:i.url,queryAsString:i.queryString,query:r({},this.buildViewAsHtmlQueryString(n,t),this.buildBaseQueryString(t))})},n.prototype.listFieldValues=function(n,t,i){var u=this;return y.Assert.exists(n),i=r({},i,{requestData:r({},i.requestData,n)}),this.logger.info("Listing field values",n),this.performOneCall(i,t).then(function(t){return u.logger.info("REST list field values successful",t.values,n),t.values})},n.prototype.listFieldValuesBatch=function(n,t,i){var u=this;return y.Assert.exists(n),i=r({},i,{requestData:r({},i.requestData,n)}),this.logger.info("Listing field batch values",n),this.performOneCall(i,t).then(function(t){return u.logger.info("REST list field batch values successful",t.batch,n),t.batch})},n.prototype.listFields=function(n,t){var i=this;return this.logger.info("Listing fields"),this.performOneCall(t,n).then(function(n){return i.logger.info("REST list fields successful",n.fields),n.fields})},n.prototype.extensions=function(n,t){var i=this;return this.logger.info("Performing REST query to list extensions"),this.performOneCall(t,n).then(function(n){return i.logger.info("REST query successful",n),n})},n.prototype.rateDocument=function(n,t,i){var u=this;return this.logger.info("Performing REST query to rate a document",n),i=r({},i,{requestData:r({},i.requestData,n)}),this.performOneCall(i,t).then(function(){return u.logger.info("REST query successful",n),!0})},n.prototype.tagDocument=function(n,t,i){var u=this;return this.logger.info("Performing REST query to tag an item",n),i=r({},i,{requestData:r({},i.requestData,n)}),this.performOneCall(i,t).then(function(){return u.logger.info("REST query successful",n),!0})},n.prototype.getQuerySuggest=function(n,t,i){var u=this,r=this.buildCompleteCall(n,t,i);return this.logger.info("Performing REST query to get query suggest",n),this.performOneCall(r.params,r.options).then(function(n){return u.logger.info("REST query successful",n),n})},n.prototype.getRevealQuerySuggest=function(n,t,i){return this.getQuerySuggest(n,t,i)},n.prototype.facetSearch=function(n,t,i){return w(this,void 0,void 0,function(){var r,u;return b(this,function(f){switch(f.label){case 0:return r=this.buildCompleteCall(n,t,i),this.logger.info("Performing REST query to get facet search results",n),[4,this.performOneCall(r.params,r.options)];case 1:return u=f.sent(),this.logger.info("REST query successful",u),[2,u]}})})},n.prototype.follow=function(n,t,i){var r=this;return i.requestData=n,this.logger.info("Performing REST query to follow an item or a query",n),this.performOneCall(i,t).then(function(n){return r.logger.info("REST query successful",n),n})},n.prototype.listSubscriptions=function(n,t,i){var r=this;return this.options.isGuestUser?new Promise(function(n,t){t()}):(null==this.currentListSubscriptions&&(i=s.UrlUtils.merge(i,{paths:i.url,query:{page:n||0}}),this.logger.info("Performing REST query to list subscriptions"),this.currentListSubscriptions=this.performOneCall(i,t),this.currentListSubscriptions.then(function(n){return r.currentListSubscriptions=null,r.logger.info("REST query successful",n),n}).catch(function(n){if(403!=n.status)throw n;})),this.currentListSubscriptions)},n.prototype.updateSubscription=function(n,t,i){var u=this;return i=s.UrlUtils.merge(r({},i,{requestData:r({},i.requestData,n)}),{paths:[i.url,n.id]}),this.logger.info("Performing REST query to update a subscription",n),this.performOneCall(i,t).then(function(n){return u.logger.info("REST query successful",n),n})},n.prototype.deleteSubscription=function(n,t,i){var r=this;return i=s.UrlUtils.merge(i,{paths:[i.url,n.id]}),this.logger.info("Performing REST query to delete a subscription",n),this.performOneCall(i,t).then(function(n){return r.logger.info("REST query successful",n),n})},n.prototype.logError=function(n,t,i){return i=r({},i,{requestData:r({},i.requestData,n)}),this.performOneCall(i,t).then(function(){return!0}).catch(function(){return!1})},n.prototype.nuke=function(){window.removeEventListener("beforeunload",this.onUnload)},n.prototype.createEndpointCaller=function(){this.caller=new ht.EndpointCaller(r({},this.options,{accessToken:this.accessToken.token}))},n.isDebugArgumentPresent=function(){return/[?&]debug=1([&]|$)/.test(window.location.search)},n.isUseLocalArgumentPresent=function(){return/[?&]useLocal=1([&]|$)/.test(window.location.search)},n.prototype.handleUnload=function(){this.isRedirecting=!0},n.prototype.buildBaseUri=function(n){return y.Assert.isString(n),s.UrlUtils.normalizeAsString({paths:[this.options.restUri,this.options.version,n]})},n.prototype.buildSearchAlertsUri=function(n){y.Assert.isString(n);var t=this.options.searchAlertsUri||s.UrlUtils.normalizeAsString({paths:[this.options.restUri,"/alerts"]});return s.UrlUtils.normalizeAsString({paths:[t,n]})},n.prototype.buildBaseQueryString=function(n){return n=r({},n),h.isArray(n.authentication)&&v.Utils.isNonEmptyArray(n.authentication)?r({},this.options.queryStringArguments,{authentication:n.authentication.join(",")}):r({},this.options.queryStringArguments)},n.prototype.buildQueryAsQueryString=function(n,t){var i,u,f;return t=r({},t),i={},["q","aq","cq","dq","searchHub","tab","locale","pipeline","lowercaseOperators","timezone"].forEach(function(n){i[n]=t[n]}),u={},(h.pairs(t.context).forEach(function(n){var t=n[0],i=n[1];u["context["+v.Utils.safeEncodeURIComponent(t)+"]"]=i}),t.fieldsToInclude)&&(f=t.fieldsToInclude.map(function(n){return'"'+v.Utils.safeEncodeURIComponent(n.replace("@",""))+'"'}),i.fieldsToInclude="["+f.join(",")+"]"),r({q:n},u,i)},n.prototype.buildViewAsHtmlQueryString=function(n,t){return t=h.extend({},t),{uniqueId:v.Utils.safeEncodeURIComponent(n),enableNavigation:"true",requestedOutputSize:t.requestedOutputSize?t.requestedOutputSize.toString():null,contentType:t.contentType}},n.prototype.performOneCall=function(n,t){return w(this,void 0,void 0,function(){var f,i,e,o,h,u,c=this;return b(this,function(l){switch(l.label){case 0:n=s.UrlUtils.merge(n,{paths:n.url,queryAsString:n.queryString,query:r({},this.buildBaseQueryString(t))});f=function(){return c.caller.call(n)};l.label=1;case 1:return l.trys.push([1,3,,10]),[4,f()];case 2:return u=l.sent(),[2,u.data];case 3:if(!(i=l.sent()))throw new Error("Request failed but it did not return an error.");switch(e=i.statusCode,o=e){case 419:return[3,4];case 429:return[3,6]}return[3,8];case 4:return[4,this.accessToken.doRenew()];case 5:if(!(h=l.sent()))throw this.handleErrorResponse(i);return[2,this.performOneCall(n,t)];case 6:return[4,this.backOffThrottledRequest(f)];case 7:return u=l.sent(),[2,u.data];case 8:throw this.handleErrorResponse(i);case 9:return[3,10];case 10:return[2]}})})},n.prototype.backOffThrottledRequest=function(n){return w(this,void 0,void 0,function(){var t,i,r,u=this;return b(this,function(f){switch(f.label){case 0:return f.trys.push([0,2,,3]),t={retry:function(n,t){return u.retryIf429Error(n,t)}},i={fn:n,options:t},[4,bt.BackOffRequest.enqueue(i)];case 1:return[2,f.sent()];case 2:throw r=f.sent(),this.handleErrorResponse(r);case 3:return[2]}})})},n.prototype.retryIf429Error=function(n,t){return!!this.isThrottled(n)&&(this.logger.info("Resending the request because it was throttled. Retry attempt "+t),!0)},n.prototype.isThrottled=function(n){return n&&429===n.statusCode},n.prototype.handleErrorResponse=function(n){return this.isMissingAuthenticationProviderStatus(n.statusCode)?new at.MissingAuthenticationError(n.data.provider):n.data&&n.data.message&&n.data.type?new vt.QueryError(n):n.data&&n.data.message?new g.AjaxError("Request Error : "+n.data.message,n.statusCode):new g.AjaxError("Request Error",n.statusCode)},n.prototype.isMissingAuthenticationProviderStatus=function(n){return 402==n},n.endpoints={},u([f("/login/"),a()],n.prototype,"getAuthenticationProviderUri",null),u([f("/login/handshake/token"),e("POST"),p("application/json"),o("json")],n.prototype,"exchangeHandshakeToken",null),u([ut(),ft(),et(),ot(),st()],n.prototype,"buildCompleteCall",null),u([f("/"),e("POST"),o("text")],n.prototype,"search",null),u([f("/"),e("POST"),o("arraybuffer")],n.prototype,"fetchBinary",null),u([f("/plan"),e("POST"),p("application/json"),o("json")],n.prototype,"plan",null),u([f("/"),a()],n.prototype,"getExportToExcelLink",null),u([f("/datastream"),a(),e("GET"),o("arraybuffer")],n.prototype,"getRawDataStream",null),u([f("/datastream"),a()],n.prototype,"getViewAsDatastreamUri",null),u([f("/document"),e("GET"),o("text")],n.prototype,"getDocument",null),u([f("/text"),e("GET"),o("text")],n.prototype,"getDocumentText",null),u([f("/html"),e("POST"),o("document")],n.prototype,"getDocumentHtml",null),u([f("/html"),a()],n.prototype,"getViewAsHtmlUri",null),u([f("/values"),e("POST"),o("text")],n.prototype,"listFieldValues",null),u([f("/values/batch"),e("POST"),o("text")],n.prototype,"listFieldValuesBatch",null),u([f("/fields"),e("GET"),o("text")],n.prototype,"listFields",null),u([f("/extensions"),e("GET"),o("text")],n.prototype,"extensions",null),u([f("/rating"),e("POST"),o("text")],n.prototype,"rateDocument",null),u([f("/tag"),e("POST"),o("text")],n.prototype,"tagDocument",null),u([f("/querySuggest"),e("POST"),o("text")],n.prototype,"getQuerySuggest",null),u([f("/facet"),e("POST"),p("application/json"),o("text")],n.prototype,"facetSearch",null),u([k("/subscriptions"),a("accessToken"),e("POST"),p("application/json"),o("text")],n.prototype,"follow",null),u([k("/subscriptions"),a("accessToken"),e("GET"),p("application/json"),o("text")],n.prototype,"listSubscriptions",null),u([k("/subscriptions/"),a("accessToken"),e("PUT"),p("application/json"),o("text")],n.prototype,"updateSubscription",null),u([k("/subscriptions/"),a("accessToken"),e("DELETE"),p("application/json"),o("text")],n.prototype,"deleteSubscription",null),u([f("/log"),e("POST")],n.prototype,"logError",null),n}();t.SearchEndpoint=it},function(n,t,i){"use strict";var r,u;Object.defineProperty(t,"__esModule",{value:!0});r=i(5);i(305);t.MEDIUM_SCREEN_WIDTH=800;t.SMALL_SCREEN_WIDTH=480;u=function(){function n(n){void 0===n&&(n=window);this.windoh=n;this.responsiveMode="auto"}return n.prototype.setSmallScreenWidth=function(n){r.Assert.check("auto"===this.responsiveMode,"Cannot modify medium screen width if responsiveMode is locked on "+this.responsiveMode+".");r.Assert.check(n<this.getMediumScreenWidth(),"Cannot set small screen width ("+n+") larger or equal to the current medium screen width ("+this.getMediumScreenWidth()+")");this.smallScreenWidth=n},n.prototype.setMediumScreenWidth=function(n){r.Assert.check("auto"===this.responsiveMode,"Cannot modify medium screen width if responsiveMode is locked on "+this.responsiveMode+".");r.Assert.check(n>this.getSmallScreenWidth(),"Cannot set medium screen width ("+n+") smaller or equal to the current small screen width ("+this.getSmallScreenWidth()+")");this.mediumScreenWidth=n},n.prototype.setResponsiveMode=function(n){this.responsiveMode=n},n.prototype.getSmallScreenWidth=function(){return"small"===this.responsiveMode?Number.POSITIVE_INFINITY:"auto"!==this.responsiveMode?0:null==this.smallScreenWidth?t.SMALL_SCREEN_WIDTH:this.smallScreenWidth},n.prototype.getMediumScreenWidth=function(){return"medium"===this.responsiveMode?Number.POSITIVE_INFINITY:"auto"!==this.responsiveMode?0:null==this.mediumScreenWidth?t.MEDIUM_SCREEN_WIDTH:this.mediumScreenWidth},n.prototype.getResponsiveMode=function(){return this.responsiveMode},n.prototype.isSmallScreenWidth=function(){return null!=this.windoh.clientWidth?this.windoh.clientWidth<=this.getSmallScreenWidth():document.body.clientWidth<=this.getSmallScreenWidth()},n.prototype.isMediumScreenWidth=function(){return!this.isSmallScreenWidth()&&(null!=this.windoh.clientWidth?this.windoh.clientWidth<=this.getMediumScreenWidth():document.body.clientWidth<=this.getMediumScreenWidth())},n.prototype.isLargeScreenWidth=function(){return!this.isSmallScreenWidth()&&!this.isMediumScreenWidth()},n}();t.ResponsiveComponents=u},function(n,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function n(){}return n.settingsPopulateMenu="settingsPopulateMenu",n}();t.SettingsEvents=i},function(n,t,i){"use strict";var u=this&&this.__assign||Object.assign||function(n){for(var t,r,i=1,u=arguments.length;i<u;i++){t=arguments[i];for(r in t)Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n};Object.defineProperty(t,"__esModule",{value:!0});var f=i(3),e=i(12),r=i(1),o=i(25),s=i(16),h={usePlaceholder:!1,className:"coveo-input",triggerOnChangeAsYouType:!1,isRequired:!0},c=function(){function n(n,t,i){void 0===n&&(n=function(){});this.onChange=n;this.name=t;this.options=i;this.lastQueryText="";this.options=u({},h,this.options);this.buildContent();this.buildIcon()}return n.doExport=function(){f.exportGlobally({TextInput:n})},n.prototype.getElement=function(){return this.element},n.prototype.getValue=function(){return r.$$(this.element).find("input").value},n.prototype.setValue=function(n){var t=this.getValue();r.$$(this.element).find("input").value=n;t!=n&&this.onChange(this);this.lastQueryText=this.getInput().value},n.prototype.reset=function(){var n=this.getValue();r.$$(this.element).find("input").value="";""!=n&&this.onChange(this);this.lastQueryText=this.getInput().value},n.prototype.build=function(){return this.element},n.prototype.getInput=function(){return r.$$(this.element).find("input")},n.prototype.buildContent=function(){this.element=r.$$("div",{className:this.options.className}).el;this.input=r.$$("input",{type:"text",autocomplete:"off"});this.options.isRequired&&this.input.setAttribute("required","true");this.options.ariaLabel&&this.input.setAttribute("aria-label",this.options.ariaLabel);this.addEventListeners();this.element.appendChild(this.input.el);this.name&&this.createLabelOrPlaceholder()},n.prototype.buildIcon=function(){if(this.options.icon){var n=this.options.className+"-icon";this.icon=r.$$("span",{className:n});this.icon.setHtml(e.SVGIcons.icons[this.options.icon]);s.SVGDom.addClassToSVGInContainer(this.icon.el,n+"-svg");r.$$(this.element).prepend(this.icon.el)}},n.prototype.addEventListeners=function(){this.options.triggerOnChangeAsYouType?this.addOnTypeEventListener():this.addOnChangeEventListener()},n.prototype.addOnChangeEventListener=function(){var n=this;this.input.on(["keydown","blur"],function(t){"blur"!=t.type&&t.keyCode!=o.KEYBOARD.ENTER||n.triggerChange()})},n.prototype.addOnTypeEventListener=function(){var n=this;this.input.on(["keyup"],function(){n.triggerChange()})},n.prototype.createLabelOrPlaceholder=function(){if(this.options.usePlaceholder)return this.input.setAttribute("placeholder",this.name);var n=r.$$("label");n.text(this.name);this.element.appendChild(n.el)},n.prototype.triggerChange=function(){this.lastQueryText!=this.getInput().value&&(this.onChange(this),this.lastQueryText=this.getInput().value)},n}();t.TextInput=c},function(n,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function n(){}return n.searchEvent="analyticsSearchEvent",n.documentViewEvent="analyticsDocumentViewEvent",n.customEvent="analyticsCustomEvent",n.analyticsEventReady="analyticsEventReady",n.changeAnalyticsCustomData="changeAnalyticsCustomData",n}();t.AnalyticsEvents=i},function(n,t,i){"use strict";var s=this&&this.__extends||function(){var n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])};return function(t,i){function r(){this.constructor=t}n(t,i);t.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var h=i(27),f=i(5),c=i(4),r=i(9),e=i(158),o=i(122),u=i(0),l=i(1),a=function(n){function t(i){var s=n.call(this)||this,h;s.element=i;f.Assert.exists(i);h=i.innerHTML;try{s.template=u.template(h)}catch(n){new r.Logger(s).error("Cannot instantiate underscore template. Might be caused by strict Content-Security-Policy. Will fallback on a default template...",n)}return s.templateFromAScriptTag=new e.TemplateFromAScriptTag(s,s.element),s.dataToString=function(n){var i=u.extend({},n,t.templateHelpers);if(!s.template)return(new o.DefaultResultTemplate).getFallbackTemplate();try{return s.template(i)}catch(n){return new r.Logger(s).error("Cannot instantiate template",n.message,s.getTemplateInfo()),new r.Logger(s).warn("A default template was used"),(new o.DefaultResultTemplate).getFallbackTemplate()}},s}return s(t,n),t.prototype.toHtmlElement=function(){var n=this.templateFromAScriptTag.toHtmlElement(l.$$("script"));return n.setAttribute("type",u.first(t.mimeTypes)),n},t.prototype.getType=function(){return"UnderscoreTemplate"},t.prototype.getTemplateInfo=function(){return this.element},t.registerTemplateHelper=function(n,i){t.templateHelpers[n]=i},t.isLibraryAvailable=function(){return c.Utils.exists(window._)},t.fromString=function(n,i){var r=e.TemplateFromAScriptTag.fromString(n,i,document.createElement("script"));return r.setAttribute("type",t.mimeTypes[0]),new t(r)},t.create=function(n){return f.Assert.exists(n),new t(n)},t.templateHelpers={},t.mimeTypes=["text/underscore","text/underscore-template","text/x-underscore","text/x-underscore-template"],t}(h.Template);t.UnderscoreTemplate=a},function(n,t,i){var u=i(38),f=i(39),e=i(398),o=i(60),s=i(81),r=function(n,t,i){var h,y,c,b=n&r.F,v=n&r.G,k=n&r.S,w=n&r.P,d=n&r.B,g=n&r.W,l=v?f:f[t]||(f[t]={}),p=l.prototype,a=v?u:k?u[t]:(u[t]||{}).prototype;v&&(i=t);for(h in i)(y=!b&&a&&void 0!==a[h])&&s(l,h)||(c=y?a[h]:i[h],l[h]=v&&"function"!=typeof a[h]?i[h]:d&&y?e(c,u):g&&a[h]==c?function(n){var t=function(t,i,r){if(this instanceof n){switch(arguments.length){case 0:return new n;case 1:return new n(t);case 2:return new n(t,i)}return new n(t,i,r)}return n.apply(this,arguments)};return t.prototype=n.prototype,t}(c):w&&"function"==typeof c?e(Function.call,c):c,w&&((l.virtual||(l.virtual={}))[h]=c,n&r.R&&p&&!p[h]&&o(p,h,c)))};r.F=1;r.G=2;r.S=4;r.P=8;r.B=16;r.W=32;r.U=64;r.R=128;n.exports=r},function(n,t,i){var r=i(108),u=i(161);n.exports=i(80)?function(n,t,i){return r.f(n,t,u(1,i))}:function(n,t,i){return n[t]=i,n}},function(n,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var u=i(1),e=i(17),o=i(7),f=i(19),c=i(4),r=i(0),s=i(11),h=i(9),l=i(24),a=i(0),v=function(){function n(t){var i=this;this.disabledComponents=[];this.responsiveComponents=[];this.coveoRoot=t;this.searchInterface=o.Component.get(this.coveoRoot.el,f.SearchInterface,!1);this.dropdownHeadersWrapper=u.$$("div",{className:n.DROPDOWN_HEADER_WRAPPER_CSS_CLASS});this.searchBoxElement=this.getSearchBoxElement();this.logger=new h.Logger(this);this.resizeListener=a.debounce(function(){i.isAbleToDetermineMode()?(i.addDropdownHeaderWrapperIfNeeded(),i.shouldSwitchToSmallMode()?i.coveoRoot.addClass("coveo-small-interface"):i.shouldSwitchToSmallMode()||i.coveoRoot.removeClass("coveo-small-interface"),r.each(i.responsiveComponents,function(n){n.handleResizeEvent()})):i.logger.warn("The width of the search interface is 0, cannot dispatch resize events to responsive components. This means that the tabs will not\n        automatically fit in the tab section. Also, the facet and recommendation component will not hide in a menu. Could the search\n        interface display property be none? Could its visibility property be set to hidden? Also, if either of these scenarios happen during\n        loading, it could be the cause of this issue.")},250);l.DeviceUtils.isMobileDevice()?window.addEventListener("orientationchange",this.resizeListener):window.addEventListener("resize",this.resizeListener);this.bindNukeEvents();n.componentManagers.push(this)}return n.register=function(n,t,i,r,u){var f=this,o=u.initializationEventRoot||t;o.on(e.InitializationEvents.afterInitialization,function(){if(f.shouldEnableResponsiveMode(t)&&f.registerComponentIfResponsiveModeEnabled(n,t,i,r,u),0==--f.remainingComponentInitializations)if(f.instantiateResponsiveComponents(),0==t.width()){var e=new h.Logger("ResponsiveComponentsManager");e.info("Search interface width is 0, cannot dispatch resize events to responsive components. Will try again after first\n          query success.");t.one(s.QueryEvents.querySuccess,function(){f.resizeAllComponentsManager()})}else f.resizeAllComponentsManager()});o.one(s.QueryEvents.querySuccess,function(){f.resizeAllComponentsManager()});this.remainingComponentInitializations++},n.registerComponentIfResponsiveModeEnabled=function(t,i,u,f,e){var o=r.find(this.componentManagers,function(n){return i.el==n.coveoRoot.el});if(o||(o=new n(i)),!c.Utils.isNullOrUndefined(e.enableResponsiveMode)&&!e.enableResponsiveMode)return void o.disableComponent(u);this.componentInitializations.push({responsiveComponentsManager:o,arguments:[t,i,u,f,e]})},n.shouldEnableResponsiveMode=function(n){var t=o.Component.get(n.el,f.SearchInterface,!0);return t instanceof f.SearchInterface&&t.options.enableAutomaticResponsiveMode},n.instantiateResponsiveComponents=function(){r.each(this.componentInitializations,function(n){var t=n.responsiveComponentsManager;t.register.apply(t,n.arguments)})},n.resizeAllComponentsManager=function(){r.each(this.componentManagers,function(n){n.resizeListener()})},n.prototype.register=function(n,t,i,u,f){if(!this.isDisabled(i)){if(!this.isActivated(i)){var e=new n(t,i,f);this.isTabs(i)?this.responsiveComponents.push(e):this.responsiveComponents.unshift(e)}r.each(this.responsiveComponents,function(n){null!=n.registerComponent&&n.registerComponent(u)})}},n.prototype.disableComponent=function(n){this.disabledComponents.push(n)},n.prototype.isDisabled=function(n){return-1!=r.indexOf(this.disabledComponents,n)},n.prototype.shouldSwitchToSmallMode=function(){var n=this.needDropdownWrapper(),t=this.coveoRoot.width()<=this.searchInterface.responsiveComponents.getMediumScreenWidth();return n||t},n.prototype.needDropdownWrapper=function(){for(var t,n=0;n<this.responsiveComponents.length;n++)if(t=this.responsiveComponents[n],t.needDropdownWrapper&&t.needDropdownWrapper())return!0;return!1},n.prototype.addDropdownHeaderWrapperIfNeeded=function(){if(this.needDropdownWrapper()){var n=u.$$(this.coveoRoot).find(".coveo-tab-section");this.searchBoxElement?this.dropdownHeadersWrapper.insertAfter(this.searchBoxElement):n?this.dropdownHeadersWrapper.insertAfter(n):this.coveoRoot.prepend(this.dropdownHeadersWrapper.el)}},n.prototype.isTabs=function(n){return"Tab"==n},n.prototype.isActivated=function(n){return void 0!=r.find(this.responsiveComponents,function(t){return t.ID==n})},n.prototype.getSearchBoxElement=function(){var n=this.coveoRoot.find(".coveo-search-section");return n||this.coveoRoot.find(".CoveoSearchbox")},n.prototype.bindNukeEvents=function(){var t=this;u.$$(this.coveoRoot).on(e.InitializationEvents.nuke,function(){window.removeEventListener("resize",t.resizeListener);n.componentManagers=r.filter(n.componentManagers,function(n){return n.coveoRoot.el!=t.coveoRoot.el})})},n.prototype.isAbleToDetermineMode=function(){return 0!=this.coveoRoot.width()||"auto"!==this.searchInterface.options.responsiveMode},n.DROPDOWN_HEADER_WRAPPER_CSS_CLASS="coveo-dropdown-header-wrapper",n.componentManagers=[],n.remainingComponentInitializations=0,n.componentInitializations=[],n}();t.ResponsiveComponentsManager=v},function(n,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var u=i(0),f=i(5),s=i(4),e=i(107),h=i(67),c=i(95),o=i(58),r=i(8),l=i(51),a=function(){function n(){}return n.buildTemplateOption=function(t){return r.ComponentOptions.buildOption(l.ComponentOptionsType.TEMPLATE,n.loadTemplateOption,t)},n.loadTemplateOption=function(t,i,u,f){var e,l,s,h,a,c,o;return void 0===f&&(f=document),l=u.selectorAttr||r.ComponentOptions.attrNameFromName(i,u)+"-selector",s=t.getAttribute(l)||r.ComponentOptions.getAttributeFromAlias(t,u),null!=s&&(h=f.querySelector(s),null!=h&&(e=n.createResultTemplateFromElement(h))),null==e&&(a=u.idAttr||r.ComponentOptions.attrNameFromName(i,u)+"-id",c=t.getAttribute(a)||r.ComponentOptions.getAttributeFromAlias(t,u),null!=c&&(e=n.loadResultTemplateFromId(c))),null==e&&(o=u.childSelector,null==o&&(o="."+i.replace(/([A-Z])/g,"-$1").toLowerCase()),e=n.loadChildrenResultTemplateFromSelector(t,o)),e},n.createResultTemplateFromElement=function(n){f.Assert.exists(n);var t=n.getAttribute("type"),i="You must specify the type of template. Valid values are: "+o.UnderscoreTemplate.mimeTypes.toString()+" "+e.HtmlTemplate.mimeTypes.toString();return f.Assert.check(s.Utils.isNonEmptyString(t),i),-1!=u.indexOf(o.UnderscoreTemplate.mimeTypes,t.toLowerCase())?o.UnderscoreTemplate.create(n):-1!=u.indexOf(e.HtmlTemplate.mimeTypes,t.toLowerCase())?new e.HtmlTemplate(n):void f.Assert.fail("Cannot guess template type from attribute: "+t+". Valid values are "+i)},n.loadResultTemplateFromId=function(n){return s.Utils.isNonEmptyString(n)?h.TemplateCache.getTemplate(n):null},n.loadChildrenResultTemplateFromSelector=function(t,i){var f=r.ComponentOptions.loadChildrenHtmlElementFromSelector(t,i);return f.length>0?new c.TemplateList(u.compact(f.map(function(t){return n.createResultTemplateFromElement(t)}))):null},n}();t.TemplateComponentOptions=a},function(n,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=i(1),f=i(6),u=i(0),e=i(3),o=function(){function n(n,t,i,r){void 0===n&&(n=function(){});void 0===i&&(i=f.l);this.onChange=n;this.listOfValues=t;this.getDisplayValue=i;this.label=r;this.optionsElement=[];this.buildContent();this.select(0,!1);this.bindEvents()}return n.doExport=function(){e.exportGlobally({Dropdown:n})},n.prototype.reset=function(){this.select(0,!1)},n.prototype.setId=function(n){r.$$(this.element).setAttribute("id",n)},n.prototype.getElement=function(){return this.element},n.prototype.getValue=function(){return this.selectElement.value},n.prototype.select=function(n,t){void 0===t&&(t=!0);this.selectOption(this.optionsElement[n],t)},n.prototype.build=function(){return this.element},n.prototype.setValue=function(n){var t=this;u.each(this.optionsElement,function(i){r.$$(i).getAttribute("data-value")==n&&t.selectOption(i)})},n.prototype.selectOption=function(n,t){void 0===t&&(t=!0);this.selectElement.value=n.value;t&&this.onChange(this)},n.prototype.buildContent=function(){var t=this,n;this.selectElement=r.$$("select",{className:"coveo-dropdown"}).el;this.label&&this.selectElement.setAttribute("aria-label",f.l(this.label));n=this.buildOptions();u.each(n,function(n){r.$$(t.selectElement).append(n)});this.element=this.selectElement},n.prototype.buildOptions=function(){var t=this,n=[];return u.each(this.listOfValues,function(i){n.push(t.buildOption(i))}),n},n.prototype.buildOption=function(n){var t=r.$$("option");return t.setAttribute("data-value",n),t.setAttribute("value",n),t.text(this.getDisplayValue(n)),this.optionsElement.push(t.el),t.el},n.prototype.bindEvents=function(){var n=this;r.$$(this.selectElement).on("change",function(){return n.onChange(n)})},n}();t.Dropdown=o},function(n,t,i){"use strict";function p(n,t){var r=Object.create(n.prototype),i;for(i in t)r[i]=t[i];return r}function c(){}function fi(){return this.rgb().formatHex()}function iu(){return li(this).formatHsl()}function ei(){return this.rgb().formatRgb()}function w(n){var t,i;return n=(n+"").trim().toLowerCase(),(t=pu.exec(n))?(i=t[1].length,t=parseInt(t[1],16),6===i?oi(t):3===i?new u(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===i?nt(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===i?nt(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=wu.exec(n))?new u(t[1],t[2],t[3],1):(t=bu.exec(n))?new u(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=ku.exec(n))?nt(t[1],t[2],t[3],t[4]):(t=du.exec(n))?nt(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=gu.exec(n))?ci(t[1],t[2]/100,t[3]/100,1):(t=nf.exec(n))?ci(t[1],t[2]/100,t[3]/100,t[4]):rr.hasOwnProperty(n)?oi(rr[n]):"transparent"===n?new u(NaN,NaN,NaN,0):null}function oi(n){return new u(n>>16&255,n>>8&255,255&n,1)}function nt(n,t,i,r){return r<=0&&(n=t=i=NaN),new u(n,t,i,r)}function et(n){return n instanceof c||(n=w(n)),n?(n=n.rgb(),new u(n.r,n.g,n.b,n.opacity)):new u}function tt(n,t,i,r){return 1===arguments.length?et(n):new u(n,t,i,null==r?1:r)}function u(n,t,i,r){this.r=+n;this.g=+t;this.b=+i;this.opacity=+r}function si(){return"#"+ot(this.r)+ot(this.g)+ot(this.b)}function hi(){var n=this.opacity;return n=isNaN(n)?1:Math.max(0,Math.min(1,n)),(1===n?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===n?")":", "+n+")")}function ot(n){return n=Math.max(0,Math.min(255,Math.round(n)||0)),(n<16?"0":"")+n.toString(16)}function ci(n,t,i,r){return r<=0?n=t=i=NaN:i<=0||i>=1?n=t=NaN:t<=0&&(n=NaN),new f(n,t,i,r)}function li(n){if(n instanceof f)return new f(n.h,n.s,n.l,n.opacity);if(n instanceof c||(n=w(n)),!n)return new f;if(n instanceof f)return n;n=n.rgb();var u=n.r/255,i=n.g/255,e=n.b/255,o=Math.min(u,i,e),r=Math.max(u,i,e),s=NaN,t=r-o,h=(r+o)/2;return t?(s=u===r?(i-e)/t+6*(i<e):i===r?(e-u)/t+2:(u-i)/t+4,t/=h<.5?r+o:2-r-o,s*=60):t=h>0&&h<1?0:s,new f(s,t,h,n.opacity)}function st(n,t,i,r){return 1===arguments.length?li(n):new f(n,t,i,null==r?1:r)}function f(n,t,i,r){this.h=+n;this.s=+t;this.l=+i;this.opacity=+r}function ht(n,t,i){return 255*(n<60?t+(i-t)*n/60:n<180?i:n<240?t+(i-t)*(240-n)/60:t)}function ai(n){if(n instanceof e)return new e(n.l,n.a,n.b,n.opacity);if(n instanceof h)return vi(n);n instanceof u||(n=et(n));var o,s,i=yt(n.r),t=yt(n.g),r=yt(n.b),f=lt((.2225045*i+.7168786*t+.0606169*r)/or);return i===t&&t===r?o=s=f:(o=lt((.4360747*i+.3850649*t+.1430804*r)/er),s=lt((.0139322*i+.0971045*t+.7141733*r)/sr)),new e(116*f-16,500*(o-f),200*(f-s),n.opacity)}function ct(n,t,i,r){return 1===arguments.length?ai(n):new e(n,t,i,null==r?1:r)}function e(n,t,i,r){this.l=+n;this.a=+t;this.b=+i;this.opacity=+r}function lt(n){return n>tf?Math.pow(n,1/3):n/cr+hr}function at(n){return n>y?n*n*n:cr*(n-hr)}function vt(n){return 255*(n<=.0031308?12.92*n:1.055*Math.pow(n,1/2.4)-.055)}function yt(n){return(n/=255)<=.04045?n/12.92:Math.pow((n+.055)/1.055,2.4)}function ru(n){if(n instanceof h)return new h(n.h,n.c,n.l,n.opacity);if(n instanceof e||(n=ai(n)),0===n.a&&0===n.b)return new h(NaN,0<n.l&&n.l<100?0:NaN,n.l,n.opacity);var t=Math.atan2(n.b,n.a)*fr;return new h(t<0?t+360:t,Math.sqrt(n.a*n.a+n.b*n.b),n.l,n.opacity)}function pt(n,t,i,r){return 1===arguments.length?ru(n):new h(n,t,i,null==r?1:r)}function h(n,t,i,r){this.h=+n;this.c=+t;this.l=+i;this.opacity=+r}function vi(n){if(isNaN(n.h))return new e(n.l,0,0,n.opacity);var t=n.h*ur;return new e(n.l,Math.cos(t)*n.c,Math.sin(t)*n.c,n.opacity)}function uu(n){if(n instanceof l)return new l(n.h,n.s,n.l,n.opacity);n instanceof u||(n=et(n));var h=n.r/255,e=n.g/255,o=n.b/255,t=(yr*o+ar*h-vr*e)/(yr+ar-vr),i=o-t,r=(k*(e-t)-kt*i)/rt,s=Math.sqrt(r*r+i*i)/(k*t*(1-t)),f=s?Math.atan2(r,i)*fr-120:NaN;return new l(f<0?f+360:f,s,t,n.opacity)}function wt(n,t,i,r){return 1===arguments.length?uu(n):new l(n,t,i,null==r?1:r)}function l(n,t,i,r){this.h=+n;this.s=+t;this.l=+i;this.opacity=+r}function yi(n,t,i,r,u){var f=n*n,e=f*n;return((1-3*n+3*f-e)*t+(4-6*f+3*e)*i+(1+3*n+3*f-3*e)*r+e*u)/6}function pi(n,t){return function(i){return n+i*t}}function fu(n,t,i){return n=Math.pow(n,i),t=Math.pow(t,i)-n,i=1/i,function(r){return Math.pow(n+r*t,i)}}function it(n,t){var i=t-n;return i?pi(n,i>180||i<-180?i-360*Math.round(i/360):i):ft(isNaN(n)?t:n)}function eu(n){return 1==(n=+n)?r:function(t,i){return i-t?fu(t,i,n):ft(isNaN(t)?i:t)}}function r(n,t){var i=t-n;return i?pi(n,i):ft(isNaN(n)?t:n)}function wi(n){return function(t){for(var i,u=t.length,f=new Array(u),e=new Array(u),o=new Array(u),r=0;r<u;++r)i=tt(t[r]),f[r]=i.r||0,e[r]=i.g||0,o[r]=i.b||0;return f=n(f),e=n(e),o=n(o),i.opacity=1,function(n){return i.r=f(n),i.g=e(n),i.b=o(n),i+""}}}function bi(n){return ArrayBuffer.isView(n)&&!(n instanceof DataView)}function ki(n,t){for(var r=t?t.length:0,u=n?Math.min(r,n.length):0,e=new Array(u),f=new Array(r),i=0;i<u;++i)e[i]=ri(n[i],t[i]);for(;i<r;++i)f[i]=t[i];return function(n){for(i=0;i<u;++i)f[i]=e[i](n);return f}}function ou(n){return function(){return n}}function su(n){return function(t){return n(t)+""}}function hu(n){return"none"===n?ui:(d||(d=document.createElement("DIV"),dt=document.documentElement,pr=document.defaultView),d.style.transform=n,n=pr.getComputedStyle(dt.appendChild(d),null).getPropertyValue("transform"),dt.removeChild(d),n=n.slice(7,-1).split(","),tu(+n[0],+n[1],+n[2],+n[3],+n[4],+n[5]))}function cu(n){return null==n?ui:(ut||(ut=document.createElementNS("http://www.w3.org/2000/svg","g")),ut.setAttribute("transform",n),(n=ut.transform.baseVal.consolidate())?(n=n.matrix,tu(n.a,n.b,n.c,n.d,n.e,n.f)):ui)}function di(n,t,i,r){function u(n){return n.length?n.pop()+" ":""}function f(n,r,u,f,e,o){if(n!==u||r!==f){var h=e.push("translate(",null,t,null,i);o.push({i:h-4,x:s(n,u)},{i:h-2,x:s(r,f)})}else(u||f)&&e.push("translate("+u+t+f+i)}function e(n,t,i,f){n!==t?(n-t>180?t+=360:t-n>180&&(n+=360),f.push({i:i.push(u(i)+"rotate(",null,r)-2,x:s(n,t)})):t&&i.push(u(i)+"rotate("+t+r)}function o(n,t,i,f){n!==t?f.push({i:i.push(u(i)+"skewX(",null,r)-2,x:s(n,t)}):t&&i.push(u(i)+"skewX("+t+r)}function h(n,t,i,r,f,e){if(n!==i||t!==r){var o=f.push(u(f)+"scale(",null,",",null,")");e.push({i:o-4,x:s(n,i)},{i:o-2,x:s(t,r)})}else 1===i&&1===r||f.push(u(f)+"scale("+i+","+r+")")}return function(t,i){var r=[],u=[];return t=n(t),i=n(i),f(t.translateX,t.translateY,i.translateX,i.translateY,r,u),e(t.rotate,i.rotate,r,u),o(t.skewX,i.skewX,r,u),h(t.scaleX,t.scaleY,i.scaleX,i.scaleY,r,u),t=i=null,function(n){for(var t,i=-1,f=u.length;++i<f;)r[(t=u[i]).i]=t.x(n);return r.join("")}}}function gi(n){return((n=Math.exp(n))+1/n)/2}function lu(n){return((n=Math.exp(n))-1/n)/2}function au(n){return((n=Math.exp(2*n))-1)/(n+1)}function nr(n){return function(t,i){var u=n((t=st(t)).h,(i=st(i)).h),f=r(t.s,i.s),e=r(t.l,i.l),o=r(t.opacity,i.opacity);return function(n){return t.h=u(n),t.s=f(n),t.l=e(n),t.opacity=o(n),t+""}}}function vu(n,t){var i=r((n=ct(n)).l,(t=ct(t)).l),u=r(n.a,t.a),f=r(n.b,t.b),e=r(n.opacity,t.opacity);return function(t){return n.l=i(t),n.a=u(t),n.b=f(t),n.opacity=e(t),n+""}}function tr(n){return function(t,i){var u=n((t=pt(t)).h,(i=pt(i)).h),f=r(t.c,i.c),e=r(t.l,i.l),o=r(t.opacity,i.opacity);return function(n){return t.h=u(n),t.c=f(n),t.l=e(n),t.opacity=o(n),t+""}}}function ir(n){return function t(i){function u(t,u){var f=n((t=wt(t)).h,(u=wt(u)).h),e=r(t.s,u.s),o=r(t.l,u.l),s=r(t.opacity,u.opacity);return function(n){return t.h=f(n),t.s=e(n),t.l=o(Math.pow(n,i)),t.opacity=s(n),t+""}}return i=+i,u.gamma=t,u}(1)}function yu(n,t){for(var r=0,i=t.length-1,u=t[0],f=new Array(i<0?0:i);r<i;)f[r]=n(u,u=t[++r]);return function(n){var t=Math.max(0,Math.min(i-1,Math.floor(n*=i)));return f[t](n-t)}}var a=function(n,t,i){n.prototype=t.prototype=i;i.constructor=n},v="\\s*([+-]?\\d+)\\s*",b="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",o="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",pu=/^#([0-9a-f]{3,8})$/,wu=new RegExp("^rgb\\("+[v,v,v]+"\\)$"),bu=new RegExp("^rgb\\("+[o,o,o]+"\\)$"),ku=new RegExp("^rgba\\("+[v,v,v,b]+"\\)$"),du=new RegExp("^rgba\\("+[o,o,o,b]+"\\)$"),gu=new RegExp("^hsl\\("+[b,o,o]+"\\)$"),nf=new RegExp("^hsla\\("+[b,o,o,b]+"\\)$"),rr={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};a(c,w,{copy:function(n){return Object.assign(new this.constructor,this,n)},displayable:function(){return this.rgb().displayable()},hex:fi,formatHex:fi,formatHsl:iu,formatRgb:ei,toString:ei});a(u,tt,p(c,{brighter:function(n){return n=null==n?1/.7:Math.pow(1/.7,n),new u(this.r*n,this.g*n,this.b*n,this.opacity)},darker:function(n){return n=null==n?.7:Math.pow(.7,n),new u(this.r*n,this.g*n,this.b*n,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:si,formatHex:si,formatRgb:hi,toString:hi}));a(f,st,p(c,{brighter:function(n){return n=null==n?1/.7:Math.pow(1/.7,n),new f(this.h,this.s,this.l*n,this.opacity)},darker:function(n){return n=null==n?.7:Math.pow(.7,n),new f(this.h,this.s,this.l*n,this.opacity)},rgb:function(){var n=this.h%360+360*(this.h<0),f=isNaN(n)||isNaN(this.s)?0:this.s,t=this.l,i=t+(t<.5?t:1-t)*f,r=2*t-i;return new u(ht(n>=240?n-240:n+120,r,i),ht(n,r,i),ht(n<120?n+240:n-120,r,i),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var n=this.opacity;return n=isNaN(n)?1:Math.max(0,Math.min(1,n)),(1===n?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===n?")":", "+n+")")}}));var ur=Math.PI/180,fr=180/Math.PI,er=.96422,or=1,sr=.82521,hr=4/29,y=6/29,cr=3*y*y,tf=y*y*y;a(e,ct,p(c,{brighter:function(n){return new e(this.l+18*(null==n?1:n),this.a,this.b,this.opacity)},darker:function(n){return new e(this.l-18*(null==n?1:n),this.a,this.b,this.opacity)},rgb:function(){var n=(this.l+16)/116,t=isNaN(this.a)?n:n+this.a/500,i=isNaN(this.b)?n:n-this.b/200;return t=er*at(t),n=or*at(n),i=sr*at(i),new u(vt(3.1338561*t-1.6168667*n-.4906146*i),vt(-.9787684*t+1.9161415*n+.033454*i),vt(.0719453*t-.2289914*n+1.4052427*i),this.opacity)}}));a(h,pt,p(c,{brighter:function(n){return new h(this.h,this.c,this.l+18*(null==n?1:n),this.opacity)},darker:function(n){return new h(this.h,this.c,this.l-18*(null==n?1:n),this.opacity)},rgb:function(){return vi(this).rgb()}}));var lr=-.14861,bt=1.78277,kt=-.29227,rt=-.90649,k=1.97294,ar=k*rt,vr=k*bt,yr=bt*kt-rt*lr;a(l,wt,p(c,{brighter:function(n){return n=null==n?1/.7:Math.pow(1/.7,n),new l(this.h,this.s,this.l*n,this.opacity)},darker:function(n){return n=null==n?.7:Math.pow(.7,n),new l(this.h,this.s,this.l*n,this.opacity)},rgb:function(){var r=isNaN(this.h)?0:(this.h+120)*ur,n=+this.l,t=isNaN(this.s)?0:this.s*n*(1-n),i=Math.cos(r),f=Math.sin(r);return new u(255*(n+t*(lr*i+bt*f)),255*(n+t*(kt*i+rt*f)),255*(n+t*k*i),this.opacity)}}));var d,dt,pr,ut,wr=function(n){var t=n.length-1;return function(i){var r=i<=0?i=0:i>=1?(i=1,t-1):Math.floor(i*t),u=n[r],f=n[r+1],e=r>0?n[r-1]:2*u-f,o=r<t-1?n[r+2]:2*f-u;return yi((i-r/t)*t,e,u,f,o)}},br=function(n){var t=n.length;return function(i){var r=Math.floor(((i%=1)<0?++i:i)*t),u=n[(r+t-1)%t],f=n[r%t],e=n[(r+1)%t],o=n[(r+2)%t];return yi((i-r/t)*t,u,f,e,o)}},ft=function(n){return function(){return n}},gt=function n(t){function u(n,t){var u=i((n=tt(n)).r,(t=tt(t)).r),f=i(n.g,t.g),e=i(n.b,t.b),o=r(n.opacity,t.opacity);return function(t){return n.r=u(t),n.g=f(t),n.b=e(t),n.opacity=o(t),n+""}}var i=eu(t);return u.gamma=n,u}(1),rf=wi(wr),uf=wi(br),ni=function(n,t){t||(t=[]);var i,u=n?Math.min(t.length,n.length):0,r=t.slice();return function(f){for(i=0;i<u;++i)r[i]=n[i]*(1-f)+t[i]*f;return r}},ff=function(n,t){return(bi(t)?ni:ki)(n,t)},kr=function(n,t){var i=new Date;return n=+n,t=+t,function(r){return i.setTime(n*(1-r)+t*r),i}},s=function(n,t){return n=+n,t=+t,function(i){return n*(1-i)+t*i}},dr=function(n,t){var i,r={},u={};null!==n&&"object"==typeof n||(n={});null!==t&&"object"==typeof t||(t={});for(i in t)i in n?r[i]=ri(n[i],t[i]):u[i]=t[i];return function(n){for(i in r)u[i]=r[i](n);return u}},ti=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,ii=new RegExp(ti.source,"g"),gr=function(n,t){var h,f,u,e=ti.lastIndex=ii.lastIndex=0,r=-1,i=[],o=[];for(n+="",t+="";(h=ti.exec(n))&&(f=ii.exec(t));)(u=f.index)>e&&(u=t.slice(e,u),i[r]?i[r]+=u:i[++r]=u),(h=h[0])===(f=f[0])?i[r]?i[r]+=f:i[++r]=f:(i[++r]=null,o.push({i:r,x:s(h,f)})),e=ii.lastIndex;return e<t.length&&(u=t.slice(e),i[r]?i[r]+=u:i[++r]=u),i.length<2?o[0]?su(o[0].x):ou(t):(t=o.length,function(n){for(var u,r=0;r<t;++r)i[(u=o[r]).i]=u.x(n);return i.join("")})},ri=function(n,t){var r,i=typeof t;return null==t||"boolean"===i?ft(t):("number"===i?s:"string"===i?(r=w(t))?(t=r,gt):gr:t instanceof w?gt:t instanceof Date?kr:bi(t)?ni:Array.isArray(t)?ki:"function"!=typeof t.valueOf&&"function"!=typeof t.toString||isNaN(t)?dr:s)(n,t)},ef=function(n){var t=n.length;return function(i){return n[Math.max(0,Math.min(t-1,Math.floor(i*t)))]}},of=function(n,t){var i=it(+n,+t);return function(n){var t=i(n);return t-360*Math.floor(t/360)}},sf=function(n,t){return n=+n,t=+t,function(i){return Math.round(n*(1-i)+t*i)}},nu=180/Math.PI,ui={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1},tu=function(n,t,i,r,u,f){var o,s,e;return(o=Math.sqrt(n*n+t*t))&&(n/=o,t/=o),(e=n*i+t*r)&&(i-=n*e,r-=t*e),(s=Math.sqrt(i*i+r*r))&&(i/=s,r/=s,e/=s),n*r<t*i&&(n=-n,t=-t,e=-e,o=-o),{translateX:u,translateY:f,rotate:Math.atan2(t,n)*nu,skewX:Math.atan(e)*nu,scaleX:o,scaleY:s}},hf=di(hu,"px, ","px)","deg)"),cf=di(cu,", ",")",")"),g=Math.SQRT2,lf=function(n,t){var e,u,c=n[0],l=n[1],i=n[2],p=t[0],w=t[1],r=t[2],o=p-c,s=w-l,h=o*o+s*s;if(h<1e-12)u=Math.log(r/i)/g,e=function(n){return[c+n*o,l+n*s,i*Math.exp(g*n*u)]};else{var a=Math.sqrt(h),v=(r*r-i*i+4*h)/(4*i*a),y=(r*r-i*i-4*h)/(4*r*a),f=Math.log(Math.sqrt(v*v+1)-v),b=Math.log(Math.sqrt(y*y+1)-y);u=(b-f)/g;e=function(n){var t=n*u,r=gi(f),e=i/(2*a)*(r*au(g*t+f)-lu(f));return[c+e*o,l+e*s,i*r/gi(g*t+f)]}}return e.duration=1e3*u,e},af=nr(it),vf=nr(r),yf=tr(it),pf=tr(r),wf=ir(it),bf=ir(r),kf=function(n,t){for(var r=new Array(t),i=0;i<t;++i)r[i]=n(i/(t-1));return r};i.d(t,"a",function(){return ri});i.d(t,"b",function(){return ff});i.d(t,"c",function(){return wr});i.d(t,"d",function(){return br});i.d(t,"g",function(){return kr});i.d(t,"h",function(){return ef});i.d(t,"m",function(){return of});i.d(t,"o",function(){return s});i.d(t,"p",function(){return ni});i.d(t,"q",function(){return dr});i.d(t,"u",function(){return sf});i.d(t,"v",function(){return gr});i.d(t,"w",function(){return hf});i.d(t,"x",function(){return cf});i.d(t,"y",function(){return lf});i.d(t,"r",function(){return gt});i.d(t,"s",function(){return rf});i.d(t,"t",function(){return uf});i.d(t,"k",function(){return af});i.d(t,"l",function(){return vf});i.d(t,"n",function(){return vu});i.d(t,"i",function(){return yf});i.d(t,"j",function(){return pf});i.d(t,"e",function(){return wf});i.d(t,"f",function(){return bf});i.d(t,"z",function(){return yu});i.d(t,"A",function(){return kf})},function(n,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});i(391);var u=i(3),r=i(1),f=function(){function n(n,t,i,r){void 0===n&&(n=function(){});this.onChange=n;this.label=t;this.ariaLabel=i;this.labelSuffix=r;this.ignoreNextChange=!1;this.buildContent()}return n.prototype.toggle=function(){this.checkbox.checked=!this.isSelected();r.$$(this.checkbox).trigger("change")},n.prototype.getElement=function(){return this.element},n.prototype.build=function(){return this.element},n.prototype.getValue=function(){return this.label},n.prototype.reset=function(){var n=this.isSelected();this.checkbox.checked=!1;n&&r.$$(this.checkbox).trigger("change")},n.prototype.select=function(n){void 0===n&&(n=!0);var t=this.isSelected();this.checkbox.checked=!0;t||(this.ignoreNextChange=!n,r.$$(this.checkbox).trigger("change"))},n.prototype.isSelected=function(){return this.checkbox.checked},n.prototype.getLabel=function(){return this.element},n.prototype.buildContent=function(){var n=this,t=r.$$("label",{className:"coveo-checkbox-label"}),i,u;this.checkbox=r.$$("input",{type:"checkbox",className:"coveo-checkbox",value:this.label,ariaLabel:this.ariaLabel||this.label,ariaHidden:!0}).el;this.button=r.$$("button",{type:"button",role:"checkbox",className:"coveo-checkbox-button",ariaLabel:this.ariaLabel||this.label,ariaChecked:this.isSelected().toString()}).el;i=r.$$("span",{className:"coveo-checkbox-span-label"});i.text(this.label);u=r.$$("span",{className:"coveo-checkbox-span-label-suffix"});u.text(this.labelSuffix);t.append(this.checkbox);t.append(this.button);t.append(i.el);this.labelSuffix&&t.append(u.el);r.$$(this.button).on("click",function(t){t.preventDefault();n.toggle()});r.$$(this.checkbox).on("change",function(){n.updateAccessibilityAttributes();n.ignoreNextChange?n.ignoreNextChange=!1:n.onChange(n)});this.element=t.el},n.prototype.updateAccessibilityAttributes=function(){this.button.setAttribute("aria-checked",this.isSelected().toString())},n.doExport=function(){u.exportGlobally({Checkbox:n})},n}();t.Checkbox=f},function(n,t,i){"use strict";var r,u,f,e,o,s;Object.defineProperty(t,"__esModule",{value:!0});r=i(5);t.Assert=r.Assert;u=i(31);t.Defer=u.Defer;f=i(152);t.L10N=f.L10N;e=i(9);t.Logger=e.Logger;o=i(77);t.Options=o.Options;s=i(6);t.l=s.l;i(9).Logger.disable()},function(n,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var e=i(27),u=i(5),f=i(58),o=i(107),r=i(0),s=function(){function n(){}return n.registerTemplate=function(t,i,f,o,s){void 0===f&&(f=!0);void 0===o&&(o=!1);void 0===s&&(s=!1);u.Assert.isNonEmptyString(t);u.Assert.exists(i);i instanceof e.Template||(i=new e.Template(i));null==i.name&&(i.name=t);n.templates[t]=i;f&&!r.contains(n.templateNames,t)&&n.templateNames.push(t);s&&!r.contains(n.resultListTemplateNames,t)&&n.resultListTemplateNames.push(t);o&&(n.defaultTemplates[t]=i)},n.unregisterTemplate=function(t){u.Assert.isNonEmptyString(t);void 0!=n.templates[t]&&delete n.templates[t];void 0!=n.defaultTemplates[t]&&delete n.defaultTemplates[t]},n.getTemplate=function(t){return n.templates[t]||n.scanAndRegisterTemplates(),u.Assert.exists(n.templates[t]),n.templates[t]},n.getTemplates=function(){return n.templates},n.getTemplateNames=function(){return n.templateNames},n.getResultListTemplateNames=function(){return n.resultListTemplateNames},n.getDefaultTemplates=function(){return r.keys(n.defaultTemplates)},n.getDefaultTemplate=function(t){return u.Assert.exists(n.defaultTemplates[t]),n.defaultTemplates[t]},n.scanAndRegisterTemplates=function(){f.UnderscoreTemplate.isLibraryAvailable()&&n.scanAndRegisterUnderscoreTemplates();n.scanAndRegisterHtmlTemplates()},n.scanAndRegisterUnderscoreTemplates=function(){r.each(f.UnderscoreTemplate.mimeTypes,function(t){for(var u=document.querySelectorAll("script[id][type='"+t+"']"),i=u.length,e=new Array(i);i--;)e[i]=u.item(i);r.each(e,function(t){var i=new f.UnderscoreTemplate(t);n.registerTemplate(t.getAttribute("id"),i)})})},n.scanAndRegisterHtmlTemplates=function(){r.each(o.HtmlTemplate.mimeTypes,function(t){for(var u=document.querySelectorAll("script[id][type='"+t+"']"),i=u.length,f=new Array(i);i--;)f[i]=u.item(i);r.each(f,function(t){var i=new o.HtmlTemplate(t);n.registerTemplate(t.getAttribute("id"),i)})})},n.templates={},n.templateNames=[],n.resultListTemplateNames=[],n.defaultTemplates={},n}();t.TemplateCache=s;document.addEventListener("DOMContentLoaded",function(){s.scanAndRegisterTemplates()})},function(n,t,i){"use strict";function u(n){var t=s.$$("span");return t.text(n),t}var o;Object.defineProperty(t,"__esModule",{value:!0});var r=i(4),f=i(5),e=i(0),s=i(1),h=function(){function n(){}return n.replace=function(t,i,u){var e=new n,f,o,s;if(r.Utils.isNullOrEmptyString(t))return e;if(f=t.lastIndexOf(i),-1==f)return e.value=t,e;for(o=[];f>=0;)s={begin:f,size:i.length,replacementSize:u.length},o.push(s),t=t.slice(0,f)+u+t.slice(f+i.length),f=t.lastIndexOf(i);return e.holes=o,e.value=t,e},n.shortenPath=function(t,i){var o=new n,u=t,c,f,e,s,l,a,h;if(r.Utils.isNullOrEmptyString(u)||u.length<=i)return o.value=u,o;if(c=[],f=-1,-1!==(f=r.Utils.stringStartsWith(u,"\\\\")?u.indexOf("\\",f+2):u.indexOf("\\"))){for(e=0,s=u.indexOf("\\",f+1);-1!==s&&u.length-e+n.SHORTEN_END.length>i;)e=s-f-1,s=u.indexOf("\\",s+1);e>0&&(u=u.slice(0,f+1)+n.SHORTEN_END+u.slice(e),h={begin:f+1,size:e-n.SHORTEN_END.length,replacementSize:n.SHORTEN_END.length},c.push(h))}return u.length>i&&(l=u.length-i+n.SHORTEN_END.length,a=u.length-l,u=u.slice(0,a)+n.SHORTEN_END,h={begin:a,size:l,replacementSize:n.SHORTEN_END.length},c.push(h)),o.holes=c,o.value=u,o},n.shortenString=function(t,i,u){var e,o,f,s,h;return(void 0===i&&(i=200),e=t,u=r.Utils.toNotNullString(u),o=new n,r.Utils.isNullOrEmptyString(e)||i<=u.length)?(o.value=e,o):e.length<=i?(o.value=e,o):(f=e,(i-=u.length,f=f.slice(0,i)," "!==e.charAt(f.length))&&(s=f.lastIndexOf(" "),-1!==s&&f.length-s<n.WORD_SHORTER&&(f=f.slice(0,s))),h=[],h[0]={begin:f.length,size:e.length-f.length,replacementSize:u.length},f+=u,o.value=f,o.holes=h,o)},n.shortenUri=function(t,i){var e=new n,h,u,f,o,c,l,s;if(r.Utils.isNullOrEmptyString(t)||t.length<=i)return e.value=t,e;if(h=[],u=t.indexOf("//"),-1!==u&&(u=t.indexOf("/",u+2)),-1!==u){for(f=0,o=t.indexOf("/",u+1);-1!==o&&t.length-f+n.SHORTEN_END.length>i;)f=o-u-1,o=t.indexOf("/",o+1);f>0&&(t=t.slice(0,u+1)+n.SHORTEN_END+t.slice(u+1+f),s={begin:u+1,size:f,replacementSize:n.SHORTEN_END.length},h.push(s))}return t.length>i&&(c=t.length-i+n.SHORTEN_END.length,l=t.length-c,t=t.slice(0,l)+n.SHORTEN_END,s={begin:l,size:c,replacementSize:n.SHORTEN_END.length},h.push(s)),e.holes=h,e.value=t,e},n.SHORTEN_END="...",n.WORD_SHORTER=10,n}();t.StringAndHoles=h;o=function(){function n(){}return n.highlightString=function(n,t,i,u){var b,p,k;if(f.Assert.isNotUndefined(t),f.Assert.isNotNull(t),f.Assert.isNonEmptyString(u),r.Utils.isNullOrEmptyString(n))return n;for(var d=n.length,h="",y=0,w=0;w<t.length;w++){var a=t[w],s=a.offset,o=s+a.length;if(null!==i){for(b=!1,p=0;p<i.length;p++){var c=i[p],l=c.begin,v=l+c.size;if(s<l&&o>=l&&o<v)o=l;else{if(s>=l&&o<v){b=!0;break}s>=l&&s<v&&o>=v?(s=l+c.replacementSize,o-=c.size-c.replacementSize):s<l&&o>=v?o-=c.size-c.replacementSize:s>=v&&(k=c.size-c.replacementSize,s-=k,o-=k)}}if(b||s===o)continue}if(o>d)break;h+=e.escape(n.slice(y,s));h+='<span class="'+u+'"';a.dataHighlightGroup&&(h+=' data-highlight-group="'+a.dataHighlightGroup.toString()+'"');a.dataHighlightGroupTerm&&(h+=' data-highlight-group-term="'+a.dataHighlightGroupTerm+'"');h+=">";h+=e.escape(n.slice(s,o));h+="<\/span>";y=o}return y!=d&&(h+=e.escape(n.slice(y))),h},n.highlight=function(n,t,i){var r=[],h=RegExp(t,"i"),e=n.split(h),o=e.pop(),f=0,s;return(e.forEach(function(e){var s,h,o;e&&(s=u(e),r.push(s.el),f+=e.length);h=n.substring(f,f+t.length);o=u(h);o.addClass(i);r.push(o.el);f+=t.length}),o)&&(s=u(o),r.push(s.el)),r},n}();t.HighlightUtils=o},function(n,t,i){"use strict";var ct=this&&this.__extends||function(){var n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])};return function(t,i){function r(){this.constructor=t}n(t,i);t.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),lt=this&&this.__assign||Object.assign||function(n){for(var t,r,i=1,u=arguments.length;i<u;i++){t=arguments[i];for(r in t)Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n};Object.defineProperty(t,"__esModule",{value:!0});i(540);i(541);var f=i(0),at=i(216),d=i(35),vt=i(34),s=i(11),yt=i(86),pt=i(3),e=i(5),wt=i(31),bt=i(18),a=i(13),c=i(6),y=i(15),kt=i(47),dt=i(173),p=i(24),u=i(1),g=i(16),nt=i(12),o=i(4),v=i(10),gt=i(7),r=i(8),ni=i(2),ti=i(84),ii=i(174),w=i(485),b=i(486),tt=i(484),ri=i(487),ui=i(172),it=i(488),rt=i(482),ut=i(483),ft=i(40),et=i(131),l=i(118),h=i(559),fi=i(489),ot=i(478),st=i(490),ht=i(491),ei=i(477),k=function(n){function t(i,u,e,o){void 0===o&&(o=t.ID);var c=n.call(this,i,o,e)||this;return c.element=i,c.options=u,c.keepDisplayedValuesNextTime=!1,c.values=new h.FacetValues,c.currentPage=0,c.firstQuery=!0,c.isFieldValueCompatible=!0,c.isFieldValueHierarchical=!1,c.canFetchMore=!0,c.showingWaitAnimation=!1,c.listenToQueryStateChange=!0,c.options=r.ComponentOptions.initComponentOptions(i,t,u),null!=c.options.valueCaption&&(c.options.availableSorts=f.filter(c.options.availableSorts,function(n){return!/^alpha.*$/.test(n)}),c.logger.warn("Because the "+c.options.field+" facet is using value captions, alphabetical sorts are disabled.")),ii.ResponsiveFacets.init(c.root,c,c.options),c.omniboxZIndex=t.omniboxIndex,t.omniboxIndex--,c.checkForComputedFieldAndSort(),c.checkForValueCaptionType(),c.checkForCustomSort(),c.initDependsOnManager(),c.initFacetQueryController(),c.initQueryEvents(),c.initQueryStateEvents(),c.initComponentStateEvents(),c.initOmniboxEvents(),c.initBreadCrumbEvents(),c.initSearchAlertEvents(),c.updateNumberOfValues(),c.bind.oneRootElement(s.QueryEvents.querySuccess,function(){c.firstQuery=!1}),c}return ct(t,n),t.prototype.setExpandedFacetSearchAccessibilityAttributes=function(n){this.searchContainer&&(e.Assert.exists(n),this.searchContainer.accessibleElement.setAttribute("aria-expanded",(!0).toString()))},t.prototype.setCollapsedFacetSearchAccessibilityAttributes=function(){this.searchContainer&&this.searchContainer.accessibleElement.setAttribute("aria-expanded",(!1).toString())},t.prototype.isCurrentlyDisplayed=function(){return!!u.$$(this.element).isVisible()&&(!!u.$$(this.element).hasClass("coveo-active")||!u.$$(this.element).hasClass("coveo-facet-empty"))},t.prototype.createDom=function(){var n=this,t;if(this.initBottomAndTopSpacer(),this.buildFacetContent(),this.updateAppearanceDependingOnState(),this.facetSettings&&this.options.enableSettingsFacetState){t=f.once(function(){n.facetSettings.loadSavedState.apply(n.facetSettings)});this.bind.onRootElement(s.QueryEvents.newQuery,t)}},t.prototype.selectValue=function(n){e.Assert.exists(n);this.ensureDom();this.logger.info("Selecting facet value",this.facetValuesList.select(n));this.facetValueHasChanged()},t.prototype.selectMultipleValues=function(n){var t=this;e.Assert.exists(n);this.ensureDom();f.each(n,function(n){t.logger.info("Selecting facet value",t.facetValuesList.select(n))});this.facetValueHasChanged()},t.prototype.deselectValue=function(n){e.Assert.exists(n);this.ensureDom();this.logger.info("Deselecting facet value",this.facetValuesList.unselect(n));this.facetValueHasChanged()},t.prototype.deselectMultipleValues=function(n){var t=this;e.Assert.exists(n);this.ensureDom();f.each(n,function(n){t.logger.info("Deselecting facet value",t.facetValuesList.unselect(n))});this.facetValueHasChanged()},t.prototype.excludeValue=function(n){e.Assert.exists(n);this.ensureDom();this.logger.info("Excluding facet value",this.facetValuesList.exclude(n));this.facetValueHasChanged()},t.prototype.excludeMultipleValues=function(n){var t=this;e.Assert.exists(n);this.ensureDom();f.each(n,function(n){t.logger.info("Excluding facet value",t.facetValuesList.exclude(n))});this.facetValueHasChanged()},t.prototype.unexcludeValue=function(n){e.Assert.exists(n);this.ensureDom();this.logger.info("Unexcluding facet value",this.facetValuesList.unExclude(n));this.facetValueHasChanged()},t.prototype.unexcludeMultipleValues=function(n){var t=this;e.Assert.exists(n);this.ensureDom();f.each(n,function(n){t.logger.info("Unexcluding facet value",t.facetValuesList.unExclude(n))});this.facetValueHasChanged()},t.prototype.toggleSelectValue=function(n){e.Assert.exists(n);this.ensureDom();this.logger.info("Toggle select facet value",this.facetValuesList.toggleSelect(n));this.facetValueHasChanged()},t.prototype.toggleExcludeValue=function(n){e.Assert.exists(n);this.ensureDom();this.logger.info("Toggle exclude facet value",this.facetValuesList.toggleExclude(n));this.facetValueHasChanged()},t.prototype.getDisplayedValues=function(){return f.pluck(this.getDisplayedFacetValues(),"value")},t.prototype.getDisplayedFacetValues=function(){this.ensureDom();var n=this.facetValuesList.getAllCurrentlyDisplayed();return f.map(n,function(n){return n.facetValue})},t.prototype.getSelectedValues=function(){return this.ensureDom(),f.map(this.values.getSelected(),function(n){return n.value})},t.prototype.hasSelectedValue=function(n){var t=this.values.get(n);return t&&t.selected},t.prototype.getExcludedValues=function(){return this.ensureDom(),f.map(this.values.getExcluded(),function(n){return n.value})},t.prototype.reset=function(){this.ensureDom();this.values.reset();this.rebuildValueElements();this.updateAppearanceDependingOnState();this.updateQueryStateModel()},t.prototype.switchToAnd=function(){this.ensureDom();this.logger.info("Switching to AND");this.facetHeader.switchToAnd()},t.prototype.switchToOr=function(){this.ensureDom();this.logger.info("Switching to OR");this.facetHeader.switchToOr()},t.prototype.getEndpoint=function(){return this.queryController.getEndpoint()},t.prototype.updateSort=function(n){this.ensureDom();this.options.sortCriteria!=n&&(this.options.sortCriteria=n,this.usageAnalytics.logCustomEvent(v.analyticsActionCauseList.facetUpdateSort,{criteria:n,facetId:this.options.id,facetField:this.options.field.toString(),facetTitle:this.options.title},this.element),this.triggerNewQuery())},t.prototype.unfadeInactiveValuesInMainList=function(){u.$$(this.element).removeClass("coveo-facet-fade")},t.prototype.fadeInactiveValuesInMainList=function(){u.$$(this.element).addClass("coveo-facet-fade")},t.prototype.showWaitingAnimation=function(){this.ensureDom();this.showingWaitAnimation||(u.$$(this.headerElement).find(".coveo-facet-header-wait-animation").style.visibility="visible",this.showingWaitAnimation=!0)},t.prototype.hideWaitingAnimation=function(){this.ensureDom();this.showingWaitAnimation&&(u.$$(this.headerElement).find(".coveo-facet-header-wait-animation").style.visibility="hidden",this.showingWaitAnimation=!1)},t.prototype.processFacetSearchAllResultsSelected=function(n){var t=this,r=[],i;f.each(n,function(n){t.ensureFacetValueIsInList(n);r.push(n.value)});i=this.values.getSelected().concat(this.values.getExcluded());this.numberOfValues=i.length+f.difference(i,n).length;this.numberOfValues=Math.max(this.numberOfValues,this.options.numberOfValues);this.updateQueryStateModel();this.triggerNewQuery(function(){return t.usageAnalytics.logSearchEvent(v.analyticsActionCauseList.facetSelectAll,{facetId:t.options.id,facetField:t.options.field.toString(),facetTitle:t.options.title})})},t.prototype.pinFacetPosition=function(){this.options.preservePosition&&(this.pinnedViewportPosition=this.element.getBoundingClientRect().top)},t.prototype.getValueCaption=function(n){var i,t,r,u;return e.Assert.exists(n),i="string"==typeof n?n:n.lookupValue||n.value,t=ft.FacetUtils.tryToGetTranslatedCaption(this.options.field,i),o.Utils.exists(this.options.valueCaption)&&("object"==typeof this.options.valueCaption&&(t=this.options.valueCaption[i]||t),"function"==typeof this.options.valueCaption)&&(r=n instanceof l.FacetValue?n:l.FacetValue.create(n),u=this.facetValuesList.get(r).facetValue,t=this.options.valueCaption.call(this,u)),t},t.prototype.getCaptionForStringValue=function(n){return e.Assert.exists(n),this.getValueCaption(n)},t.prototype.showMore=function(){this.currentPage=Math.floor((this.numberOfValues-this.options.numberOfValues)/this.options.pageSize)+1;this.updateNumberOfValues();this.nbAvailableValues>=this.numberOfValues||!this.canFetchMore?this.rebuildValueElements():this.triggerMoreQuery()},t.prototype.showLess=function(){u.$$(this.lessElement).removeClass("coveo-active");this.currentPage=0;this.updateNumberOfValues();u.$$(this.moreElement).addClass("coveo-active");this.values.sortValuesDependingOnStatus(this.numberOfValues);this.rebuildValueElements();this.logAnalyticsFacetShowMoreLess(v.analyticsActionCauseList.facetShowLess)},t.prototype.collapse=function(){this.ensureDom();this.facetHeader&&this.facetHeader.collapseFacet()},t.prototype.expand=function(){this.ensureDom();this.facetHeader&&this.facetHeader.expandFacet()},t.prototype.triggerNewQuery=function(n){n?this.queryController.executeQuery({beforeExecuteQuery:n}):this.queryController.executeQuery({ignoreWarningSearchEvent:!0});this.showWaitingAnimation()},t.prototype.handleDeferredQuerySuccess=function(n){e.Assert.exists(n);this.unfadeInactiveValuesInMainList();this.hideWaitingAnimation();var t=n.results.groupByResults[this.facetQueryController.lastGroupByRequestIndex];this.facetQueryController.lastGroupByResult=t;t||(this.keepDisplayedValuesNextTime=!1);1==this.values.getAll().length&&(this.keepDisplayedValuesNextTime=!1);this.processNewGroupByResults(t)},t.prototype.handleQueryError=function(){this.updateValues(new h.FacetValues);this.updateAppearanceDependingOnState();this.hideWaitingAnimation()},t.prototype.handlePopulateBreadcrumb=function(n){if(e.Assert.exists(n),this.values.hasSelectedOrExcludedValues()){var t=new b.BreadcrumbValueList(this,this.values.getSelected().concat(this.values.getExcluded()),w.BreadcrumbValueElement,{headingLevel:n.headingLevel}).build();n.breadcrumbs.push({element:t})}},t.prototype.handlePopulateSearchAlerts=function(n){if(this.values.hasSelectedOrExcludedValues()){var t=this.values.getExcluded(),i=this.values.getSelected();f.isEmpty(t)||n.text.push({value:new b.BreadcrumbValueList(this,t,w.BreadcrumbValueElement).buildAsString(),lineThrough:!0});f.isEmpty(i)||n.text.push({value:new b.BreadcrumbValueList(this,i,w.BreadcrumbValueElement).buildAsString(),lineThrough:!1})}},t.prototype.initFacetQueryController=function(){this.facetQueryController=new at.FacetQueryController(this)},t.prototype.initFacetValuesList=function(){this.facetValuesList=new fi.FacetValuesList(this,et.FacetValueElement);this.element.appendChild(this.facetValuesList.build())},t.prototype.initFacetSearch=function(){this.facetSearch=new ri.FacetSearch(this,it.FacetSearchValuesList,this.root);this.element.appendChild(this.facetSearch.build())},t.prototype.facetValueHasChanged=function(){var n=this;this.updateQueryStateModel();this.rebuildValueElements();wt.Defer.defer(function(){n.updateAppearanceDependingOnState()})},t.prototype.updateAppearanceDependingOnState=function(){u.$$(this.element).toggleClass("coveo-active",this.values.hasSelectedOrExcludedValues());u.$$(this.element).toggleClass("coveo-facet-empty",!this.isAnyValueCurrentlyDisplayed());u.$$(this.facetHeader.eraserElement).toggleClass("coveo-facet-header-eraser-visible",this.values.hasSelectedOrExcludedValues())},t.prototype.initQueryEvents=function(){var n=this;this.bind.onRootElement(s.QueryEvents.duringQuery,function(){return n.handleDuringQuery()});this.bind.onRootElement(s.QueryEvents.buildingQuery,function(t){return n.handleBuildingQuery(t)});this.bind.onRootElement(s.QueryEvents.doneBuildingQuery,function(t){return n.handleDoneBuildingQuery(t)});this.bind.onRootElement(s.QueryEvents.deferredQuerySuccess,function(t){return n.handleDeferredQuerySuccess(t)});this.bind.onRootElement(s.QueryEvents.queryError,function(){return n.handleQueryError()})},t.prototype.initQueryStateEvents=function(){var n=this;this.includedAttributeId=a.QueryStateModel.getFacetId(this.options.id);this.excludedAttributeId=a.QueryStateModel.getFacetId(this.options.id,!1);this.operatorAttributeId=a.QueryStateModel.getFacetOperator(this.options.id);this.lookupValueAttributeId=a.QueryStateModel.getFacetLookupValue(this.options.id);this.queryStateModel.registerNewAttribute(this.includedAttributeId,[]);this.queryStateModel.registerNewAttribute(this.excludedAttributeId,[]);this.queryStateModel.registerNewAttribute(this.operatorAttributeId,"");this.queryStateModel.registerNewAttribute(this.lookupValueAttributeId,{});this.bind.onQueryState(bt.MODEL_EVENTS.CHANGE,void 0,function(t){return n.handleQueryStateChanged(t)})},t.prototype.initComponentStateEvents=function(){this.componentStateId=a.QueryStateModel.getFacetId(this.options.id);this.componentStateModel.registerComponent(this.componentStateId,this)},t.prototype.initOmniboxEvents=function(){var n=this;this.options.includeInOmnibox&&this.bind.onRootElement(vt.OmniboxEvents.populateOmnibox,function(t){return n.handlePopulateOmnibox(t)})},t.prototype.initBreadCrumbEvents=function(){var n=this;this.options.includeInBreadcrumb&&(this.bind.onRootElement(d.BreadcrumbEvents.populateBreadcrumb,function(t){return n.handlePopulateBreadcrumb(t)}),this.bind.onRootElement(d.BreadcrumbEvents.clearBreadcrumb,function(){return n.handleClearBreadcrumb()}))},t.prototype.initSearchAlertEvents=function(){var n=this;this.bind.onRootElement(yt.SearchAlertsEvents.searchAlertsPopulateMessage,function(t){return n.handlePopulateSearchAlerts(t)})},t.prototype.handleOmniboxWithStaticValue=function(n){var t=this,i=new RegExp("^"+n.completeQueryExpression.regex.source,"i"),r=f.first(f.filter(this.getDisplayedValues(),function(n){var r=t.getValueCaption(t.facetValuesList.get(n).facetValue);return i.test(r)}),this.options.numberOfValuesInOmnibox),u=f.map(r,function(n){return t.facetValuesList.get(n).facetValue}),e=new ht.OmniboxValuesList(this,u,n,st.OmniboxValueElement).build();n.rows.push({element:e,zIndex:this.omniboxZIndex})},t.prototype.processNewGroupByResults=function(n){this.logger.trace("Displaying group by results",n);void 0!=n&&void 0!=n.values&&(this.nbAvailableValues=n.values.length);var t=new h.FacetValues(n);this.updateValues(t);this.canFetchMore=this.numberOfValues<this.nbAvailableValues;this.values.hasSelectedOrExcludedValues()&&!this.options.useAnd&&this.options.isMultiValueField?this.triggerUpdateDeltaQuery(f.filter(this.values.getAll(),function(n){return!n.selected&&!n.excluded})):this.values.getSelected().length>0&&!this.options.useAnd&&this.values.updateDeltaWithFilteredFacetValues(new h.FacetValues,this.options.isMultiValueField);this.values.hasSelectedOrExcludedValues()&&!this.options.useAnd&&this.options.isMultiValueField||(this.rebuildValueElements(),this.updateAppearanceDependingOnState(),this.ensurePinnedFacetHasntMoved());this.keepDisplayedValuesNextTime=!1},t.prototype.updateQueryStateModel=function(){this.listenToQueryStateChange=!1;this.updateExcludedQueryStateModel();this.updateIncludedQueryStateModel();this.facetHeader.updateOperatorQueryStateModel();this.updateLookupValueQueryStateModel();this.listenToQueryStateChange=!0},t.prototype.rebuildValueElements=function(){this.updateNumberOfValues();this.facetValuesList.rebuild(this.numberOfValues);this.shouldRenderMoreLess()?(this.updateMoreLess(),this.shouldRenderFacetSearch()&&this.updateSearchElement(this.nbAvailableValues>this.numberOfValues)):this.shouldRenderFacetSearch()&&this.updateSearchElement()},t.prototype.updateSearchElement=function(n){var t=this,i;(void 0===n&&(n=!0),n)&&(i=new ei.ValueElementRenderer(this,l.FacetValue.create(c.l("Search"))),this.searchContainer=i.build().withNo([i.excludeIcon,i.icon]),u.$$(this.searchContainer.listItem).addClass("coveo-facet-search-button"),(new y.AccessibleButton).withElement(this.searchContainer.accessibleElement).withLabel(c.l("SearchFacetResults",this.options.title)).withEnterKeyboardAction(function(n){return t.toggleSearchMenu(n)}).build(),this.setCollapsedFacetSearchAccessibilityAttributes(),p.DeviceUtils.isMobileDevice()&&u.$$(this.searchContainer.label).on("click",function(n){return t.toggleSearchMenu(n)}),u.$$(this.searchContainer.checkbox).on("change",function(){u.$$(t.element).addClass("coveo-facet-searching");t.facetSearch.focus()}),this.facetValuesList.valueContainer.appendChild(this.searchContainer.listItem))},t.prototype.updateMoreLess=function(n,t){void 0===n&&(n=this.getMinimumNumberOfValuesToDisplay()<this.numberOfValues);void 0===t&&(t=this.nbAvailableValues>this.numberOfValues);n?u.$$(this.lessElement).addClass("coveo-active"):u.$$(this.lessElement).removeClass("coveo-active");t?u.$$(this.moreElement).addClass("coveo-active"):u.$$(this.moreElement).removeClass("coveo-active");n||t?u.$$(this.footerElement).removeClass("coveo-facet-empty"):u.$$(this.footerElement).addClass("coveo-facet-empty")},t.prototype.handleClickMore=function(){this.showMore()},t.prototype.handleClickLess=function(){this.showLess()},t.prototype.toggleSearchMenu=function(n){var t=this.searchContainer;t.checkbox.getAttribute("checked")?t.checkbox.removeAttribute("checked"):t.checkbox.setAttribute("checked","checked");u.$$(t.checkbox).trigger("change");n.stopPropagation();n.preventDefault()},t.prototype.checkForComputedFieldAndSort=function(){-1!=this.options.sortCriteria.toLowerCase().indexOf("computedfield")&&o.Utils.isNullOrUndefined(this.options.computedField)&&this.logger.warn("Sort criteria is specified as ComputedField, but the facet uses no computed field. Facet will always be empty !",this)},t.prototype.checkForValueCaptionType=function(){this.options.valueCaption&&"function"==typeof this.options.valueCaption&&(this.options.enableFacetSearch=!1,this.options.includeInOmnibox=!1,this.logger.warn("Using a function as valueCaption is now deprecated. Use a json key value pair instead. Facet search and omnibox has been disabled for this facet",this))},t.prototype.checkForCustomSort=function(){void 0==this.options.customSort||f.contains(this.options.availableSorts,"custom")||this.options.availableSorts.unshift("custom");"custom"==this.options.availableSorts[0]&&(this.options.sortCriteria="nosort")},t.prototype.initDependsOnManager=function(){var n=this,t={reset:function(){return n.reset()},ref:this};this.dependsOnManager=new dt.DependsOnManager(t)},t.prototype.dependsOnUpdateParentDisplayValue=function(){var i=this,n;if(this.options.dependsOn){if(n=kt.ComponentsTypes.getAllFacetInstancesFromElement(this.root).filter(function(n){return n instanceof t&&n.options.id===i.options.dependsOn}),!n.length)return void this.logger.warn('Unable to find a Facet with the id or field "'+this.options.dependsOn+'".',"The master facet values can't be updated.");if(n.length>1)return void this.logger.warn('Multiple facets with id "'+this.options.dependsOn+'" found.',"A given facet may only depend on a single other facet.","Ensure that each facet in your search interface has a unique id.","The master facet cannot be updated.",n);n[0].keepDisplayedValuesNextTime=!1}},t.prototype.initBottomAndTopSpacer=function(){var n=this,t=u.$$(this.options.paddingContainer).find(".coveo-bottomSpace"),i=u.$$(this.options.paddingContainer).find(".coveo-topSpace");this.options.preservePosition&&(u.$$(this.options.paddingContainer).on("mouseleave",function(){return n.unpinFacetPosition()}),this.pinnedTopSpace=i,this.pinnedBottomSpace=t,this.pinnedTopSpace||(this.pinnedTopSpace=document.createElement("div"),u.$$(this.pinnedTopSpace).addClass("coveo-topSpace"),u.$$(this.pinnedTopSpace).insertBefore(this.options.paddingContainer.firstChild)),this.pinnedBottomSpace||(this.pinnedBottomSpace=document.createElement("div"),u.$$(this.pinnedBottomSpace).addClass("coveo-bottomSpace"),this.options.paddingContainer.appendChild(this.pinnedBottomSpace)))},t.prototype.updateIncludedQueryStateModel=function(){var n={included:this.getSelectedValues(),title:this.includedAttributeId};this.queryStateModel.set(this.includedAttributeId,n.included)},t.prototype.updateExcludedQueryStateModel=function(){var n={title:this.excludedAttributeId,excluded:this.getExcludedValues()};this.queryStateModel.set(this.excludedAttributeId,n.excluded)},t.prototype.updateLookupValueQueryStateModel=function(){if(this.options.lookupField){var n={};f.each(this.values.getSelected().concat(this.values.getExcluded()),function(t){n[t.value]=t.lookupValue});this.queryStateModel.set(this.lookupValueAttributeId,n)}},t.prototype.handleQueryStateChangedOperator=function(n){"and"==n?this.switchToAnd():"or"==n&&this.switchToOr()},t.prototype.handleQueryStateChangedIncluded=function(n){var t=f.difference(this.getSelectedValues(),n);o.Utils.isNonEmptyArray(t)&&this.deselectMultipleValues(t);o.Utils.arrayEqual(this.getSelectedValues(),n,!1)||this.selectMultipleValues(n)},t.prototype.handleQueryStateChangedExcluded=function(n){var t=f.difference(this.getExcludedValues(),n);o.Utils.isNonEmptyArray(t)&&this.unexcludeMultipleValues(t);o.Utils.arrayEqual(this.getExcludedValues(),n,!1)||this.excludeMultipleValues(n)},t.prototype.handleLookupvalueChanged=function(n){var t=this;f.each(n,function(n,i){t.facetValuesList.get(decodeURIComponent(i)).facetValue.lookupValue=decodeURIComponent(n)})},t.prototype.handleQueryStateChanged=function(n){e.Assert.exists(n);this.ensureDom();this.dependsOnUpdateParentDisplayValue();var i=function(n){return n&&(n=f.map(n,function(n){return n.trim()})),n},t=n.attributes,r=i(t[this.includedAttributeId]),u=i(t[this.excludedAttributeId]),s=t[this.operatorAttributeId],h=t[this.lookupValueAttributeId];this.listenToQueryStateChange&&(o.Utils.isNullOrEmptyString(s)||this.handleQueryStateChangedOperator(s),o.Utils.isNullOrUndefined(r)||this.handleQueryStateChangedIncluded(r),o.Utils.isNullOrUndefined(u)||this.handleQueryStateChangedExcluded(u),o.Utils.isNullOrUndefined(h)||this.handleLookupvalueChanged(h))},t.prototype.handlePopulateOmnibox=function(n){e.Assert.exists(n);e.Assert.exists(n.completeQueryExpression);this.queryController.ensureCreatedQueryBuilder();this.canFetchMore?this.handleOmniboxWithSearchInFacet(n):this.handleOmniboxWithStaticValue(n)},t.prototype.handleOmniboxWithSearchInFacet=function(n){var t=this,i=new RegExp("^"+n.completeQueryExpression.regex.source,"i"),r=new Promise(function(r){var u=new ui.FacetSearchParameters(t);u.setValueToSearch(n.completeQueryExpression.word);u.nbResults=t.options.numberOfValuesInOmnibox;t.facetQueryController.search(u).then(function(u){var e=f.map(f.filter(u,function(n){return i.test(n.lookupValue)}),function(n){return t.values.get(n.lookupValue)||l.FacetValue.create(n)}),o=new ht.OmniboxValuesList(t,e,n,st.OmniboxValueElement).build();r({element:o,zIndex:t.omniboxZIndex})}).catch(function(){r({element:void 0})})});n.rows.push({deferred:r})},t.prototype.handleDuringQuery=function(){this.ensureDom();this.keepDisplayedValuesNextTime||this.fadeInactiveValuesInMainList(this.options.facetSearchDelay)},t.prototype.handleBuildingQuery=function(n){if(e.Assert.exists(n),e.Assert.exists(n.queryBuilder),this.facetQueryController.prepareForNewQuery(),this.values.hasSelectedOrExcludedValues()){var t=this.facetQueryController.computeOurFilterExpression();this.logger.trace("Putting filter in query",t);n.queryBuilder.advancedExpression.add(t)}},t.prototype.handleDoneBuildingQuery=function(n){e.Assert.exists(n);e.Assert.exists(n.queryBuilder);var t=n.queryBuilder;this.facetQueryController.putGroupByIntoQueryBuilder(t)},t.prototype.handleClearBreadcrumb=function(){this.reset()},t.prototype.updateValues=function(n){e.Assert.exists(n);this.keepDisplayedValuesNextTime?this.values.updateCountsFromNewValues(n):this.values=this.consolidateAndSortNewFacetValues(n);this.updateNumberOfValues()},t.prototype.consolidateAndSortNewFacetValues=function(n){return n.importActiveValuesFromOtherList(this.values),n.sort(this.optionsToSortFacetValues),n},Object.defineProperty(t.prototype,"optionsToSortFacetValues",{get:function(){return{facetValuesOrder:this.facetValuesOrder,numberOfValues:this.numberOfValues}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"facetValuesOrder",{get:function(){return new ot.FacetValuesOrder(this,this.facetSort)},enumerable:!0,configurable:!0}),t.prototype.ensureFacetValueIsInList=function(n){e.Assert.exists(n);this.values.contains(n.value)||this.values.add(n)},t.prototype.isAnyValueCurrentlyDisplayed=function(){return!this.values.isEmpty()},t.prototype.buildFacetContent=function(){this.headerElement=this.buildHeader();this.element.appendChild(this.headerElement);this.initFacetValuesList();this.shouldRenderFacetSearch()&&this.initFacetSearch();this.shouldRenderMoreLess()&&(this.moreElement=this.buildMore(),this.lessElement=this.buildLess());this.footerElement=this.buildFooter();this.element.appendChild(this.footerElement);this.lessElement&&this.moreElement&&(this.footerElement.appendChild(this.lessElement),this.footerElement.appendChild(this.moreElement))},t.prototype.buildHeader=function(){var n=this.options.headerIcon,t;return this.options.headerIcon==this.options.field&&(n=void 0),this.facetHeader=new tt.FacetHeader({facetElement:this.element,title:this.options.title,icon:n,field:this.options.field,enableClearElement:!0,enableCollapseElement:this.options.enableCollapse,facet:this,settingsKlass:this.options.enableSettings?rt.FacetSettings:void 0,sortKlass:ut.FacetSort,availableSorts:this.options.availableSorts}),t=this.facetHeader.build(),this.facetSettings=this.facetHeader.settings,this.facetSort=this.facetHeader.sort,t},t.prototype.unpinFacetPosition=function(){this.shouldFacetUnpin()&&this.options.preservePosition&&(u.$$(this.pinnedTopSpace).addClass("coveo-with-animation"),u.$$(this.pinnedBottomSpace).addClass("coveo-with-animation"),this.pinnedTopSpace.style.height="0px",this.pinnedBottomSpace.style.height="0px");this.unpinnedViewportPosition=void 0;this.pinnedViewportPosition=void 0},t.prototype.isFacetPinned=function(){return o.Utils.exists(this.pinnedViewportPosition)},t.prototype.shouldFacetUnpin=function(){return o.Utils.exists(this.unpinnedViewportPosition)},t.prototype.ensurePinnedFacetHasntMoved=function(){if(this.isFacetPinned()){e.Assert.exists(this.pinnedViewportPosition);u.$$(this.pinnedTopSpace).removeClass("coveo-with-animation");u.$$(this.pinnedBottomSpace).removeClass("coveo-with-animation");this.pinnedTopSpace.style.height="0px";this.pinnedBottomSpace.style.height="0px";var t=this.options.scrollContainer==document.body?window:this.options.scrollContainer,i=this.element.getBoundingClientRect().top,n=i-this.pinnedViewportPosition;!function(){t instanceof Window?window.scrollTo(0,new u.Win(t).scrollY()+n):t.scrollTop=t.scrollTop+n}();i=this.element.getBoundingClientRect().top;n=i-this.pinnedViewportPosition;n<0&&(this.pinnedTopSpace.style.height=-1*n+"px");this.unpinnedViewportPosition=this.pinnedViewportPosition;this.pinnedViewportPosition=null}},t.prototype.buildFooter=function(){return u.$$("div",{className:"coveo-facet-footer"}).el},t.prototype.buildMore=function(){var i=this,t=u.$$("span",{className:"coveo-facet-more-icon"},nt.SVGIcons.icons.arrowDown).el,n;return g.SVGDom.addClassToSVGInContainer(t,"coveo-facet-more-icon-svg"),n=u.$$("div",{className:"coveo-facet-more",tabindex:0},t).el,(new y.AccessibleButton).withElement(n).withLabel(c.l("ShowMoreFacetResults",this.options.title)).withSelectAction(function(){return i.handleClickMore()}).build(),n},t.prototype.buildLess=function(){var i=this,t=u.$$("span",{className:"coveo-facet-less-icon"},nt.SVGIcons.icons.arrowUp).el,n;return g.SVGDom.addClassToSVGInContainer(t,"coveo-facet-less-icon-svg"),n=u.$$("div",{className:"coveo-facet-less",tabindex:0},t).el,(new y.AccessibleButton).withElement(n).withLabel(c.l("ShowLessFacetResults",this.options.title)).withSelectAction(function(){return i.handleClickLess()}).build(),n},t.prototype.triggerMoreQuery=function(){var n=this;this.logger.info("Triggering new facet more query");this.showWaitingAnimation();this.facetQueryController.fetchMore(this.numberOfValues+1).then(function(t){n.logAnalyticsFacetShowMoreLess(v.analyticsActionCauseList.facetShowMore);var i=new h.FacetValues(t.groupByResults[0]);n.values=n.consolidateAndSortNewFacetValues(i);n.nbAvailableValues=n.values.size();n.updateNumberOfValues();n.canFetchMore=n.numberOfValues<n.nbAvailableValues;n.values.hasSelectedOrExcludedValues()&&!n.options.useAnd&&n.options.isMultiValueField?n.triggerUpdateDeltaQuery(f.filter(n.values.getAll(),function(n){return!n.selected&&!n.excluded})):n.values.hasSelectedOrExcludedValues()&&!n.options.useAnd?(n.values.updateDeltaWithFilteredFacetValues(new h.FacetValues,n.options.isMultiValueField),n.hideWaitingAnimation()):n.hideWaitingAnimation();n.rebuildValueElements()}).catch(function(){return n.hideWaitingAnimation()})},t.prototype.triggerUpdateDeltaQuery=function(n){var t=this;this.showWaitingAnimation();this.facetQueryController.searchInFacetToUpdateDelta(n).then(function(n){var i=new h.FacetValues;f.each(n.groupByResults,function(n){f.each(n.values,function(n){i.contains(n.value)||i.add(l.FacetValue.createFromGroupByValue(n))})});t.values.updateDeltaWithFilteredFacetValues(i,t.options.isMultiValueField);t.cleanupDeltaValuesForMultiValueField();t.rebuildValueElements();t.hideWaitingAnimation()})},t.prototype.updateNumberOfValues=function(){this.keepDisplayedValuesNextTime||(this.currentPage<=0?(this.currentPage=0,this.numberOfValues=0):this.numberOfValues=this.options.numberOfValues+this.currentPage*this.options.pageSize,this.numberOfValues=Math.max(this.numberOfValues,this.getMinimumNumberOfValuesToDisplay()))},t.prototype.getMinimumNumberOfValuesToDisplay=function(){var t=this.values.getExcluded().length+this.values.getSelected().length,n;return null!=this.options.customSort&&null!=this.facetSort&&this.options.customSort.length>0&&(n=-1,new ot.FacetValuesOrder(this,this.facetSort).reorderValues(this.values.getAll()).forEach(function(t,i){t.selected&&(n=i)}),t=n+1),Math.max(t,this.options.numberOfValues)},t.prototype.cleanupDeltaValuesForMultiValueField=function(){var n=this;this.options.isMultiValueField&&(f.each(this.values.getAll(),function(t){0!=t.occurrences||t.selected||t.excluded||n.values.remove(t.value)}),this.nbAvailableValues=this.values.getAll().length)},t.prototype.shouldRenderFacetSearch=function(){return this.options.enableFacetSearch},t.prototype.shouldRenderMoreLess=function(){return this.options.enableMoreLess},t.prototype.debugInfo=function(){var n={};return n[this.constructor.ID]={component:this,groupByRequest:this.facetQueryController.lastGroupByRequest,groupByResult:this.facetQueryController.lastGroupByResult},n},t.prototype.logAnalyticsFacetShowMoreLess=function(n){this.usageAnalytics.logCustomEvent(n,{facetId:this.options.id,facetField:this.options.field.toString(),facetTitle:this.options.title},this.element)},t.ID="Facet",t.omniboxIndex=50,t.doExport=function(){pt.exportGlobally({Facet:t,FacetHeader:tt.FacetHeader,FacetSearchValuesList:it.FacetSearchValuesList,FacetSettings:rt.FacetSettings,FacetSort:ut.FacetSort,FacetUtils:ft.FacetUtils,FacetValueElement:et.FacetValueElement,FacetValue:l.FacetValue})},t.options=lt({title:r.ComponentOptions.buildLocalizedStringOption({localizedString:function(){return c.l("NoTitle")},section:"CommonOptions",priority:10}),field:r.ComponentOptions.buildFieldOption({required:!0,groupByField:!0,section:"CommonOptions"}),headerIcon:r.ComponentOptions.buildStringOption({deprecated:"This option is exposed for legacy reasons, and the recommendation is to not use this option."}),id:r.ComponentOptions.buildStringOption({postProcessing:function(n,t){if(n){var i=n.replace(/[^a-zA-Z0-9-@$_.+!*'(),,]+/g,"");return o.Utils.isNullOrEmptyString(i)?t.field:i}return t.field}}),isMultiValueField:r.ComponentOptions.buildBooleanOption({defaultValue:!1,section:"CommonOptions"}),lookupField:r.ComponentOptions.buildFieldOption({deprecated:"This option is exposed for legacy reasons. It is not recommended to use this option."}),enableSettings:r.ComponentOptions.buildBooleanOption({defaultValue:!0,section:"Sorting",priority:9}),enableSettingsFacetState:r.ComponentOptions.buildBooleanOption({defaultValue:!1,depend:"enableSettings"}),availableSorts:r.ComponentOptions.buildListOption({defaultValue:["occurrences","score","alphaascending","alphadescending"],section:"Sorting",depend:"enableSettings",values:["occurrences","score","alphaascending","alphadescending","computedfieldascending","computedfielddescending","chisquare","nosort"]}),sortCriteria:r.ComponentOptions.buildStringOption({postProcessing:function(n,t){return n||(t.availableSorts.length>0?t.availableSorts[0]:"occurrences")},section:"Sorting"}),customSort:r.ComponentOptions.buildListOption({section:"Sorting"}),numberOfValues:r.ComponentOptions.buildNumberOption({defaultValue:5,min:0,section:"CommonOptions"}),injectionDepth:r.ComponentOptions.buildNumberOption({defaultValue:1e3,min:1e3}),showIcon:r.ComponentOptions.buildBooleanOption({defaultValue:!1,deprecated:"This option is exposed for legacy reasons. It is not recommended to use this option."}),useAnd:r.ComponentOptions.buildBooleanOption({defaultValue:!1,section:"Filtering"}),enableTogglingOperator:r.ComponentOptions.buildBooleanOption({defaultValue:!1,alias:"allowTogglingOperator"}),enableFacetSearch:r.ComponentOptions.buildBooleanOption({defaultValue:!0,section:"FacetSearch",priority:8}),facetSearchDelay:r.ComponentOptions.buildNumberOption({defaultValue:100,min:0,depend:"enableFacetSearch"}),facetSearchIgnoreAccents:r.ComponentOptions.buildBooleanOption({defaultValue:!1,depend:"enableFacetSearch"}),numberOfValuesInFacetSearch:r.ComponentOptions.buildNumberOption({defaultValue:15,min:1,section:"FacetSearch"}),useWildcardsInFacetSearch:r.ComponentOptions.buildBooleanOption({defaultValue:!1,section:"FacetSearch"}),includeInBreadcrumb:r.ComponentOptions.buildBooleanOption({defaultValue:!0}),numberOfValuesInBreadcrumb:r.ComponentOptions.buildNumberOption({defaultFunction:function(){return p.DeviceUtils.isMobileDevice()?3:5},min:0,depend:"includeInBreadcrumb"}),includeInOmnibox:r.ComponentOptions.buildBooleanOption({defaultValue:!1,deprecated:"This option is exposed for legacy reasons. It is not recommended to use this option."}),numberOfValuesInOmnibox:r.ComponentOptions.buildNumberOption({defaultFunction:function(){return p.DeviceUtils.isMobileDevice()?3:5},min:0,depend:"includeInOmnibox",deprecated:"This option is exposed for legacy reasons. It is not recommended to use this option."}),computedField:r.ComponentOptions.buildFieldOption({priority:7}),computedFieldOperation:r.ComponentOptions.buildStringOption({defaultValue:"sum",section:"ComputedField"}),computedFieldFormat:r.ComponentOptions.buildStringOption({defaultValue:"c0",section:"ComputedField"}),computedFieldCaption:r.ComponentOptions.buildLocalizedStringOption({localizedString:function(){return c.l("ComputedField")},section:"ComputedField"}),preservePosition:r.ComponentOptions.buildBooleanOption({defaultValue:!0}),paddingContainer:r.ComponentOptions.buildSelectorOption({defaultFunction:function(n){var t=u.$$(n).parent("coveo-facet-column");return null!=t?t:n.parentElement}}),scrollContainer:r.ComponentOptions.buildSelectorOption({defaultFunction:function(){return document.body}}),enableMoreLess:r.ComponentOptions.buildBooleanOption({defaultValue:!0}),pageSize:r.ComponentOptions.buildNumberOption({defaultValue:10,min:1,depend:"enableMoreLess"}),enableCollapse:r.ComponentOptions.buildBooleanOption({defaultValue:!0,depend:"enableSettings"}),allowedValues:r.ComponentOptions.buildListOption(),additionalFilter:r.ComponentOptions.buildQueryExpressionOption(),dependsOn:r.ComponentOptions.buildStringOption(),dependsOnCondition:r.ComponentOptions.buildCustomOption(function(){return null},{depend:"dependsOn",section:"CommonOptions"}),valueCaption:r.ComponentOptions.buildJsonOption()},ti.ResponsiveFacetOptions),t}(gt.Component);t.Facet=k;ni.Initialization.registerAutoCreateComponent(k);k.doExport()},function(n,t,i){"use strict";var l=this&&this.__extends||function(){var n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])};return function(t,i){function r(){this.constructor=t}n(t,i);t.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),a=this&&this.__assign||Object.assign||function(n){for(var t,r,i=1,u=arguments.length;i<u;i++){t=arguments[i];for(r in t)Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n};Object.defineProperty(t,"__esModule",{value:!0});var v=i(7),r=i(8),y=i(28),p=i(10),w=i(29),b=i(68),k=i(24),f=i(180),d=i(2),g=i(21),s=i(5),e=i(4),nt=i(31),u=i(1),tt=i(119),h=i(22),o=i(0),it=i(3);i(534);var rt=i(15),ut=i(474),c=function(n){function t(i,f,e,h,c){var l=n.call(this,i,t.ID,e)||this;l.element=i;l.options=f;l.bindings=e;l.result=h;l.os=c;l.logAnalytics=o.debounce(function(){l.queryController.saveLastQuery();var n=u.$$(l.element).getAttribute("href");void 0!=n&&""!=n||(n=l.escapedClickUri);l.options.logAnalytics?l.options.logAnalytics(n):l.logDocumentOpen(n);nt.Defer.flush()},1500,!0);var v=l.searchInterface.options.originalOptionsObject[t.ID]||{},p=r.ComponentOptions.initComponentOptions(i,t,a({},v,f)),w=l.componentOptionsModel.get(y.ComponentOptionsModel.attributesEnum.resultLink);return l.options=o.extend({},p,w),l.result=h||l.resolveResult(),null==l.options.openQuickview&&(l.options.openQuickview="ExchangeCrawler"==h.raw.connectortype&&k.DeviceUtils.isMobileDevice()),l.element.hasAttribute("tabindex")||l.element.setAttribute("tabindex","0"),s.Assert.exists(l.componentOptionsModel),s.Assert.exists(l.result),l.quickviewShouldBeOpened()||ut.bindAnalyticsToLink(i,function(){return l.logAnalytics()}),l.renderUri(i,h),l.bindEventToOpen(),l}return l(t,n),t.prototype.renderUri=function(){var t,n;/^\s*$/.test(this.element.innerHTML)&&(t=this.getDisplayedTitle(),this.element.innerHTML=t,n=this.getDisplayedTitleAsText(),this.element.hasAttribute("aria-label")||this.element.setAttribute("aria-label",n),this.element.title||(this.element.title=n))},t.prototype.openLink=function(n){void 0===n&&(n=!0);n&&this.logAnalytics();window.location.href=this.getResultUri()},t.prototype.openLinkInNewWindow=function(n){void 0===n&&(n=!0);n&&this.logAnalytics();window.open(this.getResultUri(),"_blank")},t.prototype.openLinkInOutlook=function(n){void 0===n&&(n=!0);this.hasOutlookField()&&(n&&this.logAnalytics(),this.openLink())},t.prototype.openLinkAsConfigured=function(n){void 0===n&&(n=!0);this.toExecuteOnOpen&&(n&&this.logAnalytics(),this.toExecuteOnOpen())},t.prototype.bindEventToOpen=function(){return this.bindOnClickIfNotUndefined()||this.bindOpenQuickviewIfNotUndefined()||this.setHrefIfNotAlready()||this.openLinkThatIsNotAnAnchor()},t.prototype.getDisplayedTitle=function(){if(this.options.titleTemplate){var n=h.StringUtils.buildStringTemplateFromResult(this.options.titleTemplate,this.result);return n?tt.StreamHighlightUtils.highlightStreamText(n,this.result.termsToHighlight,this.result.phrasesToHighlight):this.escapedClickUri}return this.result.title?b.HighlightUtils.highlightString(this.result.title,this.result.titleHighlights,null,"coveo-highlight"):this.escapedClickUri},t.prototype.getDisplayedTitleAsText=function(){var n=u.$$("div");return n.setHtml(this.getDisplayedTitle()),n.text()},Object.defineProperty(t.prototype,"escapedClickUri",{get:function(){return o.escape(this.result.clickUri)},enumerable:!0,configurable:!0}),t.prototype.bindOnClickIfNotUndefined=function(){var n=this;return void 0!=this.options.onClick&&(this.toExecuteOnOpen=function(t){n.options.onClick.call(n,t,n.result)},(new rt.AccessibleButton).withElement(this.element).withLabel(this.result.title).withSelectAction(function(t){return n.toExecuteOnOpen(t)}).build(),!0)},t.prototype.bindOpenQuickviewIfNotUndefined=function(){var n=this;return!!this.quickviewShouldBeOpened()&&(this.toExecuteOnOpen=function(){u.$$(n.bindings.resultElement).trigger(w.ResultListEvents.openQuickview)},u.$$(this.element).on("click",function(t){t.preventDefault();n.toExecuteOnOpen()}),!0)},t.prototype.openLinkThatIsNotAnAnchor=function(){var n=this;return!this.elementIsAnAnchor()&&(this.toExecuteOnOpen=function(){n.options.alwaysOpenInNewWindow?n.options.openInOutlook?n.openLinkInOutlook():n.openLinkInNewWindow():n.openLink()},u.$$(this.element).on("click",function(){n.toExecuteOnOpen()}),!0)},t.prototype.setHrefIfNotAlready=function(){return!(!this.elementIsAnAnchor()||e.Utils.isNonEmptyString(u.$$(this.element).getAttribute("href")))&&(u.$$(this.element).setAttribute("href",this.getResultUri()),!this.options.alwaysOpenInNewWindow||this.options.openInOutlook&&this.hasOutlookField()||u.$$(this.element).setAttribute("target","_blank"),!0)},t.prototype.logDocumentOpen=function(n){this.usageAnalytics.logClickEvent(p.analyticsActionCauseList.documentOpen,{documentURL:n,documentTitle:this.result.title,author:e.Utils.getFieldValue(this.result,"author")},this.result,this.root)},t.prototype.filterProtocol=function(n){var t=/^(https?|ftp|file|mailto|tel|sip):/i.test(n),i=/^(\/|\.\/|\.\.\/)/.test(n);return t||i?n:""},t.prototype.getResultUri=function(){if(this.options.hrefTemplate){var n=h.StringUtils.buildStringTemplateFromResult(this.options.hrefTemplate,this.result);return this.filterProtocol(n)}return void 0==this.options.field&&this.options.openInOutlook&&this.setField(),void 0!=this.options.field?this.filterProtocol(e.Utils.getFieldValue(this.result,this.options.field)):this.filterProtocol(this.result.clickUri)},t.prototype.elementIsAnAnchor=function(){return"A"==this.element.tagName},t.prototype.setField=function(){var n=e.Utils.exists(this.os)?this.os:f.OSUtils.get();n==f.OS_NAME.MACOSX&&this.hasOutlookField()?this.options.field="@outlookformacuri":n==f.OS_NAME.WINDOWS&&this.hasOutlookField()&&(this.options.field="@outlookuri")},t.prototype.hasOutlookField=function(){var n=e.Utils.exists(this.os)?this.os:f.OSUtils.get();return n==f.OS_NAME.MACOSX&&void 0!=this.result.raw.outlookformacuri||n==f.OS_NAME.WINDOWS&&void 0!=this.result.raw.outlookuri},t.prototype.isUriThatMustBeOpenedInQuickview=function(){return 0==this.escapedClickUri.toLowerCase().indexOf("ldap://")},t.prototype.quickviewShouldBeOpened=function(){return(this.options.openQuickview||this.isUriThatMustBeOpenedInQuickview())&&g.QueryUtils.hasHTMLVersion(this.result)},t.ID="ResultLink",t.doExport=function(){it.exportGlobally({ResultLink:t})},t.options={field:r.ComponentOptions.buildFieldOption(),openInOutlook:r.ComponentOptions.buildBooleanOption({defaultValue:!1}),openQuickview:r.ComponentOptions.buildBooleanOption({defaultValue:!1}),alwaysOpenInNewWindow:r.ComponentOptions.buildBooleanOption({defaultValue:!1}),hrefTemplate:r.ComponentOptions.buildStringOption(),titleTemplate:r.ComponentOptions.buildStringOption(),onClick:r.ComponentOptions.buildCustomOption(function(){return null}),logAnalytics:r.ComponentOptions.buildCustomOption(function(){return null})},t}(v.Component);t.ResultLink=c;d.Initialization.registerAutoCreateComponent(c)},function(n,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});!function(n){n.idle="idle";n.selected="selected"}(t.FacetValueState||(t.FacetValueState={}))},function(n,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=i(5),u=function(){function n(n,t){void 0===t&&(t=!0);this.milliseconds=t?n:1e3*n}return n.prototype.getMilliseconds=function(){return this.milliseconds},n.prototype.getSeconds=function(){return this.getMilliseconds()/1e3},n.prototype.getMinutes=function(){return this.getSeconds()/60},n.prototype.getHours=function(){return this.getMinutes()/60},n.prototype.getDays=function(){return this.getHours()/24},n.prototype.getWeeks=function(){return this.getDays()/7},n.prototype.getHHMMSS=function(){var t,u,f,n=Math.floor(this.getHours()),i=Math.floor(this.getMinutes())%60,r=Math.floor(this.getSeconds())%60;return t=0==n?"":n<10?"0"+n.toString():n.toString(),u=i<10?"0"+i.toString():i.toString(),f=r<10?"0"+r.toString():r.toString(),(""!=t?t+":":"")+u+":"+f},n.fromDates=function(t,i){return r.Assert.exists(t),r.Assert.exists(i),new n(i.valueOf()-t.valueOf())},n}();t.TimeSpan=u},function(n,t,i){"use strict";var o,s,h,c,l,r,a,v,y,u,p,f,w,e,b,k,d,g,nt,tt,it;Object.defineProperty(t,"__esModule",{value:!0});o=i(143);t.ColorUtils=o.ColorUtils;s=i(91);t.Cookie=s.ScopedCookie;h=i(134);t.CurrencyUtils=h.CurrencyUtils;c=i(33);t.DateUtils=c.DateUtils;l=i(24);t.DeviceUtils=l.DeviceUtils;r=i(1);t.Dom=r.Dom;t.$$=r.$$;a=i(96);t.DomUtils=a.DomUtils;v=i(177);t.EmailUtils=v.EmailUtils;y=i(42);t.HashUtils=y.HashUtils;u=i(68);t.HighlightUtils=u.HighlightUtils;t.StringAndHoles=u.StringAndHoles;p=i(178);t.HTMLUtils=p.HTMLUtils;f=i(25);t.KEYBOARD=f.KEYBOARD;t.KeyboardUtils=f.KeyboardUtils;w=i(41);t.LocalStorageUtils=w.LocalStorageUtils;e=i(180);t.OSUtils=e.OSUtils;t.OS_NAME=e.OS_NAME;b=i(197);t.PopupUtils=b.PopupUtils;k=i(21);t.QueryUtils=k.QueryUtils;d=i(119);t.StreamHighlightUtils=d.StreamHighlightUtils;g=i(22);t.StringUtils=g.StringUtils;nt=i(72);t.TimeSpan=nt.TimeSpan;tt=i(4);t.Utils=tt.Utils;it=i(43);t.UrlUtils=it.UrlUtils},function(n,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=i(5),f=i(21),u=i(0),e=function(){function n(){this.parts=[];this.wrapParts=!0}return n.prototype.add=function(n){r.Assert.isNonEmptyString(n);this.parts.push(n)},n.prototype.fromExpressionBuilder=function(n){this.parts=this.parts.concat(n.parts)},n.prototype.addFieldExpression=function(n,t,i,u){void 0===u&&(u=!1);r.Assert.isNonEmptyString(n);r.Assert.stringStartsWith(n,"@");r.Assert.isNonEmptyString(t);r.Assert.isLargerOrEqualsThan(1,i.length);this.add(f.QueryUtils.buildFieldExpression(n,t,i,u))},n.prototype.addFieldNotEqualExpression=function(n,t,i){void 0===i&&(i=!1);r.Assert.isNonEmptyString(n);r.Assert.stringStartsWith(n,"@");r.Assert.isLargerOrEqualsThan(1,t.length);this.add(f.QueryUtils.buildFieldNotEqualExpression(n,t,i=!1))},n.prototype.remove=function(n){r.Assert.isNonEmptyString(n);-1!=u.indexOf(this.parts,n)&&this.parts.splice(u.indexOf(this.parts,n),1)},n.prototype.isEmpty=function(){return 0==this.parts.length},n.prototype.build=function(n){return void 0===n&&(n=" "),0==this.parts.length?void 0:1==this.parts.length?this.parts[0]:this.wrapParts?"("+this.parts.join(")"+n+"(")+")":this.parts.join(n)},n.prototype.getParts=function(){return this.parts},n.merge=function(){for(var i,r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];return i=new n,u.each(r,function(n){i.parts=i.parts.concat(n.parts)}),i},n.mergeUsingOr=function(){for(var i,r,e,f=[],t=0;t<arguments.length;t++)f[t]=arguments[t];return i=u.filter(f,function(n){return!n.isEmpty()}),r=new n,1==i.length?r.parts=[].concat(i[0].parts):i.length>1&&(e=u.map(i,function(n){return n.build()}),r.add("("+e.join(") OR (")+")")),r},n}();t.ExpressionBuilder=e},function(n){var t=function(){return this}();try{t=t||Function("return this")()||eval("this")}catch(n){"object"==typeof window&&(t=window)}n.exports=t},function(n,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function n(){}return n.getJQuery=function(){return!!(window&&window.Coveo&&window.Coveo.$)&&window.Coveo.$},n.isInstanceOfJQuery=function(n){var t=this.getJQuery();return!!t&&n instanceof t},n.isInstanceOfJqueryEvent=function(n){var t=this.getJQuery();return!!t&&n instanceof t.Event},n}();t.JQueryUtils=i},function(n,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var u=i(4),r=i(0),f=function(){function n(){}return n.prototype.merge=function(n){return r.extend({},this,n)},n.prototype.mergeDeep=function(n){return r.extend({},u.Utils.extendDeep(this,n))},n}();t.Options=f},function(n,t,i){"use strict";var f=this&&this.__extends||function(){var n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])};return function(t,i){function r(){this.constructor=t}n(t,i);t.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),r,u;Object.defineProperty(t,"__esModule",{value:!0});r=i(18);u=function(n){function t(i){return n.call(this,i,t.ID,{})||this}return f(t,n),t.prototype.registerComponent=function(n,t){void 0==this.attributes[n]?this.attributes[n]=[t]:this.attributes[n].push(t)},t.ID="ComponentState",t}(r.Model);t.ComponentStateModel=u},function(n,t,i){var r=i(109);n.exports=function(n){if(!r(n))throw TypeError(n+" is not an object!");return n}},function(n,t,i){n.exports=!i(110)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(n){var t={}.hasOwnProperty;n.exports=function(n,i){return t.call(n,i)}},function(n){n.exports=function(n){if(void 0==n)throw TypeError("Can't call method on  "+n);return n}},function(n){n.exports={}},function(n,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=i(8);t.ResponsiveFacetOptions={enableResponsiveMode:r.ComponentOptions.buildBooleanOption({defaultValue:!0,section:"ResponsiveOptions"}),responsiveBreakpoint:r.ComponentOptions.buildNumberOption({deprecated:"This option is exposed for legacy reasons. It is not recommended to use this option. Instead, use `SearchInterface.options.responsiveMediumBreakpoint` options exposed on the `SearchInterface`."}),dropdownHeaderLabel:r.ComponentOptions.buildLocalizedStringOption({section:"ResponsiveOptions"})}},function(n,t,i){"use strict";var e=this&&this.__extends||function(){var n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])};return function(t,i){function r(){this.constructor=t}n(t,i);t.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var o=i(7),r=i(8),s=i(3),u=i(20),h=i(2),f=function(n){function t(i,u,f){var e=n.call(this,i,t.ID,f)||this,o;return(e.element=i,e.options=r.ComponentOptions.initComponentOptions(i,t,u),e.options.preventScrolling)&&(o=e.options.scrollContainer||e.searchInterface.element,e.options.scrollContainer=r.ComponentOptions.findParentScrollLockable(o)),e}return e(t,n),t.ID="FacetsMobileMode",t.options={breakpoint:r.ComponentOptions.buildNumberOption(),isModal:r.ComponentOptions.buildBooleanOption({defaultValue:!0}),displayOverlayWhileOpen:r.ComponentOptions.buildBooleanOption({postProcessing:function(n,t){return u.Utils.isNullOrUndefined(n)?!t.isModal:n}}),preventScrolling:r.ComponentOptions.buildBooleanOption({postProcessing:function(n,t){return u.Utils.isNullOrUndefined(n)?t.isModal:n}}),scrollContainer:r.ComponentOptions.buildChildHtmlElementOption({depend:"preventScrolling"})},t.doExport=function(){s.exportGlobally({FacetsMobileMode:t})},t}(o.Component);t.FacetsMobileMode=f;h.Initialization.registerAutoCreateComponent(f)},function(n,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function n(){}return n.searchAlertsCreated="searchAlertsCreated",n.searchAlertsDeleted="searchAlertsDeleted",n.searchAlertsFail="searchAlertsFail",n.searchAlertsPopulateMessage="searchAlertsPopulateMessage",n}();t.SearchAlertsEvents=i},function(n,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function n(){}return n.buildingAdvancedSearch="buildingAdvancedSearch",n.executeAdvancedSearch="executeAdvancedSearch",n}();t.AdvancedSearchEvents=i},function(n,t,i){"use strict";function f(){var n=u();return n.store=r.getAvailableStorage(),n}function e(){var n=u();return n.store=new r.NullStorage,n}function u(){var n=new r.CookieStorage;return new o.history.HistoryStore(n)}Object.defineProperty(t,"__esModule",{value:!0});var o=i(309),r=i(104);t.buildHistoryStore=f;t.buildNullHistoryStore=e},function(n,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var e=i(1),o=i(33),s=i(3),r=i(6),f=i(5),u=i(23),h=i(456),c=function(){function n(n){void 0===n&&(n=function(){});this.onChange=n;this.wasReset=!0;f.Assert.exists(n);this.buildContent()}return n.prototype.reset=function(){this.picker.setDate(void 0);this.wasReset=!0;this.onChange(this)},n.prototype.getElement=function(){return this.element},n.prototype.getValue=function(){return this.wasReset?"":this.picker.getDate()?o.DateUtils.dateForQuery(this.picker.getDate()):""},n.prototype.getDateValue=function(){return this.wasReset?null:this.picker.getDate()},n.prototype.setValue=function(n){f.Assert.exists(n);this.picker.setDate(n);this.wasReset=!1},n.prototype.build=function(){return this.element},n.prototype.buildContent=function(){var n=this;this.element=e.$$("input",{className:"coveo-button","aria-label":r.l("Date")}).el;this.element.readOnly=!0;this.picker=new h({field:this.element,onSelect:function(){n.wasReset=!1;n.onChange.call(n,n)},i18n:{previousMonth:r.l("PreviousMonth"),nextMonth:r.l("NextMonth"),months:u.culture().calendar.months.names,weekdays:u.culture().calendar.days.names,weekdaysShort:u.culture().calendar.days.namesAbbr}})},n.doExport=function(){s.exportGlobally({DatePicker:n})},n}();t.DatePicker=c},function(n,t,i){"use strict";var o;Object.defineProperty(t,"__esModule",{value:!0});var r,s=i(9),e=i(5),h=i(72),c=i(24),f=i(4),l=i(76),u=i(0),a=i(43);!function(n){n[n.OPENED=XMLHttpRequest.OPENED||1]="OPENED";n[n.HEADERS_RECEIVED=XMLHttpRequest.HEADERS_RECEIVED||2]="HEADERS_RECEIVED";n[n.DONE=XMLHttpRequest.DONE||4]="DONE"}(r||(r={}));o=function(){function n(n){void 0===n&&(n={});this.options=n;this.useJsonp=!1;this.logger=new s.Logger(this)}return n.convertJsonToQueryString=function(n){return e.Assert.exists(n),u.chain(n).map(function(n,t){if(null!=n){var i=u.isObject(n)?JSON.stringify(n):n.toString();return t+"="+f.Utils.safeEncodeURIComponent(i)}return null}).compact().value()},n.convertJsonToFormBody=function(n){return this.convertJsonToQueryString(n).join("&")},n.prototype.call=function(n){var t={url:n.url,queryString:n.errorsAsSuccess?n.queryString.concat(["errorsAsSuccess=1"]):n.queryString,requestData:n.requestData,requestDataType:n.requestDataType||"application/x-www-form-urlencoded; charset=UTF-8",begun:new Date,method:n.method};t.headers=this.buildRequestHeaders(t);u.isFunction(this.options.requestModifier)&&(t=this.options.requestModifier(t));this.logger.trace("Performing REST request",t);var i=this.parseURL(t.url),r=window.location.hostname===i.hostname||""===i.hostname,f=""!=window.location.port?window.location.port:"https:"==window.location.protocol?"443":"80",e=f==i.port,o=!(r&&e);return this.useJsonp?this.callUsingAjaxJsonP(t):this.isCORSSupported()||!o?this.callUsingXMLHttpRequest(t,n.responseType):this.isXDomainRequestSupported()?this.callUsingXDomainRequest(t):this.callUsingAjaxJsonP(t)},n.prototype.callUsingXMLHttpRequest=function(t,i){var f=this;return void 0===i&&(i="text"),new Promise(function(e,o){var s=f.getXmlHttpRequest(),l=!1,h;s.onreadystatechange=function(){var a,v,h;if(s.readyState!=r.OPENED||l){if(s.readyState==r.HEADERS_RECEIVED)a=s.status,s.responseType=f.isSuccessHttpStatus(a)?i:"text";else if(s.readyState==r.DONE){v=s.status;h=void 0;switch(i){case"json":if(h=s.response,"json"==i&&"IE"==c.DeviceUtils.getDeviceName())try{h=JSON.parse(h)}catch(n){}break;case"text":h=f.tryParseResponseText(s.responseText,s.getResponseHeader("Content-Type"));break;default:h=s.response}void 0==h&&(h=f.tryParseResponseText(s.responseText,s.getResponseHeader("Content-Type")));f.isSuccessHttpStatus(v)?f.handleSuccessfulResponseThatMightBeAnError(t,h,e,o):f.handleError(t,s.status,h,o)}}else l=!0,s.withCredentials=!f.options.anonymous,u.each(t.headers,function(n,t){s.setRequestHeader(t,n)}),"GET"==t.method?s.send():0===t.requestDataType.indexOf("application/json")?s.send(JSON.stringify(t.requestData)):s.send(n.convertJsonToFormBody(t.requestData))};h=t.queryString;"GET"==t.method&&(h=h.concat(n.convertJsonToQueryString(t.requestData)));s.open(t.method,f.combineUrlAndQueryString(t.url,h))})},n.prototype.callUsingXDomainRequest=function(t){var i=this;return new Promise(function(r,e){var s=t.queryString.concat([]),o;i.options.accessToken&&s.push("access_token="+f.Utils.safeEncodeURIComponent(i.options.accessToken));o=new XDomainRequest;"GET"==t.method&&(s=s.concat(n.convertJsonToQueryString(t.requestData)));o.open(t.method,i.combineUrlAndQueryString(t.url,s));o.onload=function(){var n=i.tryParseResponseText(o.responseText,o.contentType);i.handleSuccessfulResponseThatMightBeAnError(t,n,r,e)};o.onerror=function(){var n=i.tryParseResponseText(o.responseText,o.contentType);i.handleError(t,0,n,e)};o.ontimeout=function(){return i.logger.error("Request timeout",o,t.requestData)};o.onprogress=function(){return i.logger.trace("Request progress",o,t.requestData)};u.defer(function(){"GET"==t.method?o.send():o.send(n.convertJsonToFormBody(t.requestData))})})},n.prototype.callUsingAjaxJsonP=function(t){var i=this,r=l.JQueryUtils.getJQuery();return e.Assert.check(r,"Using jsonp without having included jQuery is not supported."),new Promise(function(u,e){var o=t.queryString.concat(n.convertJsonToQueryString(t.requestData));i.options.accessToken&&o.push("access_token="+f.Utils.safeEncodeURIComponent(i.options.accessToken));o.push("callback=?");r.ajax({url:i.combineUrlAndQueryString(t.url,o),dataType:"jsonp",success:function(n){return i.handleSuccessfulResponseThatMightBeAnError(t,n,u,e)},timeout:n.JSONP_ERROR_TIMEOUT,error:function(){return i.handleError(t,0,void 0,e)}})})},n.prototype.parseURL=function(n){var t=document.createElement("a");return t.href=n,t},n.prototype.getXmlHttpRequest=function(){return new(this.options.xmlHttpRequest||XMLHttpRequest)},n.prototype.handleSuccessfulResponseThatMightBeAnError=function(n,t,i,r){this.isErrorResponseBody(t)?this.handleError(n,t.statusCode,t,r):this.handleSuccess(n,t,i)},n.prototype.handleSuccess=function(n,t,i){var r={duration:h.TimeSpan.fromDates(n.begun,new Date).getMilliseconds(),data:t};this.logger.trace("REST request successful",t,n);i(r)},n.prototype.handleError=function(n,t,i,r){var u={statusCode:t,data:i};this.logger.error("REST request failed",t,i,n);r(u)},n.prototype.combineUrlAndQueryString=function(n,t){return a.UrlUtils.normalizeAsString({paths:[n],queryAsString:t})},n.prototype.isXDomainRequestSupported=function(){return"XDomainRequest"in window},n.prototype.isCORSSupported=function(){return"withCredentials"in this.getXmlHttpRequest()},n.prototype.isSuccessHttpStatus=function(n){return n>=200&&n<300||304===n},n.prototype.tryParseResponseText=function(n,t){if(null==t||-1==t.indexOf("application/json"))return n;if(f.Utils.isNonEmptyString(n))try{return JSON.parse(n)}catch(n){return}},n.prototype.isErrorResponseBody=function(n){return!(!n||!n.statusCode)&&!this.isSuccessHttpStatus(n.statusCode)},n.prototype.buildRequestHeaders=function(n){var t={};return this.options.accessToken?t.Authorization="Bearer "+this.options.accessToken:this.options.username&&this.options.password&&(t.Authorization="Basic "+btoa(this.options.username+":"+this.options.password)),"GET"==n.method?t:(t["Content-Type"]=0===n.requestDataType.indexOf("application/json")?"application/json; charset=UTF-8":"application/x-www-form-urlencoded; charset=UTF-8",t)},n.JSONP_ERROR_TIMEOUT=1e4,n}();t.EndpointCaller=o},function(n,t){"use strict";function u(n,t,i,r){document.cookie=n+"="+t+(i?";expires="+i.toUTCString():"")+(r?";domain="+r:"")+";SameSite=Lax"}var i,r,f;Object.defineProperty(t,"__esModule",{value:!0});i=function(){function n(){}return n.getHostname=function(){return location.hostname},n}();t.CookieContext=i;r=function(){function n(){}return n.set=function(n,t,r){var o,f,e;r&&(f=new Date,f.setTime(f.getTime()+r));-1===i.getHostname().indexOf(".")?u(n,t,f):(e=i.getHostname().split("."),o=e[e.length-2]+"."+e[e.length-1],u(n,t,f,o))},n.get=function(n){for(var t,r=n+"=",u=document.cookie.split(";"),i=0;i<u.length;i++)if(t=u[i],t=t.replace(/^\s+/,""),0===t.lastIndexOf(r,0))return t.substring(r.length,t.length);return null},n.erase=function(n){this.set(n,"",-1)},n}();f=function(){function n(){}return n.set=function(n,t,i){r.set(this.getRealCookieName(n),t,i)},n.get=function(n){return r.get(this.getRealCookieName(n))},n.erase=function(n){return r.erase(this.getRealCookieName(n))},n.getRealCookieName=function(n){return""+this.prefix+n},n.prefix="coveo_",n}();t.ScopedCookie=f},function(n,t,i){"use strict";var d=this&&this.__extends||function(){var n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])};return function(t,i){function r(){this.constructor=t}n(t,i);t.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),s=this&&this.__awaiter||function(n,t,i,r){return new(i||(i=Promise))(function(u,f){function o(n){try{e(r.next(n))}catch(n){f(n)}}function s(n){try{e(r.throw(n))}catch(n){f(n)}}function e(n){n.done?u(n.value):new i(function(t){t(n.value)}).then(o,s)}e((r=r.apply(n,t||[])).next())})},h=this&&this.__generator||function(n,t){function f(n){return function(t){return s([n,t])}}function s(f){if(e)throw new TypeError("Generator is already executing.");for(;r;)try{if(e=1,u&&(i=u[2&f[0]?"return":f[0]?"throw":"next"])&&!(i=i.call(u,f[1])).done)return i;switch(u=0,i&&(f=[0,i.value]),f[0]){case 0:case 1:i=f;break;case 4:return r.label++,{value:f[1],done:!1};case 5:r.label++;u=f[1];f=[0];continue;case 7:f=r.ops.pop();r.trys.pop();continue;default:if(i=r.trys,!(i=i.length>0&&i[i.length-1])&&(6===f[0]||2===f[0])){r=0;continue}if(3===f[0]&&(!i||f[1]>i[0]&&f[1]<i[3])){r.label=f[1];break}if(6===f[0]&&r.label<i[1]){r.label=i[1];i=f;break}if(i&&r.label<i[2]){r.label=i[2];r.ops.push(f);break}i[2]&&r.ops.pop();r.trys.pop();continue}f=t.call(n,r)}catch(n){f=[6,n];u=0}finally{e=i=0}if(5&f[0])throw f[1];return{value:f[0]?f[1]:void 0,done:!0}}var e,u,i,o,r={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:f(0),"throw":f(1),"return":f(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o},a;Object.defineProperty(t,"__esModule",{value:!0});i(527);i(528);i(529);var u=i(0),o=i(11),g=i(133),c=i(29),nt=i(3),e=i(5),v=i(31),tt=i(18),it=i(13),rt=i(24),r=i(1),l=i(96),ut=i(4),ft=i(10),y=i(7),f=i(8),p=i(2),et=i(176),ot=i(62),st=i(530),ht=i(473),ct=i(471),w=i(122),lt=i(469),b=i(67),k=i(95),at=i(531),vt=i(532),yt=i(214),pt=i(533),wt=i(117),bt=i(472);ht.CoreHelpers.exportAllHelpersGlobally(window.Coveo);a=function(n){function t(i,u,o,s){void 0===s&&(s=t.ID);var h=n.call(this,i,s,o)||this;return h.element=i,h.options=u,h.bindings=o,h.currentlyDisplayedResults=[],h.reachedTheEndOfResults=!1,h.disableLayoutChange=!1,h.successiveScrollCount=0,h.options=f.ComponentOptions.initComponentOptions(i,t,u),e.Assert.exists(i),e.Assert.exists(h.options),e.Assert.exists(h.options.resultTemplate),e.Assert.exists(h.options.infiniteScrollContainer),h.showOrHideElementsDependingOnState(!1,!1),h.addListeners(),h.resultContainer=h.initResultContainer(),e.Assert.exists(h.options.resultsContainer),h.initWaitAnimationContainer(),e.Assert.exists(h.options.waitAnimationContainer),h.setupTemplatesVersusLayouts(),r.$$(h.root).on(g.ResultLayoutEvents.populateResultLayout,function(n,t){return t.layouts.push(h.options.layout)}),h.setupRenderer(),h.makeElementFocusable(),h.ensureHasId(),h}return d(t,n),t.getDefaultTemplate=function(n){var i=t.loadTemplatesFromCache(),r;return null!=i?i:(r=y.Component.get(n),Coveo.Recommendation&&r.searchInterface instanceof Coveo.Recommendation?new ct.DefaultRecommendationTemplate:new w.DefaultResultTemplate)},t.loadTemplatesFromCache=function(){var n=b.TemplateCache.getResultListTemplateNames();return n.length>0?new k.TemplateList(u.compact(u.map(n,function(n){return b.TemplateCache.getTemplate(n)}))):null},t.prototype.addListeners=function(){var n=this;this.bind.onRootElement(o.QueryEvents.newQuery,function(){return n.handleNewQuery()});this.bind.onRootElement(o.QueryEvents.buildingQuery,function(t){return n.handleBuildingQuery(t)});this.bind.onRootElement(o.QueryEvents.querySuccess,function(t){return n.handleQuerySuccess(t)});this.bind.onRootElement(o.QueryEvents.fetchMoreSuccess,function(t){return n.handleFetchMoreSuccess(t)});this.bind.onRootElement(o.QueryEvents.duringQuery,function(){return n.handleDuringQuery()});this.bind.onRootElement(o.QueryEvents.queryError,function(){return n.handleQueryError()});r.$$(this.root).on(c.ResultListEvents.changeLayout,function(t,i){return n.handleChangeLayout(i)});this.options.enableInfiniteScroll?this.addInfiniteScrollListeners():this.addPagerListeners()},t.prototype.addInfiniteScrollListeners=function(){var n=this;this.bind.on(this.options.infiniteScrollContainer,"scroll",function(){n.successiveScrollCount=0;n.handleScrollOfResultList()});this.bind.onRootElement(o.QueryEvents.deferredQuerySuccess,function(){setTimeout(function(){n.scrollToTopIfEnabled()},0)})},t.prototype.addPagerListeners=function(){var n=this;this.bind.onQueryState(tt.MODEL_EVENTS.CHANGE_ONE,it.QUERY_STATE_ATTRIBUTES.FIRST,function(){n.bind.oneRootElement(o.QueryEvents.deferredQuerySuccess,function(){setTimeout(function(){n.scrollToTopIfEnabled()},0)})})},t.prototype.getAutoSelectedFieldsToInclude=function(){return u.chain(this.options.resultTemplate.getFields()).concat(this.getMinimalFieldsToInclude()).compact().unique().value()},t.prototype.setupTemplatesVersusLayouts=function(){var n=this,t="coveo-"+this.options.layout+"-layout-container";this.resultContainer.addClass(t);"table"===this.options.layout&&(this.options.resultTemplate=new lt.TableTemplate(this.options.resultTemplate.templates||[]));this.options.resultTemplate instanceof k.TemplateList?u.each(this.options.resultTemplate.templates,function(t){t.layout||(t.layout=n.options.layout)}):this.options.resultTemplate instanceof w.DefaultResultTemplate&&"list"==this.options.layout&&st.ResponsiveDefaultResultTemplate.init(this.root,this,{})},t.prototype.renderResults=function(n,t){var i=this;return void 0===t&&(t=!1),t||this.resultContainer.empty(),this.renderer.renderResults(n,t,this.triggerNewResultDisplayed.bind(this)).then(function(){return i.triggerNewResultsDisplayed()})},t.prototype.buildResults=function(n){var t=this.options.layout;return this.templateToHtml.buildResults(n,t,this.currentlyDisplayedResults)},t.prototype.buildResult=function(n){var t=this.options.layout;return this.templateToHtml.buildResult(n,t,this.currentlyDisplayedResults)},t.prototype.displayMoreResults=function(n){return e.Assert.isLargerOrEqualsThan(1,n),this.isCurrentlyFetchingMoreResults()?void this.logger.warn("Ignoring request to display more results since we're already doing so"):this.hasPotentiallyMoreResultsToDisplay()?(this.options.enableInfiniteScrollWaitingAnimation&&this.showWaitingAnimationForInfiniteScrolling(),this.fetchAndRenderMoreResults(n)):void this.logger.warn("Ignoring request to display more results since we know there aren't more to display")},Object.defineProperty(t.prototype,"templateToHtml",{get:function(){var n={resultTemplate:this.options.resultTemplate,searchInterface:this.searchInterface,queryStateModel:this.queryStateModel};return new bt.TemplateToHtml(n)},enumerable:!0,configurable:!0}),t.prototype.getDisplayedResults=function(){return this.currentlyDisplayedResults},t.prototype.getDisplayedResultsElements=function(){return this.resultContainer.getResultElements()},t.prototype.enable=function(){this.disableLayoutChange=!1;this.resultLayoutSelectors.length>0?this.enableBasedOnActiveLayouts():(n.prototype.enable.call(this),r.$$(this.element).removeClass("coveo-hidden"))},t.prototype.disable=function(){var i=this,t;n.prototype.disable.call(this);t=u.map(this.otherResultLists,function(n){return n.options.layout});u.contains(t,this.options.layout)||this.disableLayoutChange||u.each(this.resultLayoutSelectors,function(n){n.disableLayouts([i.options.layout])});this.disableLayoutChange=!1;r.$$(this.element).addClass("coveo-hidden")},t.prototype.autoCreateComponentsInsideResult=function(n,t){return this.templateToHtml.autoCreateComponentsInsideResult(n,t)},t.prototype.triggerNewResultDisplayed=function(n,t){var i={result:n,item:t};r.$$(this.element).trigger(c.ResultListEvents.newResultDisplayed,i)},t.prototype.triggerNewResultsDisplayed=function(){var n={isInfiniteScrollEnabled:this.options.enableInfiniteScroll};r.$$(this.element).trigger(c.ResultListEvents.newResultsDisplayed,n)},t.prototype.fetchAndRenderMoreResults=function(n){return s(this,void 0,void 0,function(){var t,i;return h(this,function(r){switch(r.label){case 0:this.fetchingMoreResults=this.queryController.fetchMore(n);r.label=1;case 1:return r.trys.push([1,3,,4]),[4,this.fetchingMoreResults];case 2:return t=r.sent(),e.Assert.exists(t),this.usageAnalytics.logCustomEvent(ft.analyticsActionCauseList.pagerScrolling,{},this.element),this.renderNewResults(t),this.resetStateAfterFetchingMoreResults(),[2,t];case 3:return i=r.sent(),this.resetStateAfterFetchingMoreResults(),[2,Promise.reject(i)];case 4:return[2]}})})},t.prototype.renderNewResults=function(n){return s(this,void 0,void 0,function(){var t,i;return h(this,function(r){switch(r.label){case 0:return[4,this.buildResults(n)];case 1:return t=r.sent(),this.renderResults(t,!0),(i=this.currentlyDisplayedResults).push.apply(i,n.results),[2]}})})},t.prototype.resetStateAfterFetchingMoreResults=function(){var n=this;this.hideWaitingAnimationForInfiniteScrolling();this.fetchingMoreResults=void 0;v.Defer.defer(function(){n.successiveScrollCount++;n.successiveScrollCount<=t.MAX_AMOUNT_OF_SUCESSIVE_REQUESTS?n.handleScrollOfResultList():n.logger.info("Result list has triggered 5 consecutive queries to try and fill up the scrolling container, but it is still unable to do so.\n          Try explicitly setting the 'data-infinite-scroll-container-selector' option on the result list. See: https://coveo.github.io/search-ui/components/resultlist.html#options.infinitescrollcontainer")})},t.prototype.handleDuringQuery=function(){this.logger.trace("Emptying the result container");this.cancelFetchingMoreResultsIfNeeded();this.showWaitingAnimation();this.showOrHideElementsDependingOnState(!1,!1)},t.prototype.handleQueryError=function(){this.hideWaitingAnimation();this.resultContainer.empty();this.currentlyDisplayedResults=[];this.reachedTheEndOfResults=!0},t.prototype.handleQuerySuccess=function(n){var r=this,i;e.Assert.exists(n);e.Assert.exists(n.results);i=n.results;this.logger.trace("Received query results from new query",i);this.hideWaitingAnimation();t.resultCurrentlyBeingRendered=void 0;this.currentlyDisplayedResults=[];this.buildResults(n.results).then(function(t){return s(r,void 0,void 0,function(){return h(this,function(r){switch(r.label){case 0:return[4,this.renderResults(t)];case 1:return r.sent(),this.showOrHideElementsDependingOnState(!0,0!=this.currentlyDisplayedResults.length),rt.DeviceUtils.isMobileDevice()&&void 0!=this.options.mobileScrollContainer&&(this.options.mobileScrollContainer.scrollTop=0),this.options.enableInfiniteScroll&&i.results.length==n.queryBuilder.numberOfResults&&(this.scrollToTopIfEnabled(),this.handleScrollOfResultList()),[2]}})})});this.handleQueryOrFetchMoreSuccess(n.query,i)},t.prototype.handleFetchMoreSuccess=function(n){this.handleQueryOrFetchMoreSuccess(n.query,n.results)},t.prototype.handleQueryOrFetchMoreSuccess=function(n,t){var i=(n.firstResult||0)+t.results.length;this.reachedTheEndOfResults=i>=t.totalCountFiltered},t.prototype.handleScrollOfResultList=function(){!this.isCurrentlyFetchingMoreResults()&&this.options.enableInfiniteScroll&&this.isScrollingOfResultListAlmostAtTheBottom()&&this.hasPotentiallyMoreResultsToDisplay()&&this.displayMoreResults(this.options.infiniteScrollPageSize)},t.prototype.scrollToTopIfEnabled=function(){this.options.enableScrollToTop&&wt.ResultListUtils.scrollToTop(this.root)},t.prototype.handleNewQuery=function(){r.$$(this.element).removeClass("coveo-hidden");t.resultCurrentlyBeingRendered=void 0},Object.defineProperty(t.prototype,"otherResultLists",{get:function(){var n=this.searchInterface.getComponents(t.ID);return u.without(n,this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"resultLayoutSelectors",{get:function(){return this.searchInterface.getComponents("ResultLayoutSelector")},enumerable:!0,configurable:!0}),t.prototype.handleBuildingQuery=function(n){if(null!=this.options.fieldsToInclude&&n.queryBuilder.addFieldsToInclude(u.map(this.options.fieldsToInclude,function(n){return n.substr(1)})),this.options.autoSelectFieldsToInclude){var t=u.flatten(u.map(this.otherResultLists,function(n){return n.getAutoSelectedFieldsToInclude()}));n.queryBuilder.addRequiredFields(u.unique(t.concat(this.getAutoSelectedFieldsToInclude())));n.queryBuilder.includeRequiredFields=!0}},t.prototype.handleChangeLayout=function(n){var t=this;n.layout===this.options.layout?(this.disableLayoutChange=!1,this.enable(),this.options.resultTemplate.layout=this.options.layout,n.results&&(this.resultContainer.isEmpty()&&new et.InitializationPlaceholder(this.root).withVisibleRootElement().withPlaceholderForResultList(),v.Defer.defer(function(){return s(t,void 0,void 0,function(){var t;return h(this,function(i){switch(i.label){case 0:return[4,this.buildResults(n.results)];case 1:return t=i.sent(),this.renderResults(t),this.showOrHideElementsDependingOnState(!0,0!==this.currentlyDisplayedResults.length),[2]}})})}))):(this.disableLayoutChange=!0,this.disable(),this.resultContainer.empty())},t.prototype.isCurrentlyFetchingMoreResults=function(){return ut.Utils.exists(this.fetchingMoreResults)},t.prototype.getMinimalFieldsToInclude=function(){return["author","language","urihash","objecttype","collection","source","language","permanentid"]},t.prototype.isScrollingOfResultListAlmostAtTheBottom=function(){var n;try{n=this.options.infiniteScrollContainer instanceof Window}catch(t){n=!1}return n?this.isScrollAtBottomForWindowElement():this.isScrollAtBottomForHtmlElement()},t.prototype.isScrollAtBottomForWindowElement=function(){var n=new r.Win(window),t=n.height(),i=n.scrollY();return new r.Doc(document).height()-(t+i)<t/2},t.prototype.isScrollAtBottomForHtmlElement=function(){var n=this.options.infiniteScrollContainer,t=n.clientHeight;return n.scrollHeight-(n.scrollTop+t)<t/2},t.prototype.hasPotentiallyMoreResultsToDisplay=function(){return this.currentlyDisplayedResults.length>0&&!this.reachedTheEndOfResults},t.prototype.cancelFetchingMoreResultsIfNeeded=function(){this.isCurrentlyFetchingMoreResults()&&(this.logger.trace("Cancelling fetching more results"),Promise.reject(this.fetchingMoreResults),this.fetchingMoreResults=void 0)},t.prototype.showOrHideElementsDependingOnState=function(n,t){var i=r.$$(this.element).findAll(".coveo-show-if-query"),f=r.$$(this.element).findAll(".coveo-show-if-no-query"),e=r.$$(this.element).findAll(".coveo-show-if-results"),o=r.$$(this.element).findAll(".coveo-show-if-no-results");u.each(i,function(t){r.$$(t).toggle(n)});u.each(f,function(t){r.$$(t).toggle(!n)});u.each(e,function(i){r.$$(i).toggle(n&&t)});u.each(o,function(i){r.$$(i).toggle(n&&!t)})},Object.defineProperty(t.prototype,"waitAnimation",{get:function(){return this.options.waitAnimation.toLowerCase()},enumerable:!0,configurable:!0}),t.prototype.showWaitingAnimation=function(){switch(this.waitAnimation){case"fade":r.$$(this.options.waitAnimationContainer).addClass("coveo-fade-out");break;case"spinner":this.resultContainer.hideChildren();void 0==r.$$(this.options.waitAnimationContainer).find(".coveo-wait-animation")&&this.options.waitAnimationContainer.appendChild(l.DomUtils.getBasicLoadingAnimation())}},t.prototype.hideWaitingAnimation=function(){switch(this.waitAnimation){case"fade":r.$$(this.options.waitAnimationContainer).removeClass("coveo-fade-out");break;case"spinner":var n=r.$$(this.options.waitAnimationContainer).find(".coveo-loading-spinner");n&&r.$$(n).detach()}},t.prototype.showWaitingAnimationForInfiniteScrolling=function(){var i=l.DomUtils.getLoadingSpinner(),t,n;"card"==this.options.layout&&this.options.enableInfiniteScroll?(t=r.$$(this.options.waitAnimationContainer).findAll(".coveo-loading-spinner-container"),u.each(t,function(n){return r.$$(n).remove()}),n=r.$$("div",{className:"coveo-loading-spinner-container"}),n.append(i),this.options.waitAnimationContainer.appendChild(n.el)):this.options.waitAnimationContainer.appendChild(l.DomUtils.getLoadingSpinner())},t.prototype.hideWaitingAnimationForInfiniteScrolling=function(){var n=r.$$(this.options.waitAnimationContainer).findAll(".coveo-loading-spinner"),t=r.$$(this.options.waitAnimationContainer).findAll(".coveo-loading-spinner-container");u.each(n,function(n){return r.$$(n).remove()});u.each(t,function(n){return r.$$(n).remove()})},t.prototype.initResultContainer=function(){if(!this.options.resultsContainer){var n="table"===this.options.layout?"table":"div";this.options.resultsContainer=r.$$(n,{className:"coveo-result-list-container"}).el;this.initResultContainerAddToDom()}return new at.ResultContainer(this.options.resultsContainer,this.searchInterface)},t.prototype.initResultContainerAddToDom=function(){this.element.appendChild(this.options.resultsContainer)},t.prototype.initWaitAnimationContainer=function(){this.options.waitAnimationContainer||(this.options.waitAnimationContainer=this.resultContainer.el)},t.prototype.setupRenderer=function(){var t={options:this.searchInterface.options.originalOptionsObject,bindings:this.bindings},n=function(n){return p.Initialization.automaticallyCreateComponentsInside(n,t)};switch(this.options.layout){case"card":this.renderer=new vt.ResultListCardRenderer(this.options,n);break;case"table":this.renderer=new pt.ResultListTableRenderer(this.options,n);break;case"list":default:this.renderer=new yt.ResultListRenderer(this.options,n)}},t.prototype.makeElementFocusable=function(){r.$$(this.element).setAttribute("tabindex","-1")},t.prototype.ensureHasId=function(){""===this.element.id&&(this.element.id=u.uniqueId("coveo-result-list"))},t.prototype.enableBasedOnActiveLayouts=function(){var t=this;u.each(this.resultLayoutSelectors,function(i){u.find(i.activeLayouts,function(n,i){return i==t.options.layout})&&(n.prototype.enable.call(t),i.enableLayouts([t.options.layout]),r.$$(t.element).removeClass("coveo-hidden"))})},t.ID="ResultList",t.doExport=function(){nt.exportGlobally({ResultList:t})},t.options={resultsContainer:f.ComponentOptions.buildChildHtmlElementOption({alias:"resultContainerSelector"}),resultTemplate:ot.TemplateComponentOptions.buildTemplateOption({defaultFunction:t.getDefaultTemplate}),waitAnimation:f.ComponentOptions.buildStringOption({defaultValue:"none"}),waitAnimationContainer:f.ComponentOptions.buildChildHtmlElementOption({postProcessing:function(n,t){return n||t.resultsContainer}}),enableInfiniteScroll:f.ComponentOptions.buildBooleanOption({defaultValue:!1}),infiniteScrollPageSize:f.ComponentOptions.buildNumberOption({defaultValue:10,min:1,depend:"enableInfiniteScroll"}),infiniteScrollContainer:f.ComponentOptions.buildChildHtmlElementOption({depend:"enableInfiniteScroll",defaultFunction:function(n){return f.ComponentOptions.findParentScrolling(n)}}),enableInfiniteScrollWaitingAnimation:f.ComponentOptions.buildBooleanOption({depend:"enableInfiniteScroll",defaultValue:!0}),mobileScrollContainer:f.ComponentOptions.buildSelectorOption({defaultFunction:function(){return document.querySelector(".coveo-results-column")}}),autoSelectFieldsToInclude:f.ComponentOptions.buildBooleanOption({defaultValue:!1}),fieldsToInclude:f.ComponentOptions.buildFieldsOption({includeInResults:!0}),layout:f.ComponentOptions.buildStringOption({defaultValue:"list",required:!0}),enableScrollToTop:f.ComponentOptions.buildBooleanOption({defaultValue:!0})},t.resultCurrentlyBeingRendered=null,t.MAX_AMOUNT_OF_SUCESSIVE_REQUESTS=5,t}(y.Component);t.ResultList=a;p.Initialization.registerAutoCreateComponent(a)},function(n,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var u=i(1),f=i(97),e=i(61),r=i(5),o=i(6),s=i(8),h=function(){function n(n,t,i,u,f){this.element=t;r.Assert.isString(n);r.Assert.exists(t);r.Assert.exists(i);r.Assert.isLargerOrEqualsThan(0,u);r.Assert.isLargerOrEqualsThan(0,f);r.Assert.isSmallerOrEqualsThan(1,f);this.cssClassName="coveo-"+n+"-dropdown-content";this.coveoRoot=i;this.widthRatio=f;this.minWidth=u}return n.isTargetInsideOpenedDropdown=function(t){r.Assert.exists(t);var i=t.parent(n.DEFAULT_CSS_CLASS_NAME);return!!i&&"none"!=i.style.display},n.prototype.positionDropdown=function(){this.setElementAttributes();this.createPopper()},n.prototype.hideDropdown=function(){this.popperReference&&(this.unbindPopperEvents(),this.popperReference.destroy());this.unsetElementAttributes()},n.prototype.cleanUp=function(){this.element.el.removeAttribute("style")},n.prototype.setElementAttributes=function(){this.element.show();this.element.addClass(this.cssClassName);this.element.addClass(n.DEFAULT_CSS_CLASS_NAME);this.element.setAttribute("role","group");this.element.setAttribute("aria-label",o.l("FiltersDropdown"));this.setElementWidth()},n.prototype.setElementWidth=function(){var n=this.widthRatio*this.coveoRoot.width();n<=this.minWidth&&(n=this.minWidth);this.element.el.style.width=n.toString()+"px"},n.prototype.unsetElementAttributes=function(){this.element.hide();this.element.removeClass(this.cssClassName);this.element.removeClass(n.DEFAULT_CSS_CLASS_NAME);this.element.setAttribute("role",null);this.element.setAttribute("aria-label",null)},Object.defineProperty(n.prototype,"popperReferenceElement",{get:function(){return this.coveoRoot.find("."+e.ResponsiveComponentsManager.DROPDOWN_HEADER_WRAPPER_CSS_CLASS)},enumerable:!0,configurable:!0}),n.prototype.createPopper=function(){this.popperReference=new f.default(this.popperReferenceElement,this.element.el,{placement:"bottom-end",positionFixed:!0,modifiers:{preventOverflow:{boundariesElement:this.coveoRoot.el},computeStyle:{gpuAcceleration:!1}},eventsEnabled:!1});this.bindPopperEvents()},Object.defineProperty(n.prototype,"scrollableParent",{get:function(){return s.ComponentOptions.findParentScrolling(this.popperReferenceElement)},enumerable:!0,configurable:!0}),n.prototype.bindPopperEvents=function(){var n=this;u.$$(this.scrollableParent).on(["scroll","resize"],function(){n.popperReference.update()})},n.prototype.unbindPopperEvents=function(){var n=this;u.$$(this.scrollableParent).off(["scroll","resize"],function(){n.popperReference.update()})},n.DEFAULT_CSS_CLASS_NAME="coveo-dropdown-content",n}();t.ResponsiveDropdownContent=h},function(n,t,i){"use strict";var k=this&&this.__extends||function(){var n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])};return function(t,i){function r(){this.constructor=t}n(t,i);t.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),d=this&&this.__assign||Object.assign||function(n){for(var t,r,i=1,u=arguments.length;i<u;i++){t=arguments[i];for(r in t)Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},a=this&&this.__awaiter||function(n,t,i,r){return new(i||(i=Promise))(function(u,f){function o(n){try{e(r.next(n))}catch(n){f(n)}}function s(n){try{e(r.throw(n))}catch(n){f(n)}}function e(n){n.done?u(n.value):new i(function(t){t(n.value)}).then(o,s)}e((r=r.apply(n,t||[])).next())})},v=this&&this.__generator||function(n,t){function f(n){return function(t){return s([n,t])}}function s(f){if(e)throw new TypeError("Generator is already executing.");for(;r;)try{if(e=1,u&&(i=u[2&f[0]?"return":f[0]?"throw":"next"])&&!(i=i.call(u,f[1])).done)return i;switch(u=0,i&&(f=[0,i.value]),f[0]){case 0:case 1:i=f;break;case 4:return r.label++,{value:f[1],done:!1};case 5:r.label++;u=f[1];f=[0];continue;case 7:f=r.ops.pop();r.trys.pop();continue;default:if(i=r.trys,!(i=i.length>0&&i[i.length-1])&&(6===f[0]||2===f[0])){r=0;continue}if(3===f[0]&&(!i||f[1]>i[0]&&f[1]<i[3])){r.label=f[1];break}if(6===f[0]&&r.label<i[1]){r.label=i[1];i=f;break}if(i&&r.label<i[2]){r.label=i[2];r.ops.push(f);break}i[2]&&r.ops.pop();r.trys.pop();continue}f=t.call(n,r)}catch(n){f=[6,n];u=0}finally{e=i=0}if(5&f[0])throw f[1];return{value:f[0]?f[1]:void 0,done:!0}}var e,u,i,o,r={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:f(0),"throw":f(1),"return":f(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o};Object.defineProperty(t,"__esModule",{value:!0});var g=i(7),s=i(6),r=i(8),u=i(1),nt=i(2),tt=i(3),it=i(547),rt=i(548),ut=i(550),y=i(16),p=i(12),ft=i(13);i(551);var et=i(18),o=i(4),f=i(0),ot=i(5),h=i(11),st=i(552),w=i(35),ht=i(554),e=i(10),b=i(555),ct=i(49),lt=i(174),at=i(84),vt=i(556),c=i(15),yt=i(173),pt=i(117),wt=i(557),l=function(n){function t(i,f,e){var o=n.call(this,i,"CategoryFacet",e)||this;return o.element=i,o.options=f,o.listenToQueryStateChange=!0,o.isFieldValueCompatible=!1,o.moreValuesToFetch=!0,o.showingWaitAnimation=!1,o.numberOfChildValuesCurrentlyDisplayed=0,o.options=r.ComponentOptions.initComponentOptions(i,t,f),o.categoryFacetQueryController=new ut.CategoryFacetQueryController(o),o.categoryFacetTemplates=new it.CategoryFacetTemplates,o.categoryValueRoot=new rt.CategoryValueRoot(u.$$(o.element),o.categoryFacetTemplates,o),o.categoryValueRoot.path=o.activePath,o.currentPage=0,o.numberOfValues=o.options.numberOfValues,o.categoryFacetValuesTree=new wt.CategoryFacetValuesTree,o.tryToInitFacetSearch(),o.options.debug&&new b.CategoryFacetDebug(o),lt.ResponsiveFacets.init(o.root,o,o.options),o.initDependsOnManager(),o.bind.onRootElement(h.QueryEvents.buildingQuery,function(n){return o.handleBuildingQuery(n)}),o.bind.onRootElement(h.QueryEvents.querySuccess,function(n){return o.handleQuerySuccess(n)}),o.bind.onRootElement(h.QueryEvents.duringQuery,function(){return o.addFading()}),o.bind.onRootElement(h.QueryEvents.deferredQuerySuccess,function(){return o.handleDeferredQuerySuccess()}),o.bind.onRootElement(w.BreadcrumbEvents.populateBreadcrumb,function(n){return o.handlePopulateBreadCrumb(n)}),o.bind.onRootElement(w.BreadcrumbEvents.clearBreadcrumb,function(){return o.handleClearBreadcrumb()}),o.buildFacetHeader(),o.initQueryStateEvents(),o}return k(t,n),t.prototype.isCurrentlyDisplayed=function(){return u.$$(this.element).isVisible()},Object.defineProperty(t.prototype,"activePath",{get:function(){return this.queryStateModel.get(this.queryStateAttribute)||this.options.basePath},set:function(n){this.listenToQueryStateChange=!1;this.queryStateModel.set(this.queryStateAttribute,n);this.listenToQueryStateChange=!0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"queryStateAttribute",{get:function(){return ft.QueryStateModel.getFacetId(this.options.id)},enumerable:!0,configurable:!0}),t.prototype.handleBuildingQuery=function(n){this.positionInQuery=this.categoryFacetQueryController.putCategoryFacetInQueryBuilder(n.queryBuilder,this.activePath,this.numberOfValues+1)},t.prototype.scrollToTop=function(){pt.ResultListUtils.scrollToTop(this.root)},t.prototype.tryToInitFacetSearch=function(){if(!this.isFacetSearchAvailable)return this.logDisabledFacetSearchWarning();this.categoryFacetSearch=new st.CategoryFacetSearch(this,this.options.displaySearchButton)},t.prototype.logDisabledFacetSearchWarning=function(){if(!this.isEnableFacetSearchFalsy){var n=this.getOptionAttributeName("valueCaption"),t=this.getOptionAttributeName("enableFacetSearch"),i=this.options.field;this.logger.warn("The search box is disabled on the "+i+" CategoryFacet. To hide this warning,\n    either remove the "+n+" option or set the "+t+' option to "false".')}},t.prototype.getOptionAttributeName=function(n){return r.ComponentOptions.attrNameFromName(n)},Object.defineProperty(t.prototype,"isFacetSearchAvailable",{get:function(){return!this.areValueCaptionsSpecified&&!this.isEnableFacetSearchFalsy},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"areValueCaptionsSpecified",{get:function(){var n=this.options.valueCaption;return 0!==f.keys(n).length},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isEnableFacetSearchFalsy",{get:function(){return!this.options.enableFacetSearch},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isCategoryEmpty",{get:function(){return!this.categoryValueRoot.children.length},enumerable:!0,configurable:!0}),t.prototype.updateAppearance=function(){if(this.disabled||this.isCategoryEmpty)return this.hide();this.show()},t.prototype.handleQuerySuccess=function(n){var i,t,r;if(o.Utils.isNullOrUndefined(n.results.categoryFacets))return this.notImplementedError();if(!o.Utils.isNullOrUndefined(n.results.categoryFacets[this.positionInQuery])){if(i=n.query.categoryFacets[this.positionInQuery].maximumNumberOfValues,t=n.results.categoryFacets[this.positionInQuery],this.moreValuesToFetch=i==t.values.length,this.clear(),t.notImplemented)return this.notImplementedError();(t.values.length||t.parentValues.length)&&((this.renderValues(t,i),this.isFacetSearchAvailable)&&(r=this.categoryFacetSearch.build(),this.options.displaySearchOnTop?u.$$(r).insertBefore(this.categoryValueRoot.listRoot.el):u.$$(r).insertAfter(this.categoryValueRoot.listRoot.el)),this.moreLessContainer=u.$$("div",{className:"coveo-category-facet-more-less-container"}),u.$$(this.element).append(this.moreLessContainer.el),this.options.enableMoreLess&&this.renderMoreLess(),this.isPristine()||u.$$(this.element).addClass("coveo-category-facet-non-empty-path"))}},t.prototype.changeActivePath=function(n){this.activePath=n},t.prototype.executeQuery=function(){return a(this,void 0,void 0,function(){return v(this,function(n){switch(n.label){case 0:this.showWaitingAnimation();n.label=1;case 1:return n.trys.push([1,,3,4]),[4,this.queryController.executeQuery()];case 2:return n.sent(),[3,4];case 3:return this.hideWaitingAnimation(),[7];case 4:return[2]}})})},t.prototype.reload=function(){this.changeActivePath(this.activePath);this.logAnalyticsEvent(e.analyticsActionCauseList.categoryFacetReload);this.executeQuery()},t.prototype.getVisibleParentValues=function(){return this.getVisibleParentCategoryValues().map(function(n){return n.getDescriptor()})},t.prototype.getVisibleParentCategoryValues=function(){if(0==this.categoryValueRoot.children.length||0==this.categoryValueRoot.children[0].children.length)return[];for(var n=this.categoryValueRoot.children[0],t=[n];0!=n.children.length&&!o.Utils.arrayEqual(n.path,this.activePath);)n=n.children[0],t.push(n);return t},t.prototype.showMore=function(){this.moreValuesToFetch&&(this.currentPage++,this.numberOfValues=this.options.numberOfValues+this.currentPage*this.options.pageSize,this.reload(),this.logAnalyticsFacetShowMoreLess(e.analyticsActionCauseList.facetShowMore))},t.prototype.showLess=function(){this.currentPage>0&&(this.currentPage--,this.numberOfValues=this.options.numberOfValues+this.currentPage*this.options.pageSize,this.reload(),this.logAnalyticsFacetShowMoreLess(e.analyticsActionCauseList.facetShowLess))},t.prototype.getAvailableValues=function(){return this.activeCategoryValue?this.activeCategoryValue.children.map(function(n){return{value:n.categoryValueDescriptor.value,count:n.categoryValueDescriptor.count,path:n.path}}):[]},t.prototype.selectValue=function(n){ot.Assert.check(f.contains(f.pluck(this.getAvailableValues(),"value"),n),"Failed while trying to select a value that is not available.");var t=this.activePath.slice(0);t.push(n);this.changeActivePath(t);this.logAnalyticsEvent(e.analyticsActionCauseList.categoryFacetSelect);this.executeQuery()},t.prototype.deselectCurrentValue=function(){if(0!=this.activePath.length){var n=this.activePath.slice(0);n.pop();this.changeActivePath(n);this.logAnalyticsEvent(e.analyticsActionCauseList.categoryFacetSelect);this.executeQuery()}},t.prototype.resetPath=function(){this.changeActivePath(this.options.basePath)},t.prototype.reset=function(){this.resetPath();this.logAnalyticsEvent(e.analyticsActionCauseList.categoryFacetClear);this.executeQuery()},t.prototype.hide=function(){u.$$(this.element).addClass("coveo-hidden")},t.prototype.show=function(){u.$$(this.element).removeClass("coveo-hidden")},t.prototype.enable=function(){n.prototype.enable.call(this);this.updateAppearance()},t.prototype.disable=function(){n.prototype.disable.call(this);this.updateAppearance()},t.prototype.debugValue=function(n){return a(this,void 0,void 0,function(){var t,i;return v(this,function(r){switch(r.label){case 0:return t=new ct.QueryBuilder,this.categoryFacetQueryController.addDebugGroupBy(t,n),[4,this.queryController.getEndpoint().search(t.build())];case 1:return i=r.sent(),b.CategoryFacetDebug.analyzeResults(i.groupByResults[0],this.options.delimitingCharacter),[2]}})})},t.prototype.getCaption=function(n){var t=this.options.valueCaption,i=t[n];return i||n},t.prototype.showWaitingAnimation=function(){this.ensureDom();this.showingWaitAnimation||(u.$$(this.headerElement).find(".coveo-category-facet-header-wait-animation").style.visibility="visible",this.showingWaitAnimation=!0)},t.prototype.hideWaitingAnimation=function(){this.ensureDom();this.showingWaitAnimation&&(u.$$(this.headerElement).find(".coveo-category-facet-header-wait-animation").style.visibility="hidden",this.showingWaitAnimation=!1)},t.prototype.logAnalyticsEvent=function(n,t){void 0===t&&(t=this.activePath);this.usageAnalytics.logSearchEvent(n,{categoryFacetId:this.options.id,categoryFacetField:this.options.field.toString(),categoryFacetPath:t,categoryFacetTitle:this.options.title})},t.prototype.getEndpoint=function(){return this.queryController.getEndpoint()},Object.defineProperty(t.prototype,"children",{get:function(){return this.categoryValueRoot.children},enumerable:!0,configurable:!0}),t.prototype.renderValues=function(n,i){var u,s;this.categoryFacetValuesTree.storeNewValues(n);var h,r=this.sortParentValues(n.parentValues),e=this.categoryValueRoot,c=!1,o=Math.floor(t.NUMBER_OF_VALUES_TO_KEEP_AFTER_TRUNCATING/2),l=Math.ceil(t.NUMBER_OF_VALUES_TO_KEEP_AFTER_TRUNCATING/2);for(r=this.hideBasePathInParentValues(r),this.shouldTruncate(r)&&(h=this.findPathOfLastTruncatedParentValue(r,l),c=!0,r=f.first(r,o).concat(f.last(r,l))),this.isPristine()||this.addAllCategoriesButton(),u=0;u<r.length;u++)e=e.renderAsParent(r[u]),u==r.length-1||e.makeSelectable().showCollapseArrow(),c&&(u==o-1&&this.addEllipsis(),u==o&&(e.path=h.concat([r[u].value])));s=this.moreValuesToFetch?n.values.slice(0,i-1):n.values.slice(0,i);this.numberOfChildValuesCurrentlyDisplayed=s.length;e.renderChildren(s);this.activeCategoryValue=e},t.prototype.hideBasePathInParentValues=function(n){return o.Utils.arrayEqual(f.first(this.activePath,this.options.basePath.length),this.options.basePath)&&(n=f.last(n,n.length-this.options.basePath.length)),n},t.prototype.shouldTruncate=function(n){return n.length>t.MAXIMUM_NUMBER_OF_VALUES_BEFORE_TRUNCATING},t.prototype.addEllipsis=function(){this.categoryValueRoot.listRoot.append(this.categoryFacetTemplates.buildEllipsis().el)},t.prototype.findPathOfLastTruncatedParentValue=function(n,t){var i=n.length-t-1;return f.reduce(f.first(n,i+1),function(n,t){return n.concat([t.value])},[])},t.prototype.addAllCategoriesButton=function(){var n=this,t=this.categoryFacetTemplates.buildAllCategoriesButton();(new c.AccessibleButton).withLabel(s.l("AllCategories")).withElement(t).withSelectAction(function(){n.reset();n.scrollToTop()}).build();this.categoryValueRoot.listRoot.append(t.el)},t.prototype.isPristine=function(){return o.Utils.arrayEqual(this.activePath,this.options.basePath)},t.prototype.buildFacetHeader=function(){var n=new vt.CategoryFacetHeader({categoryFacet:this,title:this.options.title});this.headerElement=n.build();u.$$(this.element).prepend(this.headerElement)},t.prototype.handleQueryStateChanged=function(n){if(this.listenToQueryStateChange){var t=n.attributes[this.queryStateAttribute];!o.Utils.isNullOrUndefined(t)&&f.isArray(t)&&0!=t.length&&(this.activePath=t)}},t.prototype.initQueryStateEvents=function(){var n=this;this.queryStateModel.registerNewAttribute(this.queryStateAttribute,this.options.basePath);this.bind.onQueryState(et.MODEL_EVENTS.CHANGE,void 0,function(t){return n.handleQueryStateChanged(t)})},t.prototype.initDependsOnManager=function(){var n=this,t={reset:function(){return n.dependsOnReset()},ref:this};this.dependsOnManager=new yt.DependsOnManager(t)},t.prototype.dependsOnReset=function(){this.changeActivePath(this.options.basePath);this.clear()},t.prototype.addFading=function(){u.$$(this.element).addClass("coveo-category-facet-values-fade")},t.prototype.handleDeferredQuerySuccess=function(){this.updateAppearance();this.removeFading()},t.prototype.removeFading=function(){u.$$(this.element).removeClass("coveo-category-facet-values-fade")},t.prototype.notImplementedError=function(){this.logger.error("Category Facets are not supported by your current search endpoint. Disabling this component.");this.disable()},t.prototype.sortParentValues=function(n){var e,i;if(this.activePath.length!=n.length)return this.logger.warn("Inconsistent CategoryFacet results: Number of parent values results does not equal length of active path"),n;for(var r=[],o=this,t=0,u=this.activePath;t<u.length;t++)if(e=u[t],i=function(t){var i=f.find(n,function(n){return n.value.toLowerCase()==t.toLowerCase()});if(!i)return o.logger.warn("Inconsistent CategoryFacet results: path not consistent with parent values results"),{value:n};r.push(i)}(e),"object"==typeof i)return i.value;return r},t.prototype.renderMoreLess=function(){this.numberOfChildValuesCurrentlyDisplayed>this.options.numberOfValues&&this.moreLessContainer.append(this.buildLessButton());this.moreValuesToFetch&&this.moreLessContainer.append(this.buildMoreButton())},t.prototype.clear=function(){this.categoryValueRoot.clear();this.isFacetSearchAvailable&&this.categoryFacetSearch.clear();this.moreLessContainer&&this.moreLessContainer.detach();u.$$(this.element).removeClass("coveo-category-facet-non-empty-path")},t.prototype.buildMoreButton=function(){var i=this,t=u.$$("span",{className:"coveo-facet-more-icon"},p.SVGIcons.icons.arrowDown).el,n;return y.SVGDom.addClassToSVGInContainer(t,"coveo-facet-more-icon-svg"),n=u.$$("div",{className:"coveo-category-facet-more"},t),(new c.AccessibleButton).withElement(n).withSelectAction(function(){return i.showMore()}).withLabel(s.l("ShowMoreFacetResults",this.options.title)).build(),n.el},t.prototype.buildLessButton=function(){var i=this,t=u.$$("span",{className:"coveo-facet-less-icon"},p.SVGIcons.icons.arrowUp).el,n;return y.SVGDom.addClassToSVGInContainer(t,"coveo-facet-less-icon-svg"),n=u.$$("div",{className:"coveo-category-facet-less"},t),(new c.AccessibleButton).withElement(n).withSelectAction(function(){return i.showLess()}).withLabel(s.l("ShowLessFacetResults",this.options.title)).build(),n.el},t.prototype.handlePopulateBreadCrumb=function(n){var t=this;if(!this.isPristine()){var i=this.categoryFacetValuesTree.getValueForLastPartInPath(this.activePath),r={path:this.activePath,count:i.numberOfResults,value:i.value},u=function(){t.logAnalyticsEvent(e.analyticsActionCauseList.breadcrumbFacet);t.reset()},f=new ht.CategoryFacetBreadcrumb(this,u,r,{headingLevel:n.headingLevel});n.breadcrumbs.push({element:f.build()})}},t.prototype.handleClearBreadcrumb=function(){this.changeActivePath(this.options.basePath)},t.prototype.logAnalyticsFacetShowMoreLess=function(n){this.usageAnalytics.logCustomEvent(n,{facetId:this.options.id,facetField:this.options.field.toString(),facetTitle:this.options.title},this.element)},t.doExport=function(){tt.exportGlobally({CategoryFacet:t})},t.ID="CategoryFacet",t.options=d({field:r.ComponentOptions.buildFieldOption({required:!0}),title:r.ComponentOptions.buildLocalizedStringOption({localizedString:function(){return s.l("NoTitle")}}),numberOfValues:r.ComponentOptions.buildNumberOption({defaultValue:5,min:0,section:"CommonOptions"}),enableFacetSearch:r.ComponentOptions.buildBooleanOption({defaultValue:!0}),id:r.ComponentOptions.buildStringOption({postProcessing:function(n,t){return n||t.field}}),injectionDepth:r.ComponentOptions.buildNumberOption({defaultValue:1e3,min:1e3}),numberOfResultsInFacetSearch:r.ComponentOptions.buildNumberOption({defaultValue:15,min:1}),facetSearchDelay:r.ComponentOptions.buildNumberOption({defaultValue:100,min:0}),enableMoreLess:r.ComponentOptions.buildBooleanOption({defaultValue:!0}),pageSize:r.ComponentOptions.buildNumberOption({defaultValue:10,min:1,depend:"enableMoreLess"}),delimitingCharacter:r.ComponentOptions.buildStringOption({defaultValue:"|"}),basePath:r.ComponentOptions.buildListOption({defaultValue:[]}),maximumDepth:r.ComponentOptions.buildNumberOption({min:1,defaultValue:Number.MAX_VALUE}),debug:r.ComponentOptions.buildBooleanOption({defaultValue:!1}),valueCaption:r.ComponentOptions.buildJsonOption({defaultValue:{}}),dependsOn:r.ComponentOptions.buildStringOption(),dependsOnCondition:r.ComponentOptions.buildCustomOption(function(){return null},{depend:"dependsOn",section:"CommonOptions"}),displaySearchOnTop:r.ComponentOptions.buildBooleanOption({defaultValue:!1}),displaySearchButton:r.ComponentOptions.buildBooleanOption({defaultValue:!0})},at.ResponsiveFacetOptions),t.MAXIMUM_NUMBER_OF_VALUES_BEFORE_TRUNCATING=15,t.NUMBER_OF_VALUES_TO_KEEP_AFTER_TRUNCATING=10,t.WAIT_ELEMENT_CLASS="coveo-category-facet-header-wait-animation",t}(g.Component);t.CategoryFacet=l;nt.Initialization.registerAutoCreateComponent(l);l.doExport()},function(n,t,i){"use strict";var f=this&&this.__extends||function(){var n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])};return function(t,i){function r(){this.constructor=t}n(t,i);t.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var r=i(27),e=i(122),o=i(5),u=i(0),s=function(n){function t(t){var i=n.call(this)||this;return i.templates=t,o.Assert.exists(t),i}return f(t,n),t.prototype.instantiateToString=function(n,t){var f;void 0===t&&(t={});for(var o=(new r.DefaultInstantiateTemplateOptions).merge(t),e=u.reject(this.templates,function(n){return null!=n.role}),i=0;i<e.length;i++)if(f=e[i].instantiateToString(n,o),null!=f)return f;return this.getFallbackTemplate().instantiateToString(n,t)},t.prototype.instantiateToElement=function(n,t){var f;void 0===t&&(t={});for(var e=(new r.DefaultInstantiateTemplateOptions).merge(t),o=u.reject(this.templates,function(n){return null!=n.role}),i=0;i<o.length;i++)if(f=o[i].instantiateToElement(n,e),null!=f)return f;return this.getFallbackTemplate().instantiateToElement(n,e)},t.prototype.getFields=function(){return u.reduce(this.templates,function(n,t){return n.concat(t.getFields())},[])},t.prototype.getType=function(){return"TemplateList"},t.prototype.getFallbackTemplate=function(){return new e.DefaultResultTemplate},t}(r.Template);t.TemplateList=s},function(n,t,i){"use strict";var e=this&&this.__assign||Object.assign||function(n){for(var t,r,i=1,u=arguments.length;i<u;i++){t=arguments[i];for(r in t)Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},o=this&&this.__awaiter||function(n,t,i,r){return new(i||(i=Promise))(function(u,f){function o(n){try{e(r.next(n))}catch(n){f(n)}}function s(n){try{e(r.throw(n))}catch(n){f(n)}}function e(n){n.done?u(n.value):new i(function(t){t(n.value)}).then(o,s)}e((r=r.apply(n,t||[])).next())})},s=this&&this.__generator||function(n,t){function f(n){return function(t){return s([n,t])}}function s(f){if(e)throw new TypeError("Generator is already executing.");for(;r;)try{if(e=1,u&&(i=u[2&f[0]?"return":f[0]?"throw":"next"])&&!(i=i.call(u,f[1])).done)return i;switch(u=0,i&&(f=[0,i.value]),f[0]){case 0:case 1:i=f;break;case 4:return r.label++,{value:f[1],done:!1};case 5:r.label++;u=f[1];f=[0];continue;case 7:f=r.ops.pop();r.trys.pop();continue;default:if(i=r.trys,!(i=i.length>0&&i[i.length-1])&&(6===f[0]||2===f[0])){r=0;continue}if(3===f[0]&&(!i||f[1]>i[0]&&f[1]<i[3])){r.label=f[1];break}if(6===f[0]&&r.label<i[1]){r.label=i[1];i=f;break}if(i&&r.label<i[2]){r.label=i[2];r.ops.push(f);break}i[2]&&r.ops.pop();r.trys.pop();continue}f=t.call(n,r)}catch(n){f=[6,n];u=0}finally{e=i=0}if(5&f[0])throw f[1];return{value:f[0]?f[1]:void 0,done:!0}}var e,u,i,o,r={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:f(0),"throw":f(1),"return":f(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o};Object.defineProperty(t,"__esModule",{value:!0});var r=i(1),h=i(33),c=i(120),f=i(4),u=i(22),l=i(12),a=i(30),v=i(9),y=i(20),p=i(5),w=function(){function n(){}return n.getPopUpCloseButton=function(n,t){var e=document.createElement("span"),i=document.createElement("span"),u,f;return r.$$(i).addClass("coveo-close-button"),e.appendChild(i),u=document.createElement("span"),r.$$(u).addClass("coveo-icon"),r.$$(u).addClass("coveo-sprites-quickview-close"),i.appendChild(u),r.$$(i).text(n),f=document.createElement("span"),r.$$(f).addClass("coveo-pop-up-reminder"),r.$$(f).text(t),e.appendChild(f),e.outerHTML},n.getBasicLoadingAnimation=function(){var n=document.createElement("div");return n.className="coveo-first-loading-animation",n.innerHTML="<div class='coveo-logo'>"+l.SVGIcons.icons.coveoLogo+"<\/div>\n    <div class='coveo-loading-container'>\n      <div class='coveo-loading-dot'><\/div>\n      <div class='coveo-loading-dot'><\/div>\n      <div class='coveo-loading-dot'><\/div>\n      <div class='coveo-loading-dot'><\/div>\n    <\/div>",n},n.highlight=function(n,t,i){void 0===t&&(t="coveo-highlight");void 0===i&&(i=!0);var r=null!==t?t.trim():null;return null!==r&&p.Assert.check(/^([^\s\-][a-z\s\-]*[^\s\-])?$/i.test(r),"Invalid class"),"<span"+(null!==r&&r.length>0?" class='"+r+"'":"")+">"+(i?u.StringUtils.htmlEncode(n):n)+"<\/span>"},n.highlightElement=function(n,t,i){var o,r,e;return(void 0===i&&(i="coveo-highlight"),o=new RegExp(f.Utils.escapeRegexCharacter(u.StringUtils.latinize(t)),"i"),r=u.StringUtils.latinize(n).search(o),r>=0)?(e=r+t.length,u.StringUtils.htmlEncode(n.slice(0,r))+this.highlight(n.slice(r,e),i,!0)+u.StringUtils.htmlEncode(n.slice(e))):n},n.getLoadingSpinner=function(){return r.$$("div",{className:"coveo-loading-spinner"}).el},n.getModalBoxHeader=function(n){var t=r.$$("div");return t.el.innerHTML="<div class='coveo-modalbox-right-header'>\n        <span class='coveo-modalbox-close-button'>\n          <span class='coveo-icon coveo-sprites-common-clear'><\/span>\n        <\/span>\n      <\/div>\n      <div class='coveo-modalbox-left-header'>\n        <span class='coveo-modalbox-pop-up-reminder'> "+(n||"")+"<\/span>\n      <\/div>",t},n.getQuickviewHeader=function(t,i){var s="",o,l,u;i.showDate&&(o=f.Utils.getFieldValue(t,"date"),o&&(s=h.DateUtils.dateTimeToString(new Date(o))));l=c.FileTypes.get(t);u=r.$$("div");u.el.innerHTML="<div class='coveo-quickview-right-header'>\n        <span class='coveo-quickview-time'>"+s+"<\/span>\n        <span class='coveo-quickview-close-button'>\n          <span class='coveo-icon coveo-sprites-common-clear'><\/span>\n        <\/span>\n      <\/div>\n      <div class='coveo-quickview-left-header'>\n        <span class='coveo-quickview-icon coveo-small "+l.icon+"'><\/span>\n      <\/div>";var v=r.$$("a",{className:"coveo-quickview-pop-up-reminder"}),y=Coveo.Salesforce?"SalesforceResultLink":"ResultLink",a=e({},t);return i.title&&(a.title=i.title),n.loadResultLink(y,v,u,a,i),u},n.loadResultLink=function(n,t,i,u,f){return o(this,void 0,void 0,function(){var o,e;return s(this,function(s){switch(s.label){case 0:return s.trys.push([0,2,,3]),[4,a.load(n)];case 1:return s.sent(),t.addClass("Coveo"+n),y.Initialization.automaticallyCreateComponentsInsideResult(t.el,u),[3,3];case 2:return o=s.sent(),e=new v.Logger(this),e.error("Failed to load module "+n+" : "+o),e.info("Fallback on displaying a non clickable header"),t.text(f.title),[3,3];case 3:return r.$$(i.find(".coveo-quickview-left-header")).append(t.el),[2]}})})},n}();t.DomUtils=w},function(n,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(n){function fi(n){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then(function(){t=!1;n()}))}}function ei(n){var t=!1;return function(){t||(t=!0,setTimeout(function(){t=!1;n()},ti))}}function ft(n){return n&&"[object Function]"==={}.toString.call(n)}function u(n,t){if(1!==n.nodeType)return[];var i=getComputedStyle(n,null);return t?i[t]:i}function p(n){return"HTML"===n.nodeName?n:n.parentNode||n.host}function h(n){if(!n)return document.body;switch(n.nodeName){case"HTML":case"BODY":return n.ownerDocument.body;case"#document":return n.body}var t=u(n),i=t.overflow,r=t.overflowX;return/(auto|scroll|overlay)/.test(i+t.overflowY+r)?n:h(p(n))}function f(n){return 11===n?ii:10===n?ri:ii||ri}function e(n){var r,t,i;if(!n)return document.documentElement;for(r=f(10)?document.body:null,t=n.offsetParent;t===r&&n.nextElementSibling;)t=(n=n.nextElementSibling).offsetParent;return i=t&&t.nodeName,i&&"BODY"!==i&&"HTML"!==i?-1!==["TD","TABLE"].indexOf(t.nodeName)&&"static"===u(t,"position")?e(t):t:n?n.ownerDocument.documentElement:document.documentElement}function oi(n){var t=n.nodeName;return"BODY"!==t&&("HTML"===t||e(n.firstElementChild)===n)}function w(n){return null!==n.parentNode?w(n.parentNode):n}function l(n,t){var i,u;if(!(n&&n.nodeType&&t&&t.nodeType))return document.documentElement;var f=n.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,o=f?n:t,s=f?t:n,r=document.createRange();return(r.setStart(o,0),r.setEnd(s,0),i=r.commonAncestorContainer,n!==i&&t!==i||o.contains(s))?oi(i)?i:e(i):(u=w(n),u.host?l(u.host,t):l(n,w(t).host))}function o(n){var u=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top",t="top"===u?"scrollTop":"scrollLeft",i=n.nodeName,r;return"BODY"===i||"HTML"===i?(r=n.ownerDocument.documentElement,(n.ownerDocument.scrollingElement||r)[t]):n[t]}function si(n,t){var f=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=o(t,"top"),u=o(t,"left"),i=f?-1:1;return n.top+=r*i,n.bottom+=r*i,n.left+=u*i,n.right+=u*i,n}function et(n,t){var i="x"===t?"Left":"Top",r="Left"===i?"Right":"Bottom";return parseFloat(n["border"+i+"Width"],10)+parseFloat(n["border"+r+"Width"],10)}function ot(n,t,i,r){return Math.max(t["offset"+n],t["scroll"+n],i["client"+n],i["offset"+n],i["scroll"+n],f(10)?i["offset"+n]+r["margin"+("Height"===n?"Top":"Left")]+r["margin"+("Height"===n?"Bottom":"Right")]:0)}function st(){var t=document.body,n=document.documentElement,i=f(10)&&getComputedStyle(n);return{height:ot("Height",t,n,i),width:ot("Width",t,n,i)}}function r(n){return i({},n,{right:n.left+n.width,bottom:n.top+n.height})}function b(n){var t={},e,s,l;try{f(10)?(t=n.getBoundingClientRect(),e=o(n,"top"),s=o(n,"left"),t.top+=e,t.left+=s,t.bottom+=e,t.right+=s):t=n.getBoundingClientRect()}catch(n){}var i={left:t.left,top:t.top,width:t.right-t.left,height:t.bottom-t.top},a="HTML"===n.nodeName?st():{},v=a.width||n.clientWidth||i.right-i.left,y=a.height||n.clientHeight||i.bottom-i.top,h=n.offsetWidth-v,c=n.offsetHeight-y;return(h||c)&&(l=u(n),h-=et(l,"x"),c-=et(l,"y"),i.width-=h,i.height-=c),r(i)}function k(n,t){var p=arguments.length>2&&void 0!==arguments[2]&&arguments[2],w=f(10),k="HTML"===t.nodeName,o=b(n),e=b(t),a=h(n),s=u(t),v=parseFloat(s.borderTopWidth,10),y=parseFloat(s.borderLeftWidth,10),i,c,l;return p&&"HTML"===t.nodeName&&(e.top=Math.max(e.top,0),e.left=Math.max(e.left,0)),i=r({top:o.top-e.top-v,left:o.left-e.left-y,width:o.width,height:o.height}),(i.marginTop=0,i.marginLeft=0,!w&&k)&&(c=parseFloat(s.marginTop,10),l=parseFloat(s.marginLeft,10),i.top-=v-c,i.bottom-=v-c,i.left-=y-l,i.right-=y-l,i.marginTop=c,i.marginLeft=l),(w&&!p?t.contains(a):t===a&&"BODY"!==a.nodeName)&&(i=si(i,t)),i}function hi(n){var u=arguments.length>1&&void 0!==arguments[1]&&arguments[1],t=n.ownerDocument.documentElement,i=k(n,t),f=Math.max(t.clientWidth,window.innerWidth||0),e=Math.max(t.clientHeight,window.innerHeight||0),s=u?0:o(t),h=u?0:o(t,"left");return r({top:s-i.top+i.marginTop,left:h-i.left+i.marginLeft,width:f,height:e})}function ht(n){var t=n.nodeName;return"BODY"!==t&&"HTML"!==t&&("fixed"===u(n,"position")||ht(p(n)))}function ct(n){if(!n||!n.parentElement||f())return document.documentElement;for(var t=n.parentElement;t&&"none"===u(t,"transform");)t=t.parentElement;return t||document.documentElement}function d(n,t,i,r){var o=arguments.length>4&&void 0!==arguments[4]&&arguments[4],u={top:0,left:0},s=o?ct(n):l(n,t),e,f;if("viewport"===r)u=hi(s,o);else if(e=void 0,"scrollParent"===r?(e=h(p(t)),"BODY"===e.nodeName&&(e=n.ownerDocument.documentElement)):e="window"===r?n.ownerDocument.documentElement:r,f=k(e,s,o),"HTML"!==e.nodeName||ht(s))u=f;else{var c=st(),a=c.height,v=c.width;u.top+=f.top-f.marginTop;u.bottom=a+f.top;u.left+=f.left-f.marginLeft;u.right=v+f.left}return u.left+=i,u.top+=i,u.right-=i,u.bottom-=i,u}function ci(n){return n.width*n.height}function lt(n,t,r,u,f){var l=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(-1===n.indexOf("auto"))return n;var e=d(r,u,l,f),o={top:{width:e.width,height:t.top-e.top},right:{width:e.right-t.right,height:e.height},bottom:{width:e.width,height:e.bottom-t.bottom},left:{width:t.left-e.left,height:e.height}},s=Object.keys(o).map(function(n){return i({key:n},o[n],{area:ci(o[n])})}).sort(function(n,t){return t.area-n.area}),h=s.filter(function(n){var t=n.width,i=n.height;return t>=r.clientWidth&&i>=r.clientHeight}),a=h.length>0?h[0].key:s[0].key,c=n.split("-")[1];return a+(c?"-"+c:"")}function at(n,t,i){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return k(i,r?ct(t):l(t,i),r)}function vt(n){var t=getComputedStyle(n),i=parseFloat(t.marginTop)+parseFloat(t.marginBottom),r=parseFloat(t.marginLeft)+parseFloat(t.marginRight);return{width:n.offsetWidth+r,height:n.offsetHeight+i}}function a(n){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return n.replace(/left|right|bottom|top/g,function(n){return t[n]})}function yt(n,t,i){i=i.split("-")[0];var r=vt(n),e={width:r.width,height:r.height},u=-1!==["right","left"].indexOf(i),o=u?"top":"left",f=u?"left":"top",s=u?"height":"width",h=u?"width":"height";return e[o]=t[o]+t[s]/2-r[s]/2,e[f]=i===f?t[f]-r[h]:t[a(f)],e}function c(n,t){return Array.prototype.find?n.find(t):n.filter(t)[0]}function li(n,t,i){if(Array.prototype.findIndex)return n.findIndex(function(n){return n[t]===i});var r=c(n,function(n){return n[t]===i});return n.indexOf(r)}function pt(n,t,i){return(void 0===i?n:n.slice(0,li(n,"name",i))).forEach(function(n){n.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var i=n.function||n.fn;n.enabled&&ft(i)&&(t.offsets.popper=r(t.offsets.popper),t.offsets.reference=r(t.offsets.reference),t=i(t,n))}),t}function ai(){if(!this.state.isDestroyed){var n={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};n.offsets.reference=at(this.state,this.popper,this.reference,this.options.positionFixed);n.placement=lt(this.options.placement,n.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding);n.originalPlacement=n.placement;n.positionFixed=this.options.positionFixed;n.offsets.popper=yt(this.popper,n.offsets.reference,n.placement);n.offsets.popper.position=this.options.positionFixed?"fixed":"absolute";n=pt(this.modifiers,n);this.state.isCreated?this.options.onUpdate(n):(this.state.isCreated=!0,this.options.onCreate(n))}}function wt(n,t){return n.some(function(n){var i=n.name;return n.enabled&&i===t})}function g(n){for(var i,r,u=[!1,"ms","Webkit","Moz","O"],f=n.charAt(0).toUpperCase()+n.slice(1),t=0;t<u.length;t++)if(i=u[t],r=i?""+i+f:n,void 0!==document.body.style[r])return r;return null}function vi(){return this.state.isDestroyed=!0,wt(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[g("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function bt(n){var t=n.ownerDocument;return t?t.defaultView:window}function kt(n,t,i,r){var f="BODY"===n.nodeName,u=f?n.ownerDocument.defaultView:n;u.addEventListener(t,i,{passive:!0});f||kt(h(u.parentNode),t,i,r);r.push(u)}function yi(n,t,i,r){i.updateBound=r;bt(n).addEventListener("resize",i.updateBound,{passive:!0});var u=h(n);return kt(u,"scroll",i.updateBound,i.scrollParents),i.scrollElement=u,i.eventsEnabled=!0,i}function pi(){this.state.eventsEnabled||(this.state=yi(this.reference,this.options,this.state,this.scheduleUpdate))}function wi(n,t){return bt(n).removeEventListener("resize",t.updateBound),t.scrollParents.forEach(function(n){n.removeEventListener("scroll",t.updateBound)}),t.updateBound=null,t.scrollParents=[],t.scrollElement=null,t.eventsEnabled=!1,t}function bi(){this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=wi(this.reference,this.state))}function nt(n){return""!==n&&!isNaN(parseFloat(n))&&isFinite(n)}function tt(n,t){Object.keys(t).forEach(function(i){var r="";-1!==["width","height","top","right","bottom","left"].indexOf(i)&&nt(t[i])&&(r="px");n.style[i]=t[i]+r})}function ki(n,t){Object.keys(t).forEach(function(i){!1!==t[i]?n.setAttribute(i,t[i]):n.removeAttribute(i)})}function di(n){return tt(n.instance.popper,n.styles),ki(n.instance.popper,n.attributes),n.arrowElement&&Object.keys(n.arrowStyles).length&&tt(n.arrowElement,n.arrowStyles),n}function gi(n,t,i,r,u){var f=at(u,t,n,i.positionFixed),e=lt(i.placement,f,t,n,i.modifiers.flip.boundariesElement,i.modifiers.flip.padding);return t.setAttribute("x-placement",e),tt(t,{position:i.positionFixed?"fixed":"absolute"}),i}function nr(n,t){var d=t.x,nt=t.y,u=n.offsets.popper,h=c(n.instance.modifiers,function(n){return"applyStyle"===n.name}).gpuAcceleration,p,w,k;void 0!==h&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var tt=void 0!==h?h:t.gpuAcceleration,it=e(n.instance.popper),v=b(it),r={position:u.position},s={left:Math.floor(u.left),top:Math.round(u.top),bottom:Math.round(u.bottom),right:Math.floor(u.right)},f="bottom"===d?"top":"bottom",o="right"===nt?"left":"right",y=g("transform"),l=void 0,a=void 0;return(a="bottom"===f?-v.height+s.bottom:s.top,l="right"===o?-v.width+s.right:s.left,tt&&y)?(r[y]="translate3d("+l+"px, "+a+"px, 0)",r[f]=0,r[o]=0,r.willChange="transform"):(p="bottom"===f?-1:1,w="right"===o?-1:1,r[f]=a*p,r[o]=l*w,r.willChange=f+", "+o),k={"x-placement":n.placement},n.attributes=i({},k,n.attributes),n.styles=i({},r,n.styles),n.arrowStyles=i({},n.offsets.arrow,n.arrowStyles),n}function dt(n,t,i){var u=c(n,function(n){return n.name===t}),f=!!u&&n.some(function(n){return n.name===i&&n.enabled&&n.order<u.order}),r,e;return f||(r="`"+t+"`",e="`"+i+"`",console.warn(e+" modifier is required by "+r+" modifier in order to work, be sure to include it before "+r+"!")),f}function tr(n,t){var c,f;if(!dt(n.instance.modifiers,"arrow","keepTogether"))return n;if(f=t.element,"string"==typeof f){if(!(f=n.instance.popper.querySelector(f)))return n}else if(!n.instance.popper.contains(f))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),n;var k=n.placement.split("-")[0],w=n.offsets,h=w.popper,e=w.reference,l=-1!==["left","right"].indexOf(k),v=l?"height":"width",y=l?"Top":"Left",i=y.toLowerCase(),d=l?"left":"top",a=l?"bottom":"right",o=vt(f)[v];e[a]-o<h[i]&&(n.offsets.popper[i]-=h[i]-(e[a]-o));e[i]+o>h[a]&&(n.offsets.popper[i]+=e[i]+o-h[a]);n.offsets.popper=r(n.offsets.popper);var g=e[i]+e[v]/2-o/2,b=u(n.instance.popper),nt=parseFloat(b["margin"+y],10),tt=parseFloat(b["border"+y+"Width"],10),p=g-n.offsets.popper[i]-nt-tt;return p=Math.max(Math.min(h[v]-o,p),0),n.arrowElement=f,n.offsets.arrow=(c={},s(c,i,Math.round(p)),s(c,d,""),c),n}function ir(n){return"end"===n?"start":"start"===n?"end":n}function gt(n){var r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],t=rt.indexOf(n),i=rt.slice(t+1).concat(rt.slice(0,t));return r?i.reverse():i}function rr(n,t){if(wt(n.instance.modifiers,"inner")||n.flipped&&n.placement===n.originalPlacement)return n;var e=d(n.instance.popper,n.instance.reference,t.padding,t.boundariesElement,n.positionFixed),r=n.placement.split("-")[0],o=a(r),u=n.placement.split("-")[1]||"",f=[];switch(t.behavior){case ut.FLIP:f=[r,o];break;case ut.CLOCKWISE:f=gt(r);break;case ut.COUNTERCLOCKWISE:f=gt(r,!0);break;default:f=t.behavior}return f.forEach(function(s,h){if(r!==s||f.length===h+1)return n;r=n.placement.split("-")[0];o=a(r);var l=n.offsets.popper,v=n.offsets.reference,c=Math.floor,p="left"===r&&c(l.right)>c(v.left)||"right"===r&&c(l.left)<c(v.right)||"top"===r&&c(l.bottom)>c(v.top)||"bottom"===r&&c(l.top)<c(v.bottom),w=c(l.left)<c(e.left),b=c(l.right)>c(e.right),k=c(l.top)<c(e.top),d=c(l.bottom)>c(e.bottom),g="left"===r&&w||"right"===r&&b||"top"===r&&k||"bottom"===r&&d,y=-1!==["top","bottom"].indexOf(r),nt=!!t.flipVariations&&(y&&"start"===u&&w||y&&"end"===u&&b||!y&&"start"===u&&k||!y&&"end"===u&&d);(p||g||nt)&&(n.flipped=!0,(p||g)&&(r=f[h+1]),nt&&(u=ir(u)),n.placement=r+(u?"-"+u:""),n.offsets.popper=i({},n.offsets.popper,yt(n.instance.popper,n.offsets.reference,n.placement)),n=pt(n.instance.modifiers,n,"flip"))}),n}function ur(n){var o=n.offsets,u=o.popper,i=o.reference,s=n.placement.split("-")[0],r=Math.floor,f=-1!==["top","bottom"].indexOf(s),e=f?"right":"bottom",t=f?"left":"top",h=f?"width":"height";return u[e]<r(i[t])&&(n.offsets.popper[t]=r(i[t])-u[h]),u[t]>r(i[e])&&(n.offsets.popper[t]=r(i[e])),n}function fr(n,t,i,u){var s=n.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),e=+s[1],f=s[2],o;if(!e)return n;if(0===f.indexOf("%")){o=void 0;switch(f){case"%p":o=i;break;case"%":case"%r":default:o=u}return r(o)[t]/100*e}return"vh"===f||"vw"===f?("vh"===f?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*e:e}function er(n,t,i,r){var s=[0,0],h=-1!==["right","left"].indexOf(r),u=n.split(/(\+|\-)/).map(function(n){return n.trim()}),f=u.indexOf(c(u,function(n){return-1!==n.search(/,|\s/)})),o,e;return u[f]&&-1===u[f].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead."),o=/\s*,\s*|\s+/,e=-1!==f?[u.slice(0,f).concat([u[f].split(o)[0]]),[u[f].split(o)[1]].concat(u.slice(f+1))]:[u],e=e.map(function(n,r){var f=(1===r?!h:h)?"height":"width",u=!1;return n.reduce(function(n,t){return""===n[n.length-1]&&-1!==["+","-"].indexOf(t)?(n[n.length-1]=t,u=!0,n):u?(n[n.length-1]+=t,u=!1,n):n.concat(t)},[]).map(function(n){return fr(n,f,t,i)})}),e.forEach(function(n,t){n.forEach(function(i,r){nt(i)&&(s[t]+=i*("-"===n[r-1]?-1:1))})}),s}function or(n,t){var f=t.offset,o=n.placement,e=n.offsets,i=e.popper,s=e.reference,u=o.split("-")[0],r=void 0;return r=nt(+f)?[+f,0]:er(f,i,s,u),"left"===u?(i.top+=r[0],i.left-=r[1]):"right"===u?(i.top+=r[0],i.left+=r[1]):"top"===u?(i.left+=r[0],i.top-=r[1]):"bottom"===u&&(i.left+=r[0],i.top+=r[1]),n.popper=i,n}function sr(n,t){var o=t.boundariesElement||e(n.instance.popper),f;n.instance.reference===o&&(o=e(o));var h=g("transform"),u=n.instance.popper.style,c=u.top,l=u.left,a=u[h];u.top="";u.left="";u[h]="";f=d(n.instance.popper,n.instance.reference,t.padding,o,n.positionFixed);u.top=c;u.left=l;u[h]=a;t.boundaries=f;var v=t.priority,r=n.offsets.popper,y={primary:function(n){var i=r[n];return r[n]<f[n]&&!t.escapeWithReference&&(i=Math.max(r[n],f[n])),s({},n,i)},secondary:function(n){var i="right"===n?"left":"top",u=r[i];return r[n]>f[n]&&!t.escapeWithReference&&(u=Math.min(r[i],f[n]-("right"===n?r.width:r.height))),s({},i,u)}};return v.forEach(function(n){var t=-1!==["left","top"].indexOf(n)?"primary":"secondary";r=i({},r,y[t](n))}),n.offsets.popper=r,n}function hr(n){var u=n.placement,l=u.split("-")[0],f=u.split("-")[1];if(f){var e=n.offsets,r=e.reference,o=e.popper,h=-1!==["bottom","top"].indexOf(l),t=h?"left":"top",c=h?"width":"height",a={start:s({},t,r[t]),end:s({},t,r[t]+r[c]-o[c])};n.offsets.popper=i({},o,a[f])}return n}function cr(n){if(!dt(n.instance.modifiers,"hide","preventOverflow"))return n;var t=n.offsets.reference,i=c(n.instance.modifiers,function(n){return"preventOverflow"===n.name}).boundaries;if(t.bottom<i.top||t.left>i.right||t.top>i.bottom||t.right<i.left){if(!0===n.hide)return n;n.hide=!0;n.attributes["x-out-of-boundaries"]=""}else{if(!1===n.hide)return n;n.hide=!1;n.attributes["x-out-of-boundaries"]=!1}return n}function lr(n){var u=n.placement,t=u.split("-")[0],f=n.offsets,i=f.popper,o=f.reference,e=-1!==["left","right"].indexOf(t),s=-1===["top","left"].indexOf(t);return i[e?"left":"top"]=o[t]-(s?i[e?"width":"height"]:0),n.placement=a(u),n.offsets.popper=r(i),n}for(var v="undefined"!=typeof window&&"undefined"!=typeof document,ni=["Edge","Trident","Firefox"],ti=0,it=0;it<ni.length;it+=1)if(v&&navigator.userAgent.indexOf(ni[it])>=0){ti=1;break}var ar=v&&window.Promise,vr=ar?fi:ei,ii=v&&!(!window.MSInputMethodContext||!document.documentMode),ri=v&&/MSIE 10/.test(navigator.userAgent),yr=function(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");},pr=function(){function n(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}(),s=function(n,t,i){return t in n?Object.defineProperty(n,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[t]=i,n},i=Object.assign||function(n){for(var i,r,t=1;t<arguments.length;t++){i=arguments[t];for(r in i)Object.prototype.hasOwnProperty.call(i,r)&&(n[r]=i[r])}return n},ui=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],rt=ui.slice(3),ut={FLIP:"flip",CLOCKWISE:"clockwise",COUNTERCLOCKWISE:"counterclockwise"},wr={shift:{order:100,enabled:!0,fn:hr},offset:{order:200,enabled:!0,fn:or,offset:0},preventOverflow:{order:300,enabled:!0,fn:sr,priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:ur},arrow:{order:500,enabled:!0,fn:tr,element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:rr,behavior:"flip",padding:5,boundariesElement:"viewport"},inner:{order:700,enabled:!1,fn:lr},hide:{order:800,enabled:!0,fn:cr},computeStyle:{order:850,enabled:!0,fn:nr,gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:di,onLoad:gi,gpuAcceleration:void 0}},br={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:wr},y=function(){function n(t,r){var u=this,f=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},e;yr(this,n);this.scheduleUpdate=function(){return requestAnimationFrame(u.update)};this.update=vr(this.update.bind(this));this.options=i({},n.Defaults,f);this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]};this.reference=t&&t.jquery?t[0]:t;this.popper=r&&r.jquery?r[0]:r;this.options.modifiers={};Object.keys(i({},n.Defaults.modifiers,f.modifiers)).forEach(function(t){u.options.modifiers[t]=i({},n.Defaults.modifiers[t]||{},f.modifiers?f.modifiers[t]:{})});this.modifiers=Object.keys(this.options.modifiers).map(function(n){return i({name:n},u.options.modifiers[n])}).sort(function(n,t){return n.order-t.order});this.modifiers.forEach(function(n){n.enabled&&ft(n.onLoad)&&n.onLoad(u.reference,u.popper,u.options,n,u.state)});this.update();e=this.options.eventsEnabled;e&&this.enableEventListeners();this.state.eventsEnabled=e}return pr(n,[{key:"update",value:function(){return ai.call(this)}},{key:"destroy",value:function(){return vi.call(this)}},{key:"enableEventListeners",value:function(){return pi.call(this)}},{key:"disableEventListeners",value:function(){return bi.call(this)}}]),n}();y.Utils=("undefined"!=typeof window?window:n).PopperUtils;y.placements=ui;y.Defaults=br;t.default=y}.call(t,i(75))},function(n,t,i){"use strict";var r,u,f;Object.defineProperty(t,"__esModule",{value:!0});r=i(1);i(560);u=i(3);f=function(){function n(n,t,i,r){void 0===n&&(n=function(){});void 0===r&&(r=t);this.onChange=n;this.label=t;this.name=i;this.id=r;this.buildContent()}return n.doExport=function(){u.exportGlobally({RadioButton:n})},n.prototype.reset=function(){var n=this.isSelected();this.getRadio().checked=!1;n&&this.onChange(this)},n.prototype.select=function(n){void 0===n&&(n=!0);var t=this.isSelected();this.getRadio().checked=!0;!t&&n&&this.onChange(this)},n.prototype.build=function(){return this.element},n.prototype.getElement=function(){return this.element},n.prototype.getValue=function(){return this.label},n.prototype.isSelected=function(){return this.getRadio().checked},n.prototype.getRadio=function(){return r.$$(this.element).find("input")},n.prototype.getLabel=function(){return r.$$(this.element).find("label")},n.prototype.buildContent=function(){var t=this,n=r.$$("div",{className:"coveo-radio"}),i=r.$$("input",{type:"radio",name:this.name,id:this.id}),u=r.$$("label",{className:"coveo-radio-input-label","for":this.id});u.text(this.label);i.on("change",function(){t.onChange(t)});n.append(i.el);n.append(u.el);this.element=n.el},n}();t.RadioButton=f},function(n,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function n(){}return n.beforeRedirect="beforeRedirect",n}();t.StandaloneSearchInterfaceEvents=i},function(n,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function n(){}return n.savePreferences="savePreferences",n.exitPreferencesWithoutSave="exitPreferencesWithoutSave",n}();t.PreferencesPanelEvents=i},function(n,t,i){"use strict";var r,u,f,e,o,s,h,c,l,a,v,y,p,w,b;Object.defineProperty(t,"__esModule",{value:!0});r=i(87);t.AdvancedSearchEvents=r.AdvancedSearchEvents;u=i(57);t.AnalyticsEvents=u.AnalyticsEvents;f=i(35);t.BreadcrumbEvents=f.BreadcrumbEvents;e=i(105);t.DebugEvents=e.DebugEvents;o=i(203);t.DistanceEvents=o.DistanceEvents;s=i(17);t.InitializationEvents=s.InitializationEvents;h=i(34);t.OmniboxEvents=h.OmniboxEvents;c=i(100);t.PreferencesPanelEvents=c.PreferencesPanelEvents;l=i(11);t.QueryEvents=l.QueryEvents;a=i(29);t.ResultListEvents=a.ResultListEvents;v=i(133);t.ResultLayoutEvents=v.ResultLayoutEvents;y=i(86);t.SearchAlertsEvents=y.SearchAlertsEvents;p=i(55);t.SettingsEvents=p.SettingsEvents;w=i(142);t.SliderEvents=w.SliderEvents;b=i(99);t.StandaloneSearchInterfaceEvents=b.StandaloneSearchInterfaceEvents},function(n,t,i){(function(n){var t;!function(t,i){n.exports=i()}(0,function(){"use strict";function r(){return ho.apply(null,arguments)}function ft(n){return n instanceof Array||"[object Array]"===Object.prototype.toString.call(n)}function ri(n){return null!=n&&"[object Object]"===Object.prototype.toString.call(n)}function c(n,t){return Object.prototype.hasOwnProperty.call(n,t)}function ou(n){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(n).length;var t;for(t in n)if(c(n,t))return!1;return!0}function g(n){return void 0===n}function vt(n){return"number"==typeof n||"[object Number]"===Object.prototype.toString.call(n)}function pi(n){return n instanceof Date||"[object Date]"===Object.prototype.toString.call(n)}function kf(n,t){for(var r=[],u=n.length,i=0;i<u;++i)r.push(t(n[i],i));return r}function ni(n,t){for(var i in t)c(t,i)&&(n[i]=t[i]);return c(t,"toString")&&(n.toString=t.toString),c(t,"valueOf")&&(n.valueOf=t.valueOf),n}function ht(n,t,i,r){return ae(n,t,i,r,!0).utc()}function ys(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function e(n){return null==n._pf&&(n._pf=ys()),n._pf}function su(n){if(null==n._isValid){var t=e(n),r=co.call(t.parsedDateParts,function(n){return null!=n}),i=!isNaN(n._d.getTime())&&t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&r);if(n._strict&&(i=i&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour),null!=Object.isFrozen&&Object.isFrozen(n))return i;n._isValid=i}return n._isValid}function fr(n){var t=ht(NaN);return null!=n?ni(e(t),n):e(t).userInvalidated=!0,t}function hu(n,t){var i,r,u,f=lo.length;if(g(t._isAMomentObject)||(n._isAMomentObject=t._isAMomentObject),g(t._i)||(n._i=t._i),g(t._f)||(n._f=t._f),g(t._l)||(n._l=t._l),g(t._strict)||(n._strict=t._strict),g(t._tzm)||(n._tzm=t._tzm),g(t._isUTC)||(n._isUTC=t._isUTC),g(t._offset)||(n._offset=t._offset),g(t._pf)||(n._pf=e(t)),g(t._locale)||(n._locale=t._locale),f>0)for(i=0;i<f;i++)r=lo[i],u=t[r],g(u)||(n[r]=u);return n}function wi(n){hu(this,n);this._d=new Date(null!=n._d?n._d.getTime():NaN);this.isValid()||(this._d=new Date(NaN));!1===sf&&(sf=!0,r.updateOffset(this),sf=!1)}function et(n){return n instanceof wi||null!=n&&null!=n._isAMomentObject}function df(n){!1===r.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+n)}function it(n,t){var i=!0;return ni(function(){if(null!=r.deprecationHandler&&r.deprecationHandler(null,n),i){for(var u,e,o=[],s=arguments.length,f=0;f<s;f++){if(u="","object"==typeof arguments[f]){u+="\n["+f+"] ";for(e in arguments[0])c(arguments[0],e)&&(u+=e+": "+arguments[0][e]+", ");u=u.slice(0,-2)}else u=arguments[f];o.push(u)}df(n+"\nArguments: "+Array.prototype.slice.call(o).join("")+"\n"+(new Error).stack);i=!1}return t.apply(this,arguments)},t)}function gf(n,t){null!=r.deprecationHandler&&r.deprecationHandler(n,t);ao[n]||(df(t),ao[n]=!0)}function ct(n){return"undefined"!=typeof Function&&n instanceof Function||"[object Function]"===Object.prototype.toString.call(n)}function ps(n){var i,t;for(t in n)c(n,t)&&(i=n[t],ct(i)?this[t]=i:this["_"+t]=i);this._config=n;this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function cu(n,t){var i,r=ni({},n);for(i in t)c(t,i)&&(ri(n[i])&&ri(t[i])?(r[i]={},ni(r[i],n[i]),ni(r[i],t[i])):null!=t[i]?r[i]=t[i]:delete r[i]);for(i in n)c(n,i)&&!c(t,i)&&ri(n[i])&&(r[i]=ni({},r[i]));return r}function lu(n){null!=n&&this.set(n)}function ws(n,t,i){var r=this._calendar[n]||this._calendar.sameElse;return ct(r)?r.call(t,i):r}function lt(n,t,i){var r=""+Math.abs(n),u=t-r.length;return(n>=0?i?"+":"":"-")+Math.pow(10,Math.max(0,u)).toString().substr(1)+r}function f(n,t,i,r){var u=r;"string"==typeof r&&(u=function(){return this[r]()});n&&(li[n]=u);t&&(li[t[0]]=function(){return lt(u.apply(this,arguments),t[1],t[2])});i&&(li[i]=function(){return this.localeData().ordinal(u.apply(this,arguments),n)})}function bs(n){return n.match(/\[[\s\S]/)?n.replace(/^\[|\]$/g,""):n.replace(/\\/g,"")}function ks(n){for(var t=n.match(hf),i=0,r=t.length;i<r;i++)t[i]=li[t[i]]?li[t[i]]:bs(t[i]);return function(i){for(var f="",u=0;u<r;u++)f+=ct(t[u])?t[u].call(i,n):t[u];return f}}function er(n,t){return n.isValid()?(t=ne(t,n.localeData()),cf[t]=cf[t]||ks(t),cf[t](n)):n.localeData().invalidDate()}function ne(n,t){function r(n){return t.longDateFormat(n)||n}var i=5;for(dr.lastIndex=0;i>=0&&dr.test(n);)n=n.replace(dr,r),dr.lastIndex=0,i-=1;return n}function ds(n){var t=this._longDateFormat[n],i=this._longDateFormat[n.toUpperCase()];return t||!i?t:(this._longDateFormat[n]=i.match(hf).map(function(n){return"MMMM"===n||"MM"===n||"DD"===n||"dddd"===n?n.slice(1):n}).join(""),this._longDateFormat[n])}function gs(){return this._invalidDate}function nh(n){return this._ordinal.replace("%d",n)}function th(n,t,i,r){var u=this._relativeTime[i];return ct(u)?u(n,t,i,r):u.replace(/%d/i,n)}function ih(n,t){var i=this._relativeTime[n>0?"future":"past"];return ct(i)?i(t):i.replace(/%s/i,t)}function b(n,t){var i=n.toLowerCase();nr[i]=nr[i+"s"]=nr[t]=n}function rt(n){if("string"==typeof n)return nr[n]||nr[n.toLowerCase()]}function au(n){var i,t,r={};for(t in n)c(n,t)&&(i=rt(t))&&(r[i]=n[t]);return r}function k(n,t){yo[n]=t}function rh(n){var t,i=[];for(t in n)c(n,t)&&i.push({unit:t,priority:yo[t]});return i.sort(function(n,t){return n.priority-t.priority}),i}function or(n){return n%4==0&&n%100!=0||n%400==0}function ut(n){return n<0?Math.ceil(n)||0:Math.floor(n)}function o(n){var t=+n,i=0;return 0!==t&&isFinite(t)&&(i=ut(t)),i}function oi(n,t){return function(i){return null!=i?(te(this,n,i),r.updateOffset(this,t),this):sr(this,n)}}function sr(n,t){return n.isValid()?n._d["get"+(n._isUTC?"UTC":"")+t]():NaN}function te(n,t,i){n.isValid()&&!isNaN(i)&&("FullYear"===t&&or(n.year())&&1===n.month()&&29===n.date()?(i=o(i),n._d["set"+(n._isUTC?"UTC":"")+t](i,n.month(),hr(i,n.month()))):n._d["set"+(n._isUTC?"UTC":"")+t](i))}function uh(n){return n=rt(n),ct(this[n])?this[n]():this}function fh(n,t){if("object"==typeof n){n=au(n);for(var r=rh(n),u=r.length,i=0;i<u;i++)this[r[i].unit](n[r[i].unit])}else if(n=rt(n),ct(this[n]))return this[n](t);return this}function u(n,t,i){kr[n]=ct(t)?t:function(n){return n&&i?i:t}}function eh(n,t){return c(kr,n)?kr[n](t._strict,t._locale):new RegExp(oh(n))}function oh(n){return nt(n.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(n,t,i,r,u){return t||i||r||u}))}function nt(n){return n.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function l(n,t){var i,r,u=t;for("string"==typeof n&&(n=[n]),vt(t)&&(u=function(n,i){i[t]=o(n)}),r=n.length,i=0;i<r;i++)vf[n[i]]=u}function bi(n,t){l(n,function(n,i,r,u){r._w=r._w||{};t(n,r._w,r,u)})}function sh(n,t,i){null!=t&&c(vf,n)&&vf[n](t,i._a,i,n)}function hh(n,t){return(n%t+t)%t}function hr(n,t){if(isNaN(n)||isNaN(t))return NaN;var i=hh(t,12);return n+=(t-i)/12,1===i?or(n)?29:28:31-i%7%2}function ch(n,t){return n?ft(this._months)?this._months[n.month()]:this._months[(this._months.isFormat||ns).test(t)?"format":"standalone"][n.month()]:ft(this._months)?this._months:this._months.standalone}function lh(n,t){return n?ft(this._monthsShort)?this._monthsShort[n.month()]:this._monthsShort[ns.test(t)?"format":"standalone"][n.month()]:ft(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function ah(n,t,i){var u,r,e,f=n.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],u=0;u<12;++u)e=ht([2e3,u]),this._shortMonthsParse[u]=this.monthsShort(e,"").toLocaleLowerCase(),this._longMonthsParse[u]=this.months(e,"").toLocaleLowerCase();return i?"MMM"===t?(r=p.call(this._shortMonthsParse,f),-1!==r?r:null):(r=p.call(this._longMonthsParse,f),-1!==r?r:null):"MMM"===t?-1!==(r=p.call(this._shortMonthsParse,f))?r:(r=p.call(this._longMonthsParse,f),-1!==r?r:null):-1!==(r=p.call(this._longMonthsParse,f))?r:(r=p.call(this._shortMonthsParse,f),-1!==r?r:null)}function vh(n,t,i){var r,u,f;if(this._monthsParseExact)return ah.call(this,n,t,i);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++)if((u=ht([2e3,r]),i&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(u,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(u,"").replace(".","")+"$","i")),i||this._monthsParse[r]||(f="^"+this.months(u,"")+"|^"+this.monthsShort(u,""),this._monthsParse[r]=new RegExp(f.replace(".",""),"i")),i&&"MMMM"===t&&this._longMonthsParse[r].test(n))||i&&"MMM"===t&&this._shortMonthsParse[r].test(n)||!i&&this._monthsParse[r].test(n))return r}function ie(n,t){var i;if(!n.isValid())return n;if("string"==typeof t)if(/^\d+$/.test(t))t=o(t);else if(t=n.localeData().monthsParse(t),!vt(t))return n;return i=Math.min(n.date(),hr(n.year(),t)),n._d["set"+(n._isUTC?"UTC":"")+"Month"](t,i),n}function re(n){return null!=n?(ie(this,n),r.updateOffset(this,!0),this):sr(this,"Month")}function yh(){return hr(this.year(),this.month())}function ph(n){return this._monthsParseExact?(c(this,"_monthsRegex")||ue.call(this),n?this._monthsShortStrictRegex:this._monthsShortRegex):(c(this,"_monthsShortRegex")||(this._monthsShortRegex=aw),this._monthsShortStrictRegex&&n?this._monthsShortStrictRegex:this._monthsShortRegex)}function wh(n){return this._monthsParseExact?(c(this,"_monthsRegex")||ue.call(this),n?this._monthsStrictRegex:this._monthsRegex):(c(this,"_monthsRegex")||(this._monthsRegex=vw),this._monthsStrictRegex&&n?this._monthsStrictRegex:this._monthsRegex)}function ue(){function f(n,t){return t.length-n.length}for(var i,r=[],u=[],t=[],n=0;n<12;n++)i=ht([2e3,n]),r.push(this.monthsShort(i,"")),u.push(this.months(i,"")),t.push(this.months(i,"")),t.push(this.monthsShort(i,""));for(r.sort(f),u.sort(f),t.sort(f),n=0;n<12;n++)r[n]=nt(r[n]),u[n]=nt(u[n]);for(n=0;n<24;n++)t[n]=nt(t[n]);this._monthsRegex=new RegExp("^("+t.join("|")+")","i");this._monthsShortRegex=this._monthsRegex;this._monthsStrictRegex=new RegExp("^("+u.join("|")+")","i");this._monthsShortStrictRegex=new RegExp("^("+r.join("|")+")","i")}function ki(n){return or(n)?366:365}function bh(){return or(this.year())}function kh(n,t,i,r,u,f,e){var o;return n<100&&n>=0?(o=new Date(n+400,t,i,r,u,f,e),isFinite(o.getFullYear())&&o.setFullYear(n)):o=new Date(n,t,i,r,u,f,e),o}function di(n){var t,i;return n<100&&n>=0?(i=Array.prototype.slice.call(arguments),i[0]=n+400,t=new Date(Date.UTC.apply(null,i)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(n)):t=new Date(Date.UTC.apply(null,arguments)),t}function cr(n,t,i){var r=7+t-i;return-(7+di(n,0,r).getUTCDay()-t)%7+r-1}function fe(n,t,i,r,u){var f,o,s=(7+i-r)%7,h=cr(n,r,u),e=1+7*(t-1)+s+h;return e<=0?(f=n-1,o=ki(f)+e):e>ki(n)?(f=n+1,o=e-ki(n)):(f=n,o=e),{year:f,dayOfYear:o}}function gi(n,t,i){var f,r,e=cr(n.year(),t,i),u=Math.floor((n.dayOfYear()-e-1)/7)+1;return u<1?(r=n.year()-1,f=u+yt(r,t,i)):u>yt(n.year(),t,i)?(f=u-yt(n.year(),t,i),r=n.year()+1):(r=n.year(),f=u),{week:f,year:r}}function yt(n,t,i){var r=cr(n,t,i),u=cr(n+1,t,i);return(ki(n)-r+u)/7}function dh(n){return gi(n,this._week.dow,this._week.doy).week}function gh(){return this._week.dow}function nc(){return this._week.doy}function tc(n){var t=this.localeData().week(this);return null==n?t:this.add(7*(n-t),"d")}function ic(n){var t=gi(this,1,4).week;return null==n?t:this.add(7*(n-t),"d")}function rc(n,t){return"string"!=typeof n?n:isNaN(n)?(n=t.weekdaysParse(n),"number"==typeof n?n:null):parseInt(n,10)}function uc(n,t){return"string"==typeof n?t.weekdaysParse(n)%7||7:isNaN(n)?null:n}function vu(n,t){return n.slice(t,7).concat(n.slice(0,t))}function fc(n,t){var i=ft(this._weekdays)?this._weekdays:this._weekdays[n&&!0!==n&&this._weekdays.isFormat.test(t)?"format":"standalone"];return!0===n?vu(i,this._week.dow):n?i[n.day()]:i}function ec(n){return!0===n?vu(this._weekdaysShort,this._week.dow):n?this._weekdaysShort[n.day()]:this._weekdaysShort}function oc(n){return!0===n?vu(this._weekdaysMin,this._week.dow):n?this._weekdaysMin[n.day()]:this._weekdaysMin}function sc(n,t,i){var f,r,e,u=n.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],f=0;f<7;++f)e=ht([2e3,1]).day(f),this._minWeekdaysParse[f]=this.weekdaysMin(e,"").toLocaleLowerCase(),this._shortWeekdaysParse[f]=this.weekdaysShort(e,"").toLocaleLowerCase(),this._weekdaysParse[f]=this.weekdays(e,"").toLocaleLowerCase();return i?"dddd"===t?(r=p.call(this._weekdaysParse,u),-1!==r?r:null):"ddd"===t?(r=p.call(this._shortWeekdaysParse,u),-1!==r?r:null):(r=p.call(this._minWeekdaysParse,u),-1!==r?r:null):"dddd"===t?-1!==(r=p.call(this._weekdaysParse,u))?r:-1!==(r=p.call(this._shortWeekdaysParse,u))?r:(r=p.call(this._minWeekdaysParse,u),-1!==r?r:null):"ddd"===t?-1!==(r=p.call(this._shortWeekdaysParse,u))?r:-1!==(r=p.call(this._weekdaysParse,u))?r:(r=p.call(this._minWeekdaysParse,u),-1!==r?r:null):-1!==(r=p.call(this._minWeekdaysParse,u))?r:-1!==(r=p.call(this._weekdaysParse,u))?r:(r=p.call(this._shortWeekdaysParse,u),-1!==r?r:null)}function hc(n,t,i){var r,u,f;if(this._weekdaysParseExact)return sc.call(this,n,t,i);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++)if((u=ht([2e3,1]).day(r),i&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(u,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(u,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(u,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(f="^"+this.weekdays(u,"")+"|^"+this.weekdaysShort(u,"")+"|^"+this.weekdaysMin(u,""),this._weekdaysParse[r]=new RegExp(f.replace(".",""),"i")),i&&"dddd"===t&&this._fullWeekdaysParse[r].test(n))||i&&"ddd"===t&&this._shortWeekdaysParse[r].test(n)||i&&"dd"===t&&this._minWeekdaysParse[r].test(n)||!i&&this._weekdaysParse[r].test(n))return r}function cc(n){if(!this.isValid())return null!=n?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=n?(n=rc(n,this.localeData()),this.add(n-t,"d")):t}function lc(n){if(!this.isValid())return null!=n?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==n?t:this.add(n-t,"d")}function ac(n){if(!this.isValid())return null!=n?this:NaN;if(null!=n){var t=uc(n,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7}function vc(n){return this._weekdaysParseExact?(c(this,"_weekdaysRegex")||yu.call(this),n?this._weekdaysStrictRegex:this._weekdaysRegex):(c(this,"_weekdaysRegex")||(this._weekdaysRegex=ww),this._weekdaysStrictRegex&&n?this._weekdaysStrictRegex:this._weekdaysRegex)}function yc(n){return this._weekdaysParseExact?(c(this,"_weekdaysRegex")||yu.call(this),n?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(c(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=bw),this._weekdaysShortStrictRegex&&n?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function pc(n){return this._weekdaysParseExact?(c(this,"_weekdaysRegex")||yu.call(this),n?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(c(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=kw),this._weekdaysMinStrictRegex&&n?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function yu(){function t(n,t){return t.length-n.length}for(var r,u,f,e,o=[],s=[],h=[],n=[],i=0;i<7;i++)r=ht([2e3,1]).day(i),u=nt(this.weekdaysMin(r,"")),f=nt(this.weekdaysShort(r,"")),e=nt(this.weekdays(r,"")),o.push(u),s.push(f),h.push(e),n.push(u),n.push(f),n.push(e);o.sort(t);s.sort(t);h.sort(t);n.sort(t);this._weekdaysRegex=new RegExp("^("+n.join("|")+")","i");this._weekdaysShortRegex=this._weekdaysRegex;this._weekdaysMinRegex=this._weekdaysRegex;this._weekdaysStrictRegex=new RegExp("^("+h.join("|")+")","i");this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i");this._weekdaysMinStrictRegex=new RegExp("^("+o.join("|")+")","i")}function pu(){return this.hours()%12||12}function wc(){return this.hours()||24}function ee(n,t){f(n,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function oe(n,t){return t._meridiemParse}function bc(n){return"p"===(n+"").toLowerCase().charAt(0)}function kc(n,t,i){return n>11?i?"pm":"PM":i?"am":"AM"}function dc(n,t){for(var r=Math.min(n.length,t.length),i=0;i<r;i+=1)if(n[i]!==t[i])return i;return r}function se(n){return n?n.toLowerCase().replace("_","-"):n}function gc(n){for(var i,t,f,r,u=0;u<n.length;){for(r=se(n[u]).split("-"),i=r.length,t=se(n[u+1]),t=t?t.split("-"):null;i>0;){if(f=lr(r.slice(0,i).join("-")))return f;if(t&&t.length>=i&&dc(r,t)>=i-1)break;i--}u++}return ir}function nl(n){return null!=n.match("^[^/\\\\]*$")}function lr(i){var r=null;if(void 0===y[i]&&void 0!==n&&n&&n.exports&&nl(i))try{r=ir._abbr;t,function(){var n=new Error('Cannot find module "./locale"');throw n.code="MODULE_NOT_FOUND",n;}();ti(r)}catch(n){y[i]=null}return y[i]}function ti(n,t){var i;return n&&(i=g(t)?pt(n):wu(n,t),i?ir=i:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+n+" not found. Did you forget to load it?")),ir._abbr}function wu(n,t){if(null!==t){var r,i=rs;if(t.abbr=n,null!=y[n])gf("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),i=y[n]._config;else if(null!=t.parentLocale)if(null!=y[t.parentLocale])i=y[t.parentLocale]._config;else{if(null==(r=lr(t.parentLocale)))return rr[t.parentLocale]||(rr[t.parentLocale]=[]),rr[t.parentLocale].push({name:n,config:t}),null;i=r._config}return y[n]=new lu(cu(i,t)),rr[n]&&rr[n].forEach(function(n){wu(n.name,n.config)}),ti(n),y[n]}return delete y[n],null}function tl(n,t){if(null!=t){var r,i,u=rs;null!=y[n]&&null!=y[n].parentLocale?y[n].set(cu(y[n]._config,t)):(i=lr(n),null!=i&&(u=i._config),t=cu(u,t),null==i&&(t.abbr=n),r=new lu(t),r.parentLocale=y[n],y[n]=r);ti(n)}else null!=y[n]&&(null!=y[n].parentLocale?(y[n]=y[n].parentLocale,n===ti()&&ti(n)):null!=y[n]&&delete y[n]);return y[n]}function pt(n){var t;if(n&&n._locale&&n._locale._abbr&&(n=n._locale._abbr),!n)return ir;if(!ft(n)){if(t=lr(n))return t;n=[n]}return gc(n)}function il(){return vo(y)}function bu(n){var i,t=n._a;return t&&-2===e(n).overflow&&(i=t[bt]<0||t[bt]>11?bt:t[at]<1||t[at]>hr(t[d],t[bt])?at:t[w]<0||t[w]>24||24===t[w]&&(0!==t[st]||0!==t[kt]||0!==t[ei])?w:t[st]<0||t[st]>59?st:t[kt]<0||t[kt]>59?kt:t[ei]<0||t[ei]>999?ei:-1,e(n)._overflowDayOfYear&&(i<d||i>at)&&(i=at),e(n)._overflowWeeks&&-1===i&&(i=hw),e(n)._overflowWeekday&&-1===i&&(i=cw),e(n).overflow=i),n}function he(n){var t,r,o,f,u,s,h=n._i,i=gw.exec(h)||nb.exec(h),c=uu.length,l=pf.length;if(i){for(e(n).iso=!0,t=0,r=c;t<r;t++)if(uu[t][1].exec(i[1])){f=uu[t][0];o=!1!==uu[t][2];break}if(null==f)return void(n._isValid=!1);if(i[3]){for(t=0,r=l;t<r;t++)if(pf[t][1].exec(i[3])){u=(i[2]||" ")+pf[t][0];break}if(null==u)return void(n._isValid=!1)}if(!o&&null!=u)return void(n._isValid=!1);if(i[4]){if(!tb.exec(i[4]))return void(n._isValid=!1);s="Z"}n._f=f+(u||"")+(s||"");du(n)}else n._isValid=!1}function rl(n,t,i,r,u,f){var e=[ul(n),go.indexOf(t),parseInt(i,10),parseInt(r,10),parseInt(u,10)];return f&&e.push(parseInt(f,10)),e}function ul(n){var t=parseInt(n,10);return t<=49?2e3+t:t<=999?1900+t:t}function fl(n){return n.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function el(n,t,i){return n&&is.indexOf(n)!==new Date(t[0],t[1],t[2]).getDay()?(e(i).weekdayMismatch=!0,i._isValid=!1,!1):!0}function ol(n,t,i){if(n)return ub[n];if(t)return 0;var r=parseInt(i,10),u=r%100;return(r-u)/100*60+u}function ce(n){var i,t=rb.exec(fl(n._i));if(t){if(i=rl(t[4],t[3],t[2],t[5],t[6],t[7]),!el(t[1],i,n))return;n._a=i;n._tzm=ol(t[8],t[9],t[10]);n._d=di.apply(null,n._a);n._d.setUTCMinutes(n._d.getUTCMinutes()-n._tzm);e(n).rfc2822=!0}else n._isValid=!1}function sl(n){var t=ib.exec(n._i);if(null!==t)return void(n._d=new Date(+t[1]));he(n);!1===n._isValid&&(delete n._isValid,ce(n),!1===n._isValid&&(delete n._isValid,n._strict?n._isValid=!1:r.createFromInputFallback(n)))}function si(n,t,i){return null!=n?n:null!=t?t:i}function hl(n){var t=new Date(r.now());return n._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function ku(n){var t,i,r,o,u,f=[];if(!n._d){for(r=hl(n),n._w&&null==n._a[at]&&null==n._a[bt]&&cl(n),null!=n._dayOfYear&&(u=si(n._a[d],r[d]),(n._dayOfYear>ki(u)||0===n._dayOfYear)&&(e(n)._overflowDayOfYear=!0),i=di(u,0,n._dayOfYear),n._a[bt]=i.getUTCMonth(),n._a[at]=i.getUTCDate()),t=0;t<3&&null==n._a[t];++t)n._a[t]=f[t]=r[t];for(;t<7;t++)n._a[t]=f[t]=null==n._a[t]?2===t?1:0:n._a[t];24===n._a[w]&&0===n._a[st]&&0===n._a[kt]&&0===n._a[ei]&&(n._nextDay=!0,n._a[w]=0);n._d=(n._useUTC?di:kh).apply(null,f);o=n._useUTC?n._d.getUTCDay():n._d.getDay();null!=n._tzm&&n._d.setUTCMinutes(n._d.getUTCMinutes()-n._tzm);n._nextDay&&(n._a[w]=24);n._w&&void 0!==n._w.d&&n._w.d!==o&&(e(n).weekdayMismatch=!0)}}function cl(n){var t,o,u,i,r,f,h,s,c;t=n._w;null!=t.GG||null!=t.W||null!=t.E?(r=1,f=4,o=si(t.GG,n._a[d],gi(a(),1,4).year),u=si(t.W,1),((i=si(t.E,1))<1||i>7)&&(s=!0)):(r=n._locale._week.dow,f=n._locale._week.doy,c=gi(a(),r,f),o=si(t.gg,n._a[d],c.year),u=si(t.w,c.week),null!=t.d?((i=t.d)<0||i>6)&&(s=!0):null!=t.e?(i=t.e+r,(t.e<0||t.e>6)&&(s=!0)):i=r);u<1||u>yt(o,r,f)?e(n)._overflowWeeks=!0:null!=s?e(n)._overflowWeekday=!0:(h=fe(o,u,i,r,f),n._a[d]=h.year,n._dayOfYear=h.dayOfYear)}function du(n){if(n._f===r.ISO_8601)return void he(n);if(n._f===r.RFC_2822)return void ce(n);n._a=[];e(n).empty=!0;var f,t,o,u,s,h,c,i=""+n._i,a=i.length,l=0;for(o=ne(n._f,n._locale).match(hf)||[],c=o.length,f=0;f<c;f++)u=o[f],t=(i.match(eh(u,n))||[])[0],t&&(s=i.substr(0,i.indexOf(t)),s.length>0&&e(n).unusedInput.push(s),i=i.slice(i.indexOf(t)+t.length),l+=t.length),li[u]?(t?e(n).empty=!1:e(n).unusedTokens.push(u),sh(u,t,n)):n._strict&&!t&&e(n).unusedTokens.push(u);e(n).charsLeftOver=a-l;i.length>0&&e(n).unusedInput.push(i);n._a[w]<=12&&!0===e(n).bigHour&&n._a[w]>0&&(e(n).bigHour=void 0);e(n).parsedDateParts=n._a.slice(0);e(n).meridiem=n._meridiem;n._a[w]=ll(n._locale,n._a[w],n._meridiem);h=e(n).era;null!==h&&(n._a[d]=n._locale.erasConvertYear(h,n._a[d]));ku(n);bu(n)}function ll(n,t,i){var r;return null==i?t:null!=n.meridiemHour?n.meridiemHour(t,i):null!=n.isPM?(r=n.isPM(i),r&&t<12&&(t+=12),r||12!==t||(t=0),t):t}function al(n){var t,o,r,u,i,f,s=!1,h=n._f.length;if(0===h)return e(n).invalidFormat=!0,void(n._d=new Date(NaN));for(u=0;u<h;u++)i=0,f=!1,t=hu({},n),null!=n._useUTC&&(t._useUTC=n._useUTC),t._f=n._f[u],du(t),su(t)&&(f=!0),i+=e(t).charsLeftOver,i+=10*e(t).unusedTokens.length,e(t).score=i,s?i<r&&(r=i,o=t):(null==r||i<r||f)&&(r=i,o=t,f&&(s=!0));ni(n,o||t)}function vl(n){if(!n._d){var t=au(n._i),i=void 0===t.day?t.date:t.day;n._a=kf([t.year,t.month,i,t.hour,t.minute,t.second,t.millisecond],function(n){return n&&parseInt(n,10)});ku(n)}}function yl(n){var t=new wi(bu(le(n)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function le(n){var t=n._i,i=n._f;return n._locale=n._locale||pt(n._l),null===t||void 0===i&&""===t?fr({nullInput:!0}):("string"==typeof t&&(n._i=t=n._locale.preparse(t)),et(t)?new wi(bu(t)):(pi(t)?n._d=t:ft(i)?al(n):i?du(n):pl(n),su(n)||(n._d=null),n))}function pl(n){var t=n._i;g(t)?n._d=new Date(r.now()):pi(t)?n._d=new Date(t.valueOf()):"string"==typeof t?sl(n):ft(t)?(n._a=kf(t.slice(0),function(n){return parseInt(n,10)}),ku(n)):ri(t)?vl(n):vt(t)?n._d=new Date(t):r.createFromInputFallback(n)}function ae(n,t,i,r,u){var f={};return!0!==t&&!1!==t||(r=t,t=void 0),!0!==i&&!1!==i||(r=i,i=void 0),(ri(n)&&ou(n)||ft(n)&&0===n.length)&&(n=void 0),f._isAMomentObject=!0,f._useUTC=f._isUTC=u,f._l=i,f._i=n,f._f=t,f._strict=r,yl(f)}function a(n,t,i,r){return ae(n,t,i,r,!1)}function ve(n,t){var r,i;if(1===t.length&&ft(t[0])&&(t=t[0]),!t.length)return a();for(r=t[0],i=1;i<t.length;++i)t[i].isValid()&&!t[i][n](r)||(r=t[i]);return r}function wl(){return ve("isBefore",[].slice.call(arguments,0))}function bl(){return ve("isAfter",[].slice.call(arguments,0))}function kl(n){var i,t,r=!1,u=ur.length;for(i in n)if(c(n,i)&&(-1===p.call(ur,i)||null!=n[i]&&isNaN(n[i])))return!1;for(t=0;t<u;++t)if(n[ur[t]]){if(r)return!1;parseFloat(n[ur[t]])!==o(n[ur[t]])&&(r=!0)}return!0}function dl(){return this._isValid}function gl(){return ot(NaN)}function ar(n){var t=au(n),i=t.year||0,r=t.quarter||0,u=t.month||0,f=t.week||t.isoWeek||0,e=t.day||0,o=t.hour||0,s=t.minute||0,h=t.second||0,c=t.millisecond||0;this._isValid=kl(t);this._milliseconds=+c+1e3*h+6e4*s+36e5*o;this._days=+e+7*f;this._months=+u+3*r+12*i;this._data={};this._locale=pt();this._bubble()}function vr(n){return n instanceof ar}function gu(n){return n<0?-1*Math.round(-1*n):Math.round(n)}function na(n,t,i){for(var f=Math.min(n.length,t.length),e=Math.abs(n.length-t.length),u=0,r=0;r<f;r++)(i&&n[r]!==t[r]||!i&&o(n[r])!==o(t[r]))&&u++;return u+e}function ye(n,t){f(n,0,0,function(){var n=this.utcOffset(),i="+";return n<0&&(n=-n,i="-"),i+lt(~~(n/60),2)+t+lt(~~n%60,2)})}function nf(n,t){var f,i,r,u=(t||"").match(n);return null===u?null:(f=u[u.length-1]||[],i=(f+"").match(us)||["-",0,0],r=60*i[1]+o(i[2]),0===r?0:"+"===i[0]?r:-r)}function tf(n,t){var i,u;return t._isUTC?(i=t.clone(),u=(et(n)||pi(n)?n.valueOf():a(n).valueOf())-i.valueOf(),i._d.setTime(i._d.valueOf()+u),r.updateOffset(i,!1),i):a(n).local()}function rf(n){return-Math.round(n._d.getTimezoneOffset())}function ta(n,t,i){var u,f=this._offset||0;if(!this.isValid())return null!=n?this:NaN;if(null!=n){if("string"==typeof n){if(null===(n=nf(ru,n)))return this}else Math.abs(n)<16&&!i&&(n*=60);return!this._isUTC&&t&&(u=rf(this)),this._offset=n,this._isUTC=!0,null!=u&&this.add(u,"m"),f!==n&&(!t||this._changeInProgress?ke(this,ot(n-f,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,r.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?f:rf(this)}function ia(n,t){return null!=n?("string"!=typeof n&&(n=-n),this.utcOffset(n,t),this):-this.utcOffset()}function ra(n){return this.utcOffset(0,n)}function ua(n){return this._isUTC&&(this.utcOffset(0,n),this._isUTC=!1,n&&this.subtract(rf(this),"m")),this}function fa(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var n=nf(sw,this._i);null!=n?this.utcOffset(n):this.utcOffset(0,!0)}return this}function ea(n){return!!this.isValid()&&(n=n?a(n).utcOffset():0,(this.utcOffset()-n)%60==0)}function oa(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function sa(){if(!g(this._isDSTShifted))return this._isDSTShifted;var t,n={};return hu(n,this),n=le(n),n._a?(t=n._isUTC?ht(n._a):a(n._a),this._isDSTShifted=this.isValid()&&na(n._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function ha(){return!!this.isValid()&&!this._isUTC}function ca(){return!!this.isValid()&&this._isUTC}function pe(){return!!this.isValid()&&this._isUTC&&0===this._offset}function ot(n,t){var u,f,e,i=n,r=null;return vr(n)?i={ms:n._milliseconds,d:n._days,M:n._months}:vt(n)||!isNaN(+n)?(i={},t?i[t]=+n:i.milliseconds=+n):(r=fs.exec(n))?(u="-"===r[1]?-1:1,i={y:0,d:o(r[at])*u,h:o(r[w])*u,m:o(r[st])*u,s:o(r[kt])*u,ms:o(gu(1e3*r[ei]))*u}):(r=es.exec(n))?(u="-"===r[1]?-1:1,i={y:ui(r[2],u),M:ui(r[3],u),w:ui(r[4],u),d:ui(r[5],u),h:ui(r[6],u),m:ui(r[7],u),s:ui(r[8],u)}):null==i?i={}:"object"==typeof i&&("from"in i||"to"in i)&&(e=la(a(i.from),a(i.to)),i={},i.ms=e.milliseconds,i.M=e.months),f=new ar(i),vr(n)&&c(n,"_locale")&&(f._locale=n._locale),vr(n)&&c(n,"_isValid")&&(f._isValid=n._isValid),f}function ui(n,t){var i=n&&parseFloat(n.replace(",","."));return(isNaN(i)?0:i)*t}function we(n,t){var i={};return i.months=t.month()-n.month()+12*(t.year()-n.year()),n.clone().add(i.months,"M").isAfter(t)&&--i.months,i.milliseconds=+t-+n.clone().add(i.months,"M"),i}function la(n,t){var i;return n.isValid()&&t.isValid()?(t=tf(t,n),n.isBefore(t)?i=we(n,t):(i=we(t,n),i.milliseconds=-i.milliseconds,i.months=-i.months),i):{milliseconds:0,months:0}}function be(n,t){return function(i,r){var u,f;return null===r||isNaN(+r)||(gf(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),f=i,i=r,r=f),u=ot(i,r),ke(this,u,n),this}}function ke(n,t,i,u){var o=t._milliseconds,f=gu(t._days),e=gu(t._months);n.isValid()&&(u=null==u||u,e&&ie(n,sr(n,"Month")+e*i),f&&te(n,"Date",sr(n,"Date")+f*i),o&&n._d.setTime(n._d.valueOf()+o*i),u&&r.updateOffset(n,f||e))}function de(n){return"string"==typeof n||n instanceof String}function aa(n){return et(n)||pi(n)||de(n)||vt(n)||ya(n)||va(n)||null===n||void 0===n}function va(n){for(var r,f=ri(n)&&!ou(n),i=!1,u=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],e=u.length,t=0;t<e;t+=1)r=u[t],i=i||c(n,r);return f&&i}function ya(n){var t=ft(n),i=!1;return t&&(i=0===n.filter(function(t){return!vt(t)&&de(n)}).length),t&&i}function pa(n){for(var r,f=ri(n)&&!ou(n),i=!1,u=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],t=0;t<u.length;t+=1)r=u[t],i=i||c(n,r);return f&&i}function wa(n,t){var i=n.diff(t,"days",!0);return i<-6?"sameElse":i<-1?"lastWeek":i<0?"lastDay":i<1?"sameDay":i<2?"nextDay":i<7?"nextWeek":"sameElse"}function ba(n,t){1===arguments.length&&(arguments[0]?aa(arguments[0])?(n=arguments[0],t=void 0):pa(arguments[0])&&(t=arguments[0],n=void 0):(n=void 0,t=void 0));var u=n||a(),f=tf(u,this).startOf("day"),i=r.calendarFormat(this,f)||"sameElse",e=t&&(ct(t[i])?t[i].call(this,u):t[i]);return this.format(e||this.localeData().calendar(i,this,a(u)))}function ka(){return new wi(this)}function da(n,t){var i=et(n)?n:a(n);return!(!this.isValid()||!i.isValid())&&(t=rt(t)||"millisecond","millisecond"===t?this.valueOf()>i.valueOf():i.valueOf()<this.clone().startOf(t).valueOf())}function ga(n,t){var i=et(n)?n:a(n);return!(!this.isValid()||!i.isValid())&&(t=rt(t)||"millisecond","millisecond"===t?this.valueOf()<i.valueOf():this.clone().endOf(t).valueOf()<i.valueOf())}function nv(n,t,i,r){var u=et(n)?n:a(n),f=et(t)?t:a(t);return!!(this.isValid()&&u.isValid()&&f.isValid())&&(r=r||"()",("("===r[0]?this.isAfter(u,i):!this.isBefore(u,i))&&(")"===r[1]?this.isBefore(f,i):!this.isAfter(f,i)))}function tv(n,t){var i,r=et(n)?n:a(n);return!(!this.isValid()||!r.isValid())&&(t=rt(t)||"millisecond","millisecond"===t?this.valueOf()===r.valueOf():(i=r.valueOf(),this.clone().startOf(t).valueOf()<=i&&i<=this.clone().endOf(t).valueOf()))}function iv(n,t){return this.isSame(n,t)||this.isAfter(n,t)}function rv(n,t){return this.isSame(n,t)||this.isBefore(n,t)}function uv(n,t,i){var r,f,u;if(!this.isValid())return NaN;if(r=tf(n,this),!r.isValid())return NaN;switch(f=6e4*(r.utcOffset()-this.utcOffset()),t=rt(t)){case"year":u=yr(this,r)/12;break;case"month":u=yr(this,r);break;case"quarter":u=yr(this,r)/3;break;case"second":u=(this-r)/1e3;break;case"minute":u=(this-r)/6e4;break;case"hour":u=(this-r)/36e5;break;case"day":u=(this-r-f)/864e5;break;case"week":u=(this-r-f)/6048e5;break;default:u=this-r}return i?u:ut(u)}function yr(n,t){if(n.date()<t.date())return-yr(t,n);var r,f,u=12*(t.year()-n.year())+(t.month()-n.month()),i=n.clone().add(u,"months");return t-i<0?(r=n.clone().add(u-1,"months"),f=(t-i)/(i-r)):(r=n.clone().add(u+1,"months"),f=(t-i)/(r-i)),-(u+f)||0}function fv(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function ev(n){if(!this.isValid())return null;var i=!0!==n,t=i?this.clone().utc():this;return t.year()<0||t.year()>9999?er(t,i?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):ct(Date.prototype.toISOString)?i?this.toDate().toISOString():new Date(this.valueOf()+6e4*this.utcOffset()).toISOString().replace("Z",er(t,"Z")):er(t,i?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function ov(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var n,t,i,r,u="moment",f="";return this.isLocal()||(u=0===this.utcOffset()?"moment.utc":"moment.parseZone",f="Z"),n="["+u+'("]',t=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",i="-MM-DD[T]HH:mm:ss.SSS",r=f+'[")]',this.format(n+t+i+r)}function sv(n){n||(n=this.isUtc()?r.defaultFormatUtc:r.defaultFormat);var t=er(this,n);return this.localeData().postformat(t)}function hv(n,t){return this.isValid()&&(et(n)&&n.isValid()||a(n).isValid())?ot({to:this,from:n}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function cv(n){return this.from(a(),n)}function lv(n,t){return this.isValid()&&(et(n)&&n.isValid()||a(n).isValid())?ot({from:this,to:n}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function av(n){return this.to(a(),n)}function ge(n){var t;return void 0===n?this._locale._abbr:(t=pt(n),null!=t&&(this._locale=t),this)}function no(){return this._locale}function hi(n,t){return(n%t+t)%t}function to(n,t,i){return n<100&&n>=0?new Date(n+400,t,i)-cs:new Date(n,t,i).valueOf()}function io(n,t,i){return n<100&&n>=0?Date.UTC(n+400,t,i)-cs:Date.UTC(n,t,i)}function vv(n){var t,i;if(void 0===(n=rt(n))||"millisecond"===n||!this.isValid())return this;switch(i=this._isUTC?io:to,n){case"year":t=i(this.year(),0,1);break;case"quarter":t=i(this.year(),this.month()-this.month()%3,1);break;case"month":t=i(this.year(),this.month(),1);break;case"week":t=i(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=i(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=i(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf();t-=hi(t+(this._isUTC?0:this.utcOffset()*vi),eu);break;case"minute":t=this._d.valueOf();t-=hi(t,vi);break;case"second":t=this._d.valueOf();t-=hi(t,fu)}return this._d.setTime(t),r.updateOffset(this,!0),this}function yv(n){var t,i;if(void 0===(n=rt(n))||"millisecond"===n||!this.isValid())return this;switch(i=this._isUTC?io:to,n){case"year":t=i(this.year()+1,0,1)-1;break;case"quarter":t=i(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=i(this.year(),this.month()+1,1)-1;break;case"week":t=i(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=i(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=i(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf();t+=eu-hi(t+(this._isUTC?0:this.utcOffset()*vi),eu)-1;break;case"minute":t=this._d.valueOf();t+=vi-hi(t,vi)-1;break;case"second":t=this._d.valueOf();t+=fu-hi(t,fu)-1}return this._d.setTime(t),r.updateOffset(this,!0),this}function pv(){return this._d.valueOf()-6e4*(this._offset||0)}function wv(){return Math.floor(this.valueOf()/1e3)}function bv(){return new Date(this.valueOf())}function kv(){var n=this;return[n.year(),n.month(),n.date(),n.hour(),n.minute(),n.second(),n.millisecond()]}function dv(){var n=this;return{years:n.year(),months:n.month(),date:n.date(),hours:n.hours(),minutes:n.minutes(),seconds:n.seconds(),milliseconds:n.milliseconds()}}function gv(){return this.isValid()?this.toISOString():null}function ny(){return su(this)}function ty(){return ni({},e(this))}function iy(){return e(this).overflow}function ry(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function uy(){for(var i,t=this._eras||pt("en")._eras,n=0,u=t.length;n<u;++n){switch(typeof t[n].since){case"string":i=r(t[n].since).startOf("day");t[n].since=i.valueOf()}switch(typeof t[n].until){case"undefined":t[n].until=1/0;break;case"string":i=r(t[n].until).startOf("day").valueOf();t[n].until=i.valueOf()}}return t}function fy(n,t,i){var r,s,f,e,o,u=this.eras();for(n=n.toUpperCase(),r=0,s=u.length;r<s;++r)if(f=u[r].name.toUpperCase(),e=u[r].abbr.toUpperCase(),o=u[r].narrow.toUpperCase(),i)switch(t){case"N":case"NN":case"NNN":if(e===n)return u[r];break;case"NNNN":if(f===n)return u[r];break;case"NNNNN":if(o===n)return u[r]}else if([f,e,o].indexOf(n)>=0)return u[r]}function ey(n,t){var i=n.since<=n.until?1:-1;return void 0===t?r(n.since).year():r(n.since).year()+(t-n.offset)*i}function oy(){for(var i,t=this.localeData().eras(),n=0,r=t.length;n<r;++n)if((i=this.clone().startOf("day").valueOf(),t[n].since<=i&&i<=t[n].until)||t[n].until<=i&&i<=t[n].since)return t[n].name;return""}function sy(){for(var i,t=this.localeData().eras(),n=0,r=t.length;n<r;++n)if((i=this.clone().startOf("day").valueOf(),t[n].since<=i&&i<=t[n].until)||t[n].until<=i&&i<=t[n].since)return t[n].narrow;return""}function hy(){for(var i,t=this.localeData().eras(),n=0,r=t.length;n<r;++n)if((i=this.clone().startOf("day").valueOf(),t[n].since<=i&&i<=t[n].until)||t[n].until<=i&&i<=t[n].since)return t[n].abbr;return""}function cy(){for(var f,i,t=this.localeData().eras(),n=0,u=t.length;n<u;++n)if(f=t[n].since<=t[n].until?1:-1,i=this.clone().startOf("day").valueOf(),t[n].since<=i&&i<=t[n].until||t[n].until<=i&&i<=t[n].since)return(this.year()-r(t[n].since).year())*f+t[n].offset;return this.year()}function ly(n){return c(this,"_erasNameRegex")||ff.call(this),n?this._erasNameRegex:this._erasRegex}function ay(n){return c(this,"_erasAbbrRegex")||ff.call(this),n?this._erasAbbrRegex:this._erasRegex}function vy(n){return c(this,"_erasNarrowRegex")||ff.call(this),n?this._erasNarrowRegex:this._erasRegex}function uf(n,t){return t.erasAbbrRegex(n)}function yy(n,t){return t.erasNameRegex(n)}function py(n,t){return t.erasNarrowRegex(n)}function wy(n,t){return t._eraYearOrdinalRegex||ai}function ff(){for(var u=[],f=[],e=[],i=[],t=this.eras(),n=0,r=t.length;n<r;++n)f.push(nt(t[n].name)),u.push(nt(t[n].abbr)),e.push(nt(t[n].narrow)),i.push(nt(t[n].name)),i.push(nt(t[n].abbr)),i.push(nt(t[n].narrow));this._erasRegex=new RegExp("^("+i.join("|")+")","i");this._erasNameRegex=new RegExp("^("+f.join("|")+")","i");this._erasAbbrRegex=new RegExp("^("+u.join("|")+")","i");this._erasNarrowRegex=new RegExp("^("+e.join("|")+")","i")}function pr(n,t){f(0,[n,n.length],0,t)}function by(n){return ro.call(this,n,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function ky(n){return ro.call(this,n,this.isoWeek(),this.isoWeekday(),1,4)}function dy(){return yt(this.year(),1,4)}function gy(){return yt(this.isoWeekYear(),1,4)}function np(){var n=this.localeData()._week;return yt(this.year(),n.dow,n.doy)}function tp(){var n=this.localeData()._week;return yt(this.weekYear(),n.dow,n.doy)}function ro(n,t,i,r,u){var f;return null==n?gi(this,r,u).year:(f=yt(n,r,u),t>f&&(t=f),ip.call(this,n,t,i,r,u))}function ip(n,t,i,r,u){var e=fe(n,t,i,r,u),f=di(e.year,0,e.dayOfYear);return this.year(f.getUTCFullYear()),this.month(f.getUTCMonth()),this.date(f.getUTCDate()),this}function rp(n){return null==n?Math.ceil((this.month()+1)/3):this.month(3*(n-1)+this.month()%3)}function up(n){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==n?t:this.add(n-t,"d")}function fp(n,t){t[ei]=o(1e3*("0."+n))}function ep(){return this._isUTC?"UTC":""}function op(){return this._isUTC?"Coordinated Universal Time":""}function sp(n){return a(1e3*n)}function hp(){return a.apply(null,arguments).parseZone()}function uo(n){return n}function wr(n,t,i,r){var u=pt(),f=ht().set(r,t);return u[i](f,n)}function fo(n,t,i){if(vt(n)&&(t=n,n=void 0),n=n||"",null!=t)return wr(n,t,i,"month");for(var u=[],r=0;r<12;r++)u[r]=wr(n,r,i,"month");return u}function ef(n,t,i,r){"boolean"==typeof n?(vt(t)&&(i=t,t=void 0),t=t||""):(t=n,i=t,n=!1,vt(t)&&(i=t,t=void 0),t=t||"");var u,o=pt(),f=n?o._week.dow:0,e=[];if(null!=i)return wr(t,(i+f)%7,r,"day");for(u=0;u<7;u++)e[u]=wr(t,(u+f)%7,r,"day");return e}function cp(n,t){return fo(n,t,"months")}function lp(n,t){return fo(n,t,"monthsShort")}function ap(n,t,i){return ef(n,t,i,"weekdays")}function vp(n,t,i){return ef(n,t,i,"weekdaysShort")}function yp(n,t,i){return ef(n,t,i,"weekdaysMin")}function pp(){var n=this._data;return this._milliseconds=dt(this._milliseconds),this._days=dt(this._days),this._months=dt(this._months),n.milliseconds=dt(n.milliseconds),n.seconds=dt(n.seconds),n.minutes=dt(n.minutes),n.hours=dt(n.hours),n.months=dt(n.months),n.years=dt(n.years),this}function eo(n,t,i,r){var u=ot(t,i);return n._milliseconds+=r*u._milliseconds,n._days+=r*u._days,n._months+=r*u._months,n._bubble()}function wp(n,t){return eo(this,n,t,1)}function bp(n,t){return eo(this,n,t,-1)}function oo(n){return n<0?Math.floor(n):Math.ceil(n)}function kp(){var u,f,e,s,o,r=this._milliseconds,n=this._days,t=this._months,i=this._data;return r>=0&&n>=0&&t>=0||r<=0&&n<=0&&t<=0||(r+=864e5*oo(of(t)+n),n=0,t=0),i.milliseconds=r%1e3,u=ut(r/1e3),i.seconds=u%60,f=ut(u/60),i.minutes=f%60,e=ut(f/60),i.hours=e%24,n+=ut(e/24),o=ut(so(n)),t+=o,n-=oo(of(o)),s=ut(t/12),t%=12,i.days=n,i.months=t,i.years=s,this}function so(n){return 4800*n/146097}function of(n){return 146097*n/4800}function dp(n){if(!this.isValid())return NaN;var t,r,i=this._milliseconds;if("month"===(n=rt(n))||"quarter"===n||"year"===n)switch(t=this._days+i/864e5,r=this._months+so(t),n){case"month":return r;case"quarter":return r/3;case"year":return r/12}else switch(t=this._days+Math.round(of(this._months)),n){case"week":return t/7+i/6048e5;case"day":return t+i/864e5;case"hour":return 24*t+i/36e5;case"minute":return 1440*t+i/6e4;case"second":return 86400*t+i/1e3;case"millisecond":return Math.floor(864e5*t)+i;default:throw new Error("Unknown unit "+n);}}function gp(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*o(this._months/12):NaN}function wt(n){return function(){return this.as(n)}}function nw(){return ot(this)}function tw(n){return n=rt(n),this.isValid()?this[n+"s"]():NaN}function fi(n){return function(){return this.isValid()?this._data[n]:NaN}}function iw(){return ut(this.days()/7)}function rw(n,t,i,r,u){return u.relativeTime(t||1,!!i,n,r)}function uw(n,t,i,r){var f=ot(n).abs(),e=gt(f.as("s")),o=gt(f.as("m")),s=gt(f.as("h")),h=gt(f.as("d")),c=gt(f.as("M")),l=gt(f.as("w")),a=gt(f.as("y")),u=e<=i.ss&&["s",e]||e<i.s&&["ss",e]||o<=1&&["m"]||o<i.m&&["mm",o]||s<=1&&["h"]||s<i.h&&["hh",s]||h<=1&&["d"]||h<i.d&&["dd",h];return null!=i.w&&(u=u||l<=1&&["w"]||l<i.w&&["ww",l]),u=u||c<=1&&["M"]||c<i.M&&["MM",c]||a<=1&&["y"]||["yy",a],u[2]=t,u[3]=+n>0,u[4]=r,rw.apply(null,u)}function fw(n){return void 0===n?gt:"function"==typeof n&&(gt=n,!0)}function ew(n,t){return void 0!==yi[n]&&(void 0===t?yi[n]:(yi[n]=t,"s"===n&&(yi.ss=t-1),!0))}function ow(n,t){if(!this.isValid())return this.localeData().invalidDate();var i,r,u=!1,f=yi;return"object"==typeof n&&(t=n,n=!1),"boolean"==typeof n&&(u=n),"object"==typeof t&&(f=Object.assign({},yi,t),null!=t.s&&null==t.ss&&(f.ss=t.s-1)),i=this.localeData(),r=uw(this,!u,f,i),u&&(r=i.pastFuture(+this,r)),i.postformat(r)}function ci(n){return(n>0)-(n<0)||+n}function br(){if(!this.isValid())return this.localeData().invalidDate();var n,r,e,s,h,o,c,u,t=bf(this._milliseconds)/1e3,l=bf(this._days),f=bf(this._months),i=this.asSeconds();return i?(n=ut(t/60),r=ut(n/60),t%=60,n%=60,e=ut(f/12),f%=12,s=t?t.toFixed(3).replace(/\.?0+$/,""):"",h=i<0?"-":"",o=ci(this._months)!==ci(i)?"-":"",c=ci(this._days)!==ci(i)?"-":"",u=ci(this._milliseconds)!==ci(i)?"-":"",h+"P"+(e?o+e+"Y":"")+(f?o+f+"M":"")+(l?c+l+"D":"")+(r||n||t?"T":"")+(r?u+r+"H":"")+(n?u+n+"M":"")+(t?u+s+"S":"")):"P0D"}var ho,co,vo,yf,ts,us,fs,es,os,ss,wf,ls,as,ii,vs,i,h;co=Array.prototype.some?Array.prototype.some:function(n){for(var i=Object(this),r=i.length>>>0,t=0;t<r;t++)if(t in i&&n.call(this,i[t],t,i))return!0;return!1};var lo=r.momentProperties=[],sf=!1,ao={};r.suppressDeprecationWarnings=!1;r.deprecationHandler=null;vo=Object.keys?Object.keys:function(n){var t,i=[];for(t in n)c(n,t)&&i.push(t);return i};var kr,hf=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,dr=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,cf={},li={},nr={},yo={},po=/\d/,tt=/\d\d/,wo=/\d{3}/,lf=/\d{4}/,gr=/[+-]?\d{6}/,v=/\d\d?/,bo=/\d\d\d\d?/,ko=/\d\d\d\d\d\d?/,nu=/\d{1,3}/,af=/\d{1,4}/,tu=/[+-]?\d{1,6}/,ai=/\d+/,iu=/[+-]?\d+/,sw=/Z|[+-]\d\d:?\d\d/gi,ru=/Z|[+-]\d\d(?::?\d\d)?/gi,tr=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i;kr={};var p,vf={},d=0,bt=1,at=2,w=3,st=4,kt=5,ei=6,hw=7,cw=8;p=Array.prototype.indexOf?Array.prototype.indexOf:function(n){for(var t=0;t<this.length;++t)if(this[t]===n)return t;return-1};f("M",["MM",2],"Mo",function(){return this.month()+1});f("MMM",0,0,function(n){return this.localeData().monthsShort(this,n)});f("MMMM",0,0,function(n){return this.localeData().months(this,n)});b("month","M");k("month",8);u("M",v);u("MM",v,tt);u("MMM",function(n,t){return t.monthsShortRegex(n)});u("MMMM",function(n,t){return t.monthsRegex(n)});l(["M","MM"],function(n,t){t[bt]=o(n)-1});l(["MMM","MMMM"],function(n,t,i,r){var u=i._locale.monthsParse(n,r,i._strict);null!=u?t[bt]=u:e(i).invalidMonth=n});var lw="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),go="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),ns=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,aw=tr,vw=tr;f("Y",0,0,function(){var n=this.year();return n<=9999?lt(n,4):"+"+n});f(0,["YY",2],0,function(){return this.year()%100});f(0,["YYYY",4],0,"year");f(0,["YYYYY",5],0,"year");f(0,["YYYYYY",6,!0],0,"year");b("year","y");k("year",1);u("Y",iu);u("YY",v,tt);u("YYYY",af,lf);u("YYYYY",tu,gr);u("YYYYYY",tu,gr);l(["YYYYY","YYYYYY"],d);l("YYYY",function(n,t){t[d]=2===n.length?r.parseTwoDigitYear(n):o(n)});l("YY",function(n,t){t[d]=r.parseTwoDigitYear(n)});l("Y",function(n,t){t[d]=parseInt(n,10)});r.parseTwoDigitYear=function(n){return o(n)+(o(n)>68?1900:2e3)};yf=oi("FullYear",!0);f("w",["ww",2],"wo","week");f("W",["WW",2],"Wo","isoWeek");b("week","w");b("isoWeek","W");k("week",5);k("isoWeek",5);u("w",v);u("ww",v,tt);u("W",v);u("WW",v,tt);bi(["w","ww","W","WW"],function(n,t,i,r){t[r.substr(0,1)]=o(n)});ts={dow:0,doy:6};f("d",0,"do","day");f("dd",0,0,function(n){return this.localeData().weekdaysMin(this,n)});f("ddd",0,0,function(n){return this.localeData().weekdaysShort(this,n)});f("dddd",0,0,function(n){return this.localeData().weekdays(this,n)});f("e",0,0,"weekday");f("E",0,0,"isoWeekday");b("day","d");b("weekday","e");b("isoWeekday","E");k("day",11);k("weekday",11);k("isoWeekday",11);u("d",v);u("e",v);u("E",v);u("dd",function(n,t){return t.weekdaysMinRegex(n)});u("ddd",function(n,t){return t.weekdaysShortRegex(n)});u("dddd",function(n,t){return t.weekdaysRegex(n)});bi(["dd","ddd","dddd"],function(n,t,i,r){var u=i._locale.weekdaysParse(n,r,i._strict);null!=u?t.d=u:e(i).invalidWeekday=n});bi(["d","e","E"],function(n,t,i,r){t[r]=o(n)});var yw="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),is="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),pw="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),ww=tr,bw=tr,kw=tr;f("H",["HH",2],0,"hour");f("h",["hh",2],0,pu);f("k",["kk",2],0,wc);f("hmm",0,0,function(){return""+pu.apply(this)+lt(this.minutes(),2)});f("hmmss",0,0,function(){return""+pu.apply(this)+lt(this.minutes(),2)+lt(this.seconds(),2)});f("Hmm",0,0,function(){return""+this.hours()+lt(this.minutes(),2)});f("Hmmss",0,0,function(){return""+this.hours()+lt(this.minutes(),2)+lt(this.seconds(),2)});ee("a",!0);ee("A",!1);b("hour","h");k("hour",13);u("a",oe);u("A",oe);u("H",v);u("h",v);u("k",v);u("HH",v,tt);u("hh",v,tt);u("kk",v,tt);u("hmm",bo);u("hmmss",ko);u("Hmm",bo);u("Hmmss",ko);l(["H","HH"],w);l(["k","kk"],function(n,t){var i=o(n);t[w]=24===i?0:i});l(["a","A"],function(n,t,i){i._isPm=i._locale.isPM(n);i._meridiem=n});l(["h","hh"],function(n,t,i){t[w]=o(n);e(i).bigHour=!0});l("hmm",function(n,t,i){var r=n.length-2;t[w]=o(n.substr(0,r));t[st]=o(n.substr(r));e(i).bigHour=!0});l("hmmss",function(n,t,i){var r=n.length-4,u=n.length-2;t[w]=o(n.substr(0,r));t[st]=o(n.substr(r,2));t[kt]=o(n.substr(u));e(i).bigHour=!0});l("Hmm",function(n,t){var i=n.length-2;t[w]=o(n.substr(0,i));t[st]=o(n.substr(i))});l("Hmmss",function(n,t){var i=n.length-4,r=n.length-2;t[w]=o(n.substr(0,i));t[st]=o(n.substr(i,2));t[kt]=o(n.substr(r))});var ir,dw=oi("Hours",!0),rs={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:lw,monthsShort:go,week:ts,weekdays:yw,weekdaysMin:pw,weekdaysShort:is,meridiemParse:/[ap]\.?m?\.?/i},y={},rr={},gw=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,nb=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,tb=/Z|[+-]\d\d(?::?\d\d)?/,uu=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],pf=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],ib=/^\/?Date\((-?\d+)/i,rb=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,ub={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};r.createFromInputFallback=it("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(n){n._d=new Date(n._i+(n._useUTC?" UTC":""))});r.ISO_8601=function(){};r.RFC_2822=function(){};var fb=it("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var n=a.apply(null,arguments);return this.isValid()&&n.isValid()?n<this?this:n:fr()}),eb=it("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var n=a.apply(null,arguments);return this.isValid()&&n.isValid()?n>this?this:n:fr()}),ob=function(){return Date.now?Date.now():+new Date},ur=["year","quarter","month","week","day","hour","minute","second","millisecond"];ye("Z",":");ye("ZZ","");u("Z",ru);u("ZZ",ru);l(["Z","ZZ"],function(n,t,i){i._useUTC=!0;i._tzm=nf(ru,n)});us=/([\+\-]|\d\d)/gi;r.updateOffset=function(){};fs=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/;es=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;ot.fn=ar.prototype;ot.invalid=gl;os=be(1,"add");ss=be(-1,"subtract");r.defaultFormat="YYYY-MM-DDTHH:mm:ssZ";r.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var hs=it("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(n){return void 0===n?this.localeData():this.locale(n)}),fu=1e3,vi=60*fu,eu=60*vi,cs=3506328*eu;for(f("N",0,0,"eraAbbr"),f("NN",0,0,"eraAbbr"),f("NNN",0,0,"eraAbbr"),f("NNNN",0,0,"eraName"),f("NNNNN",0,0,"eraNarrow"),f("y",["y",1],"yo","eraYear"),f("y",["yy",2],0,"eraYear"),f("y",["yyy",3],0,"eraYear"),f("y",["yyyy",4],0,"eraYear"),u("N",uf),u("NN",uf),u("NNN",uf),u("NNNN",yy),u("NNNNN",py),l(["N","NN","NNN","NNNN","NNNNN"],function(n,t,i,r){var u=i._locale.erasParse(n,r,i._strict);u?e(i).era=u:e(i).invalidEra=n}),u("y",ai),u("yy",ai),u("yyy",ai),u("yyyy",ai),u("yo",wy),l(["y","yy","yyy","yyyy"],d),l(["yo"],function(n,t,i){var r;i._locale._eraYearOrdinalRegex&&(r=n.match(i._locale._eraYearOrdinalRegex));t[d]=i._locale.eraYearOrdinalParse?i._locale.eraYearOrdinalParse(n,r):parseInt(n,10)}),f(0,["gg",2],0,function(){return this.weekYear()%100}),f(0,["GG",2],0,function(){return this.isoWeekYear()%100}),pr("gggg","weekYear"),pr("ggggg","weekYear"),pr("GGGG","isoWeekYear"),pr("GGGGG","isoWeekYear"),b("weekYear","gg"),b("isoWeekYear","GG"),k("weekYear",1),k("isoWeekYear",1),u("G",iu),u("g",iu),u("GG",v,tt),u("gg",v,tt),u("GGGG",af,lf),u("gggg",af,lf),u("GGGGG",tu,gr),u("ggggg",tu,gr),bi(["gggg","ggggg","GGGG","GGGGG"],function(n,t,i,r){t[r.substr(0,2)]=o(n)}),bi(["gg","GG"],function(n,t,i,u){t[u]=r.parseTwoDigitYear(n)}),f("Q",0,"Qo","quarter"),b("quarter","Q"),k("quarter",7),u("Q",po),l("Q",function(n,t){t[bt]=3*(o(n)-1)}),f("D",["DD",2],"Do","date"),b("date","D"),k("date",9),u("D",v),u("DD",v,tt),u("Do",function(n,t){return n?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),l(["D","DD"],at),l("Do",function(n,t){t[at]=o(n.match(v)[0])}),wf=oi("Date",!0),f("DDD",["DDDD",3],"DDDo","dayOfYear"),b("dayOfYear","DDD"),k("dayOfYear",4),u("DDD",nu),u("DDDD",wo),l(["DDD","DDDD"],function(n,t,i){i._dayOfYear=o(n)}),f("m",["mm",2],0,"minute"),b("minute","m"),k("minute",14),u("m",v),u("mm",v,tt),l(["m","mm"],st),ls=oi("Minutes",!1),f("s",["ss",2],0,"second"),b("second","s"),k("second",15),u("s",v),u("ss",v,tt),l(["s","ss"],kt),as=oi("Seconds",!1),f("S",0,0,function(){return~~(this.millisecond()/100)}),f(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),f(0,["SSS",3],0,"millisecond"),f(0,["SSSS",4],0,function(){return 10*this.millisecond()}),f(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),f(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),f(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),f(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),f(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),b("millisecond","ms"),k("millisecond",16),u("S",nu,po),u("SS",nu,tt),u("SSS",nu,wo),ii="SSSS";ii.length<=9;ii+="S")u(ii,ai);for(ii="S";ii.length<=9;ii+="S")l(ii,fp);vs=oi("Milliseconds",!1);f("z",0,0,"zoneAbbr");f("zz",0,0,"zoneName");i=wi.prototype;i.add=os;i.calendar=ba;i.clone=ka;i.diff=uv;i.endOf=yv;i.format=sv;i.from=hv;i.fromNow=cv;i.to=lv;i.toNow=av;i.get=uh;i.invalidAt=iy;i.isAfter=da;i.isBefore=ga;i.isBetween=nv;i.isSame=tv;i.isSameOrAfter=iv;i.isSameOrBefore=rv;i.isValid=ny;i.lang=hs;i.locale=ge;i.localeData=no;i.max=eb;i.min=fb;i.parsingFlags=ty;i.set=fh;i.startOf=vv;i.subtract=ss;i.toArray=kv;i.toObject=dv;i.toDate=bv;i.toISOString=ev;i.inspect=ov;"undefined"!=typeof Symbol&&null!=Symbol.for&&(i[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"});i.toJSON=gv;i.toString=fv;i.unix=wv;i.valueOf=pv;i.creationData=ry;i.eraName=oy;i.eraNarrow=sy;i.eraAbbr=hy;i.eraYear=cy;i.year=yf;i.isLeapYear=bh;i.weekYear=by;i.isoWeekYear=ky;i.quarter=i.quarters=rp;i.month=re;i.daysInMonth=yh;i.week=i.weeks=tc;i.isoWeek=i.isoWeeks=ic;i.weeksInYear=np;i.weeksInWeekYear=tp;i.isoWeeksInYear=dy;i.isoWeeksInISOWeekYear=gy;i.date=wf;i.day=i.days=cc;i.weekday=lc;i.isoWeekday=ac;i.dayOfYear=up;i.hour=i.hours=dw;i.minute=i.minutes=ls;i.second=i.seconds=as;i.millisecond=i.milliseconds=vs;i.utcOffset=ta;i.utc=ra;i.local=ua;i.parseZone=fa;i.hasAlignedHourOffset=ea;i.isDST=oa;i.isLocal=ha;i.isUtcOffset=ca;i.isUtc=pe;i.isUTC=pe;i.zoneAbbr=ep;i.zoneName=op;i.dates=it("dates accessor is deprecated. Use date instead.",wf);i.months=it("months accessor is deprecated. Use month instead",re);i.years=it("years accessor is deprecated. Use year instead",yf);i.zone=it("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",ia);i.isDSTShifted=it("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",sa);h=lu.prototype;h.calendar=ws;h.longDateFormat=ds;h.invalidDate=gs;h.ordinal=nh;h.preparse=uo;h.postformat=uo;h.relativeTime=th;h.pastFuture=ih;h.set=ps;h.eras=uy;h.erasParse=fy;h.erasConvertYear=ey;h.erasAbbrRegex=ay;h.erasNameRegex=ly;h.erasNarrowRegex=vy;h.months=ch;h.monthsShort=lh;h.monthsParse=vh;h.monthsRegex=wh;h.monthsShortRegex=ph;h.week=dh;h.firstDayOfYear=nc;h.firstDayOfWeek=gh;h.weekdays=fc;h.weekdaysMin=oc;h.weekdaysShort=ec;h.weekdaysParse=hc;h.weekdaysRegex=vc;h.weekdaysShortRegex=yc;h.weekdaysMinRegex=pc;h.isPM=bc;h.meridiem=kc;ti("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(n){var t=n%10;return n+(1===o(n%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}});r.lang=it("moment.lang is deprecated. Use moment.locale instead.",ti);r.langData=it("moment.langData is deprecated. Use moment.localeData instead.",pt);var dt=Math.abs,sb=wt("ms"),hb=wt("s"),cb=wt("m"),lb=wt("h"),ab=wt("d"),vb=wt("w"),yb=wt("M"),pb=wt("Q"),wb=wt("y"),bb=fi("milliseconds"),kb=fi("seconds"),db=fi("minutes"),gb=fi("hours"),nk=fi("days"),tk=fi("months"),ik=fi("years"),gt=Math.round,yi={ss:44,s:45,m:45,h:22,d:26,w:null,M:11},bf=Math.abs,s=ar.prototype;return s.isValid=dl,s.abs=pp,s.add=wp,s.subtract=bp,s.as=dp,s.asMilliseconds=sb,s.asSeconds=hb,s.asMinutes=cb,s.asHours=lb,s.asDays=ab,s.asWeeks=vb,s.asMonths=yb,s.asQuarters=pb,s.asYears=wb,s.valueOf=gp,s._bubble=kp,s.clone=nw,s.get=tw,s.milliseconds=bb,s.seconds=kb,s.minutes=db,s.hours=gb,s.days=nk,s.weeks=iw,s.months=tk,s.years=ik,s.humanize=ow,s.toISOString=br,s.toString=br,s.toJSON=br,s.locale=ge,s.localeData=no,s.toIsoString=it("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",br),s.lang=hs,f("X",0,0,"unix"),f("x",0,0,"valueOf"),u("x",iu),u("X",/[+-]?\d+(\.\d{1,3})?/),l("X",function(n,t,i){i._d=new Date(1e3*parseFloat(n))}),l("x",function(n,t,i){i._d=new Date(o(n))}),r.version="2.29.4",function(n){ho=n}(a),r.fn=i,r.min=wl,r.max=bl,r.now=ob,r.utc=ht,r.unix=sp,r.months=cp,r.isDate=pi,r.locale=ti,r.invalid=fr,r.duration=ot,r.isMoment=et,r.weekdays=ap,r.parseZone=hp,r.localeData=pt,r.isDuration=vr,r.monthsShort=lp,r.weekdaysMin=yp,r.defineLocale=wu,r.updateLocale=tl,r.locales=il,r.weekdaysShort=vp,r.normalizeUnits=rt,r.relativeTimeRounding=fw,r.relativeTimeThreshold=ew,r.calendarFormat=wa,r.prototype=i,r.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},r})}).call(t,i(452)(n))},function(n,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.version={lib:"2.10116.0",product:"2.10116.0",supportedApiVersion:2}},function(n,t,i){"use strict";function o(){return t.preferredStorage?t.preferredStorage:r.hasLocalStorage()?localStorage:r.hasCookieStorage()?new f:r.hasSessionStorage()?sessionStorage:new e}var r=i(147),u=i(310),f,e;t.preferredStorage=null;t.getAvailableStorage=o;f=function(){function n(){}return n.prototype.getItem=function(n){return u.Cookie.get(n)},n.prototype.removeItem=function(n){u.Cookie.erase(n)},n.prototype.setItem=function(n,t){u.Cookie.set(n,t)},n}();t.CookieStorage=f;e=function(){function n(){}return n.prototype.getItem=function(){return null},n.prototype.removeItem=function(){},n.prototype.setItem=function(){},n}();t.NullStorage=e},function(n,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function n(){}return n.showDebugPanel="showDebugPanel",n}();t.DebugEvents=i},function(n,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function n(){this.isContextual=!1;this.endpoint=null}return n.prototype.isActivated=function(){return!1},n.prototype.getCurrentEventCause=function(){return this.currentEventCause},n.prototype.getCurrentEventMeta=function(){return this.currentEventMeta},n.prototype.logSearchEvent=function(n,t){this.setNoopCauseAndMeta(n.name,t)},n.prototype.logSearchAsYouType=function(n,t){this.setNoopCauseAndMeta(n.name,t)},n.prototype.logClickEvent=function(n,t){return this.setNoopCauseAndMeta(n.name,t),Promise.resolve(null)},n.prototype.logCustomEvent=function(n,t){return this.setNoopCauseAndMeta(n.name,t),Promise.resolve(null)},n.prototype.getTopQueries=function(){return new Promise(function(n){n([])})},n.prototype.getCurrentVisitIdPromise=function(){return new Promise(function(n){n(null)})},n.prototype.getCurrentVisitId=function(){return null},n.prototype.sendAllPendingEvents=function(){},n.prototype.cancelAllPendingEvents=function(){},n.prototype.warnAboutSearchEvent=function(){},n.prototype.getPendingSearchEvent=function(){return null},n.prototype.setOriginContext=function(){},n.prototype.getOriginContext=function(){return""},n.prototype.getUserDisplayName=function(){return""},n.prototype.setNoopCauseAndMeta=function(n,t){this.currentEventCause=n;this.currentEventMeta=t},n}();t.NoopAnalyticsClient=i},function(n,t,i){"use strict";var u=this&&this.__extends||function(){var n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])};return function(t,i){function r(){this.constructor=t}n(t,i);t.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var f=i(27),e=i(5),r=i(158),o=function(n){function t(t){var i=n.call(this,function(){return t.innerHTML})||this;return i.element=t,i.templateFromAScriptTag=new r.TemplateFromAScriptTag(i,i.element),i}return u(t,n),t.prototype.toHtmlElement=function(){return this.templateFromAScriptTag.toHtmlElement()},t.prototype.getType=function(){return"HtmlTemplate"},t.create=function(n){return e.Assert.exists(n),new t(n)},t.fromString=function(n,i){return new t(r.TemplateFromAScriptTag.fromString(n,i))},t.prototype.getTemplateInfo=function(){return this.element},t.mimeTypes=["text/html","text/HTML"],t}(f.Template);t.HtmlTemplate=o},function(n,t,i){var r=i(79),u=i(400),f=i(401),e=Object.defineProperty;t.f=i(80)?Object.defineProperty:function(n,t,i){if(r(n),t=f(t,!0),r(i),u)try{return e(n,t,i)}catch(n){}if("get"in i||"set"in i)throw TypeError("Accessors not supported!");return"value"in i&&(n[t]=i.value),n}},function(n){n.exports=function(n){return"object"==typeof n?null!==n:"function"==typeof n}},function(n){n.exports=function(n){try{return!!n()}catch(n){return!0}}},function(n,t,i){var r=i(405),u=i(82);n.exports=function(n){return r(u(n))}},function(n){var t={}.toString;n.exports=function(n){return t.call(n).slice(8,-1)}},function(n){var t=Math.ceil,i=Math.floor;n.exports=function(n){return isNaN(n=+n)?0:(n>0?i:t)(n)}},function(n,t,i){var r=i(163)("keys"),u=i(165);n.exports=function(n){return r[n]||(r[n]=u(n))}},function(n,t,i){n.exports=i(417)},function(n,t,i){"use strict";var c=this&&this.__assign||Object.assign||function(n){for(var t,r,i=1,u=arguments.length;i<u;i++){t=arguments[i];for(r in t)Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},l=this&&this.__awaiter||function(n,t,i,r){return new(i||(i=Promise))(function(u,f){function o(n){try{e(r.next(n))}catch(n){f(n)}}function s(n){try{e(r.throw(n))}catch(n){f(n)}}function e(n){n.done?u(n.value):new i(function(t){t(n.value)}).then(o,s)}e((r=r.apply(n,t||[])).next())})},a=this&&this.__generator||function(n,t){function f(n){return function(t){return s([n,t])}}function s(f){if(e)throw new TypeError("Generator is already executing.");for(;r;)try{if(e=1,u&&(i=u[2&f[0]?"return":f[0]?"throw":"next"])&&!(i=i.call(u,f[1])).done)return i;switch(u=0,i&&(f=[0,i.value]),f[0]){case 0:case 1:i=f;break;case 4:return r.label++,{value:f[1],done:!1};case 5:r.label++;u=f[1];f=[0];continue;case 7:f=r.ops.pop();r.trys.pop();continue;default:if(i=r.trys,!(i=i.length>0&&i[i.length-1])&&(6===f[0]||2===f[0])){r=0;continue}if(3===f[0]&&(!i||f[1]>i[0]&&f[1]<i[3])){r.label=f[1];break}if(6===f[0]&&r.label<i[1]){r.label=i[1];i=f;break}if(i&&r.label<i[2]){r.label=i[2];r.ops.push(f);break}i[2]&&r.ops.pop();r.trys.pop();continue}f=t.call(n,r)}catch(n){f=[6,n];u=0}finally{e=i=0}if(5&f[0])throw f[1];return{value:f[0]?f[1]:void 0,done:!0}}var e,u,i,o,r={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:f(0),"throw":f(1),"return":f(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o};Object.defineProperty(t,"__esModule",{value:!0});var f=i(11),r=i(5),u=i(1),v=i(19),o=i(7),y=i(44),p=i(31),w=i(171),s=i(57),b=i(10),h=i(13),e=i(0),k=i(9),d=function(){function n(n,t,i,e){var o=this;this.root=n;this.endpoint=t;this.templateSearchEvent=i;this.sendToCloud=e;this.searchPromises=[];this.results=[];this.cancelled=!1;this.finished=!1;this.searchEvents=[];r.Assert.exists(n);r.Assert.exists(t);r.Assert.exists(i);this.handler=function(n,t){o.handleDuringQuery(n,t)};u.$$(n).on(f.QueryEvents.duringQuery,this.handler)}return n.prototype.getEventCause=function(){return this.templateSearchEvent.actionCause},n.prototype.getEventMeta=function(){return this.templateSearchEvent.customData},n.prototype.addFacetState=function(n){this.facetState||(this.facetState=[]);(t=this.facetState).push.apply(t,n);var t},n.prototype.cancel=function(){this.stopRecording();this.cancelled=!0},n.prototype.stopRecording=function(){this.handler&&(u.$$(this.root).off(f.QueryEvents.duringQuery,this.handler),u.$$(this.root).off(f.QueryEvents.duringFetchMoreQuery,this.handler),this.handler=null)},n.prototype.handleDuringQuery=function(n,t,i){var f,u,e;r.Assert.check(!this.finished);r.Assert.check(!this.cancelled);this.searchPromises.push(t.promise);f=n.target;u=o.Component.get(f,v.SearchInterface);r.Assert.exists(u);i||(i=u.queryStateModel.get(h.QueryStateModel.attributesEnum.q));e=o.Component.get(f,y.QueryController);r.Assert.exists(e);this.updateSearchEventsAndQueryResults(t,u,i)},n.prototype.updateSearchEventsAndQueryResults=function(n,t,i){return l(this,void 0,void 0,function(){var u,o,f,s,h;return a(this,function(l){switch(l.label){case 0:return l.trys.push([0,2,,3]),[4,n.promise];case 1:return u=l.sent(),r.Assert.exists(u),r.Assert.check(!this.finished),o=this.templateSearchEvent.actionCause===b.analyticsActionCauseList.recommendation.name,(!0!==u._reusedSearchUid||o)&&(f=c({},this.templateSearchEvent),this.fillSearchEvent(f,t,n.query,u,i),this.searchEvents.push(f),this.results.push(u)),[3,3];case 2:return s=l.sent(),new k.Logger(this).error(s),[3,3];case 3:return h=e.indexOf(this.searchPromises,n.promise),this.searchPromises.splice(h,1),this.searchPromises.length||this.flush(),[2]}})})},n.prototype.flush=function(){var n=this;this.cancelled||(this.stopRecording(),this.finished=!0,r.Assert.check(this.searchEvents.length==this.results.length),p.Defer.defer(function(){n.sendToCloud&&n.endpoint.sendSearchEvents(n.searchEvents);var t=e.map(n.searchEvents,function(n){return w.APIAnalyticsBuilder.convertSearchEventToAPI(n)});u.$$(n.root).trigger(s.AnalyticsEvents.searchEvent,{searchEvents:t});n.searchEvents.length&&n.searchEvents.forEach(function(t){u.$$(n.root).trigger(s.AnalyticsEvents.analyticsEventReady,{event:"CoveoSearchEvent",coveoAnalyticsEventData:t})})}))},n.prototype.fillSearchEvent=function(n,t,i,u,f){r.Assert.exists(n);r.Assert.exists(t);r.Assert.exists(i);r.Assert.exists(u);var o=t.queryStateModel.get(h.QueryStateModel.attributesEnum.q);n.queryPipeline=u.pipeline;n.splitTestRunName=n.splitTestRunName||u.splitTestRun;n.splitTestRunVersion=n.splitTestRunVersion||(void 0!=u.splitTestRun?u.pipeline:void 0);n.originLevel2=n.originLevel2||t.queryStateModel.get("t")||"default";n.queryText=f||o||i.q||"";n.advancedQuery=i.aq||"";n.didYouMean=i.enableDidYouMean;n.numberOfResults=u.totalCount;n.responseTime=u.duration;n.pageNumber=i.firstResult/i.numberOfResults;n.resultsPerPage=i.numberOfResults;n.searchQueryUid=u.searchUid;n.queryPipeline=u.pipeline;n.facetState=this.facetState;void 0!=i.context&&e.each(i.context,function(t,i){return n.customData["context_"+i]=t});void 0!=u.refinedKeywords&&0!=u.refinedKeywords.length&&(n.customData.refinedKeywords=u.refinedKeywords)},n}();t.PendingSearchEvent=d},function(n,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=i(7),f=i(92),u=i(1),o=i(0),e=i(9),s=function(){function n(){}return n.hideIfInfiniteScrollEnabled=function(t){n.isInfiniteScrollEnabled(t.searchInterface.element)?(t.disable(),u.$$(t.element).hide(),n.warnIfComponentNotNeeded(t)):(t.enable(),u.$$(t.element).unhide())},n.isInfiniteScrollEnabled=function(t){var i=n.getMainResultList(t);return!!i&&!!i.options.enableInfiniteScroll},n.scrollToTop=function(t){var r=n.getMainResultList(t),i;if(!r)return new e.Logger(this).warn("No active ResultList, scrolling to the top of the Window"),window.scrollTo(0,0);i=r.searchInterface.element.getBoundingClientRect().top;i>0||window.scrollTo(0,window.pageYOffset+i)},n.getMainResultList=function(t){var i=n.getResultLists(t);return o.find(i,function(n){var t=n.searchInterface.element.classList.contains("CoveoRecommendation");return!n.disabled&&!t})},n.getResultLists=function(t){return u.$$(t).findAll("."+n.cssClass()).map(function(n){return r.Component.get(n,f.ResultList)})},n.cssClass=function(){return r.Component.computeCssClassName(f.ResultList)},n.warnIfComponentNotNeeded=function(t){var i=t.searchInterface.root;n.allResultListsUseInfiniteScroll(i)&&n.notNeededComponentWarning(t)},n.allResultListsUseInfiniteScroll=function(t){return 0===n.getResultLists(t).filter(function(n){return!n.options.enableInfiniteScroll}).length},n.notNeededComponentWarning=function(t){var i=r.Component.computeCssClassNameForType(t.type),u="The "+i+" component is not needed because all "+n.cssClass()+" components have enableInfiniteScroll set to 'true'.\n    For the best performance, remove the "+i+" component from your search page.";new e.Logger(t).warn(u)},n}();t.ResultListUtils=s},function(n,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=i(5),u=i(4),f=i(23),e=i(0),o=function(){function n(){this.selected=!1;this.excluded=!1;this.waitingForDelta=!1}return n.prototype.reset=function(){this.selected=!1;this.excluded=!1},n.prototype.updateCountsFromNewValue=function(n){r.Assert.exists(n);this.occurrences=n.occurrences;this.delta=n.delta;this.computedField=n.computedField},n.prototype.clone=function(){return this.computedField=void 0,this.delta=void 0,this},n.prototype.cloneWithZeroOccurrences=function(){return this.occurrences=0,this.clone()},n.prototype.cloneWithDelta=function(n,t){r.Assert.isLargerOrEqualsThan(0,n);var i=this.cloneWithZeroOccurrences();return i.delta=t,i.occurrences=n,i},n.prototype.getFormattedCount=function(){var n=void 0;return u.Utils.exists(this.delta)&&this.delta>0?n="+"+f.format(this.delta,"n0"):this.occurrences>0&&(n=f.format(this.occurrences,"n0")),n},n.prototype.getFormattedComputedField=function(n){if(0!=this.computedField)return f.format(this.computedField,n)},n.create=function(t){if(e.isString(t))return n.createFromValue(t);if(e.isObject(t))return"computedFieldResults"in t?n.createFromGroupByValue(t):n.createFromFieldValue(t);throw new Error("Can't create value from "+t);},n.createFromValue=function(t){r.Assert.isNonEmptyString(t);var i=new n;return i.value=t,i.lookupValue=t,i},n.createFromGroupByValue=function(t){r.Assert.exists(t);r.Assert.exists(t);var i=new n;return i.value=t.value,i.lookupValue=u.Utils.exists(t.lookupValue)?t.lookupValue:t.value,i.occurrences=t.numberOfResults,i.computedField=u.Utils.isNonEmptyArray(t.computedFieldResults)?t.computedFieldResults[0]:void 0,i.score=t.score,i},n.createFromFieldValue=function(t){r.Assert.exists(t);var i=new n;return i.value=t.value,i.lookupValue=t.lookupValue,i.occurrences=t.numberOfResults,i},n}();t.FacetValue=o},function(n,t,i){"use strict";function u(n,t,i,u){var e=[],s=r.chain(i).values().map(r.keys).flatten().value();return r.each(t,function(t,i){var a=r.chain([i]).concat(t).compact().difference(s).map(f.Utils.escapeRegexCharacter).sortBy("length").value(),v,h;0!==a.length&&(v=""+l+a.join("|")+")(?=(?:"+o+"|$)+)",h=c.StringUtils.getHighlights(n,new RegExp(v,u.regexFlags),i),void 0!=h&&f.Utils.isNonEmptyArray(h)&&e.push(h))}),r.each(i,function(t,i){var h=i.split(" "),s=l,a;r.each(h,function(n,i){s+="(?:"+[n].concat(t[n]).join("|")+")";i==h.length-1&&(s+="(?=");s+=o;i==h.length-1&&(s+="|$)");i!=h.length-1&&(s+="+")});s+=")";a=c.StringUtils.getHighlights(n,new RegExp(s,u.regexFlags),i);void 0!=a&&f.Utils.isNonEmptyArray(a)&&e.push(a)}),r.chain(e).flatten().compact().uniq(function(n){return n.offset}).sortBy(function(n){return n.offset}).map(function(n){var u=r.keys(t),f=r.keys(i),e=u.concat(f),o=r.indexOf(e,n.dataHighlightGroupTerm)+1;return r.extend(n,{dataHighlightGroup:o})}).value()}function v(n){var t=e.$$("div").el;return t.innerHTML=n,t}var y=this&&this.__extends||function(){var n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])};return function(t,i){function r(){this.constructor=t}n(t,i);t.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),a;Object.defineProperty(t,"__esModule",{value:!0});var p=i(77),h=i(68),c=i(22),f=i(4),e=i(1),r=i(0),o="[\\.\\-\\u2011\\s~=,.\\|\\/:'`’;_()!?&+]",l="("+o+"|^)(",s=function(n){function t(t,i,r){void 0===t&&(t="coveo-highlight");void 0===i&&(i=0);void 0===r&&(r="gi");var u=n.call(this)||this;return u.cssClass=t,u.shorten=i,u.regexFlags=r,u}return y(t,n),t}(p.Options);t.DefaultStreamHighlightOptions=s;a=function(){function n(){}return n.highlightStreamHTML=function(t,i,f,o){var c=(new s).merge(o),l=v(t),a=e.$$(l).findAll("*");return a.length>0?(r.each(a,function(n){var t=e.$$(n).text();n.innerHTML=h.HighlightUtils.highlightString(t,u(t,i,f,c),[],c.cssClass)}),l.innerHTML):n.highlightStreamText(t,i,f,o)},n.highlightStreamText=function(n,t,i,r){var f=(new s).merge(r);return h.HighlightUtils.highlightString(n,u(n,t,i,f),[],f.cssClass)},n}();t.StreamHighlightUtils=a;t.getRestHighlightsForAllTerms=u},function(n,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,f=i(4),u=i(6),o=i(5),e=i(0),s=function(){function n(){}return n.get=function(t){var i=f.Utils.getFieldValue(t,"objecttype"),r=f.Utils.getFieldValue(t,"filetype");return f.Utils.isNonEmptyString(i)&&!i.match(/^(file|document|contentversion|item)$/i)?n.getObjectType(i):f.Utils.isNonEmptyString(r)?n.getFileType(r):{icon:"coveo-icon filetype",caption:u.l("Unknown")}},n.getObjectType=function(n,t){void 0===t&&(t=!0);var r=n.toLowerCase(),f="objecttype_"+r,i=u.l(f);return i.toLowerCase()==f.toLowerCase()&&(i=t?u.l(n):n),this.safelyBuildFileTypeInfo("objecttype",r,i)},n.getFileType=function(n,t){var i,f,r;return void 0===t&&(t=!0),i=n.toLowerCase(),"."==i[0]&&(i=i.substring(1)),f="filetype_"+i,r=u.l(f),r.toLowerCase()==f.toLowerCase()&&(r=t?u.l(n):n),this.safelyBuildFileTypeInfo("filetype",i,r)},n.getFileTypeCaptions=function(){if(void 0==r){r={};var n=String.locales[String.locale.toLowerCase()];o.Assert.isNotUndefined(n);e.keys(n).forEach(function(n){0==n.indexOf("filetype_")?r[n.substr(9)]=n.toLocaleString():0==n.indexOf("objecttype_")&&(r[n.substr(11)]=n.toLocaleString())})}return r},n.safelyBuildFileTypeInfo=function(n,t,i){return{icon:"coveo-icon "+n+" "+e.escape(t.replace(" ","-")),caption:e.escape(i)}},n}();t.FileTypes=s},function(n,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=i(5),u=i(58),f=i(4),e=function(){function n(){}return n.registerFieldHelper=function(t,i){n.fieldHelpers.push(t);n.registerTemplateHelper(t,i)},n.registerTemplateHelper=function(t,i){r.Assert.isNonEmptyString(t);r.Assert.exists(i);n.registerTemplateHelperInUnderscore(t,i);n.helpers[t]=i},n.getHelper=function(t){return f.Utils.getCaseInsensitiveProperty(n.helpers,t)},n.getHelpers=function(){return n.helpers},n.registerTemplateHelperInUnderscore=function(n,t){r.Assert.isNonEmptyString(n);r.Assert.exists(t);u.UnderscoreTemplate.registerTemplateHelper(n,t)},n.helpers={},n.fieldHelpers=[],n}();t.TemplateHelpers=e},function(n,t,i){"use strict";var o=this&&this.__extends||function(){var n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])};return function(t,i){function r(){this.constructor=t}n(t,i);t.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var e=i(27),s=i(58),u=i(67),h=i(5),f=i(1),r=i(0),c=i(2),l=function(n){function t(){var t=n.call(this)||this;return t.addFields(c.Initialization.getRegisteredFieldsForQuery()),t}return o(t,n),t.prototype.instantiateToString=function(n,t){var o,f;void 0===t&&(t={});h.Assert.exists(n);o=(new e.DefaultInstantiateTemplateOptions).merge(t);n=r.extend({},n,s.UnderscoreTemplate.templateHelpers);for(var l=r.chain(u.TemplateCache.getDefaultTemplates()).map(function(n){return u.TemplateCache.getTemplate(n)}).value(),c=r.chain(l).sortBy(function(n){return null==n.condition}).sortBy(function(n){return null==n.fieldsToMatch}).value(),i=0;i<c.length;i++)if(f=c[i].instantiateToString(n,o),null!=f)return f;return this.getFallbackTemplate()},t.prototype.getFields=function(){var n=r.map(u.TemplateCache.getDefaultTemplates(),function(n){return u.TemplateCache.getTemplate(n)});return r.flatten(r.map(n,function(n){return n.getFields()}))},t.prototype.getType=function(){return"DefaultResultTemplate"},t.prototype.getFallbackTemplate=function(){var t=f.$$("div",{className:"coveo-title",role:"heading",ariaLevel:2}),r=f.$$("a",{className:"CoveoResultLink"}),i,n;return t.append(r.el),i=f.$$("div",{className:"CoveoExcerpt"}),n=f.$$("div"),n.append(t.el),n.append(i.el),n.el.outerHTML},t}(e.Template);t.DefaultResultTemplate=l},function(n,t,i){"use strict";var s;Object.defineProperty(t,"__esModule",{value:!0});var e,r=i(1),h=i(137),o=i(0),c=i(15),f=i(25),l=i(17),u=i(5),a=i(6);!function(n){n.OPEN="responsiveDropdownOpen";n.CLOSE="responsiveDropdownClose"}(e=t.ResponsiveDropdownEvent||(t.ResponsiveDropdownEvent={}));s=function(){function n(n,t,i){var r=this;this.dropdownContent=n;this.dropdownHeader=t;this.coveoRoot=i;this.isOpened=!1;this.onOpenHandlers=[];this.onCloseHandlers=[];this.popupBackgroundIsEnabled=!0;this.scrollableContainerToLock=null;this.closeIfOpened=function(){r.isOpened&&r.close()};u.Assert.exists(n);u.Assert.exists(t);u.Assert.exists(i);this.popupBackground=this.buildPopupBackground();this.bindOnClickDropdownHeaderEvent();this.saveContentPosition();this.bindOnKeyboardEscapeEvent();this.bindNukeEvents()}return Object.defineProperty(n.prototype,"scrollLocked",{set:function(n){this.scrollableContainerToLock&&(this.scrollableContainerToLock.style.overflow=n?"hidden":"")},enumerable:!0,configurable:!0}),n.prototype.registerOnOpenHandler=function(n,t){u.Assert.exists(n);this.onOpenHandlers.push({handler:n,context:t})},n.prototype.registerOnCloseHandler=function(n,t){u.Assert.exists(n);this.onCloseHandlers.push({handler:n,context:t})},n.prototype.cleanUp=function(){this.close();this.dropdownHeader.cleanUp();this.dropdownContent.cleanUp();this.restoreContentPosition()},n.prototype.open=function(){this.isOpened=!0;this.dropdownHeader.open();this.dropdownContent.positionDropdown();o.each(this.onOpenHandlers,function(n){n.handler.apply(n.context)});this.showPopupBackground();this.lockScroll();r.$$(this.dropdownHeader.element).trigger(e.OPEN)},n.prototype.close=function(){this.isOpened=!1;o.each(this.onCloseHandlers,function(n){n.handler.apply(n.context)});this.dropdownHeader.close();this.dropdownContent.hideDropdown();this.hidePopupBackground();this.unlockScroll();r.$$(this.dropdownHeader.element).trigger(e.CLOSE)},n.prototype.disablePopupBackground=function(){this.popupBackgroundIsEnabled=!1},n.prototype.enableScrollLocking=function(n){this.scrollableContainerToLock=n},n.prototype.bindOnClickDropdownHeaderEvent=function(){var n=this;(new c.AccessibleButton).withElement(this.dropdownHeader.element).withSelectAction(function(){return n.isOpened?n.close():n.open()}).withLabel(a.l(this.isOpened?"CloseFiltersDropdown":"OpenFiltersDropdown")).build()},n.prototype.bindOnKeyboardEscapeEvent=function(){r.$$(document.documentElement).on("keyup",f.KeyboardUtils.keypressAction(f.KEYBOARD.ESCAPE,this.closeIfOpened))},n.prototype.unbindOnKeyboardEscapeEvent=function(){r.$$(document.documentElement).off("keyup",f.KeyboardUtils.keypressAction(f.KEYBOARD.ESCAPE,this.closeIfOpened))},n.prototype.bindNukeEvents=function(){var n=this;r.$$(this.coveoRoot).on(l.InitializationEvents.nuke,function(){n.unbindOnKeyboardEscapeEvent()})},n.prototype.showPopupBackground=function(){this.popupBackgroundIsEnabled&&(this.coveoRoot.el.appendChild(this.popupBackground.el),window.getComputedStyle(this.popupBackground.el).opacity,this.popupBackground.el.style.opacity=n.TRANSPARENT_BACKGROUND_OPACITY,this.popupBackground.addClass(n.DROPDOWN_BACKGROUND_ACTIVE_CSS_CLASS_NAME))},n.prototype.lockScroll=function(){this.scrollLocked=!0},n.prototype.unlockScroll=function(){this.scrollLocked=!1},n.prototype.hidePopupBackground=function(){this.popupBackgroundIsEnabled&&(window.getComputedStyle(this.popupBackground.el).opacity,this.popupBackground.el.style.opacity="0",this.popupBackground.removeClass(n.DROPDOWN_BACKGROUND_ACTIVE_CSS_CLASS_NAME))},n.prototype.buildPopupBackground=function(){var i=this,t=r.$$("div",{className:n.DROPDOWN_BACKGROUND_CSS_CLASS_NAME});return h.EventsUtils.addPrefixedEvent(t.el,"TransitionEnd",function(){"0"==t.el.style.opacity&&t.detach()}),t.on("click",function(){return i.close()}),t},n.prototype.saveContentPosition=function(){var n=this.dropdownContent.element.el.previousSibling,t=this.dropdownContent.element.el.parentElement;this.previousSibling=n?r.$$(n):null;this.parent=r.$$(t)},n.prototype.restoreContentPosition=function(){this.previousSibling?this.dropdownContent.element.insertAfter(this.previousSibling.el):this.parent.prepend(this.dropdownContent.element.el)},n.TRANSPARENT_BACKGROUND_OPACITY="0.9",n.DROPDOWN_BACKGROUND_CSS_CLASS_NAME="coveo-dropdown-background",n.DROPDOWN_BACKGROUND_ACTIVE_CSS_CLASS_NAME="coveo-dropdown-background-active",n}();t.ResponsiveDropdown=s},function(n,t,i){"use strict";function u(n,t){return null==t&&(t={}),t.helpers=n,t}var a=this&&this.__extends||function(){var n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])};return function(t,i){function r(){this.constructor=t}n(t,i);t.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var f=i(0),v=i(3),y=i(5),h=i(6),p=i(15),c=i(33),e=i(1),w=i(22),o=i(4),b=i(10),k=i(7),r=i(8),d=i(2),g=i(40),nt=i(136),s=i(121),tt=i(539),it=i(47),l=function(n){function t(i,u,f,e,s){void 0===s&&(s=t.ID);var h=n.call(this,i,s,f)||this;return h.element=i,h.options=u,h.result=e,h.options=r.ComponentOptions.initOptions(i,t.simpleOptions,u,t.ID),null!=h.options.helper&&h.normalizeHelperAndOptions(),h.result=h.result||h.resolveResult(),y.Assert.exists(h.result),nt.TemplateFieldsEvaluator.evaluateFieldsToMatch(h.options.conditions,h.result)&&!o.Utils.isNullOrUndefined(h.getValue())?h.initialize():null!=h.element.parentElement&&h.element.parentElement.removeChild(h.element),h}return a(t,n),t.prototype.initialize=function(){var n,t=this.getValue();f.isArray(t)?n=t:this.options.splitValues?f.isString(t)&&(n=f.map(t.split(this.options.separator),function(n){return n.trim()})):(t=t.toString(),n=[t]);n.length>1&&this.isValueHierarchical&&(n=n.slice(-1));this.appendValuesToDom(n);null!=this.options.textCaption&&this.prependTextCaptionToDom()},t.prototype.getValue=function(){var n=o.Utils.getFieldValue(this.result,this.options.field);return!f.isArray(n)&&f.isObject(n)&&(n=null),n},t.prototype.renderOneValue=function(n){var i=e.$$("span").el,t=this.getCaption(n),r,u;return this.options.helper&&(r=s.TemplateHelpers.getHelper(this.options.helper+"v2")||s.TemplateHelpers.getHelper(""+this.options.helper),o.Utils.exists(r)?t=r.call(this,n,this.getHelperOptions(),this.result):this.logger.warn("Helper "+this.options.helper+" is not found in available helpers. The list of supported helpers is :",f.keys(s.TemplateHelpers.getHelpers())),u=this.getFullDate(n,this.options.helper),u&&i.setAttribute("title",u),"date"!=this.options.helper&&"dateTime"!=this.options.helper&&"emailDateTime"!=this.options.helper||(t=w.StringUtils.capitalizeFirstLetter(t))),this.options.htmlValue?i.innerHTML=t:i.appendChild(document.createTextNode(t)),this.bindEventOnValue(i,n,t),i},t.prototype.getValueContainer=function(){return this.element},t.prototype.normalizeHelperAndOptions=function(){var u=this,n,i;this.options=r.ComponentOptions.initOptions(this.element,t.helperOptions,this.options,t.ID);n=f.keys(t.options.helperOptions.subOptions);i=f.filter(n,function(n){var r=t.options.helperOptions.subOptions[n],i;return r?(i=r.helpers,null!=i&&f.contains(i,u.options.helper)):!1});this.options.helperOptions=f.omit(this.options.helperOptions,function(n,t){return!f.contains(i,t)})},t.prototype.getHelperOptions=function(){var inlineOptions=r.ComponentOptions.loadStringOption(this.element,"helperOptions",{});return o.Utils.isNonEmptyString(inlineOptions)?f.extend({},this.options.helperOptions,eval("("+inlineOptions+")")):this.options.helperOptions},t.prototype.getFullDate=function(n,t){var i={useLongDateFormat:!0,useTodayYesterdayAndTomorrow:!1,useWeekdayIfThisWeek:!1,omitYearIfCurrentOne:!1};return"date"==t?c.DateUtils.dateToString(new Date(parseInt(n)),i):"dateTime"==t||"emailDateTime"==t?c.DateUtils.dateTimeToString(new Date(parseInt(n)),i):""},t.prototype.appendValuesToDom=function(n){var t=this;f.each(n,function(i,r){void 0!=i&&(t.getValueContainer().appendChild(t.renderOneValue(i)),r!==n.length-1&&t.getValueContainer().appendChild(document.createTextNode(t.options.displaySeparator)))})},t.prototype.renderTextCaption=function(){return e.$$("span",{className:"coveo-field-caption"},f.escape(this.options.textCaption)).el},t.prototype.prependTextCaptionToDom=function(){var n=this.getValueContainer();e.$$(n).prepend(this.renderTextCaption());e.$$(n).addClass("coveo-with-label")},t.prototype.bindEventOnValue=function(n,t,i){this.bindFacets(n,t,i)},t.prototype.getCaption=function(n){for(var u,r,t=0,i=this.getFacets();t<i.length;t++)if(u=i[t],r=u.getCaptionForStringValue(n),r)return r;return g.FacetUtils.tryToGetTranslatedCaption(this.options.field,n)},t.prototype.getFacets=function(){var n=this,t=it.ComponentsTypes.getAllFacetsFromSearchInterface(this.searchInterface).filter(tt.isFacetFieldValueCompatible).filter(function(n){return!n.disabled}),i=t.filter(function(t){return t.options.id===n.options.facet});return i.length?i:t.filter(function(t){return t.options.field===n.options.field})},Object.defineProperty(t.prototype,"isValueHierarchical",{get:function(){for(var n=0,t=this.getFacets();n<t.length;n++)if(t[n].isFieldValueHierarchical)return!0;return!1},enumerable:!0,configurable:!0}),t.prototype.bindFacets=function(n,t,i){var o=this,r=this.getFacets(),u,e;r.length&&(u=!!f.find(r,function(n){return n.hasSelectedValue(t)}),e=function(){return o.handleFacetSelection(u,r,t)},this.buildClickableElement(n,u,i,e))},t.prototype.buildClickableElement=function(n,t,i,r){var u=t?h.l("RemoveFilterOn",i):h.l("FilterOn",i);(new p.AccessibleButton).withTitle(u).withElement(n).withSelectAction(r).build();t&&e.$$(n).addClass("coveo-selected");e.$$(n).addClass("coveo-clickable")},t.prototype.handleFacetSelection=function(n,t,i){t.forEach(function(t){n?t.deselectValue(i):t.selectValue(i)});this.executeQuery(i)},t.prototype.executeQuery=function(n){var t=this;this.queryController.deferExecuteQuery({beforeExecuteQuery:function(){return t.usageAnalytics.logSearchEvent(b.analyticsActionCauseList.documentField,{facetId:t.options.facet,facetField:t.options.field.toString(),facetValue:n.toLowerCase()})}})},t.ID="FieldValue",t.doExport=function(){v.exportGlobally({FieldValue:t})},t.options={field:r.ComponentOptions.buildFieldOption({defaultValue:"@field",required:!0}),facet:r.ComponentOptions.buildStringOption({postProcessing:function(n,t){return n||t.field}}),htmlValue:r.ComponentOptions.buildBooleanOption({defaultValue:!1}),splitValues:r.ComponentOptions.buildBooleanOption({defaultValue:!1}),separator:r.ComponentOptions.buildStringOption({depend:"splitValues",defaultValue:";"}),displaySeparator:r.ComponentOptions.buildStringOption({depend:"splitValues",defaultValue:", "}),helper:r.ComponentOptions.buildHelperOption(),helperOptions:r.ComponentOptions.buildObjectOption({subOptions:{text:r.ComponentOptions.buildStringOption(u(["anchor"])),target:r.ComponentOptions.buildStringOption(u(["anchor"])),"class":r.ComponentOptions.buildStringOption(u(["anchor"])),format:r.ComponentOptions.buildStringOption(u(["number"])),decimals:r.ComponentOptions.buildNumberOption(u(["currency"],{min:0})),symbol:r.ComponentOptions.buildStringOption(u(["currency"])),useTodayYesterdayAndTomorrow:r.ComponentOptions.buildBooleanOption(u(["date","dateTime","emailDateTime","time"],{defaultValue:!0})),useWeekdayIfThisWeek:r.ComponentOptions.buildBooleanOption(u(["date","dateTime","emailDateTime","time"],{defaultValue:!0})),omitYearIfCurrentOne:r.ComponentOptions.buildBooleanOption(u(["date","dateTime","emailDateTime","time"],{defaultValue:!0})),useLongDateFormat:r.ComponentOptions.buildBooleanOption(u(["date","dateTime","emailDateTime","time"],{defaultValue:!1})),includeTimeIfToday:r.ComponentOptions.buildBooleanOption(u(["date","dateTime","emailDateTime","time"],{defaultValue:!0})),includeTimeIfThisWeek:r.ComponentOptions.buildBooleanOption(u(["date","dateTime","emailDateTime","time"],{defaultValue:!0})),alwaysIncludeTime:r.ComponentOptions.buildBooleanOption(u(["date","dateTime","emailDateTime","time"],{defaultValue:!1})),predefinedFormat:r.ComponentOptions.buildStringOption(u(["date","dateTime","emailDateTime","time"])),companyDomain:r.ComponentOptions.buildStringOption(u(["email"])),me:r.ComponentOptions.buildStringOption(u(["email"])),lengthLimit:r.ComponentOptions.buildNumberOption(u(["email"],{min:1})),truncateName:r.ComponentOptions.buildBooleanOption(u(["email"])),alt:r.ComponentOptions.buildStringOption(u(["image"])),height:r.ComponentOptions.buildStringOption(u(["image"])),width:r.ComponentOptions.buildStringOption(u(["image"])),srcTemplate:r.ComponentOptions.buildStringOption(u(["image"])),precision:r.ComponentOptions.buildNumberOption(u(["size"],{min:0,defaultValue:2})),base:r.ComponentOptions.buildNumberOption(u(["size"],{min:0,defaultValue:0})),isMilliseconds:r.ComponentOptions.buildBooleanOption(u(["timeSpan"])),length:r.ComponentOptions.buildNumberOption(u(["shorten","shortenPath","shortenUri"],{defaultValue:200}))}}),textCaption:r.ComponentOptions.buildLocalizedStringOption(),conditions:r.ComponentOptions.buildFieldConditionOption()},t.simpleOptions=f.omit(t.options,"helperOptions"),t.helperOptions={helperOptions:t.options.helperOptions},t}(k.Component);t.FieldValue=l;d.Initialization.registerAutoCreateComponent(l)},function(n,t,i){"use strict";function u(n){n.logSearchEvent(r.analyticsActionCauseList.searchboxSubmit,{})}function f(n,t){n.logSearchEvent(r.analyticsActionCauseList.resultsSort,{resultsSortBy:t})}Object.defineProperty(t,"__esModule",{value:!0});var r=i(10);t.logSearchBoxSubmitEvent=u;t.logSortEvent=f},function(n,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var e=i(3),o=i(6),r=i(1),u=i(16),f=i(12),s=function(){function n(n,t,i,r){void 0===n&&(n=function(){});void 0===t&&(t=0);this.onChange=n;this.min=t;this.max=i;this.label=r;this.buildContent();this.bindEvents()}return n.doExport=function(){e.exportGlobally({NumericSpinner:n})},n.prototype.reset=function(){this.getSpinnerInput().value="";this.onChange(this)},n.prototype.getElement=function(){return this.element},n.prototype.getValue=function(){return this.getSpinnerInput().value},n.prototype.getIntValue=function(){return this.getSpinnerInput().value?parseInt(this.getSpinnerInput().value,10):this.min},n.prototype.getFloatValue=function(){return this.getSpinnerInput().value?parseFloat(this.getSpinnerInput().value):this.min},n.prototype.setValue=function(n){this.max&&n>this.max&&(n=this.max);n<this.min&&(n=this.min);this.getSpinnerInput().value=n.toString();this.onChange(this)},n.prototype.build=function(){return this.element},n.prototype.buildContent=function(){var n=r.$$("div",{className:"coveo-numeric-spinner"}),s=r.$$("input",{className:"coveo-number-input",type:"text","aria-label":this.label?o.l(this.label):""}),t=r.$$("span",{className:"coveo-add-on"}),e=r.$$("div",{className:"coveo-spinner-up"},f.SVGIcons.icons.arrowUp),i;u.SVGDom.addClassToSVGInContainer(e.el,"coveo-spinner-up-svg");i=r.$$("div",{className:"coveo-spinner-down"},f.SVGIcons.icons.arrowDown);u.SVGDom.addClassToSVGInContainer(i.el,"coveo-spinner-down-svg");t.append(e.el);t.append(i.el);n.append(s.el);n.append(t.el);this.element=n.el},n.prototype.bindEvents=function(){var n=this,u=r.$$(this.element).find(".coveo-spinner-up"),i,t;r.$$(u).on("click",function(){n.setValue(n.getFloatValue()+1)});i=r.$$(this.element).find(".coveo-spinner-down");r.$$(i).on("click",function(){n.setValue(n.getFloatValue()-1)});t=r.$$(this.element).find("input");r.$$(t).on("input",function(){t.value.match(/[0-9]*/)&&n.onChange(n)})},n.prototype.getSpinnerInput=function(){return r.$$(this.element).find(".coveo-number-input")},n}();t.NumericSpinner=s},function(n,t,i){"use strict";var u=this&&this.__extends||function(){var n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])};return function(t,i){function r(){this.constructor=t}n(t,i);t.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var f=i(116),e=i(1),o=i(17),s=i(19),h=i(7),c=i(13),r=i(0),l=function(n){function t(t,i,r,u){var f=n.call(this,t,i,r,u)||this;return f.root=t,f.endpoint=i,f.templateSearchEvent=r,f.sendToCloud=u,f.delayBeforeSending=5e3,f.queryContent="",f.beforeUnloadHandler=function(){f.onWindowUnload()},window.addEventListener("beforeunload",f.beforeUnloadHandler),e.$$(t).on(o.InitializationEvents.nuke,function(){return f.handleNuke()}),f}return u(t,n),t.prototype.handleDuringQuery=function(t,i){var u=this,f=r.clone(t),e=t.target,o=h.Component.get(e,s.SearchInterface);this.modifyQueryContent(o.queryStateModel.get(c.QueryStateModel.attributesEnum.q));this.beforeResolve=new Promise(function(t){u.toSendRightNow=function(){u.isCancelledOrFinished()||(t(u),n.prototype.handleDuringQuery.call(u,f,i,u.queryContent))};r.delay(function(){u.toSendRightNow()},u.delayBeforeSending)})},t.prototype.sendRightNow=function(){this.toSendRightNow&&this.toSendRightNow()},t.prototype.modifyCustomData=function(n,t){r.each(this.searchEvents,function(i){i.customData[n]=t});this.templateSearchEvent.customData||(this.templateSearchEvent.customData={});this.templateSearchEvent.customData[n]=t},t.prototype.modifyEventCause=function(n){r.each(this.searchEvents,function(t){t.actionCause=n.name;t.actionType=n.type});this.templateSearchEvent.actionCause=n.name;this.templateSearchEvent.actionType=n.type},t.prototype.modifyQueryContent=function(n){this.queryContent=n},t.prototype.stopRecording=function(){n.prototype.stopRecording.call(this);this.beforeUnloadHandler&&(window.removeEventListener("beforeunload",this.beforeUnloadHandler),this.beforeUnloadHandler=void 0)},t.prototype.handleNuke=function(){window.removeEventListener("beforeunload",this.beforeUnloadHandler)},t.prototype.onWindowUnload=function(){this.isCancelledOrFinished()||this.sendRightNow()},t.prototype.isCancelledOrFinished=function(){return!!this.cancelled||!!this.finished&&(this.cancel(),!0)},t}(f.PendingSearchEvent);t.PendingSearchAsYouTypeSearchEvent=l},function(n,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var u=i(4),r=i(20),f=i(0),e=function(){function n(){}return n.detectPublicPath=function(){this.pathHasBeenConfigured||(i.p=n.getDynamicPublicPath())},n.getDynamicPublicPath=function(){var i=this.getCurrentScript(),n=this.getCoveoScript(),t;return(this.isScript(n)||new r.Logger(this).warn("You should add the class coveo-script on the script tag that includes the Coveo framework. Not doing so may cause the framework to not be able to auto-detect the path to load the lazy chunks in certain environments.\n        More details [here](https://docs.coveo.com/en/295/javascript-search-framework/lazy-versus-eager-component-loading#fixing-code-chunks-loading-path-issues)."),u.Utils.isNullOrUndefined(i))?this.isScript(n)?this.parseScriptDirectoryPath(n):(t=document.getElementsByTagName("script"),this.parseScriptDirectoryPath(t[t.length-1])):this.parseScriptDirectoryPath(i)},n.configureResourceRoot=function(n){this.pathHasBeenConfigured=!0;i.p=n},n.reset=function(){this.pathHasBeenConfigured=!1},n.getCurrentScript=function(){return document.currentScript},n.getCoveoScript=function(){var n=this;return f.find(document.querySelectorAll(".coveo-script"),function(t){return n.isScript(t)})},n.parseScriptDirectoryPath=function(n){return n.src.replace(/\/[\w\.-]*\.js((#|\?)(.*)){0,1}$/,"/")},n.isScript=function(n){return n&&r.$$(n).is("script")},n.pathHasBeenConfigured=!1,n}();t.PublicPathUtils=e},function(n,t,i){"use strict";var b=this&&this.__extends||function(){var n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])};return function(t,i){function r(){this.constructor=t}n(t,i);t.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var u=i(7),r=i(8),c=i(153),l=i(53),s=i(5),a=i(11),o=i(28),f=i(1),k=i(18),d=i(4),e=i(106),v=i(170),y=i(455),p=i(10),g=i(209),h=i(0),nt=i(3),tt=i(116),it=i(127),rt=i(148),ut=i(57),ft=i(21),w=i(50),et=i(17),ot=function(n){function t(i,e,h){var c,l,v;if(void 0===e&&(e={}),c=n.call(this,i,t.ID,h)||this,c.element=i,c.options=e,c.bindings=h,c.options=r.ComponentOptions.initComponentOptions(i,t,e),c.setupAccessToken(),null==c.accessToken)return c.logger.error("Analytics component could not resolve any access token"),c.logger.error('Either provide a analytics token : data-option-token="an-authentication-token" on the Analytics element, or configure a default SearchEndpoint',c.element),c;if((c.options.token=c.accessToken.token,c.accessToken.subscribeToRenewal(function(n){c.options.token=n;c.client.endpoint.endpointCaller.options.accessToken=n}),c.initializeAnalyticsClient(),s.Assert.exists(c.client),f.$$(c.root).on(a.QueryEvents.buildingQuery,function(n,t){return c.handleBuildingQuery(t)}),c.bind.onRootElement(a.QueryEvents.queryError,function(n){return c.handleQueryError(n)}),c.bind.onRootElement(et.InitializationEvents.afterComponentsInitialization,function(){return c.handleDoNotTrack()}),c.options.autoPushToGtmDataLayer&&c.isGtmDataLayerInitialized&&c.bind.onRootElement(ut.AnalyticsEvents.analyticsEventReady,function(n){return c.pushToGtmDataLayer(n)}),c.componentOptionsModel)||(l=f.$$(i).find("."+u.Component.computeCssClassName(o.ComponentOptionsModel)),l&&(c.componentOptionsModel=l[u.Component.computeCssClassName(o.ComponentOptionsModel)])),c.componentOptionsModel){c.componentOptionsModel.set(o.ComponentOptionsModel.attributesEnum.searchHub,c.options.searchHub);v=c.componentOptionsModel.getEventName(k.Model.eventTypes.changeOne+o.ComponentOptionsModel.attributesEnum.searchHub);f.$$(c.root).on(v,function(n,t){return c.handleSearchHubChanged(t)})}return c.createClientId(),c}return b(t,n),t.doExport=function(){nt.exportGlobally({PendingSearchEvent:tt.PendingSearchEvent,PendingSearchAsYouTypeSearchEvent:it.PendingSearchAsYouTypeSearchEvent,analyticsActionCauseList:p.analyticsActionCauseList,NoopAnalyticsClient:e.NoopAnalyticsClient,LiveAnalyticsClient:v.LiveAnalyticsClient,MultiAnalyticsClient:y.MultiAnalyticsClient,Analytics:t})},t.prototype.logSearchEvent=function(n,t){this.client.logSearchEvent(n,t)},t.prototype.logSearchAsYouType=function(n,t){this.client.logSearchAsYouType(n,t)},t.prototype.logCustomEvent=function(n,t,i,r){void 0===i&&(i=this.element);this.client.logCustomEvent(n,t,i,r)},t.prototype.logClickEvent=function(n,t,i,r){void 0===r&&(r=this.element);this.client.logClickEvent(n,t,i,r)},t.prototype.setOriginContext=function(n){this.client.setOriginContext(n)},t.prototype.getOriginContext=function(){return this.client.getOriginContext()},t.prototype.getUserDisplayName=function(){return this.client.getUserDisplayName()},t.prototype.enable=function(){if(!this.disabled)return this.logger.warn("The Analytics component is already enabled.");n.prototype.enable.call(this);this.initializeAnalyticsClient();this.updateSearchInterfaceUAClient();this.resolveQueryController().enableHistory()},t.prototype.clearLocalData=function(){if(this.disabled||this.client instanceof e.NoopAnalyticsClient)return this.logger.warn("Could not clear local data while analytics are disabled.");(new w.AnalyticsInformation).clear();this.resolveQueryController().resetHistory()},t.prototype.disable=function(){if(this.disabled)return this.logger.warn("The Analytics component is already disabled.");this.clearLocalData();this.client.cancelAllPendingEvents();this.client=new e.NoopAnalyticsClient;this.updateSearchInterfaceUAClient();this.resolveQueryController().disableHistory();n.prototype.disable.call(this)},t.prototype.updateSearchInterfaceUAClient=function(){this.searchInterface.usageAnalytics=this.client},t.prototype.pushToGtmDataLayer=function(n){var t=this.options.gtmDataLayerName;try{window[t].push(n)}catch(n){this.logger.error("Unexpected error when pushing to Google Tag Manager data layer '"+t+"': '"+n+"'.")}},t.prototype.initializeAnalyticsEndpoint=function(){return new c.AnalyticsEndpoint({accessToken:this.accessToken,serviceUrl:this.options.endpoint,organization:this.options.organization})},t.prototype.createClientId=function(){var n=new w.AnalyticsInformation;n.clientId||(n.clientId=ft.QueryUtils.createGuid())},t.prototype.initializeAnalyticsClient=function(){var t,n,i;d.Utils.isNonEmptyString(this.options.endpoint)?(t=this.initializeAnalyticsEndpoint(),n=void 0,this.root&&this.element&&(n=this.root.contains(this.element)?this.root:this.element),i=f.$$(this.root).hasClass(u.Component.computeCssClassNameForType("Recommendation")),this.instantiateAnalyticsClient(t,n,i)):this.client=new e.NoopAnalyticsClient},t.prototype.instantiateAnalyticsClient=function(n,t,i){this.client=i?new g.RecommendationAnalyticsClient(n,t,this.options.user,this.options.userDisplayName,this.options.anonymous,this.options.splitTestRunName,this.options.splitTestRunVersion,this.options.searchHub,this.options.sendToCloud,this.getBindings()):new v.LiveAnalyticsClient(n,t,this.options.user,this.options.userDisplayName,this.options.anonymous,this.options.splitTestRunName,this.options.splitTestRunVersion,this.options.searchHub,this.options.sendToCloud,this.getBindings())},t.prototype.setupAccessToken=function(){this.trySetupAccessTokenFromOptions();null==this.accessToken&&this.trySetupAccessTokenFromDefaultSearchEndpoint()},t.prototype.trySetupAccessTokenFromOptions=function(){null!=this.options.token&&(this.accessToken=new rt.AccessToken(this.options.token,this.options.renewAccessToken))},t.prototype.trySetupAccessTokenFromDefaultSearchEndpoint=function(){this.defaultEndpoint&&(this.accessToken=this.defaultEndpoint.accessToken,this.options.token=this.defaultEndpoint.accessToken.token);!this.options.organization&&this.defaultEndpoint&&(this.options.organization=this.defaultEndpoint.options.queryStringArguments.organizationId)},Object.defineProperty(t.prototype,"defaultEndpoint",{get:function(){return this.searchInterface.options.endpoint||l.SearchEndpoint.defaultEndpoint},enumerable:!0,configurable:!0}),t.prototype.handleBuildingQuery=function(n){s.Assert.exists(n);n.queryBuilder.searchHub=this.options.searchHub},t.prototype.handleSearchHubChanged=function(n){this.options.searchHub=n.value},t.prototype.handleQueryError=function(n){s.Assert.exists(n);this.client.logCustomEvent(p.analyticsActionCauseList.queryError,{query:n.query.q,aq:n.query.aq,cq:n.query.cq,dq:n.query.dq,errorType:n.error.type,errorMessage:n.error.message},this.element)},Object.defineProperty(t.prototype,"isGtmDataLayerInitialized",{get:function(){var n=this.options.gtmDataLayerName;return!!n&&(!!window[n]||(this.logger.warn("Cannot automatically push to Google Tag Manager data layer: '"+n+"' is undefined."),!1))},enumerable:!0,configurable:!0}),t.create=function(n,i,r){var s=u.Component.computeSelectorForType(t.ID),o=[];return o=o.concat(f.$$(n).findAll(s)),f.$$(n).hasClass(u.Component.computeCssClassNameForType("Recommendation"))||(o=this.ignoreElementsInsideRecommendationInterface(o)),o.push(f.$$(n).closest(u.Component.computeCssClassName(t))),f.$$(n).is(s)&&o.push(n),o=h.compact(o),1==o.length?t.getClient(o[0],i,r):o.length>1?new y.MultiAnalyticsClient(h.map(o,function(n){return t.getClient(n,i,r)})):new e.NoopAnalyticsClient},t.ignoreElementsInsideRecommendationInterface=function(n){return h.filter(n,function(n){return void 0===f.$$(n).closest(u.Component.computeCssClassNameForType("Recommendation"))})},t.getClient=function(n,i,r){var f=u.Component.get(n,t,!0);return f instanceof t?f.client:new t(n,i,r).client},t.prototype.handleDoNotTrack=function(){this.doNotTrack()&&(this.logger.warn("Coveo Analytics tracking disabled due to doNotTrack"),this.disable())},t.prototype.doNotTrack=function(){var n=[!0,"yes","1",1].indexOf(navigator.doNotTrack||window.doNotTrack||navigator.msDoNotTrack),t=navigator.globalPrivacyControl;return-1!==n||t},t.ID="Analytics",t.options={user:r.ComponentOptions.buildStringOption(),userDisplayName:r.ComponentOptions.buildStringOption(),token:r.ComponentOptions.buildStringOption(),endpoint:r.ComponentOptions.buildStringOption({postProcessing:function(n){return n?-1!==n.indexOf("usageanalytics")?n.split("/rest")[0]+"/rest":n:c.AnalyticsEndpoint.getURLFromSearchEndpoint(l.SearchEndpoint.defaultEndpoint)}}),anonymous:r.ComponentOptions.buildBooleanOption({defaultValue:!1}),searchHub:r.ComponentOptions.buildStringOption({defaultValue:"default"}),splitTestRunName:r.ComponentOptions.buildStringOption(),splitTestRunVersion:r.ComponentOptions.buildStringOption(),sendToCloud:r.ComponentOptions.buildBooleanOption({defaultValue:!0}),organization:r.ComponentOptions.buildStringOption(),autoPushToGtmDataLayer:r.ComponentOptions.buildBooleanOption({defaultValue:!1}),gtmDataLayerName:r.ComponentOptions.buildStringOption({defaultValue:"dataLayer"})},t}(u.Component);t.Analytics=ot},function(n,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=i(93),u=function(){function n(){}return n.shouldDrawFacetSlider=function(n,t){return r.ResponsiveDropdownContent.isTargetInsideOpenedDropdown(t)||!this.isSmallFacetActivated(n)},n.isSmallTabsActivated=function(n){return n.hasClass(this.smallTabsClassName)},n.isSmallFacetActivated=function(n){return n.hasClass(this.smallFacetClassName)},n.isSmallRecommendationActivated=function(n){return n.hasClass(this.smallRecommendationClassName)},n.activateSmallTabs=function(n){n.addClass(this.smallTabsClassName)},n.deactivateSmallTabs=function(n){n.removeClass(this.smallTabsClassName)},n.activateSmallFacet=function(n){n.addClass(this.smallFacetClassName)},n.deactivateSmallFacet=function(n){n.removeClass(this.smallFacetClassName)},n.activateSmallRecommendation=function(n){n.addClass(this.smallRecommendationClassName)},n.deactivateSmallRecommendation=function(n){n.removeClass(this.smallRecommendationClassName)},n.smallTabsClassName="coveo-small-tabs",n.smallFacetClassName="coveo-small-facets",n.smallRecommendationClassName="coveo-small-recommendation",n}();t.ResponsiveComponentsUtils=u},function(n,t,i){"use strict";var f=this&&this.__extends||function(){var n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])};return function(t,i){function r(){this.constructor=t}n(t,i);t.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),r,u;Object.defineProperty(t,"__esModule",{value:!0});r=i(476);u=function(n){function t(t,i,r){var u=n.call(this,t,i)||this;return u.facet=t,u.facetValue=i,u.keepDisplayedValueNextTime=r,u}return f(t,n),t.prototype.bindEvent=function(){n.prototype.bindEvent.call(this,{displayNextTime:this.keepDisplayedValueNextTime,pinFacet:this.facet.options.preservePosition})},t}(r.ValueElement);t.FacetValueElement=u},function(n,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=i(52),u=i(52);t.notWordStart=" ()[],$@'\"";t.notInWord=" ()[],:";t.Basic={basicExpressions:["Word","DoubleQuoted"],grammars:{DoubleQuoted:'"[NotDoubleQuote]"',NotDoubleQuote:/[^"]*/,SingleQuoted:"'[NotSingleQuote]'",NotSingleQuote:/[^']*/,Number:/-?(0|[1-9]\d*)(\.\d+)?/,Word:function(n,i,f){var s=new RegExp("[^"+t.notWordStart.replace(/(.)/g,"\\$1")+"][^"+t.notInWord.replace(/(.)/g,"\\$1")+"]*"),e=n.match(s),o;return null!=e&&0!=e.index&&(e=null),o=new r.Result(null!=e?e[0]:null,f,n),o.isSuccess()&&i&&n.length>o.value.length?new u.EndOfInputResult(o):o}}}},function(n,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function n(){}return n.populateResultLayout="populateResultLayout",n}();t.ResultLayoutEvents=i},function(n,t,i){"use strict";var f=this&&this.__extends||function(){var n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])};return function(t,i){function r(){this.constructor=t}n(t,i);t.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var e=i(5),o=i(77),r=i(4),u=i(23),s=function(n){function t(){var t=null!==n&&n.apply(this,arguments)||this;return t.decimals=0,t}return f(t,n),t}(o.Options),h=function(){function n(){}return n.currencyToString=function(n,t){var i,f,o;return r.Utils.isNullOrUndefined(n)?"":(n=Number(n),e.Assert.isNumber(n),t=(new s).merge(t),i=u.culture().numberFormat.currency,f=i.symbol,r.Utils.isNonEmptyString(t.symbol)&&(i.symbol=t.symbol),o=u.format(n,"c"+t.decimals.toString()),i.symbol=f,o)},n}();t.CurrencyUtils=h},function(n,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=i(1),u=i(5),f=function(){function n(t,i){this.element=i;u.Assert.isString(t);u.Assert.exists(i);this.element.addClass("coveo-"+t+"-dropdown-header");this.element.addClass(n.DEFAULT_CSS_CLASS_NAME)}return n.prototype.open=function(){this.element.addClass(n.ACTIVE_HEADER_CSS_CLASS_NAME)},n.prototype.close=function(){this.element.removeClass(n.ACTIVE_HEADER_CSS_CLASS_NAME)},n.prototype.cleanUp=function(){this.element.detach()},n.prototype.hide=function(){r.$$(this.element).addClass("coveo-hidden")},n.prototype.show=function(){r.$$(this.element).removeClass("coveo-hidden")},n.DEFAULT_CSS_CLASS_NAME="coveo-dropdown-header",n.ACTIVE_HEADER_CSS_CLASS_NAME="coveo-dropdown-header-active",n}();t.ResponsiveDropdownHeader=f},function(n,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=i(0),u=function(){function n(){}return n.evaluateFieldsToMatch=function(t,i){var u=!0;return!t||(r.each(t,function(t){var f=!1;t.values?r.each(t.values,function(r){if(!f){var u=i.raw[t.field],e=n.getFieldValueAsArray(u);f=n.isMatch(e,r)}}):f=null!=i.raw[t.field];u=u&&(t.reverseCondition?!f:f)}),u)},n.getFieldValueAsArray=function(n){return"string"==typeof n?[n]:n},n.isMatch=function(n,t){return void 0!=r.find(n,function(n){return n.toLowerCase()==t.toLowerCase()})},n}();t.TemplateFieldsEvaluator=u},function(n,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=i(0),u=function(){function n(){}return n.addPrefixedEvent=function(n,t,i){r.each(this.prefixes,function(r){""==r&&(t=t.toLowerCase());n.addEventListener(r+t,i,!1)})},n.removePrefixedEvent=function(n,t,i){r.each(this.prefixes,function(r){""==r&&(t=t.toLowerCase());n.removeEventListener(r+t,i,!1)})},n.prefixes=["webkit","moz","MS","o",""],n}();t.EventsUtils=u},function(n,t,i){"use strict";var c=this&&this.__extends||function(){var n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])};return function(t,i){function r(){this.constructor=t}n(t,i);t.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});i(565);var l=i(11),a=i(99),v=i(3),y=i(175),p=i(221),f=i(5),w=i(18),o=i(13),b=i(6),u=i(1),e=i(10),k=i(7),r=i(8),d=i(2),g=i(510),s=i(139),h=function(n){function t(i,f,s){var h=n.call(this,i,t.ID,s)||this,c;return h.element=i,h.options=f,h.bindings=s,i instanceof HTMLInputElement&&h.logger.error("Querybox cannot be used on an HTMLInputElement"),h.options=r.ComponentOptions.initComponentOptions(i,t,f),new g.QueryboxOptionsProcessing(h).postProcess(),u.$$(h.element).toggleClass("coveo-query-syntax-disabled",0==h.options.enableQuerySyntax),h.magicBox=p.createMagicBox(i,new y.Grammar("Query",{Query:"[Term*][Spaces?]",Term:"[Spaces?][Word]",Spaces:/ +/,Word:/[^ ]+/}),{inline:!0}),c=u.$$(h.magicBox.element).find("input"),c&&u.$$(c).setAttribute("aria-label",h.options.placeholder||b.l("Search")),h.bind.onRootElement(l.QueryEvents.buildingQuery,function(n){return h.handleBuildingQuery(n)}),h.bind.onRootElement(a.StandaloneSearchInterfaceEvents.beforeRedirect,function(){return h.updateQueryState()}),h.bind.onQueryState(w.MODEL_EVENTS.CHANGE_ONE,o.QUERY_STATE_ATTRIBUTES.Q,function(n){return h.handleQueryStateChanged(n)}),h.options.enableSearchAsYouType&&(u.$$(h.element).addClass("coveo-search-as-you-type"),h.magicBox.onchange=function(){h.searchAsYouType()}),h.magicBox.onsubmit=function(){h.submit()},h.magicBox.onblur=function(){h.updateQueryState()},h.magicBox.onclear=function(){h.updateQueryState();h.options.triggerQueryOnClear&&(h.usageAnalytics.logSearchEvent(e.analyticsActionCauseList.searchboxClear,{}),h.triggerNewQuery(!1))},h}return c(t,n),t.prototype.submit=function(){this.magicBox.clearSuggestion();this.updateQueryState();this.usageAnalytics.logSearchEvent(e.analyticsActionCauseList.searchboxSubmit,{});this.triggerNewQuery(!1)},t.prototype.setText=function(n){this.magicBox.setText(n);this.updateQueryState()},t.prototype.clear=function(){this.magicBox.clear()},t.prototype.getText=function(){return this.magicBox.getText()},t.prototype.getResult=function(){return this.magicBox.getResult()},t.prototype.getDisplayedResult=function(){return this.magicBox.getDisplayedResult()},t.prototype.getCursor=function(){return this.magicBox.getCursor()},t.prototype.resultAtCursor=function(n){return this.magicBox.resultAtCursor(n)},t.prototype.handleBuildingQuery=function(n){f.Assert.exists(n);f.Assert.exists(n.queryBuilder);this.updateQueryState();this.lastQuery=this.magicBox.getText();new s.QueryboxQueryParameters(this.options).addParameters(n.queryBuilder,this.lastQuery)},t.prototype.triggerNewQuery=function(n){clearTimeout(this.searchAsYouTypeTimeout);var t=this.magicBox.getText();this.lastQuery!=t&&null!=t&&(this.lastQuery=t,this.queryController.executeQuery({searchAsYouType:n,logInActionsHistory:!0}))},t.prototype.updateQueryState=function(){this.queryStateModel.set(o.QueryStateModel.attributesEnum.q,this.magicBox.getText())},t.prototype.handleQueryStateChanged=function(n){f.Assert.exists(n);var t=n.value;t!=this.magicBox.getText()&&this.magicBox.setText(t)},t.prototype.searchAsYouType=function(){var n=this;clearTimeout(this.searchAsYouTypeTimeout);this.searchAsYouTypeTimeout=window.setTimeout(function(){n.usageAnalytics.logSearchAsYouType(e.analyticsActionCauseList.searchboxAsYouType,{});n.triggerNewQuery(!0)},this.options.searchAsYouTypeDelay)},t.ID="Querybox",t.doExport=function(){v.exportGlobally({Querybox:t,QueryboxQueryParameters:s.QueryboxQueryParameters})},t.options={enableSearchAsYouType:r.ComponentOptions.buildBooleanOption({defaultValue:!1,section:"Advanced Options"}),searchAsYouTypeDelay:r.ComponentOptions.buildNumberOption({defaultValue:50,min:0,section:"Advanced Options"}),enableQuerySyntax:r.ComponentOptions.buildBooleanOption({defaultValue:!1,section:"Advanced Options"}),enableWildcards:r.ComponentOptions.buildBooleanOption({defaultValue:!1,section:"Advanced Options"}),enableQuestionMarks:r.ComponentOptions.buildBooleanOption({defaultValue:!1,depend:"enableWildcards"}),enableLowercaseOperators:r.ComponentOptions.buildBooleanOption({defaultValue:!1,depend:"enableQuerySyntax"}),enablePartialMatch:r.ComponentOptions.buildBooleanOption({defaultValue:!1}),partialMatchKeywords:r.ComponentOptions.buildNumberOption({defaultValue:5,min:1,depend:"enablePartialMatch"}),partialMatchThreshold:r.ComponentOptions.buildStringOption({defaultValue:"50%",depend:"enablePartialMatch"}),triggerQueryOnClear:r.ComponentOptions.buildBooleanOption({defaultValue:!1})},t}(k.Component);t.Querybox=h;d.Initialization.registerAutoCreateComponent(h)},function(n,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=i(0),u=i(66),f=function(){function n(n){this.options=n}return n.queryIsBlocked=function(){return!!n.queryIsCurrentlyBlocked||(n.queryIsCurrentlyBlocked=!0,u.Defer.defer(function(){return n.allowDuplicateQuery()}),!1)},n.allowDuplicateQuery=function(){n.queryIsCurrentlyBlocked=!1},n.prototype.addParameters=function(t,i){n.queryIsBlocked()||(this.options.enableWildcards&&(t.enableWildcards=!0),this.options.enableQuestionMarks&&(t.enableQuestionMarks=!0),this.options.enableLowercaseOperators&&(t.enableLowercaseOperators=!0),r.isEmpty(i)||(t.enableQuerySyntax=this.options.enableQuerySyntax,t.expression.add(i),this.options.enablePartialMatch&&(t.enablePartialMatch=this.options.enablePartialMatch,this.options.partialMatchKeywords&&(t.partialMatchKeywords=this.options.partialMatchKeywords),this.options.partialMatchThreshold&&(t.partialMatchThreshold=this.options.partialMatchThreshold))))},n.queryIsCurrentlyBlocked=!1,n}();t.QueryboxQueryParameters=f},function(n,t,i){"use strict";var r,u,f,e;Object.defineProperty(t,"__esModule",{value:!0});r=i(1);u=i(0);i(566);f=i(3);e=function(){function n(n,t){var i=this;this.labelElement=r.$$("span",{className:"coveo-form-group-label"});this.labelElement.text(t);this.element=r.$$("fieldset",{className:"coveo-form-group"},this.labelElement);u.each(n,function(n){i.element.append(n.build())})}return n.doExport=function(){f.exportGlobally({FormGroup:n})},n.prototype.build=function(){return this.element.el},n}();t.FormGroup=e},function(n,t,i){"use strict";var v=this&&this.__extends||function(){var n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])};return function(t,i){function r(){this.constructor=t}n(t,i);t.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),y=this&&this.__assign||Object.assign||function(n){for(var t,r,i=1,u=arguments.length;i<u;i++){t=arguments[i];for(r in t)Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},p=this&&this.__awaiter||function(n,t,i,r){return new(i||(i=Promise))(function(u,f){function o(n){try{e(r.next(n))}catch(n){f(n)}}function s(n){try{e(r.throw(n))}catch(n){f(n)}}function e(n){n.done?u(n.value):new i(function(t){t(n.value)}).then(o,s)}e((r=r.apply(n,t||[])).next())})},w=this&&this.__generator||function(n,t){function f(n){return function(t){return s([n,t])}}function s(f){if(e)throw new TypeError("Generator is already executing.");for(;r;)try{if(e=1,u&&(i=u[2&f[0]?"return":f[0]?"throw":"next"])&&!(i=i.call(u,f[1])).done)return i;switch(u=0,i&&(f=[0,i.value]),f[0]){case 0:case 1:i=f;break;case 4:return r.label++,{value:f[1],done:!1};case 5:r.label++;u=f[1];f=[0];continue;case 7:f=r.ops.pop();r.trys.pop();continue;default:if(i=r.trys,!(i=i.length>0&&i[i.length-1])&&(6===f[0]||2===f[0])){r=0;continue}if(3===f[0]&&(!i||f[1]>i[0]&&f[1]<i[3])){r.label=f[1];break}if(6===f[0]&&r.label<i[1]){r.label=i[1];i=f;break}if(i&&r.label<i[2]){r.label=i[2];r.ops.push(f);break}i[2]&&r.ops.pop();r.trys.pop();continue}f=t.call(n,r)}catch(n){f=[6,n];u=0}finally{e=i=0}if(5&f[0])throw f[1];return{value:f[0]?f[1]:void 0,done:!0}}var e,u,i,o,r={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:f(0),"throw":f(1),"return":f(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o};Object.defineProperty(t,"__esModule",{value:!0});i(223);var e=i(0),f=i(1),b=i(3),k=i(7),r=i(8),d=i(2),g=i(84),nt=i(580),tt=i(581),it=i(182),rt=i(516),o=i(11),l=i(13),ut=i(517),s=i(4),ft=i(18),u=i(5),et=i(512),ot=i(6),st=i(24),a=i(35),h=i(10),ht=i(583),ct=i(117),lt=i(183),at=i(173),vt=i(586),yt=i(9),pt=i(40),c=function(n){function t(i,u,f,o){void 0===o&&(o=t.ID);var h=n.call(this,i,o,f)||this;return h.element=i,h.listenToQueryStateChange=!0,h.moreValuesAvailable=!1,h.isDynamicFacet=!0,h.isFieldValueCompatible=!0,h.isFieldValueHierarchical=!1,h.handleQueryStateChangedIncluded=function(n){var t=h.values.selectedValues,i=n.filter(function(n){return h.values.get(n)}),r=e.difference(i,t),u=e.difference(t,i);s.Utils.isNonEmptyArray(r)&&h.selectMultipleValues(r);s.Utils.isNonEmptyArray(u)&&h.deselectMultipleValues(u)},h.options=r.ComponentOptions.initComponentOptions(i,t,u),h.initDynamicFacetQueryController(),h.initDependsOnManager(),h.initQueryEvents(),h.initQueryStateEvents(),h.initBreadCrumbEvents(),h.initComponentStateEvents(),h.initValues(),h.verifyCollapsingConfiguration(),h.isCollapsed=h.options.enableCollapse&&h.options.collapsedByDefault,nt.ResponsiveDynamicFacets.init(h.root,h,h.options),h}return v(t,n),Object.defineProperty(t.prototype,"fieldName",{get:function(){return this.options.field.slice(1)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"facetType",{get:function(){return lt.FacetType.specific},enumerable:!0,configurable:!0}),t.prototype.selectValue=function(n){u.Assert.exists(n);this.selectMultipleValues([n])},t.prototype.selectMultipleValues=function(n){var t=this;u.Assert.exists(n);this.ensureDom();this.logger.info("Selecting facet value(s)",n);n.forEach(function(n){t.values.get(n).select()});this.updateQueryStateModel()},t.prototype.deselectValue=function(n){u.Assert.exists(n);this.deselectMultipleValues([n])},t.prototype.hasSelectedValue=function(n){return this.values.hasSelectedValue(n)},t.prototype.deselectMultipleValues=function(n){var t=this;u.Assert.exists(n);this.ensureDom();this.logger.info("Deselecting facet value(s)",n);n.forEach(function(n){t.values.get(n).deselect()});this.updateQueryStateModel()},t.prototype.toggleSelectValue=function(n){u.Assert.exists(n);this.ensureDom();var t=this.values.get(n);t.toggleSelect();this.logger.info("Toggle select facet value",t);this.updateQueryStateModel()},t.prototype.focusValueAfterRerender=function(n){u.Assert.exists(n);this.valueToFocusOnRender=n},t.prototype.getCaptionForStringValue=function(n){return pt.FacetUtils.getDisplayValueFromValueCaption(n,this.options.field,this.options.valueCaption)},t.prototype.showMoreValues=function(n){var t=this;void 0===n&&(n=this.options.numberOfValues);this.ensureDom();this.logger.info("Show more values");this.dynamicFacetQueryController.increaseNumberOfValuesToRequest(n);this.triggerNewIsolatedQuery(function(){return t.logAnalyticsFacetShowMoreLess(h.analyticsActionCauseList.dynamicFacetShowMore)})},t.prototype.showLessValues=function(){var n=this;this.ensureDom();this.logger.info("Show less values");this.dynamicFacetQueryController.resetNumberOfValuesToRequest();this.triggerNewIsolatedQuery(function(){return n.logAnalyticsFacetShowMoreLess(h.analyticsActionCauseList.dynamicFacetShowLess)})},t.prototype.reset=function(){this.ensureDom();this.values.hasActiveValues&&(this.logger.info("Deselect all values"),this.values.clearAll(),this.values.render(),this.enablePreventAutoSelectionFlag(),this.updateAppearance(),this.updateQueryStateModel())},t.prototype.toggleCollapse=function(){this.isCollapsed?this.expand():this.collapse()},t.prototype.expand=function(){if(!this.options.enableCollapse)return this.logger.warn('Calling expand() won\'t do anything on a facet that has the option "enableCollapse" set to "false"');this.isCollapsed&&(this.ensureDom(),this.logger.info("Expand facet values"),this.isCollapsed=!1,this.updateAppearance())},t.prototype.collapse=function(){if(!this.options.enableCollapse)return this.logger.warn('Calling collapse() won\'t do anything on a facet that has the option "enableCollapse" set to "false"');this.isCollapsed||(this.ensureDom(),this.logger.info("Collapse facet values"),this.isCollapsed=!0,this.updateAppearance())},t.prototype.enableFreezeCurrentValuesFlag=function(){this.dynamicFacetQueryController.enableFreezeCurrentValuesFlag()},t.prototype.enableFreezeFacetOrderFlag=function(){this.dynamicFacetQueryController.enableFreezeFacetOrderFlag()},t.prototype.enablePreventAutoSelectionFlag=function(){this.dynamicFacetQueryController.enablePreventAutoSelectionFlag()},t.prototype.scrollToTop=function(){this.options.enableScrollToTop&&ct.ResultListUtils.scrollToTop(this.root)},Object.defineProperty(t.prototype,"analyticsFacetState",{get:function(){return this.values.activeValues.map(function(n){return n.analyticsFacetState})},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"basicAnalyticsFacetState",{get:function(){return{field:this.options.field.toString(),id:this.options.id,title:this.options.title,facetType:this.facetType,facetPosition:this.position}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"basicAnalyticsFacetMeta",{get:function(){return{facetField:this.options.field.toString(),facetId:this.options.id,facetTitle:this.options.title}},enumerable:!0,configurable:!0}),t.prototype.logAnalyticsEvent=function(n,t){this.usageAnalytics.logSearchEvent(n,t)},t.prototype.putStateIntoQueryBuilder=function(n){u.Assert.exists(n);this.dynamicFacetQueryController.putFacetIntoQueryBuilder(n)},t.prototype.putStateIntoAnalytics=function(){var n=this.usageAnalytics.getPendingSearchEvent();n&&n.addFacetState(this.analyticsFacetState)},t.prototype.isCurrentlyDisplayed=function(){return f.$$(this.element).isVisible()},Object.defineProperty(t.prototype,"hasActiveValues",{get:function(){return this.values.hasActiveValues},enumerable:!0,configurable:!0}),t.prototype.initQueryEvents=function(){var n=this;this.bind.onRootElement(o.QueryEvents.duringQuery,function(){return n.ensureDom()});this.bind.onRootElement(o.QueryEvents.doneBuildingQuery,function(t){return n.handleDoneBuildingQuery(t)});this.bind.onRootElement(o.QueryEvents.deferredQuerySuccess,function(t){return n.handleQuerySuccess(t.results)});this.bind.onRootElement(o.QueryEvents.queryError,function(){return n.onNoValues()})},t.prototype.initQueryStateEvents=function(){this.includedAttributeId=l.QueryStateModel.getFacetId(this.options.id);this.queryStateModel.registerNewAttribute(this.includedAttributeId,[]);this.bind.onQueryState(ft.MODEL_EVENTS.CHANGE,void 0,this.handleQueryStateChanged)},t.prototype.initBreadCrumbEvents=function(){var n=this;this.options.includeInBreadcrumb&&(this.bind.onRootElement(a.BreadcrumbEvents.populateBreadcrumb,function(t){return n.handlePopulateBreadcrumb(t)}),this.bind.onRootElement(a.BreadcrumbEvents.clearBreadcrumb,function(){return n.reset()}))},t.prototype.initValues=function(){this.values=new rt.DynamicFacetValues(this,vt.DynamicFacetValueCreator)},t.prototype.initComponentStateEvents=function(){var n=l.QueryStateModel.getFacetId(this.options.id);this.componentStateModel.registerComponent(n,this)},t.prototype.initDynamicFacetQueryController=function(){this.dynamicFacetQueryController=new ut.DynamicFacetQueryController(this)},t.prototype.handleDoneBuildingQuery=function(n){this.dynamicFacetManager||(u.Assert.exists(n),u.Assert.exists(n.queryBuilder),this.putStateIntoQueryBuilder(n.queryBuilder),this.putStateIntoAnalytics())},t.prototype.handleQuerySuccess=function(n){if(!this.dynamicFacetManager)return s.Utils.isNullOrUndefined(n.facets)?this.notImplementedError():void this.handleQueryResults(n)},t.prototype.handleQueryResults=function(n){var u=this,t=e.findIndex(n.facets,{facetId:this.options.id}),i=-1!==t?n.facets[t]:null,r;(this.position=i?t+1:void 0,i?this.onNewValues(i):this.onNoValues(),this.header.hideLoading(),this.updateQueryStateModel(),this.values.render(),this.updateAppearance(),this.valueToFocusOnRender)&&(r=this.valueToFocusOnRender,this.valueToFocusOnRender=null,e.defer(function(){return u.values.focus(r)}))},t.prototype.onNewValues=function(n){this.moreValuesAvailable=n.moreValuesAvailable;this.values.createFromResponse(n);this.options.customSort&&this.values.reorderValues(this.options.customSort)},t.prototype.onNoValues=function(){this.moreValuesAvailable=!1;this.values.resetValues()},t.prototype.handleQueryStateChanged=function(n){if(this.listenToQueryStateChange){var t=n.attributes[this.includedAttributeId];t&&this.handleQueryStateChangedIncluded(t)}},t.prototype.handlePopulateBreadcrumb=function(n){if(u.Assert.exists(n),this.values.hasActiveValues){var t=new tt.DynamicFacetBreadcrumbs(this,{headingLevel:n.headingLevel});n.breadcrumbs.push({element:t.element})}},t.prototype.initDependsOnManager=function(){var n=this,t={reset:function(){return n.reset()},ref:this};this.dependsOnManager=new at.DependsOnManager(t)},t.prototype.createDom=function(){this.createAndAppendContent();this.updateAppearance()},t.prototype.createAndAppendContent=function(){this.createAndAppendHeader();this.createAndAppendSearch();this.createAndAppendValues()},t.prototype.createAndAppendHeader=function(){var n=this;this.header=new it.DynamicFacetHeader({id:this.options.id,title:this.options.title,enableCollapse:this.options.enableCollapse,headingLevel:this.options.headingLevel,clear:function(){return n.clear()},toggleCollapse:function(){return n.toggleCollapse()},collapse:function(){return n.collapse()},expand:function(){return n.expand()}});this.element.appendChild(this.header.element)},t.prototype.createAndAppendSearch=function(){!1!==this.options.enableFacetSearch&&(this.search=new ht.DynamicFacetSearch(this),this.element.appendChild(this.search.element))},t.prototype.createAndAppendValues=function(){this.element.appendChild(this.values.render())},t.prototype.updateQueryStateModel=function(){this.listenToQueryStateChange=!1;this.queryStateModel.set(this.includedAttributeId,this.values.selectedValues);this.listenToQueryStateChange=!0},t.prototype.updateAppearance=function(){this.header.toggleClear(this.values.hasSelectedValues);this.header.toggleCollapse(this.isCollapsed);this.toggleSearchDisplay();f.$$(this.element).toggleClass("coveo-dynamic-facet-collapsed",this.isCollapsed);f.$$(this.element).toggleClass("coveo-active",this.values.hasSelectedValues);f.$$(this.element).toggleClass("coveo-hidden",!this.values.hasDisplayedValues)},t.prototype.toggleSearchDisplay=function(){if(!1!==this.options.enableFacetSearch)return this.isCollapsed?f.$$(this.search.element).toggleClass("coveo-hidden",!0):void f.$$(this.search.element).toggleClass("coveo-hidden",!this.options.enableFacetSearch&&!this.moreValuesAvailable)},t.prototype.triggerNewQuery=function(n){this.beforeSendingQuery();var t=n?{beforeExecuteQuery:n}:{ignoreWarningSearchEvent:!0};this.queryController.executeQuery(t)},t.prototype.triggerNewIsolatedQuery=function(n){return p(this,void 0,void 0,function(){var t,i;return w(this,function(r){switch(r.label){case 0:this.beforeSendingQuery();n&&n();r.label=1;case 1:return r.trys.push([1,3,,4]),[4,this.dynamicFacetQueryController.getQueryResults()];case 2:return t=r.sent(),this.handleQueryResults(t),[3,4];case 3:return i=r.sent(),this.header.hideLoading(),[3,4];case 4:return[2]}})})},t.prototype.beforeSendingQuery=function(){this.header.showLoading()},t.prototype.notImplementedError=function(){this.logger.error("DynamicFacets are not supported by your current search endpoint. Disabling this component.");this.disable();this.updateAppearance()},t.prototype.verifyCollapsingConfiguration=function(){this.options.collapsedByDefault&&!this.options.enableCollapse&&this.logger.warn('The "collapsedByDefault" option is "true" while the "enableCollapse" is "false"')},t.prototype.logAnalyticsFacetShowMoreLess=function(n){this.usageAnalytics.logCustomEvent(n,this.basicAnalyticsFacetMeta,this.element)},t.prototype.clear=function(){var n=this;this.reset();this.enableFreezeFacetOrderFlag();this.scrollToTop();this.triggerNewQuery(function(){return n.logClearAllToAnalytics()})},t.prototype.logClearAllToAnalytics=function(){this.logAnalyticsEvent(h.analyticsActionCauseList.dynamicFacetClearAll,this.basicAnalyticsFacetMeta)},t.ID="DynamicFacet",t.doExport=function(){return b.exportGlobally({DynamicFacet:t})},t.options=y({},g.ResponsiveFacetOptions,{id:r.ComponentOptions.buildStringOption({postProcessing:function(n,t){void 0===n&&(n="");var i=n.replace(/[^A-Za-z0-9-_@]+/g,"");return s.Utils.isNonEmptyString(i)?i.slice(0,59):t.field.slice(0,59)},section:"CommonOptions"}),title:r.ComponentOptions.buildLocalizedStringOption({localizedString:function(){return ot.l("NoTitle")},section:"CommonOptions",priority:10}),field:r.ComponentOptions.buildFieldOption({required:!0,section:"CommonOptions"}),sortCriteria:r.ComponentOptions.buildStringOption({postProcessing:function(n){if(n)return et.isFacetSortCriteria(n)?n:void new yt.Logger(n).warn('sortCriteria is not of the the allowed values: "score", "alphanumeric", "occurrences"')},section:"Sorting"}),customSort:r.ComponentOptions.buildListOption({section:"Sorting"}),numberOfValues:r.ComponentOptions.buildNumberOption({min:0,defaultValue:8,section:"CommonOptions"}),enableCollapse:r.ComponentOptions.buildBooleanOption({defaultValue:!0,section:"CommonOptions"}),enableScrollToTop:r.ComponentOptions.buildBooleanOption({defaultValue:!0,section:"CommonOptions"}),enableMoreLess:r.ComponentOptions.buildBooleanOption({defaultValue:!0,section:"CommonOptions"}),enableFacetSearch:r.ComponentOptions.buildBooleanOption({section:"Filtering"}),useLeadingWildcardInFacetSearch:r.ComponentOptions.buildBooleanOption({defaultValue:!0,section:"Filtering",depend:"enableFacetSearch"}),collapsedByDefault:r.ComponentOptions.buildBooleanOption({defaultValue:!1,section:"CommonOptions",depend:"enableCollapse"}),includeInBreadcrumb:r.ComponentOptions.buildBooleanOption({defaultValue:!0,section:"CommonOptions"}),numberOfValuesInBreadcrumb:r.ComponentOptions.buildNumberOption({defaultFunction:function(){return st.DeviceUtils.isMobileDevice()?3:5},min:0,depend:"includeInBreadcrumb",section:"CommonOptions"}),valueCaption:r.ComponentOptions.buildJsonOption({defaultValue:{}}),dependsOn:r.ComponentOptions.buildStringOption({section:"CommonOptions"}),dependsOnCondition:r.ComponentOptions.buildCustomOption(function(){return null},{depend:"dependsOn",section:"CommonOptions"}),injectionDepth:r.ComponentOptions.buildNumberOption({defaultValue:1e3,min:1e3}),filterFacetCount:r.ComponentOptions.buildBooleanOption({section:"Filtering"}),headingLevel:r.ComponentOptions.buildNumberOption({defaultValue:2,min:0,max:6})}),t}(k.Component);t.DynamicFacet=c;d.Initialization.registerAutoCreateComponent(c);c.doExport()},function(n,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function n(){}return n.startSlide="startSlide",n.duringSlide="duringSlide",n.endSlide="endSlide",n.graphValueSelected="graphValueSelected",n}();t.SliderEvents=i},function(n,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function n(){}return n.hsvToRgb=function(n,t,i){var r,u,f,h=Math.floor(6*n),c=6*n-h,e=i*(1-t),o=i*(1-c*t),s=i*(1-(1-c)*t);switch(h%6){case 0:r=i;u=s;f=e;break;case 1:r=o;u=i;f=e;break;case 2:r=e;u=i;f=s;break;case 3:r=e;u=o;f=i;break;case 4:r=s;u=e;f=i;break;case 5:r=i;u=e;f=o}return[Math.round(255*r),Math.round(255*u),Math.round(255*f)]},n.rgbToHsv=function(n,t,i){n/=255;t/=255;i/=255;var r,e,u=Math.max(n,t,i),o=Math.min(n,t,i),s=u,f=u-o;if(e=0==u?0:f/u,u==o)r=0;else{switch(u){case n:r=(t-i)/f+(t<i?6:0);break;case t:r=(i-n)/f+2;break;case i:r=(n-t)/f+4}r/=6}return[r,e,s]},n}();t.ColorUtils=i},function(n,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=i(5),u=function(){function n(n){this.status=n.statusCode;this.message=n.data.message;this.name=this.type=n.data.type;this.queryExecutionReport=n.data.executionReport;r.Assert.isNumber(this.status);r.Assert.isNonEmptyString(this.message);r.Assert.isNonEmptyString(this.type)}return n}();t.QueryError=u},function(n,t,i){"use strict";function r(n){return n.json().then(function(t){return t.raw=n,t})}var f=i(146),u;i(311);t.Version="v15";t.Endpoints={"default":"https://usageanalytics.coveo.com",production:"https://usageanalytics.coveo.com",dev:"https://usageanalyticsdev.coveo.com",staging:"https://usageanalyticsstaging.coveo.com"};u=function(){function n(n){if(void 0===n)throw new Error("You have to pass options to this constructor");this.endpoint=n.endpoint||t.Endpoints.default;this.token=n.token;this.version=n.version||t.Version}return n.prototype.sendEvent=function(n,t){return fetch(this.getRestEndpoint()+"/analytics/"+n,{method:"POST",headers:this.getHeaders(),mode:"cors",body:JSON.stringify(t),credentials:"include"})},n.prototype.sendSearchEvent=function(n){return this.sendEvent("search",n).then(r)},n.prototype.sendClickEvent=function(n){return this.sendEvent("click",n).then(r)},n.prototype.sendCustomEvent=function(n){return this.sendEvent("custom",n).then(r)},n.prototype.sendViewEvent=function(n){""===n.referrer&&delete n.referrer;var t=new f.HistoryStore,i={name:"PageView",value:n.contentIdValue,time:JSON.stringify(new Date)};return t.addElement(i),this.sendEvent("view",n).then(r)},n.prototype.getVisit=function(){return fetch(this.getRestEndpoint()+"/analytics/visit").then(r)},n.prototype.getHealth=function(){return fetch(this.getRestEndpoint()+"/analytics/monitoring/health").then(r)},n.prototype.getRestEndpoint=function(){return this.endpoint+"/rest/"+this.version},n.prototype.getHeaders=function(){var n={"Content-Type":"application/json"};return this.token&&(n.Authorization="Bearer "+this.token),n},n}();t.Client=u;Object.defineProperty(t,"__esModule",{value:!0});t.default=u},function(n,t,i){"use strict";var r=i(104),f=i(147),u;t.STORE_KEY="__coveo.analytics.history";t.MAX_NUMBER_OF_HISTORY_ELEMENTS=20;t.MIN_THRESHOLD_FOR_DUPLICATE_VALUE=6e4;t.MAX_VALUE_SIZE=75;u=function(){function n(n){this.store=n||r.getAvailableStorage();this.store instanceof r.CookieStorage||!f.hasCookieStorage()||(new r.CookieStorage).removeItem(t.STORE_KEY)}return n.prototype.addElement=function(n){n.internalTime=(new Date).getTime();this.cropQueryElement(n);var t=this.getHistoryWithInternalTime();null!=t?this.isValidEntry(n)&&this.setHistory([n].concat(t)):this.setHistory([n])},n.prototype.getHistory=function(){var n=this.getHistoryWithInternalTime();return this.stripInternalTime(n)},n.prototype.getHistoryWithInternalTime=function(){try{return JSON.parse(this.store.getItem(t.STORE_KEY))}catch(n){return[]}},n.prototype.setHistory=function(n){try{this.store.setItem(t.STORE_KEY,JSON.stringify(n.slice(0,t.MAX_NUMBER_OF_HISTORY_ELEMENTS)))}catch(n){}},n.prototype.clear=function(){try{this.store.removeItem(t.STORE_KEY)}catch(n){}},n.prototype.getMostRecentElement=function(){var n=this.getHistoryWithInternalTime();return null!=n?n.sort(function(n,t){return null==n.internalTime&&null==t.internalTime?0:null==n.internalTime&&null!=t.internalTime?1:null!=n.internalTime&&null==t.internalTime?-1:t.internalTime-n.internalTime})[0]:null},n.prototype.cropQueryElement=function(n){n.name&&"query"==n.name.toLowerCase()&&null!=n.value&&(n.value=n.value.slice(0,t.MAX_VALUE_SIZE))},n.prototype.isValidEntry=function(n){var i=this.getMostRecentElement();return!i||i.value!=n.value||n.internalTime-i.internalTime>t.MIN_THRESHOLD_FOR_DUPLICATE_VALUE},n.prototype.stripInternalTime=function(n){return n&&n.forEach(function(n){delete n.internalTime}),n},n}();t.HistoryStore=u;Object.defineProperty(t,"__esModule",{value:!0});t.default=u},function(n,t){"use strict";function r(){try{return"localStorage"in window&&null!==window.localStorage}catch(n){return!1}}function u(){try{return"sessionStorage"in window&&null!==window.sessionStorage}catch(n){return!1}}function f(){return navigator.cookieEnabled}function i(){return null!==document}function e(){return i()&&null!==document.location}t.hasLocalStorage=r;t.hasSessionStorage=u;t.hasCookieStorage=f;t.hasDocument=i;t.hasDocumentLocation=e},function(n,t,i){"use strict";var o=this&&this.__awaiter||function(n,t,i,r){return new(i||(i=Promise))(function(u,f){function o(n){try{e(r.next(n))}catch(n){f(n)}}function s(n){try{e(r.throw(n))}catch(n){f(n)}}function e(n){n.done?u(n.value):new i(function(t){t(n.value)}).then(o,s)}e((r=r.apply(n,t||[])).next())})},s=this&&this.__generator||function(n,t){function f(n){return function(t){return s([n,t])}}function s(f){if(e)throw new TypeError("Generator is already executing.");for(;r;)try{if(e=1,u&&(i=u[2&f[0]?"return":f[0]?"throw":"next"])&&!(i=i.call(u,f[1])).done)return i;switch(u=0,i&&(f=[0,i.value]),f[0]){case 0:case 1:i=f;break;case 4:return r.label++,{value:f[1],done:!1};case 5:r.label++;u=f[1];f=[0];continue;case 7:f=r.ops.pop();r.trys.pop();continue;default:if(i=r.trys,!(i=i.length>0&&i[i.length-1])&&(6===f[0]||2===f[0])){r=0;continue}if(3===f[0]&&(!i||f[1]>i[0]&&f[1]<i[3])){r.label=f[1];break}if(6===f[0]&&r.label<i[1]){r.label=i[1];i=f;break}if(i&&r.label<i[2]){r.label=i[2];r.ops.push(f);break}i[2]&&r.ops.pop();r.trys.pop();continue}f=t.call(n,r)}catch(n){f=[6,n];u=0}finally{e=i=0}if(5&f[0])throw f[1];return{value:f[0]?f[1]:void 0,done:!0}}var e,u,i,o,r={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:f(0),"throw":f(1),"return":f(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o},r,u,f,e;Object.defineProperty(t,"__esModule",{value:!0});u=i(9);f=i(0);!function(n){n.NO_RENEW_FUNCTION="NO_RENEW_FUNCTION";n.REPEATED_FAILURES="REPEATED_FAILURES"}(r=t.ACCESS_TOKEN_ERRORS||(t.ACCESS_TOKEN_ERRORS={}));e=function(){function n(n,t){var i=this;this.token=n;this.renew=t;this.subscribers=[];this.logger=new u.Logger(this);this.triedRenewals=0;this.resetRenewalTriesAfterDelay=f.debounce(function(){i.triedRenewals=0},500,!1)}return n.prototype.updateToken=function(n){this.token=n;this.notifySubscribers()},n.prototype.doRenew=function(n){return o(this,void 0,void 0,function(){var i,t;return s(this,function(u){switch(u.label){case 0:this.triedRenewals++;this.resetRenewalTriesAfterDelay();u.label=1;case 1:return u.trys.push([1,3,,4]),this.verifyRenewSetup(),this.logger.info("Renewing expired access token"),i=this,[4,this.renew()];case 2:return i.token=u.sent(),this.logger.info("Access token renewed",this.token),this.notifySubscribers(),[2,!0];case 3:switch(t=u.sent(),t.message){case r.REPEATED_FAILURES:this.logger.error("AccessToken tried to renew itself extremely fast in a short period of time");this.logger.error("There is most probably an authentication error, or a bad implementation of the custom renew function");this.logger.error("Inspect the developer console of your browser to find out the root cause");break;case r.NO_RENEW_FUNCTION:this.logger.error("AccessToken tried to renew, but no function is configured on initialization to provide acess token renewal");this.logger.error("The option name is renewAccessToken on the SearchEndpoint class")}return this.logger.error("Failed to renew access token",t),n&&n(t),[2,!1];case 4:return[2]}})})},n.prototype.subscribeToRenewal=function(n){this.subscribers.push(n)},n.prototype.verifyRenewSetup=function(){if(null==this.renew)throw new Error(r.NO_RENEW_FUNCTION);if(this.triedRenewals>=5)throw new Error(r.REPEATED_FAILURES);},n.prototype.notifySubscribers=function(){var n=this;this.subscribers.forEach(function(t){return t(n.token)})},n}();t.AccessToken=e},function(n,t){"use strict";function f(n){var t=i(i({},u),n);return t.numOfAttempts<1&&(t.numOfAttempts=1),t}var i=this&&this.__assign||function(){return i=Object.assign||function(n){for(var t,r,i=1,u=arguments.length;i<u;i++){t=arguments[i];for(r in t)Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},i.apply(this,arguments)},r,u;Object.defineProperty(t,"__esModule",{value:!0});!function(n){n.None="none";n.Full="full"}(r=t.JitterTypes||(t.JitterTypes={}));u={delayFirstAttempt:!1,jitter:r.None,maxDelay:1/0,numOfAttempts:10,retry:function(){return!0},startingDelay:100,timeMultiple:2};t.getSanitizedOptions=f},function(n,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=i(320),u=function(){function n(n){this.options=n;this.attempt=0}return n.prototype.apply=function(){var n=this;return new Promise(function(t){return setTimeout(t,n.jitteredDelay)})},n.prototype.setAttemptNumber=function(n){this.attempt=n},Object.defineProperty(n.prototype,"jitteredDelay",{get:function(){return r.JitterFactory(this.options)(this.delay)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"delay",{get:function(){var n=this.options.startingDelay,t=this.options.timeMultiple,i=this.numOfDelayedAttempts,r=n*Math.pow(t,i);return Math.min(r,this.options.maxDelay)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"numOfDelayedAttempts",{get:function(){return this.attempt},enumerable:!0,configurable:!0}),n}();t.Delay=u},function(n,t,i){"use strict";function e(){var n=String.locales||(String.locales={});n.en=f(n.en,r);String.toLocaleString.call(this,{en:r});String.locale="en";String.defaultLocale="en";u.culture("en")}function o(){var n=String.locales||(String.locales={});n.en=f(n.en,r);String.toLocaleString.call(this,{en:r});String.locale="en";String.defaultLocale="en";u.culture("en")}Object.defineProperty(t,"__esModule",{value:!0});var u=i(23),f=function(n,t){var r={},i;for(i in n)r[i]=n[i];for(i in t)r[i]=t[i];return r},r={"box user":"User","filetype_box user":"User",html:"HTML File",filetype_html:"HTML File",wiki:"Wiki",filetype_wiki:"Wiki",webscraperwebpage:"Web Page",filetype_webscraperwebpage:"Web Page",image:"Image",filetype_image:"Image",folder:"Folder",filetype_folder:"Folder",txt:"Text",filetype_txt:"Text",zip:"Zip File",filetype_zip:"Zip File",olefile:"OLE file",filetype_olefile:"OLE file",gmailmessage:"Gmail Message",filetype_gmailmessage:"Gmail Message",pdf:"PDF File",filetype_pdf:"PDF File",swf:"Flash File",filetype_swf:"Flash File",xml:"XML File",filetype_xml:"XML File",vsd:"Visio",filetype_vsd:"Visio",svg:"SVG",filetype_svg:"SVG",svm:"Open Office",filetype_svm:"Open Office",rssitem:"RSS feed",filetype_rssitem:"RSS feed",doc:"Document",filetype_doc:"Document",docx:"Microsoft Word Document",filetype_docx:"Microsoft Word Document",xls:"Spreadsheet Document",filetype_xls:"Spreadsheet Document",ppt:"Presentation Document",filetype_ppt:"Presentation Document",video:"Video",filetype_video:"Video",youtube:"YouTube video",filetype_youtube:"YouTube video",saleforceitem:"Salesforce",filetype_saleforceitem:"Salesforce",dynamicscrmitem:"Dynamics CRM",filetype_dynamicscrmitem:"Dynamics CRM",salesforceitem:"Salesforce",filetype_salesforceitem:"Salesforce",odt:"Open Text Document",filetype_odt:"Open Text Document",box:"User",filetype_box:"User",jiraissue:"Jira Issue",filetype_jiraissue:"Jira Issue",cfpage:"Confluence Page",filetype_cfpage:"Confluence Page",cfcomment:"Confluence Comment",filetype_cfcomment:"Confluence Comment",cfspace:"Confluence Space",filetype_cfspace:"Confluence Space",cfblogentry:"Confluence Blog Entry",filetype_cfblogentry:"Confluence Blog Entry",confluencespace:"Confluence Space",filetype_confluencespace:"Confluence Space",exchangemessage:"Message",filetype_exchangemessage:"Message",exchangeappointment:"Appointment",filetype_exchangeappointment:"Appointment",exchangenote:"Note",filetype_exchangenote:"Note",exchangetask:"Task",filetype_exchangetask:"Task",exchangeperson:"Exchange User",filetype_exchangeperson:"Exchange User",activedirperson:"Active Directory User",filetype_activedirperson:"Active Directory User",exchangeactivity:"Activity",filetype_exchangeactivity:"Activity",exchangecalendarmessage:"Calendar Message",filetype_exchangecalendarmessage:"Calendar Message",exchangedocument:"Exchange Document",filetype_exchangedocument:"Exchange Document",exchangedsn:"DSN",filetype_exchangedsn:"DSN",exchangefreebusy:"Free/Busy",filetype_exchangefreebusy:"Free/Busy",exchangegroup:"Group",filetype_exchangegroup:"Group",exchangerssfeed:"RSS Feed",filetype_exchangerssfeed:"RSS Feed",exchangejunkmessage:"Junk Email",filetype_exchangejunkmessage:"Junk Email",exchangeofficecom:"Communications",filetype_exchangeofficecom:"Communications",lithiummessage:"Lithium Message",filetype_lithiummessage:"Lithium Message",lithiumthread:"Lithium Thread",filetype_lithiumthread:"Lithium Thread",lithiumboard:"Lithium Board",filetype_lithiumboard:"Lithium Board",lithiumcategory:"Lithium Category",filetype_lithiumcategory:"Lithium Category",lithiumcommunity:"Lithium Community",filetype_lithiumcommunity:"Lithium Community",people:"User",objecttype_people:"User",message:"Message",objecttype_message:"Message",feed:"RSS Feed",objecttype_feed:"RSS Feed",thread:"Thread",objecttype_thread:"Thread",file:"File",objecttype_file:"File",board:"Board",objecttype_board:"Board",category:"Category",objecttype_category:"Category",account:"Account",objecttype_account:"Account",annotation:"Note",objecttype_annotation:"Note",campaign:"Campaign",objecttype_campaign:"Campaign","case":"Case",objecttype_case:"Case",contact:"Contact",objecttype_contact:"Contact",contract:"Contract",objecttype_contract:"Contract",event:"Event",objecttype_event:"Event",email:"Email",objecttype_email:"Email",goal:"Goal",objecttype_goal:"Goal",incident:"Incident",objecttype_incident:"Incident",invoice:"Invoice",objecttype_invoice:"Invoice",lead:"Lead",objecttype_lead:"Lead",list:"List",objecttype_list:"Marketing List",solution:"Solution",objecttype_solution:"Solution",report:"Report",objecttype_report:"Report",task:"Task",objecttype_task:"Task",user:"User",objecttype_user:"User",attachment:"Attachment",objecttype_attachment:"Attachment",casecomment:"Case Comment",objecttype_casecomment:"Case Comment",opportunity:"Opportunity",objecttype_opportunity:"Opportunity",opportunityproduct:"Opportunity Product",objecttype_opportunityproduct:"Opportunity Product",feeditem:"Chatter",objecttype_feeditem:"Chatter",feedcomment:"Comment",objecttype_feedcomment:"Comment",note:"Note",objecttype_note:"Note",product:"Product",objecttype_product:"Product",partner:"Partner",objecttype_partner:"Partner",queueitem:"Queue Item",objecttype_queueitem:"Queue Item",quote:"Quote",objecttype_quote:"Quote",salesliterature:"Sales Literature",objecttype_salesliterature:"Sales Literature",salesorder:"Sales Order",objecttype_salesorder:"Sales Order",service:"Service",objecttype_service:"Service",socialprofile:"Social Profile",objecttype_socialprofile:"Social Profile",kbdocumentation:"Knowledge Document",objecttype_kbdocumentation:"Knowledge Document",kbtechnicalarticle:"Technical Documentation",objecttype_kbtechnicalarticle:"Technical Documentation",kbsolution:"Solution",objecttype_kbsolution:"Solution",kbknowledgearticle:"Knowledge Article",objecttype_kbknowledgearticle:"Knowledge Article",kbattachment:"Attachment",objecttype_kbattachment:"Attachment",kbarticle:"Article",objecttype_kbarticle:"Article",kbarticlecomment:"Article Comment",objecttype_kbarticlecomment:"Article Comment",knowledgearticle:"Knowledge Article",objecttype_knowledgearticle:"Knowledge Article",topic:"Topic",objecttype_topic:"Topic",dashboard:"Dashboard",objecttype_dashboard:"Dashboard",contentversion:"Document",objecttype_contentversion:"Document",collaborationgroup:"Collaboration group",objecttype_collaborationgroup:"Collaboration group",phonecall:"Phone call",objecttype_phonecall:"Phone call",appointment:"Appointment",objecttype_appointment:"Appointment",sn_hr_core_case:"HR Case",filetype_sn_hr_core_case:"HR Case",sc_cat_item:"Catalog Item",filetype_sc_cat_item:"Catalog Item",sn_customerservice_case:"Case",filetype_sn_customerservice_case:"Case",kb_social_qa_answer:"Answer",filetype_kb_social_qa_answer:"Answer",kb_social_qa_question:"Question",filetype_kb_social_qa_question:"Question",kb_social_qa_comment:"Comment",filetype_kb_social_qa_comment:"Comment",filetype_incident:"Incident",kb_knowledge:"Knowledge Article",filetype_kb_knowledge:"Knowledge Article",spportal:"Portal",filetype_spportal:"Portal",spsite:"SharePoint Site",filetype_spsite:"SharePoint Site",spuserprofile:"SharePoint User",filetype_spuserprofile:"SharePoint User",sparea:"Area",filetype_sparea:"Area",spannouncement:"Announcement",filetype_spannouncement:"Announcement",spannouncementlist:"Announcements",filetype_spannouncementlist:"Announcements",spcontact:"Contact",filetype_spcontact:"Contact",spcontactlist:"Contacts",filetype_spcontactlist:"Contacts",spcustomlist:"Custom Lists",filetype_spcustomlist:"Custom Lists",spdiscussionboard:"Discussion Board",filetype_spdiscussionboard:"Discussion Board",spdiscussionboardlist:"Discussion Boards",filetype_spdiscussionboardlist:"Discussion Boards",spdocumentlibrarylist:"Document Library",filetype_spdocumentlibrarylist:"Document Library",spevent:"Event",filetype_spevent:"Event",speventlist:"Events",filetype_speventlist:"Events",spformlibrarylist:"Form Library",filetype_spformlibrarylist:"Form Library",spissue:"Issue",filetype_spissue:"Issue",spissuelist:"Issues",filetype_spissuelist:"Issues",splink:"Link",filetype_splink:"Link",splinklist:"Links",filetype_splinklist:"Links",sppicturelibrarylist:"Picture Library",filetype_sppicturelibrarylist:"Picture Library",spsurvey:"Survey",filetype_spsurvey:"Survey",spsurveylist:"Surveys",filetype_spsurveylist:"Surveys",sptask:"Task",filetype_sptask:"Task",sptasklist:"Tasks",filetype_sptasklist:"Tasks",spagenda:"Agenda",filetype_spagenda:"Agenda",spagendalist:"Agendas",filetype_spagendalist:"Agendas",spattendee:"Attendee",filetype_spattendee:"Attendee",spattendeelist:"Attendees",filetype_spattendeelist:"Attendees",spcustomgridlist:"Custom Grids",filetype_spcustomgridlist:"Custom Grids",spdecision:"Decision",filetype_spdecision:"Decision",spdecisionlist:"Decisions",filetype_spdecisionlist:"Decisions",spobjective:"Objective",filetype_spobjective:"Objective",spobjectivelist:"Objectives",filetype_spobjectivelist:"Objectives",sptextbox:"Textbox",filetype_sptextbox:"Textbox",sptextboxlist:"Textbox list",filetype_sptextboxlist:"Textbox list",spthingstobring:"Thing To Bring",filetype_spthingstobring:"Thing To Bring",spthingstobringlist:"Things To Bring",filetype_spthingstobringlist:"Things To Bring",sparealisting:"Area Listing",filetype_sparealisting:"Area Listing",spmeetingserie:"Meeting series",filetype_spmeetingserie:"Meeting series",spmeetingserielist:"Meeting Series List",filetype_spmeetingserielist:"Meeting Series List",spsitedirectory:"Site Directory Item",filetype_spsitedirectory:"Site Directory Item",spsitedirectorylist:"Site Directory",filetype_spsitedirectorylist:"Site Directory",spdatasource:"Data Source",filetype_spdatasource:"Data Source",spdatasourcelist:"Data Source List",filetype_spdatasourcelist:"Data Source List",splisttemplatecataloglist:"List Template Gallery",filetype_splisttemplatecataloglist:"List Template Gallery",spwebpartcataloglist:"WebPart Gallery",filetype_spwebpartcataloglist:"WebPart Gallery",spwebtemplatecataloglist:"Site Template Gallery",filetype_spwebtemplatecataloglist:"Site Template Gallery",spworkspacepagelist:"Workspace Pages",filetype_spworkspacepagelist:"Workspace Pages",spunknownlist:"Custom List",filetype_spunknownlist:"Custom List",spadministratortask:"Administrator Task",filetype_spadministratortask:"Administrator Task",spadministratortasklist:"Administrator Tasks",filetype_spadministratortasklist:"Administrator Tasks",spareadocumentlibrarylist:"Area Document Library",filetype_spareadocumentlibrarylist:"Area Document Library",spblogcategory:"Blog Category",filetype_spblogcategory:"Blog Category",spblogcategorylist:"Blog Categories",filetype_spblogcategorylist:"Blog Categories",spblogcomment:"Blog Comment",filetype_spblogcomment:"Blog Comment",spblogcommentlist:"Blog Comments",filetype_spblogcommentlist:"Blog Comments",spblogpost:"Blog Post",filetype_spblogpost:"Blog Post",spblogpostlist:"Blog Posts",filetype_spblogpostlist:"Blog Posts",spdataconnectionlibrarylist:"Data Connection Library",filetype_spdataconnectionlibrarylist:"Data Connection Library",spdistributiongroup:"Distribution Group",filetype_spdistributiongroup:"Distribution Group",spdistributiongrouplist:"Distribution Groups",filetype_spdistributiongrouplist:"Distribution Groups",spipfslist:"InfoPath Forms Servers",filetype_spipfslist:"InfoPath Forms Servers",spkeyperformanceindicator:"Key Performance Indicator",filetype_spkeyperformanceindicator:"Key Performance Indicator",spkeyperformanceindicatorlist:"Key Performance Indicators",filetype_spkeyperformanceindicatorlist:"Key Performance Indicators",splanguagesandtranslator:"Languages and Translator",filetype_splanguagesandtranslator:"Languages and Translator",splanguagesandtranslatorlist:"Languages and Translators",filetype_splanguagesandtranslatorlist:"Languages and Translators",spmasterpagescataloglist:"Master Page Gallery",filetype_spmasterpagescataloglist:"Master Page Gallery",spnocodeworkflowlibrarylist:"No-code Workflow Libraries",filetype_spnocodeworkflowlibrarylist:"No-code Workflow Libraries",spprojecttask:"Project Task",filetype_spprojecttask:"Project Task",spprojecttasklist:"Project Tasks",filetype_spprojecttasklist:"Project Tasks",sppublishingpageslibrarylist:"Page Library",filetype_sppublishingpageslibrarylist:"Page Library",spreportdocumentlibrarylist:"Report Document Library",filetype_spreportdocumentlibrarylist:"Report Document Library",spreportlibrarylist:"Report Library",filetype_spreportlibrarylist:"Report Library",spslidelibrarylist:"Slide Library",filetype_spslidelibrarylist:"Slide Library",sptab:"Tabs",filetype_sptab:"Tabs",sptablist:"Tabs List",filetype_sptablist:"Tabs List",sptranslationmanagementlibrarylist:"Translation Management Library",filetype_sptranslationmanagementlibrarylist:"Translation Management Library",spuserinformation:"User Information",filetype_spuserinformation:"User Information",spuserinformationlist:"User Information List",filetype_spuserinformationlist:"User Information List",spwikipagelibrarylist:"Wiki Page Library",filetype_spwikipagelibrarylist:"Wiki Page Library",spworkflowhistory:"Workflow History",filetype_spworkflowhistory:"Workflow History",spworkflowhistorylist:"Workflow History List",filetype_spworkflowhistorylist:"Workflow History List",spworkflowprocess:"Custom Workflow Process",filetype_spworkflowprocess:"Custom Workflow Process",spworkflowprocesslist:"Custom Workflow Processes",filetype_spworkflowprocesslist:"Custom Workflow Processes",sppublishingimageslibrarylist:"Publishing Image Library",filetype_sppublishingimageslibrarylist:"Publishing Image Library",spcirculation:"Circulation",filetype_spcirculation:"Circulation",spcirculationlist:"Circulations",filetype_spcirculationlist:"Circulations",spdashboardslibrarylist:"Dashboards Library",filetype_spdashboardslibrarylist:"Dashboards Library",spdataconnectionforperformancepointlibrarylist:"PerformancePoint Data Connection Library",filetype_spdataconnectionforperformancepointlibrarylist:"PerformancePoint Data Connection Library",sphealthreport:"Health Report",filetype_sphealthreport:"Health Report",sphealthreportlist:"Health Reports",filetype_sphealthreportlist:"Health Reports",sphealthrule:"Health Rule",filetype_sphealthrule:"Health Rule",sphealthrulelist:"Health Rules",filetype_sphealthrulelist:"Health Rules",spimedictionary:"IME Dictionary",filetype_spimedictionary:"IME Dictionary",spimedictionarylist:"IME Dictionaries",filetype_spimedictionarylist:"IME Dictionaries",spperformancepointcontent:"PerformancePoint Content",filetype_spperformancepointcontent:"PerformancePoint Content",spperformancepointcontentlist:"PerformancePoint Contents",filetype_spperformancepointcontentlist:"PerformancePoint Contents",spphonecallmemo:"Phone Call Memo",filetype_spphonecallmemo:"Phone Call Memo",spphonecallmemolist:"Phone Call Memos",filetype_spphonecallmemolist:"Phone Call Memos",sprecordlibrarylist:"Record Library",filetype_sprecordlibrarylist:"Record Library",spresource:"Resource",filetype_spresource:"Resource",spresourcelist:"Resources",filetype_spresourcelist:"Resources",spprocessdiagramslibrarylist:"Process Diagram Library",filetype_spprocessdiagramslibrarylist:"Process Diagram Library",spsitethemeslibrarylist:"Site Theme Library",filetype_spsitethemeslibrarylist:"Site Theme Library",spsolutionslibrarylist:"Solution Library",filetype_spsolutionslibrarylist:"Solution Library",spwfpublibrarylist:"WFPUB Library",filetype_spwfpublibrarylist:"WFPUB Library",spwhereabout:"Whereabout",filetype_spwhereabout:"Whereabout",spwhereaboutlist:"Whereabouts",filetype_spwhereaboutlist:"Whereabouts",spdocumentlink:"Link to a Document",filetype_spdocumentlink:"Link to a Document",spdocumentset:"Document Set",filetype_spdocumentset:"Document Set",spmicrofeedpost:"Microfeed Post",filetype_spmicrofeedpost:"Microfeed Post",spmicrofeedlist:"Microfeed",filetype_spmicrofeedlist:"Microfeed",splistfolder:"List Folder",filetype_splistfolder:"List Folder",slackmessage:"Slack Message",filetype_slackmessage:"Slack Message",slackchannel:"Slack Channel",filetype_slackchannel:"Slack Channel",slackfile:"Slack File",filetype_slackfile:"Slack File",slackuser:"Slack User",filetype_slackuser:"Slack User",youtubevideo:"YouTube video",filetype_youtubevideo:"YouTube video",youtubeplaylistitem:"YouTube playlist item",filetype_youtubeplaylistitem:"YouTube playlist item",youtubeplaylist:"YouTube playlist",filetype_youtubeplaylist:"YouTube playlist",Unknown:"Unknown",And:"AND",Authenticating:"Authenticating {0}...",Clear:"Clear {0}",CompleteQuery:"Complete query",Exclude:"Exclude {0}",EnterTag:"Add Tag",Next:"Next",Last:"Last",Link:"Link",Or:"OR",Previous:"Previous",QueryDidntMatchAnyDocuments:"Your query did not match any documents.",QueryException:"Your query has an error: {0}.",Me:"Me",Remove:"Remove",Search:"Search",SearchFor:"Search for {0}",SubmitSearch:"Submit search",ShareQuery:"Share Query",Preferences:"Preferences",LinkOpeningSettings:"Link opening settings",Reauthenticate:"Reauthenticate {0}",ResultsFilteringExpression:"Result filtering expressions",FiltersInYourPreferences:"Filters in your preferences",Create:"Create",SearchIn:"Search in {0}",Seconds:"in {0} second<pl>s<\/pl>",ShowingResultsOf:"Result<pl>s<\/pl> {0}<pl>-{1}<\/pl> of {2}",ShowingResultsOfWithQuery:"Result<pl>s<\/pl> {0}<pl>-{1}<\/pl> of {2} for {3}",SwitchTo:"Switch to {0}",Unexclude:"Remove exclusion filter on {0}",ClearAllFilters:"Clear All Filters",SkipLogin:"Skip login",LoginInProgress:"Login in progress, please wait ...",Login:"Log In",GetStarted:"Get Started",More:"More",NMore:"{0} more...",Less:"Fewer",Settings:"Settings",Score:"Score",ScoreDescription:"The score is computed from the number of occurrences as well as from the position in the result set.",Occurrences:"Occurrences",OccurrencesDescription:"Sort by number of occurrences, with values having the highest number appearing first.",Label:"Label",Of:"of",LabelDescription:"Sort alphabetically on the field values.",Value:"Value",ValueDescription:"Sort on the values of the first computed field",AlphaAscending:"Value Ascending",AlphaDescending:"Value Descending",ChiSquare:"Chi Square",Nosort:"No Sort",NosortDescription:"Do not sort the values. The values will be returned in a random order.",RelativeFrequency:"Relative Frequency",RelativeFrequencyDescription:"Sort based on the relative frequency of values. Less common values will appear higher.",DateDistribution:"Date distribution",Custom:"Custom",CustomDescription:"Sort based on a custom order",ComputedField:"Computed Field",Ascending:"Ascending",Descending:"Descending",noResultFor:"No results for {0}",noResult:"No results",autoCorrectedQueryTo:"Query was automatically corrected to {0}",didYouMean:"Did you mean: {0}",SuggestedResults:"Suggested Results",SuggestedQueries:"Suggested Queries",MostRelevantItems:"Most relevant items:",AllItems:"All items:",ShowLess:"Show less",ShowMore:"Show more",HideFacet:"Hide Facet",ShowFacet:"Show Facet",AndOthers:"and {0} other<pl>s<\/pl>",Others:"{0} other<pl>s<\/pl>",MostRelevantPosts:"Most Relevant Posts:",CompleteThread:"Complete Thread:",ShowCompleteThread:"Show Complete Thread",ShowOnlyTopMatchingPosts:"Show Only Top Matching Posts",MostRelevantReplies:"Most Relevant Replies:",AllConversation:"All Conversation:",ShowAllConversation:"Show All Conversation",ShowAllReplies:"Show All Replies",ShowOnlyMostRelevantReplies:"Show Only Most Relevant Replies",Close:"Close",Open:"Open",OpenInOutlookWhenPossible:"Open in Outlook (when possible)",AlwaysOpenInNewWindow:"Always open results in new window",Quickview:"Quick View",NoQuickview:"The Quick View for this document is unavailable",ErrorReport:"Error Report",OopsError:"Something went wrong.",ProblemPersists:"If the problem persists contact the administrator.",GoBack:"Go Back",Reset:"Reset",Retry:"Retry",MoreInfo:"More Information",Username:"Username",Password:"Password",PostedBy:"Posted by",CannotConnect:"Cannot connect to the server address.",BadUserPass:"Password does not match with username.",PleaseEnterYourCredentials:"Please enter your credentials for {0}.",PleaseEnterYourSearchPage:"Please enter your search page URL",Collapse:"Collapse",Collapsable:"Collapsible",Expand:"Expand",CollapseFacet:"Collapse {0} facet",ExpandFacet:"Expand {0} facet",ShowLessFacetResults:"Show fewer results for {0} facet",ShowMoreFacetResults:"Show more results for {0} facet",ShowLessCategoryResults:"Show fewer results for the {0} category",ShowMoreCategoryResults:"Show more results for the {0} category",ShowLessHierarchicalResults:"Show fewer results for the {0} facet",ShowMoreHierarchicalResults:"Show more results for the {0} facet",SearchFacetResults:"Search for values in {0} facet",Today:"Today",Yesterday:"Yesterday",Tomorrow:"Tomorrow",Duration:"Duration: {0}",IndexDuration:"Index Duration: {0}",ProxyDuration:"Proxy Duration: {0}",ClientDuration:"Client Duration: {0}",Unavailable:"Unavailable",Reply:"Reply",ReplyAll:"Reply All",Forward:"Forward",From:"From",Caption:"Caption",Expression:"Expression",Tab:"Tab",Tabs:"Tabs",EnterExpressionName:"Enter expression name",EnterExpressionToFilterWith:"Enter expression to filter results with",SelectTab:"Select Tab",SelectAll:"Select All",PageUrl:"Search page URL",ErrorSavingToDevice:"Error while saving the information to your device",ErrorReadingFromDevice:"Error while reading the information from your device",AppIntro:"Speak with a product specialist who can answer your questions about Coveo and help you decide which Coveo solution is right for you. Or, try a live demo !",TryDemo:"Try the demo",ContactUs:"Contact us",NewToCoveo:"New to Coveo?",LetUsHelpGetStarted:"Let us help you get started",LikesThis:"{0} like<sn>s<\/sn> this.",CannotConnectSearchPage:"Cannot connect to your search page",AreYouSureDeleteFilter:"Are you sure you want to delete the filter {0} with the expression {1}",OnlineHelp:"Online Help",Done:"Done",SaveFacetState:"Save this facet state",ClearFacetState:"Clear facet state",DisplayingTheOnlyMessage:"Displaying the only message in this conversation",NoNetworkConnection:"No network connection",UnknownConnection:"Unknown connection",EthernetConnection:"Ethernet connection",WiFi:"WiFi connection",CELL:"Cellular connection",CELL_2G:"Cellular 2G connection",CELL_3G:"Cellular 3G connection",CELL_4G:"Cellular 4G connection",Relevance:"Relevance",Date:"Date",Amount:"Amount",QueryExceptionNoException:"No exception",QueryExceptionInvalidSyntax:"Invalid syntax",QueryExceptionInvalidCustomField:"Invalid custom field",QueryExceptionInvalidDate:"Invalid date",QueryExceptionInvalidExactPhrase:"Invalid exact phrase",QueryExceptionInvalidDateOp:"Invalid date operator",QueryExceptionInvalidNear:"Invalid NEAR operator",QueryExceptionInvalidWeightedNear:"Invalid weighted NEAR",QueryExceptionInvalidTerm:"Invalid term",QueryExceptionTooManyTerms:"Too many terms",QueryExceptionWildcardTooGeneral:"Wildcard too general",QueryExceptionInvalidSortField:"Invalid sort field",QueryExceptionInvalidSmallStringOp:"Invalid small string operator",QueryExceptionRequestedResultsMax:"Requested results maximum",QueryExceptionAggregatedMirrorDead:"Aggregated mirror is offline",QueryExceptionAggregatedMirrorQueryTimeOut:"Aggregated mirror query timeout",QueryExceptionAggregatedMirrorInvalidBuildNumber:"Aggregated mirror invalid build number",QueryExceptionAggregatedMirrorCannotConnect:"Aggregated mirror cannot connect",QueryExceptionNotEnoughLeadingCharsWildcard:"Not enough leading character wildcard",QueryExceptionSecurityInverterNotFound:"Security inverter not found",QueryExceptionSecurityInverterAccessDenied:"Security inverter access denied",QueryExceptionAggregatedMirrorCannotImpersonate:"Aggregated mirror cannot impersonate",QueryExceptionUnexpected:"Unexpected",QueryExceptionAccessDenied:"Access denied",QueryExceptionSuperUserTokenInvalid:"Super user token invalid",QueryExceptionSuperUserTokenExpired:"Super user token is expired",QueryExceptionLicenseQueriesExpired:"Queries license expired",QueryExceptionLicenseSuperUserTokenNotSupported:"License super user token not supported",QueryExceptionInvalidSession:"Invalid session",QueryExceptionInvalidDocument:"Invalid document",QueryExceptionSearchDisabled:"Search disabled",FileType:"File type",ShowAttachment:"Show attachment",OnFeed:"on {0}'s feed.",Author:"Author",NoTitle:"No title",CurrentSelections:"Current selections",AllContent:"All content",CancelLastAction:"Cancel last action",SearchTips:"Search tips",CheckSpelling:"Check the spelling of your keywords.",TryUsingFewerKeywords:"Try using fewer, different or more general keywords.",SelectFewerFilters:"Select fewer filters to broaden your search.",Document:"Document",Time:"Time",StartDate:"Start Date",StartTime:"Start Time",DurationTitle:"Duration",UserQuery:"User query",ShowUserActions:"Show User Actions",NoData:"No data available",EventType:"Event type",GoToFullSearch:"Full search",GoToEdition:"Customize Panel",RemoveContext:"Remove context",BoxAttachToCase:"Attach to case",AttachToCase:"Attach to case",Attach:"Attach",Attached:"Attached",Detach:"Detach",Details:"Details",AdditionalFilters:"Additional filters",SelectNonContextualSearch:"Remove the context from the current record to broaden your search",CopyPasteToSupport:"Copy paste this message to the Coveo Support team for more information.",FollowQueryDescription:"Alert me for changes to the search results of this query.",SearchAlerts_Panel:"Manage Alerts",SearchAlerts_PanelDescription:"View and manage your search alerts.",SearchAlerts_PanelNoSearchAlerts:"You have no subscriptions.",SearchAlerts_Fail:"The Search Alerts service is currently unavailable.",SearchAlerts_Type:"Type",SearchAlerts_Content:"Content",SearchAlerts_Actions:"Action",EmptyQuery:"<empty>",SearchAlerts_Type_followQuery:"Query",SearchAlerts_Type_followDocument:"Item",SearchAlerts_unFollowing:"Stop Following",SearchAlerts_follow:"Follow",SearchAlerts_followed:"Followed",SearchAlerts_followQuery:"Follow Query",Subscription_StopFollowingQuery:"Stop Following Query",SearchAlerts_Frequency:"When",SubscriptionsManageSubscriptions:"Manage Alerts",SubscriptionsMessageFollowQuery:"You will receive alerts when the query <b>{0}<\/b> returns new or updated items.",SubscriptionsMessageFollow:"You will receive alerts for changes to the item <b>{0}<\/b>.",Expiration:"Expiration",Monthly:"Monthly",Daily:"Daily",Monday:"Monday",Tuesday:"Tuesday",Wednesday:"Wednesday",Thursday:"Thursday",Friday:"Friday",Saturday:"Saturday",Sunday:"Sunday",NextDay:"Next {0}",LastDay:"Last {0}",StartTypingCaseForSuggestions:"Describe your problem to see possible solutions",ExportToExcel:"Export to Excel",ExportToExcelDescription:"Export search results to Excel",CaseCreationNoResults:"No recommended solutions were found",SortBy:"Sort by",BoxCreateArticle:"Create Article",Facets:"Facets",AdvancedSearch:"Advanced Search",Keywords:"Keywords",AllTheseWords:"All these words",ExactPhrase:"This exact phrase",AnyOfTheseWords:"Any of these words",NoneOfTheseWords:"None of these words",Anytime:"Anytime",InTheLast:"In the last",Days:"days",Months:"months",Month:"Month",Year:"Year",Between:"Between",Language:"Language",Size:"Size",AtLeast:"at least",AtMost:"at most",Contains:"contains",DoesNotContain:"does not contain",Matches:"matches",Bytes:"bytes",card:"Card",table:"Table",ResultLinks:"Result links",EnableQuerySyntax:"Enable query syntax",On:"On",Off:"Off",Automatic:"Automatic",ResultsPerPage:"Results per page",PreviousMonth:"Previous month",NextMonth:"Next month",Title:"Title",FiltersInAdvancedSearch:"Filters in Advanced Search",NoEndpoints:"{0} has no registered endpoints.",InvalidToken:"The token used is invalid.",AddSources:"You will need to add sources in your index, or wait for the created sources to finish indexing.",TryAgain:"Please try again.",CoveoOnlineHelp:"Coveo Online Help",CannotAccess:"{0} cannot be accessed.",CoveoOrganization:"Coveo Organization",SearchAPIDuration:"Search API Duration: {0}",LastUpdated:"Last updated",AllDates:"All dates",WithinLastDay:"Within last day",WithinLastWeek:"Within last week",WithinLastMonth:"Within last month",WithinLastYear:"Within last year",RelevanceInspector:"Relevance Inspector",KeywordInCategory:'{0} <span class="coveo-omnibox-suggestion-category">in {1}<\/span>',Result:"Result",ResultCount:"{0} result<pl>s<\/pl>",ShowingResults:"{0} result<pl>s<\/pl>",ShowingResultsWithQuery:"{0} result<pl>s<\/pl> for {1}",NumberOfVideos:"Number of videos",AllCategories:"All Categories",Recommended:"Recommended",Featured:"Featured",CoveoHomePage:"Coveo Home page",SizeValue:"Size value",UnitMeasurement:"Unit of measurement",Toggle:"Toggle",FilterOn:"Filter on {0}",RemoveFilterOn:"Remove inclusion filter on {0}",Enter:"Enter",InsertAQuery:"Insert a query",PressEnterToSend:"Press enter to send",SortResultsBy:"Sort results by {0}",SortResultsByAscending:"Sort by {0} in ascending order",SortResultsByDescending:"Sort by {0} in descending order",DisplayResultsAs:"Display results as {0}",FacetTitle:"{0} facet",IncludeValueWithResultCount:"Inclusion filter on {0}; {1}",ExcludeValueWithResultCount:"Exclusion filter on {0}; {1}",PageNumber:"Page {0}",DisplayResultsPerPage:"Display {0} results per page",GroupByAndFacetRequestsCannotCoexist:"The query is invalid because it contains both Group By and Facet requests. Ensure that the search interface does not initialize DynamicFacet components alongside Facet components (or alongside any component extending the Facet component, such as FacetRange or FacetSlider).",MustContain:"Must contain:",Missing:"Missing:",Filters:"Filters",FiltersDropdown:"Filters dropdown",OpenFiltersDropdown:"Open the filters dropdown",CloseFiltersDropdown:"Close the filters dropdown",NoValuesFound:"No values found.",To:"to",DeselectFilterValues:"Deselect all active filters on {0} field",Rated:"Rated {0} out of {1} star<pl>s<\/pl>",RatedBy:"by {0} user<pl>s<\/pl>",NoRatings:"No ratings",Pagination:"Pagination",ThumbnailOf:'Thumbnail of "{0}"',CollapsedUriParts:"Collapsed URI parts",HierarchicalFacetValueIndentedUnder:"{0} under {1}",HierarchicalFacetValuePathPrefix:"in",UsefulnessFeedbackRequest:"Was this useful?",UsefulnessFeedbackThankYou:"Thanks for your feedback!",UsefulnessFeedbackExplainWhy:"Explain why",UsefulnessFeedbackExplainWhyImperative:"Explain why",UsefulnessFeedbackDoesNotAnswer:"This didn't answer my question at all",UsefulnessFeedbackPartiallyAnswers:"This only partially answered my question",UsefulnessFeedbackWasNotAQuestion:"My request wasn't meant to be perceived as a question",Yes:"Yes",No:"No",Other:"Other",Send:"Send",Edit:"Edit",Delete:"Delete",Save:"Save",UsefulnessFeedbackReason:"Reason",AnswerSnippet:"Answer to your question",AnswerSpecificSnippet:'Answer to "{0}"',SuggestedQuestions:"People also ask",ExpandQuestionAnswer:'View answer for "{0}"',MoreValuesAvailable:"additional values are available",Breadcrumb:"Active filters",OrganizationIsPaused:"Your Coveo organization is paused due to inactivity and search is currently unavailable.",OrganizationWillResume:"Your organization is resuming and will be available shortly.",UpdatingResults:"Updating results",QuerySuggestionsAvailable:"{0} search suggestion<pl>s are<\/pl> available.",QuerySuggestionsUnavailable:"There are no search suggestions."};t.defaultLanguage=e;t.setLanguageAfterPageLoaded=o},function(n,t,i){"use strict";var e,r,u,f;Object.defineProperty(t,"__esModule",{value:!0});e=i(26);r=i(0);String.toLocaleString=e.LocaleString;u=/<pl>(((?!<\/pl>).)*)<\/pl>/g;f=/<sn>(((?!<\/sn>).)*)<\/sn>/g;t.L10N={format:function(n){for(var i,e,u=[],f=1;f<arguments.length;f++)u[f-1]=arguments[f];if(i=n.toLocaleString(),i==n){var o=n.toUpperCase().toLocaleString(),s=n.toLowerCase().toLocaleString(),h=(n.charAt(0).toUpperCase()+n.toLowerCase().slice(1)).toLocaleString();o!=n.toUpperCase().toLocaleString()?i=o:s!=n.toLowerCase().toLocaleString()?i=s:h!=n.charAt(0).toUpperCase()+n.toLowerCase().slice(1)&&(i=h)}return u.length>0?(e=r.last(u),(r.isBoolean(e)||r.isNumber(e))&&(u.pop(),i=t.L10N.formatPlSn(i,e)),r.each(u,function(n,t){return i=i.replace("{"+t+"}",n)})):i=i.replace(/{[0-9]}|<pl>[a-zA-Z]+<\/pl>|<sn>|<\/sn>/g,"").trim(),i},formatPlSn:function(n,t){return(r.isBoolean(t)?t:1!==t&&-1!==t)?n.replace(u,"$1").replace(f,""):n.replace(u,"").replace(f,"$1")}}},function(n,t,i){"use strict";var f=this&&this.__assign||Object.assign||function(n){for(var t,r,i=1,u=arguments.length;i<u;i++){t=arguments[i];for(r in t)Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},e=this&&this.__awaiter||function(n,t,i,r){return new(i||(i=Promise))(function(u,f){function o(n){try{e(r.next(n))}catch(n){f(n)}}function s(n){try{e(r.throw(n))}catch(n){f(n)}}function e(n){n.done?u(n.value):new i(function(t){t(n.value)}).then(o,s)}e((r=r.apply(n,t||[])).next())})},o=this&&this.__generator||function(n,t){function f(n){return function(t){return s([n,t])}}function s(f){if(e)throw new TypeError("Generator is already executing.");for(;r;)try{if(e=1,u&&(i=u[2&f[0]?"return":f[0]?"throw":"next"])&&!(i=i.call(u,f[1])).done)return i;switch(u=0,i&&(f=[0,i.value]),f[0]){case 0:case 1:i=f;break;case 4:return r.label++,{value:f[1],done:!1};case 5:r.label++;u=f[1];f=[0];continue;case 7:f=r.ops.pop();r.trys.pop();continue;default:if(i=r.trys,!(i=i.length>0&&i[i.length-1])&&(6===f[0]||2===f[0])){r=0;continue}if(3===f[0]&&(!i||f[1]>i[0]&&f[1]<i[3])){r.label=f[1];break}if(6===f[0]&&r.label<i[1]){r.label=i[1];i=f;break}if(i&&r.label<i[2]){r.label=i[2];r.ops.push(f);break}i[2]&&r.ops.pop();r.trys.pop();continue}f=t.call(n,r)}catch(n){f=[6,n];u=0}finally{e=i=0}if(5&f[0])throw f[1];return{value:f[0]?f[1]:void 0,done:!0}}var e,u,i,o,r={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:f(0),"throw":f(1),"return":f(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o};Object.defineProperty(t,"__esModule",{value:!0});var s=i(0),r=i(5),h=i(9),c=i(330),u=i(43),l=i(4),a=i(50),v=function(){function n(n){this.options=n;this.logger=new h.Logger(this);var t={accessToken:this.options.accessToken.token};this.endpointCaller=new c.AnalyticsEndpointCaller(t);this.organization=n.organization}return n.getURLFromSearchEndpoint=function(n){return n&&n.options&&n.options.restUri?n.options.restUri.replace(/^(https?:\/\/)platform/,"$1analytics").split("/rest")[0]+"/rest/ua":this.DEFAULT_ANALYTICS_URI},n.prototype.getCurrentVisitId=function(){return this.visitId},n.prototype.getCurrentVisitIdPromise=function(){var n=this;return new Promise(function(t,i){if(n.getCurrentVisitId())t(n.getCurrentVisitId());else{var r=n.buildAnalyticsUrl("/analytics/visit");n.getFromService(r,{}).then(function(i){n.visitId=i.id;t(n.visitId)}).catch(function(n){i(n)})}})},n.prototype.sendSearchEvents=function(n){if(n.length>0)return this.logger.info("Logging analytics search events",n),this.sendToService(n,"searches","searchEvents")},n.prototype.sendDocumentViewEvent=function(n){return r.Assert.exists(n),this.logger.info("Logging analytics document view",n),this.sendToService(n,"click","clickEvent")},n.prototype.sendCustomEvent=function(n){return r.Assert.exists(n),this.logger.info("Logging analytics custom event",n),this.sendToService(n,"custom","customEvent")},n.prototype.getTopQueries=function(n){var t=this.buildAnalyticsUrl("/stats/topQueries");return this.getFromService(t,n)},n.prototype.clearCookies=function(){(new a.AnalyticsInformation).clear()},n.prototype.sendToService=function(t,i,r){return e(this,void 0,void 0,function(){var e,s,u,f,h;return o(this,function(o){switch(o.label){case 0:return null==n.pendingRequest?[3,2]:[4,n.pendingRequest];case 1:o.sent();o.label=2;case 2:e=this.getURL(i);s=this.executeRequest(e,t);o.label=3;case 3:return o.trys.push([3,5,,8]),[4,s];case 4:return u=o.sent(),n.pendingRequest=null,this.handleAnalyticsEventResponse(u.data),[2,u.data];case 5:return f=o.sent(),n.pendingRequest=null,this.isAnalyticsTokenExpired(f)?[4,this.options.accessToken.doRenew()]:[3,7];case 6:if(h=o.sent())return[2,this.sendToService(t,i,r)];o.label=7;case 7:throw f;case 8:return[2]}})})},n.prototype.isAnalyticsTokenExpired=function(n){return null!=n&&400===n.statusCode&&n.data&&"InvalidToken"===n.data.type},n.prototype.executeRequest=function(t,i){var r=this.endpointCaller.call({errorsAsSuccess:!1,method:"POST",queryString:t.queryNormalized,requestData:i,url:t.path,responseType:"text",requestDataType:"application/json"});return r?(n.pendingRequest=r,r):Promise.resolve({data:{visitId:"",visitorId:""},duration:0})},n.prototype.getURL=function(t){var i=n.CUSTOM_ANALYTICS_VERSION||n.DEFAULT_ANALYTICS_VERSION;return u.UrlUtils.normalizeAsParts({paths:[this.options.serviceUrl,i,"/analytics/",t],query:{org:this.organization}})},n.prototype.getFromService=function(n,t){var i=f({},t,{access_token:this.options.accessToken.token});return this.endpointCaller.call({errorsAsSuccess:!1,method:"GET",queryString:this.options.organization?["org="+l.Utils.safeEncodeURIComponent(this.options.organization)]:[],requestData:i,responseType:"json",url:n}).then(function(n){return n.data})},n.prototype.handleAnalyticsEventResponse=function(n){var t;return n.visitId?t=n.visitId:n.searchEventResponses&&(t=s.first(n.searchEventResponses).visitId),t&&(this.visitId=t),n},n.prototype.buildAnalyticsUrl=function(t){return u.UrlUtils.normalizeAsString({paths:[this.options.serviceUrl,n.CUSTOM_ANALYTICS_VERSION||n.DEFAULT_ANALYTICS_VERSION,t]})},n.DEFAULT_ANALYTICS_URI="https://analytics.cloud.coveo.com/rest/ua",n.DEFAULT_ANALYTICS_VERSION="v15",n.CUSTOM_ANALYTICS_VERSION=void 0,n}();t.AnalyticsEndpoint=v},function(n,t,i){"use strict";var r,u,f;Object.defineProperty(t,"__esModule",{value:!0});r=i(44);t.QueryController=r.QueryController;u=i(155);t.HistoryController=u.HistoryController;f=i(156);t.LocalStorageHistoryController=f.LocalStorageHistoryController},function(n,t,i){"use strict";var l=this&&this.__extends||function(){var n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])};return function(t,i){function r(){this.constructor=t}n(t,i);t.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var f=i(5),s=i(17),e=i(1),a=i(42),v=i(31),y=i(45),h=i(4),r=i(0),o=i(13),u=i(10),c=i(125),p=i(18),w=function(n){function t(i,r,u,o){var h=n.call(this,i,t.ID)||this;return h.window=r,h.queryStateModel=u,h.queryController=o,h.willUpdateHash=!1,f.Assert.exists(h.queryStateModel),f.Assert.exists(h.queryController),e.$$(h.element).on(s.InitializationEvents.restoreHistoryState,function(){h.logger.trace("Restore history state. Update model");h.updateModelFromHash();h.lastState=h.queryStateModel.getAttributes()}),e.$$(h.element).on(h.queryStateModel.getEventName(p.Model.eventTypes.all),function(){h.logger.trace("Query model changed. Update hash");h.updateHashFromModel()}),h.hashchange=function(){h.handleHashChange();h.lastState=h.queryStateModel.getAttributes()},h.window.addEventListener("hashchange",h.hashchange),e.$$(h.element).on(s.InitializationEvents.nuke,function(){return h.handleNuke()}),h}return l(t,n),Object.defineProperty(t.prototype,"usageAnalytics",{get:function(){return this.queryController.usageAnalytics},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hashUtils",{get:function(){return this.hashUtilsModule?this.hashUtilsModule:a.HashUtils},set:function(n){this.hashUtilsModule=n},enumerable:!0,configurable:!0}),t.prototype.setState=function(n){this.setHashValues(n)},t.prototype.replaceState=function(n){var t="#"+this.hashUtils.encodeValues(n);this.window.location.replace(t)},t.prototype.replaceUrl=function(n){this.window.location.replace(n)},t.prototype.setHashValues=function(n){var i,r;this.logger.trace("Update history hash");var u=this.hashUtils.encodeValues(n),t=u?"#"+u:"",f=this.window.location.hash!=t;this.logger.trace("from",this.window.location.hash,"to",t);i=this.window.location;r=""+i.pathname+i.search+t;this.queryController.firstQuery?f&&(this.replaceUrl(r),this.logger.trace("History hash modified",t)):f&&(this.window.history.pushState("","",r),this.logger.trace("History hash created",t))},t.prototype.debugInfo=function(){return{state:this.queryStateModel.getAttributes()}},t.prototype.handleHashChange=function(){var n,i;this.logger.trace("History hash changed");n=this.updateModelFromHash();r.difference(n,t.attributesThatDoNotTriggerQuery).length>0&&(this.lastState&&(i=h.Utils.differenceBetweenObjects(this.queryStateModel.getAttributes(),this.lastState),this.mapStateDifferenceToUsageAnalyticsCall(i)),this.queryController.executeQuery())},t.prototype.handleNuke=function(){this.window.removeEventListener("hashchange",this.hashchange)},t.prototype.updateHashFromModel=function(){var n=this;this.logger.trace("Model -> history hash");this.willUpdateHash||(v.Defer.defer(function(){var t=n.queryStateModel.getAttributes();n.setHashValues(t);n.logger.debug("Saving state to hash",t);n.willUpdateHash=!1}),this.willUpdateHash=!0)},t.prototype.updateModelFromHash=function(){var i=this,n,t;return this.logger.trace("History hash -> model"),n={},t=[],r.each(this.queryStateModel.attributes,function(r,u){var f=i.getHashValue(u);n[u]=f;""+i.queryStateModel.get(u)!=""+f&&t.push(u)}),this.queryStateModel.setMultiple(n),t},t.prototype.getHashValue=function(n){var t,i;f.Assert.isNonEmptyString(n);try{i=this.hashUtils.getHash(this.window);t=this.hashUtils.getValue(n,i)}catch(t){this.logger.error("Could not parse parameter "+n+" from URI")}return h.Utils.isUndefined(t)&&(t=this.queryStateModel.defaultAttributes[n]),t},t.prototype.mapStateDifferenceToUsageAnalyticsCall=function(n){var t=this;return this.usageAnalytics?o.QUERY_STATE_ATTRIBUTES.Q in n?void c.logSearchBoxSubmitEvent(this.usageAnalytics):o.QUERY_STATE_ATTRIBUTES.SORT in n?void c.logSortEvent(this.usageAnalytics,n[o.QUERY_STATE_ATTRIBUTES.SORT]):void r.keys(n).forEach(function(n){var i=t.extractFacetInfoFromStateDifference(n);i&&t.usageAnalytics.logSearchEvent(i.actionCause,{facetId:i.fieldName,facetField:i.fieldName,facetTitle:i.fieldName,facetValue:i.valueModified})}):(this.logger.warn("The query state has been modified directly in the URL and we couldn't log the proper analytics call."),void this.logger.warn("This is caused by a history controller that has been initialized without the usage analytics parameter."))},t.prototype.extractFacetInfoFromStateDifference=function(n){var f,h=/^f:(?!.*:not)(.*)/.exec(n),c=/^f:(.*):not/.exec(n),e=this.queryStateModel.get(n)||[],o=this.lastState[n]||[],s=e.length<o.length,i,t;return(f=s?r.first(r.difference(o,e)):r.first(r.difference(e,o)),h)?(i=h[1],t=void 0,t=s?u.analyticsActionCauseList.facetDeselect:u.analyticsActionCauseList.facetSelect,{fieldName:i,actionCause:t,valueModified:f}):c?(i=c[1],t=void 0,t=s?u.analyticsActionCauseList.facetUnexclude:u.analyticsActionCauseList.facetExclude,{fieldName:i,actionCause:t,valueModified:f}):null},t.ID="HistoryController",t.attributesThatDoNotTriggerQuery=["quickview"],t}(y.RootComponent);t.HistoryController=w},function(n,t,i){"use strict";var o=this&&this.__extends||function(){var n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])};return function(t,i){function r(){this.constructor=t}n(t,i);t.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var r=i(41),s=i(18),h=i(9),u=i(5),c=i(17),l=i(45),f=i(1),e=i(0),a=function(n){function t(i,e,o,l){var a=n.call(this,i,t.ID)||this;return a.windoh=e,a.model=o,a.queryController=l,a.omit=[],r.localStorageExists?(a.storage=new r.LocalStorageUtils(t.ID),u.Assert.exists(a.model),u.Assert.exists(a.queryController),f.$$(a.element).on(c.InitializationEvents.restoreHistoryState,function(){return a.initModelFromLocalStorage()}),f.$$(a.element).on(a.model.getEventName(s.Model.eventTypes.all),function(){return a.updateLocalStorageFromModel()})):new h.Logger(i).info("No local storage available in current browser. LocalStorageHistoryController cannot initialize itself",a),a}return o(t,n),t.prototype.replaceState=function(n){this.storage.save(n)},t.prototype.withoutThoseAttribute=function(n){this.omit=n},t.prototype.setState=function(n){this.storage.save(n)},t.prototype.updateLocalStorageFromModel=function(){var n=e.omit(this.model.getAttributes(),this.omit);this.setState(n);this.logger.debug("Saving state to localstorage",n)},t.prototype.initModelFromLocalStorage=function(){var n=this.localStorageModel;this.model.setMultiple(n)},Object.defineProperty(t.prototype,"localStorageModel",{get:function(){var t=this,n={},i=this.storage.load()||{};return e.each(this.model.attributes,function(r,u){var f=i[u],e=t.model.defaultAttributes[u],o=void 0==f?e:f;n[u]=o}),n},enumerable:!0,configurable:!0}),t.ID="LocalStorageHistoryController",t}(l.RootComponent);t.LocalStorageHistoryController=a},function(n,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var u=i(22),f=i(54),r=i(0),e=function(){function n(){}return n.getFieldFromString=function(n){var t=new RegExp("@([a-z0-9_]+)\\b|\\braw\\.([a-z0-9_]+)\\b|\\braw\\[(?:\"[^\"]*?([a-z0-9_]+)[^\"]*?\"|'[^']*?([a-z0-9_]+)[^']*?')\\]|data-condition-field-(?:not-)?([a-z0-9_]+)=","gi"),i=u.StringUtils.match(n,t);return r.map(i,function(n){return r.find(n.splice(1),function(n){return n})})},n.evaluateCondition=function(t,i,u){void 0===u&&(u=new f.ResponsiveComponents);var e=!0,o=n.getFieldFromString(t);return r.each(o,function(u){var f=n.evaluateMatchingFieldValues(u,t);(0!=f.length||n.evaluateFieldShouldNotBeNull(u,t))&&(e=e&&null!=i.raw[u]);e&&r.each(f,function(n){e=e&&i.raw[u].toLowerCase()==n.toLowerCase()})}),e&&n.evaluateShouldUseSmallScreen(t)&&(e=e&&u.isSmallScreenWidth()),e},n.evaluateMatchingFieldValues=function(n,t){var i=[],f=new RegExp("raw\\."+n+"\\s*=+\\s*[\"|']([a-zA-Z]+)[\"|']","gi"),e=new RegExp("raw\\[[\"|']"+n+"[\"|']\\]\\s*=+\\s*[\"|']([a-zA-Z]+)[\"|']","gi");return u.StringUtils.match(t,f).concat(u.StringUtils.match(t,e)).forEach(function(n){i=i.concat(n[1])}),r.unique(i)},n.evaluateFieldShouldNotBeNull=function(n,t){var i=new RegExp("raw\\."+n+"\\s*!=\\s*(?=null|undefined)","gi"),r=new RegExp("raw\\[[\"|']"+n+"[\"|']\\]\\s*!=\\s*(?=null|undefined)","gi");return null!=t.match(i)||null!=t.match(r)},n.evaluateShouldUseSmallScreen=function(n){return n.match(/Coveo\.DeviceUtils\.isSmallScreenWidth/gi)},n}();t.TemplateConditionEvaluator=e},function(n,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var u=i(4),f=i(157),o=i(8),e=i(1),s=i(2),r=i(0),h=function(){function n(n,t){var i,e,h,c;this.template=n;this.scriptTag=t;i=t.getAttribute("data-condition");null!=i?(i=i.toString().replace(/&quot;/g,'"'),n.setConditionWithFallback(i)):(e=this.parseFieldsAttributes(),e&&u.Utils.isNonEmptyArray(e)&&(this.template.fieldsToMatch=e));this.template.layout=this.parseLayout();this.template.mobile=this.parseScreenSize("data-mobile");this.template.tablet=this.parseScreenSize("data-tablet");this.template.desktop=this.parseScreenSize("data-desktop");this.template.fields=f.TemplateConditionEvaluator.getFieldFromString(t.innerHTML+" "+(i||""));this.template.role=t.getAttribute("data-role");this.template.addFields(f.TemplateConditionEvaluator.getFieldFromString(t.innerHTML+" "+i)||[]);h=o.ComponentOptions.loadFieldsOption(t,"fields",{includeInResults:!0});null!=h&&this.template.addFields(r.map(h,function(n){return n.substr(1)}));this.template.addFields(r.map(this.template.fieldsToMatch,function(n){return n.field}));c=r.chain(this.template.getComponentsInside(t.innerHTML)).map(function(n){return s.Initialization.getRegisteredFieldsComponentForQuery(n)}).flatten().value();this.template.addFields(c)}return n.prototype.toHtmlElement=function(n){n||(n=e.$$("code"));var t=e.$$(this.scriptTag).getAttribute("data-condition");return t&&n.setAttribute("data-condition",t),n.setHtml(this.scriptTag.innerHTML),n.el},n.prototype.parseFieldsAttributes=function(){var n=this.scriptTag.dataset;return r.chain(n).map(function(n,t){var u=t.match(/field([a-zA-Z0-9_\.]*)/i),i;if(u)return i=void 0,null!=n&&"null"!=n&&""!=n&&(i=r.map(n.split(","),function(n){return n.trim()})),{field:u[1].toLowerCase(),values:i}}).compact().value()},n.prototype.parseScreenSize=function(n){return u.Utils.parseBooleanIfNotUndefined(this.scriptTag.getAttribute(n))},n.prototype.parseLayout=function(){return this.scriptTag.getAttribute("data-layout")},n.fromString=function(n,t,i){return void 0===t&&(t={}),void 0===i&&(i=document.createElement("code")),i.innerHTML=n,null!=t.condition&&i.setAttribute("data-condition",t.condition),null!=t.layout?i.setAttribute("data-layout",t.layout):i.setAttribute("data-layout","list"),null!=t.mobile&&i.setAttribute("data-mobile",t.mobile.toString()),null!=t.tablet&&i.setAttribute("data-tablet",t.tablet.toString()),null!=t.desktop&&i.setAttribute("data-desktop",t.desktop.toString()),null!=t.fieldsToMatch&&r.each(t.fieldsToMatch,function(n){n.values?i.setAttribute("data-field-"+n.field.toLowerCase(),n.values.join(",")):i.setAttribute("data-field-"+n.field.toLowerCase(),null)}),null!=t.role&&i.setAttribute("data-role",t.role),i},n}();t.TemplateFromAScriptTag=h},function(n,t,i){"use strict";var c=this&&this.__extends||function(){var n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])};return function(t,i){function r(){this.constructor=t}n(t,i);t.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),f=this&&this.__assign||Object.assign||function(n){for(var t,r,i=1,u=arguments.length;i<u;i++){t=arguments[i];for(r in t)Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n};Object.defineProperty(t,"__esModule",{value:!0});var e=i(8),l=i(41),a=i(29),v=i(105),u=i(1),o=i(22),y=i(53),p=i(45),w=i(36),b=i(26),k=i(23),r=i(0);i(389);var d=i(6),g=i(390),s=i(11),h=i(392),nt=i(3),tt=i(27),it=function(n){function t(i,f,o,h){void 0===h&&(h=b.ModalBox);var c=n.call(this,i,t.ID)||this;return c.element=i,c.bindings=f,c.options=o,c.ModalBox=h,c.opened=!1,c.options=e.ComponentOptions.initComponentOptions(i,t,o),c.showDebugPanel=r.debounce(function(){return c.openModalBox()},100),u.$$(c.element).on(a.ResultListEvents.newResultDisplayed,function(n,t){return c.handleNewResultDisplayed(t)}),u.$$(c.element).on(v.DebugEvents.showDebugPanel,function(n,t){return c.handleShowDebugPanel(t)}),u.$$(c.element).on(s.QueryEvents.querySuccess,function(n,t){return c.handleQuerySuccess(t)}),u.$$(c.element).on(s.QueryEvents.newQuery,function(){return c.handleNewQuery()}),c.localStorageDebug=new l.LocalStorageUtils("DebugPanel"),c.collapsedSections=c.localStorageDebug.load()||[],c}return c(t,n),t.prototype.debugInfo=function(){return null},t.prototype.addInfoToDebugPanel=function(n){null==this.stackDebug&&(this.stackDebug={});this.stackDebug=f({},this.stackDebug,n)},t.prototype.handleNewResultDisplayed=function(n){var t=this;u.$$(n.item).on("dblclick",function(i){t.handleResultDoubleClick(i,n)})},t.prototype.handleResultDoubleClick=function(n,t){if(n.altKey){var i=t.result.index,u=t.item.template,e=function(n){return null!=n?r.find(n.results,function(n){return n.index==i}):t.result},o=f({},new h.DebugForResult(this.bindings).generateDebugInfoForResult(t.result),{findResult:e,template:this.templateToJson(u)});this.addInfoToDebugPanel(o);this.showDebugPanel()}},t.prototype.handleQuerySuccess=function(n){this.opened&&(this.stackDebug&&this.stackDebug.findResult&&this.addInfoToDebugPanel(new h.DebugForResult(this.bindings).generateDebugInfoForResult(this.stackDebug.findResult(n.results))),this.redrawDebugPanel(),this.hideAnimationDuringQuery())},t.prototype.handleNewQuery=function(){this.opened&&this.showAnimationDuringQuery()},t.prototype.handleShowDebugPanel=function(n){this.addInfoToDebugPanel(n);this.showDebugPanel()},t.prototype.buildStackPanel=function(){var n=this,e=u.$$("div",{className:"coveo-debug"}),o=r.chain(this.stackDebug).omit("findResult").keys().value(),i=r.pairs(o),f;return i=i.sort(function(n,i){var u=r.indexOf(t.customOrder,n[1]),f=r.indexOf(t.customOrder,i[1]);return-1!=u&&-1!=f?u-f:-1!=u?-1:-1!=f?1:n[0]-i[0]}),f={},r.forEach(i,function(t){var r=n.buildSection(t[1]),i=n.buildStackPanelSection(n.stackDebug[t[1]],n.stackDebug.result);r.container.append(i.section);null!=i.json&&(f[t[1]]=i.json);e.append(r.dom.el)}),{body:e.el,json:f}},t.prototype.getModalBody=function(){return this.modalBox&&this.modalBox.content?u.$$(this.modalBox.content).find(".coveo-modal-body"):null},t.prototype.redrawDebugPanel=function(){var t=this.buildStackPanel(),n=this.getModalBody();n&&(u.$$(n).empty(),u.$$(n).append(t.body));this.updateSearchFunctionnality(t)},t.prototype.openModalBox=function(){var i=this,t=this.buildStackPanel(),n;this.opened=!0;this.modalBox=this.ModalBox.open(t.body,{title:d.l("Debug"),className:"coveo-debug",titleClose:!0,overlayClose:!0,validation:function(){return i.onCloseModalBox(),!0},sizeMod:"big",body:this.bindings.root});n=u.$$(this.modalBox.wrapper).find(".coveo-modal-header");n?this.debugHeader?(this.debugHeader.moveTo(n),this.updateSearchFunctionnality(t)):this.debugHeader=new g.DebugHeader(this,n,function(n){return i.search(n,t.body)},this.stackDebug):this.logger.warn("No title found in modal box.")},t.prototype.updateSearchFunctionnality=function(n){var t=this;this.debugHeader&&(this.debugHeader.setNewInfoToDebug(this.stackDebug),this.debugHeader.setSearch(function(i){return t.search(i,n.body)}))},t.prototype.onCloseModalBox=function(){this.stackDebug=null;this.opened=!1},t.prototype.buildStackPanelSection=function(n,t){if(n instanceof HTMLElement)return{section:n};if(r.isFunction(n))return this.buildStackPanelSection(n(t),t);var i=this.toJson(n);return{section:this.buildProperty(i),json:i}},t.prototype.findInProperty=function(n,t){var s=this,e=u.$$(n),i=-1!=n.label.indexOf(t),o,f;return(i?this.highlightSearch(n.labelDom,t):this.removeHighlightSearch(n.labelDom),e.hasClass("coveo-property-object"))?(e.toggleClass("coveo-search-match",i),o=n.buildKeys(),f=!1,r.each(o,function(n){f=s.findInProperty(n,t)||f}),e.toggleClass("coveo-search-submatch",f),i||f):(-1!=n.values.indexOf(t)?(this.highlightSearch(n.valueDom,t),i=!0):this.removeHighlightSearch(n.valueDom),e.toggleClass("coveo-search-match",i),i)},t.prototype.buildSection=function(n){var t=this,i=u.$$("div",{className:"coveo-section coveo-"+n+"-section"}),f=u.$$("div",{className:"coveo-section-header"}),e;return u.$$(f).text(n),i.append(f.el),e=u.$$("div",{className:"coveo-section-container"}),i.append(e.el),r.contains(this.collapsedSections,n)&&u.$$(i).addClass("coveo-debug-collapsed"),f.on("click",function(){u.$$(i).toggleClass("coveo-debug-collapsed");r.contains(t.collapsedSections,n)?t.collapsedSections=r.without(t.collapsedSections,n):t.collapsedSections.push(n);t.localStorageDebug.save(t.collapsedSections)}),{dom:i,header:f,container:e}},t.prototype.buildProperty=function(n,t){return n instanceof Promise?this.buildPromise(n,t):!r.isArray(n)&&!r.isObject(n)||r.isString(n)?this.buildBasicProperty(n,t):this.buildObjectProperty(n,t)},t.prototype.buildPromise=function(n,t){var r=this,i=u.$$("div",{className:"coveo-property coveo-property-promise"});return n.then(function(n){var u=r.buildProperty(n,t);i.replaceWith(u)}),i.el},t.prototype.buildObjectProperty=function(n,t){var l=this,i=u.$$("div",{className:"coveo-property coveo-property-object"}),e=u.$$("div",{className:"coveo-property-value"}),o=r.keys(n),s,h,f,c;return r.isArray(n)||o.sort(),h=function(){return null==s&&(s=[],r.each(o,function(t){var i=l.buildProperty(n[t],t);null!=i&&(s.push(i),e.append(i))})),s},(i.el.buildKeys=h,null!=t)?(f=u.$$("div",{className:"coveo-property-label"}),f.text(t),i.el.labelDom=f.el,i.append(f.el),0!=o.length&&(i.addClass("coveo-collapsible"),f.on("click",function(){h();var n=i.el.className.split(/\s+/);r.contains(n,"coveo-expanded")?n=r.without(n,"coveo-expanded"):n.push("coveo-expanded");i.el.className=n.join(" ")}))):h(),0==o.length&&(c=r.without(i.el.className.split(/\s+/),"coveo-property-object"),c.push("coveo-property-basic"),i.el.className=c.join(" "),r.isArray(n)?e.setHtml("[]"):e.setHtml("{}"),i.el.values=""),i.el.label=null!=t?t.toLowerCase():"",i.append(e.el),i.el},t.prototype.buildBasicProperty=function(n,t){var h=this,f=u.$$("div",{className:"coveo-property coveo-property-basic"}),o,s,e,i;return null!=t&&(o=u.$$("div",{className:"coveo-property-label"}),o.text(t),f.append(o.el),f.el.labelDom=o.el),s=null!=n?n.toString():String(n),null!=n&&null!=n.ref&&(n=n.ref),e=u.$$("div"),e.text(s),e.on("dblclick",function(){h.selectElementText(e.el)}),f.append(e.el),f.el.valueDom=e,i=["coveo-property-value"],r.isString(n)&&i.push("coveo-property-value-string"),(r.isNull(n)||r.isUndefined(n))&&i.push("coveo-property-value-null"),r.isNumber(n)&&i.push("coveo-property-value-number"),r.isBoolean(n)&&i.push("coveo-property-value-boolean"),r.isDate(n)&&i.push("coveo-property-value-date"),r.isObject(n)&&i.push("coveo-property-value-object"),r.isArray(n)&&i.push("coveo-property-value-array"),e.el.className=i.join(" "),f.el.label=null!=t?t.toLowerCase():"",f.el.values=s.toLowerCase(),f.el},t.prototype.toJson=function(n,i,u){var e=this,f;return(void 0===i&&(i=0),void 0===u&&(u=[]),n instanceof w.BaseComponent||n instanceof y.SearchEndpoint)?this.componentToJson(n,i):n instanceof HTMLElement?this.htmlToJson(n):n instanceof tt.Template?this.templateToJson(n):n instanceof Promise?n.then(function(n){return e.toJson(n,i,u)}):n==window?this.toJsonRef(n):r.isArray(n)||r.isObject(n)?r.contains(u,n)?this.toJsonRef(n,"< RECURSIVE >"):i>=t.maxDepth?this.toJsonRef(n):r.isArray(n)?r.map(n,function(t){return e.toJson(t,i+1,u.concat([n]))}):r.isDate(n)?this.toJsonRef(n,k.format(n,"F")):(f={},r.each(n,function(t,r){f[r]=e.toJson(t,i+1,u.concat([n]))}),f.ref,f):n},t.prototype.toJsonRef=function(n,t){return t=new String(t||n),t.ref=n,t},t.prototype.componentToJson=function(n,t){return void 0===t&&(t=0),r.keys(n.options).length>0?this.toJson(n.options,t):this.toJsonRef(n.options,new String("No options"))},t.prototype.htmlToJson=function(n){if(null!=n)return{tagName:n.tagName,id:n.id,classList:n.className.split(/\s+/)}},t.prototype.templateToJson=function(n){if(null==n)return null;var t=n.element,i={type:n.getType()};return null!=t&&(i.id=t.id,i.condition=t.attributes["data-condition"],i.content=t.innerText),i},t.prototype.selectElementText=function(n){var t,i,r;window.getSelection&&document.createRange?(t=window.getSelection(),i=document.createRange(),i.selectNodeContents(n),t.removeAllRanges(),t.addRange(i)):"createTextRange"in document.body&&(r=document.body.createTextRange(),r.moveToElementText(n),r.select())},t.prototype.search=function(n,t){var i=this;r.isEmpty(n)?(u.$$(t).findAll(".coveo-search-match, .coveo-search-submatch").forEach(function(n){u.$$(n).removeClass("coveo-search-match, coveo-search-submatch")}),u.$$(t).removeClass("coveo-searching")):(u.$$(t).addClass("coveo-searching-loading"),setTimeout(function(){var f=u.$$(t).findAll(".coveo-section .coveo-section-container > .coveo-property");r.each(f,function(t){i.findInProperty(t,n)});u.$$(t).addClass("coveo-searching");u.$$(t).removeClass("coveo-searching-loading")}))},t.prototype.highlightSearch=function(n,t){var i,r;(n instanceof HTMLElement?i=n:n instanceof u.Dom&&(i=n.el),null!=i&&null!=i.innerText)&&(r=i.innerText.split(new RegExp("(?="+o.StringUtils.regexEncode(t)+")","gi")),i.innerHTML="",r.forEach(function(n){var r,e=new RegExp("("+o.StringUtils.regexEncode(t)+")","i"),f=n.match(e);null!=f?(r=u.$$("span",{className:"coveo-debug-highlight"}),r.text(f[1]),i.appendChild(r.el),r=u.$$("span"),r.text(n.substr(f[1].length)),i.appendChild(r.el)):(r=u.$$("span"),r.text(n),i.appendChild(r.el))}))},t.prototype.removeHighlightSearch=function(n){null!=n&&(n.innerHTML=n.innerText)},t.prototype.showAnimationDuringQuery=function(){u.$$(this.modalBox.content).addClass("coveo-debug-loading")},t.prototype.hideAnimationDuringQuery=function(){u.$$(this.modalBox.content).removeClass("coveo-debug-loading")},t.ID="Debug",t.doExport=function(){nt.exportGlobally({Debug:t})},t.options={enableDebug:e.ComponentOptions.buildBooleanOption({defaultValue:!1})},t.customOrder=["error","queryDuration","result","fields","rankingInfo","template","query","results","state"],t.durationKeys=["indexDuration","proxyDuration","clientDuration","duration"],t.maxDepth=10,t}(p.RootComponent);t.Debug=it},function(n,t,i){var u=i(109),r=i(38).document,f=u(r)&&u(r.createElement);n.exports=function(n){return f?r.createElement(n):{}}},function(n){n.exports=function(n,t){return{enumerable:!(1&n),configurable:!(2&n),writable:!(4&n),value:t}}},function(n,t,i){var e=i(79),o=i(402),f=i(166),s=i(114)("IE_PROTO"),u=function(){},r=function(){var n,t=i(160)("iframe"),u=f.length;for(t.style.display="none",i(409).appendChild(t),t.src="javascript:",n=t.contentWindow.document,n.open(),n.write("<script>document.F=Object<\/script>"),n.close(),r=n.F;u--;)delete r.prototype[f[u]];return r()};n.exports=Object.create||function(n,t){var i;return null!==n?(u.prototype=e(n),i=new u,u.prototype=null,i[s]=n):i=r(),void 0===t?i:o(i,t)}},function(n,t,i){var f=i(39),r=i(38),u=r["__core-js_shared__"]||(r["__core-js_shared__"]={});(n.exports=function(n,t){return u[n]||(u[n]=void 0!==t?t:{})})("versions",[]).push({version:f.version,mode:i(164)?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},function(n){n.exports=!0},function(n){var t=0,i=Math.random();n.exports=function(n){return"Symbol(".concat(void 0===n?"":n,")_",(++t+i).toString(36))}},function(n){n.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(n,t,i){"use strict";var e=i(164),u=i(59),c=i(422),o=i(60),s=i(83),l=i(423),a=i(168),v=i(424),r=i(46)("iterator"),f=!([].keys&&"next"in[].keys()),h=function(){return this};n.exports=function(n,t,i,y,p,w,b){l(i,t,y);var nt,it,tt,rt=function(n){if(!f&&n in k)return k[n];switch(n){case"keys":case"values":return function(){return new i(this,n)}}return function(){return new i(this,n)}},et=t+" Iterator",ut="values"==p,ft=!1,k=n.prototype,d=k[r]||k["@@iterator"]||p&&k[p],g=d||rt(p),st=p?ut?rt("entries"):g:void 0,ot="Array"==t?k.entries||d:d;if(ot&&(tt=v(ot.call(new n)))!==Object.prototype&&tt.next&&(a(tt,et,!0),e||"function"==typeof tt[r]||o(tt,r,h)),ut&&d&&"values"!==d.name&&(ft=!0,g=function(){return d.call(this)}),e&&!b||!f&&!ft&&k[r]||o(k,r,g),s[t]=g,s[et]=h,p)if(nt={values:ut?g:rt("values"),keys:w?g:rt("keys"),entries:st},b)for(it in nt)it in k||c(k,it,nt[it]);else u(u.P+u.F*(f||ft),t,nt);return nt}},function(n,t,i){var u=i(108).f,f=i(81),r=i(46)("toStringTag");n.exports=function(n,t,i){n&&!f(n=i?n:n.prototype,r)&&u(n,r,{configurable:!0,value:t})}},function(n){n.exports="\t\n\v\f\r   ᠎             　\u2028\u2029\ufeff"},function(n,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var h=i(24),y=i(116),p=i(127),r=i(5),w=i(9),c=i(10),b=i(31),f=i(1),e=i(57),l=i(171),a=i(13),s=i(7),v=i(103),o=i(21),u=i(0),k=i(50),d=i(154),g=function(){function n(n,t,i,u,f,e,o,s,c,l){this.endpoint=n;this.rootElement=t;this.userId=i;this.userDisplayName=u;this.anonymous=f;this.splitTestRunName=e;this.splitTestRunVersion=o;this.originLevel1=s;this.sendToCloud=c;this.bindings=l;this.isContextual=!1;this.originContext="Search";this.language=String.locale;this.device=h.DeviceUtils.getDeviceName();this.mobile=h.DeviceUtils.isMobileDevice();r.Assert.exists(n);r.Assert.exists(t);r.Assert.isNonEmptyString(this.language);r.Assert.isNonEmptyString(this.device);r.Assert.isNonEmptyString(this.originLevel1);this.logger=new w.Logger(this)}return n.prototype.isActivated=function(){return!0},n.prototype.getCurrentVisitId=function(){return this.endpoint.getCurrentVisitId()},n.prototype.getCurrentVisitIdPromise=function(){return this.endpoint.getCurrentVisitIdPromise()},n.prototype.getCurrentEventCause=function(){return null!=this.pendingSearchEvent?this.pendingSearchEvent.getEventCause():null!=this.pendingSearchAsYouTypeSearchEvent?this.pendingSearchAsYouTypeSearchEvent.getEventCause():null},n.prototype.getCurrentEventMeta=function(){return null!=this.pendingSearchEvent?this.pendingSearchEvent.getEventMeta():null!=this.pendingSearchAsYouTypeSearchEvent?this.pendingSearchAsYouTypeSearchEvent.getEventMeta():null},n.prototype.logSearchEvent=function(n,t){var i=this.buildMetaObject(t);this.pushSearchEvent(n,i)},n.prototype.logSearchAsYouType=function(n,t){var i=this.buildMetaObject(t);this.pushSearchAsYouTypeEvent(n,i)},n.prototype.logClickEvent=function(n,t,i,r){var u=this.buildMetaObject(t,i);return this.pushClickEvent(n,u,i,r)},n.prototype.logCustomEvent=function(n,t,i,r){var u=this.buildMetaObject(t,r);return this.pushCustomEvent(n,u,i)},n.prototype.getTopQueries=function(n){return this.endpoint.getTopQueries(n)},n.prototype.sendAllPendingEvents=function(){this.pendingSearchAsYouTypeSearchEvent&&this.pendingSearchAsYouTypeSearchEvent.sendRightNow()},n.prototype.cancelAllPendingEvents=function(){this.pendingSearchAsYouTypeSearchEvent&&(this.pendingSearchAsYouTypeSearchEvent.cancel(),this.pendingSearchAsYouTypeSearchEvent=null);this.pendingSearchEvent&&(this.pendingSearchEvent.cancel(),this.pendingSearchEvent=null)},n.prototype.getPendingSearchEvent=function(){return this.pendingSearchEvent?this.pendingSearchEvent:this.pendingSearchAsYouTypeSearchEvent?this.pendingSearchAsYouTypeSearchEvent:null},n.prototype.warnAboutSearchEvent=function(){u.isUndefined(this.pendingSearchEvent)&&u.isUndefined(this.pendingSearchAsYouTypeSearchEvent)&&(this.logger.warn("A search was triggered, but no analytics event was logged. If you wish to have consistent analytics data, consider logging a search event using the methods provided by the framework","https://docs.coveo.com/en/2726/#logging-your-own-search-events"),window.console&&console.trace&&console.trace())},n.prototype.setOriginContext=function(n){this.originContext=n},n.prototype.getOriginContext=function(){return this.originContext},n.prototype.getUserDisplayName=function(){return this.userDisplayName},n.prototype.pushCustomEvent=function(n,t,i){var r=this.buildCustomEvent(n,t,i);return this.triggerChangeAnalyticsCustomData("CustomEvent",t,r),this.checkToSendAnyPendingSearchAsYouType(n),f.$$(this.rootElement).trigger(e.AnalyticsEvents.customEvent,{customEvent:l.APIAnalyticsBuilder.convertCustomEventToAPI(r)}),f.$$(this.rootElement).trigger(e.AnalyticsEvents.analyticsEventReady,{event:"CoveoCustomEvent",coveoAnalyticsEventData:r}),this.sendToCloud?this.endpoint.sendCustomEvent(r):Promise.resolve(null)},n.prototype.pushSearchEvent=function(n,t){var f=this,i,u;(r.Assert.exists(n),this.pendingSearchEvent&&this.pendingSearchEvent.getEventCause()!==n.name&&(this.pendingSearchEvent.stopRecording(),this.pendingSearchEvent=null),this.checkToSendAnyPendingSearchAsYouType(n),this.pendingSearchEvent)||(i=this.buildSearchEvent(n,t),this.triggerChangeAnalyticsCustomData("SearchEvent",t,i),u=this.pendingSearchEvent=new y.PendingSearchEvent(this.rootElement,this.endpoint,i,this.sendToCloud),b.Defer.defer(function(){f.pendingSearchEvent=void 0;u.stopRecording()}))},n.prototype.checkToSendAnyPendingSearchAsYouType=function(n){this.eventIsNotRelatedToSearchbox(n.name)?this.sendAllPendingEvents():this.cancelAnyPendingSearchAsYouTypeEvent()},n.prototype.pushSearchAsYouTypeEvent=function(n,t){this.cancelAnyPendingSearchAsYouTypeEvent();var i=this.buildSearchEvent(n,t);this.triggerChangeAnalyticsCustomData("SearchEvent",t,i);this.pendingSearchAsYouTypeSearchEvent=new p.PendingSearchAsYouTypeSearchEvent(this.rootElement,this.endpoint,i,this.sendToCloud)},n.prototype.pushClickEvent=function(n,t,i,u){var o=this.buildClickEvent(n,t,i,u);return this.checkToSendAnyPendingSearchAsYouType(n),this.triggerChangeAnalyticsCustomData("ClickEvent",t,o,{resultData:i}),r.Assert.isNonEmptyString(o.searchQueryUid),r.Assert.isNonEmptyString(o.collectionName),r.Assert.isNonEmptyString(o.sourceName),r.Assert.isNumber(o.documentPosition),f.$$(this.rootElement).trigger(e.AnalyticsEvents.documentViewEvent,{documentViewEvent:l.APIAnalyticsBuilder.convertDocumentViewToAPI(o)}),f.$$(this.rootElement).trigger(e.AnalyticsEvents.analyticsEventReady,{event:"CoveoClickEvent",coveoAnalyticsEventData:o}),this.sendToCloud?this.endpoint.sendDocumentViewEvent(o):Promise.resolve(null)},n.prototype.buildAnalyticsEvent=function(n,t){return{searchQueryUid:void 0,actionCause:n.name,actionType:n.type,username:this.userId,userDisplayName:this.userDisplayName,anonymous:this.anonymous,device:this.device,mobile:this.mobile,language:this.language,responseTime:void 0,originLevel1:this.originLevel1,originLevel2:this.getOriginLevel2(this.rootElement),originLevel3:document.referrer,originContext:this.originContext,customData:u.keys(t).length>0?t:void 0,userAgent:navigator.userAgent,clientId:(new k.AnalyticsInformation).clientId}},n.prototype.buildSearchEvent=function(n,t){return this.merge(this.buildAnalyticsEvent(n,t),{searchQueryUid:void 0,pipeline:void 0,splitTestRunName:this.splitTestRunName,splitTestRunVersion:this.splitTestRunVersion,queryText:void 0,advancedQuery:void 0,results:void 0,resultsPerPage:void 0,pageNumber:void 0,didYouMean:void 0,facets:void 0,contextual:this.isContextual})},n.prototype.buildClickEvent=function(n,t,i,r){return this.merge(this.buildAnalyticsEvent(n,t),{searchQueryUid:i.queryUid,queryPipeline:i.pipeline,splitTestRunName:this.splitTestRunName||i.splitTestRun,splitTestRunVersion:this.splitTestRunVersion||(void 0!=i.splitTestRun?i.pipeline:void 0),documentUri:i.uri,documentUriHash:o.QueryUtils.getUriHash(i),documentUrl:i.clickUri,documentTitle:i.title,documentCategory:o.QueryUtils.getObjectType(i),originLevel2:this.getOriginLevel2(r),collectionName:o.QueryUtils.getCollection(i),sourceName:o.QueryUtils.getSource(i),documentPosition:i.index+1,responseTime:0,viewMethod:n.name,rankingModifier:i.rankingModifier})},n.prototype.buildCustomEvent=function(n,t,i){return this.merge(this.buildAnalyticsEvent(n,t),{lastSearchQueryUid:this.getLastSearchQueryUid(),eventType:n.type,eventValue:n.name,originLevel2:this.getOriginLevel2(i),responseTime:0})},n.prototype.getOriginLevel2=function(n){return this.resolveActiveTabFromElement(n)||"default"},n.prototype.getLastSearchQueryUid=function(){var t=s.Component.resolveBinding(s.Component.resolveRoot(this.rootElement),d.QueryController),n;if(t&&(n=t.getLastResults(),n))return n.searchUid},n.prototype.buildMetaObject=function(n,t){var i=u.extend({},n),r;return(i.JSUIVersion=v.version.lib+";"+v.version.product,i.contentIDKey&&i.contentIDValue||!t)||(r=o.QueryUtils.getPermanentId(t),i.contentIDKey=r.fieldUsed,i.contentIDValue=r.fieldValue),i},n.prototype.cancelAnyPendingSearchAsYouTypeEvent=function(){this.pendingSearchAsYouTypeSearchEvent&&(this.pendingSearchAsYouTypeSearchEvent.cancel(),this.pendingSearchAsYouTypeSearchEvent=void 0)},n.prototype.resolveActiveTabFromElement=function(n){r.Assert.exists(n);var t=this.resolveQueryStateModel(n);return t&&t.get(a.QueryStateModel.attributesEnum.t)},n.prototype.resolveQueryStateModel=function(n){return s.Component.resolveBinding(n,a.QueryStateModel)},n.prototype.eventIsNotRelatedToSearchbox=function(n){return n!==c.analyticsActionCauseList.searchboxSubmit.name&&n!==c.analyticsActionCauseList.searchboxClear.name},n.prototype.triggerChangeAnalyticsCustomData=function(n,t,i,r){var c,o,s,h;t.metaDataAsString={};t.metaDataAsNumber={};c={language:i.language,originLevel1:i.originLevel1,originLevel2:i.originLevel2,originLevel3:i.originLevel3,metaObject:t};o=u.extend({},{type:n,actionType:i.actionType,actionCause:i.actionCause},c,r);f.$$(this.rootElement).trigger(e.AnalyticsEvents.changeAnalyticsCustomData,o);i.language=o.language;i.originLevel1=o.originLevel1;i.originLevel2=o.originLevel2;i.originLevel3=o.originLevel3;i.customData=t;s=i.customData.metaDataAsString;u.keys(s).length>0&&(this.logger.warn("Using deprecated 'metaDataAsString' key to log custom analytics data. Custom meta should now be put at the root of the object."),u.extend(i.customData,s));delete i.customData.metaDataAsString;h=i.customData.metaDataAsNumber;u.keys(h).length>0&&(this.logger.warn("Using deprecated 'metaDataAsNumber' key to log custom analytics data. Custom meta should now be put at the root of the object."),u.extend(i.customData,h));delete i.customData.metaDataAsNumber},n.prototype.merge=function(n,t){return u.extend({},n,t)},n}();t.LiveAnalyticsClient=g},function(n,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function n(){}return n.convertSearchEventToAPI=function(n){return{advancedQuery:n.advancedQuery,customMetadatas:n.customData,device:n.device,didYouMean:n.didYouMean,language:n.language,pageNumber:n.pageNumber,queryText:n.queryText,responseTime:n.responseTime,numberOfResults:n.numberOfResults,resultsPerPage:n.resultsPerPage,searchHub:n.originLevel1,searchInterface:n.originLevel2,searchQueryUid:n.searchQueryUid,type:n.actionType,actionCause:n.actionCause,queryPipeline:n.queryPipeline,splitTestRunName:n.splitTestRunName,splitTestRunVersion:n.splitTestRunVersion}},n.convertDocumentViewToAPI=function(n){return{collectionName:n.collectionName,device:n.device,documentPosition:n.documentPosition,title:n.documentTitle,documentUrl:n.documentUrl,documentUri:n.documentUri,documentUriHash:n.documentUriHash,language:n.language,responseTime:n.responseTime,searchHub:n.originLevel1,searchInterface:n.originLevel2,searchQueryUid:n.searchQueryUid,sourceName:n.sourceName,viewMethod:n.viewMethod,customMetadatas:n.customData,actionCause:n.actionCause,queryPipeline:n.queryPipeline,splitTestRunName:n.splitTestRunName,splitTestRunVersion:n.splitTestRunVersion}},n.convertCustomEventToAPI=function(n){return{actionCause:n.actionCause,actionType:n.actionType,device:n.device,language:n.language,responseTime:n.responseTime,searchHub:n.originLevel1,searchInterface:n.originLevel2,customMetadatas:n.customData}},n}();t.APIAnalyticsBuilder=i},function(n,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var f=i(4),e=i(40),s=i(49),u=i(1),r=i(0),o=i(475),h=function(){function n(n){this.facet=n;this.valueToSearch="";this.alwaysInclude=[];this.alwaysExclude=[];this.sortCriteria="occurrences";this.fetchMore=!1;this.completeFacetWithStandardValues=!0;this.nbResults=n.options.numberOfValuesInFacetSearch;this.ignoreAccents=n.options.facetSearchIgnoreAccents}return n.prototype.setValueToSearch=function(n){return this.valueToSearch=n,f.Utils.isNonEmptyString(n)&&(this.valueToSearch=this.valueToSearch.trim(),this.alwaysInclude=this.alwaysInclude.concat(e.FacetUtils.getValuesToUseForSearchInFacet(this.valueToSearch,this.facet))),this},n.prototype.excludeCurrentlyDisplayedValuesInSearch=function(n){var t=this;r.each(this.getCurrentlyShowedValueInSearch(n),function(n){var i=e.FacetUtils.getValuesToUseForSearchInFacet(n,t.facet);r.each(i,function(n){t.alwaysExclude.push(n)})});r.each(this.facet.getDisplayedFacetValues(),function(n){t.alwaysExclude.push(n.value)})},n.prototype.getGroupByRequest=function(){var i,n,f,u,t;return this.lowerCaseAll(),i=this.nbResults,i+=this.alwaysExclude.length,n=[],this.valueToSearch&&(n=["*"+this.valueToSearch+"*"]),f=this.valueToSearch?n.concat(this.alwaysInclude).concat(this.alwaysExclude):r.compact(n.concat(this.alwaysInclude).concat(this.facet.options.allowedValues)),u=this.completeFacetWithStandardValues,null!=this.facet.options.lookupField&&(u=!1),t={allowedValues:f,allowedValuesPatternType:this.facet.options.useWildcardsInFacetSearch?o.AllowedValuesPatternType.Wildcards:o.AllowedValuesPatternType.Legacy,maximumNumberOfValues:i,completeFacetWithStandardValues:u,field:this.facet.options.field,sortCriteria:this.facet.options.sortCriteria||this.sortCriteria,injectionDepth:this.facet.options.injectionDepth},this.facet.options.lookupField&&(t.lookupField=this.facet.options.lookupField),this.facet.options.computedField&&(t.computedFields=[{field:this.facet.options.computedField,operation:this.facet.options.computedFieldOperation}]),t},n.prototype.getQuery=function(){var n=r.clone(this.facet.queryController.getLastQuery());return n||(n=(new s.QueryBuilder).build()),n.q=n.enableQuerySyntax?this.facet.facetQueryController.basicExpressionToUseForFacetSearch:f.Utils.isNonEmptyString(this.facet.facetQueryController.basicExpressionToUseForFacetSearch)?"<@- "+this.facet.facetQueryController.basicExpressionToUseForFacetSearch+" -@>":"",n.enableQuerySyntax=!0,n.cq=this.facet.facetQueryController.constantExpressionToUseForFacetSearch,n.aq=this.facet.facetQueryController.advancedExpressionToUseForFacetSearch,n.enableDidYouMean=!1,n.firstResult=0,n.numberOfResults=0,n.fieldsToInclude=[],n.groupBy=[this.getGroupByRequest()],n},n.prototype.getCurrentlyShowedValueInSearch=function(n){return r.map(u.$$(n).findAll(".coveo-facet-value-caption"),function(n){return u.$$(n).getAttribute("data-original-value")||u.$$(n).text()})},n.prototype.lowerCaseAll=function(){this.alwaysExclude=r.chain(this.alwaysExclude).map(function(n){return n.toLowerCase()}).uniq().value();this.alwaysInclude=r.chain(this.alwaysInclude).map(function(n){return n.toLowerCase()}).uniq().value()},n}();t.FacetSearchParameters=h},function(n,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var f=i(0),u=i(20),e=i(47),r=i(1),o=i(17),s=function(){function n(n){var t=this;this.facet=n;r.$$(this.facet.ref.searchInterface.element).on(u.QueryEvents.buildingQuery,function(){return t.handleBuildingQuery()});this.getDependsOn(this.facet.ref)&&this.facet.ref.bind.onRootElement(o.InitializationEvents.afterComponentsInitialization,function(){return t.setupDependentFacet()})}return n.prototype.setupDependentFacet=function(){var n=this;r.$$(this.facet.ref.element).addClass("coveo-hidden-dependant-facet");this.parentFacetRef=this.getParentFacet(this.facet.ref);this.parentFacetRef&&r.$$(this.facet.ref.root).on("state:change",function(){return n.resetIfConditionUnfullfiled()})},n.prototype.resetIfConditionUnfullfiled=function(){this.getDependsOnCondition(this.facet.ref)(this.parentFacetRef)||this.facet.reset()},n.prototype.getId=function(n){var t=n.options.id;return t?""+t:null},n.prototype.getDependsOn=function(n){var t=n.options.dependsOn;return t?""+t:null},n.prototype.getDependsOnCondition=function(n){var i=this,t=n.options.dependsOnCondition;return t&&f.isFunction(t)?t:function(){return i.parentHasSelectedValues(n)&&i.parentIsEnabled(n)}},n.prototype.parentHasSelectedValues=function(n){var t=this.getParentFacet(n);return t&&this.valuesExistForFacetWithId(this.getId(t))},n.prototype.parentIsEnabled=function(n){var t=this.getParentFacet(n);return t&&!t.disabled},n.prototype.valuesExistForFacetWithId=function(n){var t=this.facet.ref.queryStateModel.get(u.QueryStateModel.getFacetId(n));return!!t&&!!t.length},Object.defineProperty(n.prototype,"allFacetsInInterface",{get:function(){return e.ComponentsTypes.getAllFacetsFromSearchInterface(this.facet.ref.searchInterface)},enumerable:!0,configurable:!0}),n.prototype.getParentFacet=function(n){var t=this,i=this.allFacetsInInterface.filter(function(i){return t.getId(i)===t.getDependsOn(n)});return i.length?i[0]:(n.logger.warn("DependsOn reference does not exist",this.getDependsOn(this.facet.ref)),null)},Object.defineProperty(n.prototype,"dependentFacets",{get:function(){var n=this;return this.allFacetsInInterface.filter(function(t){return n.getId(n.facet.ref)===n.getDependsOn(t)})},enumerable:!0,configurable:!0}),n.prototype.handleBuildingQuery=function(){var n=this;this.dependentFacets.forEach(function(t){if(n.getDependsOnCondition(t)(n.facet.ref))return r.$$(t.element).removeClass("coveo-hidden-dependant-facet"),t.enable();t.disable();r.$$(t.element).addClass("coveo-hidden-dependant-facet")})},Object.defineProperty(n.prototype,"hasDependentFacets",{get:function(){return!!this.dependentFacets.length},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"dependentFacetsHaveSelectedValues",{get:function(){var n=this;return this.dependentFacets.some(function(t){return n.valuesExistForFacetWithId(n.getId(t))})},enumerable:!0,configurable:!0}),n}();t.DependsOnManager=s},function(n,t,i){"use strict";var u=this&&this.__extends||function(){var n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])};return function(t,i){function r(){this.constructor=t}n(t,i);t.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var r=i(215),f=i(69),e=function(n){function t(){return null!==n&&n.apply(this,arguments)||this}return u(t,n),t.init=function(n,i,u){r.ResponsiveFacetColumn.init(t,n,i,u,f.Facet.ID)},t}(r.ResponsiveFacetColumn);t.ResponsiveFacets=e},function(n,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var u=i(492),f=i(494),e=i(496),r=i(0),o=i(497),s=i(218),h=i(498),c=function(){function n(n,t){void 0===t&&(t={});this.expressions={};this.start=new u.ExpressionRef(n,null,"start",this);this.addExpressions(t)}return n.prototype.addExpressions=function(n){var t=this;r.each(n,function(n,i){t.addExpression(i,n)})},n.prototype.addExpression=function(t,i){if(t in this.expressions)throw new Error("Grammar already contain the id:"+t);this.expressions[t]=n.buildExpression(i,t,this)},n.prototype.getExpression=function(n){return this.expressions[n]},n.prototype.parse=function(n){return this.start.parse(n,!0)},n.buildExpression=function(n,t,i){if(void 0===n)throw new Error("Invalid Expression: "+n);if(r.isString(n))return this.buildStringExpression(n,t,i);if(r.isArray(n))return new f.ExpressionOptions(r.map(n,function(n,r){return new u.ExpressionRef(n,null,t+"_"+r,i)}),t);if(r.isRegExp(n))return new e.ExpressionRegExp(n,t,i);if(r.isFunction(n))return new o.ExpressionFunction(n,t,i);throw new Error("Invalid Expression: "+n);},n.buildStringExpression=function(t,i,f){var c=n.stringMatch(t,n.spliter),e=r.map(c,function(n,t){if(n[1]){var r=n[1],e=n[3]?Number(n[3]):n[2]||null;return new u.ExpressionRef(r,e,i+"_"+t,f)}return new s.ExpressionConstant(n[4],i+"_"+t)}),o;return 1==e.length?(o=e[0],o.id=i,o):new h.ExpressionList(e,i)},n.stringMatch=function(n,t){for(var r=[],u=new RegExp(t.source,"g"),i=u.exec(n);null!==i;)r.push(i),i=u.exec(n);return r},n.spliter=/\[(\w+)(\*|\+|\?|\{([1-9][0-9]*)\})?\]|(.[^\[]*)/,n}();t.Grammar=c},function(n,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=i(1),e=i(4),u=i(0);i(388);var f=i(11),s=i(17),h=i(29),o=i(42),c=i(47),l=function(){function n(n){this.root=n;this.facetPlaceholder='<div class="coveo-placeholder-title"><\/div>\n    <div class="coveo-facet-placeholder-line">\n      <div class="coveo-facet-placeholder-checkbox"><\/div>\n      <div class="coveo-placeholder-text"><\/div>\n    <\/div>\n    <div class="coveo-facet-placeholder-line">\n      <div class="coveo-facet-placeholder-checkbox"><\/div>\n      <div class="coveo-placeholder-text"><\/div>\n    <\/div>\n    <div class="coveo-facet-placeholder-line">\n      <div class="coveo-facet-placeholder-checkbox"><\/div>\n      <div class="coveo-placeholder-text"><\/div>\n    <\/div>\n    <div class="coveo-facet-placeholder-line">\n      <div class="coveo-facet-placeholder-checkbox"><\/div>\n      <div class="coveo-placeholder-text"><\/div>\n    <\/div>\n    <div class="coveo-facet-placeholder-line">\n      <div class="coveo-facet-placeholder-checkbox"><\/div>\n      <div class="coveo-placeholder-text"><\/div>\n    <\/div>';this.resultListPlaceholder='<div class="coveo-result-frame coveo-placeholder-result">\n  <div class="coveo-result-row">\n    <div class="coveo-result-cell" style="width:85px;text-align:center;">\n      <div class="coveo-placeholder-icon"><\/div>\n    <\/div>\n    <div class="coveo-result-cell" style="padding-left:15px;">\n      <div class="coveo-result-row">\n        <div class="coveo-result-cell">\n          <div class="coveo-placeholder-title" style="width: 60%"><\/div>\n        <\/div>\n        <div class="coveo-result-cell" style="width:120px; text-align:right;">\n          <div class="coveo-placeholder-text" style="width: 80%"><\/div>\n        <\/div>\n      <\/div>\n      <div class="coveo-result-row">\n        <div class="coveo-result-cell">\n          <div class="coveo-placeholder-text" style="width: 70%"><\/div>\n          <div class="coveo-placeholder-text" style="width: 90%"><\/div>\n          <div class="coveo-placeholder-text" style="width: 60%"><\/div>\n        <\/div>\n      <\/div>\n    <\/div>\n  <\/div>\n<\/div>';this.cardResultListPlaceholder='<div class="coveo-card-layout coveo-placeholder-result CoveoResult">\n  <div class="coveo-result-frame">\n    <div class="coveo-result-row" style="margin-bottom: 20px;">\n      <div class="coveo-result-cell" style="width: 32px; vertical-align: middle;">\n        <div class="coveo-placeholder-icon-small"><\/div>\n      <\/div>\n      <div class="coveo-result-cell" style="text-align:left; padding-left: 10px; vertical-align: middle;">\n        <div class="coveo-placeholder-title" style="width: 60%"><\/div>\n      <\/div>\n    <\/div>\n    <div class="coveo-result-row" style="margin-bottom: 20px;">\n      <div class="coveo-result-cell">\n        <div class="coveo-placeholder-text" style="width: 70%"><\/div>\n        <div class="coveo-placeholder-text" style="width: 90%"><\/div>\n        <div class="coveo-placeholder-text" style="width: 60%"><\/div>\n      <\/div>\n      <div class="coveo-result-cell">\n        <div class="coveo-placeholder-text" style="width: 90%"><\/div>\n        <div class="coveo-placeholder-text" style="width: 70%"><\/div>\n        <div class="coveo-placeholder-text" style="width: 60%"><\/div>\n      <\/div>\n    <\/div>\n    <div class="coveo-result-row">\n      <div class="coveo-result-cell">\n        <div class="coveo-placeholder-text" style="width: 90%"><\/div>\n          <div class="coveo-placeholder-text" style="width: 100%"><\/div>\n      <\/div>\n    <\/div>\n  <\/div>\n<\/div>\n';this.recommendationResultListPlaceholder='<div class="coveo-result-frame coveo-placeholder-result">\n  <div class="coveo-result-row">\n    <div class="coveo-result-cell" style="width: 32px; vertical-align: middle;">\n        <div class="coveo-placeholder-icon-small"><\/div>\n      <\/div>\n    <div class="coveo-result-cell" style="padding-left:10px; vertical-align: middle;">\n      <div class="coveo-result-row">\n        <div class="coveo-result-cell">\n          <div class="coveo-placeholder-title" style="width: 90%"><\/div>\n        <\/div>\n      <\/div>\n    <\/div>\n  <\/div>\n  ';this.eventToRemovePlaceholder=s.InitializationEvents.afterComponentsInitialization}return n.prototype.withEventToRemovePlaceholder=function(n){return this.eventToRemovePlaceholder=n,this},n.prototype.withFullInitializationStyling=function(){var t=this;return r.$$(this.root).addClass(n.INITIALIZATION_CLASS),r.$$(this.root).removeClass(n.AFTER_INITIALIZATION_CLASS),r.$$(this.root).one(this.eventToRemovePlaceholder,function(){r.$$(t.root).removeClass(n.INITIALIZATION_CLASS);r.$$(t.root).addClass(n.AFTER_INITIALIZATION_CLASS)}),this},n.prototype.withHiddenRootElement=function(){return r.$$(this.root).addClass("coveo-hidden"),this},n.prototype.withVisibleRootElement=function(){return r.$$(this.root).removeClass("coveo-hidden"),this},n.prototype.withWaitingForFirstQueryMode=function(){var n=this;return r.$$(this.root).addClass("coveo-waiting-for-query"),r.$$(this.root).one(f.QueryEvents.duringQuery,function(){r.$$(n.root).removeClass("coveo-waiting-for-query")}),this},n.prototype.withAllPlaceholders=function(){return this.withPlaceholderForFacets(),this.withPlaceholderForResultList(),this.withPlaceholderSearchbox(),this},n.prototype.withPlaceholderForFacets=function(){var i=this,t=c.ComponentsTypes.getAllFacetElementsFromElement(this.root),o;return e.Utils.isNonEmptyArray(t)&&(o=[],u.each(t,function(t){return r.$$(t).addClass(n.INITIALIZATION_CLASS)}),u.each(u.first(t,n.NUMBER_OF_FACETS),function(n){r.$$(n).addClass("coveo-with-placeholder");var t=r.$$("div",{className:"coveo-facet-placeholder"},i.facetPlaceholder);n.appendChild(t.el);o.push(t)}),r.$$(this.root).one(this.eventToRemovePlaceholder,function(){var e=function(){u.each(o,function(n){return n.remove()});u.each(t,function(t){return r.$$(t).removeClass(n.INITIALIZATION_CLASS)});u.each(t,function(n){return r.$$(n).removeClass("coveo-with-placeholder")})};r.$$(i.root).one(f.QueryEvents.queryError,function(){return e()});r.$$(i.root).one(f.QueryEvents.deferredQuerySuccess,function(){return e()})})),this},n.prototype.withPlaceholderSearchbox=function(){var t=r.$$(this.root).findAll(".CoveoSearchbox");return e.Utils.isNonEmptyArray(t)&&(u.each(t,function(t){r.$$(t).addClass(n.INITIALIZATION_CLASS)}),r.$$(this.root).one(this.eventToRemovePlaceholder,function(){u.each(t,function(t){return r.$$(t).removeClass(n.INITIALIZATION_CLASS)})})),this},n.prototype.withPlaceholderForResultList=function(){var t=r.$$(this.root).findAll(".CoveoResultList"),i;if(e.Utils.isNonEmptyArray(t)){u.each(t,function(t){return r.$$(t).addClass(n.INITIALIZATION_CLASS)});var o=this.determineResultListPlaceholder(t),l=o.placeholderToUse,s=o.resultListToUse,c=o.rootToUse;r.$$(s).append(c);r.$$(s).addClass("coveo-with-placeholder");u.times(this.isRecommendationRoot()?n.NUMBER_OF_RESULTS_RECOMMENDATION:n.NUMBER_OF_RESULTS,function(){c.innerHTML+=l});i=function(){r.$$(c).remove();u.each(t,function(t){return r.$$(t).removeClass(n.INITIALIZATION_CLASS)});r.$$(s).removeClass("coveo-with-placeholder")};r.$$(this.root).one(h.ResultListEvents.newResultDisplayed,function(){return i()});r.$$(this.root).one(f.QueryEvents.queryError,function(){return i()});r.$$(this.root).one(f.QueryEvents.noResults,function(){return i()})}return this},n.prototype.determineResultListPlaceholder=function(n){var t,i;return(n.length>1?t=o.HashUtils.getValue("layout",o.HashUtils.getHash()):1==n.length&&(t=n[0].getAttribute("data-layout")),t||(t="list"),n.length>1)?(i=u.find(n,function(n){return n.getAttribute("data-layout")==t}),i||(i=u.find(n,function(n){return null==n.getAttribute("data-layout")})),i||(i=u.first(n)),{placeholderToUse:this.determineResultListFromLayout(t),resultListToUse:i,rootToUse:this.determineRootFromLayout(t)}):1==n.length?{placeholderToUse:this.determineResultListFromLayout(t),resultListToUse:n[0],rootToUse:this.determineRootFromLayout(t)}:null},n.prototype.determineResultListFromLayout=function(n){switch(n){case"list":return this.isRecommendationRoot()?this.recommendationResultListPlaceholder:this.resultListPlaceholder;case"card":return this.cardResultListPlaceholder;default:return this.resultListPlaceholder}},n.prototype.determineRootFromLayout=function(n){switch(n){case"list":return r.$$("div").el;case"card":return r.$$("div",{className:"coveo-result-list-container coveo-card-layout-container"}).el;default:return r.$$("div").el}},n.prototype.isRecommendationRoot=function(){return r.$$(this.root).hasClass("CoveoRecommendation")},n.NUMBER_OF_FACETS=3,n.NUMBER_OF_RESULTS=10,n.NUMBER_OF_RESULTS_RECOMMENDATION=5,n.INITIALIZATION_CLASS="coveo-during-initialization",n.AFTER_INITIALIZATION_CLASS="coveo-after-initialization",n}();t.InitializationPlaceholder=l},function(n,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=i(4),f=i(6),u=i(0),e=function(){function n(){}return n.splitSemicolonSeparatedListOfEmailAddresses=function(n){var t=n.split(/\s*;\s*/);return u.filter(t,function(n){return r.Utils.exists(n)&&r.Utils.isNonEmptyString(r.Utils.trim(n))})},n.emailAddressesToHyperlinks=function(t,i,e,o,s){void 0===o&&(o=2);void 0===s&&(s=!1);t=u.filter(t,function(n){return r.Utils.exists(n)&&r.Utils.isNonEmptyString(r.Utils.trim(n))});var h=u.map(t,function(t){var l=n.parseEmail(t),u=l[1],o=l[0],h,a,c;return(r.Utils.exists(e)&&u==e&&(o=f.l("Me")),s)&&(h=o.split(" "),r.Utils.isNullOrUndefined(h[1])||(o=h[0]+" "+h[1].substring(0,1)+".")),a=u.indexOf("@")>=0?u.indexOf("@")+1:0,c=u.substr(a),r.Utils.exists(i)&&c!=i&&(o+=" ("+c+")"),'<a title="'+t.replace(/'/g,"&quot;")+'" href="mailto:'+encodeURI(u)+'">'+o+"<\/a>"}),c=h.length-o,l=c>0?n.buildEmailAddressesAndOthers(u.last(h,c)):"";return u.first(h,o).join(", ")+l},n.buildEmailAddressesAndOthers=function(n){return'<span class="coveo-emails-excess-collapsed coveo-active" onclick="Coveo.TemplateHelpers.getHelper(\'excessEmailToggle\')(this);"> '+f.l("AndOthers",n.length.toString(),n.length)+'<\/span><span class="coveo-emails-excess-expanded"> , '+n.join(" , ")+"<\/span>"},n.parseEmail=function(n){var t,i=n.match(/^\s*(.*)\s+<(.*)>$/);return null!=i?(t=i[1],/^'.*'|'.*'$/.test(t)&&(t=t.substr(1,t.length-2)),n=i[2]):(t=n,n=n),[t,n]},n}();t.EmailUtils=e},function(n,t,i){"use strict";var u,r,f,e;Object.defineProperty(t,"__esModule",{value:!0});u=i(0);r=function(){function n(){}return n.buildAttributeString=function(n){var t=[];return u.each(n,function(n,i){void 0!=n&&t.push(i+"="+JSON.stringify(n.toString()))}),t.join(" ")},n}();t.HTMLUtils=r;f=function(){function n(){}return n.buildAnchor=function(n,t){var i;return t&&t.text?(i=t.text,t.text=void 0):i=n,"<a href='"+n+"' "+r.buildAttributeString(t)+">"+i+"<\/a>"},n}();t.AnchorUtils=f;e=function(){function n(){}return n.buildImage=function(n,t){var i="<img ";return i+=n?"src='"+n+"' ":"",i+(r.buildAttributeString(t)+"/>")},n.selectImageFromResult=function(n){return document.querySelector("img[data-coveo-uri-hash="+n.raw.urihash+"]")},n.buildImageWithDirectSrcAttribute=function(t,i){var r=new Image,u=t.getViewAsDatastreamUri(i.uniqueId,"$Thumbnail$",{contentType:"image/png"});r.onload=function(){n.selectImageFromResult(i).setAttribute("src",u)};r.src=u},n.buildImageWithBase64SrcAttribute=function(t,i){t.getRawDataStream(i.uniqueId,"$Thumbnail$").then(function(t){var r=String.fromCharCode.apply(null,new Uint8Array(t));n.selectImageFromResult(i).setAttribute("src","data:image/png;base64, "+btoa(r))}).catch(function(){n.selectImageFromResult(i).remove()})},n.buildImageFromResult=function(t,i,r){r=r||{};var f=n.buildImage(void 0,u.extend(r,{"data-coveo-uri-hash":t.raw.urihash}));return i.isJsonp()?n.buildImageWithDirectSrcAttribute(i,t):n.buildImageWithBase64SrcAttribute(i,t),f},n}();t.ImageUtils=e},function(n,t,i){"use strict";var u=this&&this.__assign||Object.assign||function(n){for(var t,r,i=1,u=arguments.length;i<u;i++){t=arguments[i];for(r in t)Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n};Object.defineProperty(t,"__esModule",{value:!0});var f=i(26),e=i(470),o=i(6),s=i(1),r=i(25),h=i(20),c=function(){function n(n,t,i,r){void 0===i&&(i=f.ModalBox);void 0===r&&(r={});this.className=n;this.ownerElement=t;this.modalboxModule=i;this.options=u({sizeMod:"big"},r)}return Object.defineProperty(n.prototype,"isOpen",{get:function(){return!!this.focusTrap},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"element",{get:function(){return this.activeModal&&this.activeModal.modalBox},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"content",{get:function(){return this.activeModal&&this.activeModal.content},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"wrapper",{get:function(){return this.activeModal&&this.activeModal.wrapper},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"headerElement",{get:function(){return this.element&&this.element.querySelector(".coveo-modal-header h1")},enumerable:!0,configurable:!0}),n.prototype.openResult=function(n){this.isOpen||(this.openModalAndTrap({content:n.content,validation:n.validation,origin:n.origin,title:h.DomUtils.getQuickviewHeader(n.result,n.options,n.bindings).el}),this.makeAccessible(n.options.title||n.result.title))},n.prototype.open=function(n){this.isOpen||(this.openModalAndTrap(n),this.makeAccessible())},n.prototype.openModalAndTrap=function(n){var t=this;this.initiallyFocusedElement=n.origin||document.activeElement;this.activeModal=this.modalboxModule.open(n.content,{title:n.title,className:this.className,validation:function(){return t.onModalClose(),n.validation()},body:this.ownerElement,sizeMod:this.options.sizeMod,overlayClose:this.options.overlayClose});this.focusTrap=new e.FocusTrap(this.element)},n.prototype.close=function(){this.isOpen&&(this.activeModal.close(),this.activeModal=null)},n.prototype.makeAccessible=function(n){this.element.setAttribute("aria-modal","true");n&&this.headerElement.setAttribute("aria-label",n);this.makeCloseButtonAccessible();this.updateFocus()},Object.defineProperty(n.prototype,"closeButton",{get:function(){return this.element.querySelector(".coveo-small-close")},enumerable:!0,configurable:!0}),n.prototype.makeCloseButtonAccessible=function(){var n=this.closeButton;n.setAttribute("aria-label",o.l("Close"));n.setAttribute("role","button");n.tabIndex=0;s.$$(n).on("keyup",r.KeyboardUtils.keypressAction(r.KEYBOARD.ENTER,function(){return n.click()}))},n.prototype.updateFocus=function(){(this.options.focusOnOpen&&this.options.focusOnOpen()||this.closeButton).focus()},n.prototype.onModalClose=function(){this.focusTrap.disable();this.focusTrap=null;this.initiallyFocusedElement&&document.body.contains(this.initiallyFocusedElement)&&this.initiallyFocusedElement.focus()},n}();t.AccessibleModal=c},function(n,t){"use strict";var i,r;Object.defineProperty(t,"__esModule",{value:!0});!function(n){n[n.WINDOWS=0]="WINDOWS";n[n.MACOSX=1]="MACOSX";n[n.UNIX=2]="UNIX";n[n.LINUX=3]="LINUX";n[n.UNKNOWN=4]="UNKNOWN"}(i=t.OS_NAME||(t.OS_NAME={}));r=function(){function n(){}return n.get=function(n){return void 0===n&&(n=navigator),-1!=n.appVersion.indexOf("Win")?i.WINDOWS:-1!=n.appVersion.indexOf("Mac")?i.MACOSX:-1!=n.appVersion.indexOf("X11")?i.UNIX:-1!=n.appVersion.indexOf("Linux")?i.LINUX:i.UNKNOWN},n}();t.OSUtils=r},function(n,t,i){"use strict";function r(n){var t=n.filterFacetCount;return!!u.Utils.isUndefined(t)||t}var e=this&&this.__assign||Object.assign||function(n){for(var t,r,i=1,u=arguments.length;i<u;i++){t=arguments[i];for(r in t)Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},u,f;Object.defineProperty(t,"__esModule",{value:!0});u=i(4);f=function(){function n(n){this.request=n}return n.prototype.buildBaseRequestForQuery=function(){return e({},this.request,{filterFacetCount:r(this.request)})},n}();t.DynamicFacetRequestBuilder=f;t.determineFilterFacetCount=r},function(n,t,i){"use strict";function f(n){return n+"-facet-heading"}var e;Object.defineProperty(t,"__esModule",{value:!0});i(567);var r=i(1),u=i(6),o=i(12),s=i(16),h=i(505),c=i(568),l=i(48);t.getDynamicFacetHeaderId=f;e=function(){function n(n){this.options=n;this.element=r.$$("div",{className:"coveo-dynamic-facet-header"}).el;this.title=this.createTitle();r.$$(this.element).append(this.title.el);r.$$(this.element).append(this.createWaitAnimation());r.$$(this.element).append(this.createClearButton());this.options.enableCollapse&&this.enableCollapse()}return n.prototype.createClearButton=function(){var n=this;return this.clearButton=new h.DynamicFacetHeaderButton({label:u.l("Clear"),ariaLabel:u.l("Clear",this.options.title),className:"coveo-dynamic-facet-header-clear",shouldDisplay:!1,action:function(){return n.options.clear()}}),this.clearButton.element},n.prototype.createCollapseToggle=function(){return this.collapseToggle=new c.DynamicFacetHeaderCollapseToggle(this.options),this.collapseToggle.element},n.prototype.enableCollapse=function(){var n=this;r.$$(this.element).append(this.createCollapseToggle());r.$$(this.title).addClass("coveo-clickable");r.$$(this.title).on("click",function(){return n.options.toggleCollapse()})},n.prototype.toggleCollapse=function(n){this.options.enableCollapse&&this.collapseToggle.toggleButton(n)},n.prototype.createTitle=function(){return r.$$(l.getHeadingTag(this.options.headingLevel),{className:"coveo-dynamic-facet-header-title",ariaLabel:""+u.l("FacetTitle",this.options.title),id:f(this.options.id)},r.$$("span",{ariaHidden:!0,title:this.options.title},this.options.title))},n.prototype.createWaitAnimation=function(){return this.waitAnimation=r.$$("div",{className:"coveo-dynamic-facet-header-wait-animation"},o.SVGIcons.icons.loading),s.SVGDom.addClassToSVGInContainer(this.waitAnimation.el,"coveo-dynamic-facet-header-wait-animation-svg"),this.waitAnimation.toggle(!1),this.waitAnimation.el},n.prototype.toggleClear=function(n){this.clearButton.toggle(n)},n.prototype.showLoading=function(){var t=this;clearTimeout(this.showLoadingTimeout);this.showLoadingTimeout=window.setTimeout(function(){return t.waitAnimation.toggle(!0)},n.showLoadingDelay)},n.prototype.hideLoading=function(){clearTimeout(this.showLoadingTimeout);this.waitAnimation.toggle(!1)},n.showLoadingDelay=2e3,n}();t.DynamicFacetHeader=e},function(n,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});!function(n){n.specific="specific";n.numericalRange="numericalRange";n.dateRange="dateRange";n.hierarchical="hierarchical"}(t.FacetType||(t.FacetType={}))},function(n,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var u=i(0),r=i(74),f=i(4),e=function(){function n(n,t,i,r){this.basicExpression=n;this.advancedExpression=t;this.constantExpression=i;this.disjunctionExpression=r}return n.isEmpty=function(n){var t=u.chain(n).values().compact().value();return u.isEmpty(t)},n.prototype.reset=function(){this.basicExpression="";this.advancedExpression="";this.constantExpression="";this.disjunctionExpression=""},Object.defineProperty(n.prototype,"withoutConstant",{get:function(){return this.expressionBuilders.withoutConstantExpression.build()},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"full",{get:function(){return r.ExpressionBuilder.mergeUsingOr(this.expressionBuilders.fullExpression,this.expressionBuilders.disjunctionExpression).build()},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"basic",{get:function(){return this.expressionBuilders.basicExpression.build()},set:function(n){this.basicExpression=n},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"advanced",{get:function(){return this.expressionBuilders.advancedExpression.build()},set:function(n){this.advancedExpression=n},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"constant",{get:function(){return this.expressionBuilders.constantExpression.build()},set:function(n){this.constantExpression=n},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"expressionBuilders",{get:function(){var t=function(n,t){f.Utils.isNonEmptyString(t)&&n.add(t)},i=new r.ExpressionBuilder,n,u,e;return t(i,this.basicExpression),n=new r.ExpressionBuilder,t(n,this.advancedExpression),u=new r.ExpressionBuilder,t(u,this.constantExpression),e=new r.ExpressionBuilder,t(e,this.disjunctionExpression),{basicExpression:i,advancedExpression:n,constantExpression:u,disjunctionExpression:e,withoutConstantExpression:r.ExpressionBuilder.merge(i,n),fullExpression:r.ExpressionBuilder.merge(i,n,u)}},enumerable:!0,configurable:!0}),n}();t.QueryBuilderExpression=e},function(n,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var f=i(56),r=i(87),u=i(1),e=function(){function n(n,t){this.inputName=n;this.root=t}return n.prototype.reset=function(){this.clear()},n.prototype.build=function(){return this.input=new f.TextInput(this.onChange.bind(this),this.inputName),this.input.getElement()},n.prototype.setValue=function(n){this.input.setValue(n)},n.prototype.getValue=function(){return this.input.getValue()},n.prototype.clear=function(){this.input.setValue("")},n.prototype.updateQuery=function(n){var t=this.getValue();t&&n.advancedExpression.add(t)},n.prototype.onChange=function(){this.root?u.$$(this.root).trigger(r.AdvancedSearchEvents.executeAdvancedSearch):this.input&&u.$$(this.input.getElement()).trigger(r.AdvancedSearchEvents.executeAdvancedSearch)},n}();t.KeywordsInput=e},function(n,t,i){"use strict";function u(){}function o(n,t){var r=new u,o,i,f,e;if(n instanceof u)n.each(function(n,t){r.set(t,n)});else if(Array.isArray(n))if(i=-1,f=n.length,null==t)for(;++i<f;)r.set(i,n[i]);else for(;++i<f;)r.set(t(o=n[i],i,n),o);else if(n)for(e in n)r.set(e,n[e]);return r}function l(){return{}}function a(n,t,i){n[t]=i}function s(){return e()}function h(n,t,i){n.set(t,i)}function f(){}function c(n,t){var r=new f,i,u;if(n instanceof f)n.each(function(n){r.add(n)});else if(n)if(i=-1,u=n.length,null==t)for(;++i<u;)r.add(n[i]);else for(;++i<u;)r.add(t(n[i],i,n));return r}u.prototype=o.prototype={constructor:u,has:function(n){return"$"+n in this},get:function(n){return this["$"+n]},set:function(n,t){return this["$"+n]=t,this},remove:function(n){var t="$"+n;return t in this&&delete this[t]},clear:function(){for(var n in this)"$"===n[0]&&delete this[n]},keys:function(){var t=[],n;for(n in this)"$"===n[0]&&t.push(n.slice(1));return t},values:function(){var t=[],n;for(n in this)"$"===n[0]&&t.push(this[n]);return t},entries:function(){var t=[],n;for(n in this)"$"===n[0]&&t.push({key:n.slice(1),value:this[n]});return t},size:function(){var n=0,t;for(t in this)"$"===t[0]&&++n;return n},empty:function(){for(var n in this)if("$"===n[0])return!1;return!0},each:function(n){for(var t in this)"$"===t[0]&&n(this[t],t.slice(1),this)}};var e=o,v=function(){function i(t,f,o,s){if(f>=n.length)return null!=u&&t.sort(u),null!=r?r(t):t;for(var l,h,a,v=-1,p=t.length,w=n[f++],c=e(),y=o();++v<p;)(a=c.get(l=w(h=t[v])+""))?a.push(h):c.set(l,[h]);return c.each(function(n,t){s(y,t,i(n,f,o,s))}),y}function f(t,i){if(++i>n.length)return t;var u,e=o[i-1];return null!=r&&i>=n.length?u=t.entries():(u=[],t.each(function(n,t){u.push({key:t,values:f(n,i)})})),null!=e?u.sort(function(n,t){return e(n.key,t.key)}):u}var u,r,t,n=[],o=[];return t={object:function(n){return i(n,0,l,a)},map:function(n){return i(n,0,s,h)},entries:function(n){return f(i(n,0,s,h),0)},key:function(i){return n.push(i),t},sortKeys:function(i){return o[n.length-1]=i,t},sortValues:function(n){return u=n,t},rollup:function(n){return r=n,t}}},r=e.prototype;f.prototype=c.prototype={constructor:f,has:r.has,add:function(n){return n+="",this["$"+n]=n,this},remove:r.remove,clear:r.clear,values:r.keys,size:r.size,empty:r.empty,each:r.each};var y=c,p=function(n){var t=[],i;for(i in n)t.push(i);return t},w=function(n){var t=[],i;for(i in n)t.push(n[i]);return t},b=function(n){var i=[],t;for(t in n)i.push({key:t,value:n[t]});return i};i.d(t,"d",function(){return v});i.d(t,"e",function(){return y});i.d(t,"c",function(){return e});i.d(t,"b",function(){return p});i.d(t,"f",function(){return w});i.d(t,"a",function(){return b})},function(n,t,i){"use strict";function r(n,t,i,u){function f(t){return n(t=0===arguments.length?new Date:new Date(+t)),t}return f.floor=function(t){return n(t=new Date(+t)),t},f.ceil=function(i){return n(i=new Date(i-1)),t(i,1),n(i),i},f.round=function(n){var t=f(n),i=f.ceil(n);return n-t<i-n?t:i},f.offset=function(n,i){return t(n=new Date(+n),null==i?1:Math.floor(i)),n},f.range=function(i,r,u){var o,e=[];if(i=f.ceil(i),u=null==u?1:Math.floor(u),!(i<r&&u>0))return e;do e.push(o=new Date(+i)),t(i,u),n(i);while(o<i&&i<r);return e},f.filter=function(i){return r(function(t){if(t>=t)for(;n(t),!i(t);)t.setTime(t-1)},function(n,r){if(n>=n)if(r<0)for(;++r<=0;)for(;t(n,-1),!i(n););else for(;--r>=0;)for(;t(n,1),!i(n););})},i&&(f.count=function(t,r){return s.setTime(+t),h.setTime(+r),n(s),n(h),Math.floor(i(s,h))},f.every=function(n){return n=Math.floor(n),isFinite(n)&&n>0?n>1?f.filter(u?function(t){return u(t)%n==0}:function(t){return f.count(0,t)%n==0}):f:null}),f}function u(n){return r(function(t){t.setDate(t.getDate()-(t.getDay()+7-n)%7);t.setHours(0,0,0,0)},function(n,t){n.setDate(n.getDate()+7*t)},function(n,t){return(t-n-(t.getTimezoneOffset()-n.getTimezoneOffset())*e)/w})}function f(n){return r(function(t){t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-n)%7);t.setUTCHours(0,0,0,0)},function(n,t){n.setUTCDate(n.getUTCDate()+7*t)},function(n,t){return(t-n)/w})}var s=new Date,h=new Date,o=r(function(){},function(n,t){n.setTime(+n+t)},function(n,t){return t-n}),ni,ti;o.every=function(n){return n=Math.floor(n),isFinite(n)&&n>0?n>1?r(function(t){t.setTime(Math.floor(t/n)*n)},function(t,i){t.setTime(+t+i*n)},function(t,i){return(i-t)/n}):o:null};var y=o,p=o.range,e=6e4,w=6048e5,b=r(function(n){n.setTime(n-n.getMilliseconds())},function(n,t){n.setTime(+n+1e3*t)},function(n,t){return(t-n)/1e3},function(n){return n.getUTCSeconds()}),k=b,d=b.range,g=r(function(n){n.setTime(n-n.getMilliseconds()-1e3*n.getSeconds())},function(n,t){n.setTime(+n+t*e)},function(n,t){return(t-n)/e},function(n){return n.getMinutes()}),ii=g,ri=g.range,nt=r(function(n){n.setTime(n-n.getMilliseconds()-1e3*n.getSeconds()-n.getMinutes()*e)},function(n,t){n.setTime(+n+36e5*t)},function(n,t){return(t-n)/36e5},function(n){return n.getHours()}),ui=nt,fi=nt.range,tt=r(function(n){n.setHours(0,0,0,0)},function(n,t){n.setDate(n.getDate()+t)},function(n,t){return(t-n-(t.getTimezoneOffset()-n.getTimezoneOffset())*e)/864e5},function(n){return n.getDate()-1}),ei=tt,oi=tt.range,c=u(0),it=u(1),rt=u(2),ut=u(3),ft=u(4),et=u(5),ot=u(6),st=c.range,si=it.range,hi=rt.range,ci=ut.range,li=ft.range,ai=et.range,vi=ot.range,ht=r(function(n){n.setDate(1);n.setHours(0,0,0,0)},function(n,t){n.setMonth(n.getMonth()+t)},function(n,t){return t.getMonth()-n.getMonth()+12*(t.getFullYear()-n.getFullYear())},function(n){return n.getMonth()}),yi=ht,pi=ht.range,l=r(function(n){n.setMonth(0,1);n.setHours(0,0,0,0)},function(n,t){n.setFullYear(n.getFullYear()+t)},function(n,t){return t.getFullYear()-n.getFullYear()},function(n){return n.getFullYear()});l.every=function(n){return isFinite(n=Math.floor(n))&&n>0?r(function(t){t.setFullYear(Math.floor(t.getFullYear()/n)*n);t.setMonth(0,1);t.setHours(0,0,0,0)},function(t,i){t.setFullYear(t.getFullYear()+i*n)}):null};var wi=l,bi=l.range,ct=r(function(n){n.setUTCSeconds(0,0)},function(n,t){n.setTime(+n+t*e)},function(n,t){return(t-n)/e},function(n){return n.getUTCMinutes()}),ki=ct,di=ct.range,lt=r(function(n){n.setUTCMinutes(0,0,0)},function(n,t){n.setTime(+n+36e5*t)},function(n,t){return(t-n)/36e5},function(n){return n.getUTCHours()}),gi=lt,nr=lt.range,at=r(function(n){n.setUTCHours(0,0,0,0)},function(n,t){n.setUTCDate(n.getUTCDate()+t)},function(n,t){return(t-n)/864e5},function(n){return n.getUTCDate()-1}),tr=at,ir=at.range,a=f(0),vt=f(1),yt=f(2),pt=f(3),wt=f(4),bt=f(5),kt=f(6),dt=a.range,rr=vt.range,ur=yt.range,fr=pt.range,er=wt.range,or=bt.range,sr=kt.range,gt=r(function(n){n.setUTCDate(1);n.setUTCHours(0,0,0,0)},function(n,t){n.setUTCMonth(n.getUTCMonth()+t)},function(n,t){return t.getUTCMonth()-n.getUTCMonth()+12*(t.getUTCFullYear()-n.getUTCFullYear())},function(n){return n.getUTCMonth()}),hr=gt,cr=gt.range,v=r(function(n){n.setUTCMonth(0,1);n.setUTCHours(0,0,0,0)},function(n,t){n.setUTCFullYear(n.getUTCFullYear()+t)},function(n,t){return t.getUTCFullYear()-n.getUTCFullYear()},function(n){return n.getUTCFullYear()});v.every=function(n){return isFinite(n=Math.floor(n))&&n>0?r(function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/n)*n);t.setUTCMonth(0,1);t.setUTCHours(0,0,0,0)},function(t,i){t.setUTCFullYear(t.getUTCFullYear()+i*n)}):null};ni=v;ti=v.range;i.d(t,"g",function(){return r});i.d(t,"h",function(){return y});i.d(t,"i",function(){return p});i.d(t,"L",function(){return y});i.d(t,"M",function(){return p});i.d(t,"r",function(){return k});i.d(t,"s",function(){return d});i.d(t,"V",function(){return k});i.d(t,"W",function(){return d});i.d(t,"j",function(){return ii});i.d(t,"k",function(){return ri});i.d(t,"e",function(){return ui});i.d(t,"f",function(){return fi});i.d(t,"a",function(){return ei});i.d(t,"b",function(){return oi});i.d(t,"B",function(){return c});i.d(t,"C",function(){return st});i.d(t,"t",function(){return c});i.d(t,"u",function(){return st});i.d(t,"l",function(){return it});i.d(t,"m",function(){return si});i.d(t,"x",function(){return rt});i.d(t,"y",function(){return hi});i.d(t,"z",function(){return ut});i.d(t,"A",function(){return ci});i.d(t,"v",function(){return ft});i.d(t,"w",function(){return li});i.d(t,"c",function(){return et});i.d(t,"d",function(){return ai});i.d(t,"p",function(){return ot});i.d(t,"q",function(){return vi});i.d(t,"n",function(){return yi});i.d(t,"o",function(){return pi});i.d(t,"D",function(){return wi});i.d(t,"E",function(){return bi});i.d(t,"N",function(){return ki});i.d(t,"O",function(){return di});i.d(t,"J",function(){return gi});i.d(t,"K",function(){return nr});i.d(t,"F",function(){return tr});i.d(t,"G",function(){return ir});i.d(t,"_5",function(){return a});i.d(t,"_6",function(){return dt});i.d(t,"X",function(){return a});i.d(t,"Y",function(){return dt});i.d(t,"P",function(){return vt});i.d(t,"Q",function(){return rr});i.d(t,"_1",function(){return yt});i.d(t,"_2",function(){return ur});i.d(t,"_3",function(){return pt});i.d(t,"_4",function(){return fr});i.d(t,"Z",function(){return wt});i.d(t,"_0",function(){return er});i.d(t,"H",function(){return bt});i.d(t,"I",function(){return or});i.d(t,"T",function(){return kt});i.d(t,"U",function(){return sr});i.d(t,"R",function(){return hr});i.d(t,"S",function(){return cr});i.d(t,"_7",function(){return ni});i.d(t,"_8",function(){return ti})},function(n,t,i){"use strict";var s=this&&this.__extends||function(){var n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])};return function(t,i){function r(){this.constructor=t}n(t,i);t.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var h=i(26),c=i(3),r=i(1),l=i(16),a=i(12),v=i(4),f=i(7),u=i(8),e=i(2),y=i(30),p=i(70),w=i(179),o=function(n){function t(i,o,s,c,y,b){var k,g,d,nt;return void 0===y&&(y=h.ModalBox),k=n.call(this,i,t.ID,s)||this,k.element=i,k.options=o,k.bindings=s,k.result=c,k.origin=b,k.options=u.ComponentOptions.initComponentOptions(i,t,o),k.resultLink=r.$$("a",{className:f.Component.computeCssClassName(p.ResultLink)}),b||(k.origin=k.resultLink.el),g=r.$$("div",{className:"coveo-youtube-thumbnail-container"}),k.resultLink.append(g.el),d=r.$$("img",{src:v.Utils.getFieldValue(k.result,"ytthumbnailurl"),className:"coveo-youtube-thumbnail-img",alt:k.result.title,title:k.result.title}),d.el.style.width=k.options.width,d.el.style.height=k.options.height,d.el.onerror=function(){var n=r.$$("div",{},a.SVGIcons.icons.video).el;l.SVGDom.addStyleToSVGInContainer(n,{width:k.options.width});r.$$(d).remove();g.append(n)},g.append(d.el),nt=r.$$("span",{className:"coveo-youtube-thumbnail-play-button"}),g.append(nt.el),r.$$(k.element).append(k.resultLink.el),e.Initialization.automaticallyCreateComponentsInsideResult(i,c,{ResultLink:k.options.embed?{onClick:function(){return k.openYoutubeIframe()}}:null}),k.modalbox=new w.AccessibleModal("coveo-youtube-player",k.searchInterface.options.modalContainer,y,{overlayClose:!0}),k}return s(t,n),t.prototype.openResultLink=function(){y.get(this.resultLink.el).openLinkAsConfigured()},t.prototype.openYoutubeIframe=function(){var t=this,i=r.$$("iframe",{src:"https://www.youtube.com/embed/"+this.extractVideoId()+"?autoplay=1",allowfullscreen:"allowfullscreen",width:"100%",height:"100%",title:this.result.title}),n=r.$$("div");n.append(i.el);this.modalbox.openResult({result:this.result,options:{showDate:!0,title:this.result.title},bindings:this.bindings,content:n.el,validation:function(){return!0},origin:this.origin});r.$$(r.$$(this.modalbox.wrapper).find(".coveo-quickview-close-button")).on("click",function(){t.modalbox.close()})},t.prototype.extractVideoId=function(){return this.result.clickUri.split("watch?v=")[1]},t.ID="YouTubeThumbnail",t.doExport=function(){c.exportGlobally({YouTubeThumbnail:t})},t.options={width:u.ComponentOptions.buildStringOption({defaultValue:"200px"}),height:u.ComponentOptions.buildStringOption({defaultValue:"112px"}),embed:u.ComponentOptions.buildBooleanOption({defaultValue:!0})},t}(f.Component);t.YouTubeThumbnail=o;e.Initialization.registerAutoCreateComponent(o)},function(n,t,i){"use strict";var o=this&&this.__extends||function(){var n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])};return function(t,i){function r(){this.constructor=t}n(t,i);t.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),s=this&&this.__assign||Object.assign||function(n){for(var t,r,i=1,u=arguments.length;i<u;i++){t=arguments[i];for(r in t)Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n};Object.defineProperty(t,"__esModule",{value:!0});var u=i(69),r=i(8),h=i(121),c=i(572),l=i(2),a=i(23),v=i(3),y=i(84),p=i(174),f=i(0),e=function(n){function t(i,u,f){var e=n.call(this,i,r.ComponentOptions.initComponentOptions(i,t,u),f,t.ID)||this;return e.element=i,e.isFieldValueCompatible=!1,e.options.enableFacetSearch=!1,e.options.enableSettings=!1,e.options.includeInOmnibox=!1,e.options.enableMoreLess=!1,p.ResponsiveFacets.init(e.root,e,e.options),e}return o(t,n),t.prototype.getValueCaption=function(t){return this.options.valueCaption||this.isLabelSpecifiedForValue(t)?n.prototype.getValueCaption.call(this,t):this.translateValuesFromFormat(t)},t.prototype.isLabelSpecifiedForValue=function(n){return this.options.ranges&&!!f.find(this.options.ranges,function(t){return!f.isUndefined(t.label)&&t.label===n.lookupValue})},t.prototype.initFacetQueryController=function(){this.facetQueryController=new c.FacetRangeQueryController(this)},t.prototype.processNewGroupByResults=function(t){var i=this;null!=t&&null==this.options.ranges&&t.values.sort(function(n,t){return i.sortRangeGroupByResults(n.value,t.value)});n.prototype.processNewGroupByResults.call(this,t)},t.prototype.sortRangeGroupByResults=function(n,t){var i,r,u=this.extractStartAndEndValue(n),f=this.extractStartAndEndValue(t);return i=u?u.start:n,r=f?f.start:t,this.options.dateField?Date.parse(i)-Date.parse(r):Number(i)-Number(r)},t.prototype.translateValuesFromFormat=function(n){var t=this.extractStartAndEndValue(n.lookupValue||n.value);return t?this.formatValue(t.start)+" - "+this.formatValue(t.end):null},t.prototype.extractStartAndEndValue=function(n){var t=/^(.*)\.\.(.*)$/.exec(n);return null==t?null:{start:t[1],end:t[2]}},t.prototype.formatValue=function(n){var t=!!n.match(/^[\+\-]?[0-9]+(\.[0-9]+)?$/);return this.options.dateField||!t?this.formatDateValue(n):this.formatNumberValue(Number(n))},t.prototype.formatDateValue=function(n){return h.TemplateHelpers.getHelper("dateTime")(n,{alwaysIncludeTime:!1,includeTimeIfThisWeek:!1,includeTimeIfToday:!1,omitYearIfCurrentOne:!1,useTodayYesterdayAndTomorrow:!1,useWeekdayIfThisWeek:!1})},t.prototype.formatNumberValue=function(n){return a.format(n,this.options.valueFormat)},t.ID="FacetRange",t.parent=u.Facet,t.doExport=function(){v.exportGlobally({FacetRange:t})},t.options=s({dateField:r.ComponentOptions.buildBooleanOption({defaultValue:!1}),ranges:r.ComponentOptions.buildJsonOption(),valueFormat:r.ComponentOptions.buildStringOption({defaultValue:"n0"})},y.ResponsiveFacetOptions),t}(u.Facet);t.FacetRange=e;l.Initialization.registerAutoCreateComponent(e)},function(n,t,i){"use strict";var h=this&&this.__extends||function(){var n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])};return function(t,i){function r(){this.constructor=t}n(t,i);t.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var f=i(0),o=i(11),c=i(3),e=i(5),l=i(1),u=i(4),a=i(7),r=i(8),v=i(2),y=i(49),p=i(506),s=function(n){function t(i,f,s){var h=n.call(this,i,t.ID,s)||this;return h.element=i,h.options=f,h.options=r.ComponentOptions.initComponentOptions(i,t,f),e.Assert.check(u.Utils.isCoveoField(h.options.field),h.options.field+" is not a valid field"),e.Assert.exists(h.options.maximumExpandedResults),h.swapParentChildFoldingFields(),h.bind.onRootElement(o.QueryEvents.buildingQuery,h.handleBuildingQuery),h.bind.onRootElement(o.QueryEvents.preprocessResults,h.handlepreprocessResults),h}return h(t,n),t.foldWithParent=function(n){var i={score:Number.NEGATIVE_INFINITY,children:[],result:{raw:!1}},r;return f.each(n,function(n,r){var u=t.findUniqueId(i.children,n.uniqueId),e,o;if(null==n.parentResult||n.parentResult.uniqueId==n.uniqueId)null==u&&(u={result:n,score:r,children:[]},i.children.push(u),u.parent=i);else for(null!=u?(u.score=Math.min(r,u.score),u.parent.children=f.without(u.parent.children,u)):u={result:n,score:r,children:[]},e=t.findUniqueId(i.children,n.parentResult.uniqueId),null==e&&(e={result:n.parentResult,score:Number.POSITIVE_INFINITY,children:[]},i.children.push(e),e.parent=i),e.children.push(u),u.parent=e,o=e;null!=o&&u.score<o.score;)o.score=u.score,o=o.parent}),r=t.resultNodeToQueryResult(i),f.each(r.attachments,function(n){return n.parentResult=null}),r.attachments},t.defaultGetResult=function(n){var i=n.childResults||[],r;return i.unshift(n),n.childResults=[],i=t.foldWithParent(i),r=i.shift(),r.childResults=i,r},t.defaultGetMoreResults=function(n){return t.foldWithParent(n)},t.resultNodeToQueryResult=function(n){var i=n.result;return i.attachments=f.map(f.sortBy(n.children,"score"),t.resultNodeToQueryResult),i.parentResult=null!=n.parent?n.parent.result:null,i},t.findUniqueId=function(n,i){for(var u,r=0;r<n.length;r++){if(n[r].result.uniqueId==i)return n[r];if(u=t.findUniqueId(n[r].children,i),null!=u)return u}return null},t.prototype.swapParentChildFoldingFields=function(){null!=this.options.childField&&(this.logger.warn('Detecting usage of deprecated option "childField". Assigning it automatically to the "parent" option instead.'),this.logger.warn("The option definition was changed to support universal folding across all sources."),this.logger.warn('To remove this warning, rename the "childField" option (data-child-field) to "parent" (data-parent).'),this.options.parent=this.options.childField);null!=this.options.parentField&&(this.logger.warn('Detecting usage of deprecated option "parentField". Assigning it automatically to the "child" option instead.'),this.logger.warn("The option definition was changed to support universal folding across all sources."),this.logger.warn('To remove this warning, rename the "parentField" option (data-parent-field) to "child" (data-child).'),this.options.child=this.options.parentField)},t.prototype.handleBuildingQuery=function(n){e.Assert.exists(n);this.disabled||(n.queryBuilder.childField=this.options.parent,n.queryBuilder.parentField=this.options.child,n.queryBuilder.filterField=this.options.field,n.queryBuilder.filterFieldRange=this.options.range,n.queryBuilder.requiredFields.push(this.options.field),null!=this.options.parent&&n.queryBuilder.requiredFields.push(this.options.parent),null!=this.options.child&&n.queryBuilder.requiredFields.push(this.options.child))},t.prototype.handlepreprocessResults=function(n){var r=this,i,o;e.Assert.exists(n);e.Assert.check(!n.results._folded,"Two or more Folding components are active at the same time for the same Tab. Cannot process the results.");n.results._folded=!0;i=n.results;o=this.options.getResult||t.defaultGetResult;i.results=f.map(i.results,o);this.options.rearrange&&i.results.forEach(function(n){n.childResults=f.sortBy(n.childResults,function(n){return u.Utils.getFieldValue(n,r.options.rearrange.sort)});r.shouldBeReversed(n.childResults)&&(n.childResults=n.childResults.reverse())});this.addLoadMoreHandler(i.results,n.query)},t.prototype.shouldBeReversed=function(n){var t=this;return"ascending"!=this.options.rearrange.direction&&!f.any(n,function(n){return u.Utils.isNullOrUndefined(u.Utils.getFieldValue(n,t.options.rearrange.sort))})},t.prototype.addLoadMoreHandler=function(n,t){var i=this;return f.map(n,function(n){return i.options.enableExpand&&!u.Utils.isNullOrUndefined(u.Utils.getFieldValue(n,i.options.field))&&(n.moreResults=function(){return i.moreResults(n,t)}),n})},t.prototype.moreResults=function(n,t){var o=this,i=f.clone(t),r=new y.QueryBuilder,e;return i.numberOfResults=this.options.maximumExpandedResults,e=u.Utils.getFieldValue(n,this.options.field),u.Utils.isNonEmptyString(e)&&(r.advancedExpression.addFieldExpression(this.options.field,"=",[e]),i.aq=r.build().aq,i.facets=[],i.categoryFacets=[],i.facetOptions={}),u.Utils.isNonEmptyString(t.q)&&(t.enableQuerySyntax?i.q="( "+t.q+" ) OR @uri":(i.enableQuerySyntax=!0,i.q="( <@- "+t.q+" -@> ) OR @uri")),u.Utils.isNonEmptyString(this.options.expandExpression)&&(i.cq=this.options.expandExpression),null!=this.options.child&&(i.parentField=this.options.child),null!=this.options.parent&&(i.childField=this.options.parent),i.filterField=null,i.filterFieldRange=null,i.firstResult=0,this.options.rearrange?(this.options.rearrange.putInQueryBuilder(r),i.sortCriteria=r.sortCriteria,i.sortField=r.sortField):(i.sortCriteria=t.sortCriteria,i.sortField=t.sortField),this.queryController.getEndpoint().search(i).then(function(n){return o.handlePreprocessMoreResults(n),n.results}).catch(function(n){return o.logger.error("Invalid query performed while trying to retrieve more results for folding.",n),[]})},t.prototype.handlePreprocessMoreResults=function(n){var i=this.options.getMoreResults||t.defaultGetMoreResults;n.results=i(n.results);l.$$(this.element).trigger(o.QueryEvents.preprocessMoreResults,{results:n})},t.ID="Folding",t.doExport=function(){c.exportGlobally({Folding:t})},t.options={field:r.ComponentOptions.buildFieldOption({defaultValue:"@foldingcollection"}),child:r.ComponentOptions.buildFieldOption({defaultValue:"@foldingchild"}),parent:r.ComponentOptions.buildFieldOption({defaultValue:"@foldingparent"}),childField:r.ComponentOptions.buildFieldOption({deprecated:"This option is deprecated. Instead, use the data-parent option."}),parentField:r.ComponentOptions.buildFieldOption({deprecated:"This option is deprecated. Instead, use the data-child option."}),range:r.ComponentOptions.buildNumberOption({defaultValue:2,min:0}),rearrange:r.ComponentOptions.buildCustomOption(function(n){return u.Utils.isNonEmptyString(n)?p.SortCriteria.parse(n):null}),enableExpand:r.ComponentOptions.buildBooleanOption({defaultValue:!0}),expandExpression:r.ComponentOptions.buildQueryExpressionOption({depend:"enableExpand"}),maximumExpandedResults:r.ComponentOptions.buildNumberOption({defaultValue:100,min:1,depend:"enableExpand"}),getResult:r.ComponentOptions.buildCustomOption(function(){return null}),getMoreResults:r.ComponentOptions.buildCustomOption(function(){return null})},t}(a.Component);t.Folding=s;v.Initialization.registerAutoCreateComponent(s)},function(n,t,i){"use strict";var o=this&&this.__extends||function(){var n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])};return function(t,i){function r(){this.constructor=t}n(t,i);t.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var f=i(7),u=i(8),s=i(5),h=i(21),c=i(2),l=i(4),a=i(120),r=i(1),v=i(3),y=i(136),e=function(n){function t(i,r,f,e){var o=n.call(this,i,t.ID,f)||this;return o.element=i,o.options=r,o.result=e,o.options=u.ComponentOptions.initComponentOptions(i,t,r),o.result=o.result||o.resolveResult(),s.Assert.exists(o.result),y.TemplateFieldsEvaluator.evaluateFieldsToMatch(o.options.conditions,o.result)?o.initialize(i,f):null!=o.element.parentElement&&o.element.parentElement.removeChild(o.element),o}return o(t,n),t.prototype.initialize=function(n,i){var u=r.$$(this.element).find("."+f.Component.computeCssClassNameForType("Quickview"));!l.Utils.isNullOrUndefined(u)&&h.QueryUtils.hasHTMLVersion(this.result)&&(r.$$(this.element).addClass("coveo-with-quickview"),r.$$(this.element).on("click",function(){f.Component.get(u).open()}));t.createIcon(this.result,this.options,n,i)},t.createIcon=function(n,i,u,f){void 0===i&&(i={});void 0===u&&(u=r.$$("div").el);var e=a.FileTypes.get(n);return!f&&n.searchInterface&&(f=n.searchInterface.getBindings()),e=t.preprocessIconInfo(i,e),r.$$(u).toggleClass("coveo-small",!0===i.small),void 0!=i.value&&(!0===i.small&&-1==i.value.indexOf("-small")&&(e.icon+="-small"),!1===i.small&&-1!=i.value.indexOf("-small")&&(e.icon=e.icon.replace("-small",""))),r.$$(u).addClass(e.icon),u.setAttribute("title",e.caption),t.shouldDisplayLabel(i,f)&&(u.appendChild(r.$$("span",{className:"coveo-icon-caption-overlay"},e.caption).el),r.$$(u).addClass("coveo-icon-with-caption-overlay"),r.$$(u).setAttribute("data-with-label","true")),u},t.shouldDisplayLabel=function(n){return!1!==n.withLabel},t.preprocessIconInfo=function(n,t){return null!=n.labelValue&&(t.caption=n.labelValue),null!=n.value&&(t.icon="coveo-icon "+n.value),null==t.caption&&(t.caption=""),null==t.icon&&(t.icon="coveo-icon coveo-sprites-custom"),t},t.ID="Icon",t.doExport=function(){v.exportGlobally({Icon:t})},t.options={value:u.ComponentOptions.buildStringOption(),small:u.ComponentOptions.buildBooleanOption(),withLabel:u.ComponentOptions.buildBooleanOption(),labelValue:u.ComponentOptions.buildLocalizedStringOption(),conditions:u.ComponentOptions.buildFieldConditionOption()},t}(f.Component);t.Icon=e;c.Initialization.registerAutoCreateComponent(e)},function(n,t,i){"use strict";var k=this&&this.__extends||function(){var n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])};return function(t,i){function r(){this.constructor=t}n(t,i);t.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),d=this&&this.__assign||Object.assign||function(n){for(var t,r,i=1,u=arguments.length;i<u;i++){t=arguments[i];for(r in t)Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n};Object.defineProperty(t,"__esModule",{value:!0});i(573);var r=i(0),g=i(0),nt=i(35),e=i(34),o=i(11),tt=i(99),it=i(3),v=i(175),rt=i(507),ut=i(508),ft=i(221),s=i(5),et=i(28),y=i(18),p=i(13),ot=i(6),f=i(1),l=i(4),h=i(10),a=i(127),st=i(125),ht=i(7),u=i(8),ct=i(2),lt=i(138),at=i(510),w=i(139),vt=i(19),yt=i(574),pt=i(575),wt=i(576),b=i(577),c=function(n){function t(i,r,s){var h=n.call(this,i,t.ID,s)||this,c;return h.element=i,h.options=r,h.lastSuggestions=[],h.movedOnce=!1,h.skipAutoSuggest=!1,h.options=u.ComponentOptions.initComponentOptions(i,t,r),c=h.options.enableQuerySyntax,new at.QueryboxOptionsProcessing(h).postProcess(),h.omniboxAnalytics=h.searchInterface.getOmniboxAnalytics(),f.$$(h.element).toggleClass("coveo-query-syntax-disabled",0==h.options.enableQuerySyntax),h.suggestionAddon=h.options.enableQuerySuggestAddon?new b.QuerySuggestAddon(h):new b.VoidQuerySuggestAddon,new pt.OldOmniboxAddon(h),h.createMagicBox(),h.bind.onRootElement(o.QueryEvents.newQuery,function(n){return h.handleNewQuery(n)}),h.bind.onRootElement(o.QueryEvents.buildingQuery,function(n){return h.handleBuildingQuery(n)}),h.bind.onRootElement(tt.StandaloneSearchInterfaceEvents.beforeRedirect,function(){return h.handleBeforeRedirect()}),h.bind.onRootElement(o.QueryEvents.querySuccess,function(){return h.handleQuerySuccess()}),h.bind.onQueryState(y.MODEL_EVENTS.CHANGE_ONE,p.QUERY_STATE_ATTRIBUTES.Q,function(n){return h.handleQueryStateChanged(n)}),h.isAutoSuggestion()&&h.bind.onRootElement(o.QueryEvents.duringQuery,function(n){return h.handleDuringQuery(n)}),h.bind.onComponentOptions(y.MODEL_EVENTS.CHANGE_ONE,et.COMPONENT_OPTIONS_ATTRIBUTES.SEARCH_BOX,function(n){h.options.enableQuerySyntax=null!=n.value.enableQuerySyntax?n.value.enableQuerySyntax:c;h.updateGrammar()}),h.bind.onRootElement(e.OmniboxEvents.querySuggestGetFocus,function(n){return h.handleQuerySuggestGetFocus(n)}),h}return k(t,n),t.prototype.submit=function(){var n=this;this.magicBox.clearSuggestion();this.updateQueryState();this.triggerNewQuery(!1,function(){st.logSearchBoxSubmitEvent(n.usageAnalytics)});this.magicBox.blur()},t.prototype.getText=function(){return this.magicBox.getText()},t.prototype.setText=function(n){this.magicBox.setText(n);this.updateQueryState()},t.prototype.clear=function(){this.magicBox.clear()},t.prototype.getInput=function(){return this.magicBox.element.querySelector("input")},t.prototype.getResult=function(){return this.magicBox.getResult()},t.prototype.getDisplayedResult=function(){return this.magicBox.getDisplayedResult()},t.prototype.getCursor=function(){return this.magicBox.getCursor()},t.prototype.resultAtCursor=function(n){return this.magicBox.resultAtCursor(n)},t.prototype.createGrammar=function(){var n=null;return this.options.enableQuerySyntax?(n=ut.Expressions(rt.Complete),this.options.enableFieldAddon&&new yt.FieldAddon(this),null!=this.options.fieldAlias&&(this.options.listOfFields=this.options.listOfFields||[],this.options.listOfFields=this.options.listOfFields.concat(r.keys(this.options.fieldAlias))),this.options.enableQueryExtensionAddon&&new wt.QueryExtensionAddon(this)):n={start:"Any",expressions:{Any:/.*/}},null!=this.options.grammar&&(n=this.options.grammar(n)),n},t.prototype.updateGrammar=function(){var n=this.createGrammar();this.magicBox.grammar=new v.Grammar(n.start,n.expressions);this.magicBox.setText(this.magicBox.getText())},t.prototype.createMagicBox=function(){var t=this.createGrammar(),n;this.magicBox=ft.createMagicBox(this.element,new v.Grammar(t.start,t.expressions),{inline:this.options.inline,selectableSuggestionClass:"coveo-omnibox-selectable",selectedSuggestionClass:"coveo-omnibox-selected",suggestionTimeout:this.options.omniboxTimeout});n=f.$$(this.magicBox.element).find("input");n&&f.$$(n).setAttribute("aria-label",ot.l("Search"));this.setupMagicBox()},t.prototype.setupMagicBox=function(){var n=this;this.magicBox.onmove=function(){n.isAutoSuggestion()&&(n.modifyEventTo=n.getOmniboxAnalyticsEventCause());n.movedOnce=!0};this.magicBox.onfocus=function(){n.isAutoSuggestion()&&(n.skipAutoSuggest=!0)};this.magicBox.onSuggestions=function(t){l.Utils.isEmptyString(n.getText())&&(n.omniboxAnalytics.partialQueries=[]);n.movedOnce=!1;n.lastSuggestions=t;n.isAutoSuggestion()&&!n.skipAutoSuggest&&n.searchAsYouType()};this.options.enableSearchAsYouType&&f.$$(this.element).addClass("coveo-magicbox-search-as-you-type");this.magicBox.onchange=function(){n.skipAutoSuggest=!1;var t=n.getText();void 0!=t&&""!=t?n.isAutoSuggestion()?n.movedOnce&&n.searchAsYouType(!0):n.options.enableSearchAsYouType&&n.searchAsYouType(!0):n.clear()};this.options.placeholder&&(this.magicBox.element.querySelector("input").placeholder=this.options.placeholder);this.magicBox.onsubmit=function(){return n.submit()};this.magicBox.onselect=function(t){var i=r.indexOf(n.lastSuggestions,t),u=r.compact(r.map(n.lastSuggestions,function(n){return n.text}));n.magicBox.clearSuggestion();n.updateQueryState();n.isAutoSuggestion()?n.isAutoSuggestion()&&n.movedOnce?n.handleAutoSuggestionWithKeyboard(i,u):n.isAutoSuggestion()&&!n.movedOnce&&n.handleAutoSuggestionsWithMouse(i,u):(n.usageAnalytics.cancelAllPendingEvents(),n.triggerNewQuery(!1,function(){n.usageAnalytics.logSearchEvent(n.getOmniboxAnalyticsEventCause(),n.buildCustomDataForPartialQueries(i,u))}));n.isAutoSuggestion()&&(n.omniboxAnalytics.partialQueries=[])};this.magicBox.onblur=function(){n.isAutoSuggestion()&&(n.setText(n.getQuery(!0)),n.usageAnalytics.sendAllPendingEvents())};this.magicBox.onclear=function(){n.updateQueryState();(n.options.triggerQueryOnClear||n.options.enableSearchAsYouType)&&n.triggerNewQuery(!1,function(){n.usageAnalytics.logSearchEvent(h.analyticsActionCauseList.searchboxClear,{})})};this.magicBox.ontabpress=function(){n.handleTabPress()};this.magicBox.getSuggestions=function(){return n.handleSuggestions()}},t.prototype.handleAutoSuggestionWithKeyboard=function(n,t){var i=this;this.searchAsYouTypeTimeout?(this.usageAnalytics.cancelAllPendingEvents(),clearTimeout(this.searchAsYouTypeTimeout),this.searchAsYouTypeTimeout=void 0,this.triggerNewQuery(!1,function(){i.usageAnalytics.logSearchEvent(i.getOmniboxAnalyticsEventCause(),i.buildCustomDataForPartialQueries(n,t))})):(this.modifyEventTo=this.getOmniboxAnalyticsEventCause(),this.modifyCustomDataOnPending(n,t),this.modifyQueryContentOnPending(),this.usageAnalytics.sendAllPendingEvents())},t.prototype.handleAutoSuggestionsWithMouse=function(n,t){var i=this;this.searchAsYouTypeTimeout||0!=n?(this.clearSearchAsYouType(),this.usageAnalytics.cancelAllPendingEvents(),this.triggerNewQuery(!1,function(){i.usageAnalytics.logSearchEvent(i.getOmniboxAnalyticsEventCause(),i.buildCustomDataForPartialQueries(n,t))})):(this.modifyEventTo=this.getOmniboxAnalyticsEventCause(),this.modifyCustomDataOnPending(n,t),this.modifyQueryContentOnPending(),this.usageAnalytics.sendAllPendingEvents(),this.lastQuery!=this.getText()&&this.triggerNewQuery(!1,function(){i.usageAnalytics.logSearchEvent(i.getOmniboxAnalyticsEventCause(),i.buildCustomDataForPartialQueries(n,t))}))},t.prototype.modifyCustomDataOnPending=function(n,t){var u=this.usageAnalytics.getPendingSearchEvent(),i;u instanceof a.PendingSearchAsYouTypeSearchEvent&&(i=this.buildCustomDataForPartialQueries(n,t),r.each(r.keys(i),function(n){u.modifyCustomData(n,i[n])}))},t.prototype.modifyQueryContentOnPending=function(){var n=this.usageAnalytics.getPendingSearchEvent(),t;n instanceof a.PendingSearchAsYouTypeSearchEvent&&(t=this.getQuery(this.options.enableSearchAsYouType),n.modifyQueryContent(t))},t.prototype.buildCustomDataForPartialQueries=function(n,t){return this.updateOmniboxAnalytics(t,n),this.omniboxAnalytics.buildCustomDataForPartialQueries()},t.prototype.handleQuerySuggestGetFocus=function(n){var t=n.suggestion,i=r.compact(r.map(this.lastSuggestions,function(n){return n.text})),u=this.lastSuggestions.indexOf(g.findWhere(this.lastSuggestions,{text:t}));this.updateOmniboxAnalytics(i,u)},t.prototype.updateOmniboxAnalytics=function(n,t){this.omniboxAnalytics.suggestions=n;this.omniboxAnalytics.suggestionRanking=t},t.prototype.handleSuggestions=function(){var n=this.getText(),t;return this.options.querySuggestCharacterThreshold<=n.length?(t={suggestions:[],omnibox:this},this.triggerOmniboxSuggestions(t),l.Utils.isNullOrEmptyString(n)||this.omniboxAnalytics.partialQueries.push(n),r.compact(t.suggestions)):[]},t.prototype.triggerOmniboxSuggestions=function(n){this.bind.trigger(this.element,e.OmniboxEvents.populateOmniboxSuggestions,n);f.$$(this.element).isDescendant(this.root)||this.bind.trigger(this.root,e.OmniboxEvents.populateOmniboxSuggestions,n)},t.prototype.handleBeforeRedirect=function(){this.updateQueryState()},t.prototype.handleBuildingQuery=function(n){var i=this,u,t,f,e,o;s.Assert.exists(n);s.Assert.exists(n.queryBuilder);this.updateQueryState();this.lastQuery=this.getQuery(n.searchAsYouType);u=this.lastQuery==this.magicBox.getDisplayedResult().input?this.magicBox.getDisplayedResult().clone():this.magicBox.grammar.parse(this.lastQuery).clean();t={result:u};this.options.enableQuerySyntax&&(f=t.result.findAll("FieldValueNotQuoted"),(r.each(f,function(n){return n.value='"'+n.value.replace(/"|\u00A0/g," ")+'"'}),this.options.fieldAlias)&&(e=t.result.findAll(function(n){return"FieldName"==n.expression.id&&n.isSuccess()}),r.each(e,function(n){var t=r.find(r.keys(i.options.fieldAlias),function(t){return t.toLowerCase()==n.value.toLowerCase()});null!=t&&(n.value=i.options.fieldAlias[t])})));this.triggerOmniboxPreprocessResultForQuery(t);o=t.result.toString();new w.QueryboxQueryParameters(this.options).addParameters(n.queryBuilder,o)},t.prototype.triggerOmniboxPreprocessResultForQuery=function(n){this.bind.trigger(this.element,e.OmniboxEvents.omniboxPreprocessResultForQuery,n);f.$$(this.element).isDescendant(this.root)||this.bind.trigger(this.root,e.OmniboxEvents.omniboxPreprocessResultForQuery,n)},t.prototype.handleNewQuery=function(n){s.Assert.exists(n);this.options.clearFiltersOnNewQuery&&this.clearFiltersIfNewQuery(n)},t.prototype.clearFiltersIfNewQuery=function(n){var i=n.origin,u=n.searchAsYouType,r;this.queryController.firstQuery||(r=[t.ID,"SearchButton"],i&&-1!==r.indexOf(i.type)&&(this.queryController.getLastQuery().q||"")!==this.getQuery(u)&&this.bind.trigger(this.root,nt.BreadcrumbEvents.clearBreadcrumb))},t.prototype.handleTabPress=function(){this.options.enableQuerySuggestAddon&&this.handleTabPressForSuggestions();this.handleTabPressForOldOmniboxAddon()},t.prototype.handleTabPressForSuggestions=function(){if(this.options.enableSearchAsYouType)this.setText(this.getQuery(!0));else{var n=r.compact(r.map(this.lastSuggestions,function(n){return n.text}));this.usageAnalytics.logCustomEvent(this.getOmniboxAnalyticsEventCause(),this.buildCustomDataForPartialQueries(0,n),this.element)}},t.prototype.handleTabPressForOldOmniboxAddon=function(){var t=this.lastSuggestions.filter(function(n){return n.dom}).map(function(n){return f.$$(n.dom)}),i=this.findAllElementsWithClass(t,".coveo-omnibox-selected"),n;i.length>0?f.$$(i[0]).trigger("tabSelect"):this.options.enableQuerySuggestAddon||(n=this.findAllElementsWithClass(t,".coveo-omnibox-selectable"),n.length>0&&f.$$(n[0]).trigger("tabSelect"))},t.prototype.findAllElementsWithClass=function(n,t){return n.map(function(n){return n.find(t)}).filter(function(n){return n}).reduce(function(n,t){return n.concat(t)},[])},t.prototype.triggerNewQuery=function(n,t){clearTimeout(this.searchAsYouTypeTimeout);var i=this.shouldExecuteQuery(n);this.lastQuery=this.getQuery(n);i&&t();this.queryController.executeQuery({searchAsYouType:n,logInActionsHistory:!0,cancel:!i,origin:this})},t.prototype.getQuery=function(n){var t,i;return this.lastQuery==this.magicBox.getText()?this.lastQuery:n?(t=this.magicBox.getWordCompletion(),null!=t)?t:(i=this.magicBox.getWordCompletion()||this.getFirstSuggestion(),i||(this.isAutoSuggestion()?this.lastQuery||this.magicBox.getText():this.magicBox.getText())):this.magicBox.getText()},t.prototype.getFirstSuggestion=function(){if(null==this.lastSuggestions||this.lastSuggestions.length<=0)return"";var n=r.find(this.lastSuggestions,function(n){return null!=n.text});return null==n?"":n.text},t.prototype.updateQueryState=function(){this.queryStateModel.set(p.QueryStateModel.attributesEnum.q,this.magicBox.getText())},t.prototype.handleQueryStateChanged=function(n){s.Assert.exists(n);var t=n.value;t!=this.magicBox.getText()&&this.magicBox.setText(t)},t.prototype.handleQuerySuccess=function(){this.isAutoSuggestion()||(this.omniboxAnalytics.partialQueries=[])},t.prototype.handleDuringQuery=function(n){var t=this;n.promise.then(function(){var i=t.usageAnalytics.getPendingSearchEvent();i instanceof a.PendingSearchAsYouTypeSearchEvent&&i.beforeResolve.then(function(i){n.promise.then(function(){t.modifyEventTo&&(i.modifyEventCause(t.modifyEventTo),t.modifyEventTo=null)})})})},t.prototype.searchAsYouType=function(n){var t=this;void 0===n&&(n=!1);this.clearSearchAsYouType();this.shouldExecuteQuery(!0)&&(this.searchAsYouTypeTimeout=window.setTimeout(function(){if(t.suggestionShouldTriggerQuery()||n){var i=r.map(t.lastSuggestions,function(n){return n.text}),u=r.indexOf(i,t.magicBox.getWordCompletion());t.triggerNewQuery(!0,function(){t.usageAnalytics.logSearchAsYouType(h.analyticsActionCauseList.searchboxAsYouType,t.buildCustomDataForPartialQueries(u,i))});t.clearSearchAsYouType()}},this.options.searchAsYouTypeDelay))},t.prototype.isAutoSuggestion=function(){return this.options.enableSearchAsYouType&&this.options.enableQuerySuggestAddon},t.prototype.shouldExecuteQuery=function(n){var t=this.getQuery(n);return!1===this.searchInterface.options.allowQueriesWithoutKeywords?this.lastQuery!=t&&l.Utils.isNonEmptyString(t):this.lastQuery!=t&&null!=t},t.prototype.suggestionShouldTriggerQuery=function(n){if(void 0===n&&(n=this.lastSuggestions),this.shouldExecuteQuery(!0)&&n&&n[0]){var t=n[0];if(t&&void 0!=t.executableConfidence)return t.executableConfidence>=.8;if(t.text&&0==t.text.indexOf(this.magicBox.getText()))return!0}return!1},t.prototype.clearSearchAsYouType=function(){clearTimeout(this.searchAsYouTypeTimeout);this.searchAsYouTypeTimeout=void 0},t.prototype.getOmniboxAnalyticsEventCause=function(){return this.searchInterface instanceof vt.StandaloneSearchInterface?h.analyticsActionCauseList.omniboxFromLink:h.analyticsActionCauseList.omniboxAnalytics},t.ID="Omnibox",t.doExport=function(){it.exportGlobally({Omnibox:t,QueryboxQueryParameters:w.QueryboxQueryParameters})},t.options={inline:u.ComponentOptions.buildBooleanOption({defaultValue:!1}),enableSearchAsYouType:u.ComponentOptions.buildBooleanOption({defaultValue:!1,section:"Advanced Options"}),searchAsYouTypeDelay:u.ComponentOptions.buildNumberOption({defaultValue:2e3,min:0,depend:"enableSearchAsYouType",section:"Advanced Options"}),enableFieldAddon:u.ComponentOptions.buildBooleanOption({defaultValue:!1,depend:"enableQuerySyntax",postProcessing:function(n,t){return n&&(t.enableQuerySyntax=!0),n},section:"Advanced Options"}),enableSimpleFieldAddon:u.ComponentOptions.buildBooleanOption({defaultValue:!1,depend:"enableFieldAddon"}),listOfFields:u.ComponentOptions.buildFieldsOption({depend:"enableFieldAddon"}),enableQuerySuggestAddon:u.ComponentOptions.buildBooleanOption({defaultValue:!0,alias:["enableTopQueryAddon","enableRevealQuerySuggestAddon"]}),enableQueryExtensionAddon:u.ComponentOptions.buildBooleanOption({defaultValue:!1,depend:"enableQuerySyntax",postProcessing:function(n,t){return n&&(t.enableQuerySyntax=!0),n},section:"Advanced Options"}),placeholder:u.ComponentOptions.buildLocalizedStringOption(),omniboxTimeout:u.ComponentOptions.buildNumberOption({defaultValue:2e3,min:0}),enableQuerySyntax:u.ComponentOptions.buildBooleanOption({defaultValue:!1,section:"Advanced Options"}),numberOfSuggestions:u.ComponentOptions.buildNumberOption({defaultValue:5,min:1}),querySuggestCharacterThreshold:u.ComponentOptions.buildNumberOption({defaultValue:0,min:0}),clearFiltersOnNewQuery:u.ComponentOptions.buildBooleanOption({defaultValue:!1})},t}(ht.Component);t.Omnibox=c;c.options=d({},c.options,lt.Querybox.options);ct.Initialization.registerAutoCreateComponent(c)},function(n,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var u=i(1),r=i(0),e=i(6);i(578);var f=i(4),o=i(3),s=function(){function n(n,t,i){void 0===n&&(n=function(){});this.onChange=n;this.options=t;this.label=i;this.buildContent()}return n.doExport=function(){o.exportGlobally({MultiSelect:n})},n.prototype.build=function(){return this.element},n.prototype.getElement=function(){return this.element},n.prototype.getValue=function(){return r.chain(this.element.options).toArray().filter(function(n){return n.selected}).map(function(n){return n.value}).value()},n.prototype.getUnselectedValues=function(){return r.chain(this.element.options).toArray().filter(function(n){return!n.selected}).map(function(n){return n.value}).value()},n.prototype.setValue=function(n){var o=this.getValue(),e=r.partition(r.toArray(this.element.options),function(n){return r.contains(o,n.value)}),t=r.partition(r.toArray(this.element.options),function(t){return r.contains(n,t.value)}),i;r.each(t[0],function(n){return n.selected=!0});r.each(t[1],function(n){return n.selected=!1});i=!1;f.Utils.arrayEqual(e[0],t[0],!1)||(i=!0);f.Utils.arrayEqual(e[1],t[1],!1)||(i=!0);i&&u.$$(this.element).trigger("change")},n.prototype.reset=function(){var n=this.getValue();this.element.selectedIndex=-1;f.Utils.isEmptyArray(n)||u.$$(this.element).trigger("change")},n.prototype.buildContent=function(){var t=this,n,i;this.element=u.$$("select",{className:"coveo-multi-select",multiple:"",size:this.options.length.toString()}).el;n=u.$$("optgroup",{className:"coveo-list-group",label:this.label});i=r.map(this.options,function(n){return u.$$("option",{value:n,className:"coveo-list-item"},e.l(n))});r.each(i,function(t){return n.append(t.el)});this.element.appendChild(n.el);u.$$(this.element).on("change",function(){return t.onChange(t)})},n}();t.MultiSelect=s},function(n,t,i){"use strict";var o=this&&this.__extends||function(){var n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])};return function(t,i){function r(){this.constructor=t}n(t,i);t.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var s=i(3),h=i(6),c=i(15),r=i(1),u=i(16),f=i(12),l=i(4),a=i(10),v=i(7),y=i(2),p=i(13),e=function(n){function t(i,e,o){var s=n.call(this,i,t.ID,o)||this,a,v;return(s.element=i,s.options=e,(new c.AccessibleButton).withElement(i).withOwner(s.bind).withLabel(h.l("Search")).withSelectAction(function(){return s.handleClick()}).build(),""==l.Utils.trim(r.$$(s.element).text()))&&(a=r.$$("span",{className:"coveo-search-button"},f.SVGIcons.icons.search).el,u.SVGDom.addClassToSVGInContainer(a,"coveo-search-button-svg"),v=r.$$("span",{className:"coveo-search-button-loading"},f.SVGIcons.icons.loading).el,u.SVGDom.addClassToSVGInContainer(v,"coveo-search-button-loading-svg"),i.appendChild(a),i.appendChild(v)),s}return o(t,n),t.prototype.click=function(){this.handleClick()},t.prototype.handleClick=function(){this.logger.debug("Performing query following button click");this.updateQueryStateModelWithSearchboxQuery();this.usageAnalytics.logSearchEvent(a.analyticsActionCauseList.searchboxSubmit,{});this.queryController.executeQuery({origin:this,logInActionsHistory:!0})},t.prototype.updateQueryStateModelWithSearchboxQuery=function(){var n=this.options&&this.options.searchbox;n&&this.queryStateModel.set(p.QueryStateModel.attributesEnum.q,n.getText())},t.ID="SearchButton",t.doExport=function(){s.exportGlobally({SearchButton:t})},t.options={},t}(v.Component);t.SearchButton=e;y.Initialization.registerAutoCreateComponent(e)},function(n,t,i){"use strict";var w=this&&this.__extends||function(){var n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])};return function(t,i){function r(){this.constructor=t}n(t,i);t.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});i(579);var b=i(3),c=i(11),a=i(5),k=i(18),f=i(13),r=i(1),v=i(16),y=i(12),o=i(4),d=i(125),g=i(7),l=i(8),nt=i(2),u=i(506),s=i(15),e=i(6),h=i(0),p=function(n){function t(i,r,u){var e=n.call(this,i,t.ID,u)||this;return e.element=i,e.options=r,e.options=l.ComponentOptions.initComponentOptions(i,t,r),a.Assert.isLargerOrEqualsThan(1,e.options.sortCriteria.length),e.bind.onQueryState(k.MODEL_EVENTS.CHANGE_ONE,f.QUERY_STATE_ATTRIBUTES.SORT,function(){return e.handleQueryStateChanged()}),e.bind.onRootElement(c.QueryEvents.querySuccess,function(n){return e.handleQuerySuccess(n)}),e.bind.onRootElement(c.QueryEvents.buildingQuery,function(n){return e.handleBuildingQuery(n)}),e.bind.onRootElement(c.QueryEvents.queryError,function(n){return e.handleQueryError(n)}),e.ensureDom(),e}return w(t,n),t.prototype.createDom=function(){var i=this,n=r.$$(this.element),t;n.on("click",function(){return i.selectAndExecuteQuery()});t=n.text();n.empty();this.findOrCreateRadioGroup();this.createSortButton(t);this.isToggle()&&this.createDirectionButton();this.update()},t.prototype.select=function(n){n?(this.currentCriteria=h.find(this.options.sortCriteria,function(t){return t.direction==n}),this.updateQueryStateModel()):o.Utils.exists(this.currentCriteria)?this.selectNextCriteria():this.selectFirstCriteria()},t.prototype.selectAndExecuteQuery=function(){var n=this.currentCriteria;this.select();n!=this.currentCriteria&&this.executeSearchQuery()},t.prototype.enable=function(){r.$$(this.element).removeClass("coveo-tab-disabled");this.update();n.prototype.enable.call(this)},t.prototype.disable=function(){r.$$(this.element).addClass("coveo-tab-disabled");n.prototype.disable.call(this)},t.prototype.getCurrentCriteria=function(){return this.currentCriteria},t.prototype.match=function(n){return h.any(this.options.sortCriteria,function(t){return n==t.toString()})},t.prototype.findOrCreateRadioGroup=function(){this.radioGroup=this.findRadioGroup();this.radioGroup||(this.element.setAttribute("role","radiogroup"),this.radioGroup=this.element)},t.prototype.createSortButton=function(n){var t=this;this.sortButton=r.$$("span").el;this.sortButton.innerText=this.options.caption||n;(new s.AccessibleButton).withElement(this.sortButton).withEnterKeyboardAction(function(){return t.selectAndExecuteQuery()}).withArrowsAction(function(n,i){return t.onArrowPressed(n,i)}).withLabel(this.isToggle()?this.getDirectionalLabel(this.initialDirection):this.getOmnidirectionalLabel()).withRole("radio").build();this.element.appendChild(this.sortButton)},t.prototype.createDirectionButton=function(){var n=this;this.directionButton=r.$$.apply(void 0,["span",{className:"coveo-icon"}].concat(this.createIcons())).el;(new s.AccessibleButton).withElement(this.directionButton).withSelectAction(function(t){t.stopPropagation();n.selectNextCriteriaAndExecuteQuery()}).withArrowsAction(function(t,i){return n.onArrowPressed(t,i)}).withLabel(this.getDirectionalLabel(this.initialDirection===u.VALID_DIRECTION.DESCENDING?u.VALID_DIRECTION.ASCENDING:u.VALID_DIRECTION.DESCENDING)).withRole("radio").build();this.element.appendChild(this.directionButton)},t.prototype.onArrowPressed=function(n,t){this.selectNextRadioButton(n===s.ArrowDirection.RIGHT||n===s.ArrowDirection.DOWN?1:-1);t.stopPropagation()},t.prototype.createIcons=function(){var t=r.$$("span",{className:"coveo-sort-icon-ascending"},y.SVGIcons.icons.arrowUp),n;return v.SVGDom.addClassToSVGInContainer(t.el,"coveo-sort-icon-ascending-svg"),n=r.$$("span",{className:"coveo-sort-icon-descending"},y.SVGIcons.icons.arrowDown),v.SVGDom.addClassToSVGInContainer(n.el,"coveo-sort-icon-descending-svg"),[t,n]},t.prototype.findRadioGroup=function(n){return void 0===n&&(n=this.element),n&&n!==document.body?"radiogroup"===n.getAttribute("role")?n:this.findRadioGroup(n.parentElement):null},t.prototype.selectNextRadioButton=function(n){var f,t,i,u;void 0===n&&(n=1);t=r.$$(this.radioGroup).findAll('[role="radio"]');i=h.findIndex(t,function(n){return"true"===n.getAttribute("aria-checked")});f=-1!==i?(i+n+t.length)%t.length:n>=0?0:t.length-1;u=t[f];u.focus();u.click()},t.prototype.executeSearchQuery=function(){var n=this;this.queryController.deferExecuteQuery({beforeExecuteQuery:function(){return d.logSortEvent(n.usageAnalytics,n.currentCriteria.sort+n.currentCriteria.direction)}})},t.prototype.selectFirstCriteria=function(){this.currentCriteria=this.options.sortCriteria[0];this.updateQueryStateModel()},t.prototype.selectNextCriteria=function(){var n=this.currentCriteria?this.options.sortCriteria.indexOf(this.currentCriteria):0;this.currentCriteria=this.options.sortCriteria[(n+1)%this.options.sortCriteria.length];this.updateQueryStateModel()},t.prototype.selectNextCriteriaAndExecuteQuery=function(){var n=this.currentCriteria;this.selectNextCriteria();n!=this.currentCriteria&&this.executeSearchQuery()},t.prototype.handleQueryStateChanged=function(){this.update()},t.prototype.update=function(){var n=this.queryStateModel.get(f.QueryStateModel.attributesEnum.sort),t;o.Utils.isNonEmptyString(n)?(t=u.SortCriteria.parse(n),this.currentCriteria=h.find(this.options.sortCriteria,function(n){return t.equals(n)})):this.currentCriteria=null;this.updateAppearance();this.updateAccessibilityProperties()},Object.defineProperty(t.prototype,"captionIsDefined",{get:function(){return o.Utils.isNonEmptyString(this.options.caption)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"currentDirection",{get:function(){return this.currentCriteria?this.currentCriteria.direction:this.initialDirection},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"initialDirection",{get:function(){return this.options.sortCriteria[0].direction},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"displayedSortText",{get:function(){return this.captionIsDefined?this.options.caption:this.element.textContent},enumerable:!0,configurable:!0}),t.prototype.handleBuildingQuery=function(n){a.Assert.exists(n);(this.queryStateModel.get(f.QueryStateModel.attributesEnum.sort)==f.QueryStateModel.defaultAttributes.sort||this.isSelected())&&this.currentCriteria&&this.currentCriteria.putInQueryBuilder(n.queryBuilder)},t.prototype.handleQuerySuccess=function(n){0==n.results.results.length?r.$$(this.element).addClass("coveo-sort-hidden"):r.$$(this.element).removeClass("coveo-sort-hidden")},t.prototype.handleQueryError=function(){r.$$(this.element).addClass("coveo-sort-hidden")},t.prototype.isToggle=function(){return this.options.sortCriteria.length>1},t.prototype.isSelected=function(){return o.Utils.exists(this.currentCriteria)},t.prototype.updateAppearance=function(){r.$$(this.element).toggleClass("coveo-selected",this.isSelected());this.isToggle()&&(r.$$(this.element).removeClass("coveo-ascending"),r.$$(this.element).removeClass("coveo-descending"),this.isSelected()&&r.$$(this.element).addClass("ascending"===this.currentDirection?"coveo-ascending":"coveo-descending"))},t.prototype.updateAccessibilityProperties=function(){this.sortButton.setAttribute("aria-controls",this.resultListsIds);var n=this.currentDirection===this.initialDirection;this.sortButton.setAttribute("aria-checked",""+(this.isSelected()&&n));this.isToggle()&&(this.directionButton.setAttribute("aria-controls",this.resultListsIds),this.directionButton.setAttribute("aria-checked",""+(this.isSelected()&&!n)))},Object.defineProperty(t.prototype,"resultListsIds",{get:function(){return this.searchInterface.getComponents("ResultList").map(function(n){return n.element.id}).join(" ")},enumerable:!0,configurable:!0}),t.prototype.getDirectionalLabel=function(n){var t=e.l(this.displayedSortText);return n===u.VALID_DIRECTION.DESCENDING?e.l("SortResultsByDescending",t):e.l("SortResultsByAscending",t)},t.prototype.getOmnidirectionalLabel=function(){var n=e.l(this.displayedSortText);return e.l("SortResultsBy",n)},t.prototype.updateQueryStateModel=function(){this.queryStateModel.set(f.QueryStateModel.attributesEnum.sort,this.currentCriteria.toString())},t.ID="Sort",t.doExport=function(){b.exportGlobally({Sort:t,SortCriteria:u.SortCriteria})},t.options={sortCriteria:l.ComponentOptions.buildCustomListOption(function(n){return n.map(function(n){return"string"==typeof n?new u.SortCriteria(n):n})},{required:!0}),caption:l.ComponentOptions.buildLocalizedStringOption({required:!0})},t}(g.Component);t.Sort=p;nt.Initialization.registerAutoCreateComponent(p)},function(n,t,i){"use strict";var e=this&&this.__extends||function(){var n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])};return function(t,i){function r(){this.constructor=t}n(t,i);t.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var u=i(20),o=i(3),r=i(8),s=i(124),f=function(n){function t(i,u,f,e){var o=n.call(this,i,t.ID,f)||this,h;return o.element=i,o.options=u,o.result=e,o.options=r.ComponentOptions.initComponentOptions(i,t,u),h={field:o.options.field,helper:"image",htmlValue:!0,helperOptions:{height:o.options.height,width:o.options.width,alt:e.title,srcTemplate:o.options.srcTemplate}},new s.FieldValue(i,h,f,e),o}return e(t,n),t.ID="ImageFieldValue",t.doExport=function(){o.exportGlobally({ImageFieldValue:t})},t.options={field:r.ComponentOptions.buildFieldOption({required:!0}),width:r.ComponentOptions.buildNumberOption(),height:r.ComponentOptions.buildNumberOption(),srcTemplate:r.ComponentOptions.buildStringOption()},t}(u.Component);t.ImageFieldValue=f;u.Initialization.registerAutoCreateComponent(f)},function(n,t,i){"use strict";var r,f,u,e;Object.defineProperty(t,"__esModule",{value:!0});f=i(1);!function(n){n[n.TOP=0]="TOP";n[n.MIDDLE=1]="MIDDLE";n[n.BOTTOM=2]="BOTTOM";n[n.INNERTOP=3]="INNERTOP";n[n.INNERBOTTOM=4]="INNERBOTTOM"}(r=t.PopupVerticalAlignment||(t.PopupVerticalAlignment={}));!function(n){n[n.LEFT=0]="LEFT";n[n.CENTER=1]="CENTER";n[n.RIGHT=2]="RIGHT";n[n.INNERLEFT=3]="INNERLEFT";n[n.INNERRIGHT=4]="INNERRIGHT"}(u=t.PopupHorizontalAlignment||(t.PopupHorizontalAlignment={}));e=function(){function n(){}return n.positionPopup=function(t,i,r,u,e,o){var l,s,h,c,a,v;void 0===o&&(o=0);t.style.position="absolute";e&&f.$$(e).append(t);u.verticalOffset=u.verticalOffset?u.verticalOffset:0;u.horizontalOffset=u.horizontalOffset?u.horizontalOffset:0;l=f.$$(i).offset();n.basicVerticalAlignment(l,t,i,u);n.basicHorizontalAlignment(l,t,i,u);n.finalAdjustement(f.$$(t).offset(),l,t,u);s=n.getBoundary(t);h=n.getBoundary(r);o<2&&(c=n.checkForOutOfBoundary(s,h),"ok"!=c.horizontal&&!0===u.horizontalClip&&(a=t.offsetWidth,s.left<h.left&&(a-=h.left-s.left),s.right>h.right&&(a-=s.right-h.right),t.style.width=a+"px",c.horizontal="ok"),("ok"!=c.vertical||"ok"!=c.horizontal)&&(v=n.alignInsideBoundary(u,c),n.positionPopup(t,i,r,v,e,o+1)))},n.finalAdjustement=function(n,t,i,r){var u=f.$$(i).position();i.style.top=u.top+r.verticalOffset-(n.top-t.top)+"px";i.style.left=u.left+r.horizontalOffset-(n.left-t.left)+"px"},n.basicVerticalAlignment=function(n,t,i,u){switch(u.vertical){case r.TOP:n.top-=t.offsetHeight;break;case r.BOTTOM:n.top+=i.offsetHeight;break;case r.MIDDLE:n.top-=t.offsetHeight/3;break;case r.INNERBOTTOM:n.top-=t.offsetHeight-i.offsetHeight}},n.basicHorizontalAlignment=function(t,i,r,f){switch(f.horizontal){case u.LEFT:t.left-=i.offsetWidth;break;case u.RIGHT:t.left+=r.offsetWidth;break;case u.CENTER:t.left+=n.offSetToAlignCenter(i,r);break;case u.INNERRIGHT:t.left-=i.offsetWidth-r.offsetWidth}},n.alignInsideBoundary=function(n,t){var i=n;return"left"==t.horizontal&&(i.horizontal=u.RIGHT),"right"==t.horizontal&&(i.horizontal=u.LEFT),"top"==t.vertical&&(i.vertical=r.BOTTOM),"bottom"==t.vertical&&(i.vertical=r.TOP),i},n.offSetToAlignCenter=function(n,t){return(t.offsetWidth-n.offsetWidth)/2},n.getBoundary=function(n){var i,t=f.$$(n).offset();return i="body"==n.tagName.toLowerCase()?Math.max(n.scrollHeight,n.offsetHeight):"html"==n.tagName.toLowerCase()?Math.max(n.clientHeight,n.scrollHeight,n.offsetHeight):n.offsetHeight,{top:t.top,left:t.left,right:t.left+n.offsetWidth,bottom:t.top+i}},n.checkForOutOfBoundary=function(n,t){var i={vertical:"ok",horizontal:"ok"};return n.top<t.top&&(i.vertical="top"),n.bottom>t.bottom&&(i.vertical="bottom"),n.left<t.left&&(i.horizontal="left"),n.right>t.right&&(i.horizontal="right"),i},n}();t.PopupUtils=e},function(n,t,i){"use strict";var w=this&&this.__extends||function(){var n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])};return function(t,i){function r(){this.constructor=t}n(t,i);t.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),l=this&&this.__assign||Object.assign||function(n){for(var t,r,i=1,u=arguments.length;i<u;i++){t=arguments[i];for(r in t)Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n};Object.defineProperty(t,"__esModule",{value:!0});i(614);var o=i(0),b=i(615),s=i(35),k=i(17),f=i(11),d=i(86),h=i(142),g=i(3),a=i(5),v=i(66),nt=i(18),tt=i(13),it=i(6),rt=i(48),u=i(1),ut=i(16),ft=i(12),e=i(4),c=i(10),et=i(7),r=i(8),ot=i(2),st=i(484),y=i(616),ht=i(130),ct=i(123),lt=i(84),at=i(618),p=function(n){function t(i,u,f,e){var o=n.call(this,i,t.ID,f)||this;return o.element=i,o.options=u,o.slider=e,o.isSimpleSliderConfig=!1,o.isFieldValueCompatible=!1,o.isEmpty=!1,o.options=r.ComponentOptions.initComponentOptions(i,t,u),o.isSimpleSliderConfig=null!=o.options.start&&null!=o.options.end,at.ResponsiveFacetSlider.init(o.root,o,o.options),null==o.options.excludeOuterBounds&&(o.options.excludeOuterBounds=!1),o.normalizeStartAndEndOptionsValues(),o.facetQueryController=new b.FacetSliderQueryController(o),o.bindQueryStateEvents(),o.bindQueryEvents(),o.bindResizeEvents(),o.bindBreadcrumbEvents(),o.bind.onRootElement(d.SearchAlertsEvents.searchAlertsPopulateMessage,function(n){return o.handlePopulateSearchAlerts(n)}),o}return w(t,n),t.prototype.isCurrentlyDisplayed=function(){return!!u.$$(this.element).isVisible()&&!u.$$(this.element).hasClass("coveo-disabled-empty")},t.prototype.createDom=function(){this.facetHeader=new st.FacetHeader({field:this.options.field,facetElement:this.element,title:this.options.title,enableClearElement:!0,enableCollapseElement:!0,facetSlider:this});this.element.appendChild(this.facetHeader.build())},t.prototype.reset=function(){this.slider&&(this.slider.initializeState(),this.updateQueryState(),this.updateAppearanceDependingOnState())},t.prototype.getSelectedValues=function(){return void 0!=this.startOfSlider&&void 0!=this.endOfSlider?[this.startOfSlider,this.endOfSlider]:[void 0,void 0]},t.prototype.setSelectedValues=function(n){this.setupSliderIfNeeded(void 0);this.startOfSlider=n[0];this.endOfSlider=n[1];this.slider.setValues([this.startOfSlider,this.endOfSlider]);this.updateAppearanceDependingOnState()},t.prototype.isActive=function(){return!(isNaN(this.startOfSlider)||isNaN(this.endOfSlider)||isNaN(this.initialStartOfSlider)||isNaN(this.initialEndOfSlider)||this.startOfSlider==this.initialStartOfSlider&&this.endOfSlider==this.initialEndOfSlider)},t.prototype.getSliderBoundaryForQuery=function(){var n=!1;return this.slider?this.slider&&this.isActive()&&(n=!0):n=!0,n?this.generateBoundary():void 0},t.prototype.drawDelayedGraphData=function(){null==this.delayedGraphData||this.isEmpty||this.slider.drawGraph(this.delayedGraphData);this.delayedGraphData=null},t.prototype.hasAGraph=function(){return void 0!=this.options.graph},t.prototype.normalizeStartAndEndOptionsValues=function(){this.options.start&&(this.options.start=this.options.dateField?new Date(this.options.start.replace(/-/g,"/")).getTime():Number(this.options.start));this.options.end&&(this.options.end=this.options.dateField?new Date(this.options.end.replace(/-/g,"/")).getTime():Number(this.options.end))},t.prototype.bindQueryEvents=function(){var n=this;this.bind.onRootElement(f.QueryEvents.newQuery,function(){return n.handleNewQuery()});this.bind.onRootElement(f.QueryEvents.noResults,function(){return n.handleNoresults()});this.bind.onRootElement(f.QueryEvents.deferredQuerySuccess,function(t){return n.handleDeferredQuerySuccess(t)});this.bind.onRootElement(f.QueryEvents.buildingQuery,function(t){return n.handleBuildingQuery(t)});this.bind.onRootElement(f.QueryEvents.doneBuildingQuery,function(t){return n.handleDoneBuildingQuery(t)})},t.prototype.bindResizeEvents=function(){var n=this;this.onResize=o.debounce(function(){ht.ResponsiveComponentsUtils.shouldDrawFacetSlider(u.$$(n.root),u.$$(n.element))&&n.slider&&!n.isEmpty&&(n.delayedGraphData?n.drawDelayedGraphData():n.slider.drawGraph());n.slider&&n.slider.onMoving()},250);window.addEventListener("resize",this.onResize);this.bind.onRootElement(ct.ResponsiveDropdownEvent.OPEN,this.onResize);this.bind.onRootElement("onPopupOpen",this.onResize);u.$$(this.root).on(k.InitializationEvents.nuke,function(){return n.handleNuke()})},t.prototype.bindBreadcrumbEvents=function(){var n=this;this.bind.onRootElement(s.BreadcrumbEvents.clearBreadcrumb,function(){return n.reset()});this.bind.onRootElement(s.BreadcrumbEvents.populateBreadcrumb,function(t){return n.handlePopulateBreadcrumb(t)})},t.prototype.handleNoresults=function(){this.isEmpty=!0;this.updateAppearanceDependingOnState()},t.prototype.handleNewQuery=function(){this.isEmpty=!1},t.prototype.handleRangeQueryStateChanged=function(n){this.setupSliderIfNeeded(n);this.startOfSlider=void 0==n.value[0]?this.startOfSlider:n.value[0];this.endOfSlider=void 0==n.value[1]?this.endOfSlider:n.value[1];this.setSelectedValues([this.startOfSlider,this.endOfSlider])},t.prototype.handlePopulateBreadcrumb=function(n){var t=this,i=function(){t.isActive()&&n.breadcrumbs.push({element:t.buildBreadcrumbFacetSlider(n.headingLevel)})};this.slider?i():u.$$(this.root).one(f.QueryEvents.deferredQuerySuccess,function(){i();u.$$(t.root).trigger(s.BreadcrumbEvents.redrawBreadcrumb)})},t.prototype.handlePopulateSearchAlerts=function(n){this.isActive()&&n.text.push(u.$$(this.buildBreadcrumbFacetSlider()).text())},t.prototype.buildBreadcrumbFacetSlider=function(n){var t=this,r=u.$$("div",{className:"coveo-facet-slider-breadcrumb"}).el,s=u.$$(rt.getHeadingTag(n,"span"),{className:"coveo-facet-slider-breadcrumb-title"}),f,i,e,o;return s.text(this.options.title+": "),r.appendChild(s.el),f=u.$$("span",{className:"coveo-facet-slider-breadcrumb-values"}),r.appendChild(f.el),i=u.$$("span",{className:"coveo-facet-slider-breadcrumb-value"}),e=u.$$("span",{className:"coveo-facet-slider-breadcrumb-caption"}),e.text(this.slider.getCaption()),i.append(e.el),f.el.appendChild(i.el),o=u.$$("span",{className:"coveo-facet-slider-breadcrumb-clear"},ft.SVGIcons.icons.mainClear),ut.SVGDom.addClassToSVGInContainer(o.el,"coveo-facet-slider-clear-svg"),i.el.appendChild(o.el),i.on("click",function(){t.reset();t.usageAnalytics.logSearchEvent(c.analyticsActionCauseList.facetClearAll,{facetId:t.options.id,facetField:t.options.field.toString(),facetTitle:t.options.title});t.queryController.executeQuery()}),r},t.prototype.initSlider=function(){this.buildSlider();this.slider.initializeState([this.startOfSlider,this.endOfSlider]);this.updateAppearanceDependingOnState()},t.prototype.bindQueryStateEvents=function(){var n=this,t;this.rangeQueryStateAttribute=tt.QueryStateModel.getFacetId(this.options.id)+":range";this.queryStateModel.registerNewAttribute(this.rangeQueryStateAttribute,[void 0,void 0]);t=this.queryStateModel.getEventName(nt.Model.eventTypes.changeOne+this.rangeQueryStateAttribute);this.bind.onRootElement(t,function(t){n.slider?n.handleRangeQueryStateChanged(t):n.setRangeStateSliderStillNotCreated(t)})},t.prototype.setRangeStateSliderStillNotCreated=function(n){this.rangeFromUrlState=this.copyValues(n.value)},t.prototype.buildSlider=function(){var t=this,i=u.$$("div",{className:"coveo-slider-container"}).el,n;this.hasAGraph()&&u.$$(i).addClass("coveo-with-graph");n=u.$$("div").el;this.slider=this.slider?this.slider:new y.Slider(n,l({},this.options,{dateField:this.options.dateField}),this.root);u.$$(n).on(h.SliderEvents.endSlide,function(n,i){t.handleEndSlide(i)});u.$$(n).on(h.SliderEvents.duringSlide,function(n,i){t.handleDuringSlide(i)});this.hasAGraph()&&u.$$(n).on(h.SliderEvents.graphValueSelected,function(n,i){t.handleGraphValueSelected(i)});i.appendChild(n);this.element.appendChild(i);this.updateAppearanceDependingOnState()},t.prototype.handleBuildingQuery=function(n){var i,t;a.Assert.exists(n);a.Assert.exists(n.queryBuilder);i=this.getSliderBoundaryForQuery();void 0!=i&&(this.facetQueryController.prepareForNewQuery(),t=this.facetQueryController.computeOurFilterExpression(i),e.Utils.isNonEmptyString(t)&&(this.logger.trace("Putting filter in query",t),n.queryBuilder.advancedExpression.add(t)))},t.prototype.handleDoneBuildingQuery=function(n){var t=n.queryBuilder;this.facetQueryController.putGroupByIntoQueryBuilder(t)},t.prototype.handleDeferredQuerySuccess=function(n){this.ensureDom();this.setupSliderIfNeeded(n);var t=n.results.groupByResults[this.facetQueryController.lastGroupByRequestIndex];this.isEmpty=this.isFacetEmpty(t,n);this.updateAppearanceDependingOnState();this.hasAGraph()&&this.renderToSliderGraph(n)},t.prototype.handleEndSlide=function(n){var t=n.slider.getValues();this.startOfSlider=t[0];this.endOfSlider=t[1];this.updateQueryState(t)&&(this.updateAppearanceDependingOnState(),this.usageAnalytics.logSearchEvent(c.analyticsActionCauseList.facetRangeSlider,{facetId:this.options.id,facetField:this.options.field.toString(),facetRangeStart:this.startOfSlider.toString(),facetRangeEnd:this.endOfSlider.toString()}),this.queryController.executeQuery())},t.prototype.handleDuringSlide=function(n){var t=n.slider.getValues();this.startOfSlider=t[0];this.endOfSlider=t[1];this.slider.setValues([this.startOfSlider,this.endOfSlider]);this.updateAppearanceDependingOnState(!0)},t.prototype.handleGraphValueSelected=function(n){(this.options.rangeSlider&&this.startOfSlider!=n.start||this.endOfSlider!=n.end)&&(this.options.rangeSlider&&(this.startOfSlider=n.start),this.endOfSlider=n.end,this.slider.setValues([this.startOfSlider,this.endOfSlider]),this.updateQueryState(),this.usageAnalytics.logSearchEvent(c.analyticsActionCauseList.facetRangeGraph,{facetId:this.options.id,facetField:this.options.field.toString(),facetRangeStart:this.startOfSlider.toString(),facetRangeEnd:this.endOfSlider.toString()}),this.queryController.executeQuery())},t.prototype.updateQueryState=function(n,t){void 0===n&&(n=this.slider.getValues());void 0===t&&(t=!1);var i=this.copyValues(n),u=n[0]+0,f=n[1]+0,r=this.queryStateModel.get(this.rangeQueryStateAttribute);return(null==r||i[0]!=r[0]||i[1]!=r[1])&&(i[0]=u,i[1]=f,this.queryStateModel.set(this.rangeQueryStateAttribute,i,{silent:t}),!0)},t.prototype.copyValues=function(n){var t=[];return t[0]=Number(n[0])+0,t[1]=Number(n[1])+0,t},t.prototype.renderToSliderGraph=function(n){var t,i=this,r=n.results.groupByResults[this.facetQueryController.graphGroupByQueriesIndex],u=0;r&&(t=o.map(r.values,function(n){u+=n.numberOfResults;var t=n.value.split("..")[0],r=n.value.split("..")[1];return i.options.dateField?(t=new Date(t.split("@")[0]).getTime(),r=new Date(r.split("@")[0]).getTime()):(t=Number(t),r=Number(r)),{start:t,y:n.numberOfResults,end:r,isDate:i.options.dateField}}));0==u&&(this.isEmpty=!0,this.updateAppearanceDependingOnState());void 0==t||this.isDropdownHidden()?void 0!=t&&this.isDropdownHidden()&&(this.delayedGraphData=t):v.Defer.defer(function(){return i.slider.drawGraph(t)})},t.prototype.isDropdownHidden=function(){var n=this.root.querySelector(".coveo-facet-column"),t;return n?"none"==u.$$(n).css("display"):u.$$(this.root).hasClass("CoveoRecommendation")?(t=u.$$(this.root).parents(".coveo-recommendation-column")[0]||this.root,"none"==u.$$(t).css("display")):!1},t.prototype.generateBoundary=function(){if(this.slider){var n=this.generateBoundaryFromSlider();return void 0==n[0]&&void 0==n[1]?this.generateBoundaryFromState():n}return this.generateBoundaryFromState()},t.prototype.generateBoundaryFromSlider=function(){var n,t;return void 0!=this.startOfSlider&&(n=this.startOfSlider),void 0!=this.endOfSlider&&(t=this.endOfSlider),[n,t]},t.prototype.generateBoundaryFromState=function(){var n,t,r=this.queryStateModel.get(this.rangeQueryStateAttribute)[0],i;return void 0!=r&&(n=r),i=this.queryStateModel.get(this.rangeQueryStateAttribute)[1],void 0!=i&&(t=i),n!=this.queryStateModel.getDefault(this.rangeQueryStateAttribute)[0]||t!=this.queryStateModel.getDefault(this.rangeQueryStateAttribute)[1]?[n,t]:[void 0,void 0]},t.prototype.setupSliderIfNeeded=function(n){(this.ensureDom(),e.Utils.isNullOrUndefined(this.slider))&&(this.alreadySetBoundary()||this.trySetSliderBoundaryFromOptions(),this.alreadySetBoundary()||void 0==n||this.trySetSliderBoundaryFromQueryResult(n),this.trySetSliderBoundaryFromState(),this.setupSliderStateVariables(),this.verifySetup()?this.logger.warn("Unable to initialize slider with current values",this):(this.initSlider(),this.updateQueryState()))},t.prototype.verifySetup=function(){var n=0;return n+=void 0==this.initialStartOfSlider?1:0,n+=isNaN(this.initialStartOfSlider)?1:0,n+=void 0==this.initialEndOfSlider?1:0,n+(isNaN(this.initialEndOfSlider)?1:0)},t.prototype.setupSliderStateVariables=function(){isNaN(this.initialStartOfSlider)||isNaN(this.initialEndOfSlider)?this.logger.warn("Cannnot initialize slider with those values : start: "+this.initialStartOfSlider+" end: "+this.initialEndOfSlider):(this.initialStartOfSlider=Number(this.initialStartOfSlider),this.initialEndOfSlider=Number(this.initialEndOfSlider),this.startOfSlider=void 0!=this.startOfSlider?Number(this.startOfSlider):this.initialStartOfSlider,this.endOfSlider=void 0!=this.endOfSlider?Number(this.endOfSlider):this.initialEndOfSlider,this.options.start=this.initialStartOfSlider,this.options.end=this.initialEndOfSlider,this.queryStateModel.setNewDefault(this.rangeQueryStateAttribute,[this.initialStartOfSlider,this.initialEndOfSlider]))},t.prototype.alreadySetBoundary=function(){return void 0!=this.startOfSlider&&void 0!=this.endOfSlider},t.prototype.trySetSliderBoundaryFromOptions=function(){e.Utils.isNullOrUndefined(this.options.start)||this.setupInitialSliderStateStart(this.options.start);e.Utils.isNullOrUndefined(this.options.end)||this.setupInitialSliderStateEnd(this.options.end)},t.prototype.trySetSliderBoundaryFromState=function(){var n=this.getBoundariesFromState();n&&(this.setupInitialSliderStateStart(n.start),this.setupInitialSliderStateEnd(n.end),this.startOfSlider=n.start,this.endOfSlider=n.end)},t.prototype.trySetSliderBoundaryFromQueryResult=function(n){var t=n.results.groupByResults[this.facetQueryController.lastGroupByRequestForFullRangeIndex],i,r;if(t&&!(t.values.length<=0)&&0!=t.values[0].numberOfResults){if(i=t.values[0].value.split("..")[0],r=t.values[t.values.length-1].value.split("..")[1],this.isValueADate(i)&&this.isValueADate(r))return this.setupInitialSliderStateStart(i),void this.setupInitialSliderStateEnd(r);var u=this.getBoundariesFromState(),f=Number(i),e=Number(r);u&&(f=Math.min(f,u.start),e=Math.max(e,u.end));this.setupInitialSliderStateStart(f);this.setupInitialSliderStateEnd(e)}},t.prototype.getBoundariesFromState=function(){var n=this.rangeFromUrlState||this.queryStateModel.get(this.rangeQueryStateAttribute),t,i;if(n&&void 0!=n[0]&&void 0!=n[1]&&(t=Number(n[0]),i=Number(n[1]),!isNaN(t)&&!isNaN(i)))return{start:t,end:i}},t.prototype.setupInitialSliderStateStart=function(n){void 0==this.initialStartOfSlider&&(this.initialStartOfSlider=n,this.isValueADate(n)&&(this.initialStartOfSlider=this.getTimeFromAPIResponse(n)))},t.prototype.setupInitialSliderStateEnd=function(n){void 0==this.initialEndOfSlider&&(this.initialEndOfSlider=n,this.isValueADate(n)&&(this.initialEndOfSlider=this.getTimeFromAPIResponse(n)))},t.prototype.getTimeFromAPIResponse=function(n){return new Date(n.replace("@"," ")).getTime()},t.prototype.isValueADate=function(n){return this.options.dateField&&isNaN(n)},t.prototype.updateAppearanceDependingOnState=function(n){var t=this;void 0===n&&(n=!1);v.Defer.defer(function(){!t.isEmpty||t.isActive()||n?(u.$$(t.element).removeClass("coveo-disabled-empty"),u.$$(t.facetHeader.eraserElement).toggle(t.isActive())):u.$$(t.element).addClass("coveo-disabled-empty");t.isActive()||n?u.$$(t.element).removeClass("coveo-disabled"):u.$$(t.element).addClass("coveo-disabled");t.isActive()&&t.slider&&t.slider.onMoving()})},t.prototype.handleNuke=function(){window.removeEventListener("resize",this.onResize)},t.prototype.isFacetEmpty=function(n,t){return e.Utils.isNullOrUndefined(n)||o.every(n.values,function(n){return e.Utils.isNullOrUndefined(n)||0===n.numberOfResults})||0==t.results.results.length},t.options=l({title:r.ComponentOptions.buildLocalizedStringOption({localizedString:function(){return it.l("NoTitle")},section:"CommonOptions"}),dateField:r.ComponentOptions.buildBooleanOption({defaultValue:!1,section:"CommonOptions"}),field:r.ComponentOptions.buildFieldOption({groupByField:!0,required:!0,section:"CommonOptions"}),id:r.ComponentOptions.buildStringOption({postProcessing:function(n,t){return n||t.field}}),dateFormat:r.ComponentOptions.buildStringOption({section:"Display"}),queryOverride:r.ComponentOptions.buildQueryExpressionOption({section:"Filtering"}),start:r.ComponentOptions.buildStringOption({section:"Filtering"}),end:r.ComponentOptions.buildStringOption({section:"Filtering"}),excludeOuterBounds:r.ComponentOptions.buildBooleanOption({defaultValue:!1,section:"Filtering"}),rounded:r.ComponentOptions.buildNumberOption({min:0,section:"Filtering"}),steps:r.ComponentOptions.buildNumberOption({min:2}),rangeSlider:r.ComponentOptions.buildBooleanOption(),displayAsValue:r.ComponentOptions.buildObjectOption({subOptions:{enable:r.ComponentOptions.buildBooleanOption({defaultValue:!0}),unitSign:r.ComponentOptions.buildStringOption(),separator:r.ComponentOptions.buildStringOption({defaultValue:"-"})},section:"Display"}),displayAsPercent:r.ComponentOptions.buildObjectOption({subOptions:{enable:r.ComponentOptions.buildBooleanOption({defaultValue:!1}),separator:r.ComponentOptions.buildStringOption({defaultValue:"-"})},section:"Display"}),graph:r.ComponentOptions.buildObjectOption({subOptions:{steps:r.ComponentOptions.buildNumberOption({min:2}),animationDuration:r.ComponentOptions.buildNumberOption({min:0}),margin:r.ComponentOptions.buildObjectOption({subOptions:{top:r.ComponentOptions.buildNumberOption({min:0}),bottom:r.ComponentOptions.buildNumberOption({min:0}),left:r.ComponentOptions.buildNumberOption({min:0}),right:r.ComponentOptions.buildNumberOption({min:0})}})},section:"Graph"}),getSteps:r.ComponentOptions.buildCustomOption(function(){return null}),valueCaption:r.ComponentOptions.buildCustomOption(function(){return null})},lt.ResponsiveFacetOptions),t.ID="FacetSlider",t.doExport=function(){g.exportGlobally({FacetSlider:t,Slider:y.Slider})},t.DEBOUNCED_RESIZE_DELAY=250,t}(et.Component);t.FacetSlider=p;ot.Initialization.registerAutoCreateComponent(p)},function(n,t,i){"use strict";var v=this&&this.__extends||function(){var n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])};return function(t,i){function r(){this.constructor=t}n(t,i);t.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),l,a;Object.defineProperty(t,"__esModule",{value:!0});var o=i(19),u=i(8),f=i(11),y=i(34),p=i(29),w=i(55),b=i(100),k=i(57),d=i(10),g=i(35),nt=i(227),tt=i(13),s=i(18),it=i(4),r=i(1),rt=i(651),h=i(30),c=i(17),e=i(0),ut=i(3),ft=i(471),et=i(654),ot=i(209);i(655);l=i(6);a=function(n){function t(i,e,o,s){void 0===e&&(e={});void 0===o&&(o={});void 0===s&&(s=window);var h=n.call(this,i,u.ComponentOptions.initComponentOptions(i,t,e),o,s)||this;return h.element=i,h.options=e,h.analyticsOptions=o,h.element.style.display="",h.options.id||h.generateDefaultId(),h.preventEventPropagation(),h.options.mainSearchInterface&&h.bindToMainSearchInterface(),r.$$(h.element).on(f.QueryEvents.buildingQuery,function(n,t){return h.handleRecommendationBuildingQuery(t)}),r.$$(h.element).on(f.QueryEvents.querySuccess,function(n,t){return h.handleRecommendationQuerySuccess(t)}),r.$$(h.element).on(f.QueryEvents.noResults,function(){return h.handleRecommendationNoResults()}),r.$$(h.element).on(f.QueryEvents.queryError,function(){return h.handleRecommendationQueryError()}),h.options.mainSearchInterface||h.ensureCurrentPageViewExistsInStore(),rt.ResponsiveRecommendation.init(h.root,h,e),h}return v(t,n),Object.defineProperty(t.prototype,"historyStore",{get:function(){return this.queryController.historyStore},enumerable:!0,configurable:!0}),t.prototype.getId=function(){return this.options.id},t.prototype.enable=function(){n.prototype.enable.call(this);this.show()},t.prototype.disable=function(){n.prototype.disable.call(this);this.hide()},t.prototype.hide=function(){r.$$(this.element).addClass("coveo-hidden")},t.prototype.show=function(){r.$$(this.element).removeClass("coveo-hidden")},t.prototype.ensureCurrentPageViewExistsInStore=function(){var n={name:"PageView",value:document.location.toString(),time:JSON.stringify(new Date),title:e.escape(document.title)};this.historyStore.addElement(n)},t.prototype.bindToMainSearchInterface=function(){this.bindComponentOptionsModelToMainSearchInterface();this.bindQueryEventsToMainSearchInterface()},t.prototype.bindComponentOptionsModelToMainSearchInterface=function(){var n=this,t=h.get(this.options.mainSearchInterface,o.SearchInterface),u=null!=t,i=function(){var i=t.getBindings().componentOptionsModel;n.componentOptionsModel.setMultiple(i.getAttributes());r.$$(n.options.mainSearchInterface).on(n.componentOptionsModel.getEventName(s.MODEL_EVENTS.ALL),function(){n.componentOptionsModel.setMultiple(i.getAttributes())})};u?i():r.$$(this.options.mainSearchInterface).on(c.InitializationEvents.afterComponentsInitialization,function(){t=h.get(n.options.mainSearchInterface,o.SearchInterface);i()})},t.prototype.bindQueryEventsToMainSearchInterface=function(){var n=this;r.$$(this.options.mainSearchInterface).on(f.QueryEvents.querySuccess,function(t,i){n.mainInterfaceQuery=i;n.mainQuerySearchUID=i.results.searchUid;n.mainQueryPipeline=i.results.pipeline;0!=i.results.results.length&&(n.usageAnalytics.logSearchEvent(d.analyticsActionCauseList.recommendation,{}),n.queryController.executeQuery({closeModalBox:!1}))});r.$$(this.options.mainSearchInterface).on(f.QueryEvents.queryError,function(){return n.hide()});r.$$(this.options.mainSearchInterface).on(f.QueryEvents.noResults,function(){return n.hide()})},t.prototype.handleRecommendationBuildingQuery=function(n){this.disabled||(this.modifyQueryForRecommendation(n),this.addRecommendationInfoInQuery(n))},t.prototype.handleRecommendationQuerySuccess=function(n){this.disabled||this.options.hideIfNoResults&&(0===n.results.totalCount?this.hide():this.show())},t.prototype.handleRecommendationNoResults=function(){this.disabled||this.options.hideIfNoResults&&this.hide()},t.prototype.handleRecommendationQueryError=function(){this.disabled||this.hide()},t.prototype.modifyQueryForRecommendation=function(n){this.mainInterfaceQuery&&it.Utils.copyObjectAttributes(n.queryBuilder,this.mainInterfaceQuery.queryBuilder,this.options.optionsToUse)},t.prototype.addRecommendationInfoInQuery=function(n){e.isEmpty(this.options.userContext)||n.queryBuilder.addContext(this.options.userContext);n.queryBuilder.recommendation=this.options.id},t.prototype.preventEventPropagation=function(){this.preventEventPropagationOn(f.QueryEvents);this.preventEventPropagationOn(y.OmniboxEvents);this.preventEventPropagationOn(p.ResultListEvents);this.preventEventPropagationOn(w.SettingsEvents);this.preventEventPropagationOn(b.PreferencesPanelEvents);this.preventEventPropagationOn(k.AnalyticsEvents);this.preventEventPropagationOn(g.BreadcrumbEvents);this.preventEventPropagationOn(nt.QuickviewEvents);this.preventEventPropagationOn(c.InitializationEvents);this.preventEventPropagationOn(this.getAllModelEvents())},t.prototype.preventEventPropagationOn=function(n,t){void 0===t&&(t=function(n){return n});for(var i in n)r.$$(this.root).on(t(i),function(n){return n.stopPropagation()})},t.prototype.getAllModelEvents=function(){var t=this,n={},i=this.getBindings().queryStateModel;return e.each(e.values(s.Model.eventTypes),function(r){var u=i.getEventName(r);n[u]=u;e.each(e.values(tt.QUERY_STATE_ATTRIBUTES),function(i){var u=t.queryStateModel.getEventName(r+i);n[u]=u})}),n},t.prototype.generateDefaultId=function(){var n="Recommendation";1!==t.NEXT_ID&&(this.logger.warn("Generating another recommendation default id","Consider configuring a human friendly / meaningful id for this interface"),n=n+"_"+t.NEXT_ID);t.NEXT_ID++;this.options.id=n},t.ID="Recommendation",t.NEXT_ID=1,t.doExport=function(){ut.exportGlobally({Recommendation:t,DefaultRecommendationTemplate:ft.DefaultRecommendationTemplate,RecommendationQuery:et.RecommendationQuery,RecommendationAnalyticsClient:ot.RecommendationAnalyticsClient})},t.options={mainSearchInterface:u.ComponentOptions.buildSelectorOption(),userContext:u.ComponentOptions.buildJsonOption(),id:u.ComponentOptions.buildStringOption(),optionsToUse:u.ComponentOptions.buildListOption({defaultValue:["expression"]}),sendActionsHistory:u.ComponentOptions.buildBooleanOption({defaultValue:!0,deprecated:"This option is now deprecated. The correct way to control this behaviour is to configure an appropriate machine learning model in the administration interface (Recommendation, Relevance tuning, Query suggestions)"}),hideIfNoResults:u.ComponentOptions.buildBooleanOption({defaultValue:!0}),autoTriggerQuery:u.ComponentOptions.buildBooleanOption({postProcessing:function(n,t){return!t.mainSearchInterface&&n}}),enableResponsiveMode:u.ComponentOptions.buildBooleanOption({defaultValue:!0}),responsiveBreakpoint:u.ComponentOptions.buildNumberOption({defaultValue:1e3}),dropdownHeaderLabel:u.ComponentOptions.buildLocalizedStringOption({localizedString:function(){return l.l("Recommendations")}})},t}(o.SearchInterface);t.Recommendation=a},function(n,t,i){"use strict";var v=this&&this.__extends||function(){var n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])};return function(t,i){function r(){this.constructor=t}n(t,i);t.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),s;Object.defineProperty(t,"__esModule",{value:!0});i(661);var r=i(0),h=i(17),c=i(11),y=i(133),p=i(29),l=i(5),w=i(18),e=i(13),b=i(3),o=i(6),u=i(1),k=i(16),d=i(12),g=i(4),a=i(10),nt=i(7),f=i(8),tt=i(2),it=i(662),rt=i(15);t.defaultLayout="list";s=function(n){function t(i,r,o){var s=n.call(this,i,t.ID,o)||this;return s.element=i,s.options=r,s.preferredLayout=null,s.options=f.ComponentOptions.initComponentOptions(i,t,r),s.currentActiveLayouts={},s.bind.onQueryState(w.MODEL_EVENTS.CHANGE_ONE,e.QUERY_STATE_ATTRIBUTES.LAYOUT,s.handleQueryStateChanged.bind(s)),s.bind.onRootElement(c.QueryEvents.querySuccess,function(n){return s.handleQuerySuccess(n)}),s.bind.onRootElement(c.QueryEvents.queryError,function(n){return s.handleQueryError(n)}),s.resultLayoutSection=u.$$(s.element).closest(".coveo-result-layout-section"),s.bind.oneRootElement(h.InitializationEvents.afterComponentsInitialization,function(){return s.populate()}),s.bind.oneRootElement(h.InitializationEvents.afterInitialization,function(){return s.handleQueryStateChanged()}),it.ResponsiveResultLayout.init(s.root,s,{}),s}return v(t,n),Object.defineProperty(t.prototype,"activeLayouts",{get:function(){return this.searchInterface.responsiveComponents.isLargeScreenWidth()?r.pick(this.currentActiveLayouts,this.options.desktopLayouts):this.searchInterface.responsiveComponents.isMediumScreenWidth()?r.pick(this.currentActiveLayouts,this.options.tabletLayouts):this.searchInterface.responsiveComponents.isSmallScreenWidth()?r.pick(this.currentActiveLayouts,this.options.mobileLayouts):this.currentActiveLayouts},enumerable:!0,configurable:!0}),t.prototype.changeLayout=function(n){this.preferredLayout=null;this.performLayoutChange(n)},t.prototype.getCurrentLayout=function(){return this.currentLayout},t.prototype.disableLayouts=function(n){var f=this,t,i,u;g.Utils.isNonEmptyArray(n)&&(r.each(n,function(n){return f.disableLayout(n)}),t=r.difference(r.keys(this.currentActiveLayouts),n),(this.preferredLayout=this.currentLayout,r.isEmpty(t))?(this.logger.error("Cannot disable the last valid layout ... Re-enabling the first one possible"),i=r.keys(this.currentActiveLayouts)[0],this.enableLayout(i),this.setLayout(i)):(u=r.contains(t,this.currentLayout)?this.currentLayout:t[0],this.performLayoutChange(u)))},t.prototype.enableLayouts=function(n){var t=this;r.each(n,function(n){return t.enableLayout(n)});r.find(n,function(n){return n===t.preferredLayout})&&this.restorePreferredLayout()},t.prototype.restorePreferredLayout=function(){this.performLayoutChange(this.preferredLayout);this.preferredLayout=null},t.prototype.performLayoutChange=function(n){if(l.Assert.check(this.isLayoutDisplayedByButton(n),"Layout not available or invalid"),n!==this.currentLayout||""===this.getModelValue()){this.setModelValue(n);var t=this.queryController.getLastResults();this.setLayout(n,t);t?this.usageAnalytics.logCustomEvent(a.analyticsActionCauseList.resultsLayoutChange,{resultsLayoutChangeTo:n},this.element):(this.usageAnalytics.logSearchEvent(a.analyticsActionCauseList.resultsLayoutChange,{resultsLayoutChangeTo:n}),this.queryController.firstQuery||this.queryController.executeQuery())}},t.prototype.disableLayout=function(n){this.isLayoutDisplayedByButton(n)&&this.hideButton(n)},t.prototype.enableLayout=function(n){var t=this.resultLists;r.find(t,function(t){return t.options.layout==n})&&this.isLayoutDisplayedByButton(n)&&(this.showButton(n),this.updateSelectorAppearance())},Object.defineProperty(t.prototype,"resultLists",{get:function(){return this.searchInterface.getComponents("ResultList")},enumerable:!0,configurable:!0}),t.prototype.hideButton=function(n){if(this.isLayoutDisplayedByButton(n)){var t=this.currentActiveLayouts[n].button;u.$$(t.el).addClass("coveo-hidden");t.visible=!1;this.updateSelectorAppearance()}},t.prototype.showButton=function(n){if(this.isLayoutDisplayedByButton(n)){var t=this.currentActiveLayouts[n].button;u.$$(t.el).removeClass("coveo-hidden");t.visible=!0}},t.prototype.setLayout=function(n,t){n&&(this.currentLayout&&(u.$$(this.currentActiveLayouts[this.currentLayout].button.el).removeClass("coveo-selected"),u.$$(this.currentActiveLayouts[this.currentLayout].button.el).setAttribute("aria-pressed",(!1).toString())),u.$$(this.currentActiveLayouts[n].button.el).addClass("coveo-selected"),u.$$(this.currentActiveLayouts[n].button.el).setAttribute("aria-pressed",(!0).toString()),this.currentLayout=n,u.$$(this.element).trigger(p.ResultListEvents.changeLayout,{layout:n,results:t}))},t.prototype.handleQuerySuccess=function(n){this.hasNoResults=0==n.results.results.length;this.shouldShowSelector()?this.show():this.hide()},t.prototype.handleQueryStateChanged=function(){var t=this.getModelValue(),n=r.find(r.keys(this.currentActiveLayouts),function(n){return n===t});void 0!==n?this.setLayout(n):this.setLayout(r.keys(this.currentActiveLayouts)[0])},t.prototype.handleQueryError=function(){this.hasNoResults=!0;this.hide()},t.prototype.updateSelectorAppearance=function(){this.shouldShowSelector()?this.show():this.hide()},t.prototype.populate=function(){var f=this,i={layouts:[]},n;u.$$(this.root).trigger(y.ResultLayoutEvents.populateResultLayout,i);n=r.uniq(i.layouts.map(function(n){return n.toLowerCase()}));r.each(n,function(n){return l.Assert.check(r.contains(t.validLayouts,n),"Invalid layout")});r.isEmpty(n)||(r.each(n,function(n){return f.addButton(n)}),this.shouldShowSelector()||this.hide())},t.prototype.addButton=function(n){var e=this,t=u.$$("span",{className:"coveo-result-layout-selector"}),s=u.$$("span",{className:"coveo-result-layout-selector-caption"},o.l(n)),i,f,r;t.append(s.el);i=u.$$("span",{className:"coveo-icon coveo-"+n+"-layout-icon"},d.SVGIcons.icons[n+"Layout"]);k.SVGDom.addClassToSVGInContainer(i.el,"coveo-"+n+"-svg");t.prepend(i.el);f=function(){return e.changeLayout(n)};(new rt.AccessibleButton).withElement(t).withLabel(o.l("DisplayResultsAs",o.l(n))).withSelectAction(f).withOwner(this.bind).build();r=n===this.currentLayout;t.toggleClass("coveo-selected",r);t.setAttribute("aria-pressed",r.toString());u.$$(this.element).append(t.el);this.currentActiveLayouts[n]={button:{visible:!0,el:t.el},enabled:!0}},t.prototype.hide=function(){var n=this.resultLayoutSection||this.element;u.$$(n).addClass("coveo-result-layout-hidden")},t.prototype.show=function(){var n=this.resultLayoutSection||this.element;u.$$(n).removeClass("coveo-result-layout-hidden")},t.prototype.getModelValue=function(){return this.queryStateModel.get(e.QueryStateModel.attributesEnum.layout)},t.prototype.setModelValue=function(n){this.queryStateModel.set(e.QueryStateModel.attributesEnum.layout,n)},t.prototype.shouldShowSelector=function(){return r.keys(this.currentActiveLayouts).length>1&&r.filter(this.currentActiveLayouts,function(n){return n.button.visible}).length>1&&!this.hasNoResults},t.prototype.isLayoutDisplayedByButton=function(n){return r.contains(r.keys(this.currentActiveLayouts),n)},t.ID="ResultLayoutSelector",t.aliases=["ResultLayout"],t.doExport=function(){b.exportGlobally({ResultLayoutSelector:t,ResultLayout:t})},t.validLayouts=["list","card","table"],t.options={mobileLayouts:f.ComponentOptions.buildListOption({defaultValue:["card","table"]}),tabletLayouts:f.ComponentOptions.buildListOption({defaultValue:["list","card","table"]}),desktopLayouts:f.ComponentOptions.buildListOption({defaultValue:["list","card","table"]})},t}(nt.Component);t.ResultLayoutSelector=s;tt.Initialization.registerAutoCreateComponent(s)},function(n,t,i){"use strict";var a=this&&this.__extends||function(){var n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])};return function(t,i){function r(){this.constructor=t}n(t,i);t.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});i(674);var f=i(0),v=i(17),h=i(11),y=i(3),e=i(5),p=i(18),s=i(13),w=i(53),b=i(15),u=i(1),o=i(4),k=i(10),c=i(7),r=i(8),d=i(2),g=i(675),l=function(n){function t(i,u,f){var e=n.call(this,i,t.ID,f)||this;return e.element=i,e.options=u,e.options=r.ComponentOptions.initComponentOptions(i,t,u),e.bind.onRootElement(h.QueryEvents.buildingQuery,function(n){return e.handleBuildingQuery(n)}),e.bind.onRootElement(v.InitializationEvents.afterInitialization,function(){return e.handleAfterInitialization()}),e.bind.onQueryState(p.MODEL_EVENTS.CHANGE_ONE,s.QUERY_STATE_ATTRIBUTES.T,function(n){return e.handleQueryStateChanged(n)}),(new b.AccessibleButton).withElement(i).withSelectAction(function(){return e.select()}).withTitle(e.options.caption).withOwner(e.bind).build(),e.render(),g.ResponsiveTabs.init(e.root,e,e.options),e}return a(t,n),t.prototype.select=function(){if(!this.disabled){var n={t:this.options.id,sort:this.options.sort||s.QueryStateModel.defaultAttributes.sort};this.options.layout&&(n.layout=this.options.layout);this.queryStateModel.setMultiple(n);this.usageAnalytics.logSearchEvent(k.analyticsActionCauseList.interfaceChange,{interfaceChangeTo:this.options.id});this.queryController.executeQuery()}},t.prototype.isElementIncludedInTab=function(n){e.Assert.exists(n);var t=this.splitListOfTabs(n.getAttribute("data-tab")),i=this.splitListOfTabs(n.getAttribute("data-tab-not"));return e.Assert.check(!(0!=t.length&&0!=i.length),"You cannot both explicitly include and exclude an element from tabs."),0!=t.length&&-1!=f.indexOf(t,this.options.id)||0!=i.length&&-1==f.indexOf(i,this.options.id)||0==t.length&&0==i.length},t.prototype.render=function(){var r=this.options.icon,n,t,i;o.Utils.isNonEmptyString(r)&&(n=u.$$("span").el,u.$$(n).addClass(["coveo-icon",r]),this.element.insertBefore(n,this.element.firstChild));t=this.options.caption;o.Utils.isNonEmptyString(t)&&(i=document.createElement("p"),u.$$(i).text(t),this.element.appendChild(i))},t.prototype.handleBuildingQuery=function(n){e.Assert.exists(n);!this.disabled&&this.isSelected()&&(n.queryBuilder.tab=this.options.id,o.Utils.isNonEmptyString(this.options.expression)&&(this.options.constant?n.queryBuilder.constantExpression.add(this.options.expression):n.queryBuilder.advancedExpression.add(this.options.expression)),this.options.enableDuplicateFiltering&&(n.queryBuilder.enableDuplicateFiltering=!0),null!=this.options.pipeline&&(n.queryBuilder.pipeline=this.options.pipeline),null!=this.options.maximumAge&&(n.queryBuilder.maximumAge=this.options.maximumAge))},t.prototype.handleQueryStateChanged=function(n){e.Assert.exists(n);!this.disabled&&this.isSelected()?(u.$$(this.element).addClass("coveo-selected"),this.queryController.setEndpoint(this.options.endpoint),this.showAndHideAppropriateElements()):u.$$(this.element).removeClass("coveo-selected")},t.prototype.handleAfterInitialization=function(){this.isSelected()&&this.options.layout&&this.queryStateModel.set(s.QUERY_STATE_ATTRIBUTES.LAYOUT,this.options.layout)},t.prototype.isSelected=function(){return this.queryStateModel.get(s.QueryStateModel.attributesEnum.t)==this.options.id},t.prototype.showAndHideAppropriateElements=function(){var n=this,t=[],i=[];f.each(u.$$(this.root).findAll("[data-tab],[data-tab-not]"),function(r){n.isElementIncludedInTab(r)?(n.toggleAllComponentsUnder(r,!0),t.push(r)):(n.toggleAllComponentsUnder(r,!1),i.push(r))});u.$$(this.root).one(h.QueryEvents.querySuccess,function(){f.each(t,function(n){return u.$$(n).removeClass("coveo-tab-disabled")});f.each(i,function(n){return u.$$(n).addClass("coveo-tab-disabled")})})},t.prototype.splitListOfTabs=function(n){return o.Utils.exists(n)?f.map(n.split(","),function(n){return o.Utils.trim(n)}):[]},t.prototype.toggleAllComponentsUnder=function(n,t){e.Assert.exists(n);var i=function(n){var i=c.Component.get(n,void 0,!0);i&&(t?i.enable():i.disable())};i(n);f.each(u.$$(n).findAll("*"),function(n){i(n)})},t.prototype.enable=function(){n.prototype.enable.call(this);this.element.style.display=""},t.prototype.disable=function(){n.prototype.disable.call(this);this.element.style.display="none"},t.ID="Tab",t.doExport=function(){y.exportGlobally({Tab:t})},t.options={id:r.ComponentOptions.buildStringOption({required:!0,section:"Common Options"}),caption:r.ComponentOptions.buildLocalizedStringOption({required:!0,section:"Common Options"}),icon:r.ComponentOptions.buildStringOption(),expression:r.ComponentOptions.buildQueryExpressionOption({section:"Common Options"}),endpoint:r.ComponentOptions.buildCustomOption(function(n){return null!=n?w.SearchEndpoint.endpoints[n]:null}),sort:r.ComponentOptions.buildStringOption(),layout:r.ComponentOptions.buildStringOption(),constant:r.ComponentOptions.buildBooleanOption({defaultValue:!0,section:"Filtering"}),enableDuplicateFiltering:r.ComponentOptions.buildBooleanOption({defaultValue:!1}),pipeline:r.ComponentOptions.buildStringOption(),maximumAge:r.ComponentOptions.buildNumberOption(),enableResponsiveMode:r.ComponentOptions.buildBooleanOption({defaultValue:!0,section:"ResponsiveOptions"}),dropdownHeaderLabel:r.ComponentOptions.buildLocalizedStringOption({section:"ResponsiveOptions"})},t}(c.Component);t.Tab=l;d.Initialization.registerAutoCreateComponent(l)},function(n){function h(){throw new Error("setTimeout has not been defined");}function c(){throw new Error("clearTimeout has not been defined");}function l(n){if(r===setTimeout)return setTimeout(n,0);if((r===h||!r)&&setTimeout)return r=setTimeout,setTimeout(n,0);try{return r(n,0)}catch(t){try{return r.call(null,n,0)}catch(t){return r.call(this,n,0)}}}function y(n){if(u===clearTimeout)return clearTimeout(n);if((u===c||!u)&&clearTimeout)return u=clearTimeout,clearTimeout(n);try{return u(n)}catch(t){try{return u.call(null,n)}catch(t){return u.call(this,n)}}}function p(){o&&e&&(o=!1,e.length?f=e.concat(f):s=-1,f.length&&a())}function a(){var t,n;if(!o){for(t=l(p),o=!0,n=f.length;n;){for(e=f,f=[];++s<n;)e&&e[s].run();s=-1;n=f.length}e=null;o=!1;y(t)}}function v(n,t){this.fun=n;this.array=t}function i(){}var r,u,t=n.exports={};!function(){try{r="function"==typeof setTimeout?setTimeout:h}catch(n){r=h}try{u="function"==typeof clearTimeout?clearTimeout:c}catch(n){u=c}}();var e,f=[],o=!1,s=-1;t.nextTick=function(n){var i=new Array(arguments.length-1),t;if(arguments.length>1)for(t=1;t<arguments.length;t++)i[t-1]=arguments[t];f.push(new v(n,i));1!==f.length||o||l(a)};v.prototype.run=function(){this.fun.apply(null,this.array)};t.title="browser";t.browser=!0;t.env={};t.argv=[];t.version="";t.versions={};t.on=i;t.addListener=i;t.once=i;t.off=i;t.removeListener=i;t.removeAllListeners=i;t.emit=i;t.prependListener=i;t.prependOnceListener=i;t.listeners=function(){return[]};t.binding=function(){throw new Error("process.binding is not supported");};t.cwd=function(){return"/"};t.chdir=function(){throw new Error("process.chdir is not supported");};t.umask=function(){return 0}},function(n,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function n(){}return n.onPositionResolved="onPositionResolved",n.onResolvingPosition="onResolvingPosition",n.onPositionNotResolved="onPositionNotResolved",n}();t.DistanceEvents=i},function(n,t,i){"use strict";var r,u,f,e;Object.defineProperty(t,"__esModule",{value:!0});r=i(18);t.Model=r.Model;u=i(13);t.QueryStateModel=u.QueryStateModel;f=i(28);t.ComponentOptionsModel=f.ComponentOptionsModel;e=i(78);t.ComponentStateModel=e.ComponentStateModel},function(n,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var u=i(23),f=i(0),r=i(6),o=i(30),e=i(1),s=function(){function n(){}return n.message=function(t,i){return n.messageBuilderForMode(t)(i,n.getSummaryStrings(i))},n.htmlMessage=function(t,i){return n.messageBuilderForMode(t)(i,n.getHtmlSummaryStrings(i))},n.replaceQueryTags=function(n,t){return n?n.replace(/\$\{query\}/g,t):""},n.messageBuilderForMode=function(t){return n.isInfiniteScrollMode(t)?n.buildInfiniteScrollMessage:n.buildStandardMessage},n.isInfiniteScrollMode=function(n){var t=e.$$(n).findAll(".CoveoResultList");return f.any(t,function(n){var t=o.get(n).options;return t&&t.enableInfiniteScroll})},n.buildStandardMessage=function(t,i){var u=t.results.results.length,f={includingQuery:r.l("ShowingResultsOfWithQuery",i.first,i.last,i.totalCount,i.query,u),excludingQuery:r.l("ShowingResultsOf",i.first,i.last,i.totalCount,u)};return n.buildMessage(t,f)},n.buildInfiniteScrollMessage=function(t,i){var u=t.results.results.length,f={includingQuery:r.l("ShowingResultsWithQuery",i.totalCount,i.query,u),excludingQuery:r.l("ShowingResults",i.totalCount,u)};return n.buildMessage(t,f)},n.buildMessage=function(t,i){var r=t.results.results.length,u=n.sanitizeQuery(t.query);return r?u?i.includingQuery:i.excludingQuery:""},n.getHtmlSummaryStrings=function(t){var i=n.getSummaryStrings(t);return{first:n.wrapWithSpanTag(i.first,"first"),last:n.wrapWithSpanTag(i.last,"last"),totalCount:n.wrapWithSpanTag(i.totalCount,"total-count"),query:n.wrapWithSpanTag(i.query,"query")}},n.wrapWithSpanTag=function(n,t){return e.$$("span",{className:"coveo-highlight coveo-highlight-"+t},n).el.outerHTML},n.getSummaryStrings=function(t){var i=t.query,r=t.results;return{first:u.format(i.firstResult+1,"n0"),last:u.format(i.firstResult+r.results.length,"n0"),totalCount:u.format(r.totalCountFiltered,"n0"),query:n.sanitizeQuery(i)}},n.sanitizeQuery=function(n){return n.q?f.escape(n.q.trim()):""},n}();t.QuerySummaryUtils=s},function(n,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});i(393);var r=i(1),f=i(10),u=i(20),e=i(12),o=i(18),s=i(13),h=i(207),c=i(0),l=i(48),a=function(){function n(n){var t=this;this.args=n;r.$$(n.element).on(u.QueryEvents.doneBuildingQuery,function(n,i){return t.handleBuildingQuery(i)});r.$$(n.element).on("state:"+o.MODEL_EVENTS.CHANGE_ONE+s.QUERY_STATE_ATTRIBUTES.Q,function(n,i){return t.handleQueryChange(i)});r.$$(n.element).on(u.BreadcrumbEvents.populateBreadcrumb,function(n,i){t.handlePopulateBreadcrumb(i)});r.$$(n.element).on(u.BreadcrumbEvents.clearBreadcrumb,function(){return t.handleClearBreadcrumb()})}return n.prototype.handleBuildingQuery=function(n){this.args.queryStateModel.get("missingTerms").forEach(function(t){n.queryBuilder.advancedExpression.add(t)})},Object.defineProperty(n.prototype,"termsForcedToAppear",{get:function(){return this.args.queryStateModel.get("missingTerms").slice()},enumerable:!0,configurable:!0}),n.prototype.setUpdateTermsForcedToAppear=function(n){this.args.queryStateModel.set("missingTerms",n.slice())},n.prototype.handlePopulateBreadcrumb=function(n){if(0!==this.termsForcedToAppear.length){var i=this.buildTermForcedToAppear(),t=this.buildBreadcrumbContainer(n.headingLevel);i.forEach(function(n){return r.$$(t).append(n.el)});n.breadcrumbs.push({element:t.el})}},n.prototype.buildTermForcedToAppear=function(){var n=this;return this.termsForcedToAppear.map(function(t){var i=r.$$("button",{type:"button",className:"coveo-missing-term-breadcrumb-value coveo-accessible-button"},r.$$("span",{className:"coveo-missing-term-breadcrumb-caption"},c.escape(t)),r.$$("span",{className:"coveo-missing-term-breadcrumb-clear"},e.SVGIcons.icons.mainClear));return i.on("click",function(){return n.removeTermForcedToAppear(t)}),i})},n.prototype.buildBreadcrumbContainer=function(n){return r.$$("div",{className:"coveo-remove-term-container"},r.$$(l.getHeadingTag(n,"span"),{className:"coveo-missing-term-breadcrumb-title"},u.l("MustContain")))},n.prototype.removeTermForcedToAppear=function(n){var t=this.termsForcedToAppear,i=t.indexOf(n);t.splice(i,1);this.setUpdateTermsForcedToAppear(t);this.logAnalyticsRemoveMissingTerm(n);this.args.queryController.executeQuery()},n.prototype.logAnalyticsRemoveMissingTerm=function(n){this.args.usageAnalytics.logSearchEvent(f.analyticsActionCauseList.removeMissingTerm,{missingTerm:n})},n.prototype.handleClearBreadcrumb=function(){this.setUpdateTermsForcedToAppear([])},n.prototype.handleQueryChange=function(n){var t,i;this.updateTermsForcedToAppearToOnlyIncludeWords(n);t=document.querySelector(".CoveoBreadcrumb");t&&(i=u.get(t),i&&(i.getBreadcrumbs(),r.$$(this.args.element).trigger(u.BreadcrumbEvents.redrawBreadcrumb)))},n.prototype.updateTermsForcedToAppearToOnlyIncludeWords=function(t){var i=this.termsForcedToAppear;this.termsForcedToAppear.forEach(function(r){if(!h(n.wordBoundary+"("+r+")"+n.wordBoundary,"g").test(t.value)){var u=i.indexOf(r);i.splice(u,1)}});this.setUpdateTermsForcedToAppear(i)},n.ID="MissingTermManager",n.wordBoundary="(([\\p{Han}])?([^(\\p{Latin}-)])|^|$)",n}();t.MissingTermManager=a},function(n,t,i){"use strict";var r=i(37),f;Object.defineProperty(t,"__esModule",{value:!0});t.default=void 0;var u=r(i(394)),e=r(i(437)),o=r(i(438)),s=r(i(439)),h=r(i(440)),c=r(i(442)),l=r(i(444)),a=r(i(446));e.default(u.default);o.default(u.default);s.default(u.default);h.default(u.default);c.default(u.default);l.default(u.default);a.default(u.default);f=u.default;t.default=f;n.exports=t.default},function(n,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function n(n,t){void 0===t&&(t="local");this.id=n;try{switch(t){case"local":this.storage=window.localStorage;break;case"session":this.storage=window.sessionStorage;break;default:this.storage=null}}catch(n){this.storage=null}}return n.prototype.save=function(n){if(this.storage)try{this.storage.setItem(this.getStorageKey(),JSON.stringify(n))}catch(n){}},n.prototype.load=function(){if(!this.storage)return null;try{var n=this.storage.getItem(this.getStorageKey());return n&&JSON.parse(n)}catch(n){return null}},n.prototype.remove=function(n){if(this.storage)try{if(void 0==n)this.storage.removeItem(this.getStorageKey());else{var t=this.load();delete t[n];this.save(t)}}catch(n){}},n.prototype.getStorageKey=function(){return"coveo-"+this.id},n}();t.StorageUtils=i},function(n,t,i){"use strict";var u=this&&this.__extends||function(){var n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])};return function(t,i){function r(){this.constructor=t}n(t,i);t.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var f=i(170),r=i(10),e=i(7),o=i(19),s=i(0),h=function(n){function t(t,i,r,u,f,e,o,s,h,c){var l=n.call(this,t,i,r,u,f,e,o,s,h,c)||this;return l.endpoint=t,l.rootElement=i,l.userId=r,l.userDisplayName=u,l.anonymous=f,l.splitTestRunName=e,l.splitTestRunVersion=o,l.originLevel1=s,l.sendToCloud=h,l.bindings=c,l.recommendation=l.bindings.searchInterface,l}return u(t,n),t.prototype.logSearchEvent=function(t,i){t==r.analyticsActionCauseList.interfaceLoad&&(t=r.analyticsActionCauseList.recommendationInterfaceLoad);n.prototype.logSearchEvent.call(this,t,i)},t.prototype.logClickEvent=function(t,i,u,f){var h,c;return t==r.analyticsActionCauseList.documentOpen&&(t=r.analyticsActionCauseList.recommendationOpen),h=[n.prototype.logClickEvent.call(this,t,i,u,f)],this.recommendation.mainQuerySearchUID&&null!=this.recommendation.mainQueryPipeline&&(c=e.Component.get(this.recommendation.options.mainSearchInterface,o.SearchInterface),u.queryUid=this.recommendation.mainQuerySearchUID,u.pipeline=this.recommendation.mainQueryPipeline,h.push(c.usageAnalytics.logClickEvent(t,i,u,f))),Promise.all(h).then(function(n){return s.first(n)})},t.prototype.getOriginLevel2=function(){return this.recommendation.getId()},t}(f.LiveAnalyticsClient);t.RecommendationAnalyticsClient=h},function(n,t,i){"use strict";function u(n){var t=n.templateSettings;t.evaluate=/(?:<%|{{)([\s\S]+?)(?:%>|}})/g;t.interpolate=/(?:<%|{{)=([\s\S]+?)(?:%>|}})/g;t.escape=/(?:<%|{{)-([\s\S]+?)(?:%>|}})/g}var r,f;Object.defineProperty(t,"__esModule",{value:!0});r=i(0);t.underscoreInstance=r,function(){void 0==window.Coveo&&(window.Coveo={});void 0==window.Coveo._&&(window.Coveo._=r,u(window.Coveo._),t.underscoreInstance=window.Coveo._)}();f=window._;window._=r;window._.noConflict=function(){return window._=f,r};u(window._)},function(n,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=i(10),u=function(){function n(){}return n.addActionCauseToList=function(n){n.name&&n.type&&(r.analyticsActionCauseList[n.name]=n)},n.removeActionCauseFromList=function(n){delete r.analyticsActionCauseList[n]},n}();t.AnalyticsUtils=u},function(n,t,i){"use strict";function r(){return!!u()&&(t.jQueryInstance=s(),void 0==window.Coveo&&(window.Coveo={}),void 0==window.Coveo.$&&(window.Coveo.$=t.jQueryInstance),t.jQueryInstance.fn.coveo=function(){for(var i,n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];return this.each(function(t,r){var u,e;h.isString(n[0])?(e=n[0],u=f.Initialization.dispatchNamedMethodCallOrComponentCreation(e,r,n.slice(1))):u=f.Initialization.dispatchNamedMethodCall("get",r,n);i=i||u}),i},!0)}function u(){return o()||e()}function e(){return void 0!=window.Coveo&&void 0!=window.Coveo.$}function o(){return void 0!=window.$&&void 0!=window.$.fn&&void 0!=window.$.fn.jquery}function s(){return window.$?window.$:window.Coveo.$}Object.defineProperty(t,"__esModule",{value:!0});var f=i(2),h=i(0);r()||document.addEventListener("DOMContentLoaded",function(){r()});t.initCoveoJQuery=r;t.jQueryIsDefined=u},function(n,t,i){"use strict";function r(){u.Initialization.registerComponentFields("YouTubeThumbnail",t.fields)}Object.defineProperty(t,"__esModule",{value:!0});var u=i(2);t.fields=["ytthumbnailurl"];t.registerFields=r},function(n,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=i(7),u=i(0),f=function(){function n(n,t){this.resultListOptions=n;this.autoCreateComponentsFn=t}return n.prototype.renderResults=function(n,t,i){var f=this;return void 0===t&&(t=!1),Promise.all([this.getStartFragment(n,t),this.getEndFragment(n,t)]).then(function(t){var o=t[0],s=t[1],e=document.createDocumentFragment();o&&e.appendChild(o);u.each(n,function(n){e.appendChild(n);i(r.Component.getResult(n),n)});s&&e.appendChild(s);f.resultListOptions.resultsContainer.appendChild(e)})},n.prototype.getStartFragment=function(){return Promise.resolve(document.createDocumentFragment())},n.prototype.getEndFragment=function(){return Promise.resolve(document.createDocumentFragment())},n}();t.ResultListRenderer=f},function(n,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});i(535);var e=i(11),l=i(9),o=i(6),r=i(1),s=i(4),a=i(7),v=i(19),y=i(54),h=i(61),f=i(130),p=i(123),w=i(93),b=i(135),u=i(0),k=i(47),d=i(536),g=i(85),c=i(537),nt=function(){function n(n,t,i,r){this.coveoRoot=n;this.ID=t;this.componentsInFacetColumn=[];this.preservePositionOriginalValues=[];this.searchInterface=a.Component.get(this.coveoRoot.el,v.SearchInterface,!1);this.dropdownHeaderLabel=this.getDropdownHeaderLabel();this.dropdown=this.buildDropdown(r);this.bindDropdownContentEvents();this.bindFacetsMobileModeEvents();this.registerOnCloseHandler();this.registerQueryEvents();this.initializeBreakpoint(i.responsiveBreakpoint)}return n.init=function(t,i,u,f,e){this.findColumn(i)&&(h.ResponsiveComponentsManager.register(n,r.$$(i),"ResponsiveFacetColumn",u,f),h.ResponsiveComponentsManager.register(t,r.$$(i),e,u,f))},n.findColumn=function(n){var t=r.$$(n).find(".coveo-facet-column");return t||this.logger.info("No element with class coveo-facet-column. Responsive facets cannot be enabled"),t},Object.defineProperty(n.prototype,"facetsMobileModeComponent",{get:function(){return this.searchInterface?this.searchInterface.getComponents(g.FacetsMobileMode.ID)[0]:null},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"facetsMobileModeOptions",{get:function(){var t=this.facetsMobileModeComponent;return t?t.options:(n.logger.warn('The "FacetsMobileMode" component did not load properly, disabling the ResponsiveFacets modal.'),{isModal:!1,preventScrolling:!1,displayOverlayWhileOpen:!0})},enumerable:!0,configurable:!0}),n.prototype.registerComponent=function(n){return this.componentsInFacetColumn.push(n),this.preservePositionOriginalValues.push(n.options.preservePosition),!0},n.prototype.needDropdownWrapper=function(){return this.needSmallMode()},n.prototype.handleResizeEvent=function(){this.needSmallMode()&&!f.ResponsiveComponentsUtils.isSmallFacetActivated(this.coveoRoot)?this.changeToSmallMode():!this.needSmallMode()&&f.ResponsiveComponentsUtils.isSmallFacetActivated(this.coveoRoot)&&this.changeToLargeMode();this.dropdown.isOpened&&this.dropdown.dropdownContent.positionDropdown()},n.prototype.dismissFacetSearches=function(){u.each(this.componentsInFacetColumn,function(n){n.facetSearch&&n.facetSearch.currentlyDisplayedResults&&n.facetSearch.dismissSearchResults()})},n.prototype.needSmallMode=function(){if(!this.searchInterface)return this.coveoRoot.width()<=(s.Utils.isNullOrUndefined(this.breakpoint)?(new y.ResponsiveComponents).getMediumScreenWidth():this.breakpoint);switch(this.searchInterface.responsiveComponents.getResponsiveMode()){case"small":case"medium":return!0;case"auto":return this.coveoRoot.width()<=(s.Utils.isNullOrUndefined(this.breakpoint)?this.searchInterface.responsiveComponents.getMediumScreenWidth():this.breakpoint);default:return!1}},n.prototype.changeToSmallMode=function(){this.dropdown.close();this.disableFacetPreservePosition();r.$$(this.coveoRoot.find("."+h.ResponsiveComponentsManager.DROPDOWN_HEADER_WRAPPER_CSS_CLASS)).append(this.dropdown.dropdownHeader.element.el);f.ResponsiveComponentsUtils.activateSmallFacet(this.coveoRoot)},n.prototype.changeToLargeMode=function(){this.restoreFacetPreservePositionValue();this.dropdown.cleanUp();f.ResponsiveComponentsUtils.deactivateSmallFacet(this.coveoRoot)},n.prototype.buildDropdown=function(n){var i=this.buildDropdownContent(),r=this.buildDropdownHeader(),t=n||new p.ResponsiveDropdown(i,r,this.coveoRoot);return this.facetsMobileModeOptions.displayOverlayWhileOpen||t.disablePopupBackground(),this.facetsMobileModeOptions.preventScrolling&&t.enableScrollLocking(this.facetsMobileModeOptions.scrollContainer),t},n.prototype.buildDropdownContent=function(){var f=this,t=r.$$(this.coveoRoot.find(".coveo-facet-column")),i=r.$$("div",{className:"coveo-facet-header-filter-by-container",style:"display: none"}),u=r.$$("div",{className:"coveo-facet-header-filter-by"});return u.text(o.l("Filter by:")),i.append(u.el),t.prepend(i.el),this.facetsMobileModeOptions.isModal?new d.ResponsiveDropdownModalContent("facet",t,o.l("CloseFiltersDropdown"),function(){return f.dropdown.close()}):new w.ResponsiveDropdownContent("facet",t,this.coveoRoot,n.DROPDOWN_MIN_WIDTH,n.DROPDOWN_WIDTH_RATIO)},n.prototype.buildDropdownHeader=function(){var n=r.$$("a"),t=r.$$("p");return t.text(this.dropdownHeaderLabel),n.el.appendChild(t.el),new b.ResponsiveDropdownHeader("facet",n)},n.prototype.initializeBreakpoint=function(n){var t=this.facetsMobileModeOptions.breakpoint;this.breakpoint=s.Utils.isNullOrUndefined(t)?n:t},n.prototype.registerOnCloseHandler=function(){this.dropdown.registerOnCloseHandler(this.dismissFacetSearches,this)},n.prototype.registerQueryEvents=function(){var n=this;this.coveoRoot.on(e.QueryEvents.noResults,function(){return n.handleNoResults()});this.coveoRoot.on(e.QueryEvents.querySuccess,function(t,i){return n.handleQuerySuccess(i)});this.coveoRoot.on(e.QueryEvents.queryError,function(){return n.handleQueryError()})},n.prototype.bindDropdownContentEvents=function(){var t=this;this.dropdown.dropdownContent.element.on("scroll",u.debounce(function(){u.each(t.componentsInFacetColumn,function(n){var i=n.facetSearch;i&&i.currentlyDisplayedResults&&!t.isFacetSearchScrolledIntoView(i.search)?n.facetSearch.positionSearchResults(t.dropdown.dropdownContent.element.el):i&&n.facetSearch.currentlyDisplayedResults&&n.facetSearch.positionSearchResults()})},n.DEBOUNCE_SCROLL_WAIT))},n.prototype.bindFacetsMobileModeEvents=function(){var n=this.facetsMobileModeComponent;n&&(this.dropdown.registerOnOpenHandler(function(){return r.$$(n.element).trigger(c.FacetsMobileModeEvents.popupOpened)},n),this.dropdown.registerOnCloseHandler(function(){return r.$$(n.element).trigger(c.FacetsMobileModeEvents.popupClosed)},n))},n.prototype.restoreFacetPreservePositionValue=function(){var n=this;u.each(this.componentsInFacetColumn,function(t,i){t.options&&(t.options.preservePosition=n.preservePositionOriginalValues[i])})},n.prototype.disableFacetPreservePosition=function(){u.each(this.componentsInFacetColumn,function(n){n.options&&(n.options.preservePosition=!1)})},n.prototype.isFacetSearchScrolledIntoView=function(n){var i=n.getBoundingClientRect().top,r=n.getBoundingClientRect().bottom,t=this.dropdown.dropdownContent.element.el.getBoundingClientRect().top,u=this.dropdown.dropdownContent.element.el.getBoundingClientRect().bottom;return t=t>=0?t:0,i>=t&&r<=u},n.prototype.getDropdownHeaderLabel=function(){var t;return k.ComponentsTypes.getAllFacetInstancesFromElement(this.coveoRoot.find(".coveo-facet-column")).forEach(function(n){var i=n.options;!t&&i.dropdownHeaderLabel&&(t=i.dropdownHeaderLabel)}),t||(t=o.l(n.DROPDOWN_HEADER_LABEL_DEFAULT_VALUE)),t},n.prototype.handleNoResults=function(){this.dropdown.dropdownHeader.hide()},n.prototype.handleQueryError=function(){this.dropdown.dropdownHeader.hide()},n.prototype.handleQuerySuccess=function(n){0===n.results.totalCount?this.dropdown.dropdownHeader.hide():this.dropdown.dropdownHeader.show()},n.DEBOUNCE_SCROLL_WAIT=250,n.logger=new l.Logger("ResponsiveFacets"),n.DROPDOWN_MIN_WIDTH=280,n.DROPDOWN_WIDTH_RATIO=.35,n.DROPDOWN_HEADER_LABEL_DEFAULT_VALUE="Filters",n}();t.ResponsiveFacetColumn=nt},function(n,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var e=i(74),u=i(4),o=i(172),h=i(5),s=i(40),r=i(0),f=i(184),c=function(){function n(n,t){void 0===t&&(t=!0);this.facet=n;this.shouldEscapeValueInFieldExpression=t}return n.prototype.prepareForNewQuery=function(){this.lastGroupByRequestIndex=void 0;this.expressionToUseForFacetSearch=void 0;this.constantExpressionToUseForFacetSearch=void 0},n.prototype.computeOurFilterExpression=function(){var f=this,n=new e.ExpressionBuilder,t=this.facet.values.getSelected(),i;return t.length>0&&(this.facet.options.useAnd?r.each(t,function(t){n.addFieldExpression(f.facet.options.field,"==",[t.value],f.shouldEscapeValueInFieldExpression)}):n.addFieldExpression(this.facet.options.field,"==",r.map(t,function(n){return n.value}),this.shouldEscapeValueInFieldExpression)),i=this.facet.values.getExcluded(),i.length>0&&n.addFieldNotEqualExpression(this.facet.options.field,r.map(i,function(n){return n.value}),!0),u.Utils.isNonEmptyString(this.facet.options.additionalFilter)&&n.add(this.facet.options.additionalFilter),n.build()},n.prototype.putGroupByIntoQueryBuilder=function(n){var i;h.Assert.exists(n);var e=this.createGroupByAllowedValues(),r=this.createBasicGroupByRequest(e),t=this.createGroupByQueryOverride(n);u.Utils.isNullOrUndefined(t)&&f.QueryBuilderExpression.isEmpty(t)?(i=n.computeCompleteExpressionParts(),this.expressionToUseForFacetSearch=null==i.withoutConstant?"":i.withoutConstant,this.basicExpressionToUseForFacetSearch=null==i.basic?"":i.basic,this.advancedExpressionToUseForFacetSearch=i.advanced,this.constantExpressionToUseForFacetSearch=i.constant):(r.queryOverride=t.basic,r.advancedQueryOverride=t.advanced,r.constantQueryOverride=t.constant,this.expressionToUseForFacetSearch=t.withoutConstant,this.basicExpressionToUseForFacetSearch=t.basic,this.advancedExpressionToUseForFacetSearch=t.advanced,this.constantExpressionToUseForFacetSearch=t.constant);this.lastGroupByRequestIndex=n.groupByRequests.length;this.lastGroupByRequest=r;n.groupByRequests.push(r)},n.prototype.search=function(n,t){var i=this;return void 0===t&&(t=n.nbResults),n.completeFacetWithStandardValues=!1,new Promise(function(u,f){var o=function(r){var f=r.length;if(r=i.checkForFacetSearchValuesToRemove(r,n.valueToSearch),s.FacetUtils.needAnotherFacetSearch(r.length,f,t,5))return n.nbResults+=5,i.search(n,r.length);u(r)},e=i.facet.getEndpoint().search(n.getQuery());i.currentSearchPromise=e;e.then(function(t){if(i.currentSearchPromise==e){var u=[];t.groupByResults&&t.groupByResults[0]&&r.each(t.groupByResults[0].values,function(t){t.lookupValue?r.contains(n.alwaysExclude,t.lookupValue.toLowerCase())||u.push(t):r.contains(n.alwaysExclude,t.value.toLowerCase())||u.push(t)});o(r.first(u,n.nbResults))}else f()}).catch(function(n){f(n)})})},n.prototype.fetchMore=function(n){var i=this,t=new o.FacetSearchParameters(this.facet);return t.alwaysInclude=this.facet.options.allowedValues||r.pluck(this.facet.values.getAll(),"value"),t.nbResults=n,this.facet.getEndpoint().search(t.getQuery()).then(function(n){return i.facet.options.allowedValues&&n&&n.groupByResults&&n.groupByResults[0]&&(n.groupByResults[0].values=i.filterByAllowedValueOption(n.groupByResults[0].values)),n})},n.prototype.searchInFacetToUpdateDelta=function(n){var i=new o.FacetSearchParameters(this.facet),t=i.getQuery();return t.aq=(t.aq?t.aq:"")+" "+this.computeOurFilterExpression(),r.each(n,function(n){n.waitingForDelta=!0}),t.groupBy=[this.createBasicGroupByRequest(r.map(n,function(n){return n.value}))],t.groupBy[0].completeFacetWithStandardValues=!1,this.facet.getEndpoint().search(t)},n.prototype.createGroupByAllowedValues=function(){return void 0!=this.facet.options.allowedValues?this.facet.options.allowedValues:void 0!=this.facet.options.customSort?this.getUnionWithCustomSortLowercase(this.facet.options.customSort,this.getAllowedValuesFromSelected()):r.map(this.getAllowedValuesFromSelected(),function(n){return n.value})},n.prototype.createBasicGroupByRequest=function(n,t){var r,f,i;return void 0===t&&(t=!0),r=this.facet.numberOfValues,null!=this.facet.options.customSort&&(f=this.getUnionWithCustomSortLowercase(this.facet.options.customSort,this.facet.values.getSelected().concat(this.facet.values.getExcluded())),r=Math.max(r,f.length)),i={field:this.facet.options.field,maximumNumberOfValues:r+(this.facet.options.enableMoreLess?1:0),sortCriteria:this.facet.options.sortCriteria,injectionDepth:this.facet.options.injectionDepth,completeFacetWithStandardValues:void 0==this.facet.options.allowedValues},this.facet.options.lookupField&&(i.lookupField=this.facet.options.lookupField),null!=n&&(i.allowedValues=n),t&&u.Utils.isNonEmptyString(this.facet.options.computedField)&&(i.computedFields=[{field:this.facet.options.computedField,operation:this.facet.options.computedFieldOperation}]),i},n.prototype.getAllowedValuesFromSelected=function(){var n=[];if(this.facet.options.useAnd||!this.facet.keepDisplayedValuesNextTime){if(0==this.facet.values.getSelected().length)return;n=this.facet.values.getSelected()}else n=this.facet.values.getAll();return n},Object.defineProperty(n.prototype,"additionalFilter",{get:function(){return this.facet.options.additionalFilter?this.facet.options.additionalFilter:""},enumerable:!0,configurable:!0}),n.prototype.getUnionWithCustomSortLowercase=function(n,t){var i=r.map(n,function(n){return n.toLowerCase()}),u=r.chain(t).filter(function(n){return!r.contains(i,n.value.toLowerCase())}).map(function(n){return n.value}).value();return r.compact(n.concat(u))},n.prototype.createGroupByQueryOverride=function(n){var t=n.computeCompleteExpressionParts();return this.queryOverrideIsNeededForMultiSelection()?t=this.processQueryOverrideForMultiSelection(n,t):t.reset(),this.queryOverrideIsNeededForAdditionalFilter()&&(t=this.processQueryOverrideForAdditionalFilter(n,t)),t=this.processQueryOverrideForEmptyValues(n,t),f.QueryBuilderExpression.isEmpty(t)?null:t},n.prototype.queryOverrideIsNeededForMultiSelection=function(){return!this.facet.options.useAnd&&!!this.facet.values.hasSelectedOrExcludedValues()},n.prototype.queryOverrideIsNeededForAdditionalFilter=function(){return u.Utils.isNonEmptyString(this.additionalFilter)},n.prototype.processQueryOverrideForMultiSelection=function(n,t){if(this.facet.values.hasSelectedOrExcludedValues()){var i=this.computeOurFilterExpression();t=n.computeCompleteExpressionPartsExcept(i);f.QueryBuilderExpression.isEmpty(t)&&(t.advanced="@uri")}return t},n.prototype.processQueryOverrideForAdditionalFilter=function(n,t){if(u.Utils.isEmptyString(t.basic)&&(t.basic=n.expression.build()),u.Utils.isEmptyString(t.constant)){var i=n.constantExpression.isEmpty()?"":n.constantExpression.build()+" ";t.constant=""+i+this.additionalFilter}else t.constant=t.constant+" "+this.additionalFilter;return t.advanced||(t.advanced=this.getFilterExpressionWithoutOurFilterExpression(n)),t},n.prototype.getFilterExpressionWithoutOurFilterExpression=function(n){var t=new e.ExpressionBuilder,i;return n.advancedExpression.getParts().forEach(function(n){return t.add(n)}),i=this.computeOurFilterExpression(),t.remove(i),t.build()},n.prototype.processQueryOverrideForEmptyValues=function(n,t){var i=r.chain(t).keys().each(function(n){(u.Utils.isEmptyString(t[n])||u.Utils.isNullOrUndefined(t[n]))&&delete t[n]}).value();return 0==r.keys(i).length&&(t=void 0),t},n.prototype.checkForFacetSearchValuesToRemove=function(n,t){var i=this,u=s.FacetUtils.getRegexToUseForFacetSearch(t,this.facet.options.facetSearchIgnoreAccents);return r.filter(n,function(n){var t=r.isEmpty(i.facet.options.allowedValues)||i.isValueAllowedByAllowedValueOption(n.value),f=i.facet.getValueCaption(n);return t&&u.test(f)})},n.prototype.filterByAllowedValueOption=function(n){var t=this;return r.filter(n,function(n){return t.isValueAllowedByAllowedValueOption(n.value)})},n.prototype.isValueAllowedByAllowedValueOption=function(n){var t=this;return r.some(this.facet.options.allowedValues,function(i){var r=t.replaceWildcardsWithRegexEquivalent(t.escapeMostRegexCharacters(i));return new RegExp("^"+r+"$","gi").test(n)})},n.prototype.escapeMostRegexCharacters=function(n){return n.replace(/[.+^${}()|[\]\\]/g,"\\$&")},n.prototype.replaceWildcardsWithRegexEquivalent=function(n){return n.replace(/\*/g,".*").replace(/\?/g,".")},n}();t.FacetQueryController=c},function(n,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.ExpressionEndOfInput={id:"end of input",parse:null}},function(n,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=i(52),u=i(52),f=function(){function n(n,t){this.value=n;this.id=t}return n.prototype.parse=function(n,t){var i=0==n.indexOf(this.value),f=new r.Result(i?this.value:null,this,n);return i&&t&&n.length>this.value.length?new u.EndOfInputResult(f):f},n.prototype.toString=function(){return this.value},n}();t.ExpressionConstant=f},function(n,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=i(132),u=i(500);t.Field={basicExpressions:["FieldSimpleQuery","FieldQuery","Field"],grammars:{FieldQuery:"[Field][OptionalSpaces][FieldQueryOperation]",FieldQueryOperation:["FieldQueryValue","FieldQueryNumeric"],FieldQueryValue:"[FieldOperator][OptionalSpaces][FieldValue]",FieldQueryNumeric:"[FieldOperatorNumeric][OptionalSpaces][FieldValueNumeric]",FieldSimpleQuery:"[FieldName]:[OptionalSpaces][FieldValue]",Field:"@[FieldName]",FieldName:/[a-zA-Z][a-zA-Z0-9\.\_]*/,FieldOperator:/==|=|<>/,FieldOperatorNumeric:/<=|>=|<|>/,FieldValue:["DateRange","NumberRange","DateRelative","Date","Number","FieldValueList","FieldValueString"],FieldValueNumeric:["DateRelative","Date","Number"],FieldValueString:["DoubleQuoted","FieldValueNotQuoted"],FieldValueList:"([FieldValueString][FieldValueStringList*])",FieldValueStringList:"[FieldValueSeparator][FieldValueString]",FieldValueSeparator:/ *, */,FieldValueNotQuoted:/[^ \(\)\[\],]+/,NumberRange:"[Number][Spaces?]..[Spaces?][Number]"},include:[u.Date,r.Basic]}},function(n,t,i){"use strict";var u=this&&this.__awaiter||function(n,t,i,r){return new(i||(i=Promise))(function(u,f){function o(n){try{e(r.next(n))}catch(n){f(n)}}function s(n){try{e(r.throw(n))}catch(n){f(n)}}function e(n){n.done?u(n.value):new i(function(t){t(n.value)}).then(o,s)}e((r=r.apply(n,t||[])).next())})},f=this&&this.__generator||function(n,t){function f(n){return function(t){return s([n,t])}}function s(f){if(e)throw new TypeError("Generator is already executing.");for(;r;)try{if(e=1,u&&(i=u[2&f[0]?"return":f[0]?"throw":"next"])&&!(i=i.call(u,f[1])).done)return i;switch(u=0,i&&(f=[0,i.value]),f[0]){case 0:case 1:i=f;break;case 4:return r.label++,{value:f[1],done:!1};case 5:r.label++;u=f[1];f=[0];continue;case 7:f=r.ops.pop();r.trys.pop();continue;default:if(i=r.trys,!(i=i.length>0&&i[i.length-1])&&(6===f[0]||2===f[0])){r=0;continue}if(3===f[0]&&(!i||f[1]>i[0]&&f[1]<i[3])){r.label=f[1];break}if(6===f[0]&&r.label<i[1]){r.label=i[1];i=f;break}if(i&&r.label<i[2]){r.label=i[2];r.ops.push(f);break}i[2]&&r.ops.pop();r.trys.pop();continue}f=t.call(n,r)}catch(n){f=[6,n];u=0}finally{e=i=0}if(5&f[0])throw f[1];return{value:f[0]?f[1]:void 0,done:!0}}var e,u,i,o,r={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:f(0),"throw":f(1),"return":f(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o},c;Object.defineProperty(t,"__esModule",{value:!0});var e,o=i(0),s=i(34),l=i(7),r=i(1),a=i(563),h=i(504),v=i(21);!function(n){n.Up="Up";n.Down="Down";n.Left="Left";n.Right="Right"}(e=t.Direction||(t.Direction={}));c=function(){function n(n,t,i,u){var f=this;this.element=n;this.magicBoxContainer=t;this.inputManager=i;this.suggestionListboxID="coveo-magicbox-suggestions-"+v.QueryUtils.createGuid();this.suggestionListboxClassName="coveo-magicbox-suggestions";this.root=l.Component.resolveRoot(n);this.options=o.defaults(u,{suggestionClass:"magic-box-suggestion",selectedClass:"magic-box-selected"});void 0==this.options.timeout&&(this.options.timeout=500);r.$$(this.element).on("mouseover",function(n){f.handleMouseOver(n)});r.$$(this.element).on("mouseout",function(n){f.handleMouseOut(n)});this.suggestionsProcessor=new h.QueryProcessor({timeout:this.options.timeout});this.resultPreviewsManager=new a.ResultPreviewsManager(n,{selectedClass:this.options.selectedClass,timeout:this.options.timeout});this.suggestionsListbox=this.buildSuggestionsContainer();r.$$(this.element).append(this.suggestionsListbox.el);this.addAccessibilityProperties();this.appendEmptySuggestionOption()}return Object.defineProperty(n.prototype,"hasSuggestions",{get:function(){return this.currentSuggestions&&this.currentSuggestions.length>0},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"hasFocus",{get:function(){return r.$$(this.element).findClass(this.options.selectedClass).length>0},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"hasPreviews",{get:function(){return this.resultPreviewsManager.hasPreviews},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"focusedSuggestion",{get:function(){var n=this;return o.find(this.currentSuggestions,function(t){return r.$$(t.dom).hasClass(n.options.selectedClass)||r.$$(t.dom).findClass(n.options.selectedClass).length>0})},enumerable:!0,configurable:!0}),n.prototype.handleMouseOver=function(n){var t=r.$$(n.target),i=t.parents(this.options.suggestionClass);t.hasClass(this.options.suggestionClass)?this.processMouseSelection(t.el):i.length>0&&this.element.contains(i[0])&&this.processMouseSelection(i[0])},n.prototype.handleMouseOut=function(n){var t=r.$$(n.target),i=t.parents(this.options.suggestionClass),u;n.relatedTarget&&r.$$(n.relatedTarget).isValid()?(u=r.$$(n.relatedTarget).parents(this.options.suggestionClass),t.hasClass(this.options.selectedClass)&&!r.$$(n.relatedTarget).hasClass(this.options.suggestionClass)?this.removeSelectedStatus(t.el):0==u.length&&i.length>0&&this.removeSelectedStatus(i[0])):t.hasClass(this.options.selectedClass)?this.removeSelectedStatus(t.el):i.length>0&&this.removeSelectedStatus(i[0]);r.$$(this.root).trigger(s.OmniboxEvents.querySuggestLoseFocus)},n.prototype.moveDown=function(){return u(this,void 0,void 0,function(){return f(this,function(n){switch(n.label){case 0:return[4,this.move(e.Down)];case 1:return n.sent(),[2]}})})},n.prototype.moveUp=function(){return u(this,void 0,void 0,function(){return f(this,function(n){switch(n.label){case 0:return[4,this.move(e.Up)];case 1:return n.sent(),[2]}})})},n.prototype.moveLeft=function(){return u(this,void 0,void 0,function(){return f(this,function(n){switch(n.label){case 0:return[4,this.move(e.Left)];case 1:return n.sent(),[2]}})})},n.prototype.moveRight=function(){return u(this,void 0,void 0,function(){return f(this,function(n){switch(n.label){case 0:return[4,this.move(e.Right)];case 1:return n.sent(),[2]}})})},n.prototype.selectAndReturnKeyboardFocusedElement=function(){var n=this.keyboardFocusedElement;return n&&(r.$$(n).trigger("keyboardSelect"),this.keyboardFocusedElement=null,this.inputManager.blur()),n},n.prototype.clearKeyboardFocusedElement=function(){this.keyboardFocusedElement=null},n.prototype.receiveSuggestions=function(n){return u(this,void 0,void 0,function(){var t,i,r;return f(this,function(u){switch(u.label){case 0:return[4,this.suggestionsProcessor.processQueries(n)];case 1:return t=u.sent(),(i=t.results,r=t.status,r===h.ProcessingStatus.Overriden)?[2,[]]:(this.updateSuggestions(i),[2,i])}})})},n.prototype.clearSuggestions=function(){this.updateSuggestions([])},n.prototype.updateSuggestions=function(n){var t=this,i;if(this.suggestionsListbox.empty(),this.inputManager.activeDescendant=null,this.currentSuggestions=n,r.$$(this.element).toggleClass("magic-box-hasSuggestion",this.hasSuggestions),this.inputManager.expanded=this.hasSuggestions,this.resultPreviewsManager.displaySearchResultPreviewsForSuggestion(null),!this.hasSuggestions)return this.appendEmptySuggestionOption(),void r.$$(this.root).trigger(s.OmniboxEvents.querySuggestLoseFocus);n.sort(function(n,t){return(t.index||0)-(n.index||0)}).forEach(function(i){var r=i.dom?t.modifyDomFromExistingSuggestion(i.dom):t.createDomFromSuggestion(i);r.setAttribute("id","magic-box-suggestion-"+o.indexOf(n,i));r.setAttribute("role","option");r.setAttribute("aria-selected","false");r.setAttribute("aria-label",r.text());r.suggestion=i;t.suggestionsListbox.append(r.el)});i=this.suggestionsListbox.findAll("."+this.options.suggestionClass).length;r.$$(this.root).trigger(s.OmniboxEvents.querySuggestRendered,{numberOfSuggestions:i})},Object.defineProperty(n.prototype,"selectedSuggestion",{get:function(){return this.htmlElementIsSuggestion(this.keyboardFocusedElement)?this.returnMoved(this.keyboardFocusedElement):null},enumerable:!0,configurable:!0}),n.prototype.processKeyboardSelection=function(n){return u(this,void 0,void 0,function(){return f(this,function(t){switch(t.label){case 0:return this.addSelectedStatus(n),this.keyboardFocusedElement=n,[4,this.updateSelectedSuggestion(this.focusedSuggestion)];case 1:return t.sent(),[2]}})})},n.prototype.processKeyboardPreviewSelection=function(n){this.addSelectedStatus(n);this.keyboardFocusedElement=n},n.prototype.processMouseSelection=function(n){this.addSelectedStatus(n);this.updateSelectedSuggestion(this.focusedSuggestion);this.keyboardFocusedElement=null},n.prototype.buildSuggestionsContainer=function(){return r.$$("div",{className:this.suggestionListboxClassName,id:this.suggestionListboxID,role:"listbox",ariaLabel:"Search Suggestions"})},n.prototype.createDomFromSuggestion=function(n){var i=this,t=r.$$("div",{className:"magic-box-suggestion "+this.options.suggestionClass}),u;return(n.dom=t.el,t.on("click",function(){i.selectSuggestion(n)}),t.on("keyboardSelect",function(){i.selectSuggestion(n)}),n.html)?(t.el.innerHTML=n.html,t):n.text?(t.text(n.text),t):n.separator?(t.addClass("magic-box-suggestion-seperator"),u=r.$$("div",{className:"magic-box-suggestion-seperator-label"},n.separator),t.append(u.el),t):t},n.prototype.selectSuggestion=function(n){n.onSelect();r.$$(this.root).trigger(s.OmniboxEvents.querySuggestSelection,{suggestion:n.text})},n.prototype.appendEmptySuggestionOption=function(){this.suggestionsListbox.append(r.$$("div",{role:"option"}).el)},n.prototype.modifyDomFromExistingSuggestion=function(n){this.removeSelectedStatus(n);var t=n.classList.contains(this.options.suggestionClass)?n:r.$$(n).find("."+this.options.suggestionClass);return this.removeSelectedStatus(t),r.$$(n)},n.prototype.move=function(n){return u(this,void 0,void 0,function(){var t;return f(this,function(i){switch(i.label){case 0:return this.resultPreviewsManager.focusedPreviewElement?[4,this.moveWithinPreview(n)]:[3,2];case 1:return i.sent(),[2];case 2:return n!==e.Right&&n!==e.Left||!(t=this.resultPreviewsManager.previewElements[0])?[4,this.moveWithinSuggestion(n)]:(this.processKeyboardPreviewSelection(t),[2]);case 3:return i.sent(),[2]}})})},n.prototype.moveWithinSuggestion=function(n){return u(this,void 0,void 0,function(){var s,t,u,i;return f(this,function(f){switch(f.label){case 0:return s=r.$$(this.element).find("."+this.options.selectedClass),t=r.$$(this.element).findAll("."+this.options.suggestionClass),u=o.indexOf(t,s),i=n===e.Up?u-1:u+1,i=(i+t.length)%t.length,[4,this.selectQuerySuggest(t[i])];case 1:return f.sent(),[2]}})})},n.prototype.selectQuerySuggest=function(n){return u(this,void 0,void 0,function(){return f(this,function(t){switch(t.label){case 0:return n?[4,this.processKeyboardSelection(n)]:[3,2];case 1:return t.sent(),[3,3];case 2:this.keyboardFocusedElement=null;this.inputManager.input.removeAttribute("aria-activedescendant");t.label=3;case 3:return[2,n]}})})},n.prototype.moveWithinPreview=function(n){return u(this,void 0,void 0,function(){var t;return f(this,function(i){switch(i.label){case 0:return t=this.resultPreviewsManager.getElementInDirection(n),t?[3,2]:[4,this.selectQuerySuggest(this.resultPreviewsManager.previewsOwner.dom)];case 1:return i.sent(),[2];case 2:return this.processKeyboardPreviewSelection(t),[2]}})})},n.prototype.returnMoved=function(n){if(n){if(n.suggestion)return n.suggestion;if(n["no-text-suggestion"])return null;if(n instanceof HTMLElement)return{text:r.$$(n).text()}}return null},n.prototype.addSelectedStatus=function(n){for(var u,i=this.element.getElementsByClassName(this.options.selectedClass),t=0;t<i.length;t++)u=i.item(t),this.removeSelectedStatus(u);r.$$(n).addClass(this.options.selectedClass);this.updateAreaSelectedIfDefined(n,"true")},n.prototype.updateSelectedSuggestion=function(n){return u(this,void 0,void 0,function(){return f(this,function(t){switch(t.label){case 0:return r.$$(this.root).trigger(s.OmniboxEvents.querySuggestGetFocus,{suggestion:n.text}),[4,this.resultPreviewsManager.displaySearchResultPreviewsForSuggestion(n)];case 1:return t.sent(),[2]}})})},n.prototype.removeSelectedStatus=function(n){r.$$(n).removeClass(this.options.selectedClass);this.updateAreaSelectedIfDefined(n,"false")},n.prototype.updateAreaSelectedIfDefined=function(n,t){r.$$(n).getAttribute("aria-selected")&&(this.inputManager.activeDescendant=n,r.$$(n).setAttribute("aria-selected",t))},n.prototype.addAccessibilityProperties=function(){this.addAccessibilityPropertiesForMagicBox();this.addAccessibilityPropertiesForInput()},n.prototype.addAccessibilityPropertiesForMagicBox=function(){var n=r.$$(this.magicBoxContainer);n.setAttribute("role","search");n.setAttribute("aria-haspopup","listbox")},n.prototype.addAccessibilityPropertiesForInput=function(){var n=r.$$(this.inputManager.input);this.inputManager.activeDescendant=null;this.inputManager.expanded=!1;n.setAttribute("aria-owns",this.suggestionListboxID);n.setAttribute("aria-controls",this.suggestionListboxID)},n.prototype.htmlElementIsSuggestion=function(n){var t=r.$$(this.element).findAll("."+this.options.suggestionClass);return o.indexOf(t,n)>-1},n}();t.SuggestionsManager=c},function(n,t,i){"use strict";function h(n,t,i){return new s(n,t,i)}function c(n){return"requestAnimationFrame"in window?window.requestAnimationFrame(n):setTimeout(n)}var e=this&&this.__awaiter||function(n,t,i,r){return new(i||(i=Promise))(function(u,f){function o(n){try{e(r.next(n))}catch(n){f(n)}}function s(n){try{e(r.throw(n))}catch(n){f(n)}}function e(n){n.done?u(n.value):new i(function(t){t(n.value)}).then(o,s)}e((r=r.apply(n,t||[])).next())})},o=this&&this.__generator||function(n,t){function f(n){return function(t){return s([n,t])}}function s(f){if(e)throw new TypeError("Generator is already executing.");for(;r;)try{if(e=1,u&&(i=u[2&f[0]?"return":f[0]?"throw":"next"])&&!(i=i.call(u,f[1])).done)return i;switch(u=0,i&&(f=[0,i.value]),f[0]){case 0:case 1:i=f;break;case 4:return r.label++,{value:f[1],done:!1};case 5:r.label++;u=f[1];f=[0];continue;case 7:f=r.ops.pop();r.trys.pop();continue;default:if(i=r.trys,!(i=i.length>0&&i[i.length-1])&&(6===f[0]||2===f[0])){r=0;continue}if(3===f[0]&&(!i||f[1]>i[0]&&f[1]<i[3])){r.label=f[1];break}if(6===f[0]&&r.label<i[1]){r.label=i[1];i=f;break}if(i&&r.label<i[2]){r.label=i[2];r.ops.push(f);break}i[2]&&r.ops.pop();r.trys.pop();continue}f=t.call(n,r)}catch(n){f=[6,n];u=0}finally{e=i=0}if(5&f[0])throw f[1];return{value:f[0]?f[1]:void 0,done:!0}}var e,u,i,o,r={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:f(0),"throw":f(1),"return":f(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o};Object.defineProperty(t,"__esModule",{value:!0});var f=i(0),r=i(20),u=i(1),l=i(561),a=i(503),v=i(564),y=i(220),s=function(){function n(n,t,i){var r,e,s,o;void 0===i&&(i={});r=this;this.element=n;this.grammar=t;this.options=i;this.lastSuggestions=[];f.isUndefined(this.options.inline)&&(this.options.inline=!1);u.$$(n).addClass("magic-box");this.options.inline&&u.$$(n).addClass("magic-box-inline");this.result=this.grammar.parse("");this.displayedResult=this.result.clean();e=u.$$(n).find(".magic-box-input");e||(e=document.createElement("div"),e.className="magic-box-input",n.appendChild(e));this.inputManager=new a.InputManager(e,function(n,t){t?(r.setText(n),r.onselect&&r.onselect(r.firstSuggestionWithText)):(r.setText(n),r.addSuggestions(),r.onchange&&r.onchange())},this);this.inputManager.ontabpress=function(){r.ontabpress&&r.ontabpress()};s=this.inputManager.getValue();s&&(this.displayedResult.input=s);this.inputManager.setResult(this.displayedResult);o=document.createElement("div");o.className="magic-box-suggestions";this.element.appendChild(o);this.suggestionsManager=new y.SuggestionsManager(o,this.element,this.inputManager,{suggestionClass:this.options.selectableSuggestionClass,selectedClass:this.options.selectedSuggestionClass,timeout:this.options.suggestionTimeout});this.magicBoxClear=new v.MagicBoxClear(this);this.setupHandler()}return Object.defineProperty(n.prototype,"firstSuggestionWithText",{get:function(){return f.find(this.lastSuggestions,function(n){return n.text})},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"firstSuggestionText",{get:function(){var n=this.firstSuggestionWithText;return n?n.text:""},enumerable:!0,configurable:!0}),n.prototype.getResult=function(){return this.result},n.prototype.getDisplayedResult=function(){return this.displayedResult},n.prototype.setText=function(n){u.$$(this.element).toggleClass("magic-box-notEmpty",n.length>0);this.magicBoxClear.toggleTabindexAndAriaHidden(n.length>0);this.result=this.grammar.parse(n);this.displayedResult=this.result.clean();this.inputManager.setResult(this.displayedResult)},n.prototype.setCursor=function(n){this.inputManager.setCursor(n)},n.prototype.getCursor=function(){return this.inputManager.getCursor()},n.prototype.resultAtCursor=function(n){return this.displayedResult.resultAt(this.getCursor(),n)},n.prototype.setupHandler=function(){var n=this;this.inputManager.onblur=function(){u.$$(n.element).removeClass("magic-box-hasFocus");n.onblur&&n.onblur();n.options.inline||n.clearSuggestion()};this.inputManager.onfocus=function(){u.$$(n.element).addClass("magic-box-hasFocus");n.addSuggestions();n.onfocus&&n.onfocus()};this.inputManager.onkeydown=function(t){return n.shouldMoveInSuggestions(t)?!1:t===r.KEYBOARD.ENTER?(null==n.suggestionsManager.selectAndReturnKeyboardFocusedElement()&&n.onsubmit&&n.onsubmit(),!1):(t===r.KEYBOARD.ESCAPE?(n.clearSuggestion(),n.blur()):n.suggestionsManager.clearKeyboardFocusedElement(),!0)};this.inputManager.onchangecursor=function(){n.addSuggestions()};this.inputManager.onkeyup=function(t){if(n.onmove&&n.onmove(),!n.shouldMoveInSuggestions(t))return!0;switch(t){case r.KEYBOARD.UP_ARROW:n.suggestionsManager.moveUp();break;case r.KEYBOARD.DOWN_ARROW:n.suggestionsManager.moveDown();break;case r.KEYBOARD.LEFT_ARROW:n.suggestionsManager.moveLeft();break;case r.KEYBOARD.RIGHT_ARROW:n.suggestionsManager.moveRight()}return n.suggestionsManager.selectedSuggestion&&n.focusOnSuggestion(n.suggestionsManager.selectedSuggestion),n.onchange&&n.onchange(),!1}},n.prototype.addSuggestions=function(){return e(this,void 0,void 0,function(){var n;return o(this,function(t){switch(t.label){case 0:return[4,this.suggestionsManager.receiveSuggestions(null!=this.getSuggestions?this.getSuggestions():[])];case 1:return n=t.sent(),this.addSelectEventHandlers(n),this.inputManager.setWordCompletion(this.firstSuggestionText),this.onSuggestions(n),[2]}})})},n.prototype.shouldMoveInSuggestions=function(n){switch(n){case r.KEYBOARD.UP_ARROW:case r.KEYBOARD.DOWN_ARROW:return!0;case r.KEYBOARD.LEFT_ARROW:case r.KEYBOARD.RIGHT_ARROW:if(this.suggestionsManager.hasFocus&&this.suggestionsManager.hasPreviews)return!0}return!1},n.prototype.addSelectEventHandlers=function(n){var t=this;f.each(n,function(n){null==n.onSelect&&null!=n.text&&(n.onSelect=function(){t.setText(n.text);t.onselect&&t.onselect(n)})})},n.prototype.focus=function(){u.$$(this.element).addClass("magic-box-hasFocus");this.inputManager.focus()},n.prototype.blur=function(){this.inputManager.blur()},n.prototype.clearSuggestion=function(){return e(this,void 0,void 0,function(){return o(this,function(){return this.inputManager.setWordCompletion(null),this.suggestionsManager.clearSuggestions(),this.onSuggestions([]),[2]})})},n.prototype.focusOnSuggestion=function(n){null==n||null==n.text?this.inputManager.setResult(this.displayedResult,this.firstSuggestionText):this.inputManager.setResult(this.grammar.parse(n.text).clean(),n.text)},n.prototype.getText=function(){return this.inputManager.getValue()},n.prototype.getWordCompletion=function(){return this.inputManager.getWordCompletion()},n.prototype.clear=function(){this.setText("");this.clearSuggestion();this.focus();this.onclear&&this.onclear()},n.prototype.hasSuggestions=function(){return this.suggestionsManager.hasSuggestions},n}();t.MagicBoxInstance=s;t.createMagicBox=h;t.requestAnimationFrame=c;l.doMagicBoxExport()},function(n,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=i(0),u=function(){function n(){}return n.escapeRegExp=function(n){return n.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")},n.highlightText=function(n,t,i,r,u){var e=this;if(void 0===i&&(i=!1),void 0===r&&(r="magic-box-hightlight"),void 0===u&&(u=""),0==t.length)return n;var f=this.escapeRegExp(t),o="("+f+")|(.*?(?="+f+")|.+)",s=new RegExp(o,i?"gi":"g");return n.replace(s,function(n,t){return e.escapeText(null!=t?r:u,n)})},n.escapeText=function(n,t){return'<span class="'+n+'">'+r.escape(t)+"<\/span>"},n}();t.MagicBoxUtils=u},function(){},function(n,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=i(1),u=function(){function n(n){var t=r.$$("button",{className:n.className,ariaLabel:n.ariaLabel,type:"button"},n.label);this.element=r.$$("li",{role:"none"},t).el;t.on("click",function(){return n.action()})}return n}();t.DynamicFacetValueShowMoreLessButton=u},function(n,t,i){"use strict";var u=this&&this.__assign||Object.assign||function(n){for(var t,r,i=1,u=arguments.length;i<u;i++){t=arguments[i];for(r in t)Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n};Object.defineProperty(t,"__esModule",{value:!0});var e=i(23),r=i(71),f=i(10),o=i(6),s=i(183),h=function(){function n(n,t,i){this.facet=t;this.element=null;this.value=n.value;this.start=n.start;this.end=n.end;this.endInclusive=n.endInclusive;this.state=n.state;this.numberOfResults=n.numberOfResults;this.position=n.position;this.displayValue=n.displayValue;this.renderer=new i(this,t)}return Object.defineProperty(n.prototype,"isSelected",{get:function(){return this.state===r.FacetValueState.selected},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"isIdle",{get:function(){return this.state===r.FacetValueState.idle},enumerable:!0,configurable:!0}),n.prototype.toggleSelect=function(){this.state===r.FacetValueState.selected?this.deselect():this.select()},n.prototype.select=function(){this.state=r.FacetValueState.selected},n.prototype.deselect=function(){this.state=r.FacetValueState.idle},n.prototype.equals=function(n){return("string"==typeof n?n:n.value).toLowerCase()===this.value.toLowerCase()},n.prototype.focus=function(){if(this.renderedElement){var n=this.renderedElement.querySelector(".coveo-checkbox-button");n&&n.focus()}},Object.defineProperty(n.prototype,"formattedCount",{get:function(){return e.format(this.numberOfResults,"n0")},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"selectAriaLabel",{get:function(){var n=o.l("ResultCount",this.formattedCount,this.numberOfResults);return this.displayValue+" "+n},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"isRange",{get:function(){return this.facet.facetType!==s.FacetType.specific},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"analyticsValue",{get:function(){return this.isRange?this.start+".."+this.end:this.value},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"rangeFacetState",{get:function(){return this.isRange?{start:""+this.start,end:""+this.end,endInclusive:this.endInclusive}:null},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"analyticsFacetState",{get:function(){return u({},this.facet.basicAnalyticsFacetState,this.rangeFacetState,{value:this.analyticsValue,valuePosition:this.position,displayValue:this.displayValue,state:this.state})},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"rangeFacetMeta",{get:function(){return this.isRange?{facetRangeStart:""+this.start,facetRangeEnd:""+this.end,facetRangeEndInclusive:this.endInclusive}:null},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"analyticsFacetMeta",{get:function(){return u({},this.facet.basicAnalyticsFacetMeta,this.rangeFacetMeta,{facetValue:this.analyticsValue})},enumerable:!0,configurable:!0}),n.prototype.logSelectActionToAnalytics=function(){var n=this.state===r.FacetValueState.selected?f.analyticsActionCauseList.dynamicFacetSelect:f.analyticsActionCauseList.dynamicFacetDeselect;this.facet.logAnalyticsEvent(n,this.analyticsFacetMeta)},n.prototype.render=function(){return this.element=this.renderer.render(),this.element},Object.defineProperty(n.prototype,"renderedElement",{get:function(){return this.element?this.element:this.render()},enumerable:!0,configurable:!0}),n}();t.DynamicFacetValue=h},function(n,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function n(){}return n.buildURI=function(n,t,i){return n.replace(t,i)},n.bindClickEventToElement=function(n){return n},n}();t.ChatterUtils=i},function(n,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function n(){}return n.quickviewLoaded="quickviewLoaded",n.openQuickview="openQuickview",n}();t.QuickviewEvents=i},function(n,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.SUBSCRIPTION_TYPE={followQuery:"followQuery",followDocument:"followDocument"}},function(n,t,i){"use strict";function r(n){if(!n.answerSnippet)return"";try{return u.sanitize(n.answerSnippet,{USE_PROFILES:{html:!0}})}catch(t){return n.answerSnippet}}Object.defineProperty(t,"__esModule",{value:!0});var u=i(588),f=i(1),e=i(474);t.getDefaultSnippetStyle=function(n){return'\n  body {\n    font-family: "Lato", "Helvetica Neue", Helvetica, Arial, sans-serif, sans-serif;\n  }\n\n  .'+n+" > :first-child {\n    margin-top: 0;\n  }\n\n  ."+n+" > :last-child {\n    margin-bottom: 0;\n  }\n"};t.getSanitizedAnswerSnippet=r;t.transformSnippetLinks=function(n,t,i){f.Dom.nodeListToArray(n.querySelectorAll("a")).forEach(function(n){e.bindAnalyticsToLink(n,function(){return i(n)});n.target=t?"_blank":"_top"})}},function(n,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var u=i(87),r=i(1),e=i(98),f=i(0),o=function(){function n(n,t){this.inputName=n;this.root=t;this.buildContent()}return n.prototype.reset=function(){this.radio.reset()},n.prototype.build=function(){return this.element},n.prototype.getElement=function(){return this.element},n.prototype.isSelected=function(){return this.getRadio().checked},n.prototype.updateQuery=function(n){try{var t=this.getValue();t&&n.advancedExpression.add(t);this.removeErrorMessage()}catch(n){this.setErrorMessage(n)}},n.prototype.getRadio=function(){return r.$$(this.element).find("input")},n.prototype.setErrorMessage=function(n){this.removeErrorMessage();this.error=r.$$("div",{className:"coveo-error coveo-error-date-input"},n).el;r.$$(this.element).append(this.error)},n.prototype.removeErrorMessage=function(){this.error&&r.$$(this.error).remove()},n.prototype.buildContent=function(){var n=this;this.radio=new e.RadioButton(function(){n.deactivateAllInputs();n.activateSelectedInput()},this.inputName,"coveo-advanced-search-date-input");this.element=this.radio.getElement();r.$$(this.element).addClass("coveo-advanced-search-date-input-section");r.$$(this.radio.getRadio()).addClass("coveo-advanced-search-date");r.$$(this.radio.getLabel()).addClass("coveo-advanced-search-label")},n.prototype.deactivateAllInputs=function(){var n=r.$$(this.element.parentElement).findAll("fieldset");f.each(n,function(n){n.disabled=!0})},n.prototype.activateSelectedInput=function(){var n=r.$$(this.element).findAll("fieldset");f.each(n,function(n){n.disabled=!1})},n.prototype.onChange=function(){this.root?r.$$(this.root).trigger(u.AdvancedSearchEvents.executeAdvancedSearch):this.element&&r.$$(this.element).trigger(u.AdvancedSearchEvents.executeAdvancedSearch)},n}();t.DateInput=o},function(n,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=i(1),u=i(87),f=i(6),e=function(){function n(n,t){this.inputName=n;this.root=t}return n.prototype.reset=function(){},n.prototype.build=function(){var n=r.$$("div",{className:"coveo-advanced-search-document-input-section"}),t=r.$$("span",{className:"coveo-advanced-search-label"});return t.text(f.l(this.inputName)),n.append(t.el),this.element=n.el,this.element},n.prototype.getValue=function(){return""},n.prototype.updateQuery=function(n){this.getValue()&&n.advancedExpression.add(this.getValue())},n.prototype.onChange=function(){this.root?r.$$(this.root).trigger(u.AdvancedSearchEvents.executeAdvancedSearch):this.element&&r.$$(this.element).trigger(u.AdvancedSearchEvents.executeAdvancedSearch)},n}();t.DocumentInput=e},function(n,t,i){"use strict";function u(n,t){if((r=(n=t?n.toExponential(t-1):n.toExponential()).indexOf("e"))<0)return null;var r,i=n.slice(0,r);return[i.length>1?i[0]+i.slice(2):i,+n.slice(r+1)]}function f(n){if(!(t=nt.exec(n)))throw new Error("invalid format: "+n);var t;return new e({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}function e(n){this.fill=void 0===n.fill?" ":n.fill+"";this.align=void 0===n.align?">":n.align+"";this.sign=void 0===n.sign?"-":n.sign+"";this.symbol=void 0===n.symbol?"":n.symbol+"";this.zero=!!n.zero;this.width=void 0===n.width?void 0:+n.width;this.comma=!!n.comma;this.precision=void 0===n.precision?void 0:+n.precision;this.trim=!!n.trim;this.type=void 0===n.type?"":n.type+""}function s(n){return o=b(n),c=o.format,l=o.formatPrefix,o}var k=function(n){return Math.abs(n=Math.round(n))>=1e21?n.toLocaleString("en").replace(/,/g,""):n.toString(10)},r=function(n){return n=u(Math.abs(n)),n?n[1]:NaN},d=function(n,t){return function(i,r){for(var f=i.length,o=[],s=0,u=n[0],e=0;f>0&&u>0&&(e+u+1>r&&(u=Math.max(1,r-e)),o.push(i.substring(f-=u,f+u)),!((e+=u+1)>r));)u=n[s=(s+1)%n.length];return o.reverse().join(t)}},g=function(n){return function(t){return t.replace(/[0-9]/g,function(t){return n[+t]})}},nt=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;f.prototype=e.prototype;e.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};var h,o,c,l,tt=function(n){n:for(var r,u=n.length,t=1,i=-1;t<u;++t)switch(n[t]){case".":i=r=t;break;case"0":0===i&&(i=t);r=t;break;default:if(!+n[t])break n;i>0&&(i=0)}return i>0?n.slice(0,i)+n.slice(r+1):n},it=function(n,t){var f=u(n,t);if(!f)return n+"";var r=f[0],o=f[1],i=o-(h=3*Math.max(-8,Math.min(8,Math.floor(o/3))))+1,e=r.length;return i===e?r:i>e?r+new Array(i-e+1).join("0"):i>0?r.slice(0,i)+"."+r.slice(i):"0."+new Array(1-i).join("0")+u(n,Math.max(0,t+i-1))[0]},a=function(n,t){var f=u(n,t),i,r;return f?(i=f[0],r=f[1],r<0?"0."+new Array(-r).join("0")+i:i.length>r+1?i.slice(0,r+1)+"."+i.slice(r+1):i+new Array(r-i.length+2).join("0")):n+""},v={"%":function(n,t){return(100*n).toFixed(t)},b:function(n){return Math.round(n).toString(2)},c:function(n){return n+""},d:k,e:function(n,t){return n.toExponential(t)},f:function(n,t){return n.toFixed(t)},g:function(n,t){return n.toPrecision(t)},o:function(n){return Math.round(n).toString(8)},p:function(n,t){return a(100*n,t)},r:a,s:it,X:function(n){return Math.round(n).toString(16).toUpperCase()},x:function(n){return Math.round(n).toString(16)}},y=function(n){return n},p=Array.prototype.map,w=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"],b=function(n){function t(n){function it(n){var l,st,it,o=ft,f=et,v,d,e;if("c"===t)f=ut(n)+f,n="";else if(n=+n,v=n<0||1/n<0,n=isNaN(n)?b:ut(Math.abs(n),u),rt&&(n=tt(n)),v&&0==+n&&"+"!==r&&(v=!1),o=(v?"("===r?r:a:"-"===r||"("===r?"":r)+o,f=("s"===t?w[8+h/3]:"")+f+(v&&"("===r?")":""),ot)for(l=-1,st=n.length;++l<st;)if(48>(it=n.charCodeAt(l))||it>57){f=(46===it?s+n.slice(l+1):n.slice(l))+f;n=n.slice(0,l);break}nt&&!y&&(n=i(n,1/0));d=o.length+n.length+f.length;e=d<g?new Array(g-d+1).join(p):"";switch(nt&&y&&(n=i(e+n,e.length?g-f.length:1/0),e=""),k){case"<":n=o+n+f+e;break;case"=":n=o+e+n+f;break;case"^":n=e.slice(0,d=e.length>>1)+o+n+f+e.slice(d);break;default:n=e+o+n+f}return c(n)}n=f(n);var p=n.fill,k=n.align,r=n.sign,d=n.symbol,y=n.zero,g=n.width,nt=n.comma,u=n.precision,rt=n.trim,t=n.type;"n"===t?(nt=!0,t="g"):v[t]||(void 0===u&&(u=12),rt=!0,t="g");(y||"0"===p&&"="===k)&&(y=!0,p="0",k="=");var ft="$"===d?e:"#"===d&&/[boxX]/.test(t)?"0"+t.toLowerCase():"",et="$"===d?o:/[%p]/.test(t)?l:"",ut=v[t],ot=/[defgprs%]/.test(t);return u=void 0===u?6:/[gprs]/.test(t)?Math.max(1,Math.min(21,u)):Math.max(0,Math.min(20,u)),it.toString=function(){return n+""},it}function u(n,i){var e=t((n=f(n),n.type="f",n)),u=3*Math.max(-8,Math.min(8,Math.floor(r(i)/3))),o=Math.pow(10,-u),s=w[8+u/3];return function(n){return e(o*n)+s}}var i=void 0===n.grouping||void 0===n.thousands?y:d(p.call(n.grouping,Number),n.thousands+""),e=void 0===n.currency?"":n.currency[0]+"",o=void 0===n.currency?"":n.currency[1]+"",s=void 0===n.decimal?".":n.decimal+"",c=void 0===n.numerals?y:g(p.call(n.numerals,String)),l=void 0===n.percent?"%":n.percent+"",a=void 0===n.minus?"-":n.minus+"",b=void 0===n.nan?"NaN":n.nan+"";return{format:t,formatPrefix:u}};s({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});var rt=function(n){return Math.max(0,-r(Math.abs(n)))},ut=function(n,t){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(r(t)/3)))-r(Math.abs(n)))},ft=function(n,t){return n=Math.abs(n),t=Math.abs(t)-n,Math.max(0,r(t)-r(n))+1};i.d(t,"c",function(){return s});i.d(t,"b",function(){return c});i.d(t,"e",function(){return l});i.d(t,"d",function(){return b});i.d(t,"f",function(){return f});i.d(t,"a",function(){return e});i.d(t,"g",function(){return rt});i.d(t,"h",function(){return ut});i.d(t,"i",function(){return ft})},function(n,t,i){"use strict";function c(n){if(0<=n.y&&n.y<100){var t=new Date(-1,n.m,n.d,n.H,n.M,n.S,n.L);return t.setFullYear(n.y),t}return new Date(n.y,n.m,n.d,n.H,n.M,n.S,n.L)}function l(n){if(0<=n.y&&n.y<100){var t=new Date(Date.UTC(-1,n.m,n.d,n.H,n.M,n.S,n.L));return t.setUTCFullYear(n.y),t}return new Date(Date.UTC(n.y,n.m,n.d,n.H,n.M,n.S,n.L))}function o(n,t,i){return{y:n,m:t,d:i,H:0,M:0,S:0,L:0}}function y(n){function t(n,t){return function(i){var u,e,s,f=[],r=-1,o=0,h=n.length;for(i instanceof Date||(i=new Date(+i));++r<h;)37===n.charCodeAt(r)&&(f.push(n.slice(o,r)),null!=(e=ct[u=n.charAt(++r)])?u=n.charAt(++r):e="e"===u?" ":"0",(s=t[u])&&(u=s(i,e)),f.push(u),o=r+1);return f.push(n.slice(o,r)),f.join("")}}function ht(n,t){return function(i){var e,s,r=o(1900,void 0,1),h=f(r,n,i+="",0);if(h!=i.length)return null;if("Q"in r)return new Date(r.Q);if("s"in r)return new Date(1e3*r.s+("L"in r?r.L:0));if(!t||"Z"in r||(r.Z=0),"p"in r&&(r.H=r.H%12+12*r.p),void 0===r.m&&(r.m="q"in r?r.q:0),"V"in r){if(r.V<1||r.V>53)return null;"w"in r||(r.w=1);"Z"in r?(e=l(o(r.y,0,1)),s=e.getUTCDay(),e=s>4||0===s?u.P.ceil(e):Object(u.P)(e),e=u.F.offset(e,7*(r.V-1)),r.y=e.getUTCFullYear(),r.m=e.getUTCMonth(),r.d=e.getUTCDate()+(r.w+6)%7):(e=c(o(r.y,0,1)),s=e.getDay(),e=s>4||0===s?u.l.ceil(e):Object(u.l)(e),e=u.a.offset(e,7*(r.V-1)),r.y=e.getFullYear(),r.m=e.getMonth(),r.d=e.getDate()+(r.w+6)%7)}else("W"in r||"U"in r)&&("w"in r||(r.w="u"in r?r.u%7:"W"in r?1:0),s="Z"in r?l(o(r.y,0,1)).getUTCDay():c(o(r.y,0,1)).getDay(),r.m=0,r.d="W"in r?(r.w+6)%7+7*r.W-(s+5)%7:r.w+7*r.U-(s+6)%7);return"Z"in r?(r.H+=r.Z/100|0,r.M+=r.Z%100,l(r)):c(r)}}function f(n,t,i,r){for(var u,e,f=0,o=t.length,s=i.length;f<o;){if(r>=s)return-1;if(37===(u=t.charCodeAt(f++))){if(u=t.charAt(f++),!(e=sf[u in ct?t.charAt(f++):u])||(r=e(n,i,r))<0)return-1}else if(u!=i.charCodeAt(r++))return-1}return r}function lt(n,t,i){var r=ku.exec(t.slice(i));return r?(n.p=du[r[0].toLowerCase()],i+r[0].length):-1}function gr(n,t,i){var r=tf.exec(t.slice(i));return r?(n.w=rf[r[0].toLowerCase()],i+r[0].length):-1}function nu(n,t,i){var r=gu.exec(t.slice(i));return r?(n.w=nf[r[0].toLowerCase()],i+r[0].length):-1}function tu(n,t,i){var r=ef.exec(t.slice(i));return r?(n.m=of[r[0].toLowerCase()],i+r[0].length):-1}function iu(n,t,i){var r=uf.exec(t.slice(i));return r?(n.m=ff[r[0].toLowerCase()],i+r[0].length):-1}function ru(n,t,i){return f(n,rt,t,i)}function uu(n,t,i){return f(n,ot,t,i)}function fu(n,t,i){return f(n,st,t,i)}function eu(n){return v[n.getDay()]}function ou(n){return a[n.getDay()]}function su(n){return nt[n.getMonth()]}function hu(n){return y[n.getMonth()]}function cu(n){return e[+(n.getHours()>=12)]}function lu(n){return 1+~~(n.getMonth()/3)}function au(n){return v[n.getUTCDay()]}function vu(n){return a[n.getUTCDay()]}function yu(n){return nt[n.getUTCMonth()]}function pu(n){return y[n.getUTCMonth()]}function wu(n){return e[+(n.getUTCHours()>=12)]}function bu(n){return 1+~~(n.getUTCMonth()/3)}var rt=n.dateTime,ot=n.date,st=n.time,e=n.periods,a=n.days,v=n.shortDays,y=n.months,nt=n.shortMonths,ku=s(e),du=h(e),gu=s(a),nf=h(a),tf=s(v),rf=h(v),uf=s(y),ff=h(y),ef=s(nt),of=h(nt),i={a:eu,A:ou,b:su,B:hu,c:null,d:d,e:d,f:ci,g:gi,G:tr,H:oi,I:si,j:hi,L:g,m:li,M:ai,p:cu,q:lu,Q:ft,s:et,S:vi,u:yi,U:pi,V:wi,w:bi,W:ki,x:null,X:null,y:di,Y:nr,Z:ir,"%":ut},r={a:au,A:vu,b:yu,B:pu,c:null,d:tt,e:tt,f:er,g:wr,G:kr,H:rr,I:ur,j:fr,L:it,m:or,M:sr,p:wu,q:bu,Q:ft,s:et,S:hr,u:cr,U:lr,V:ar,w:vr,W:yr,x:null,X:null,y:pr,Y:br,Z:dr,"%":ut},sf={a:gr,A:nu,b:tu,B:iu,c:ru,d:b,e:b,f:ri,g:w,G:p,H:k,I:k,j:gt,L:ii,m:dt,M:ni,p:lt,q:kt,Q:fi,s:ei,S:ti,u:vt,U:yt,V:pt,w:at,W:wt,x:uu,X:fu,y:w,Y:p,Z:bt,"%":ui};return i.x=t(ot,i),i.X=t(st,i),i.c=t(rt,i),r.x=t(ot,r),r.X=t(st,r),r.c=t(rt,r),{format:function(n){var r=t(n+="",i);return r.toString=function(){return n},r},parse:function(n){var t=ht(n+="",!1);return t.toString=function(){return n},t},utcFormat:function(n){var i=t(n+="",r);return i.toString=function(){return n},i},utcParse:function(n){var t=ht(n+="",!0);return t.toString=function(){return n},t}}}function r(n,t,i){var u=n<0?"-":"",r=(u?-n:n)+"",f=r.length;return u+(f<i?new Array(i-f+1).join(t)+r:r)}function lt(n){return n.replace(iu,"\\$&")}function s(n){return new RegExp("^(?:"+n.map(lt).join("|")+")","i")}function h(n){for(var i={},t=-1,r=n.length;++t<r;)i[n[t].toLowerCase()]=t;return i}function at(n,t,i){var r=f.exec(t.slice(i,i+1));return r?(n.w=+r[0],i+r[0].length):-1}function vt(n,t,i){var r=f.exec(t.slice(i,i+1));return r?(n.u=+r[0],i+r[0].length):-1}function yt(n,t,i){var r=f.exec(t.slice(i,i+2));return r?(n.U=+r[0],i+r[0].length):-1}function pt(n,t,i){var r=f.exec(t.slice(i,i+2));return r?(n.V=+r[0],i+r[0].length):-1}function wt(n,t,i){var r=f.exec(t.slice(i,i+2));return r?(n.W=+r[0],i+r[0].length):-1}function p(n,t,i){var r=f.exec(t.slice(i,i+4));return r?(n.y=+r[0],i+r[0].length):-1}function w(n,t,i){var r=f.exec(t.slice(i,i+2));return r?(n.y=+r[0]+(+r[0]>68?1900:2e3),i+r[0].length):-1}function bt(n,t,i){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(i,i+6));return r?(n.Z=r[1]?0:-(r[2]+(r[3]||"00")),i+r[0].length):-1}function kt(n,t,i){var r=f.exec(t.slice(i,i+1));return r?(n.q=3*r[0]-3,i+r[0].length):-1}function dt(n,t,i){var r=f.exec(t.slice(i,i+2));return r?(n.m=r[0]-1,i+r[0].length):-1}function b(n,t,i){var r=f.exec(t.slice(i,i+2));return r?(n.d=+r[0],i+r[0].length):-1}function gt(n,t,i){var r=f.exec(t.slice(i,i+3));return r?(n.m=0,n.d=+r[0],i+r[0].length):-1}function k(n,t,i){var r=f.exec(t.slice(i,i+2));return r?(n.H=+r[0],i+r[0].length):-1}function ni(n,t,i){var r=f.exec(t.slice(i,i+2));return r?(n.M=+r[0],i+r[0].length):-1}function ti(n,t,i){var r=f.exec(t.slice(i,i+2));return r?(n.S=+r[0],i+r[0].length):-1}function ii(n,t,i){var r=f.exec(t.slice(i,i+3));return r?(n.L=+r[0],i+r[0].length):-1}function ri(n,t,i){var r=f.exec(t.slice(i,i+6));return r?(n.L=Math.floor(r[0]/1e3),i+r[0].length):-1}function ui(n,t,i){var r=tu.exec(t.slice(i,i+1));return r?i+r[0].length:-1}function fi(n,t,i){var r=f.exec(t.slice(i));return r?(n.Q=+r[0],i+r[0].length):-1}function ei(n,t,i){var r=f.exec(t.slice(i));return r?(n.s=+r[0],i+r[0].length):-1}function d(n,t){return r(n.getDate(),t,2)}function oi(n,t){return r(n.getHours(),t,2)}function si(n,t){return r(n.getHours()%12||12,t,2)}function hi(n,t){return r(1+u.a.count(Object(u.D)(n),n),t,3)}function g(n,t){return r(n.getMilliseconds(),t,3)}function ci(n,t){return g(n,t)+"000"}function li(n,t){return r(n.getMonth()+1,t,2)}function ai(n,t){return r(n.getMinutes(),t,2)}function vi(n,t){return r(n.getSeconds(),t,2)}function yi(n){var t=n.getDay();return 0===t?7:t}function pi(n,t){return r(u.t.count(Object(u.D)(n)-1,n),t,2)}function nt(n){var t=n.getDay();return t>=4||0===t?Object(u.v)(n):u.v.ceil(n)}function wi(n,t){return n=nt(n),r(u.v.count(Object(u.D)(n),n)+(4===Object(u.D)(n).getDay()),t,2)}function bi(n){return n.getDay()}function ki(n,t){return r(u.l.count(Object(u.D)(n)-1,n),t,2)}function di(n,t){return r(n.getFullYear()%100,t,2)}function gi(n,t){return n=nt(n),r(n.getFullYear()%100,t,2)}function nr(n,t){return r(n.getFullYear()%1e4,t,4)}function tr(n,t){var i=n.getDay();return n=i>=4||0===i?Object(u.v)(n):u.v.ceil(n),r(n.getFullYear()%1e4,t,4)}function ir(n){var t=n.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+r(t/60|0,"0",2)+r(t%60,"0",2)}function tt(n,t){return r(n.getUTCDate(),t,2)}function rr(n,t){return r(n.getUTCHours(),t,2)}function ur(n,t){return r(n.getUTCHours()%12||12,t,2)}function fr(n,t){return r(1+u.F.count(Object(u._7)(n),n),t,3)}function it(n,t){return r(n.getUTCMilliseconds(),t,3)}function er(n,t){return it(n,t)+"000"}function or(n,t){return r(n.getUTCMonth()+1,t,2)}function sr(n,t){return r(n.getUTCMinutes(),t,2)}function hr(n,t){return r(n.getUTCSeconds(),t,2)}function cr(n){var t=n.getUTCDay();return 0===t?7:t}function lr(n,t){return r(u.X.count(Object(u._7)(n)-1,n),t,2)}function rt(n){var t=n.getUTCDay();return t>=4||0===t?Object(u.Z)(n):u.Z.ceil(n)}function ar(n,t){return n=rt(n),r(u.Z.count(Object(u._7)(n),n)+(4===Object(u._7)(n).getUTCDay()),t,2)}function vr(n){return n.getUTCDay()}function yr(n,t){return r(u.P.count(Object(u._7)(n)-1,n),t,2)}function pr(n,t){return r(n.getUTCFullYear()%100,t,2)}function wr(n,t){return n=rt(n),r(n.getUTCFullYear()%100,t,2)}function br(n,t){return r(n.getUTCFullYear()%1e4,t,4)}function kr(n,t){var i=n.getUTCDay();return n=i>=4||0===i?Object(u.Z)(n):u.Z.ceil(n),r(n.getUTCFullYear()%1e4,t,4)}function dr(){return"+0000"}function ut(){return"%"}function ft(n){return+n}function et(n){return Math.floor(+n/1e3)}function ot(n){return e=y(n),st=e.format,ht=e.parse,a=e.utcFormat,v=e.utcParse,e}function gr(n){return n.toISOString()}function nu(n){var t=new Date(n);return isNaN(t)?null:t}var e,st,ht,a,v,u=i(187),ct={"-":"",_:" ",0:"0"},f=/^\s*\d+/,tu=/^%/,iu=/[\\^$*+?|[\]().{}]/g;ot({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});var ru=Date.prototype.toISOString?gr:a("%Y-%m-%dT%H:%M:%S.%LZ"),uu=ru,fu=+new Date("2000-01-01T00:00:00.000Z")?nu:v("%Y-%m-%dT%H:%M:%S.%LZ"),eu=fu;i.d(t,"d",function(){return ot});i.d(t,"c",function(){return st});i.d(t,"f",function(){return ht});i.d(t,"g",function(){return a});i.d(t,"h",function(){return v});i.d(t,"e",function(){return y});i.d(t,"a",function(){return uu});i.d(t,"b",function(){return eu})},function(n,t,i){"use strict";var s=this&&this.__extends||function(){var n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])};return function(t,i){function r(){this.constructor=t}n(t,i);t.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),h=this&&this.__assign||Object.assign||function(n){for(var t,r,i=1,u=arguments.length;i<u;i++){t=arguments[i];for(r in t)Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},c=this&&this.__awaiter||function(n,t,i,r){return new(i||(i=Promise))(function(u,f){function o(n){try{e(r.next(n))}catch(n){f(n)}}function s(n){try{e(r.throw(n))}catch(n){f(n)}}function e(n){n.done?u(n.value):new i(function(t){t(n.value)}).then(o,s)}e((r=r.apply(n,t||[])).next())})},l=this&&this.__generator||function(n,t){function f(n){return function(t){return s([n,t])}}function s(f){if(e)throw new TypeError("Generator is already executing.");for(;r;)try{if(e=1,u&&(i=u[2&f[0]?"return":f[0]?"throw":"next"])&&!(i=i.call(u,f[1])).done)return i;switch(u=0,i&&(f=[0,i.value]),f[0]){case 0:case 1:i=f;break;case 4:return r.label++,{value:f[1],done:!1};case 5:r.label++;u=f[1];f=[0];continue;case 7:f=r.ops.pop();r.trys.pop();continue;default:if(i=r.trys,!(i=i.length>0&&i[i.length-1])&&(6===f[0]||2===f[0])){r=0;continue}if(3===f[0]&&(!i||f[1]>i[0]&&f[1]<i[3])){r.label=f[1];break}if(6===f[0]&&r.label<i[1]){r.label=i[1];i=f;break}if(i&&r.label<i[2]){r.label=i[2];r.ops.push(f);break}i[2]&&r.ops.pop();r.trys.pop();continue}f=t.call(n,r)}catch(n){f=[6,n];u=0}finally{e=i=0}if(5&f[0])throw f[1];return{value:f[0]?f[1]:void 0,done:!0}}var e,u,i,o,r={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:f(0),"throw":f(1),"return":f(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o},f;Object.defineProperty(t,"__esModule",{value:!0});var e=i(227),a=i(5),r=i(1),v=i(4),y=i(7),o=i(8),p=i(2),w=i(644),b=i(645),k=i(646),u=i(0),d=i(649),g=i(650);t.HIGHLIGHT_PREFIX="CoveoHighlight";f=function(n){function t(i,r,u,f){var e=n.call(this,i,t.ID,u)||this;return e.element=i,e.options=r,e.result=f,e.options=o.ComponentOptions.initComponentOptions(i,t,r),e.result=f||e.resolveResult(),a.Assert.exists(e.result),e}return s(t,n),t.prototype.createDom=function(){var n=r.$$("div",{className:"coveo-quickview-document"});this.element.appendChild(n.el);this.header=new b.QuickviewDocumentHeader;this.iframe=new w.QuickviewDocumentIframe;n.append(this.header.el);n.append(this.iframe.el)},t.prototype.open=function(){return c(this,void 0,void 0,function(){var i,n,f,e,r,o,s,t,h=this;return l(this,function(c){switch(c.label){case 0:this.ensureDom();i=(new Date).getTime();n=this.initialTermsToHighlight;this.triggerOpenQuickViewEvent({termsToHighlight:n});f=this.wereTermsToHighlightModified(n);f&&this.handleTermsToHighlight(n,this.query);c.label=1;case 1:return c.trys.push([1,4,,6]),[4,this.queryController.getEndpoint().getDocumentHtml(this.result.uniqueId,{queryObject:this.query,requestedOutputSize:this.options.maximumDocumentSize})];case 2:return e=c.sent(),[4,this.iframe.render(e,this.result.title)];case 3:return c.sent(),r=new k.QuickviewDocumentWords(this.iframe,this.result),o=new g.QuickviewDocumentPreviewBar(this.iframe,r),u.each(r.words,function(n){var t=new d.QuickviewDocumentWordButton(n,o,h.iframe);h.header.addWord(t)}),t=(new Date).getTime(),this.triggerQuickviewLoaded(t-i),[3,6];case 4:return s=c.sent(),[4,this.iframe.renderError(s)];case 5:return c.sent(),t=(new Date).getTime(),this.triggerQuickviewLoaded(t-i),[3,6];case 6:return[2]}})})},Object.defineProperty(t.prototype,"initialTermsToHighlight",{get:function(){return u.keys(this.result.termsToHighlight)},enumerable:!0,configurable:!0}),t.prototype.triggerOpenQuickViewEvent=function(n){r.$$(this.root).trigger(e.QuickviewEvents.openQuickview,n)},Object.defineProperty(t.prototype,"query",{get:function(){return h({},this.queryController.getLastQuery())},enumerable:!0,configurable:!0}),t.prototype.triggerQuickviewLoaded=function(n){r.$$(this.element).trigger(e.QuickviewEvents.quickviewLoaded,{duration:n})},t.prototype.handleTermsToHighlight=function(n,t){var f=this,r,i;for(r in this.result.termsToHighlight)delete this.result.termsToHighlight[r];i="";u.each(n,function(n){i+=n+" ";f.result.termsToHighlight[n]=[n]});i=i.substring(0,i.length-1);t.q=i},t.prototype.wereTermsToHighlightModified=function(n){return!v.Utils.arrayEqual(n,this.initialTermsToHighlight)},t.ID="QuickviewDocument",t.options={maximumDocumentSize:o.ComponentOptions.buildNumberOption({defaultValue:0,min:0})},t}(y.Component);t.QuickviewDocument=f;p.Initialization.registerAutoCreateComponent(f)},,function(n,t,i){"use strict";var a=this&&this.__extends||function(){var n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])};return function(t,i){function r(){this.constructor=t}n(t,i);t.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var v=i(7),e=i(8),y=i(11),o=i(87),p=i(55),w=i(2),r=i(6),f=i(1),b=i(589),s=i(10),k=i(519),u=i(0),d=i(3);i(600);var g=i(126),nt=i(89),tt=i(63),it=i(56),rt=i(98),ut=i(26),h=i(35),c=i(12),ft=i(15),et=i(48),l=function(n){function t(i,r,u,f){void 0===f&&(f=ut.ModalBox);var o=n.call(this,i,t.ID,u)||this;return o.element=i,o.options=r,o.ModalBox=f,o.inputs=[],o.inputFactory=new b.AdvancedSearchInputFactory(o.queryController.getEndpoint(),o.root),o.externalSections=[],o.needToPopulateBreadcrumb=!1,o.needToExecuteAdvancedSearch=!0,o.options=e.ComponentOptions.initComponentOptions(i,t,r),o.bindEvents(),o.buildContent(),o}return a(t,n),t.prototype.executeAdvancedSearch=function(){this.needToExecuteAdvancedSearch&&(this.usageAnalytics.logSearchEvent(s.analyticsActionCauseList.advancedSearch,{}),this.queryController.executeQuery({closeModalBox:!1}))},t.prototype.reset=function(){u.each(this.inputs,function(n){n.reset()})},t.prototype.open=function(){null==this.modalbox&&(this.modalbox=this.ModalBox.open(this.content.el,{sizeMod:"big",title:r.l("AdvancedSearch"),className:"coveo-advanced-search-modal",body:this.searchInterface.options.modalContainer}))},t.prototype.close=function(){null!=this.modalbox&&(this.modalbox.close(),this.modalbox=null)},t.prototype.handlePopulateBreadcrumb=function(n){if(this.needToPopulateBreadcrumb){var t=this.buildBreadcrumbElements(n.headingLevel),i=t.container,r=t.title,u=t.clear;i.append(r.el);i.append(u.el);n.breadcrumbs.push({element:i.el})}},t.prototype.buildBreadcrumbElements=function(n){return{container:this.buildBreadcrumbContainer(),title:this.buildBreadcrumbTitle(n),clear:this.buildBreacrumbClear()}},t.prototype.buildBreadcrumbContainer=function(){return f.$$("div",{className:"coveo-advanced-search-breadcrumb"})},t.prototype.buildBreadcrumbTitle=function(n){return f.$$(et.getHeadingTag(n,"span"),{className:"coveo-advanced-search-breadcrumb-title"},r.l("FiltersInAdvancedSearch")+":")},t.prototype.buildBreacrumbClear=function(){var n=this,t=f.$$("span",{className:"coveo-advanced-search-breadcrumb-clear"},c.SVGIcons.icons.mainClear),i=function(){n.handleClearBreadcrumb();n.usageAnalytics.logSearchEvent(s.analyticsActionCauseList.breadcrumbAdvancedSearch,{});n.queryController.executeQuery()};return(new ft.AccessibleButton).withElement(t).withLabel(r.l("Clear")).withSelectAction(function(){return i()}).build(),t},t.prototype.handleClearBreadcrumb=function(){this.needToPopulateBreadcrumb&&(this.needToExecuteAdvancedSearch=!1,this.reset(),this.needToExecuteAdvancedSearch=!0)},t.prototype.handleQuerySummaryCancelLastAction=function(){this.needToExecuteAdvancedSearch=!1;this.reset();this.needToExecuteAdvancedSearch=!0},t.prototype.handlePopulateMenu=function(n){var t=this;n.menuData.push({text:r.l("AdvancedSearch"),className:"coveo-advanced-search",onOpen:function(){return t.open()},onClose:function(){return t.close()},svgIcon:c.SVGIcons.icons.dropdownPreferences,svgIconClassName:"coveo-advanced-search-svg"})},t.prototype.handleBuildingQuery=function(n){var i=n.queryBuilder.build(),t;u.each(this.externalSections,function(t){t.updateQuery&&t.updateQuery(t.inputs,n.queryBuilder)});u.each(this.inputs,function(t){t.updateQuery&&t.updateQuery(n.queryBuilder)});t=n.queryBuilder.build();this.needToPopulateBreadcrumb=t.aq!=i.aq},t.prototype.buildContent=function(){var t=this,i=f.$$("div"),n=[];this.options.includeKeywords&&n.push(this.getKeywordsSection());this.options.includeDate&&n.push(this.getDateSection());this.options.includeDocument&&n.push(this.getDocumentSection());this.externalSections=[];f.$$(this.root).trigger(o.AdvancedSearchEvents.buildingAdvancedSearch,{sections:this.externalSections,executeQuery:function(n){return n=u.extend({},n,{closeModalBox:!1}),t.queryController.executeQuery(n)}});u.each(this.externalSections,function(n){i.append(t.buildExternalSection(n))});u.each(n,function(n){i.append(t.buildInternalSection(n))});this.content=i},t.prototype.getKeywordsSection=function(){var t=r.l("Keywords"),n=[];return n.push(this.inputFactory.createAllKeywordsInput()),n.push(this.inputFactory.createExactKeywordsInput()),n.push(this.inputFactory.createAnyKeywordsInput()),n.push(this.inputFactory.createNoneKeywordsInput()),{name:t,inputs:n}},t.prototype.getDateSection=function(){var t=r.l("Date"),n=[];return n.push(this.inputFactory.createAnytimeDateInput()),n.push(this.inputFactory.createInTheLastDateInput()),n.push(this.inputFactory.createBetweenDateInput()),{name:t,inputs:n}},t.prototype.getDocumentSection=function(){var t=r.l("Document"),n=[];return n.push(this.inputFactory.createSimpleFieldInput(r.l("FileType"),"@filetype")),n.push(this.inputFactory.createSimpleFieldInput(r.l("Language"),"@language")),n.push(this.inputFactory.createSizeInput()),n.push(this.inputFactory.createAdvancedFieldInput(r.l("Title"),"@title")),n.push(this.inputFactory.createAdvancedFieldInput(r.l("Author"),"@author")),{name:t,inputs:n}},t.prototype.buildExternalSection=function(n){var t=this.buildSectionTitle(n).el;return this.inputs=u.union(this.inputs,n.inputs),t.appendChild(n.content),t},t.prototype.buildInternalSection=function(n){var e=this,i=this.buildSectionTitle(n),r=i.el,o=i.id,t=[];return u.each(n.inputs,function(n){t.push(e.buildDefaultInput(n))}),this.inputs=u.union(this.inputs,t),u.each(t,function(n){var t=n.build(),i=t.querySelector("input");i&&i.setAttribute("aria-labelledby",o);f.$$(r).append(t)}),r},t.prototype.buildSectionTitle=function(n){var r=f.$$("div",{className:"coveo-advanced-search-section"}),t=f.$$("div",{className:"coveo-advanced-search-section-title"}),i;return t.text(n.name),i="coveo-advanced-search-section-"+n.name,t.el.id=i,r.append(t.el),{el:r.el,id:i}},t.prototype.buildDefaultInput=function(n){return this.isPrebuiltInput(n)?this.inputFactory.create(n.name,n.parameters):n},t.prototype.isPrebuiltInput=function(n){return void 0!==n.name},t.prototype.bindEvents=function(){var n=this;this.bind.onRootElement(h.BreadcrumbEvents.populateBreadcrumb,function(t){return n.handlePopulateBreadcrumb(t)});this.bind.onRootElement(h.BreadcrumbEvents.clearBreadcrumb,function(){return n.handleClearBreadcrumb()});this.bind.onRootElement(p.SettingsEvents.settingsPopulateMenu,function(t){return n.handlePopulateMenu(t)});this.bind.onRootElement(y.QueryEvents.buildingQuery,function(t){return n.handleBuildingQuery(t)});this.bind.onRootElement(o.AdvancedSearchEvents.executeAdvancedSearch,function(){return n.executeAdvancedSearch()});this.bind.onRootElement(k.QuerySummaryEvents.cancelLastAction,function(){return n.handleQuerySummaryCancelLastAction()})},t.ID="AdvancedSearch",t.doExport=function(){d.exportGlobally({AdvancedSearch:t,NumericSpinner:g.NumericSpinner,DatePicker:nt.DatePicker,Dropdown:tt.Dropdown,TextInput:it.TextInput,RadioButton:rt.RadioButton})},t.options={includeKeywords:e.ComponentOptions.buildBooleanOption({defaultValue:!0}),includeDate:e.ComponentOptions.buildBooleanOption({defaultValue:!0}),includeDocument:e.ComponentOptions.buildBooleanOption({defaultValue:!0})},t}(v.Component);t.AdvancedSearch=l;w.Initialization.registerAutoCreateComponent(l)},function(n,t,i){"use strict";var o=this&&this.__extends||function(){var n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])};return function(t,i){function r(){this.constructor=t}n(t,i);t.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var s=i(7),r=i(8),f=i(11),h=i(2),u=i(1),c=i(23),l=i(0),a=i(3),e=function(n){function t(i,e,o){var s=n.call(this,i,t.ID,o)||this;return s.element=i,s.options=e,s.options=r.ComponentOptions.initComponentOptions(i,t,e),s.bind.onRootElement(f.QueryEvents.buildingQuery,function(n){return s.handleBuildingQuery(n)}),s.bind.onRootElement(f.QueryEvents.querySuccess,function(n){return s.handleQuerySuccess(n)}),u.$$(s.element).hide(),s}return o(t,n),t.doExport=function(){a.exportGlobally({Aggregate:t})},t.prototype.handleBuildingQuery=function(n){var t={field:this.options.field,maximumNumberOfValues:0,computedFields:[{field:this.options.field,operation:this.options.operation}]};this.index=n.queryBuilder.groupByRequests.length;n.queryBuilder.groupByRequests.push(t)},t.prototype.handleQuerySuccess=function(n){if(l.isNumber(this.index)&&0!=n.results.groupByResults.length){var t=n.results.groupByResults[this.index],i=t.globalComputedFieldResults[0];u.$$(this.element).text(c.format(i,this.options.format));u.$$(this.element).show()}else u.$$(this.element).hide()},t.ID="Aggregate",t.options={field:r.ComponentOptions.buildFieldOption({required:!0}),operation:r.ComponentOptions.buildStringOption({defaultValue:"sum"}),format:r.ComponentOptions.buildStringOption({defaultValue:"c0"})},t}(s.Component);t.Aggregate=e;h.Initialization.registerAutoCreateComponent(e)},function(n,t,i){"use strict";var h=this&&this.__extends||function(){var n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])};return function(t,i){function r(){this.constructor=t}n(t,i);t.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var r=i(0),c=i(34),l=i(11),a=i(3),v=i(5),e=i(13),y=i(6),p=i(15),u=i(1),o=i(10),w=i(7),f=i(8),b=i(2),k=i(520),d=i(19),s=function(n){function t(i,e,o){var s=n.call(this,i,t.ID,o)||this,h,a;return s.options=e,s.partialQueries=[],s.lastSuggestions=[],s.resultsToBuildWith=[],s.options&&"omniboxSuggestionOptions"in s.options&&(s.options=r.extend(s.options,s.options.omniboxSuggestionOptions)),s.options=f.ComponentOptions.initComponentOptions(i,t,s.options),h=function(n){var t=u.$$("div",{className:"magic-box-suggestion coveo-omnibox-selectable coveo-top-analytics-suggestion-row"});return(new p.AccessibleButton).withElement(t).withLabel(n.rawValue).build(),n.data&&(t.el.innerHTML=n.data),t.el.outerHTML},s.options.onSelect=s.options.onSelect||s.onRowSelection,a={row:h},s.suggestionForOmnibox=new k.SuggestionForOmnibox(a,function(n,t){s.options.onSelect.call(s,n,t)},function(n,t){s.onRowTab.call(s,n,t)}),s.bind.onRootElement(c.OmniboxEvents.populateOmnibox,function(n){return s.handlePopulateOmnibox(n)}),s.bind.onRootElement(l.QueryEvents.querySuccess,function(){return s.partialQueries=[]}),s}return h(t,n),t.doExport=function(){a.exportGlobally({AnalyticsSuggestions:t})},t.prototype.selectSuggestion=function(n){if(this.currentlyDisplayedSuggestions)if(isNaN(n))this.currentlyDisplayedSuggestions[n]&&u.$$(this.currentlyDisplayedSuggestions[n].element).trigger("click");else{var t=r.findWhere(this.currentlyDisplayedSuggestions,{pos:n});t&&u.$$(t.element).trigger("click")}},t.prototype.handlePopulateOmnibox=function(n){var t=this,i;v.Assert.exists(n);i=new Promise(function(i){var f=t.usageAnalytics.getTopQueries({pageSize:t.options.numberOfSuggestions,queryText:n.completeQueryExpression.word});f.then(function(f){t.resultsToBuildWith=r.map(f,function(n){return{value:n}});t.lastSuggestions=f;r.isEmpty(t.resultsToBuildWith)||""==n.completeQueryExpression.word||t.partialQueries.push(n.completeQueryExpression.word);var e=t.suggestionForOmnibox.buildOmniboxElement(t.resultsToBuildWith,n);t.currentlyDisplayedSuggestions={};e&&r.map(u.$$(e).findAll(".coveo-omnibox-selectable"),function(n,i){t.currentlyDisplayedSuggestions[u.$$(n).text()]={element:n,pos:i}});i({element:e,zIndex:t.options.omniboxZIndex})});f.catch(function(){i({element:void 0})})});n.rows.push({deferred:i})},t.prototype.onRowSelection=function(n,t){t.clear();t.closeOmnibox();this.queryStateModel.set(e.QueryStateModel.attributesEnum.q,n);this.usageAnalytics.logSearchEvent(this.getOmniboxAnalyticsEventCause(),{partialQueries:this.cleanCustomData(this.partialQueries),suggestionRanking:r.indexOf(r.pluck(this.resultsToBuildWith,"value"),n),suggestions:this.cleanCustomData(this.lastSuggestions),partialQuery:t.completeQueryExpression.word});this.queryController.executeQuery()},t.prototype.onRowTab=function(n,t){t.clear();t.closeOmnibox();this.queryStateModel.set(e.QueryStateModel.attributesEnum.q,""+n);this.usageAnalytics.logCustomEvent(this.getOmniboxAnalyticsEventCause(),{partialQueries:this.cleanCustomData(this.partialQueries),suggestionRanking:r.indexOf(r.pluck(this.resultsToBuildWith,"value"),n),suggestions:this.cleanCustomData(this.lastSuggestions),partialQuery:t.completeQueryExpression.word},this.element)},t.prototype.cleanCustomData=function(n,t){void 0===t&&(t=256);n=r.compact(r.filter(n,function(n,t,i){return 0===t||n!==i[t-1]}));n=r.map(n,function(n){return n.replace(/;/g,"")});var i=[];return r.reduceRight(n,function(n,r){var u=n+r.length;return u<=t&&i.push(r),u},0),n=i.reverse(),n.join(";").length>=256?this.cleanCustomData(n,t-10):n.join(";")},t.prototype.getOmniboxAnalyticsEventCause=function(){return this.searchInterface instanceof d.StandaloneSearchInterface?o.analyticsActionCauseList.omniboxFromLink:o.analyticsActionCauseList.omniboxAnalytics},t.ID="AnalyticsSuggestions",t.options={omniboxZIndex:f.ComponentOptions.buildNumberOption({defaultValue:52,min:0}),headerTitle:f.ComponentOptions.buildLocalizedStringOption({localizedString:function(){return y.l("SuggestedQueries")}}),numberOfSuggestions:f.ComponentOptions.buildNumberOption({defaultValue:5,min:1})},t}(w.Component);t.AnalyticsSuggestions=s;b.Initialization.registerAutoCreateComponent(s)},function(n,t,i){"use strict";var l=this&&this.__extends||function(){var n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])};return function(t,i){function r(){this.constructor=t}n(t,i);t.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var a=i(7),u=i(8),v=i(5),s=i(11),h=i(17),y=i(55),p=i(96),r=i(1),w=i(2),o=i(6),e=i(26),b=i(0),k=i(3);i(601);var d=i(12),f=i(42),g=i(13),nt=i(41),c=function(n){function t(i,r,f,e){void 0===r&&(r={});var c=n.call(this,i,t.ID,f)||this;return c.element=i,c.options=r,c._window=e,c.storage=new nt.SafeLocalStorage,c.options=u.ComponentOptions.initComponentOptions(i,t,r),v.Assert.exists(c.options.name),c.handlers=[],c._window=c._window||window,c.redirectCount=0,c.bind.onRootElement(s.QueryEvents.buildingCallOptions,c.handleBuildingCallOptions),c.bind.onRootElement(s.QueryEvents.queryError,c.handleQueryError),c.bind.onRootElement(h.InitializationEvents.nuke,c.handleNuke),c.bind.onRootElement(h.InitializationEvents.afterComponentsInitialization,function(n){return c.onAfterComponentsInitialization(n)}),c.bind.onRootElement(y.SettingsEvents.settingsPopulateMenu,function(n){n.menuData.push({text:o.l("Reauthenticate",c.options.caption),className:"coveo-authentication-provider",onOpen:function(){return c.authenticateWithProvider()},svgIcon:d.SVGIcons.icons.dropdownAuthenticate,svgIconClassName:"coveo-authentication-provider-svg"})}),c}return l(t,n),t.prototype.getHandshakeTokenFromUrl=function(){var t=this.getHashAfterAdjustingForAngular(),n=f.HashUtils.getValue("handshake_token",t);return"string"==typeof n?n:""},t.prototype.getHashAfterAdjustingForAngular=function(){var n=f.HashUtils.getHash();return this.isAngularHash?"#"+n.slice(2):n},Object.defineProperty(t.prototype,"isAngularHash",{get:function(){return 0===f.HashUtils.getHash().indexOf("#/")},enumerable:!0,configurable:!0}),t.prototype.onAfterComponentsInitialization=function(n){var i=this,u,r,f;if(t.handshakeInProgress)return u=this.waitForHandshakeToFinish().then(function(){return i.loadAccessTokenFromStorage()}),void n.defer.push(u);if(r=this.getHandshakeTokenFromUrl(),!r)return this.loadAccessTokenFromStorage();this.shouldExchangeHandshakeToken&&(this.enableHandshakeInProgressFlag(),f=this.exchangeHandshakeToken(r).then(function(n){return i.storeAccessToken(n)}).then(function(){return i.removeHandshakeTokenFromUrl()}).then(function(){return i.loadAccessTokenFromStorage()}).catch(function(n){return i.logger.error(n)}).finally(function(){return i.disableHandshakeInProgressFlag()}),n.defer.push(f))},Object.defineProperty(t.prototype,"shouldExchangeHandshakeToken",{get:function(){var n=r.$$(this.element).getAttribute("data-tab"),t=f.HashUtils.getHash(),i=f.HashUtils.getValue(g.QUERY_STATE_ATTRIBUTES.T,t);return!n||n===i},enumerable:!0,configurable:!0}),t.prototype.exchangeHandshakeToken=function(n){var t=this.getAccessTokenFromStorage(),i=t?{handshakeToken:n,accessToken:t}:{handshakeToken:n};return this.queryController.getEndpoint().exchangeHandshakeToken(i)},t.prototype.storeAccessToken=function(n){this.storage.setItem(this.accessTokenStorageKey,n)},Object.defineProperty(t.prototype,"accessTokenStorageKey",{get:function(){return"coveo-auth-provider-access-token-"+this.queryController.getEndpoint().options.queryStringArguments.organizationId},enumerable:!0,configurable:!0}),t.prototype.waitForHandshakeToFinish=function(){return new Promise(function(n){var i=setInterval(function(){t.handshakeInProgress||(clearInterval(i),n())},100)})},t.prototype.enableHandshakeInProgressFlag=function(){t.handshakeInProgress=!0},t.prototype.disableHandshakeInProgressFlag=function(){t.handshakeInProgress=!1},t.prototype.removeHandshakeTokenFromUrl=function(){var t=this.getHashAfterAdjustingForAngular(),i=this.getHandshakeTokenFromUrl(),r="handshake_token="+i,u=t.substr(1).split("&"),n=u.filter(function(n){return n!==r}).join("&"),f=this.isAngularHash?"/"+n:n;this._window.history.replaceState(null,"","#"+f)},t.prototype.loadAccessTokenFromStorage=function(){var n=this.getAccessTokenFromStorage();n&&this.queryController.getEndpoint().accessToken.updateToken(n)},t.prototype.getAccessTokenFromStorage=function(){return this.storage.getItem(this.accessTokenStorageKey)},t.prototype.handleBuildingCallOptions=function(n){n.options.authentication.push(this.options.name)},t.prototype.handleQueryError=function(n){var i=this.getAccessTokenFromStorage(),r=this.shouldClearTokenFollowingErrorEvent(n),t;if(i&&r)return this.storage.removeItem(this.accessTokenStorageKey),void this._window.location.reload();t=n.error;t.isMissingAuthentication&&t.provider===this.options.name&&this.redirectCount<2&&-1!==this.redirectCount?(++this.redirectCount,this.authenticateWithProvider()):(this.logger.error("The AuthenticationProvider is in a redirect loop. This may be due to a back-end configuration problem."),this.redirectCount=-1)},t.prototype.shouldClearTokenFollowingErrorEvent=function(n){var t=n.error.name;return-1!==["InvalidTokenException","ExpiredTokenException","InvalidAuthenticationProviderException"].indexOf(t)},t.prototype.authenticateWithProvider=function(){this.options.useIFrame?this.authenticateWithIFrame():this.redirectToAuthenticationProvider()},t.prototype.redirectToAuthenticationProvider=function(){this.logger.info("Redirecting to authentication provider "+this.options.name);this._window.location.href=this.getAuthenticationProviderUriForRedirect()},t.prototype.authenticateWithIFrame=function(){var i,n,t;this.logger.info("Using iframe to retrieve authentication for provider "+this.options.name);n=r.$$("iframe",{src:this.getAuthenticationProviderUriForIFrame()}).el;i=this.options.showIFrame?this.createPopupForVisibleIFrame(n):this.createPopupForWaitMessage(n);t=this.createHandler(i,n);r.$$(this._window).one("message",t);this.handlers.push(t)},t.prototype.createHandler=function(n,t){var i=this;return function(){r.$$(t).detach();i.logger.info("Got authentication for provider "+i.options.name+"; retrying query.");n.close();i.queryController.executeQuery()}},t.prototype.handleNuke=function(){var n=this;b.each(this.handlers,function(t){return r.$$(n._window).off("message",t)})},t.prototype.createPopupForWaitMessage=function(n){var t=r.$$("div",{className:"coveo-waiting-for-authentication-popup"},p.DomUtils.getBasicLoadingAnimation()).el;return r.$$(n).hide(),document.body.appendChild(n),e.ModalBox.open(t,{title:o.l("Authenticating",this.options.caption),sizeMod:"small",body:this.searchInterface.options.modalContainer}),e.ModalBox},t.prototype.createPopupForVisibleIFrame=function(n){r.$$(n).addClass("coveo-authentication-iframe");var t=r.$$("div",{},n).el;return e.ModalBox.open(t,{title:o.l("Authenticating",this.options.caption),className:"coveo-authentication-popup",sizeMod:"big",body:this.searchInterface.options.modalContainer}),e.ModalBox},t.prototype.getAuthenticationProviderUriForRedirect=function(){return this.queryController.getEndpoint().getAuthenticationProviderUri(this.options.name,this._window.location.href,void 0)},t.prototype.getAuthenticationProviderUriForIFrame=function(){return this.queryController.getEndpoint().getAuthenticationProviderUri(this.options.name,void 0,"success")},t.ID="AuthenticationProvider",t.handshakeInProgress=!1,t.doExport=function(){k.exportGlobally({AuthenticationProvider:t})},t.options={name:u.ComponentOptions.buildStringOption(),caption:u.ComponentOptions.buildStringOption({postProcessing:function(n,t){return n||t.name}}),useIFrame:u.ComponentOptions.buildBooleanOption({defaultValue:!1,alias:["useIframe"]}),showIFrame:u.ComponentOptions.buildBooleanOption({defaultValue:!0,alias:["showIframe"],depend:"useIFrame"})},t}(a.Component);t.AuthenticationProvider=c;w.Initialization.registerAutoCreateComponent(c)},function(n,t,i){"use strict";var s=this&&this.__extends||function(){var n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])};return function(t,i){function r(){this.constructor=t}n(t,i);t.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});i(602);var h=i(26),c=i(3),u=i(1),f=i(4),l=i(7),r=i(8),e=i(2),a=i(188),v=i(15),o=function(n){function t(i,u,o,s,c,l){var a,v;return void 0===l&&(l=h.ModalBox),a=n.call(this,i,t.ID,o)||this,a.element=i,a.options=u,a.result=s,a._window=c,a.ModalBox=l,a.options=r.ComponentOptions.initComponentOptions(i,t,u),a._window=a._window||window,v="",a.options.overlayColor&&(v+="linear-gradient("+a.options.overlayColor+", "+(a.options.overlayGradient?"rgba(0,0,0,0)":a.options.overlayColor)+"), "),v+="url('"+(a.options.imageUrl||f.Utils.getFieldValue(s,a.options.imageField))+"') center center",a.element.style.background=v,a.element.style.backgroundSize="cover",e.Initialization.automaticallyCreateComponentsInsideResult(i,s),a.configureSpecialBackdropActions(),a}return s(t,n),t.prototype.configureSpecialBackdropActions=function(){if(f.Utils.getFieldValue(this.result,"ytthumbnailurl")){var n=new a.YouTubeThumbnail(u.$$("div").el,{embed:!0},this.getBindings(),this.result,this.ModalBox,this.element);(new v.AccessibleButton).withElement(this.element).withLabel(this.result.title).withSelectAction(function(t){u.$$(t.target).hasClass("CoveoResultLink")||n.openResultLink()}).build()}},t.ID="Backdrop",t.doExport=function(){c.exportGlobally({Backdrop:t})},t.options={imageUrl:r.ComponentOptions.buildStringOption(),imageField:r.ComponentOptions.buildFieldOption(),overlayColor:r.ComponentOptions.buildColorOption(),overlayGradient:r.ComponentOptions.buildBooleanOption({defaultValue:!1,depend:"overlayColor"})},t}(l.Component);t.Backdrop=o;e.Initialization.registerAutoCreateComponent(o)},function(n,t,i){"use strict";var s=this&&this.__extends||function(){var n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])};return function(t,i){function r(){this.constructor=t}n(t,i);t.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var e=i(8),h=i(2),o=i(124),c=i(22),l=i(5),u=i(1),r=i(0),a=i(3),f=function(n){function t(i,u,f,o){var s=n.call(this,i,e.ComponentOptions.initComponentOptions(i,t,u),f,o,t.ID)||this;return s.options=u,r.isString(s.options.colors)&&(s.options.colors=t.parseColors(s.options.colors)),null==s.options.colors.values&&(s.options.colors.values={}),s}return s(t,n),t.parseColors=function(n){if(n){if(t.colorsRegex.test(n)){var i={values:{}},u=c.StringUtils.match(n,t.colorRegex);return r.each(u,function(n){var t=n[1],r=n[2];null!=t?i.values[t.replace(/\\(:|;)/g,"$1")]={icon:r}:i.icon=r}),i}try{return JSON.parse(n)}catch(t){l.Assert.fail("Invalid colors for badge '"+n+"'")}}return{}},t.prototype.getColor=function(n){void 0===n&&(n="");var t=r.find(r.keys(this.options.colors.values),function(t){return n.toLowerCase()==t.toLowerCase()}),i=t?this.options.colors.values[t]:{};return{icon:i.icon||this.options.colors.icon,text:i.text||this.options.colors.text}},t.prototype.renderOneValue=function(t){var i=n.prototype.renderOneValue.call(this,t),r,f,e;return u.$$(i).addClass("coveo-value"),r=this.getColor(t),f=u.$$("span",{className:"coveo-badge-icon"}).el,null!=r.icon&&(f.style.color=r.icon),e=u.$$("span",{className:"coveo-badge-label"},i.innerHTML).el,null!=r.text&&(e.style.color=r.text),u.$$(i).empty(),i.appendChild(f),i.appendChild(e),i},t.prototype.prependTextCaptionToDom=function(){},t.ID="Badge",t.doExport=function(){a.exportGlobally({Badge:t})},t.options={colors:e.ComponentOptions.buildCustomOption(function(n){return t.parseColors(n)},{defaultValue:{values:{}}}),textCaption:e.ComponentOptions.buildLocalizedStringOption()},t.parent=o.FieldValue,t.colorRegex=/(?:\s*((?:[^:;]|\\[;:])*)\s*:\s*)?(\w+|#[A-Fa-f0-9]{6}|#[A-Fa-f0-9]{3})/g,t.colorsRegex=new RegExp("^(\\s*"+t.colorRegex.source+"\\s*;)*(\\s*"+t.colorRegex.source+")?\\s*$"),t}(o.FieldValue);t.Badge=f;f.options=r.omit(f.options,"textCaption");h.Initialization.registerAutoCreateComponent(f)},function(n,t,i){"use strict";var c=this&&this.__extends||function(){var n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])};return function(t,i){function r(){this.constructor=t}n(t,i);t.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});i(603);var u=i(0),f=i(35),l=i(17),e=i(11),a=i(3),o=i(6),v=i(15),r=i(1),y=i(10),p=i(7),s=i(8),w=i(2),h=function(n){function t(i,r,u){var e=n.call(this,i,t.ID,u)||this;return e.element=i,e.options=r,e.options=s.ComponentOptions.initComponentOptions(i,t,r),e.bind.oneRootElement(l.InitializationEvents.afterInitialization,function(){return e.handleAfterInitialization()}),e.bind.onRootElement(f.BreadcrumbEvents.redrawBreadcrumb,function(){return e.redrawBreadcrumb()}),e.element.style.display="none",e.element.setAttribute("tabindex","-1"),e.addDefaultAccessibilityAttributes(),e}return c(t,n),t.prototype.getBreadcrumbs=function(){var n={breadcrumbs:[],headingLevel:this.options.headingLevel};return this.bind.trigger(this.root,f.BreadcrumbEvents.populateBreadcrumb,n),this.logger.debug("Retrieved breadcrumbs",n.breadcrumbs),u.isEmpty(n.breadcrumbs)&&!u.isEmpty(this.lastBreadcrumbs)&&this.focusFirstEnabledResultList(),this.lastBreadcrumbs=n.breadcrumbs,n.breadcrumbs},t.prototype.clearBreadcrumbs=function(){this.bind.trigger(this.root,f.BreadcrumbEvents.clearBreadcrumb,{});this.logger.debug("Clearing breadcrumbs");this.usageAnalytics.logSearchEvent(y.analyticsActionCauseList.breadcrumbResetAll,{});this.queryController.executeQuery()},t.prototype.drawBreadcrumb=function(n){var e=this,t,f,i;r.$$(this.element).empty();this.element.style.display=0!=n.length?"":"none";t=document.createElement("div");r.$$(t).addClass("coveo-breadcrumb-items");this.element.appendChild(t);u.each(n,function(n){var i=n.element;r.$$(i).addClass("coveo-breadcrumb-item");t.appendChild(i)});f=r.$$("div",void 0,o.l("ClearAllFilters")).el;i=r.$$("div",{className:"coveo-breadcrumb-clear-all"},f).el;(new v.AccessibleButton).withElement(i).withSelectAction(function(){return e.clearBreadcrumbs()}).withOwner(this.bind).withoutLabelOrTitle().build();this.element.appendChild(i)},t.prototype.redrawBreadcrumb=function(){this.lastBreadcrumbs?this.drawBreadcrumb(this.lastBreadcrumbs):this.drawBreadcrumb(this.getBreadcrumbs())},t.prototype.handleDeferredQuerySuccess=function(){this.drawBreadcrumb(this.getBreadcrumbs())},t.prototype.handleQueryError=function(){this.drawBreadcrumb(this.getBreadcrumbs())},t.prototype.handleAfterInitialization=function(){var n=this;this.bind.onRootElement(e.QueryEvents.deferredQuerySuccess,function(){return n.handleDeferredQuerySuccess()});this.bind.onRootElement(e.QueryEvents.queryError,function(){return n.handleQueryError()})},t.prototype.focusFirstEnabledResultList=function(){var t=this.searchInterface.getComponents("ResultList"),n=u.find(t,function(n){return!1===n.disabled});n&&r.$$(n.element).focus(!0)},t.prototype.addDefaultAccessibilityAttributes=function(){this.element.getAttribute("role")||this.element.setAttribute("role","navigation");this.element.getAttribute("aria-label")||this.element.setAttribute("aria-label",o.l("Breadcrumb"))},t.ID="Breadcrumb",t.options={headingLevel:s.ComponentOptions.buildNumberOption({min:0,max:6})},t.doExport=function(){a.exportGlobally({Breadcrumb:t})},t}(p.Component);t.Breadcrumb=h;w.Initialization.registerAutoCreateComponent(h)},function(n,t,i){"use strict";var s=this&&this.__extends||function(){var n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])};return function(t,i){function r(){this.constructor=t}n(t,i);t.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var h=i(7),u=i(8),c=i(2),l=i(5),r=i(1),e=i(25),f=i(0),a=i(3);i(604);var v=i(12),y=i(16),o=function(n){function t(i,e,o,s){var h=n.call(this,i,t.ID,o)||this;return h.element=i,h.options=e,h.result=s,h.removedTabIndexElements=[],h.options=u.ComponentOptions.initComponentOptions(i,t,e),h.parentResult=r.$$(h.element).closest("CoveoResult"),l.Assert.check(void 0!==h.parentResult,"ActionBar needs to be a child of a Result"),h.options.hidden?(r.$$(h.parentResult).addClass("coveo-clickable"),h.appendArrow(),h.bindEvents(),f.forEach(r.$$(h.element).findAll("*"),function(n){n.hasAttribute("tabindex")&&"0"==n.getAttribute("tabindex")&&(h.removedTabIndexElements.push(n),n.removeAttribute("tabindex"))})):(h.element.style.transition="none",h.element.style.transform="none"),h}return s(t,n),t.prototype.show=function(){r.$$(this.element).addClass("coveo-opened");f.forEach(this.removedTabIndexElements,function(n){n.setAttribute("tabindex","0")})},t.prototype.hide=function(){r.$$(this.element).removeClass("coveo-opened");f.forEach(this.removedTabIndexElements,function(n){n.removeAttribute("tabindex")})},t.prototype.bindEvents=function(){var n=this;r.$$(this.parentResult).on("click",function(){return n.show()});r.$$(this.parentResult).on("mouseleave",function(){return n.hide()});r.$$(this.element).on("focusin",function(){return n.show()});r.$$(this.element).on("focusout",function(){return n.hide()});this.options.openOnMouseOver&&r.$$(this.arrowContainer).on("mouseenter",function(){return n.show()})},t.prototype.appendArrow=function(){var t=this,n;this.arrowContainer=r.$$("div",{className:"coveo-card-action-bar-arrow-container",tabindex:0}).el;this.bind.on(this.arrowContainer,"keyup",e.KeyboardUtils.keypressAction(e.KEYBOARD.ENTER,function(){return t.show()}));n=r.$$("span",{className:"coveo-icon coveo-card-action-bar-arrow-icon"},v.SVGIcons.icons.arrowUp);y.SVGDom.addClassToSVGInContainer(n.el,"coveo-card-action-bar-arrow-svg");this.arrowContainer.appendChild(n.el);this.parentResult.appendChild(this.arrowContainer)},t.ID="CardActionBar",t.doExport=function(){a.exportGlobally({CardActionBar:t})},t.options={hidden:u.ComponentOptions.buildBooleanOption({defaultValue:!0}),openOnMouseOver:u.ComponentOptions.buildBooleanOption({defaultValue:!0,depend:"hidden"})},t}(h.Component);t.CardActionBar=o;c.Initialization.registerAutoCreateComponent(o)},function(n,t,i){"use strict";var c=this&&this.__extends||function(){var n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])};return function(t,i){function r(){this.constructor=t}n(t,i);t.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var l=i(7),f=i(8),a=i(2),e=i(605),r=i(1),v=i(5),u=i(25),y=i(3);i(606);var o=i(12),s=i(16),p=i(4),w=i(6),h=function(n){function t(i,u,e){var o=n.call(this,i,t.ID,e)||this;return o.element=i,o.options=u,o.options=f.ComponentOptions.initComponentOptions(i,t,u),o.parentCard=r.$$(o.element).closest(".CoveoResult"),v.Assert.exists(o.parentCard),r.$$(o.parentCard).addClass("coveo-with-card-overlay"),o.createOverlay(),o.createButton(o.element),o.closeOverlay(),o}return c(t,n),t.prototype.toggleOverlay=function(n){void 0!==n?n?this.openOverlay():this.closeOverlay():r.$$(this.overlay).hasClass("coveo-opened")?this.closeOverlay():this.openOverlay()},t.prototype.openOverlay=function(){r.$$(this.overlay).removeClass("coveo-hidden-for-tab-nav");r.$$(this.overlay).addClass("coveo-opened");r.$$(this.parentCard).addClass("coveo-card-overlay-opened");this.bind.trigger(this.element,e.CardOverlayEvents.openCardOverlay)},t.prototype.closeOverlay=function(){r.$$(this.overlay).addClass("coveo-hidden-for-tab-nav");r.$$(this.overlay).removeClass("coveo-opened");r.$$(this.parentCard).removeClass("coveo-card-overlay-opened");this.bind.trigger(this.element,e.CardOverlayEvents.closeCardOverlay)},t.prototype.createOverlay=function(){var e=this,t,i,f,n;for(this.overlay=r.$$("div",{className:"coveo-card-overlay"}).el,t=r.$$("div",{className:"coveo-card-overlay-header"}).el,this.createButton(t),this.overlay.appendChild(t),i=r.$$("div",{className:"coveo-card-overlay-body"}).el;this.element.childNodes.length>0;)i.appendChild(this.element.firstChild);this.overlay.appendChild(i);f=r.$$("span",{className:"coveo-icon coveo-open-card-overlay"},o.SVGIcons.icons.arrowDown);s.SVGDom.addClassToSVGInContainer(f.el,"coveo-open-card-overlay-svg");n=r.$$("div",{className:"coveo-card-overlay-footer",tabindex:"0"},f.el);n.on("click",function(){return e.toggleOverlay(!1)});this.bind.on(n.el,"keyup",u.KeyboardUtils.keypressAction(u.KEYBOARD.ENTER,function(){return e.toggleOverlay(!1)}));this.overlay.appendChild(n.el);this.parentCard.appendChild(this.overlay)},t.prototype.createButton=function(n){var t=this,i;this.options.icon&&(i=r.$$("span",{className:"coveo-icon "},o.SVGIcons.icons[this.options.icon]).el,n.appendChild(i),s.SVGDom.addClassToSVGInContainer(n,"coveo-"+p.Utils.toDashCase(this.options.icon)+"-svg"));n.appendChild(r.$$("span",{className:"coveo-label"},this.options.title).el);n.setAttribute("tabindex","0");r.$$(n).on("click",function(){return t.toggleOverlay()});this.bind.on(n,"keyup",u.KeyboardUtils.keypressAction(u.KEYBOARD.ENTER,function(){return t.toggleOverlay()}))},t.ID="CardOverlay",t.doExport=function(){y.exportGlobally({CardOverlay:t})},t.options={title:f.ComponentOptions.buildLocalizedStringOption({required:!0,localizedString:function(){return w.l("NoTitle")}}),icon:f.ComponentOptions.buildIconOption()},t}(l.Component);t.CardOverlay=h;a.Initialization.registerAutoCreateComponent(h)},function(n,t,i){"use strict";var s=this&&this.__extends||function(){var n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])};return function(t,i){function r(){this.constructor=t}n(t,i);t.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var h=i(2),f=i(8),c=i(7),u=i(4),r=i(1),e=i(6),l=i(226),a=i(3),o=function(n){function t(i,e,o,s){var h=n.call(this,i,t.ID,o)||this,a,l;if(h.element=i,h.options=e,h.bindings=o,h.result=s,h.options=f.ComponentOptions.initComponentOptions(i,t,e),!u.Utils.isNullOrUndefined(u.Utils.getFieldValue(s,"sflikedby"))&&!u.Utils.isNullOrUndefined(u.Utils.getFieldValue(s,"sflikedbyid"))){var v=u.Utils.getFieldValue(s,"sflikedby").split(";"),y=u.Utils.getFieldValue(s,"sflikedbyid").split(";"),c=r.$$("div",{className:"coveo-chatter-result-box-row"});r.$$(i).append(c.el);a=r.$$("div",{className:"coveo-sprites-common-thumbup_inactive coveo-chatter-result-box-icon"});c.append(a.el);l=r.$$("div",{className:"coveo-chatter-result-likes"});c.append(l.el);h.renderLikesList(l.el,s,v,y,h.options.nbLikesToRender)}return h}return s(t,n),t.prototype.renderLikesList=function(n,t,i,u,f){for(var c,h,l,a=this,s=r.$$("div"),o=0;o<u.length-1&&(0==f||o<f);o++)s.append(this.renderLikeLink(t,i[o],u[o])),(0==f||o<f-1)&&o<u.length-2?s.append(r.$$("span",{},", ").el):o<u.length-1&&s.append(r.$$("span",{}," "+e.l("And").toLowerCase()+" ").el);0==f||u.length<=f?s.append(this.renderLikeLink(t,i[u.length-1],u[u.length-1])):(c=u.length-f,h=r.$$("a"),h.text(" "+e.l("Others",c.toString(),c)),h.on("click",function(f){f.preventDefault();r.$$(n).empty();a.renderLikesList(n,t,i,u,0)}),s.append(h.el));u.length>0&&(l=r.$$("span"),l.el.innerHTML=e.l("LikesThis",s.el.innerHTML,u.length),r.$$(n).append(l.el))},t.prototype.renderLikeLink=function(n,t,i){var f=r.$$("a",{href:l.ChatterUtils.buildURI(n.clickUri,u.Utils.getFieldValue(n,"sffeeditemid"),i)});return f.text(t),f.el},t.ID="ChatterLikedBy",t.doExport=function(){a.exportGlobally({ChatterLikedBy:t})},t.options={nbLikesToRender:f.ComponentOptions.buildNumberOption({defaultValue:2,min:0}),openInPrimaryTab:f.ComponentOptions.buildBooleanOption({defaultValue:!1}),openInSubTab:f.ComponentOptions.buildBooleanOption({defaultValue:!0})},t}(c.Component);t.ChatterLikedBy=o;h.Initialization.registerAutoCreateComponent(o)},function(n,t,i){"use strict";var e=this&&this.__extends||function(){var n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])};return function(t,i){function r(){this.constructor=t}n(t,i);t.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var o=i(7),r=i(4),s=i(226),h=i(6),c=i(2),u=i(1),l=i(3),f=function(n){function t(i,f,e,o){var c=n.call(this,i,t.ID,e)||this,l,y,a,v;return(c.element=i,c.options=f,c.bindings=e,c.result=o,r.Utils.isNullOrUndefined(r.Utils.getFieldValue(o,"sfcontentversionid")))||(l=u.$$("div",{className:"coveo-chatter-result-box-row"}),u.$$(i).append(l.el),y=u.$$("div",{className:"coveo-sprites-common-system coveo-chatter-result-box-icon"}),l.append(y.el),a=u.$$("a",{href:s.ChatterUtils.buildURI(o.clickUri,r.Utils.getFieldValue(o,"sffeeditemid"),r.Utils.getFieldValue(o,"sfcontentversionid"))}),l.append(a.el),v=r.Utils.getFirstAvailableFieldValue(o,["sfcontentfilename","sftitle","sf_title"]),r.Utils.isNullOrUndefined(v)?a.text(h.l("ShowAttachment")):a.text(v)),c}return e(t,n),t.ID="ChatterPostAttachment",t.doExport=function(){l.exportGlobally({ChatterPostAttachment:t})},t}(o.Component);t.ChatterPostAttachment=f;c.Initialization.registerAutoCreateComponent(f)},function(n,t,i){"use strict";var h=this&&this.__extends||function(){var n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])};return function(t,i){function r(){this.constructor=t}n(t,i);t.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var c=i(7),f=i(8),o=i(226),l=i(2),e=i(6),r=i(4),u=i(1),a=i(3),s=function(n){function t(i,o,s,h){var c=n.call(this,i,t.ID,s)||this,l,a,v,y;return(c.element=i,c.options=o,c.bindings=s,c.result=h,c.options=f.ComponentOptions.initComponentOptions(i,t,o),null!=r.Utils.getFieldValue(c.result,"sfcreatedbyname"))&&(l=u.$$("span"),(l.text((c.options.useFromInstead?e.l("From"):e.l("PostedBy"))+" "),u.$$(i).append(l.el),u.$$(i).append(c.renderLink(r.Utils.getFieldValue(c.result,"sfcreatedbyname"),r.Utils.getFieldValue(c.result,"sfcreatedbyid"))),!c.options.enablePostedOn||r.Utils.isNullOrUndefined(r.Utils.getFieldValue(c.result,"sfparentname"))||r.Utils.isNullOrUndefined(r.Utils.getFieldValue(c.result,"sfparentid")))||(r.Utils.isNullOrUndefined(r.Utils.getFieldValue(c.result,"sfuserid"))||r.Utils.getFieldValue(c.result,"sfuserid")==r.Utils.getFieldValue(c.result,"sfinsertedbyid")?r.Utils.isNullOrUndefined(r.Utils.getFieldValue(c.result,"sfuserid"))&&(a=u.$$("span"),a.text(" "+e.l("On").toLowerCase()+" "),u.$$(i).append(a.el),u.$$(i).append(c.renderLink(r.Utils.getFieldValue(c.result,"sfparentname"),r.Utils.getFieldValue(c.result,"sfparentid")))):(v=u.$$("span"),y=" "+e.l("OnFeed",c.renderLink(r.Utils.getFieldValue(c.result,"sfparentname"),r.Utils.getFieldValue(c.result,"sfparentid")).outerHTML),v.el.innerHTML=y,u.$$(i).append(v.el)))),c}return h(t,n),t.prototype.renderLink=function(n,t){var i=u.$$("a",{href:o.ChatterUtils.buildURI(this.result.clickUri,r.Utils.getFieldValue(this.result,"sffeeditemid"),t)});return i.text(n),o.ChatterUtils.bindClickEventToElement(i.el,this.options.openInPrimaryTab,this.options.openInSubTab)},t.ID="ChatterPostedBy",t.doExport=function(){a.exportGlobally({ChatterPostedBy:t})},t.options={enablePostedOn:f.ComponentOptions.buildBooleanOption({defaultValue:!0}),useFromInstead:f.ComponentOptions.buildBooleanOption({defaultValue:!1}),openInPrimaryTab:f.ComponentOptions.buildBooleanOption({defaultValue:!1}),openInSubTab:f.ComponentOptions.buildBooleanOption({defaultValue:!0})},t.fields=["sfcreatedbyname","sfcreatedbyid","sffeeditemid","sfuserid","sfinsertedbyid","sfparentid","sfparentname"],t}(c.Component);t.ChatterPostedBy=s;l.Initialization.registerAutoCreateComponent(s)},function(n,t,i){"use strict";var e=this&&this.__extends||function(){var n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])};return function(t,i){function r(){this.constructor=t}n(t,i);t.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var o=i(7),u=i(4),s=i(2),r=i(1),h=i(3),f=function(n){function t(i,f,e,o){var s=n.call(this,i,t.ID,e)||this,h,a,v;if(s.element=i,s.options=f,s.bindings=e,s.result=o,!u.Utils.isNullOrUndefined(u.Utils.getFieldValue(s.result,"coveochatterfeedtopics"))){var c=r.$$("div",{className:"coveo-chatter-result-box-row"}),l=u.Utils.getFieldValue(o,"coveochatterfeedtopics").split(";"),y=r.$$("div",{className:"coveo-sprites-common-tagging_tag coveo-chatter-result-box-icon"});for(c.append(y.el),h=0;h<l.length;h++)a=r.$$("span"),(a.text(l[h]),c.append(a.el),h<l.length-1)&&(v=r.$$("span"),v.text(", "),c.append(v.el));r.$$(i).append(c.el)}return s}return e(t,n),t.ID="ChatterTopic",t.doExport=function(){h.exportGlobally({ChatterTopic:t})},t}(o.Component);t.ChatterTopic=f;s.Initialization.registerAutoCreateComponent(f)},function(n,t,i){"use strict";var v=this&&this.__extends||function(){var n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])};return function(t,i){function r(){this.constructor=t}n(t,i);t.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});i(607);var y=i(0),p=i(3),f=i(11),u=i(5),o=i(13),s=i(6),r=i(1),e=i(22),h=i(4),c=i(10),w=i(7),l=i(8),b=i(2),a=function(n){function t(i,e,o){var s=n.call(this,i,t.ID,o)||this;return s.element=i,s.options=e,s.bindings=o,s.options=l.ComponentOptions.initComponentOptions(i,t,e),u.Assert.exists(i),u.Assert.exists(s.options),s.hideNext=!0,s.ignoreNextNoResults=!1,s.correctedTerm=null,s.bind.onRootElement(f.QueryEvents.buildingQuery,s.handlePrepareQueryBuilder),s.bind.onRootElement(f.QueryEvents.querySuccess,s.handleProcessNewQueryResults),s.bind.onRootElement(f.QueryEvents.noResults,s.handleNoResults),s.bind.onRootElement(f.QueryEvents.newQuery,s.handleNewQuery),r.$$(s.element).hide(),s}return v(t,n),t.prototype.doQueryWithCorrectedTerm=function(){var n=this;u.Assert.exists(this.correctedTerm);this.queryStateModel.set(o.QueryStateModel.attributesEnum.q,this.correctedTerm);this.queryController.deferExecuteQuery({beforeExecuteQuery:function(){return n.usageAnalytics.logSearchEvent(c.analyticsActionCauseList.didyoumeanClick,{})}})},t.prototype.handleNewQuery=function(){this.hideNext?(r.$$(this.element).empty(),r.$$(this.element).hide(),this.correctedTerm=null):this.hideNext=!0},t.prototype.handlePrepareQueryBuilder=function(n){u.Assert.exists(n);n.queryBuilder.enableDidYouMean=!0},t.prototype.handleNoResults=function(n){var u,f,t,i;if(this.ignoreNextNoResults)return void this.logger.warn("Query is being automatically corrected twice while returning no results.");h.Utils.isNonEmptyArray(n.results.queryCorrections)&&!n.searchAsYouType&&this.options.enableAutoCorrection&&(this.ignoreNextNoResults=!0,u=this.queryStateModel.get(o.QueryStateModel.attributesEnum.q),this.correctedTerm=n.results.queryCorrections[0].correctedQuery,f=this.buildCorrectedSentence(n.results.queryCorrections[0]),this.queryStateModel.set(o.QueryStateModel.attributesEnum.q,n.results.queryCorrections[0].correctedQuery),this.searchInterface.historyManager.replaceState(this.queryStateModel.getAttributes()),n.retryTheQuery=!0,this.hideNext=!1,t=r.$$("div",{className:"coveo-did-you-mean-no-results-for"}).el,t.innerHTML=s.l("noResultFor",'<span class="coveo-highlight coveo-did-you-mean-highlight">'+e.StringUtils.htmlEncode(u)+"<\/span>"),this.element.appendChild(t),i=r.$$("div",{className:"coveo-did-you-mean-automatic-correct"}).el,i.innerHTML=s.l("autoCorrectedQueryTo",'<span class="coveo-highlight">'+f+"<\/span>"),this.element.appendChild(i),r.$$(this.element).show(),this.usageAnalytics.logSearchEvent(c.analyticsActionCauseList.didyoumeanAutomatic,{}))},t.prototype.handleProcessNewQueryResults=function(n){var c=this,t,e,i,f,o;u.Assert.exists(n);u.Assert.exists(n.results);this.ignoreNextNoResults=!1;t=n.results;(this.logger.trace("Received query results from new query",t),h.Utils.isNonEmptyArray(t.queryCorrections))&&(e=this.buildCorrectedSentence(t.queryCorrections[0]),this.correctedTerm=t.queryCorrections[0].correctedQuery,i=r.$$("button",{type:"button"},e).el,f=r.$$("div",{className:"coveo-did-you-mean-suggestion"},s.l("didYouMean",i.outerHTML)),this.element.appendChild(f.el),o=f.find(i.tagName),r.$$(o).on("click",function(){return c.doQueryWithCorrectedTerm()}),r.$$(this.element).show())},t.prototype.buildCorrectedSentence=function(n){var t=[],i=0;return y.each(n.wordCorrections,function(r){t.push(e.StringUtils.htmlEncode(n.correctedQuery.slice(i,r.offset)));i=r.offset;t.push("<span class='coveo-did-you-mean-word-correction'>");t.push(e.StringUtils.htmlEncode(n.correctedQuery.slice(i,r.length+i)));t.push("<\/span>");i=r.offset+r.length}),t.push(e.StringUtils.htmlEncode(n.correctedQuery.slice(i))),t.join("")},t.ID="DidYouMean",t.doExport=function(){p.exportGlobally({DidYouMean:t})},t.options={enableAutoCorrection:l.ComponentOptions.buildBooleanOption({defaultValue:!0})},t}(w.Component);t.DidYouMean=a;b.Initialization.registerAutoCreateComponent(a)},function(n,t,i){"use strict";var h=this&&this.__extends||function(){var n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])};return function(t,i){function r(){this.constructor=t}n(t,i);t.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),u=this&&this.__awaiter||function(n,t,i,r){return new(i||(i=Promise))(function(u,f){function o(n){try{e(r.next(n))}catch(n){f(n)}}function s(n){try{e(r.throw(n))}catch(n){f(n)}}function e(n){n.done?u(n.value):new i(function(t){t(n.value)}).then(o,s)}e((r=r.apply(n,t||[])).next())})},f=this&&this.__generator||function(n,t){function f(n){return function(t){return s([n,t])}}function s(f){if(e)throw new TypeError("Generator is already executing.");for(;r;)try{if(e=1,u&&(i=u[2&f[0]?"return":f[0]?"throw":"next"])&&!(i=i.call(u,f[1])).done)return i;switch(u=0,i&&(f=[0,i.value]),f[0]){case 0:case 1:i=f;break;case 4:return r.label++,{value:f[1],done:!1};case 5:r.label++;u=f[1];f=[0];continue;case 7:f=r.ops.pop();r.trys.pop();continue;default:if(i=r.trys,!(i=i.length>0&&i[i.length-1])&&(6===f[0]||2===f[0])){r=0;continue}if(3===f[0]&&(!i||f[1]>i[0]&&f[1]<i[3])){r.label=f[1];break}if(6===f[0]&&r.label<i[1]){r.label=i[1];i=f;break}if(i&&r.label<i[2]){r.label=i[2];r.ops.push(f);break}i[2]&&r.ops.pop();r.trys.pop();continue}f=t.call(n,r)}catch(n){f=[6,n];u=0}finally{e=i=0}if(5&f[0])throw f[1];return{value:f[0]?f[1]:void 0,done:!0}}var e,u,i,o,r={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:f(0),"throw":f(1),"return":f(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o};Object.defineProperty(t,"__esModule",{value:!0});var e=i(203),o=i(101),c=i(3),l=i(1),a=i(10),v=i(7),r=i(8),y=i(2),p=i(30),w=i(608),b=i(609),k=i(610),s=function(n){function t(i,u,f){var e=n.call(this,i,t.ID,f)||this;return e.element=i,e.options=u,e.bindings=f,e.isFirstPositionResolved=!1,e.options=r.ComponentOptions.initComponentOptions(i,t,u),e.registerDistanceQuery(),e.bind.onRootElement(o.InitializationEvents.afterComponentsInitialization,function(n){return e.onAfterComponentsInitialization(n)}),e}return h(t,n),t.prototype.setPosition=function(n,t){var i,r;this.enable();this.latitude=n;this.longitude=t;i={position:{latitude:n,longitude:t}};this.bind.trigger(this.element,e.DistanceEvents.onPositionResolved,i);r=this.shouldTriggerQueryWhenPositionSet();this.isFirstPositionResolved=!0;r&&(this.sendAnalytics(),this.queryController.executeQuery())},t.prototype.getLastPositionRequest=function(){return u(this,void 0,void 0,function(){return f(this,function(n){switch(n.label){case 0:return this.lastPositionRequest?[4,this.lastPositionRequest]:[3,2];case 1:return n.sent(),[2,{latitude:this.latitude,longitude:this.longitude}];case 2:Promise.reject("No position request was executed yet.");n.label=3;case 3:return[2]}})})},t.prototype.sendAnalytics=function(){this.usageAnalytics.logSearchEvent(a.analyticsActionCauseList.positionSet,{})},t.prototype.shouldTriggerQueryWhenPositionSet=function(){return!this.queryController.firstQuery&&this.options.triggerNewQueryOnNewPosition},t.prototype.onAfterComponentsInitialization=function(n){var t={providers:this.getProvidersFromOptions()};this.bind.trigger(this.element,e.DistanceEvents.onResolvingPosition,t);this.lastPositionRequest=this.tryToSetPositionFromProviders(t.providers);this.options.cancelQueryUntilPositionResolved&&n.defer.push(this.lastPositionRequest)},t.prototype.tryToSetPositionFromProviders=function(n){return u(this,void 0,void 0,function(){var t,i;return f(this,function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,this.tryGetPositionFromProviders(n)];case 1:return t=r.sent(),t?this.setPosition(t.latitude,t.longitude):this.triggerDistanceNotSet(),[3,3];case 2:return i=r.sent(),this.logger.error("An error occurred while trying to resolve the current position.",i),this.triggerDistanceNotSet(),[3,3];case 3:return[2]}})})},t.prototype.getProvidersFromOptions=function(){var n=[];return this.options.useNavigator&&n.push(new b.NavigatorPositionProvider),this.options.googleApiKey&&n.push(new w.GoogleApiPositionProvider(this.options.googleApiKey)),this.options.longitudeValue&&this.options.latitudeValue&&n.push(new k.StaticPositionProvider(this.options.latitudeValue,this.options.longitudeValue)),n},t.prototype.tryGetPositionFromProviders=function(n){return u(this,void 0,void 0,function(){var i,t,r;return f(this,function(u){switch(u.label){case 0:if(!(n.length>0))return[3,5];i=n.shift();u.label=1;case 1:return u.trys.push([1,3,,4]),[4,i.getPosition()];case 2:return t=u.sent(),t.latitude&&t.longitude?[2,t]:[3,4];case 3:return r=u.sent(),this.logger.warn("An error occurred while trying to resolve the position within a position provider.",r),[3,4];case 4:return[3,0];case 5:return[2]}})})},t.prototype.triggerDistanceNotSet=function(){this.isFirstPositionResolved=!0;this.logger.warn("None of the given position providers could resolve the current position. The distance field will not be calculated and the distance components will be disabled until the next call to 'setPosition'.");this.bind.trigger(this.element,e.DistanceEvents.onPositionNotResolved,{});this.disable()},t.prototype.registerDistanceQuery=function(){var n=this;this.bind.onRootElement(o.QueryEvents.buildingQuery,function(t){if(n.isFirstPositionResolved&&t&&t.queryBuilder){var i={"function":n.getConvertedUnitsFunction("dist("+n.options.latitudeField+", "+n.options.longitudeField+", "+n.latitude+", "+n.longitude+")"),fieldName:""+n.options.distanceField};t.queryBuilder.queryFunctions.push(i);n.enableDistanceComponents()}})},t.prototype.enableDistanceComponents=function(){var n=this;l.$$(this.root).findAll("."+this.options.disabledDistanceCssClass).forEach(function(t){try{t.classList.remove(n.options.disabledDistanceCssClass);var i=p.get(t);i&&i.enable()}catch(i){n.logger.error("Could not re-enable distance component.",i,t)}})},t.prototype.getConvertedUnitsFunction=function(n){return n+"/"+this.options.unitConversionFactor},t.ID="DistanceResources",t.doExport=function(){c.exportGlobally({DistanceResources:t})},t.options={distanceField:r.ComponentOptions.buildFieldOption({required:!0}),latitudeField:r.ComponentOptions.buildFieldOption({required:!0}),longitudeField:r.ComponentOptions.buildFieldOption({required:!0}),unitConversionFactor:r.ComponentOptions.buildNumberOption({defaultValue:1e3,validator:function(n){return!!n&&n>0}}),disabledDistanceCssClass:r.ComponentOptions.buildStringOption({defaultValue:"coveo-distance-disabled"}),latitudeValue:r.ComponentOptions.buildNumberOption({float:!0}),longitudeValue:r.ComponentOptions.buildNumberOption({float:!0}),googleApiKey:r.ComponentOptions.buildStringOption(),useNavigator:r.ComponentOptions.buildBooleanOption(),triggerNewQueryOnNewPosition:r.ComponentOptions.buildBooleanOption({defaultValue:!1}),cancelQueryUntilPositionResolved:r.ComponentOptions.buildBooleanOption({defaultValue:!0})},t}(v.Component);t.DistanceResources=s;y.Initialization.registerAutoCreateComponent(s)},function(n,t,i){"use strict";var l=this&&this.__extends||function(){var n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])};return function(t,i){function r(){this.constructor=t}n(t,i);t.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});i(611);var o=i(11),a=i(3),s=i(5),u=i(6),e=i(15),r=i(1),f=i(10),v=i(7),h=i(8),y=i(2),c=function(n){function t(i,u,f){var e=n.call(this,i,t.ID,f)||this;return e.element=i,e.options=u,e.options=h.ComponentOptions.initComponentOptions(i,t,u),e.container=r.$$("div",{className:"coveo-error-report-container"}),e.element.appendChild(e.container.el),e.options.showDetailedError&&(e.message=r.$$("div",{className:"coveo-error-report-message"}),e.container.append(e.message.el)),e.helpSuggestion=r.$$("div",{className:"coveo-error-report-help-suggestion"}),r.$$(e.element).hide(),e.bind.onRootElement(o.QueryEvents.newQuery,function(){return e.handleNewQuery()}),e.bind.onRootElement(o.QueryEvents.queryError,function(n){return e.handleQueryError(n)}),e}return l(t,n),t.prototype.back=function(){this.usageAnalytics.logCustomEvent(f.analyticsActionCauseList.errorBack,{},this.root);this.usageAnalytics.logSearchEvent(f.analyticsActionCauseList.errorBack,{});history.back()},t.prototype.reset=function(){this.queryStateModel.reset();this.usageAnalytics.logSearchEvent(f.analyticsActionCauseList.errorClearQuery,{});this.usageAnalytics.logCustomEvent(f.analyticsActionCauseList.errorClearQuery,{},this.root);this.queryController.executeQuery()},t.prototype.retry=function(){this.usageAnalytics.logSearchEvent(f.analyticsActionCauseList.errorRetry,{});this.usageAnalytics.logCustomEvent(f.analyticsActionCauseList.errorRetry,{},this.root);this.queryController.executeQuery()},t.prototype.buildOrGetTitleElements=function(){var n,u=r.$$(this.element).find(".coveo-error-report-title"),t,i;return u?n=r.$$(u):(n=r.$$("div",{className:"coveo-error-report-title"}),this.container.prepend(n.el)),t=n.find("h1"),t||(t=r.$$("h1").el,n.append(t)),i=n.find("h2"),i||(i=r.$$("h2").el,n.append(i)),{title:n,h1:r.$$(t),h2:r.$$(i)}},t.prototype.setErrorTitle=function(n,t){var i={h1:n?u.l(n):u.l("OopsError"),h2:t?u.l(t):u.l("ProblemPersists")},f=this.buildOrGetTitleElements(),e=f.h1,o=f.h2;e&&o&&(r.$$(e).text(i.h1),r.$$(o).text(i.h2))},t.prototype.buildPrevious=function(){var t=this,n=r.$$("span",{className:"coveo-error-report-previous"},u.l("GoBack"));return(new e.AccessibleButton).withElement(n).withSelectAction(function(){return t.back()}).withLabel(u.l("GoBack")).build(),n.el},t.prototype.buildReset=function(){var t=this,n=r.$$("span",{className:"coveo-error-report-clear"},u.l("Reset"));return(new e.AccessibleButton).withElement(n).withSelectAction(function(){return t.reset()}).withLabel(u.l("Reset")).build(),n.el},t.prototype.buildRetry=function(){var t=this,n=r.$$("span",{className:"coveo-error-report-retry"},u.l("Retry"));return(new e.AccessibleButton).withElement(n).withSelectAction(function(){return t.retry()}).withLabel(u.l("Retry")).build(),n.el},t.prototype.handleNewQuery=function(){r.$$(this.element).hide();var n=this.buildOrGetTitleElements(),t=n.h1,i=n.h2;t.remove();i.remove();null!=this.closePopup&&this.closePopup()},t.prototype.handleQueryError=function(n){var i=this,t;if(s.Assert.exists(n),s.Assert.exists(n.error),this.organizationId=n.endpoint.options.queryStringArguments.organizationId?n.endpoint.options.queryStringArguments.organizationId:u.l("CoveoOrganization"),!n.error.isMissingAuthentication){switch(n.error.name){case"NoEndpointsException":this.options.showDetailedError=!1;this.buildEndpointErrorElements("https://docs.coveo.com/en/331/");this.setErrorTitle(u.l("NoEndpoints",this.organizationId),u.l("AddSources"));break;case"InvalidTokenException":this.options.showDetailedError=!1;this.buildEndpointErrorElements("https://docs.coveo.com/en/56/");this.setErrorTitle(u.l("CannotAccess",this.organizationId),u.l("InvalidToken"));break;case"GroupByAndFacetBothExistingException":this.options.showDetailedError=!1;this.buildEndpointErrorElements("https://docs.coveo.com/en/2917");this.setErrorTitle(void 0,u.l("GroupByAndFacetRequestsCannotCoexist"));break;case"OrganizationIsPausedException":this.options.showDetailedError=!1;this.buildEndpointErrorElements("https://docs.coveo.com/l6af0467");this.setErrorTitle(u.l("OrganizationWillResume"),u.l("OrganizationIsPaused"));break;default:this.buildOptionsElement();this.setErrorTitle()}this.options.showDetailedError&&(this.message.empty(),t=r.$$("span",{className:"coveo-error-report-more-info"},u.l("MoreInfo")),t.on("click",function(){t.empty();i.message.el.appendChild(i.buildErrorInfo(n.error))}),this.message.el.appendChild(t.el));r.$$(this.element).show()}},t.prototype.buildErrorInfo=function(n){var t=r.$$("div",{className:"coveo-error-info"}),f=r.$$("textarea",void 0,JSON.stringify(n,null,2)),i;return t.el.appendChild(f.el),i=r.$$("div",{className:"coveo-error-info-label"},u.l("CopyPasteToSupport")),t.el.appendChild(i.el),t.el},t.prototype.buildOptionsElement=function(){var t=this.container.find(".coveo-error-report-options"),n;t&&r.$$(t).remove();n=r.$$("div",{className:"coveo-error-report-options"});n.el.appendChild(this.buildPrevious());n.el.appendChild(this.buildReset());n.el.appendChild(this.buildRetry());this.container.append(n.el)},t.prototype.buildEndpointErrorElements=function(n){void 0===n&&(n="https://docs.coveo.com/en/331/");this.helpSuggestion.empty();var t=r.$$("a",{href:n,className:"coveo-error-report-help-link"});t.setHtml(u.l("CoveoOnlineHelp"));this.helpSuggestion.append(t.el);this.container.el.insertBefore(this.helpSuggestion.el,this.message.el)},t.ID="ErrorReport",t.doExport=function(){a.exportGlobally({ErrorReport:t})},t.options={showDetailedError:h.ComponentOptions.buildBooleanOption({defaultValue:!0})},t}(v.Component);t.ErrorReport=c;y.Initialization.registerAutoCreateComponent(c)},function(n,t,i){"use strict";var u=this&&this.__extends||function(){var n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])};return function(t,i){function r(){this.constructor=t}n(t,i);t.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),r;Object.defineProperty(t,"__esModule",{value:!0});var f=i(7),e=i(8),o=i(5),s=i(68),h=i(2),c=i(3);i(612);r=function(n){function t(i,r,u,f){var h=n.call(this,i,t.ID,u)||this;return h.element=i,h.options=r,h.bindings=u,h.result=f,h.options=e.ComponentOptions.initComponentOptions(i,t,r),h.result=h.result||h.resolveResult(),o.Assert.exists(h.result),h.element.innerHTML=s.HighlightUtils.highlightString(h.result.excerpt,h.result.excerptHighlights,null,"coveo-highlight"),h}return u(t,n),t.ID="Excerpt",t.doExport=function(){c.exportGlobally({Excerpt:t})},t}(f.Component);t.Excerpt=r;h.Initialization.registerAutoCreateComponent(r)},function(n,t,i){"use strict";function o(n){e=n}var s=this&&this.__extends||function(){var n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])};return function(t,i){function r(){this.constructor=t}n(t,i);t.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),h=this&&this.__assign||Object.assign||function(n){for(var t,r,i=1,u=arguments.length;i<u;i++){t=arguments[i];for(r in t)Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},u;Object.defineProperty(t,"__esModule",{value:!0});var c=i(7),r=i(8),l=i(55),a=i(10),v=i(2),f=i(6),y=i(0),p=i(3);i(613);var w=i(12),b=i(19),k=i(30),d=i(102),e=function(){return document.createElement("a")};t.setCreateAnchor=o;u=function(n){function t(i,u,e,o){var s=n.call(this,i,t.ID,e)||this;return s.element=i,s.options=u,s.bindings=e,s._window=o,s._window=s._window||window,s.options=r.ComponentOptions.initComponentOptions(i,t,u),s.bind.onRootElement(l.SettingsEvents.settingsPopulateMenu,function(n){n.menuData.push({text:f.l("ExportToExcel"),className:"coveo-export-to-excel",tooltip:f.l("ExportToExcelDescription"),onOpen:function(){return s.download()},svgIcon:w.SVGIcons.icons.dropdownExport,svgIconClassName:"coveo-export-to-excel-svg"})}),s}return s(t,n),t.prototype.download=function(){var t=this,i=this.buildExcelQuery(),n;this.logger.debug("Performing query following 'Export to Excel' click");n=this.queryController.getEndpoint();this.usageAnalytics.logCustomEvent(a.analyticsActionCauseList.exportToExcel,{},this.element);n.fetchBinary(i).then(function(n){return t.downloadExcelFile(n)})},t.prototype.buildExcelQuery=function(){var n=this.queryController.getLastQuery();return n=y.omit(n,["numberOfResults","fieldsToInclude"]),this.options.fieldsToInclude&&(n.fieldsToInclude=this.options.fieldsToInclude),h({},n,{format:"xlsx",numberOfResults:this.options.numberOfResults})},t.prototype.downloadExcelFile=function(n){var r=new Blob([n],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"}),u=this.buildExcelFileName(),i,t;if(window.navigator.msSaveOrOpenBlob)return void window.navigator.msSaveOrOpenBlob(r,u);i=URL.createObjectURL(r);t=e();t.href=i;t.download=u;t.click();URL.revokeObjectURL(i)},t.prototype.buildExcelFileName=function(){var n=d().utc();return"query--"+n.format("YYYY")+"-"+n.format("MM")+"-"+n.format("DD")+"--"+n.format("HH")+"-"+n.format("mm")+"-"+n.format("ss")+".xlsx"},t.create=function(n,i,r){return new t(n,i,k.get(r,b.SearchInterface).getBindings())},t.ID="ExportToExcel",t.doExport=function(){p.exportGlobally({ExportToExcel:t})},t.options={numberOfResults:r.ComponentOptions.buildNumberOption({defaultValue:100,min:1}),fieldsToInclude:r.ComponentOptions.buildFieldsOption()},t}(c.Component);t.ExportToExcel=u;v.Initialization.registerAutoCreateComponent(u)},function(n,t,i){"use strict";var c=this&&this.__extends||function(){var n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])};return function(t,i){function r(){this.constructor=t}n(t,i);t.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});i(521);var f=i(0),l=i(34),a=i(3),e=i(5),o=i(13),r=i(1),v=i(4),s=i(10),y=i(7),u=i(8),p=i(2),w=i(520),h=function(n){function t(i,o,s){var h=n.call(this,i,t.ID,s)||this,a,c;return h.options=o,h.options&&"omniboxSuggestionOptions"in h.options&&(h.options=f.extend(h.options,h.options.omniboxSuggestionOptions)),h.options=u.ComponentOptions.initComponentOptions(i,t,o),e.Assert.check(v.Utils.isCoveoField(h.options.field),h.options.field+" is not a valid field"),h.options.onSelect=h.options.onSelect||h.onRowSelection,c=function(n){var t=r.$$("div",{className:"magic-box-suggestion coveo-omnibox-selectable coveo-top-field-suggestion-row"});return n.data&&(t.el.innerHTML=n.data),t.el.outerHTML},a=null==h.options.headerTitle?{row:c}:{header:{template:function(){var n=r.$$("div",{className:"coveo-top-field-suggestion-header"}),i=r.$$("span",{className:"coveo-icon-top-field"}),t=r.$$("span",{className:"coveo-caption"});return h.options.headerTitle&&t.text(h.options.headerTitle),n.append(i.el),n.append(t.el),n.el.outerHTML},title:h.options.headerTitle},row:c},h.suggestionForOmnibox=new w.SuggestionForOmnibox(a,function(n,t){h.options.onSelect.call(h,n,t)},function(n,t){h.onRowTab(n,t)}),h.bind.onRootElement(l.OmniboxEvents.populateOmnibox,function(n){return h.handlePopulateOmnibox(n)}),h}return c(t,n),t.prototype.selectSuggestion=function(n){if(this.currentlyDisplayedSuggestions)if(isNaN(n))this.currentlyDisplayedSuggestions[n]&&r.$$(this.currentlyDisplayedSuggestions[n].element).trigger("click");else{var t=f.findWhere(this.currentlyDisplayedSuggestions,{pos:n});t&&r.$$(t.element).trigger("click")}},t.prototype.handlePopulateOmnibox=function(n){var t=this,i,u;e.Assert.exists(n);i=n.completeQueryExpression.word;u=new Promise(function(u){t.queryController.getEndpoint().listFieldValues(t.buildListFieldValueRequest(i)).then(function(i){var e=t.suggestionForOmnibox.buildOmniboxElement(i,n);t.currentlyDisplayedSuggestions={};e?(f.map(r.$$(e).findAll(".coveo-omnibox-selectable"),function(n,i){t.currentlyDisplayedSuggestions[r.$$(n).text()]={element:n,pos:i}}),u({element:e,zIndex:t.options.omniboxZIndex})):u({element:void 0})}).catch(function(){u({element:void 0})})});n.rows.push({deferred:u})},t.prototype.onRowSelection=function(n,t){t.closeOmnibox();this.queryStateModel.set(o.QueryStateModel.attributesEnum.q,n);this.usageAnalytics.logSearchEvent(s.analyticsActionCauseList.omniboxField,{});this.queryController.executeQuery()},t.prototype.onRowTab=function(n,t){t.clear();t.closeOmnibox();this.queryStateModel.set(o.QueryStateModel.attributesEnum.q,""+n);this.usageAnalytics.logCustomEvent(s.analyticsActionCauseList.omniboxField,{},this.element)},t.prototype.buildListFieldValueRequest=function(n){return{field:this.options.field,ignoreAccents:!0,sortCriteria:"occurrences",maximumNumberOfValues:this.options.numberOfSuggestions,patternType:"Wildcards",pattern:"*"+n+"*",queryOverride:this.options.queryOverride}},t.ID="FieldSuggestions",t.doExport=function(){a.exportGlobally({FieldSuggestions:t})},t.options={field:u.ComponentOptions.buildFieldOption({required:!0}),queryOverride:u.ComponentOptions.buildQueryExpressionOption({defaultValue:""}),omniboxZIndex:u.ComponentOptions.buildNumberOption({defaultValue:51,min:0}),headerTitle:u.ComponentOptions.buildLocalizedStringOption(),numberOfSuggestions:u.ComponentOptions.buildNumberOption({defaultValue:5,min:1}),onSelect:u.ComponentOptions.buildCustomOption(function(){return null})},t}(y.Component);t.FieldSuggestions=h;p.Initialization.registerAutoCreateComponent(h)},function(n,t,i){"use strict";var c=this&&this.__extends||function(){var n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])};return function(t,i){function r(){this.constructor=t}n(t,i);t.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),l=this&&this.__assign||Object.assign||function(n){for(var t,r,i=1,u=arguments.length;i<u;i++){t=arguments[i];for(r in t)Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},u=this&&this.__awaiter||function(n,t,i,r){return new(i||(i=Promise))(function(u,f){function o(n){try{e(r.next(n))}catch(n){f(n)}}function s(n){try{e(r.throw(n))}catch(n){f(n)}}function e(n){n.done?u(n.value):new i(function(t){t(n.value)}).then(o,s)}e((r=r.apply(n,t||[])).next())})},f=this&&this.__generator||function(n,t){function f(n){return function(t){return s([n,t])}}function s(f){if(e)throw new TypeError("Generator is already executing.");for(;r;)try{if(e=1,u&&(i=u[2&f[0]?"return":f[0]?"throw":"next"])&&!(i=i.call(u,f[1])).done)return i;switch(u=0,i&&(f=[0,i.value]),f[0]){case 0:case 1:i=f;break;case 4:return r.label++,{value:f[1],done:!1};case 5:r.label++;u=f[1];f=[0];continue;case 7:f=r.ops.pop();r.trys.pop();continue;default:if(i=r.trys,!(i=i.length>0&&i[i.length-1])&&(6===f[0]||2===f[0])){r=0;continue}if(3===f[0]&&(!i||f[1]>i[0]&&f[1]<i[3])){r.label=f[1];break}if(6===f[0]&&r.label<i[1]){r.label=i[1];i=f;break}if(i&&r.label<i[2]){r.label=i[2];r.ops.push(f);break}i[2]&&r.ops.pop();r.trys.pop();continue}f=t.call(n,r)}catch(n){f=[6,n];u=0}finally{e=i=0}if(5&f[0])throw f[1];return{value:f[0]?f[1]:void 0,done:!0}}var e,u,i,o,r={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:f(0),"throw":f(1),"return":f(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o};Object.defineProperty(t,"__esModule",{value:!0});i(521);var a=i(0),v=i(34),y=i(3),o=i(66),s=i(204),p=i(1),e=i(73),w=i(10),b=i(7),r=i(8),k=i(2),d=i(619),h=function(n){function t(i,u,f){var e=n.call(this,i,t.ID,f)||this;return e.options=u,e.options=r.ComponentOptions.initComponentOptions(i,t,u),e.facetValueSuggestionsProvider=new d.FacetValueSuggestionsProvider(e.queryController,{field:e.options.field,expression:e.options.expression}),e.queryStateFieldFacetId="f:"+e.options.field,e.options.templateHelper||(e.options.templateHelper=t.defaultTemplate),p.$$(e.root).on(v.OmniboxEvents.populateOmniboxSuggestions,function(n,t){t.suggestions.push(e.getSuggestions(t.omnibox))}),e}return c(t,n),t.defaultTemplate=function(n){var t=n.keyword.html,i=e.DomUtils.highlight(n.value,"coveo-omnibox-hightlight"),r=this.options.displayEstimateNumberOfResults?e.DomUtils.highlight(" ("+o.l("ResultCount",n.numberOfResults.toString(),n.numberOfResults)+")","coveo-omnibox-suggestion-results-count",!0):"";return""+o.l("KeywordInCategory",t,i)+r},t.getQuerySuggestionKeywordFromText=function(n){return{text:n,html:e.DomUtils.highlight(n,"coveo-omnibox-hightlight")}},t.prototype.getSuggestions=function(n){return u(this,void 0,void 0,function(){var t,i;return f(this,function(r){switch(r.label){case 0:return 0==this.options.numberOfSuggestions?[2,[]]:(t=n.getText(),[4,this.getFacetValueSuggestions(t,n)]);case 1:return i=r.sent(),[2,i||[]]}})})},t.prototype.getQuerySuggestionsKeywords=function(n){return u(this,void 0,void 0,function(){var t;return f(this,function(i){switch(i.label){case 0:return this.options.useQuerySuggestions&&n.suggestionAddon?[4,n.suggestionAddon.getSuggestion()]:[3,2];case 1:return t=i.sent(),[2,t.map(function(n){var t=n.text,i=n.html;return{text:t||"",html:i}})];case 2:return[2,[]]}})})},t.prototype.getFacetValueSuggestions=function(n,i){return u(this,void 0,void 0,function(){var u,e,r;return f(this,function(f){switch(f.label){case 0:return u=this.options.useValueFromSearchbox?[t.getQuerySuggestionKeywordFromText(n)]:[],[4,this.getQuerySuggestionsKeywords(i)];case 1:return e=f.sent(),r=a.unique(u.concat(e).filter(function(n){return""!=n.text}),function(n){return n.text}),0===r.length?[2,[]]:[2,this.getSuggestionsForWords(r,i)]}})})},t.prototype.getSuggestionsForWords=function(n,t){return u(this,void 0,void 0,function(){var i,r,u,e,o=this;return f(this,function(f){switch(f.label){case 0:return f.trys.push([0,2,,3]),[4,this.facetValueSuggestionsProvider.getSuggestions(n)];case 1:return i=f.sent(),this.logger.debug("FacetValue Suggestions Results",i),r=this.queryStateModel.get(this.queryStateFieldFacetId)||[],u=i.filter(function(n){return o.isSuggestionRowAlreadyCheckedInFacet(n,r)}),[2,this.rankSuggestionRows(u).map(function(n){return o.mapFacetValueSuggestion(n,t)})];case 2:return e=f.sent(),this.logger.error(e),[2,[]];case 3:return[2]}})})},t.prototype.isSuggestionRowAlreadyCheckedInFacet=function(n,t){return!t.some(function(t){return t==n.value})},t.prototype.rankSuggestionRows=function(n){var t=n.sort(function(n,t){return t.score.distanceFromTotalForField-n.score.distanceFromTotalForField}).slice(),f=Math.ceil(this.options.numberOfSuggestions/2),i=-Math.floor(this.options.numberOfSuggestions/2),r=t.splice(0,f),u;return 0!=i?(u=t.slice(i),r.concat(u)):r},t.prototype.mapFacetValueSuggestion=function(n,t){var r=this,i={html:this.buildDisplayNameForRow(n,t),text:n.keyword.text},u=this.options.isCategoryField?n.value.split(this.options.categoryFieldDelimitingCharacter):[n.value];return i.advancedQuery=u.map(function(n){return r.options.field+'=="'+n+'"'}).join(" AND "),i.onSelect=function(){return r.onSuggestionSelected(i,u,t)},i},t.prototype.buildDisplayNameForRow=function(n,i){try{return this.options.templateHelper.call(this,n,i)}catch(r){return this.logger.error("Could not apply template from options for the given row. Will use default template.",r,n,i),t.defaultTemplate.call(this,n,i)}},t.prototype.onSuggestionSelected=function(n,t,i){i.setText(n.text);var r=l({},this.queryStateModel.get(s.QueryStateModel.attributesEnum.fv)),u=r[this.options.field.toString()]||[];r[this.options.field.toString()]=u.concat(t);this.queryStateModel.set(s.QueryStateModel.attributesEnum.fv,r);i.magicBox.blur();this.usageAnalytics.logSearchEvent(w.analyticsActionCauseList.omniboxField,{});this.queryController.executeQuery()},t.ID="FacetValueSuggestions",t.doExport=function(){y.exportGlobally({FacetValueSuggestions:t})},t.options={field:r.ComponentOptions.buildFieldOption({required:!0}),numberOfSuggestions:r.ComponentOptions.buildNumberOption({defaultValue:5,min:1}),useQuerySuggestions:r.ComponentOptions.buildBooleanOption({defaultValue:!0}),useValueFromSearchbox:r.ComponentOptions.buildBooleanOption({postProcessing:function(n,t){return n||!t.useQuerySuggestions}}),displayEstimateNumberOfResults:r.ComponentOptions.buildBooleanOption({defaultValue:!1}),templateHelper:r.ComponentOptions.buildCustomOption(function(){return null}),isCategoryField:r.ComponentOptions.buildBooleanOption({defaultValue:!1}),categoryFieldDelimitingCharacter:r.ComponentOptions.buildStringOption({defaultValue:"|",depend:"isCategoryField"}),expression:r.ComponentOptions.buildQueryExpressionOption()},t}(b.Component);t.FacetValueSuggestions=h;k.Initialization.registerAutoCreateComponent(h)},function(n,t,i){"use strict";var h=this&&this.__extends||function(){var n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])};return function(t,i){function r(){this.constructor=t}n(t,i);t.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),s;Object.defineProperty(t,"__esModule",{value:!0});i(620);var c=i(0),v=i(3),e=i(6),y=i(15),r=i(1),p=i(21),f=i(16),l=i(12),w=i(7),u=i(8),b=i(2),o=i(124),a=function(n){function t(i,f,e,o){var h=n.call(this,i,s.ID,e)||this,a,l;return h.element=i,h.options=f,h.result=o,h.options=u.ComponentOptions.initComponentOptions(i,t,f),a=r.$$(h.element).findAll("tr[data-field]"),(c.each(a,function(n){new s(n,{},e,o)}),null==r.$$(h.element).find("tr")&&r.$$(i).detach(),h.isTogglable())&&(l="coveo-field-table-toggle-container",h.toggleContainer=r.$$("div",{className:l,id:c.uniqueId(l)}).el,h.buildToggle(),r.$$(h.toggleContainer).insertBefore(h.element),h.toggleContainer.appendChild(h.element),h.toggleContainer.appendChild(h.toggleButtonInsideTable)),h}return h(t,n),Object.defineProperty(t.prototype,"isExpanded",{get:function(){return!this.toggleButton||"true"===this.toggleButton.getAttribute("aria-expanded")},set:function(n){this.toggleButton&&this.toggleButton.setAttribute("aria-expanded",n.toString())},enumerable:!0,configurable:!0}),t.prototype.toggle=function(n){void 0===n&&(n=!1);this.isExpanded?this.minimize(n):this.expand(n)},t.prototype.expand=function(n){void 0===n&&(n=!1);this.isTogglable()&&(this.isExpanded=!0,this.toggleCaption.textContent=this.options.expandedTitle,f.SVGDom.addClassToSVGInContainer(this.toggleButtonSVGContainer,"coveo-opened"),f.SVGDom.addClassToSVGInContainer(this.toggleButtonInsideTable,"coveo-opened"),n?this.slideToggle(!0):this.slideToggle(!0,!1))},t.prototype.minimize=function(n){void 0===n&&(n=!1);this.isTogglable()&&(this.isExpanded=!1,this.toggleCaption.textContent=this.options.minimizedTitle,f.SVGDom.removeClassFromSVGInContainer(this.toggleButtonSVGContainer,"coveo-opened"),f.SVGDom.removeClassFromSVGInContainer(this.toggleButtonInsideTable,"coveo-opened"),n?this.slideToggle(!1):this.slideToggle(!1,!1))},t.prototype.updateToggleHeight=function(){this.updateToggleContainerHeight();this.isExpanded?this.expand():this.minimize()},t.prototype.isTogglable=function(){return!!this.options.allowMinimization},t.prototype.buildToggle=function(){var t=this,n;this.toggleCaption=r.$$("span",{className:"coveo-field-table-toggle-caption"}).el;this.toggleButton=r.$$("div",{className:"coveo-field-table-toggle coveo-field-table-toggle-down",ariaControls:this.toggleContainer.id}).el;this.toggleButtonSVGContainer=r.$$("span",null,l.SVGIcons.icons.arrowDown).el;f.SVGDom.addClassToSVGInContainer(this.toggleButtonSVGContainer,"coveo-field-table-toggle-down-svg");this.toggleButton.appendChild(this.toggleCaption);this.toggleButton.appendChild(this.toggleButtonSVGContainer);r.$$(this.toggleButton).insertBefore(this.element);this.toggleButtonInsideTable=r.$$("span",{className:"coveo-field-table-toggle coveo-field-table-toggle-up"},l.SVGIcons.icons.arrowUp).el;f.SVGDom.addClassToSVGInContainer(this.toggleButtonInsideTable,"coveo-field-table-toggle-up-svg");this.isExpanded=!0===this.options.minimizedByDefault?!1:!1===this.options.minimizedByDefault?!0:!p.QueryUtils.hasExcerpt(this.result);requestAnimationFrame(function(){return t.updateToggleHeight()});n=function(){return t.toggle(!0)};(new y.AccessibleButton).withElement(this.toggleButton).withSelectAction(function(){return n()}).withOwner(this.bind).withLabel(e.l("Details")).build();r.$$(this.toggleButtonInsideTable).on("click",n)},t.prototype.slideToggle=function(n,t){void 0===n&&(n=!0);void 0===t&&(t=!0);t||r.$$(this.toggleContainer).addClass("coveo-no-transition");n?(this.toggleContainer.style.display="block",this.toggleContainer.style.height=this.containerHeight):this.toggleContainer.style.height="0";t||(this.toggleContainer.offsetHeight,r.$$(this.toggleContainer).removeClass("coveo-no-transition"))},Object.defineProperty(t.prototype,"containerHeight",{get:function(){return this.toggleContainerHeight||this.updateToggleContainerHeight(),this.toggleContainerHeight+"px"},enumerable:!0,configurable:!0}),t.prototype.updateToggleContainerHeight=function(){this.toggleContainerHeight=this.toggleContainer.scrollHeight},t.ID="FieldTable",t.doExport=function(){v.exportGlobally({FieldTable:t,FieldValue:o.FieldValue})},t.options={allowMinimization:u.ComponentOptions.buildBooleanOption({defaultValue:!0}),expandedTitle:u.ComponentOptions.buildLocalizedStringOption({localizedString:function(){return e.l("Details")},depend:"allowMinimization"}),minimizedTitle:u.ComponentOptions.buildLocalizedStringOption({localizedString:function(){return e.l("Details")},depend:"allowMinimization"}),minimizedByDefault:u.ComponentOptions.buildBooleanOption({depend:"allowMinimization"})},t}(w.Component);t.FieldTable=a;b.Initialization.registerAutoCreateComponent(a);s=function(n){function t(i,f,e,o){var s=n.call(this,i,f,e,o,t.ID)||this,h;return s.element=i,s.options=f,s.result=o,s.options=u.ComponentOptions.initComponentOptions(i,t,f),h=r.$$("th").el,h.appendChild(document.createTextNode(s.options.caption.toLocaleString())),s.element.insertBefore(h,s.getValueContainer()),s}return h(t,n),t.prototype.getValueContainer=function(){return null==this.valueContainer&&(this.valueContainer=document.createElement("td"),this.element.appendChild(this.valueContainer)),this.valueContainer},t.ID="ValueRow",t.options={caption:u.ComponentOptions.buildStringOption({postProcessing:function(n,t){return n||t.field.substr(1)}})},t.parent=o.FieldValue,t}(o.FieldValue)},function(n,t,i){"use strict";var f=this&&this.__extends||function(){var n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])};return function(t,i){function r(){this.constructor=t}n(t,i);t.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var e=i(3),o=i(2),r=i(190),u=function(n){function t(t,i,u){var f=n.call(this,t,i,u)||this;return f.element=t,f.options=i,f.options.getMoreResults=function(n){return r.Folding.foldWithParent(n)[0].attachments},f.options.getResult=function(n){var t=r.Folding.defaultGetResult(n);return t.childResults=t.attachments,t.attachments=[],t},f}return f(t,n),t.ID="FoldingForThread",t.doExport=function(){e.exportGlobally({FoldingForThread:t})},t}(r.Folding);t.FoldingForThread=u;o.Initialization.registerAutoCreateComponent(u)},function(n,t,i){"use strict";var c=this&&this.__extends||function(){var n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])};return function(t,i){function r(){this.constructor=t}n(t,i);t.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),h,o;Object.defineProperty(t,"__esModule",{value:!0});var l=i(7),e=i(8),a=i(6),v=i(11),s=i(35),y=i(10),r=i(13),u=i(1),p=i(4),w=i(2),b=i(5),f=i(0),k=i(3);i(621);h=i(12);o=function(n){function t(i,r,u){var f=n.call(this,i,t.ID,u)||this;return f.element=i,f.options=r,f.options=e.ComponentOptions.initComponentOptions(i,t,r),f.bind.onRootElement(v.QueryEvents.buildingQuery,function(n){return f.handleBuildingQuery(n)}),f.bind.onRootElement(s.BreadcrumbEvents.populateBreadcrumb,function(n){return f.handlePopulateBreadcrumb(n)}),f.bind.onRootElement(s.BreadcrumbEvents.clearBreadcrumb,function(){return f.setStateEmpty()}),f}return c(t,n),t.prototype.clear=function(){this.setStateEmpty();var n=this.getDescription();this.usageAnalytics.logSearchEvent(y.analyticsActionCauseList.contextRemove,{contextName:n});this.queryController.executeQuery()},t.prototype.setStateEmpty=function(){this.queryStateModel.set(r.QUERY_STATE_ATTRIBUTES.HD,"");this.queryStateModel.set(r.QUERY_STATE_ATTRIBUTES.HQ,"")},t.prototype.handleBuildingQuery=function(n){b.Assert.exists(n);var t=this.queryStateModel.get(r.QUERY_STATE_ATTRIBUTES.HQ);p.Utils.isNonEmptyString(t)&&n.queryBuilder.advancedExpression.add(t)},t.prototype.handlePopulateBreadcrumb=function(n){var c=this,o=this.getDescription(),t,i,e,s;f.isEmpty(o)||f.isEmpty(this.queryStateModel.get(r.QUERY_STATE_ATTRIBUTES.HQ))||(t=document.createElement("div"),u.$$(t).addClass("coveo-hidden-query-breadcrumb"),i=document.createElement("span"),u.$$(i).addClass("coveo-hidden-query-breadcrumb-title"),u.$$(i).text(this.options.title),t.appendChild(i),e=u.$$("span",{className:"coveo-hidden-query-breadcrumb-value"},f.escape(o)).el,t.appendChild(e),s=u.$$("span",{className:"coveo-hidden-query-breadcrumb-clear"},h.SVGIcons.icons.mainClear),e.appendChild(s.el),u.$$(e).on("click",function(){return c.clear()}),n.breadcrumbs.push({element:t}))},t.prototype.getDescription=function(){var n=this.queryStateModel.get(r.QueryStateModel.attributesEnum.hd);return f.isEmpty(n)&&(n=this.queryStateModel.get(r.QueryStateModel.attributesEnum.hq)),f.isEmpty(n)||n.length>this.options.maximumDescriptionLength&&(n=n.slice(0,this.options.maximumDescriptionLength)+" ..."),n},t.ID="HiddenQuery",t.doExport=function(){k.exportGlobally({HiddenQuery:t})},t.options={maximumDescriptionLength:e.ComponentOptions.buildNumberOption({min:0,defaultValue:100}),title:e.ComponentOptions.buildLocalizedStringOption({localizedString:function(){return a.l("AdditionalFilters")+":"}})},t}(l.Component);t.HiddenQuery=o;w.Initialization.registerAutoCreateComponent(o)},function(n,t,i){"use strict";var v=this&&this.__extends||function(){var n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])};return function(t,i){function r(){this.constructor=t}n(t,i);t.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),y=this&&this.__assign||Object.assign||function(n){for(var t,r,i=1,u=arguments.length;i<u;i++){t=arguments[i];for(r in t)Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n};Object.defineProperty(t,"__esModule",{value:!0});var e=i(118),o=i(69),f=i(8),p=i(622),w=i(623),s=i(4),u=i(1),b=i(31),k=i(624),d=i(626),h=i(627),g=i(5),nt=i(629),tt=i(631),it=i(2),r=i(0),rt=i(3);i(632);var c=i(12),l=i(16),ut=i(84),ft=i(15),a=function(n){function t(i,r,u){var e=n.call(this,i,r,u,t.ID)||this;return e.element=i,e.bindings=u,e.shouldReshuffleFacetValuesClientSide=!1,e.isFieldValueCompatible=!1,e.correctLevels=[],e.options=f.ComponentOptions.initComponentOptions(i,t,e.options),e.numberOfValuesToShow=e.originalNumberOfValuesToShow=e.options.numberOfValues||5,e.numberOfValues=Math.max(e.options.numberOfValues,1e4),e.options.injectionDepth=Math.max(e.options.injectionDepth,1e4),e.logger.info("Hierarchy facet: Set number of values very high in order to build hierarchy",e.numberOfValues,e),e.logger.info("Hierarchy facet: Set injection depth very high in order to build hierarchy",e.options.injectionDepth),e}return v(t,n),t.prototype.selectValue=function(t,i){void 0===i&&(i=!this.options.useAnd);this.ensureDom();this.ensureValueHierarchyExists([t]);var r=this.getValueFromHierarchy(t);i&&this.selectChilds(r,r.childs);this.flagParentForSelection(r);n.prototype.selectValue.call(this,t)},t.prototype.selectMultipleValues=function(t,i){var u=this;void 0===i&&(i=!this.options.useAnd);this.ensureDom();this.ensureValueHierarchyExists(t);r.each(t,function(n){var t=u.getValueFromHierarchy(n);u.flagParentForSelection(t);i&&r.each(t.childs,function(n){u.selectValue(n.facetValue)})});n.prototype.selectMultipleValues.call(this,t)},t.prototype.deselectValue=function(t,i){var e=this,u,f;void 0===i&&(i=!0);this.ensureDom();this.ensureValueHierarchyExists([t]);u=this.getValueFromHierarchy(t);i&&void 0!=u.childs&&(f=r.filter(u.childs,function(n){var t=e.getFacetValueFromHierarchy(n.facetValue);return t.selected||t.excluded}),u.hasChildSelected=!1,f.length==u.childs.length&&this.deselectChilds(u,u.childs));this.deselectParent(u.parent);this.unflagParentForSelection(u);n.prototype.deselectValue.call(this,t)},t.prototype.excludeValue=function(t,i){void 0===i&&(i=!this.options.useAnd);this.ensureDom();this.ensureValueHierarchyExists([t]);var r=this.getValueFromHierarchy(t);i?this.excludeChilds(r.childs):(this.deselectChilds(r,r.childs),this.close(r));this.flagParentForSelection(r);n.prototype.excludeValue.call(this,t)},t.prototype.unexcludeValue=function(t,i){void 0===i&&(i=!this.options.useAnd);this.ensureDom();this.ensureValueHierarchyExists([t]);var r=this.getValueFromHierarchy(t);i&&this.unexcludeChilds(r.childs);this.unflagParentForSelection(r);n.prototype.unexcludeValue.call(this,t)},t.prototype.deselectMultipleValues=function(t,i){var u=this;void 0===i&&(i=!this.options.useAnd);this.ensureDom();this.ensureValueHierarchyExists(t);r.each(t,function(n){var t=u.getValueFromHierarchy(n);t.hasChildSelected=!1;u.unflagParentForSelection(t);i&&r.each(t.childs,function(n){u.getValueFromHierarchy(n.facetValue).hasChildSelected=!1;u.deselectValue(n.facetValue)})});n.prototype.deselectMultipleValues.call(this,t)},t.prototype.toggleSelectValue=function(n){this.ensureDom();this.ensureValueHierarchyExists([n]);0==this.getFacetValueFromHierarchy(n).selected?this.selectValue(n):this.deselectValue(n)},t.prototype.toggleExcludeValue=function(n){this.ensureDom();this.ensureValueHierarchyExists([n]);0==this.getFacetValueFromHierarchy(n).excluded?this.excludeValue(n):this.unexcludeValue(n)},t.prototype.getValueCaption=function(n){var i=this.getSelf(n),t=i;return s.Utils.exists(this.options.valueCaption)&&("object"==typeof this.options.valueCaption&&(t=this.options.valueCaption[i]||t),"function"==typeof this.options.valueCaption&&(t=this.options.valueCaption.call(this,n))),t},t.prototype.getDisplayedValues=function(){var n=this,t=r.filter(this.values.getAll(),function(t){if(n.getValueFromHierarchy(t)){var i=n.getElementFromFacetValueList(t);return!u.$$(i).hasClass("coveo-inactive")}return!1});return r.pluck(t,"value")},t.prototype.updateSort=function(t){n.prototype.updateSort.call(this,t)},t.prototype.open=function(n){var t;void 0!=(t=r.isString(n)?this.getValueHierarchy(n):n instanceof e.FacetValue?this.getValueHierarchy(n.value):n)&&(u.$$(this.getElementFromFacetValueList(t.facetValue.value)).addClass("coveo-open"),this.showChilds(t.childs),void 0!=t.parent&&this.open(this.getValueHierarchy(t.facetValue.value).parent),this.getValueHierarchy(t.facetValue.value).keepOpened=!0)},t.prototype.close=function(n){var t,i=this;void 0!=(t=r.isString(n)?this.getValueHierarchy(n):n instanceof e.FacetValue?this.getValueHierarchy(n.value):n)&&(u.$$(this.getElementFromFacetValueList(t.facetValue)).removeClass("coveo-open"),this.hideChilds(t.childs),r.each(t.childs,function(n){i.close(i.getValueHierarchy(n.facetValue.value))}),this.getValueHierarchy(t.facetValue.value).keepOpened=!1)},t.prototype.reset=function(){var t=this;r.each(this.getAllValueHierarchy(),function(n){n.hasChildSelected=!1;n.allChildShouldBeSelected=!1});r.each(this.getAllValueHierarchy(),function(n){t.close(n)});n.prototype.reset.call(this)},t.prototype.processFacetSearchAllResultsSelected=function(n){this.selectMultipleValues(n);this.triggerNewQuery()},t.prototype.triggerUpdateDeltaQuery=function(t){this.shouldReshuffleFacetValuesClientSide=this.keepDisplayedValuesNextTime;n.prototype.triggerUpdateDeltaQuery.call(this,t)},t.prototype.updateSearchElement=function(t){void 0===t&&(t=!0);n.prototype.updateSearchElement.call(this,!0)},t.prototype.facetValueHasChanged=function(){var n=this;this.updateQueryStateModel();b.Defer.defer(function(){n.updateAppearanceDependingOnState()})},t.prototype.initFacetQueryController=function(){this.facetQueryController=new w.HierarchicalFacetQueryController(this)},t.prototype.initFacetSearch=function(){this.facetSearch=new d.HierarchicalFacetSearch(this,k.HierarchicalFacetSearchValuesList,this.root);this.element.appendChild(this.facetSearch.build())},t.prototype.handleDeferredQuerySuccess=function(t){this.updateAppearanceDependingOnState();n.prototype.handleDeferredQuerySuccess.call(this,t)},t.prototype.handlePopulateSearchAlerts=function(n){this.values.hasSelectedOrExcludedValues()&&n.text.push(new h.HierarchicalBreadcrumbValuesList(this,this.values.getSelected().concat(this.values.getExcluded()),this.getAllValueHierarchy()).buildAsString())},t.prototype.handlePopulateBreadcrumb=function(n){if(g.Assert.exists(n),this.values.hasSelectedOrExcludedValues()){var t=new h.HierarchicalBreadcrumbValuesList(this,this.values.getSelected().concat(this.values.getExcluded()),this.getAllValueHierarchy(),{headingLevel:n.headingLevel}).build();n.breadcrumbs.push({element:t})}},t.prototype.handleOmniboxWithStaticValue=function(n){var t=this,i=n.completeQueryExpression.regex,u=r.first(r.filter(this.getAllValueHierarchy(),function(n){return i.test(t.getValueCaption(n.facetValue))}),this.options.numberOfValuesInOmnibox),f=r.compact(r.map(u,function(n){var i=t.getFromFacetValueList(n.facetValue);if(i)return i.facetValue})),e=new nt.OmniboxHierarchicalValuesList(this,f,n).build();n.rows.push({element:e,zIndex:this.omniboxZIndex})},t.prototype.rebuildValueElements=function(){this.shouldReshuffleFacetValuesClientSide=this.shouldReshuffleFacetValuesClientSide||this.keepDisplayedValuesNextTime;this.numberOfValues=Math.max(this.numberOfValues,1e4);this.processHierarchy();this.setValueListContent();n.prototype.rebuildValueElements.call(this);this.buildParentChildRelationship();this.checkForOrphans();this.checkForNewUnselectedChild();this.crop();this.shouldReshuffleFacetValuesClientSide=!1},t.prototype.initFacetValuesList=function(){this.facetValuesList=new p.HierarchicalFacetValuesList(this,tt.HierarchicalFacetValueElement);this.element.appendChild(this.facetValuesList.build())},t.prototype.updateMoreLess=function(){var t=this.numberOfValuesToShow<this.topLevelHierarchy.length,i=this.numberOfValuesToShow>this.originalNumberOfValuesToShow;n.prototype.updateMoreLess.call(this,i,t)},t.prototype.handleClickMore=function(){this.numberOfValuesToShow+=this.originalNumberOfValuesToShow;this.numberOfValuesToShow=Math.min(this.numberOfValuesToShow,this.values.size());this.crop();this.updateMoreLess()},t.prototype.handleClickLess=function(){this.numberOfValuesToShow=this.originalNumberOfValuesToShow;this.crop();this.updateMoreLess()},t.prototype.updateNumberOfValues=function(){this.numberOfValues=Math.max(this.numberOfValues,1e4)},t.prototype.ensureValueHierarchyExists=function(n){var i=this,t;n[0]&&"string"==typeof n[0]&&(n=r.map(n,function(n){return e.FacetValue.createFromValue(n)}));t=!1;r.each(n,function(n){void 0==i.getValueHierarchy(n.value)&&(t=!0)});t&&this.processHierarchy(n)},t.prototype.crop=function(){var t=this,n=r.partition(this.topLevelHierarchy,function(n){return n.facetValue.selected||n.facetValue.excluded||n.hasChildSelected}),i=this.numberOfValuesToShow-n[0].length;r.each(r.last(n[1],n[1].length-i),function(n){t.hideFacetValue(n);t.hideChilds(n.childs)});r.each(r.first(n[1],i),function(n){t.showFacetValue(n)})},t.prototype.placeChildsUnderTheirParent=function(n,t){var i=this,f=n.childs,e;f&&(e=this.facetValuesList.sortFacetValues(r.pluck(f,"facetValue")).reverse(),r.each(e,function(n){var r=i.getValueFromHierarchy(n),f;r&&(f=i.getElementFromFacetValueList(n),u.$$(f).insertAfter(t),r.childs&&0!=r.childs.length&&i.placeChildsUnderTheirParent(r,f))}));n.keepOpened?(this.open(n),this.showChilds(n.childs)):this.hideChilds(n.childs)},t.prototype.addCssClassToParentAndChilds=function(n,t){var e=this,i,r,f;u.$$(t).addClass("coveo-has-childs");n.hasChildSelected&&u.$$(t).addClass("coveo-has-childs-selected");i=u.$$("span",{className:"coveo-hierarchical-facet-expand"},c.SVGIcons.icons.facetExpand);r=u.$$("span",{className:"coveo-hierarchical-facet-collapse"},c.SVGIcons.icons.facetCollapse);l.SVGDom.addClassToSVGInContainer(i.el,"coveo-hierarchical-facet-expand-svg");l.SVGDom.addClassToSVGInContainer(r.el,"coveo-hierarchical-facet-collapse-svg");f=u.$$("div",{className:"coveo-has-childs-toggle"},i.el,r.el).el;(new ft.AccessibleButton).withElement(f).withoutLabelOrTitle().withSelectAction(function(){u.$$(t).hasClass("coveo-open")?e.close(n):e.open(n)}).build();u.$$(t).prepend(f)},t.prototype.buildParentChildRelationship=function(){var n=this,t=document.createDocumentFragment(),i;t.appendChild(this.facetValuesList.valueContainer);i=r.map(this.facetValuesList.sortFacetValues(),function(t){return n.getValueFromHierarchy(t)});r.each(i,function(t){var i=n.getElementFromFacetValueList(t.facetValue);s.Utils.isNonEmptyArray(t.childs)?(n.placeChildsUnderTheirParent(t,i),n.addCssClassToParentAndChilds(t,i)):u.$$(i).addClass("coveo-no-childs");i.style.marginLeft=n.options.marginByLevel*(t.level-n.options.levelStart)+"px"});u.$$(t).insertAfter(this.headerElement)},t.prototype.setValueListContent=function(){var n=this;this.facetValuesList.hierarchyFacetValues=r.map(this.correctLevels,function(t){return n.values.contains(t.facetValue.value)||(t.facetValue.occurrences=0,n.values.add(t.facetValue)),t.facetValue})},t.prototype.createHierarchy=function(n){var t=this,i=r.map(n,function(n){var i=t.getParent(n),r=n.lookupValue||n.value;return{facetValue:n,level:t.getLevel(n),parent:i,self:r}});return this.setInHierarchy(i),r.each(this.getAllValueHierarchy(),function(n){n.facetValue.selected&&t.flagParentForSelection(n)}),i},t.prototype.processHierarchy=function(n){var t=this;void 0===n&&(n=this.values.getAll());r.each(this.getAllValueHierarchy(),function(n){void 0==t.values.get(n.facetValue.value)&&t.deleteValueHierarchy(t.getLookupOrValue(n.facetValue))});this.createHierarchy(n)},t.prototype.setInHierarchy=function(n){var t=this;this.correctLevels=r.filter(n,function(n){var i=void 0==t.options.levelStart||n.level>=t.options.levelStart,r=void 0==t.options.levelEnd||n.level<t.options.levelEnd;return i&&r});r.each(this.correctLevels,function(n){var e=r.map(r.filter(t.correctLevels,function(t){return null!=t.parent&&t.parent.toLowerCase()==n.self.toLowerCase()}),function(n){return{facetValue:n.facetValue,level:n.level,keepOpened:!1,hasChildSelected:!1,allChildShouldBeSelected:!1}}),f=null!=n.parent?r.find(t.correctLevels,function(t){return t.self.toLowerCase()==n.parent.toLowerCase()}):null,i=t.getValueHierarchy(n.facetValue.value),u;i&&i.childs.length!=e.length&&(i.childs=e);f&&(u=t.getValueHierarchy(f.facetValue.value));t.setValueHierarchy(n.facetValue.value,{childs:e,parent:void 0==f?void 0:{facetValue:f.facetValue,level:f.level,keepOpened:!!u&&u.keepOpened,hasChildSelected:!!u&&u.hasChildSelected,originalPosition:u?u.originalPosition:void 0,allChildShouldBeSelected:!!u&&u.allChildShouldBeSelected},facetValue:n.facetValue,level:n.level,keepOpened:!!i&&i.keepOpened,hasChildSelected:!!i&&i.hasChildSelected,originalPosition:i?i.originalPosition:void 0,allChildShouldBeSelected:!!i&&i.allChildShouldBeSelected})});this.topLevelHierarchy=r.chain(this.values.getAll()).filter(function(n){var i=t.getValueFromHierarchy(n);return!!i&&i.level==(t.options.levelStart||0)}).map(function(n){return t.getValueFromHierarchy(n)}).value()},t.prototype.getParent=function(n){var t=this.getLookupOrValue(n).lastIndexOf(this.options.delimitingCharacter);if(-1!=t)return this.getLookupOrValue(n).substring(0,t)},t.prototype.getSelf=function(n){var t=this.getParent(n),i;return void 0==t?this.getLookupOrValue(n):(i=this.getLookupOrValue(n).indexOf(t),this.getLookupOrValue(n).substring(i+t.length+1))},t.prototype.showFacetValue=function(n){u.$$(this.getElementFromFacetValueList(n.facetValue.value)).removeClass("coveo-inactive")},t.prototype.hideFacetValue=function(n){u.$$(this.getElementFromFacetValueList(n.facetValue.value)).addClass("coveo-inactive")},t.prototype.hideChilds=function(n){var t=this;r.each(n,function(n){t.hideFacetValue(n)})},t.prototype.showChilds=function(n){var t=this;r.each(n,function(n){t.showFacetValue(n)})},t.prototype.selectChilds=function(n,t){this.flagParentForSelection(n);n.allChildShouldBeSelected=!0;this.selectMultipleValues(r.map(t,function(n){return n.facetValue}))},t.prototype.deselectChilds=function(n,t){n.hasChildSelected=!1;n.allChildShouldBeSelected=!1;this.deselectMultipleValues(r.map(t,function(n){return n.facetValue}))},t.prototype.excludeChilds=function(n){this.excludeMultipleValues(r.map(n,function(n){return n.facetValue}))},t.prototype.unexcludeChilds=function(n){this.unexcludeMultipleValues(r.map(n,function(n){return n.facetValue}))},t.prototype.deselectParent=function(n){void 0!=n&&this.deselectValue(n.facetValue,!1)},t.prototype.flagParentForSelection=function(n){for(var t,u,i=n.parent,f=n;i;)t=this.getValueHierarchy(i.facetValue.value),t.hasChildSelected=!0,u=r.find(t.childs,function(n){return n.facetValue.value.toLowerCase()==f.facetValue.value.toLowerCase()}),u&&this.getValueHierarchy(u.facetValue.value).hasChildSelected&&(u.hasChildSelected=!0),i=t.parent,f=t},t.prototype.unflagParentForSelection=function(n){for(var t,u=this,i=n.parent;i;)t=this.getValueHierarchy(i.facetValue.value),0==r.filter(t.childs,function(t){var i=u.getValueHierarchy(t.facetValue.value);if(void 0!=i)return i.facetValue.value!=n.facetValue.value&&(i.facetValue.selected||i.facetValue.excluded||i.hasChildSelected)}).length&&(t.hasChildSelected=!1),t.allChildShouldBeSelected=!1,i=t.parent},t.prototype.getValueFromHierarchy=function(n){var t=n instanceof e.FacetValue?n.value:n;return this.getValueHierarchy(t)},t.prototype.getFacetValueFromHierarchy=function(n){return this.getValueFromHierarchy(n).facetValue},t.prototype.getLookupOrValue=function(n){return n.lookupValue||n.value},t.prototype.getElementFromFacetValueList=function(n){var t=this.getFromFacetValueList(n);return t?t.renderer.listItem:u.$$("div").el},t.prototype.getFromFacetValueList=function(n){if(void 0!=this.getValueFromHierarchy(n))return this.facetValuesList.get(n)},t.prototype.getLevel=function(n){return n.value.split(this.options.delimitingCharacter).length-1},t.prototype.getAllValueHierarchy=function(){return null==this.valueHierarchy&&(this.valueHierarchy={}),this.valueHierarchy},t.prototype.deleteValueHierarchy=function(n){null!=this.valueHierarchy&&delete this.valueHierarchy[n.toLowerCase()]},t.prototype.getValueHierarchy=function(n){if(null!=this.valueHierarchy)return this.valueHierarchy[n.toLowerCase()]},t.prototype.setValueHierarchy=function(n,t){null==this.valueHierarchy&&(this.valueHierarchy={});this.valueHierarchy[n.toLowerCase()]=t},t.prototype.checkForOrphans=function(){var n=this;r.each(this.valueHierarchy,function(t){n.getLevel(t.facetValue)!=n.options.levelStart&&void 0==n.getValueHierarchy(n.getParent(t.facetValue))&&(n.logger.error("Orphan value found in HierarchicalFacet : "+t.facetValue.value,"Needed : "+n.getParent(t.facetValue)+" but not found"),n.logger.warn("Removing incoherent facet value : "+t.facetValue.value),n.hideFacetValue(t))})},t.prototype.checkForNewUnselectedChild=function(){var n=this;r.each(this.valueHierarchy,function(t){t.allChildShouldBeSelected&&r.find(t.childs,function(n){return 1!=n.facetValue.selected})&&(n.selectValue(t.facetValue,!0),n.logger.info("Re-executing query with new facet values returned by index"),n.queryController.deferExecuteQuery())})},t.ID="HierarchicalFacet",t.doExport=function(){rt.exportGlobally({HierarchicalFacet:t})},t.options=y({delimitingCharacter:f.ComponentOptions.buildStringOption({defaultValue:"|"}),levelStart:f.ComponentOptions.buildNumberOption({defaultValue:0,min:0}),levelEnd:f.ComponentOptions.buildNumberOption({min:0}),marginByLevel:f.ComponentOptions.buildNumberOption({defaultValue:10,min:0})},ut.ResponsiveFacetOptions),t.parent=o.Facet,t}(o.Facet);t.HierarchicalFacet=a;it.Initialization.registerAutoCreateComponent(a)},function(n,t,i){"use strict";var o=this&&this.__extends||function(){var n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])};return function(t,i){function r(){this.constructor=t}n(t,i);t.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var u=i(11),s=i(3),h=i(6),r=i(1),c=i(16),l=i(12),a=i(7),f=i(8),v=i(2),e=function(n){function t(i,r,e){var o=n.call(this,i,t.ID,e)||this;return o.element=i,o.options=r,o.options=f.ComponentOptions.initComponentOptions(i,t,r),o.buildLink(),o.bind.onRootElement(u.QueryEvents.queryError,function(){return o.hide()}),o.bind.onRootElement(u.QueryEvents.querySuccess,function(n){return o.handleQuerySuccess(n)}),o}return o(t,n),t.prototype.buildLink=function(){var n=r.$$("a",{className:"coveo-powered-by coveo-footer-logo",href:"https://www.coveo.com/","aria-label":h.l("CoveoHomePage")},l.SVGIcons.icons.coveoPoweredBy);this.options.target&&n.setAttribute("target",this.options.target);c.SVGDom.addClassToSVGInContainer(n.el,"coveo-powered-by-svg");this.element.appendChild(n.el)},t.prototype.handleQuerySuccess=function(n){n.results.results.length>0?this.show():this.hide()},t.prototype.hide=function(){r.$$(this.element).addClass("coveo-hidden")},t.prototype.show=function(){r.$$(this.element).removeClass("coveo-hidden")},t.ID="Logo",t.doExport=function(){s.exportGlobally({Logo:t})},t.options={target:f.ComponentOptions.buildStringOption()},t}(a.Component);t.Logo=e;v.Initialization.registerAutoCreateComponent(e)},function(n,t,i){"use strict";var a=this&&this.__extends||function(){var n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])};return function(t,i){function r(){this.constructor=t}n(t,i);t.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),o;Object.defineProperty(t,"__esModule",{value:!0});o=i(23);i(633);var f=i(0),e=i(11),v=i(3),s=i(13),u=i(1),h=i(21),y=i(4),p=i(7),r=i(8),c=i(2),w=i(62),b=i(634),k=i(635),l=function(n){function t(i,u,f){var e=n.call(this,i,t.ID,f)||this;return e.element=i,e.options=u,e.groupByIndex=[],e.rowId="",e.columnId="",e.selectedRowValue=void 0,e.selectedColumnValue=void 0,e.numberOfRows=0,e.numberOfColumns=0,e.options=r.ComponentOptions.initComponentOptions(i,t,u),e.options.previewTemplate||(e.options.previewTemplate=new k.DefaultMatrixResultPreviewTemplate(e.options.computedField,e.options.computedFieldFormat)),e.options.previewSortField||(e.options.previewSortField=e.options.computedField),e.options.columnFieldValues.length!=e.options.columnLabels.length&&(e.options.columnLabels=e.options.columnFieldValues),e.buildMatrix(),null==e.options.rowField?e.logger.error("'rowField' option is required in the Matrix component"):null==e.options.columnField?e.logger.error("'columnField' option is required in the Matrix component"):null==e.options.computedField?e.logger.error("'computedField' option is required in the Matrix component"):(e.bindEvents(),e.initQueryState()),e}return a(t,n),t.prototype.selectCell=function(n,t){var i,r;0!==n&&n!==this.numberOfRows-1&&(i=this.getRowValue(n));0!==t&&t!==this.numberOfColumns-1&&(r=this.getColumnValue(t));i&&this.isRowFacetPresent()?this.queryStateModel.set(this.rowId,[i]):(this.selectedRowValue=i,this.queryStateModel.set(this.rowId,[]));r&&this.isColumnFacetPresent()?this.queryStateModel.set(this.columnId,[r]):(this.selectedColumnValue=r,this.queryStateModel.set(this.columnId,[]))},t.prototype.getSelectedColumnValue=function(){return this.selectedColumnValue},t.prototype.getSelectedRowValue=function(){return this.selectedRowValue},t.prototype.getCellElement=function(n,t){return this.data[n][t].getHTML()},t.prototype.getCellValue=function(n,t){var i=this.getCellElement(n,t);return u.$$(i).text()},t.prototype.drawMatrix=function(){var o=this,s=u.$$("div",{className:"coveo-matrix-row matrix-header-row"}),t,n,i,r,e;for(this.drawRow(s.el,0),t=this.options.enableColumnTotals?this.numberOfRows-1:this.numberOfRows,n=1;n<t;n++)i=u.$$("div",{className:"coveo-matrix-row"}).el,this.drawRow(i,n);this.options.enableColumnTotals&&(r=u.$$("div",{className:"coveo-matrix-row matrix-total-row"}).el,this.drawRow(r,this.numberOfRows-1));""!==this.options.cellFontSize&&(e=u.$$(this.element).findAll(".coveo-matrix-cell"),f.each(e,function(n){n.style.fontSize=o.options.cellFontSize}))},t.prototype.bindEvents=function(){var n=this;this.bind.onRootElement(e.QueryEvents.buildingQuery,function(t){return n.handleBuildingQuery(t)});this.bind.onRootElement(e.QueryEvents.doneBuildingQuery,function(t){return n.handleDoneBuildingQuery(t)});this.bind.onRootElement(e.QueryEvents.deferredQuerySuccess,function(t){return n.handleDeferredQuerySuccess(t)})},t.prototype.initQueryState=function(){this.rowId=s.QueryStateModel.getFacetId(this.options.rowField);this.columnId=s.QueryStateModel.getFacetId(this.options.columnField);this.queryStateModel.registerNewAttribute(this.rowId,[]);this.queryStateModel.registerNewAttribute(this.columnId,[])},t.prototype.buildMatrix=function(){this.buildTitle();this.buildBody();this.data=[];this.addHeaderRow()},t.prototype.buildTitle=function(){var n=this.options.title?this.options.title:"",t=u.$$("div",{className:"coveo-matrix-title"},n).el;this.element.appendChild(t)},t.prototype.buildBody=function(){var n=u.$$("div",{className:"coveo-matrix"}).el;this.element.appendChild(n)},t.prototype.handleBuildingQuery=function(n){this.areFacetsPresent()||(this.selectedRowValue&&!this.isRowFacetPresent()&&n.queryBuilder.advancedExpression.addFieldExpression(this.options.rowField,"=",[this.selectedRowValue]),this.selectedColumnValue&&!this.isColumnFacetPresent()&&n.queryBuilder.advancedExpression.addFieldExpression(this.options.columnField,"=",[this.selectedColumnValue]))},t.prototype.handleDoneBuildingQuery=function(n){this.groupByIndex=[];this.addMainGroubByRequest(n.queryBuilder);this.addColumnsGroupByRequests(n.queryBuilder)},t.prototype.handleDeferredQuerySuccess=function(n){this.reset();this.parseResults(n.results);this.addTotals();this.drawMatrix();this.formatCells();this.selectedRowValue=void 0;this.selectedColumnValue=void 0},t.prototype.addMainGroubByRequest=function(n){var t={field:this.options.rowField,sortCriteria:this.options.sortCriteria,computedFields:this.getComputedFields(),maximumNumberOfValues:this.options.maximumNumberOfRows};this.groupByIndex.push(n.groupByRequests.length);n.groupByRequests.push(t)},t.prototype.addColumnsGroupByRequests=function(n){for(var i,t=0;t<this.options.columnFieldValues.length;t++)i={field:this.options.rowField,sortCriteria:this.options.sortCriteria,computedFields:this.getComputedFields(),queryOverride:"("+this.buildExpression(n)+")("+this.options.columnField+"='"+this.options.columnFieldValues[t]+"')",maximumNumberOfValues:this.options.maximumNumberOfValuesInGroupBy},this.groupByIndex.push(n.groupByRequests.length),n.groupByRequests.push(i)},t.prototype.buildExpression=function(n){var i=n.expression.build(),r=n.advancedExpression.build(),u=n.constantExpression.build(),t="";return i&&(t+=" "+i),r&&(t+=" "+r),u&&(t+=" "+u),t},t.prototype.getComputedFields=function(){return[{field:this.options.computedField,operation:this.options.computedFieldOperation}]},t.prototype.getCellResult=function(n,t,i){for(var f=this.getRowValue(t),e=this.getColumnValue(i),u=0,r=0;r<n.values.length;r++)if(n.values[r].value===f){u=n.values[r].computedFieldResults[0];break}return this.isAColumnSelected()&&!this.isColumnSelected(e)&&(u=0),u},t.prototype.addTotals=function(){this.options.enableRowTotals&&this.addRowTotals();this.options.enableColumnTotals&&this.addColumnTotals()},t.prototype.addRowTotals=function(){var t=this,n,i;for(this.addColumn(),this.setValue("Total",0,this.numberOfColumns-1),n=1;n<this.numberOfRows;n++)i=this.computeRowTotal(n),this.setValue(i,n,this.numberOfColumns-1);"computedfielddescending"==this.options.sortCriteria.toLowerCase()&&this.data.sort(function(n,i){return i[t.numberOfColumns-1].getValue()-n[t.numberOfColumns-1].getValue()});"computedfieldascending"==this.options.sortCriteria.toLowerCase()&&this.data.sort(function(n,i){return n[t.numberOfColumns-1].getValue()-i[t.numberOfColumns-1].getValue()})},t.prototype.addColumnTotals=function(){var n,t;for(this.addRow(),this.setValue("Total",this.numberOfRows-1,0),n=1;n<this.numberOfColumns;n++)t=this.computeColumnTotal(n),this.setValue(t,this.numberOfRows-1,n)},t.prototype.computeRowTotal=function(n){for(var i=0,t=1;t<this.numberOfColumns-1;t++)i+=parseInt(this.getCellValue(n,t));return i},t.prototype.computeColumnTotal=function(n){for(var i=0,t=1;t<this.numberOfRows-1;t++)i+=parseInt(this.getCellValue(t,n));return i},t.prototype.formatCells=function(){for(var t,i,n=1;n<this.numberOfRows;n++)for(t=1;t<this.numberOfColumns;t++)i=this.getCellValue(n,t),i=o.format(parseInt(i),this.options.computedFieldFormat),this.setValue(i,n,t)},t.prototype.addHeaderRow=function(){this.addRow();this.addColumn();this.setValue(this.options.columnHeader,0,0);for(var n=0;n<this.options.columnLabels.length;n++)this.addColumn(),this.setValue(this.options.columnLabels[n],0,n+1)},t.prototype.addRow=function(){this.data.push([]);for(var n=0;n<this.numberOfColumns;n++)this.addCellToRow(this.numberOfRows,n);this.numberOfRows++},t.prototype.addColumn=function(){for(var n=0;n<this.numberOfRows;n++)this.addCellToRow(n,this.numberOfColumns);this.numberOfColumns++},t.prototype.addCellToRow=function(n,t){var i=u.$$("div",{className:"coveo-matrix-cell"});0==t&&i.addClass("matrix-first-column");this.data[n].push(new b.Cell(0,i.el))},t.prototype.setValue=function(n,t,i){var r=this.getCellElement(t,i);y.Utils.isNullOrUndefined(n)||u.$$(r).text(n.toString());this.isCellSelected(this.getRowValue(t),this.getColumnValue(i))&&u.$$(r).addClass("coveo-matrix-selected");this.isAColumnSelected()&&!this.isColumnSelected(this.getColumnValue(i))&&0!=i&&0!=t&&u.$$(r).addClass("coveo-matrix-unimportant");this.data[t][i].setValue(n)},t.prototype.handleClick=function(n,t){this.selectCell(n,t);this.queryController.executeQuery()},t.prototype.getRowValue=function(n){return this.data[n][0].getValue()},t.prototype.getColumnValue=function(n){return this.options.columnFieldValues[n-1]},t.prototype.isAColumnSelected=function(){return 0!==(this.queryStateModel.get(this.columnId)||[]).length||void 0!=this.selectedColumnValue},t.prototype.isColumnSelected=function(n){if(this.isAColumnSelected()&&n)for(var i=this.queryStateModel.attributes[this.columnId]||[],t=0;t<i.length;t++)if(i[t].toLowerCase()===n.toLowerCase())return!0;return this.selectedColumnValue==n},t.prototype.isARowSelected=function(){return 0!==(this.queryStateModel.get(this.rowId)||[]).length||void 0!==this.selectedRowValue},t.prototype.isRowSelected=function(n){if(this.isARowSelected()&&n)for(var i=this.queryStateModel.get(this.rowId)||[],t=0;t<i.length;t++)if(i[t].toLowerCase()===n.toLowerCase())return!0;return this.selectedRowValue==n},t.prototype.isCellSelected=function(n,t){return this.isAColumnSelected()&&this.isARowSelected()?this.isRowSelected(n)&&this.isColumnSelected(t):!!this.isAColumnSelected()&&this.isColumnSelected(t)},t.prototype.areFacetsPresent=function(){return this.isRowFacetPresent()&&this.isColumnFacetPresent()},t.prototype.isRowFacetPresent=function(){var n=this.componentStateModel.get(this.rowId);return n&&!n[0].disabled},t.prototype.isColumnFacetPresent=function(){var n=this.componentStateModel.get(this.columnId);return n&&!n[0].disabled},t.prototype.reset=function(){u.$$(this.element).empty();this.numberOfRows=0;this.numberOfColumns=0;this.data=[];this.buildMatrix()},t.prototype.parseResults=function(n){var r,u,t,i,f,e;if(n){if(r=n.groupByResults[this.groupByIndex[0]],r)for(t=0;t<r.values.length;t++)u=r.values[t].value,this.addRow(),this.setValue(u,t+1,0);for(t=1;t<this.numberOfRows;t++)for(i=1;i<this.numberOfColumns;i++)f=n.groupByResults[this.groupByIndex[i]],e=this.getCellResult(f,t,i),this.setValue(e,t,i)}},t.prototype.drawRow=function(n,t){for(var i=this,e=u.$$(this.element).find(".coveo-matrix"),f=this,r=0;r<this.numberOfColumns;r++)!function(r){var e=f.data[t][r].getHTML();u.$$(e).on("click",function(){!function(n){i.handleClick(t,n)}(r)});f.options.enableHoverPreview&&function(n){u.$$(e).on("mouseover",function(){return i.handleHoverIn(t,n)});u.$$(e).on("mouseout",function(){return i.handleHoverOut(t,n)})}(r);n.appendChild(e)}(r);e.appendChild(n)},t.prototype.handleHoverIn=function(n,t){var i=this;this.isHoverWorkingOnRow(n)&&this.isHoverWorkingOnColumn(t)&&(this.previewTimeout=window.setTimeout(function(){i.displayResultsPreview(n,t)},this.options.previewDelay))},t.prototype.handleHoverOut=function(n,t){clearTimeout(this.previewTimeout);this.data[n][t].removePreview()},t.prototype.displayResultsPreview=function(n,t){var i=this,r=this.createPreviewQuery(n,t);this.data[n][t].addPreview(this.options.previewMinWidth,this.options.previewMaxWidth);this.queryController.getEndpoint().search(r).then(function(r){if(i.isDataAvailable(n,t)){var o=i.data[n][t],u=f.map(r.results,function(n){return i.instantiateTemplate(n)}),e="";f.each(u,function(n){n.then(function(n){e+=n.outerHTML})});Promise.all(u).then(function(){o.updatePreview(e)})}})},t.prototype.instantiateTemplate=function(n){var t=this;return this.options.previewTemplate.instantiateToElement(n,{checkCondition:!1,responsiveComponents:this.searchInterface.responsiveComponents}).then(function(i){var r={options:t.options,bindings:t.getBindings(),result:n};return c.Initialization.automaticallyCreateComponentsInside(i,r).initResult.then(function(){return i})})},t.prototype.createPreviewQuery=function(n,t){var u="("+h.QueryUtils.buildFieldExpression(this.options.rowField,"=",[this.getRowValue(n)])+")",e="("+h.QueryUtils.buildFieldExpression(this.options.columnField,"=",[this.getColumnValue(t)])+")",i=this.queryController.getLastQuery(),r;return i.aq=u,i.aq+=e,i.sortCriteria=this.options.previewSortCriteria,i.sortField=this.options.previewSortField,r=this.options.computedField.slice(1),!f.find(i.fieldsToInclude,function(n){return n==r})&&i.fieldsToInclude&&i.fieldsToInclude.push(r),i},t.prototype.isHoverWorkingOnRow=function(n){return this.options.enableColumnTotals?0!==n&&n!==this.numberOfRows-1:0!==n},t.prototype.isHoverWorkingOnColumn=function(n){return this.options.enableRowTotals?0!==n&&n!==this.numberOfColumns-1:0!==n},t.prototype.isDataAvailable=function(n,t){return void 0!==this.data[n]&&void 0!==this.data[n][t]},t.ID="Matrix",t.doExport=function(){v.exportGlobally({Matrix:t})},t.options={title:r.ComponentOptions.buildStringOption(),rowField:r.ComponentOptions.buildFieldOption({required:!0}),columnField:r.ComponentOptions.buildFieldOption({required:!0}),sortCriteria:r.ComponentOptions.buildStringOption({defaultValue:"computedfielddescending"}),maximumNumberOfRows:r.ComponentOptions.buildNumberOption({defaultValue:10,min:0}),enableRowTotals:r.ComponentOptions.buildBooleanOption({defaultValue:!0}),columnFieldValues:r.ComponentOptions.buildListOption({defaultValue:[]}),columnLabels:r.ComponentOptions.buildListOption({defaultValue:[]}),columnHeader:r.ComponentOptions.buildStringOption(),maximumNumberOfValuesInGroupBy:r.ComponentOptions.buildNumberOption({defaultValue:100,min:0}),enableColumnTotals:r.ComponentOptions.buildBooleanOption({defaultValue:!0}),computedField:r.ComponentOptions.buildFieldOption({required:!0}),computedFieldOperation:r.ComponentOptions.buildStringOption({defaultValue:"sum"}),computedFieldFormat:r.ComponentOptions.buildStringOption({defaultValue:"c0"}),cellFontSize:r.ComponentOptions.buildStringOption({defaultValue:""}),enableHoverPreview:r.ComponentOptions.buildBooleanOption({defaultValue:!0}),previewSortCriteria:r.ComponentOptions.buildStringOption({defaultValue:"FieldDescending"}),previewSortField:r.ComponentOptions.buildFieldOption(),previewMaxWidth:r.ComponentOptions.buildStringOption({defaultValue:"500px"}),previewMinWidth:r.ComponentOptions.buildStringOption({defaultValue:"0"}),previewDelay:r.ComponentOptions.buildNumberOption({defaultValue:500}),previewTemplate:w.TemplateComponentOptions.buildTemplateOption()},t}(p.Component);t.Matrix=l;c.Initialization.registerAutoCreateComponent(l)},function(n,t,i){"use strict";var c=this&&this.__extends||function(){var n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])};return function(t,i){function r(){this.constructor=t}n(t,i);t.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});i(636);var f=i(0),l=i(34),a=i(11),v=i(101),y=i(3),p=i(5),w=i(9),b=i(6),r=i(1),o=i(4),s=i(10),k=i(125),e=i(7),u=i(8),d=i(2),g=i(92),h=function(n){function t(i,r,f){var e=n.call(this,i,r,f,t.ID)||this;return e.element=i,e.options=r,e.bindings=f,e.options=u.ComponentOptions.initComponentOptions(i,t,r),e.setupOptions(),e.bind.onRootElement(l.OmniboxEvents.populateOmnibox,function(n){return e.handlePopulateOmnibox(n)}),e.bind.onRootElement(a.QueryEvents.buildingQuery,function(n){return e.handleBuildingQuery(n)}),e.bind.onRootElement(v.InitializationEvents.afterComponentsInitialization,function(){e.handleAfterComponentInit()}),e}return c(t,n),t.prototype.buildResults=function(n){var t=this,i=[],u=f.map(n.results,function(n){return t.buildResult(n).then(function(u){return r.$$(u).addClass("coveo-omnibox-selectable"),u["no-text-suggestion"]=!0,r.$$(u).on(["keyboardSelect","click"],function(i){return t.handleOmniboxElementSelection(i,u,n)}),t.autoCreateComponentsInsideResult(u,n).initResult.then(function(){return i.push(u),u})})});return Promise.all(u).then(function(){return i})},t.prototype.renderResults=function(n,t){return void 0===t&&(t=!1),r.$$(this.options.resultsContainer).empty(),this.lastOmniboxRequest?(n.length&&(this.appendHeaderIfTitleIsSpecified(),this.appendResults(n)),this.resolveLastOmniboxRequest(),Promise.resolve(null)):Promise.resolve(null)},t.prototype.handleAfterComponentInit=function(){var n=this,t=r.$$(this.root).find("."+e.Component.computeCssClassNameForType("Omnibox"));t&&(e.Component.get(t).magicBox.onsubmit=function(){k.logSearchBoxSubmitEvent(n.usageAnalytics);n.queryController.executeQuery()})},t.prototype.appendHeaderIfTitleIsSpecified=function(){this.options.headerTitle&&this.options.resultsContainer.appendChild(r.$$("div",{className:"coveo-omnibox-result-list-header"},r.$$("span",{className:"coveo-icon-omnibox-result-list"}).el,r.$$("span",{className:"coveo-caption"},b.l(this.options.headerTitle)).el).el)},t.prototype.appendResults=function(n){var t=this;f.each(n,function(n){t.options.resultsContainer.appendChild(n);t.triggerNewResultDisplayed(e.Component.getResult(n),n)});this.triggerNewResultsDisplayed()},t.prototype.resolveLastOmniboxRequest=function(){0==r.$$(this.options.resultsContainer).findAll(".coveo-omnibox-selectable").length?this.lastOmniboxRequest.resolve({element:null,zIndex:this.options.omniboxZIndex}):this.lastOmniboxRequest.resolve({element:this.options.resultsContainer,zIndex:this.options.omniboxZIndex})},t.prototype.handleChangeLayout=function(){},t.prototype.setupOptions=function(){this.logger.info("Disabling infinite scroll for OmniboxResultList",this);this.options.enableInfiniteScroll=!1;this.options.onSelect=this.options.onSelect||this.onRowSelection},t.prototype.handlePopulateOmnibox=function(n){var t=this,i=new Promise(function(i){t.queryController.executeQuery({searchAsYouType:!0,shouldRedirectStandaloneSearchbox:!1,beforeExecuteQuery:function(){return t.usageAnalytics.logSearchAsYouType(s.analyticsActionCauseList.searchboxSubmit,{})}});t.lastOmniboxRequest={omniboxObject:n,resolve:i}});n.rows.push({deferred:i})},t.prototype.handleBuildingQuery=function(n){p.Assert.exists(n);o.Utils.isNonEmptyString(this.options.queryOverride)&&n.queryBuilder.constantExpression.add(this.options.queryOverride)},t.prototype.handleOmniboxElementSelection=function(n,t,i){n&&n.target&&this.otherComponentShouldHandleSelection(n,t)||this.lastOmniboxRequest&&this.options.onSelect.call(this,i,t,this.lastOmniboxRequest.omniboxObject,n)},t.prototype.otherComponentShouldHandleSelection=function(n,i){for(var u=n.target,e=!1;u&&u!=i&&!(e=null!=f.find(t.elementsToIgnore,function(n){return r.$$(u).hasClass(n)}));)u=u.parentElement;return e},t.prototype.onRowSelection=function(n){this.usageAnalytics.logClickEvent(s.analyticsActionCauseList.documentOpen,{author:o.Utils.getFieldValue(n,"author")},n,this.root);window.location.href=n.clickUri},t.prototype.initResultContainerAddToDom=function(){},t.ID="OmniboxResultList",t.elementsToIgnore=["coveo-field-table-toggle-caption","CoveoFollowItem","CoveoPrintableUri","CoveoQuickview","CoveoResultLink","CoveoResultRating","CoveoResultTagging","CoveoYouTubeThumbnail"],t.doExport=function(){y.exportGlobally({OmniboxResultList:t})},t.options={layout:u.ComponentOptions.buildStringOption({defaultValue:"list",postProcessing:function(n){if("list"!=n){var i=new w.Logger(t);i.warn("Cannot apply layout "+n+" on the OmniboxResultListComponent");i.warn('OmniboxResultList does not support any layout other than "list"')}return"list"}}),omniboxZIndex:u.ComponentOptions.buildNumberOption({defaultValue:51,min:16}),headerTitle:u.ComponentOptions.buildStringOption(),queryOverride:u.ComponentOptions.buildQueryExpressionOption(),onSelect:u.ComponentOptions.buildCustomOption(function(){return null})},t}(g.ResultList);t.OmniboxResultList=h;d.Initialization.registerAutoCreateComponent(h)},function(n,t,i){"use strict";var p=this&&this.__extends||function(){var n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])};return function(t,i){function r(){this.constructor=t}n(t,i);t.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});i(637);var f=i(11),w=i(29),b=i(3),e=i(5),l=i(18),s=i(13),u=i(6),h=i(15),k=i(24),r=i(1),d=i(117),a=i(16),v=i(12),c=i(10),g=i(7),o=i(8),nt=i(2),y=function(n){function t(i,u,e){var h=n.call(this,i,t.ID,e)||this;return h.element=i,h.options=u,h.listenToQueryStateChange=!0,h.ignoreNextQuerySuccess=!1,h.needToReset=!0,h.options=o.ComponentOptions.initComponentOptions(i,t,u),h.currentPage=1,h.bind.onRootElement(f.QueryEvents.newQuery,function(n){return h.handleNewQuery(n)}),h.bind.onRootElement(f.QueryEvents.buildingQuery,function(n){return h.handleBuildingQuery(n)}),h.bind.onRootElement(f.QueryEvents.querySuccess,function(n){return h.handleQuerySuccess(n)}),h.bind.onRootElement(f.QueryEvents.queryError,function(){return h.handleQueryError()}),h.bind.onRootElement(f.QueryEvents.noResults,function(n){return h.handleNoResults(n)}),h.bind.onQueryState(l.MODEL_EVENTS.CHANGE_ONE,s.QUERY_STATE_ATTRIBUTES.FIRST,function(n){return h.handleQueryStateFirstResultChanged(n)}),h.bind.onQueryState(l.MODEL_EVENTS.CHANGE_ONE,s.QUERY_STATE_ATTRIBUTES.NUMBER_OF_RESULTS,function(n){return h.handleQueryStateNumberOfResultsPerPageChanged(n)}),h.addAlwaysActiveListeners(),h.addAccessibilityAttributes(),h.list=r.$$("ul",{className:"coveo-pager-list"}).el,i.appendChild(h.list),h}return p(t,n),Object.defineProperty(t.prototype,"currentPage",{get:function(){return this._currentPage},set:function(n){var t=n;isNaN(n)&&(this.logger.warn("Unable to set pager current page to an invalid value: "+n+". Resetting to 1."),t=1);t=Math.max(Math.min(t,this.getMaxNumberOfPagesForCurrentResultsPerPage()),1);t=Math.floor(t);this._currentPage=t},enumerable:!0,configurable:!0}),t.prototype.setPage=function(n,t){void 0===t&&(t=c.analyticsActionCauseList.pagerNumber);e.Assert.exists(n);this.currentPage=n;this.updateQueryStateModel(this.getFirstResultNumber(this.currentPage));this.usageAnalytics.logCustomEvent(t,{pagerNumber:this.currentPage},this.element);this.queryController.executeQuery({ignoreWarningSearchEvent:!0,keepLastSearchUid:!0,origin:this})},t.prototype.previousPage=function(){this.setPage(this.currentPage-1,c.analyticsActionCauseList.pagerPrevious)},t.prototype.nextPage=function(){this.setPage(this.currentPage+1,c.analyticsActionCauseList.pagerNext)},t.prototype.addAccessibilityAttributes=function(){this.element.getAttribute("role")||this.element.setAttribute("role","navigation");this.element.hasAttribute("aria-label")||this.element.setAttribute("aria-label",u.l("Pagination"))},t.prototype.addAlwaysActiveListeners=function(){var n=this;this.searchInterface.element.addEventListener(w.ResultListEvents.newResultsDisplayed,function(){return d.ResultListUtils.hideIfInfiniteScrollEnabled(n)})},t.prototype.getMaxNumberOfPagesForCurrentResultsPerPage=function(){return Math.ceil(this.options.maximumNumberOfResultsFromIndex/this.searchInterface.resultsPerPage)},t.prototype.handleNewQuery=function(n){var i=n&&n.origin&&(n.origin.type==t.ID||"Debug"==n.origin.type);this.needToReset&&!i&&(this.currentPage=1,this.updateQueryStateModel(this.getFirstResultNumber(this.currentPage)));this.needToReset=!0},t.prototype.updateQueryStateModel=function(n){this.listenToQueryStateChange=!1;this.queryStateModel.set(s.QueryStateModel.attributesEnum.first,n);this.listenToQueryStateChange=!0},t.prototype.handleQueryError=function(){this.reset()},t.prototype.handleQuerySuccess=function(n){var o=this,f,i;if(this.reset(),this.ignoreNextQuerySuccess)this.ignoreNextQuerySuccess=!1;else{e.Assert.isNotUndefined(n);var s=n.query.firstResult,c=n.results.totalCountFiltered,t=this.computePagerBoundary(s,c);if(this.currentPage=t.currentPage,t.end-t.start>0){for(f=this,i=t.start;i<=t.end;i++)!function(n){var s=n,c=s===f.currentPage,e=r.$$("span",{className:"coveo-pager-list-item-text coveo-pager-anchor",tabindex:0,ariaPressed:""+c},n.toString(10)).el,t=r.$$("li",{className:"coveo-pager-list-item"}).el,i;c&&(r.$$(t).addClass("coveo-active"),e.setAttribute("aria-current","page"));i=function(n){n.stopPropagation();o.handleClickPage(s)};(new h.AccessibleButton).withElement(e).withLabel(u.l("PageNumber",n.toString(10))).withClickAction(i).withEnterKeyboardAction(i).build();r.$$(t).on("click",function(n){return i(n)});t.appendChild(e);f.list.appendChild(t)}(i);this.options.enableNavigationButton&&t.lastResultPage>1&&this.renderNavigationButton(t)}}},t.prototype.handleNoResults=function(n){var t,i;n.results.totalCount>0?(i=this.computePagerBoundary(n.results.totalCountFiltered,n.results.totalCount).lastResultPage,this.currentPage>i&&(t=i)):this.currentPage>this.getMaxNumberOfPagesForCurrentResultsPerPage()&&(t=this.getMaxNumberOfPagesForCurrentResultsPerPage());null!=t&&(this.currentPage=t,n.retryTheQuery=!0,this.needToReset=!1,this.ignoreNextQuerySuccess=!1,this.updateQueryStateModel(this.getFirstResultNumber(this.currentPage)))},t.prototype.reset=function(){r.$$(this.list).empty()},t.prototype.handleBuildingQuery=function(n){var t,i,r;e.Assert.exists(n);t=this.getQueryEventArgs();n.queryBuilder.firstResult=t.first;null==n.queryBuilder.numberOfResults&&(n.queryBuilder.numberOfResults=t.count);i=n.queryBuilder.firstResult+n.queryBuilder.numberOfResults;r=Math.max(0,i-this.options.maximumNumberOfResultsFromIndex);n.queryBuilder.numberOfResults-=r},t.prototype.computePagerBoundary=function(n,t){var r=this.searchInterface.resultsPerPage,u=Math.floor(n/r)+1,i=Math.max(Math.min(Math.ceil(t/r),this.getMaxNumberOfPagesForCurrentResultsPerPage()),1),e=Math.floor(this.options.numberOfPages/2),f=Math.max(Math.min(u-e,i-this.options.numberOfPages+1),1);return{start:f,end:Math.min(f+this.options.numberOfPages-1,i),lastResultPage:i,currentPage:u}},t.prototype.renderNavigationButton=function(n){var t,i;this.currentPage>1&&(t=this.renderPreviousButton(),this.list.insertBefore(t.el,this.list.firstChild));this.currentPage<n.lastResultPage&&(i=this.renderNextButton(),this.list.appendChild(i.el))},t.prototype.renderPreviousButton=function(){var f=this,t=r.$$("li",{className:"coveo-pager-previous coveo-pager-anchor coveo-pager-list-item"}),n=r.$$("span",{title:u.l("Previous"),tabindex:0}),i=r.$$("span",{className:"coveo-pager-previous-icon"},v.SVGIcons.icons.pagerLeftArrow);return a.SVGDom.addClassToSVGInContainer(i.el,"coveo-pager-previous-icon-svg"),n.append(i.el),t.append(n.el),(new h.AccessibleButton).withElement(n).withLabel(u.l("Previous")).withSelectAction(function(){return f.handleClickPrevious()}).build(),t},t.prototype.renderNextButton=function(){var f=this,t=r.$$("li",{className:"coveo-pager-next coveo-pager-anchor coveo-pager-list-item"}),n=r.$$("span",{title:u.l("Next"),tabindex:0}),i=r.$$("span",{className:"coveo-pager-next-icon"},v.SVGIcons.icons.pagerRightArrow);return a.SVGDom.addClassToSVGInContainer(i.el,"coveo-pager-next-icon-svg"),n.append(i.el),t.append(n.el),(new h.AccessibleButton).withElement(n).withLabel(u.l("Next")).withSelectAction(function(){return f.handleClickNext()}).build(),t},t.prototype.handleQueryStateFirstResultChanged=function(n){if(this.listenToQueryStateChange){e.Assert.exists(n);this.needToReset=!1;var t=n.value;this.currentPage=this.fromFirstResultsToPageNumber(t)}},t.prototype.handleQueryStateNumberOfResultsPerPageChanged=function(n){var t=this.queryStateModel.get(s.QUERY_STATE_ATTRIBUTES.FIRST);this.searchInterface.resultsPerPage=n.value;this.currentPage=this.fromFirstResultsToPageNumber(t)},t.prototype.handleClickPage=function(n){e.Assert.exists(n);this.setPage(n)},t.prototype.handleClickPrevious=function(){this.previousPage()},t.prototype.handleClickNext=function(){this.nextPage()},t.prototype.fromFirstResultsToPageNumber=function(n){return n/this.searchInterface.resultsPerPage+1},t.prototype.getFirstResultNumber=function(n){return void 0===n&&(n=this.currentPage),(n-1)*this.searchInterface.resultsPerPage},t.prototype.getQueryEventArgs=function(){return{count:this.searchInterface.resultsPerPage,first:this.getFirstResultNumber()}},t.ID="Pager",t.doExport=function(){b.exportGlobally({Pager:t})},t.options={numberOfPages:o.ComponentOptions.buildNumberOption({defaultFunction:function(){return k.DeviceUtils.isMobileDevice()?3:5},min:1}),enableNavigationButton:o.ComponentOptions.buildBooleanOption({defaultValue:!0}),maxNumberOfPages:o.ComponentOptions.buildNumberOption({defaultValue:void 0,deprecated:"This is a deprecated option. The pager will automatically adapt itself on each new query. You no longer need to specify this option. Use maximumNumberOfResultsFromIndex instead."}),maximumNumberOfResultsFromIndex:o.ComponentOptions.buildNumberOption({defaultValue:1e3})},t}(g.Component);t.Pager=y;nt.Initialization.registerAutoCreateComponent(y)},function(n,t,i){"use strict";var f=this&&this.__extends||function(){var n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])};return function(t,i){function r(){this.constructor=t}n(t,i);t.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var r=i(0),e=i(11),o=i(3),s=i(1),h=i(4),c=i(7),l=i(8),a=i(2),u=function(n){function t(i,r,u){var f=n.call(this,i,t.ID,u)||this;return f.element=i,f.options=r,f.bindings=u,f.contextContent={},f.options=l.ComponentOptions.initComponentOptions(i,t,r),f.setContext(s.$$(f.element).text().trim()),f.bind.onRootElement(e.QueryEvents.buildingQuery,function(n){return f.handleBuildingQuery(n)}),f}return f(t,n),t.prototype.setContext=function(n){if(r.isString(n)){var t=this.tryParseContextFromString(n);this.contextContent=t}else this.contextContent=n},t.prototype.getContext=function(){var t=this,n=this.getContextKeys();return r.object(n,r.map(n,function(n){return t.getContextValue(n)}))},t.prototype.setContextValue=function(n,t){this.contextContent[n]=t},t.prototype.getContextKeys=function(){return r.keys(this.contextContent)},t.prototype.getContextValue=function(n){var u=this,t=this.contextContent[n],i;return r.isArray(t)?(i=[],r.each(this.contextContent[n],function(n){i.push(u.getModifiedData(n))}),i):r.isString(t)?this.getModifiedData(t):""},t.prototype.handleBuildingQuery=function(n){var t=this,i=this.getContextKeys();r.each(i,function(i){n.queryBuilder.addContextValue(i,t.getContextValue(i))})},t.prototype.tryParseContextFromString=function(n){if(r.isEmpty(n))return{};try{return JSON.parse(h.Utils.decodeHTMLEntities(n))}catch(t){try{return JSON.parse(n)}catch(n){return this.logger.error("Error while trying to parse context from the PipelineContext component",n),null}}},t.prototype.getModifiedData=function(n){return n.replace(/\{\!([^\}]+)\}/g,function(n,i){var r=i.trim();return Coveo.context&&r in Coveo.context?Coveo.context[r]:r==t.CURRENT_URL?window.location.href:""})},t.ID="PipelineContext",t.CURRENT_URL="CurrentUrl",t.doExport=function(){o.exportGlobally({PipelineContext:t})},t}(c.Component);t.PipelineContext=u;a.Initialization.registerAutoCreateComponent(u)},function(n,t,i){"use strict";var o=this&&this.__extends||function(){var n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])};return function(t,i){function r(){this.constructor=t}n(t,i);t.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var s=i(7),h=i(8),c=i(55),u=i(100),l=i(2),f=i(6),r=i(1),a=i(3),v=i(26),y=i(0),p=i(179);i(638);var w=i(17),b=i(12),e=function(n){function t(i,u,e,o){void 0===o&&(o=v.ModalBox);var s=n.call(this,i,t.ID,e)||this;return s.element=i,s.options=u,s.ModalBox=o,s.content=[],s.options=h.ComponentOptions.initComponentOptions(i,t,u),s.bind.onRootElement(c.SettingsEvents.settingsPopulateMenu,function(n){n.menuData.push({className:"coveo-preferences-panel",text:f.l("Preferences"),onOpen:function(){return s.open()},onClose:function(){return s.close()},svgIcon:b.SVGIcons.icons.dropdownPreferences,svgIconClassName:"coveo-preferences-panel-svg"})}),s.bind.onRootElement(w.InitializationEvents.afterComponentsInitialization,function(){s.content=r.$$(s.element).children()}),s.modalbox=new p.AccessibleModal("coveo-preferences-panel",s.searchInterface.options.modalContainer,s.ModalBox,{overlayClose:!0}),s}return o(t,n),t.prototype.open=function(){var t=this,n=r.$$("div");y.each(this.content,function(t){n.append(t)});this.modalbox.open({title:f.l("Preferences"),content:n.el,origin:this.element,validation:function(){return t.cleanupOnExit(),!0}})},t.prototype.close=function(){this.cleanupOnExit();this.modalbox.close()},t.prototype.save=function(){r.$$(this.element).trigger(u.PreferencesPanelEvents.savePreferences);this.queryController.executeQuery()},t.prototype.cleanupOnExit=function(){r.$$(this.element).trigger(u.PreferencesPanelEvents.exitPreferencesWithoutSave)},t.ID="PreferencesPanel",t.doExport=function(){a.exportGlobally({PreferencesPanel:t})},t.options={},t}(s.Component);t.PreferencesPanel=e;l.Initialization.registerAutoCreateComponent(e)},function(n,t,i){"use strict";var l=this&&this.__extends||function(){var n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])};return function(t,i){function r(){this.constructor=t}n(t,i);t.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),s=this&&this.__assign||Object.assign||function(n){for(var t,r,i=1,u=arguments.length;i<u;i++){t=arguments[i];for(r in t)Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n};Object.defineProperty(t,"__esModule",{value:!0});var a=i(8),o=i(68),v=i(2),h=i(4),r=i(1),y=i(3);i(639);var f=i(70),c=i(119),u=i(0),p=i(28),w=i(7),b=i(15),k=i(24),d=i(6),e=function(n){function t(i,r,f,e){var o=n.call(this,i,t.ID,f)||this;return o.element=i,o.options=r,o.bindings=f,o.result=e,o.links=[],o.options=a.ComponentOptions.initComponentOptions(i,t,r),o.options=u.extend({},o.options,o.componentOptionsModel.get(p.ComponentOptionsModel.attributesEnum.resultLink)),o.renderUri(o.result),o.addAccessibilityAttributes(),o}return l(t,n),t.prototype.openLink=function(n){void 0===n&&(n=!0);u.last(this.links).openLink(n)},t.prototype.openLinkInNewWindow=function(n){void 0===n&&(n=!0);u.last(this.links).openLinkInNewWindow(n)},t.prototype.openLinkAsConfigured=function(n){void 0===n&&(n=!0);u.last(this.links).openLinkAsConfigured(n)},t.prototype.renderUri=function(n){var i=h.Utils.getFieldValue(n,"parents"),t;i?this.renderParents({parents:this.parseXmlParents(i),firstIndexToRender:0,maxNumOfParts:k.DeviceUtils.isMobileDevice()?3:5}):this.options.titleTemplate?(t=new f.ResultLink(this.buildElementForResultLink(n.printableUri),this.options,this.bindings,this.result),this.links.push(t),this.element.appendChild(this.makeLinkAccessible(t.element))):this.renderShortenedUri()},t.prototype.buildSeparator=function(){return r.$$("span",{className:"coveo-printable-uri-separator",role:"separator"}," > ").el},t.prototype.buildHtmlToken=function(n,t){var i=n.charAt(0).toUpperCase()+n.slice(1),e=u.extend({},this.result,{clickUri:t,title:i,titleHighlights:this.getModifiedHighlightsForModifiedResultTitle(i)}),r=new f.ResultLink(this.buildElementForResultLink(i),this.options,this.bindings,e);return this.links.push(r),r.element},t.prototype.parseXmlParents=function(n){for(var i=h.Utils.parseXml(n).getElementsByTagName("parent"),r=[],t=0;t<i.length;t++)r.push(i.item(t));return r},t.prototype.renderParents=function(n){r.$$(this.element).empty();var u=n.parents.length-1,i=u-1,f=n.maxNumOfParts-1,t=Math.min(i,n.firstIndexToRender+f-1),e=i-t;this.optionallyRenderFirstEllipsis(n);this.renderMiddleParts(n,t);e>0&&this.renderLastEllipsis(s({},n,{firstIndexToRender:Math.min(Math.max(t+1,0),n.parents.length-n.maxNumOfParts)}));this.renderLastPart(n)},t.prototype.optionallyRenderFirstEllipsis=function(n){n.firstIndexToRender>0&&(this.appendEllipsis(s({},n,{firstIndexToRender:Math.max(0,n.firstIndexToRender-n.maxNumOfParts+1)})),this.appendSeparator())},t.prototype.renderMiddleParts=function(n,t){for(var i=n.firstIndexToRender;i<=t;i++)i>n.firstIndexToRender&&this.appendSeparator(),this.appendToken(n.parents[i])},t.prototype.renderLastEllipsis=function(n){this.appendSeparator();this.appendEllipsis(n)},t.prototype.renderLastPart=function(n){this.appendSeparator();this.appendToken(n.parents[n.parents.length-1])},t.prototype.appendSeparator=function(){this.element.appendChild(this.buildSeparator())},t.prototype.appendEllipsis=function(n){var t=this;this.element.appendChild(this.buildEllipsis(function(){t.renderParents(n);t.element.firstChild.firstChild.focus()}))},t.prototype.appendToken=function(n){this.element.appendChild(this.makeLinkAccessible(this.buildHtmlToken(n.getAttribute("name"),n.getAttribute("uri"))))},t.prototype.renderShortenedUri=function(){var n=-1==this.result.printableUri.indexOf("\\")?o.StringAndHoles.shortenUri(this.result.printableUri,r.$$(this.element).width()):o.StringAndHoles.shortenPath(this.result.printableUri,r.$$(this.element).width());var t=o.HighlightUtils.highlightString(n.value,this.result.printableUriHighlights,n.holes,"coveo-highlight"),e=u.extend({},this.result,{title:t,titleHighlights:this.getModifiedHighlightsForModifiedResultTitle(t)}),i=new f.ResultLink(this.buildElementForResultLink(this.result.printableUri),this.options,this.bindings,e);this.links.push(i);this.element.appendChild(this.makeLinkAccessible(i.element))},t.prototype.makeLinkAccessible=function(n){return r.$$("span",{className:"coveo-printable-uri-part",role:"listitem"},n).el},t.prototype.buildEllipsis=function(n){var t=r.$$("button",{type:"button"},"..."),i=r.$$("span",{className:"coveo-printable-uri-ellipsis",role:"listitem"},t).el;return(new b.AccessibleButton).withElement(t).withLabel(d.l("CollapsedUriParts")).withSelectAction(n).build(),i},t.prototype.buildElementForResultLink=function(n){return r.$$("a",{className:"CoveoResultLink",title:n}).el},t.prototype.getModifiedHighlightsForModifiedResultTitle=function(n){return c.getRestHighlightsForAllTerms(n,this.result.termsToHighlight,this.result.phrasesToHighlight,new c.DefaultStreamHighlightOptions)},t.prototype.addAccessibilityAttributes=function(){this.element.setAttribute("role","list")},t.ID="PrintableUri",t.options={},t.doExport=function(){y.exportGlobally({PrintableUri:t})},t}(w.Component);t.PrintableUri=e;e.options=u.extend({},e.options,f.ResultLink.options);v.Initialization.registerAutoCreateComponent(e)},function(n,t,i){"use strict";var s=this&&this.__extends||function(){var n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])};return function(t,i){function r(){this.constructor=t}n(t,i);t.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),u;Object.defineProperty(t,"__esModule",{value:!0});var h=i(7),c=i(8),f=i(11),l=i(5),e=i(1),r=i(6),a=i(2),o=i(23),v=i(3);i(640);u=function(n){function t(i,r,u){var o=n.call(this,i,t.ID,u)||this;return o.element=i,o.options=r,o.options=c.ComponentOptions.initComponentOptions(i,t,r),o.bind.onRootElement(f.QueryEvents.querySuccess,function(n){return o.handleQuerySuccess(n)}),o.bind.onRootElement(f.QueryEvents.queryError,function(){return e.$$(o.element).hide()}),o.element.style.display="none",o.textContainer=e.$$("span").el,o.element.appendChild(o.textContainer),o}return s(t,n),t.prototype.handleQuerySuccess=function(n){if(!this.disabled&&n.results.results.length>0){l.Assert.exists(n);var t=[r.l("Duration",this.formatQueryDuration(n.results.duration)),r.l("SearchAPIDuration",this.formatQueryDuration(n.results.searchAPIDuration)),r.l("IndexDuration",this.formatQueryDuration(n.results.indexDuration))].join("\n");this.textContainer.textContent=this.formatQueryDuration(n.results.duration);this.element.setAttribute("title",t);this.element.style.display="inline"}else this.element.style.display="none"},t.prototype.formatQueryDuration=function(n){if(void 0==n)return r.l("Unavailable");var t=Math.max(n/1e3,.01);return"en"===String.locale?r.l("Seconds",o.format(t,"n2"),t,!0):r.l("Seconds",o.format(t,"n2"),t)},t.ID="QueryDuration",t.doExport=function(){v.exportGlobally({QueryDuration:t})},t.options={},t}(h.Component);t.QueryDuration=u;a.Initialization.registerAutoCreateComponent(u)},function(n,t,i){"use strict";var l=this&&this.__extends||function(){var n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])};return function(t,i){function r(){this.constructor=t}n(t,i);t.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),e;Object.defineProperty(t,"__esModule",{value:!0});i(641);var o=i(0),s=i(11),a=i(519),v=i(3),y=i(5),p=i(13),u=i(6),r=i(1),h=i(205),c=i(10),w=i(7),f=i(8),b=i(2),k=i(15);t.noResultsCssClass="coveo-show-if-no-results";e=function(n){function i(t,u,e){var o=n.call(this,t,i.ID,e)||this;return o.element=t,o.options=u,o.options=f.ComponentOptions.initComponentOptions(t,i,u),o.bind.onRootElement(s.QueryEvents.querySuccess,function(n){return o.handleQuerySuccess(n)}),o.bind.onRootElement(s.QueryEvents.queryError,function(){return o.hide()}),o.hide(),o.textContainer=r.$$("span").el,r.$$(o.element).prepend(o.textContainer),o}return l(i,n),i.prototype.hide=function(){r.$$(this.element).addClass("coveo-hidden")},i.prototype.show=function(){r.$$(this.element).removeClass("coveo-hidden")},i.prototype.render=function(n){var t,i;r.$$(this.textContainer).empty();this.show();this.updateNoResultsSnapshot();this.hideNoResultsPage();this.options.onlyDisplaySearchTips||this.updateSummaryIfResultsWereReceived(n);t=n.results;null!=t.exception&&null!=t.exception.code?(i=("QueryException"+t.exception.code).toLocaleString(),this.textContainer.innerHTML=u.l("QueryException",i)):0==t.results.length?(this.updateQueryTagsInNoResultsContainer(),this.displayInfoOnNoResults()):this.lastKnownGoodState=this.queryStateModel.getAttributes()},i.prototype.handleQuerySuccess=function(n){y.Assert.exists(n);this.render(n)},i.prototype.updateSummaryIfResultsWereReceived=function(n){if(n.results.results.length){var t=h.QuerySummaryUtils.htmlMessage(this.root,n);this.textContainer.innerHTML=t}},i.prototype.updateNoResultsSnapshot=function(){var n=this.getNoResultsContainer();null==this.noResultsSnapshot&&n&&(this.noResultsSnapshot=n.innerHTML)},i.prototype.updateQueryTagsInNoResultsContainer=function(){var n=this.getNoResultsContainer();n&&(n.innerHTML=this.replaceQueryTagsWithHighlightedQuery(this.noResultsSnapshot))},i.prototype.replaceQueryTagsWithHighlightedQuery=function(n){var t='<span class="coveo-highlight">'+this.sanitizedQuery+"<\/span>";return h.QuerySummaryUtils.replaceQueryTags(n,t)},Object.defineProperty(i.prototype,"sanitizedQuery",{get:function(){return o.escape(this.queryStateModel.get(p.QueryStateModel.attributesEnum.q))},enumerable:!0,configurable:!0}),i.prototype.displayInfoOnNoResults=function(){var n,t,i,r;(this.showNoResultsPage(),this.options.enableNoResultsFoundMessage)&&(n=this.getNoResultsFoundMessageElement(),this.textContainer.appendChild(n.el));this.options.enableCancelLastAction&&(t=this.getCancelLastActionElement(),this.textContainer.appendChild(t.el));this.options.enableSearchTips&&(i=this.getSearchTipsTitleElement(),r=this.getSearchTipsListElement(),this.textContainer.appendChild(i.el),this.textContainer.appendChild(r.el))},i.prototype.hideNoResultsPage=function(){this.getAllNoResultsContainer().forEach(function(n){r.$$(n).removeClass("coveo-no-results")})},i.prototype.showNoResultsPage=function(){this.getAllNoResultsContainer().forEach(function(n){r.$$(n).addClass("coveo-no-results")})},i.prototype.getNoResultsContainer=function(){return r.$$(this.element).find("."+t.noResultsCssClass)},i.prototype.getAllNoResultsContainer=function(){return r.$$(this.element).findAll("."+t.noResultsCssClass)},Object.defineProperty(i.prototype,"parsedNoResultsFoundMessage",{get:function(){return""===this.sanitizedQuery.trim()?u.l("noResult"):this.replaceQueryTagsWithHighlightedQuery(this.options.noResultsFoundMessage)},enumerable:!0,configurable:!0}),i.prototype.getNoResultsFoundMessageElement=function(){return r.$$("div",{className:"coveo-query-summary-no-results-string"},this.parsedNoResultsFoundMessage)},i.prototype.getCancelLastActionElement=function(){var n=this,t=r.$$("div",{className:"coveo-query-summary-cancel-last"},u.l("CancelLastAction"));return(new k.AccessibleButton).withLabel(u.l("CancelLastAction")).withElement(t).withSelectAction(function(){n.usageAnalytics.logCustomEvent(c.analyticsActionCauseList.noResultsBack,{},n.root);n.usageAnalytics.logSearchEvent(c.analyticsActionCauseList.noResultsBack,{});n.lastKnownGoodState?(n.queryStateModel.reset(),n.queryStateModel.setMultiple(n.lastKnownGoodState),r.$$(n.root).trigger(a.QuerySummaryEvents.cancelLastAction),n.queryController.executeQuery()):history.back()}).build(),t},i.prototype.getSearchTipsTitleElement=function(){var n=r.$$("div",{className:"coveo-query-summary-search-tips-info"});return n.text(u.l("SearchTips")),n},i.prototype.getSearchTipsListElement=function(){var n=r.$$("ul"),f=r.$$("li"),t,i;return f.text(u.l("CheckSpelling")),t=r.$$("li"),(t.text(u.l("TryUsingFewerKeywords")),n.el.appendChild(f.el),n.el.appendChild(t.el),this.queryStateModel.atLeastOneFacetIsActive())&&(i=r.$$("li"),i.text(u.l("SelectFewerFilters")),n.el.appendChild(i.el)),n},i.ID="QuerySummary",i.doExport=function(){v.exportGlobally({QuerySummary:i})},i.options={onlyDisplaySearchTips:f.ComponentOptions.buildBooleanOption({defaultValue:!1}),enableNoResultsFoundMessage:f.ComponentOptions.buildBooleanOption({defaultValue:!0}),noResultsFoundMessage:f.ComponentOptions.buildLocalizedStringOption({localizedString:function(){return u.l("noResultFor","${query}")},depend:"enableNoResultsFoundMessage",postProcessing:function(n){return o.escape(n)}}),enableCancelLastAction:f.ComponentOptions.buildBooleanOption({defaultValue:!0}),enableSearchTips:f.ComponentOptions.buildBooleanOption({defaultValue:!0})},i}(w.Component);t.QuerySummary=e;b.Initialization.registerAutoCreateComponent(e)},function(n,t,i){"use strict";var p=this&&this.__extends||function(){var n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])};return function(t,i){function r(){this.constructor=t}n(t,i);t.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),f=this&&this.__awaiter||function(n,t,i,r){return new(i||(i=Promise))(function(u,f){function o(n){try{e(r.next(n))}catch(n){f(n)}}function s(n){try{e(r.throw(n))}catch(n){f(n)}}function e(n){n.done?u(n.value):new i(function(t){t(n.value)}).then(o,s)}e((r=r.apply(n,t||[])).next())})},e=this&&this.__generator||function(n,t){function f(n){return function(t){return s([n,t])}}function s(f){if(e)throw new TypeError("Generator is already executing.");for(;r;)try{if(e=1,u&&(i=u[2&f[0]?"return":f[0]?"throw":"next"])&&!(i=i.call(u,f[1])).done)return i;switch(u=0,i&&(f=[0,i.value]),f[0]){case 0:case 1:i=f;break;case 4:return r.label++,{value:f[1],done:!1};case 5:r.label++;u=f[1];f=[0];continue;case 7:f=r.ops.pop();r.trys.pop();continue;default:if(i=r.trys,!(i=i.length>0&&i[i.length-1])&&(6===f[0]||2===f[0])){r=0;continue}if(3===f[0]&&(!i||f[1]>i[0]&&f[1]<i[3])){r.label=f[1];break}if(6===f[0]&&r.label<i[1]){r.label=i[1];i=f;break}if(i&&r.label<i[2]){r.label=i[2];r.ops.push(f);break}i[2]&&r.ops.pop();r.trys.pop();continue}f=t.call(n,r)}catch(n){f=[6,n];u=0}finally{e=i=0}if(5&f[0])throw f[1];return{value:f[0]?f[1]:void 0,done:!0}}var e,u,i,o,r={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:f(0),"throw":f(1),"return":f(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o},l;Object.defineProperty(t,"__esModule",{value:!0});l=i(97);i(642);var w=i(227),b=i(29),k=i(26),d=i(3),o=i(13),g=i(6),nt=i(15),r=i(1),tt=i(96),it=i(22),rt=i(16),ut=i(12),ft=i(4),et=i(10),s=i(7),u=i(8),ot=i(51),h=i(2),a=i(62),v=i(643),c=i(234),st=i(179),y=function(n){function t(i,r,f,e,o){void 0===o&&(o=k.ModalBox);var s=n.call(this,i,t.ID,f)||this;return s.element=i,s.options=r,s.bindings=f,s.result=e,s.options=u.ComponentOptions.initComponentOptions(i,t,r),null==s.options.contentTemplate&&(s.options.contentTemplate=new v.DefaultQuickviewTemplate),/^\s*$/.test(s.element.innerHTML)&&s.buildContent(),s.bindClick(e),s.bindings.resultElement&&s.bind.on(s.bindings.resultElement,b.ResultListEvents.openQuickview,function(n){n&&n.stopPropagation();s.open()}),s.modalbox=new st.AccessibleModal("coveo-quick-view",s.searchInterface.options.modalContainer,o),s}return p(t,n),t.prototype.buildContent=function(){var t=this.buildIcon(),i=this.buildCaption(),n=r.$$("div");n.append(t);n.append(i);r.$$(this.element).append(n.el);this.buildTooltipIfNotInCardLayout(t,i)},t.prototype.buildIcon=function(){var n=r.$$("div",{className:"coveo-icon-for-quickview"},ut.SVGIcons.icons.quickview).el;return rt.SVGDom.addClassToSVGInContainer(n,"coveo-icon-for-quickview-svg"),n},t.prototype.buildCaption=function(){return r.$$("div",{className:"coveo-caption-for-icon"},"Quickview".toLocaleString()).el},t.prototype.buildTooltipIfNotInCardLayout=function(n,t){if(!this.resultsAreInCardLayout){var i=r.$$("div").el;t.appendChild(i);this.buildPopper(n,t,i)}},Object.defineProperty(t.prototype,"resultsAreInCardLayout",{get:function(){return"card"===this.queryStateModel.get(o.QueryStateModel.attributesEnum.layout)},enumerable:!0,configurable:!0}),t.prototype.buildPopper=function(n,t,i){var u=new l.default(n,t,{placement:this.options.tooltipPlacement,modifiers:{preventOverflow:{boundariesElement:r.$$(this.root).el,padding:0},arrow:{element:i},offset:{offset:"0,8"}},eventsEnabled:!1});r.$$(this.element).on("mouseover",function(){u.update()})},t.prototype.open=function(){var n=this,i;if(!this.modalbox.isOpen)return t.resultCurrentlyBeingRendered=this.result,document.activeElement&&document.activeElement instanceof HTMLElement&&r.$$(document.activeElement).trigger("blur"),i=this.prepareOpenQuickviewObject(),this.createModalBox(i).then(function(){n.bindQuickviewEvents(i);n.animateAndOpen();n.logUsageAnalyticsEvent();n.queryStateModel.set(o.QueryStateModel.attributesEnum.quickview,n.getHashId());t.resultCurrentlyBeingRendered=null})},t.prototype.close=function(){this.modalbox.isOpen&&this.modalbox.close()},t.prototype.getHashId=function(){return this.result.queryUid+"."+this.result.index+"."+it.StringUtils.hashCode(this.result.uniqueId)},t.prototype.logUsageAnalyticsEvent=function(){this.usageAnalytics.logClickEvent(et.analyticsActionCauseList.documentQuickview,{author:ft.Utils.getFieldValue(this.result,"author"),documentURL:this.result.clickUri,documentTitle:this.result.title},this.result,this.element)},t.prototype.bindClick=function(n){var i=this,t;void 0===n.hasHtmlVersion||n.hasHtmlVersion||this.options.alwaysShow?(t=function(){return i.open()},(new nt.AccessibleButton).withElement(this.element).withSelectAction(t).withLabel(g.l("Quickview")).withOwner(this.bind).build()):this.element.style.display="none"},t.prototype.bindQuickviewEvents=function(n){var t=this;r.$$(this.modalbox.content).on(w.QuickviewEvents.quickviewLoaded,function(){return f(t,void 0,void 0,function(){var t;return e(this,function(i){switch(i.label){case 0:return[4,n.loadingAnimation];case 1:return t=i.sent(),r.$$(t).remove(),[2]}})})})},t.prototype.animateAndOpen=function(){var n=r.$$(this.modalbox.element).find("."+s.Component.computeCssClassName(c.QuickviewDocument));n&&h.Initialization.dispatchNamedMethodCallOrComponentCreation("open",n,null)},t.prototype.createModalBox=function(n){var t=this,i=r.$$("div");return i.addClass("coveo-computed-modal-box-content"),n.content.then(function(n){return i.append(n.el),t.modalbox.openResult({result:t.result,options:{showDate:t.options.showDate,title:t.options.title},bindings:t.bindings,content:i.el,validation:function(){return t.closeQuickview(),!0},origin:t.element}),i})},t.prototype.prepareOpenQuickviewObject=function(){var n=this.options.loadingAnimation;return{loadingAnimation:n,content:this.prepareQuickviewContent(n)}},t.prototype.prepareQuickviewContent=function(n){return f(this,void 0,void 0,function(){var t,i,r,u,f=this;return e(this,function(e){switch(e.label){case 0:return[4,this.instantiateTemplateToDom()];case 1:return t=e.sent(),i=this.searchInterface.options,r={options:i,bindings:this.getBindings(),result:this.result},[4,h.Initialization.automaticallyCreateComponentsInside(t.el,r).initResult];case 2:return e.sent(),u=function(){return void 0!=t.find("."+s.Component.computeCssClassName(c.QuickviewDocument))&&f.options.enableLoadingAnimation},u()&&(n instanceof HTMLElement?t.prepend(n):n instanceof Promise&&n.then(function(n){t.prepend(n)})),[2,t]}})})},t.prototype.instantiateTemplateToDom=function(){return f(this,void 0,void 0,function(){var n,t;return e(this,function(i){switch(i.label){case 0:return i.trys.push([0,2,3,6]),[4,this.options.contentTemplate.instantiateToElement(this.result)];case 1:return n=i.sent(),[3,6];case 2:return t=i.sent(),this.logger.warn(t),[3,6];case 3:return n?[3,5]:(this.logger.warn("An unexpected error happened while trying to render a custom template quickview, fallbacking on default quickview template...",this.options.contentTemplate),[4,(new v.DefaultQuickviewTemplate).instantiateToElement(this.result)]);case 4:n=i.sent();i.label=5;case 5:return[7];case 6:return[2,r.$$(n)]}})})},t.prototype.closeQuickview=function(){this.queryStateModel.set(o.QueryStateModel.attributesEnum.quickview,"")},t.ID="Quickview",t.doExport=function(){d.exportGlobally({Quickview:t,QuickviewDocument:c.QuickviewDocument})},t.options={alwaysShow:u.ComponentOptions.buildBooleanOption({defaultValue:!1}),title:u.ComponentOptions.buildStringOption(),showDate:u.ComponentOptions.buildBooleanOption({defaultValue:!0}),enableLoadingAnimation:u.ComponentOptions.buildBooleanOption({defaultValue:!0}),contentTemplate:a.TemplateComponentOptions.buildTemplateOption({selectorAttr:"data-template-selector",idAttr:"data-template-id"}),loadingAnimation:u.ComponentOptions.buildOption(ot.ComponentOptionsType.NONE,function(n){var f=n.getAttribute("data-loading-animation-selector"),t,i,u;return null!=f&&(t=r.$$(document.documentElement).find(f),null!=t)?(r.$$(t).detach(),t):(i=n.getAttribute("data-loading-animation-template-id"),null!=i&&(u=a.TemplateComponentOptions.loadResultTemplateFromId(i),u))?u.instantiateToElement(void 0,{checkCondition:!1}):tt.DomUtils.getBasicLoadingAnimation()}),tooltipPlacement:u.ComponentOptions.buildCustomOption(function(n){return n},{defaultValue:"bottom"})},t.resultCurrentlyBeingRendered=null,t}(s.Component);t.Quickview=y;h.Initialization.registerAutoCreateComponent(y)},function(n,t,i){"use strict";var e=this&&this.__extends||function(){var n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])};return function(t,i){function r(){this.constructor=t}n(t,i);t.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),u;Object.defineProperty(t,"__esModule",{value:!0});var o=i(7),f=i(8),r=i(1),s=i(5),h=i(2),c=i(0),l=i(3);i(656);u=function(n){function t(i,r,u,e){var o=n.call(this,i,t.ID,u)||this;return o.element=i,o.options=r,o.bindings=u,o.result=e,o.options=f.ComponentOptions.initComponentOptions(i,t,r),o.initializeParentResult(),o.bindEvents(),o.buildMenuItems(),o}return e(t,n),t.prototype.show=function(){r.$$(this.element).addClass(t.SHOW_CLASS)},t.prototype.hide=function(){r.$$(this.element).removeClass(t.SHOW_CLASS)},t.prototype.initializeParentResult=function(){this.parentResult=r.$$(this.element).closest("CoveoResult")||r.$$(this.element).closest("coveo-result-folding-child-result");s.Assert.check(void 0!==this.parentResult,"ResultActionsMenu needs to be a child of a Result");r.$$(this.parentResult).addClass("coveo-clickable")},t.prototype.bindEvents=function(){var n=this;r.$$(this.parentResult).on("click",function(){return n.show()});r.$$(this.parentResult).on("mouseleave",function(){return n.hide()});this.options.openOnMouseOver&&r.$$(this.parentResult).on("mouseenter",function(){return n.show()})},t.prototype.buildMenuItems=function(){var n=this;this.menuItems=[];c.forEach(r.$$(this.element).children(),function(t){n.menuItems.push(t);r.$$(t).addClass("coveo-result-actions-menu-menu-item")})},t.ID="ResultActionsMenu",t.doExport=function(){l.exportGlobally({ResultActionsMenu:t})},t.SHOW_CLASS="coveo-menu-opened",t.options={openOnMouseOver:f.ComponentOptions.buildBooleanOption({defaultValue:!0})},t}(o.Component);t.ResultActionsMenu=u;h.Initialization.registerAutoCreateComponent(u)},function(n,t,i){"use strict";var a=this&&this.__extends||function(){var n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])};return function(t,i){function r(){this.constructor=t}n(t,i);t.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),u,f;Object.defineProperty(t,"__esModule",{value:!0});var v=i(7),e=i(8),o=i(657),r=i(4),s=i(21),h=i(2),y=i(5),c=i(1),l=i(0),p=i(3);i(658);u=i(62);f=function(n){function t(i,u,f,o,s){void 0===s&&(s=0);var h=n.call(this,i,t.ID,f)||this;return h.element=i,h.options=u,h.bindings=f,h.attachmentLevel=s,h.options=e.ComponentOptions.initComponentOptions(i,t,u),h.attachments=o.attachments,r.Utils.isNonEmptyArray(h.attachments)&&h.renderAttachments(),h}return a(t,n),t.prototype.renderAttachments=function(){var n=this;l.each(this.attachments,function(i){s.QueryUtils.setStateObjectOnQueryResult(n.queryStateModel.get(),i);s.QueryUtils.setSearchInterfaceObjectOnQueryResult(n.searchInterface,i);(n.attachmentLevel>0?n.options.subResultTemplate.instantiateToElement(i):n.options.resultTemplate.instantiateToElement(i)).then(function(r){if(n.autoCreateComponentsInsideResult(r,l.extend({},i,{attachments:[]})),c.$$(r).addClass("coveo-result-attachments-container"),n.element.appendChild(r),n.attachmentHasSubAttachment(i)&&n.attachmentLevel<n.options.maximumAttachmentLevel){var u=c.$$("div").el;r.appendChild(u);new t(u,n.options,n.bindings,i,n.attachmentLevel+1)}})})},t.prototype.attachmentHasSubAttachment=function(n){return!!r.Utils.isNonEmptyArray(n.attachments)||!!r.Utils.isNonEmptyArray(n.childResults)&&(n.attachments=n.childResults,!0)},t.prototype.autoCreateComponentsInsideResult=function(n,i){y.Assert.exists(n);var r=this.searchInterface.options,u={options:r,bindings:this.getBindings(),result:i};h.Initialization.automaticallyCreateComponentsInside(n,u,[t.ID])},t.ID="ResultAttachments",t.doExport=function(){p.exportGlobally({ResultAttachments:t,DefaultResultAttachmentTemplate:o.DefaultResultAttachmentTemplate})},t.options={resultTemplate:u.TemplateComponentOptions.buildTemplateOption({defaultFunction:function(){return new o.DefaultResultAttachmentTemplate}}),subResultTemplate:u.TemplateComponentOptions.buildTemplateOption({postProcessing:function(n,t){return null!=n?n:t.resultTemplate}}),maximumAttachmentLevel:e.ComponentOptions.buildNumberOption({defaultValue:5,min:0})},t}(v.Component);t.ResultAttachments=f;h.Initialization.registerAutoCreateComponent(f)},function(n,t,i){"use strict";var d=this&&this.__extends||function(){var n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])};return function(t,i){function r(){this.constructor=t}n(t,i);t.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),f=this&&this.__awaiter||function(n,t,i,r){return new(i||(i=Promise))(function(u,f){function o(n){try{e(r.next(n))}catch(n){f(n)}}function s(n){try{e(r.throw(n))}catch(n){f(n)}}function e(n){n.done?u(n.value):new i(function(t){t(n.value)}).then(o,s)}e((r=r.apply(n,t||[])).next())})},e=this&&this.__generator||function(n,t){function f(n){return function(t){return s([n,t])}}function s(f){if(e)throw new TypeError("Generator is already executing.");for(;r;)try{if(e=1,u&&(i=u[2&f[0]?"return":f[0]?"throw":"next"])&&!(i=i.call(u,f[1])).done)return i;switch(u=0,i&&(f=[0,i.value]),f[0]){case 0:case 1:i=f;break;case 4:return r.label++,{value:f[1],done:!1};case 5:r.label++;u=f[1];f=[0];continue;case 7:f=r.ops.pop();r.trys.pop();continue;default:if(i=r.trys,!(i=i.length>0&&i[i.length-1])&&(6===f[0]||2===f[0])){r=0;continue}if(3===f[0]&&(!i||f[1]>i[0]&&f[1]<i[3])){r.label=f[1];break}if(6===f[0]&&r.label<i[1]){r.label=i[1];i=f;break}if(i&&r.label<i[2]){r.label=i[2];r.ops.push(f);break}i[2]&&r.ops.pop();r.trys.pop();continue}f=t.call(n,r)}catch(n){f=[6,n];u=0}finally{e=i=0}if(5&f[0])throw f[1];return{value:f[0]?f[1]:void 0,done:!0}}var e,u,i,o,r={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:f(0),"throw":f(1),"return":f(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o};Object.defineProperty(t,"__esModule",{value:!0});var g=i(7),u=i(8),h=i(659),c=i(4),l=i(21),a=i(2),o=i(5),r=i(1),s=i(6),v=i(0),nt=i(3),y=i(10),tt=i(9);i(660);var p=i(12),w=i(16),it=i(62),b=i(15),k=function(n){function t(i,r,f,e){var s=n.call(this,i,t.ID,f)||this;return s.element=i,s.options=r,s.result=e,s.showingMoreResults=!1,s.options=u.ComponentOptions.initComponentOptions(s.element,t,r),o.Assert.exists(e),s.buildElements(),s.renderElements(),s}return d(t,n),t.prototype.showMoreResults=function(){return f(this,void 0,void 0,function(){var n,i,t;return e(this,function(u){switch(u.label){case 0:return o.Assert.exists(this.result.moreResults),this.cancelAnyPendingShowMore(),this.moreResultsPromise=this.result.moreResults(),this.waitAnimation=r.$$("div",{className:"coveo-loading-spinner"}).el,this.results.appendChild(this.waitAnimation),this.updateElementVisibility(),[4,this.moreResultsPromise];case 1:n=u.sent();this.childResults=n;this.showingMoreResults=!0;this.usageAnalytics.logClickEvent(y.analyticsActionCauseList.foldingShowMore,this.getAnalyticsMetadata(),this.result,this.element);u.label=2;case 2:return u.trys.push([2,4,,5]),[4,this.displayThoseResults(n)];case 3:return u.sent(),this.updateElementVisibility(n.length),[3,5];case 4:return i=u.sent(),t=new tt.Logger(this),t.warn("An error occured when trying to display more results"),[3,5];case 5:return this.moreResultsPromise=void 0,r.$$(this.waitAnimation).detach(),this.waitAnimation=void 0,[2,n]}})})},t.prototype.showLessResults=function(){return f(this,void 0,void 0,function(){return e(this,function(n){switch(n.label){case 0:return this.cancelAnyPendingShowMore(),this.showingMoreResults=!1,this.usageAnalytics.logCustomEvent(y.analyticsActionCauseList.foldingShowLess,this.getAnalyticsMetadata(),this.element),[4,this.displayThoseResults(this.result.childResults)];case 1:return n.sent(),this.updateElementVisibility(),this.scrollToResultElement(),[2]}})})},t.prototype.buildElements=function(){this.buildHeader();this.buildResults();this.buildFooter()},t.prototype.renderElements=function(){return f(this,void 0,void 0,function(){return e(this,function(n){switch(n.label){case 0:return[4,this.displayThoseResults(this.result.childResults)];case 1:return n.sent(),this.updateElementVisibility(),r.$$(this.element.parentElement).hasClass("CoveoCardOverlay")&&this.bindOverlayEvents(),0!=this.result.childResults.length||this.result.moreResults||r.$$(this.element).hide(),[2]}})})},t.prototype.buildHeader=function(){var n=r.$$("div",{className:"coveo-folding-header"}).el;this.element.appendChild(n);void 0!=this.options.normalCaption&&void 0!=this.options.expandedCaption&&(this.normalCaption=r.$$("div",{className:"coveo-folding-normal-caption"},this.options.normalCaption).el,n.appendChild(this.normalCaption),this.expandedCaption=r.$$("div",{className:"coveo-folding-expanded-caption"},this.options.expandedCaption).el,n.appendChild(this.expandedCaption));this.oneResultCaption=r.$$("div",{className:"coveo-folding-oneresult-caption"},this.options.oneResultCaption).el;n.appendChild(this.oneResultCaption)},t.prototype.buildResults=function(){this.results=r.$$("div",{className:"coveo-folding-results"}).el;this.element.appendChild(this.results)},t.prototype.buildFooter=function(){var u=this,n=r.$$("div",{className:"coveo-folding-footer"}).el,t,i,f,e;(this.element.parentElement.appendChild(n),this.result.moreResults)&&(this.showMore=r.$$("div",{className:"coveo-folding-footer-section-for-less"}).el,n.appendChild(this.showMore),this.showLess=r.$$("div",{className:"coveo-folding-footer-section-for-more"}).el,n.appendChild(this.showLess),t=r.$$("div",{className:"coveo-folding-more"},r.$$("span",{className:"coveo-folding-footer-icon"},p.SVGIcons.icons.arrowDown).el).el,w.SVGDom.addClassToSVGInContainer(t,"coveo-folding-more-svg"),i=r.$$("div",{className:"coveo-folding-less"},r.$$("span",{className:"coveo-folding-footer-icon"},p.SVGIcons.icons.arrowUp).el).el,w.SVGDom.addClassToSVGInContainer(i,"coveo-folding-less-svg"),f=r.$$("a",{className:"coveo-folding-show-more"},this.options.moreCaption).el,e=r.$$("a",{className:"coveo-folding-show-less"},this.options.lessCaption).el,(new b.AccessibleButton).withElement(this.showMore).withLabel(this.options.moreCaption).withSelectAction(function(){return u.showMoreResults()}).build(),(new b.AccessibleButton).withElement(this.showLess).withLabel(this.options.lessCaption).withSelectAction(function(){return u.showLessResults()}).build(),this.showMore.appendChild(f),this.showLess.appendChild(e),this.showMore.appendChild(t),this.showLess.appendChild(i))},t.prototype.updateElementVisibility=function(n){var t,i;this.normalCaption&&r.$$(this.normalCaption).toggle(!this.showingMoreResults&&this.result.childResults.length>0);this.expandedCaption&&r.$$(this.expandedCaption).toggle(this.showingMoreResults);r.$$(this.oneResultCaption).toggleClass("coveo-hidden",!(n&&1==n));this.showMore&&(r.$$(this.showMore).toggleClass("coveo-visible",!this.showingMoreResults&&!c.Utils.exists(this.moreResultsPromise)),r.$$(this.showLess).toggleClass("coveo-visible",this.showingMoreResults));t=r.$$(this.element).find(".coveo-show-if-normal");t&&r.$$(t).toggle(!this.showingMoreResults);i=r.$$(this.element).find(".coveo-show-if-expanded");i&&r.$$(i).toggle(this.showingMoreResults)},t.prototype.scrollToResultElement=function(){var n=r.$$(this.element).closest("CoveoResult");window.scrollTo(0,new r.Win(window).scrollY()+n.getBoundingClientRect().top)},t.prototype.displayThoseResults=function(n){return f(this,void 0,void 0,function(){var t,i,u=this;return e(this,function(f){switch(f.label){case 0:return t=v.map(n,function(n){return u.renderChildResult(n)}),[4,Promise.all(t)];case 1:return i=f.sent(),r.$$(this.results).empty(),v.each(i,function(n){u.results.appendChild(n)}),[2,!0]}})})},t.prototype.renderChildResult=function(n){return f(this,void 0,void 0,function(){var t;return e(this,function(i){switch(i.label){case 0:return l.QueryUtils.setStateObjectOnQueryResult(this.queryStateModel.get(),n),l.QueryUtils.setSearchInterfaceObjectOnQueryResult(this.searchInterface,n),[4,this.options.resultTemplate.instantiateToElement(n,{wrapInDiv:!1,checkCondition:!1,responsiveComponents:this.searchInterface.responsiveComponents})];case 1:return t=i.sent(),r.$$(t).addClass("coveo-result-folding-child-result"),r.$$(t).toggleClass("coveo-normal-child-result",!this.showingMoreResults),r.$$(t).toggleClass("coveo-expanded-child-result",this.showingMoreResults),[4,a.Initialization.automaticallyCreateComponentsInsideResult(t,n).initResult];case 2:return i.sent(),[2,t]}})})},t.prototype.cancelAnyPendingShowMore=function(){this.moreResultsPromise&&(this.moreResultsPromise=void 0);o.Assert.doesNotExists(this.moreResultsPromise);o.Assert.doesNotExists(this.waitAnimation)},t.prototype.bindOverlayEvents=function(){var n=this;this.bind.one(this.element.parentElement,"openCardOverlay",function(){n.result.moreResults&&n.showMoreResults()})},t.prototype.getAnalyticsMetadata=function(){return{documentURL:this.result.clickUri,documentTitle:this.result.title,author:c.Utils.getFieldValue(this.result,"author")}},t.ID="ResultFolding",t.doExport=function(){nt.exportGlobally({ResultFolding:t,DefaultFoldingTemplate:h.DefaultFoldingTemplate})},t.options={resultTemplate:it.TemplateComponentOptions.buildTemplateOption({defaultFunction:function(){return new h.DefaultFoldingTemplate}}),normalCaption:u.ComponentOptions.buildLocalizedStringOption(),expandedCaption:u.ComponentOptions.buildLocalizedStringOption(),moreCaption:u.ComponentOptions.buildLocalizedStringOption({postProcessing:function(n){return n||s.l("ShowMore")}}),lessCaption:u.ComponentOptions.buildLocalizedStringOption({postProcessing:function(n){return n||s.l("ShowLess")}}),oneResultCaption:u.ComponentOptions.buildLocalizedStringOption({postProcessing:function(n){return n||s.l("DisplayingTheOnlyMessage")}})},t}(g.Component);t.ResultFolding=k;a.Initialization.registerAutoCreateComponent(k)},function(n,t,i){"use strict";var e=this&&this.__extends||function(){var n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])};return function(t,i){function r(){this.constructor=t}n(t,i);t.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),u;Object.defineProperty(t,"__esModule",{value:!0});i(663);var f,o=i(3),s=i(15),r=i(1),h=i(16),c=i(12),l=i(4),a=i(7),v=i(8),y=i(2);!function(n){n[n.Undefined=0]="Undefined";n[n.Lowest=1]="Lowest";n[n.Low=2]="Low";n[n.Average=3]="Average";n[n.Good=4]="Good";n[n.Best=5]="Best"}(f=t.RatingValues||(t.RatingValues={}));u=function(n){function t(i,r,u,f){var e=n.call(this,i,t.ID,u)||this;return e.element=i,e.options=r,e.bindings=u,e.result=f,e.options=v.ComponentOptions.initComponentOptions(i,t,r),l.Utils.isNullOrUndefined(f.rating)||e.renderComponent(i,f.rating),e}return e(t,n),t.prototype.renderComponent=function(n,t){for(var i=1;i<=5;i++)this.renderStar(n,i<=t,i)},t.prototype.renderStar=function(n,t,i){var u,f=this,e=r.$$(n).find('a[rating-value="'+i+'"]');null==e?(u=r.$$("a",{className:"coveo-result-rating-star"},c.SVGIcons.icons.star),h.SVGDom.addClassToSVGInContainer(u.el,"coveo-result-rating-star-svg"),n.appendChild(u.el),this.bindings.searchInterface.options.enableCollaborativeRating&&((new s.AccessibleButton).withElement(u).withSelectAction(function(n){var t=n.currentTarget;f.rateDocument(parseInt(t.getAttribute("rating-value")))}).withLabel(i.toString()).build(),u.on("mouseover",function(t){var i=t.currentTarget;f.renderComponent(n,parseInt(i.getAttribute("rating-value")))}),u.on("mouseout",function(){f.renderComponent(n,f.result.rating)})),u.el.setAttribute("rating-value",i.toString())):u=r.$$(e);u.toggleClass("coveo-result-rating-star-active",t)},t.prototype.rateDocument=function(n){var t=this,i={rating:f[n],uniqueId:this.result.uniqueId};this.queryController.getEndpoint().rateDocument(i).then(function(){t.result.rating=n;t.renderComponent(t.element,n)}).catch(function(){t.logger.error("An error occurred while rating the item")})},t.ID="ResultRating",t.doExport=function(){o.exportGlobally({ResultRating:t})},t}(a.Component);t.ResultRating=u;y.Initialization.registerAutoCreateComponent(u)},function(n,t,i){"use strict";var s=this&&this.__extends||function(){var n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])};return function(t,i){function r(){this.constructor=t}n(t,i);t.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});i(664);var e=i(1),r=i(4),u=i(6),h=i(7),c=i(12),l=i(3),a=i(2),f=i(8),o=function(n){function t(i,r,u,e){var o=n.call(this,i,t.ID)||this;return o.element=i,o.options=r,o.bindings=u,o.result=e,o.options=f.ComponentOptions.initComponentOptions(i,t,r),e?(o.renderComponent(),o):(o.logger.error("No result passed to Star Rating component."),o)}return s(t,n),Object.defineProperty(t.prototype,"configuredFieldsAreValid",{get:function(){var i=r.Utils.getFieldValue(this.result,this.options.ratingField),t=r.Utils.getFieldValue(this.result,this.options.numberOfRatingsField),n;return void 0!==t&&(this.numberOfRatings=Number(t)<0?0:Number(t)||0),this.rating=Number(i)<0?0:Number(i)||0,n=this.options.ratingScale,n<this.rating||n<=0?(this.logger.error("The rating scale property is either missing or invalid."),!1):(this.rating=Math.round(this.rating*(5/n)),!0)},enumerable:!0,configurable:!0}),t.prototype.renderComponent=function(){if(this.configuredFieldsAreValid){this.makeAccessible();for(var n=1;n<=5;n++)this.renderStar(n<=this.rating);void 0!==this.numberOfRatings&&this.renderNumberOfReviews(this.numberOfRatings)}},t.prototype.makeAccessible=function(){this.setDefaultTabIndex();this.element.setAttribute("aria-label",this.getAriaLabel())},t.prototype.setDefaultTabIndex=function(){r.Utils.isNullOrUndefined(this.element.getAttribute("tabindex"))&&(this.element.tabIndex=0)},t.prototype.getAriaLabel=function(){var t=!r.Utils.isNullOrUndefined(this.numberOfRatings),i=!!this.numberOfRatings,n;return t&&!i?u.l("NoRatings"):(n=u.l("Rated",this.rating,this.options.ratingScale,this.options.ratingScale),t?n+" "+u.l("RatedBy",this.numberOfRatings,this.numberOfRatings):n)},t.prototype.renderStar=function(n){var t=e.$$("span",{className:"coveo-star-rating-star"},c.SVGIcons.icons.star);t.toggleClass("coveo-star-rating-star-active",n);this.element.appendChild(t.el)},t.prototype.renderNumberOfReviews=function(n){var t=e.$$("span",{className:"coveo-star-rating-label"});t.text(n>0?"("+n+")":u.l("NoRatings"));this.element.appendChild(t.el)},t.ID="StarRating",t.doExport=function(){l.exportGlobally({StarRating:t})},t.options={ratingField:f.ComponentOptions.buildFieldOption({required:!0}),numberOfRatingsField:f.ComponentOptions.buildFieldOption(),ratingScale:f.ComponentOptions.buildNumberOption({defaultValue:5,min:1,max:1e5})},t}(h.Component);t.StarRating=o;a.Initialization.registerAutoCreateComponent(o)},function(n,t,i){"use strict";var b=this&&this.__extends||function(){var n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])};return function(t,i){function r(){this.constructor=t}n(t,i);t.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});i(665);var u=i(0),v=i(35),k=i(17),y=i(100),d=i(11),g=i(3),nt=i(18),a=i(13),f=i(6),tt=i(48),e=i(15),r=i(1),it=i(41),c=i(16),o=i(12),s=i(4),rt=i(10),h=i(7),l=i(8),ut=i(2),ft=i(65),et=i(140),ot=i(193),p=i(56),w=function(n){function t(i,u,f){var e=n.call(this,i,t.ID,f)||this;return e.element=i,e.options=u,e.bindings=f,e.preferencePanelCheckboxInput={},e.options=l.ComponentOptions.initComponentOptions(i,t,u),e.preferencePanel=r.$$(e.element).closest(h.Component.computeCssClassNameForType("PreferencesPanel")),e.preferencePanel?(e.preferencePanelLocalStorage=new it.LocalStorageUtils(t.ID),e.mergeLocalPreferencesWithStaticPreferences(),e.bindPreferencePanelEvent(),e.bindBreadcrumbEvent(),e.bindQueryEvent(),e.bind.oneRootElement(k.InitializationEvents.afterComponentsInitialization,function(){return e.createDom()}),e.bind.oneQueryState(nt.MODEL_EVENTS.CHANGE_ONE,a.QUERY_STATE_ATTRIBUTES.T,function(){return e.fromPreferencesToCheckboxInput()}),e):(e.logger.warn('Cannot instantiate ResultsFilterPreferences, as there is no "CoveoPreferencesPanel" in your page !'),e)}return b(t,n),t.prototype.createDom=function(){this.container=new et.FormGroup([],f.l("ResultsFilteringExpression")).build();this.element.appendChild(this.container);this.buildCheckboxesInput();this.options.showAdvancedFilters&&this.buildAdvancedFilters()},t.prototype.save=function(){this.fromCheckboxInputToPreferences();var n=u.omit(this.preferences,"tab");this.logger.info("Saving preferences",n);this.preferencePanelLocalStorage.save(n)},t.prototype.exitWithoutSave=function(){this.fromPreferencesToCheckboxInput();this.hideAdvancedFilterBuilder()},t.prototype.bindPreferencePanelEvent=function(){var n=this;this.bind.on(this.preferencePanel,y.PreferencesPanelEvents.savePreferences,function(){return n.save()});this.bind.on(this.preferencePanel,y.PreferencesPanelEvents.exitPreferencesWithoutSave,function(){return n.exitWithoutSave()})},t.prototype.bindBreadcrumbEvent=function(){var n=this;this.options.includeInBreadcrumb&&(this.bind.onRootElement(v.BreadcrumbEvents.populateBreadcrumb,function(t){return n.handlePopulateBreadcrumb(t)}),this.bind.onRootElement(v.BreadcrumbEvents.clearBreadcrumb,function(){return n.handleClearBreadcrumb()}))},t.prototype.bindQueryEvent=function(){var n=this;this.bind.onRootElement(d.QueryEvents.buildingQuery,function(t){return n.handleBuildingQuery(t)})},t.prototype.handleBuildingQuery=function(n){u.each(this.getActiveFilters(),function(t){s.Utils.isNonEmptyString(t.expression)&&n.queryBuilder.advancedExpression.add(t.expression)})},t.prototype.handlePopulateBreadcrumb=function(n){var u=this.getActiveFilters(),t,e,o,i;if(s.Utils.isNonEmptyArray(u)){for(t=r.$$("div",{className:"coveo-results-filter-preferences-breadcrumb"}),e=r.$$(tt.getHeadingTag(n.headingLevel,"span"),{className:"coveo-title"}),e.text(f.l("FiltersInYourPreferences")+":"),t.el.appendChild(e.el),o=r.$$("span",{className:"coveo-values"}),t.el.appendChild(o.el),i=0;i<u.length;i++)o.el.appendChild(this.buildBreadcrumb(u[i]));n.breadcrumbs.push({element:t.el})}},t.prototype.handleClearBreadcrumb=function(){this.isFullBreadcrumbClear=!0;u.each(this.getActiveFilters(),function(n){n.selected=!1});this.fromPreferencesToCheckboxInput();this.isFullBreadcrumbClear=!1},t.prototype.buildAdvancedFilters=function(){var i=this,t,n;this.advancedFilters=r.$$("div",{className:"coveo-advanced-filters"},f.l("Create")).el;(new e.AccessibleButton).withElement(this.advancedFilters).withoutLabelOrTitle().withSelectAction(function(){return i.openAdvancedFilterSectionOrSaveFilters()}).build();this.buildAdvancedFilterInput();this.buildAdvancedFilterFormValidate();this.advancedFiltersBuilder=r.$$("div",{className:"coveo-advanced-filters-builder"}).el;this.advancedFiltersBuilder.appendChild(this.advancedFilterFormValidate);t=r.$$("a",{href:"https://docs.coveo.com/en/2053/index-content/inspect-items-with-the-content-browser#result-filtering-expressions",className:"coveo-online-help"},"?");n=r.$$(this.container).find(".coveo-form-group-label");t.insertAfter(n);r.$$(this.advancedFilters).insertAfter(n);this.container.appendChild(this.advancedFiltersBuilder)},t.prototype.buildAdvancedFilterInput=function(){this.advancedFiltersTextInputCaption=new p.TextInput(function(){},f.l("Caption"));this.advancedFiltersTextInputCaption.getInput().setAttribute("required","");this.advancedFiltersTextInputExpression=new p.TextInput(function(){},f.l("Expression"));this.advancedFiltersTextInputExpression.getInput().setAttribute("required","");this.advancedFiltersTabSelect=new ot.MultiSelect(function(){},this.getAllTabs(),f.l("Tab"))},t.prototype.buildAdvancedFilterFormValidate=function(){var s=this,h,n,t,i,l,a,v;this.advancedFilterFormValidate=r.$$("form").el;h=r.$$("input",{type:"submit"});n=r.$$("span",{className:"coveo-save"},o.SVGIcons.icons.save);c.SVGDom.addClassToSVGInContainer(n.el,"coveo-save-svg");(new e.AccessibleButton).withElement(n.el).withLabel(f.l("Save")).withSelectAction(function(){return h.el.click()}).build();t=r.$$("span",{className:"coveo-close"},o.SVGIcons.icons.close);c.SVGDom.addClassToSVGInContainer(t.el,"coveo-close-svg");(new e.AccessibleButton).withElement(t.el).withLabel(f.l("Close")).withSelectAction(function(){return s.hideAdvancedFilterBuilder()}).build();i=r.$$("div",{className:"coveo-choice-container coveo-close-and-save"});i.el.appendChild(n.el);i.el.appendChild(t.el);l=this.advancedFiltersTextInputCaption.build();r.$$(l).addClass("coveo-caption");a=this.advancedFiltersTabSelect.build();r.$$(a).addClass("coveo-tab");v=this.advancedFiltersTextInputExpression.build();r.$$(v).addClass("coveo-expression");u.each([l,v,a,i.el,h.el],function(n){s.advancedFilterFormValidate.appendChild(n)});r.$$(this.advancedFilterFormValidate).on("submit",function(n){return s.validateAndSaveAdvancedFilter(n)})},t.prototype.getAllTabs=function(){var n=h.Component.getComponentRef("Tab"),t;return n?(t=r.$$(this.root).findAll("."+h.Component.computeCssClassName(n)),u.map(t,function(n){return h.Component.get(n).options.id})):[]},t.prototype.getPreferencesBoxInputToBuild=function(){return u.map(this.preferences,function(n){return{label:n.caption,tab:n.tab,expression:n.expression}})},t.prototype.buildCheckboxesInput=function(){var n=this,t;void 0!=this.preferenceContainer&&this.preferenceContainer.remove();t=this.getPreferencesBoxInputToBuild();s.Utils.isNonEmptyArray(t)&&(this.preferenceContainer=r.$$("div",{className:"coveo-choices-container"}).el,u.each(t,function(t){var i=new ft.Checkbox(function(t){n.save();var i=n.preferences[t.getValue()];n.queryController.firstQuery||n.isFullBreadcrumbClear||(n.fromFilterToAnalyticsEvent(i,i.selected?"selected":"unselected"),n.queryController.executeQuery({closeModalBox:!1}))},t.label);r.$$(i.build()).addClass("coveo-choice-container");n.preferencePanelCheckboxInput[t.label]=i;n.preferenceContainer.appendChild(i.getElement())}),u.each(r.$$(this.preferenceContainer).findAll(".coveo-choice-container"),function(n){n.appendChild(r.$$("div",{className:"coveo-section coveo-section-edit-delete"}).el)}),r.$$(this.container).append(this.preferenceContainer),this.buildEditAdvancedFilter(),this.buildDeleteAdvancedFilter(),this.fromPreferencesToCheckboxInput())},t.prototype.buildDeleteAdvancedFilter=function(){var n=this;u.each(this.preferences,function(t){var i,u;t.custom&&(i=r.$$("span",{className:"coveo-delete"},o.SVGIcons.icons.delete).el,(new e.AccessibleButton).withElement(i).withLabel(f.l("Delete")).withSelectAction(function(){return n.confirmDelete(t,u)}).build(),c.SVGDom.addClassToSVGInContainer(i,"coveo-delete-svg"),u=n.getFilterElementByCaption(t.caption),r.$$(u).find(".coveo-section-edit-delete").appendChild(i))})},t.prototype.buildEditAdvancedFilter=function(){var n=this;u.each(this.preferences,function(t){var i,u;t.custom&&(i=r.$$("span",{className:"coveo-edit"},o.SVGIcons.icons.edit),(new e.AccessibleButton).withElement(i).withLabel(f.l("Edit")).withSelectAction(function(){return n.editElement(t,u)}).build(),c.SVGDom.addClassToSVGInContainer(i.el,"coveo-edit-svg"),u=n.getFilterElementByCaption(t.caption),r.$$(u).find(".coveo-section-edit-delete").appendChild(i.el))})},t.prototype.buildBreadcrumb=function(n){var i=this,t=r.$$("span",{className:"coveo-value"}),u=r.$$("span",{className:"coveo-caption"}),s,h;return u.text(n.caption),t.el.appendChild(u.el),s=r.$$("span",{className:"coveo-clear"},o.SVGIcons.icons.mainClear),t.el.appendChild(s.el),h=function(){n.selected=!1;i.fromFilterToAnalyticsEvent(n,"cleared from breadcrumb");i.fromPreferencesToCheckboxInput()},(new e.AccessibleButton).withElement(t).withLabel(f.l("RemoveFilterOn",n.caption)).withSelectAction(h).build(),t.el},t.prototype.confirmDelete=function(n,t){if(confirm(f.l("AreYouSureDeleteFilter",n.caption,n.expression))){var i=n.selected;this.deleteFilterPreference(n,t);i&&(this.fromFilterToAnalyticsEvent(n,"deleted"),this.queryController.executeQuery({closeModalBox:!1}))}},t.prototype.editElement=function(n,t){var i=this.preferences[n.caption].caption,r=this.preferences[n.caption].tab,u=this.preferences[n.caption].expression;this.deleteFilterPreference(n,t);this.openAdvancedFilterSectionOrSaveFilters();this.populateEditSection({tab:r,caption:i,expression:u})},t.prototype.populateEditSection=function(n){void 0===n&&(n={tab:[""],caption:"",expression:""});this.advancedFiltersTextInputCaption.setValue(n.caption);this.advancedFiltersTextInputExpression.setValue(n.expression);this.advancedFiltersTabSelect.setValue(n.tab)},t.prototype.deleteFilterPreference=function(n,t){this.preferencePanelLocalStorage.remove(n.caption);delete this.preferences[n.caption];r.$$(r.$$(t).closest(".coveo-choice-container")).detach()},t.prototype.openAdvancedFilterSectionOrSaveFilters=function(){r.$$(this.advancedFiltersBuilder).hasClass("coveo-active")?(r.$$(r.$$(this.advancedFilterFormValidate).find("input[type=submit]")).trigger("click"),this.hideAdvancedFilterBuilder()):(this.populateEditSection(),this.showAdvancedFilterBuilder())},t.prototype.validateAndSaveAdvancedFilter=function(n){n.preventDefault();this.hideAdvancedFilterBuilder();var t=this.advancedFiltersTextInputCaption.getValue(),i=this.advancedFiltersTextInputExpression.getValue(),r=this.advancedFiltersTabSelect.getValue();this.preferences[t]={caption:t,custom:!0,expression:i,tab:r,selected:!0};this.buildCheckboxesInput();this.save();this.queryStateModel.set(a.QueryStateModel.attributesEnum.t,this.getActiveTab());this.advancedFiltersTextInputCaption.reset();this.advancedFiltersTextInputExpression.reset();this.advancedFiltersTabSelect.reset();this.container.appendChild(this.advancedFiltersBuilder);this.fromFilterToAnalyticsEvent(this.preferences[t],"saved");this.queryController.executeQuery({closeModalBox:!1})},t.prototype.fromPreferencesToCheckboxInput=function(){var n=this;u.each(this.getActiveFilters(),function(t){n.preferencePanelCheckboxInput[t.caption].select()});u.each(this.getInactiveFilters(),function(t){n.preferencePanelCheckboxInput[t.caption].reset()});u.each(this.getDormantFilters(),function(t){n.preferencePanelCheckboxInput[t.caption].select()})},t.prototype.fromCheckboxInputToPreferences=function(){if(this.preferencePanelCheckboxInput){var n=u.map(u.filter(this.preferencePanelCheckboxInput,function(n){return n.isSelected()}),function(n){return n.getValue()});u.each(this.preferences,function(t){t.selected=u.contains(n,t.caption)?!0:!1})}},t.prototype.getDormantFilters=function(){var n=this,t=this.getActiveTab();return u.filter(this.preferences,function(i){return i.selected&&!n.filterIsInActiveTab(i,t)})},t.prototype.getActiveFilters=function(){var n=this,t=this.getActiveTab();return u.filter(this.preferences,function(i){return i.selected&&n.filterIsInActiveTab(i,t)})},t.prototype.getInactiveFilters=function(){var n=this,t=this.getActiveTab();return u.filter(this.preferences,function(i){return!i.selected||!n.filterIsInActiveTab(i,t)})},t.prototype.getActiveTab=function(){return this.queryStateModel.get(a.QueryStateModel.attributesEnum.t)},t.prototype.filterIsInActiveTab=function(n,t){return n.tab=u.compact(n.tab),u.contains(n.tab,t)||s.Utils.isEmptyArray(n.tab)},t.prototype.getFilterElementByCaption=function(n){return r.$$(this.preferenceContainer).find("input[value='"+n.replace(/'/g,"\\'")+"']").parentElement},t.prototype.fromResultsFilterOptionToResultsPreferenceInterface=function(){var n={};return u.each(this.options.filters,function(t,i){n[i]={expression:t.expression,tab:t.tab,selected:!!t.selected&&t.selected,custom:!1,caption:i}}),n},t.prototype.mergeLocalPreferencesWithStaticPreferences=function(){var n=this.fromResultsFilterOptionToResultsPreferenceInterface(),i=this.preferencePanelLocalStorage.load(),r=u.filter(i,function(t){var i=t.custom,r=u.find(n,function(n){return n.caption==t.caption});return i||void 0!=r}),t={};u.each(r,function(n){t[n.caption]={expression:n.expression,tab:n.tab,selected:n.selected,custom:n.custom,caption:n.caption}});this.preferences=s.Utils.extendDeep(n,t)},t.prototype.fromFilterToAnalyticsEvent=function(n,t){this.usageAnalytics.logSearchEvent(rt.analyticsActionCauseList.customfiltersChange,{customFilterName:n.caption,customFilterExpression:n.expression,customFilterType:t})},t.prototype.enlargeModalBox=function(){var n=r.$$(document.body).find(".coveo-modal-container");n&&r.$$(n).addClass("coveo-mod-big")},t.prototype.shrinkModalBox=function(){var n=r.$$(document.body).find(".coveo-modal-container");n&&r.$$(n).removeClass("coveo-mod-big")},t.prototype.showAdvancedFilterBuilder=function(){this.advancedFiltersBuilder&&(r.$$(this.advancedFiltersBuilder).addClass("coveo-active"),this.enlargeModalBox())},t.prototype.hideAdvancedFilterBuilder=function(){this.advancedFiltersBuilder&&(r.$$(this.advancedFiltersBuilder).removeClass("coveo-active"),this.shrinkModalBox())},t.ID="ResultsFiltersPreferences",t.doExport=function(){g.exportGlobally({ResultsFiltersPreferences:t})},t.options={includeInBreadcrumb:l.ComponentOptions.buildBooleanOption({defaultValue:!0}),showAdvancedFilters:l.ComponentOptions.buildBooleanOption({defaultValue:!0}),filters:l.ComponentOptions.buildJsonOption()},t}(h.Component);t.ResultsFiltersPreferences=w;ut.Initialization.registerAutoCreateComponent(w)},function(n,t,i){"use strict";var c=this&&this.__extends||function(){var n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])};return function(t,i){function r(){this.constructor=t}n(t,i);t.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});i(666);var l=i(0),a=i(17),f=i(11),v=i(29),y=i(3),e=i(5),p=i(18),u=i(13),s=i(6),w=i(15),b=i(24),r=i(1),k=i(117),d=i(10),g=i(7),o=i(8),nt=i(2),tt=i(0),h=function(n){function t(i,r,e){var s=n.call(this,i,t.ID,e)||this;return s.element=i,s.options=r,s.options=o.ComponentOptions.initComponentOptions(i,t,r),s.bind.onRootElement(a.InitializationEvents.afterInitialization,function(){return s.resolveInitialState()}),s.bind.onRootElement(f.QueryEvents.querySuccess,function(n){return s.handleQuerySuccess(n)}),s.bind.onRootElement(f.QueryEvents.queryError,function(){return s.handleQueryError()}),s.bind.onRootElement(f.QueryEvents.noResults,function(){return s.handleNoResults()}),s.bind.onQueryState(p.MODEL_EVENTS.CHANGE_ONE,u.QUERY_STATE_ATTRIBUTES.NUMBER_OF_RESULTS,function(n){return s.handleQueryStateModelChanged(n)}),s.addAlwaysActiveListeners(),s.initComponent(),s}return c(t,n),t.prototype.setResultsPerPage=function(n,t){void 0===t&&(t=d.analyticsActionCauseList.pagerResize);e.Assert.exists(n);e.Assert.check(this.isValidChoice(n),"The specified number of results is not available in the options.");this.updateResultsPerPage(n);this.updateQueryStateModelResultsPerPage();this.logAnalyticsEvent(t);this.executeQuery()},Object.defineProperty(t.prototype,"resultsPerPage",{get:function(){return this.currentResultsPerPage},enumerable:!0,configurable:!0}),t.prototype.updateResultsPerPage=function(n){this.queryController.options.resultsPerPage=n;this.searchInterface.resultsPerPage=n;this.currentResultsPerPage=n},t.prototype.updateQueryStateModelResultsPerPage=function(){this.queryStateModel.set(u.QueryStateModel.attributesEnum.numberOfResults,this.currentResultsPerPage)},t.prototype.logAnalyticsEvent=function(n){this.usageAnalytics.logCustomEvent(n,{currentResultsPerPage:this.currentResultsPerPage},this.element)},t.prototype.executeQuery=function(){this.queryController.executeQuery({ignoreWarningSearchEvent:!0,keepLastSearchUid:!0,origin:this})},t.prototype.handleQueryStateModelChanged=function(n){var t=n.value;this.isValidChoice(t)?this.updateResultsPerPage(t):(this.logInvalidConfiguredChoiceWarning(t),this.resolveInitialState())},t.prototype.addAlwaysActiveListeners=function(){var n=this;this.searchInterface.element.addEventListener(v.ResultListEvents.newResultsDisplayed,function(){return k.ResultListUtils.hideIfInfiniteScrollEnabled(n)})},t.prototype.resolveInitialState=function(){this.updateResultsPerPage(this.getInitialChoice());this.updateQueryStateModelResultsPerPage()},t.prototype.getInitialChoice=function(){var i=this.options.choicesDisplayed[0],n=this.options.initialChoice,t=this.queryStateModel.get(u.QueryStateModel.attributesEnum.numberOfResults);if(t!==u.QueryStateModel.defaultAttributes.numberOfResults&&this.isValidChoice(t))return t;if(void 0!==n){if(this.isValidChoice(n))return n;this.logInvalidConfiguredChoiceWarning(n)}return i},t.prototype.isValidChoice=function(n){return-1!==this.options.choicesDisplayed.indexOf(n)},t.prototype.logInvalidConfiguredChoiceWarning=function(n){var t=this.options.choicesDisplayed;this.logger.warn("The choice "+n+" is not within the choices displayed. Consider setting a value that is valid: "+t+". The first choice will be selected instead.")},t.prototype.initComponent=function(){this.span=r.$$("span",{id:tt.uniqueId("coveo-results-per-page-text-"),className:"coveo-results-per-page-text"},s.l("ResultsPerPage")).el;this.element.appendChild(this.span);this.list=r.$$("ul",{className:"coveo-results-per-page-list","aria-labelledby":this.span.id}).el;this.element.appendChild(this.list)},t.prototype.render=function(){var u=this;r.$$(this.span).removeClass("coveo-results-per-page-no-results");for(var t=this.options.choicesDisplayed,i=this,n=0;n<t.length;n++)!function(){var f=r.$$("li",{className:"coveo-results-per-page-list-item"}).el,h=t[n],c=h===i.currentResultsPerPage,e,o;c&&r.$$(f).addClass("coveo-active");e=function(n){n.stopPropagation();u.handleClickPage(h)};o=r.$$("span",{className:"coveo-results-per-page-list-item-text",tabindex:0,ariaPressed:c.toString()},t[n].toString()).el;f.appendChild(o);f.addEventListener("click",function(n){return e(n)});(new w.AccessibleButton).withElement(o).withLabel(s.l("DisplayResultsPerPage",t[n].toString())).withClickAction(e).withEnterKeyboardAction(e).build();i.list.appendChild(f)}()},t.prototype.handleQueryError=function(){this.reset()},t.prototype.handleNoResults=function(){this.reset()},t.prototype.handleQuerySuccess=function(n){if(this.searchInterface.isResultsPerPageModifiedByPipeline){this.logger.info("Results per page was modified by backend code (query pipeline). ResultsPerPage component will be hidden",this);this.reset();var t=this.getInitialChoice();return void this.updateResultsPerPage(t)}0!=n.results.results.length&&(this.reset(),this.render())},t.prototype.handleClickPage=function(n){e.Assert.exists(n);this.setResultsPerPage(n)},t.prototype.reset=function(){r.$$(this.span).addClass("coveo-results-per-page-no-results");r.$$(this.list).empty()},t.ID="ResultsPerPage",t.doExport=function(){y.exportGlobally({ResultsPerPage:t})},t.options={choicesDisplayed:o.ComponentOptions.buildCustomListOption(function(n){var t=l.map(n,function(n){return parseInt(n,10)});return 0==t.length?null:t},{defaultFunction:function(){return b.DeviceUtils.isMobileDevice()?[10,25,50]:[10,25,50,100]}}),initialChoice:o.ComponentOptions.buildNumberOption()},t}(g.Component);t.ResultsPerPage=h;nt.Initialization.registerAutoCreateComponent(h)},function(n,t,i){"use strict";var y=this&&this.__extends||function(){var n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])};return function(t,i){function r(){this.constructor=t}n(t,i);t.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});i(667);var u=i(0),e=i(100),p=i(3),o=i(5),w=i(31),s=i(28),r=i(6),h=i(1),b=i(208),c=i(10),l=i(7),f=i(8),k=i(2),d=i(65),a=i(140),g=i(98),v=function(n){function t(i,r,u){var s=n.call(this,i,t.ID,u)||this;return s.element=i,s.options=r,s.bindings=u,s.preferencePanelCheckboxInputs={},s.preferencePanelRadioInputs={},s.options=f.ComponentOptions.initComponentOptions(i,t,r),s.preferencesPanel=h.$$(s.element).closest(l.Component.computeCssClassNameForType("PreferencesPanel")),s.preferencePanelLocalStorage=new b.StorageUtils(t.ID),o.Assert.exists(s.componentOptionsModel),o.Assert.exists(s.preferencesPanel),s.preferences=s.preferencePanelLocalStorage.load()||{},s.adjustPreferencesToComponentConfig(),f.ComponentOptions.initComponentOptions(s.element,t,s.options),s.updateComponentOptionsModel(),s.bind.on(s.preferencesPanel,e.PreferencesPanelEvents.savePreferences,function(){return s.save()}),s.bind.on(s.preferencesPanel,e.PreferencesPanelEvents.exitPreferencesWithoutSave,function(){return s.exitWithoutSave()}),s.buildCheckboxesInput(),s.buildRadiosInput(),s}return y(t,n),t.prototype.save=function(){this.fromInputToPreferences();this.logger.info("Saving preferences",this.preferences);this.preferencePanelLocalStorage.save(this.preferences);this.updateComponentOptionsModel()},t.prototype.exitWithoutSave=function(){this.fromPreferencesToCheckboxInput()},t.prototype.updateComponentOptionsModel=function(){var n=u.pick(this.preferences,"openInOutlook","alwaysOpenInNewWindow"),t=u.pick(this.preferences,"enableQuerySyntax");this.componentOptionsModel.set(s.ComponentOptionsModel.attributesEnum.resultLink,n);this.componentOptionsModel.set(s.ComponentOptionsModel.attributesEnum.searchBox,t)},t.prototype.buildRadiosInput=function(){var n=this;if(this.options.enableQuerySyntax){var t=function(t){return new g.RadioButton(function(i){n.fromPreferenceChangeEventToUsageAnalyticsLog(i.isSelected()?"selected":"unselected",t);n.save();n.queryController.executeQuery({closeModalBox:!1})},t,"coveo-results-preferences-query-syntax")},i=u.map(["On","Off","Automatic"],function(n){return r.l(n)}),f=u.map(i,function(i){var r=t(i);return n.preferencePanelRadioInputs[i]=r,r}),e=new a.FormGroup(f,r.l("EnableQuerySyntax"));h.$$(this.element).append(e.build());this.fromPreferencesToRadioInput()}},t.prototype.buildCheckboxesInput=function(){var n=this,i=function(t){var i=new d.Checkbox(function(i){n.fromPreferenceChangeEventToUsageAnalyticsLog(i.isSelected()?"selected":"unselected",t);n.save();n.queryController.executeQuery({closeModalBox:!1})},t);return n.preferencePanelCheckboxInputs[t]=i,i},t=[];this.options.enableOpenInOutlook&&t.push(i(r.l("OpenInOutlookWhenPossible")));this.options.enableOpenInNewWindow&&t.push(i(r.l("AlwaysOpenInNewWindow")));this.element.appendChild(new a.FormGroup(t,r.l("ResultLinks")).build());this.fromPreferencesToCheckboxInput()},t.prototype.fromInputToPreferences=function(){var n=this;this.preferences=this.preferences||{openInOutlook:!1,alwaysOpenInNewWindow:!1,enableQuerySyntax:void 0};u.each(this.preferencePanelCheckboxInputs,function(t,i){i==r.l("OpenInOutlookWhenPossible")&&(n.isSelected(r.l("OpenInOutlookWhenPossible"),i,t)?n.preferences.openInOutlook=!0:null!=n.preferences.openInOutlook&&(n.preferences.openInOutlook=!1));i==r.l("AlwaysOpenInNewWindow")&&(n.isSelected(r.l("AlwaysOpenInNewWindow"),i,t)?n.preferences.alwaysOpenInNewWindow=!0:null!=n.preferences.alwaysOpenInNewWindow&&(n.preferences.alwaysOpenInNewWindow=!1))});u.each(this.preferencePanelRadioInputs,function(t,i){n.isSelected(r.l("On"),i,t)&&(n.preferences.enableQuerySyntax=!0);n.isSelected(r.l("Off"),i,t)&&(n.preferences.enableQuerySyntax=!1);n.isSelected(r.l("Automatic"),i,t)&&delete n.preferences.enableQuerySyntax})},t.prototype.fromPreferencesToCheckboxInput=function(){this.preferences.openInOutlook&&this.preferencePanelCheckboxInputs[r.l("OpenInOutlookWhenPossible")].select(!1);this.preferences.alwaysOpenInNewWindow&&this.preferencePanelCheckboxInputs[r.l("AlwaysOpenInNewWindow")].select(!1)},t.prototype.fromPreferencesToRadioInput=function(){!0===this.preferences.enableQuerySyntax?this.preferencePanelRadioInputs[r.l("On")].select(!1):!1===this.preferences.enableQuerySyntax?this.preferencePanelRadioInputs[r.l("Off")].select(!1):this.preferencePanelRadioInputs[r.l("Automatic")].select(!1)},t.prototype.fromPreferenceChangeEventToUsageAnalyticsLog=function(n,t){this.usageAnalytics.logCustomEvent(c.analyticsActionCauseList.preferencesChange,{preferenceName:t,preferenceType:n},this.element);this.usageAnalytics.logSearchEvent(c.analyticsActionCauseList.preferencesChange,{preferenceName:t,preferenceType:n})},t.prototype.adjustPreferencesToComponentConfig=function(){var t=this,n=!1;this.options.enableOpenInNewWindow||(delete this.preferences.alwaysOpenInNewWindow,n=!0);this.options.enableOpenInOutlook||(delete this.preferences.openInOutlook,n=!0);this.options.enableQuerySyntax||(delete this.preferences.enableQuerySyntax,n=!0);n&&w.Defer.defer(function(){t.save()})},t.prototype.isSelected=function(n,t,i){return n==t&&i.isSelected()},t.ID="ResultsPreferences",t.doExport=function(){p.exportGlobally({ResultsPreferences:t})},t.options={enableOpenInOutlook:f.ComponentOptions.buildBooleanOption({defaultValue:!1}),enableOpenInNewWindow:f.ComponentOptions.buildBooleanOption({defaultValue:!0}),enableQuerySyntax:f.ComponentOptions.buildBooleanOption({defaultValue:!1})},t}(l.Component);t.ResultsPreferences=v;k.Initialization.registerAutoCreateComponent(v)},function(n,t,i){"use strict";var v=this&&this.__extends||function(){var n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])};return function(t,i){function r(){this.constructor=t}n(t,i);t.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});i(668);var u=i(0),y=i(3),l=i(5),p=i(13),s=i(6),r=i(1),f=i(25),w=i(22),h=i(16),c=i(12),e=i(4),b=i(10),k=i(7),o=i(8),d=i(2),a=function(n){function t(i,f,s,h){var c=n.call(this,i,t.ID,s)||this,a;return(c.element=i,c.options=f,c.result=h,c.options=o.ComponentOptions.initComponentOptions(i,t,f),c.result=h||c.resolveResult(),l.Assert.exists(c.componentOptionsModel),l.Assert.exists(c.result),!c.options.field)?(c.logger.error("You must specify a field to the ResultTagging component"),c):(a=e.Utils.getFieldValue(c.result,c.options.field),c.tags=a&&e.Utils.isNonEmptyString(a)?a.split(";"):a&&e.Utils.isNonEmptyArray(a)?a:[],c.tags=u.map(c.tags,function(n){return n.trim()}),c.tagZone=r.$$("div",{className:"coveo-result-tagging-tag-zone"}).el,i.appendChild(c.tagZone),i.appendChild(c.buildTagIcon()),c.autoCompleteZone=r.$$("div",{className:"coveo-result-tagging-auto-complete-zone"}).el,i.appendChild(c.autoCompleteZone),c.autoCompleteZone.appendChild(c.buildTextBox()),c.autoCompleteZone.appendChild(c.buildAddIcon()),c.autoCompleteZone.appendChild(c.buildClearIcon()),c.buildExistingTags(),c)}return v(t,n),t.prototype.buildExistingTags=function(){var n=this;this.tags&&u.each(this.tags,function(t){n.tagZone.appendChild(n.buildTagValue(t))})},t.prototype.buildTagIcon=function(){var f=this,n=r.$$("div",{className:"coveo-result-tagging-add-tag"}),i=r.$$("span",{className:"coveo-result-tagging-add-tag-text"}),t;return i.text(s.l("EnterTag")),t=r.$$("span",{className:"coveo-result-tagging-add-tag-icon"}),t.on("click",function(){u.defer(function(){f.focusOnTextBox()},20)}),n.el.appendChild(t.el),n.append(i.el),n.setAttribute("title",s.l("EnterTag")),n.el},t.prototype.focusOnTextBox=function(){this.textBox.focus()},t.prototype.buildTagValue=function(n){var u=this,t=r.$$("div",{className:"coveo-result-tagging-coveo-tag"}),i;return t.el.appendChild(this.buildShortenedTagWithTitle(n)),i=r.$$("span",{className:"coveo-result-tagging-delete-icon"},c.SVGIcons.icons.delete),h.SVGDom.addClassToSVGInContainer(i.el,"coveo-result-tagging-delete-icon-svg"),t.el.appendChild(i.el),i.on("click",function(){u.doRemoveTag(t.el,n.toLowerCase())}),t.el},t.prototype.buildShortenedTagWithTitle=function(n){var i=w.StringUtils.removeMiddle(n,16,"..."),t=r.$$("a",{title:n,href:"javascript:void(0);"});return t.text(i),this.bindFacetEventOnValue(t.el,n),t.el},t.prototype.buildTextBox=function(){var n=this;return this.textBox=r.$$("input",{type:"text",className:"coveo-add-tag-textbox",placeholder:s.l("EnterTag")}).el,this.autoCompletePopup=r.$$("div",{className:t.autoCompleteClass}).el,this.autoCompleteZone.appendChild(this.autoCompletePopup),this.manageAutocompleteAutoHide(),r.$$(this.textBox).on("keyup",function(t){t.keyCode==f.KEYBOARD.UP_ARROW||t.keyCode==f.KEYBOARD.DOWN_ARROW||t.keyCode==f.KEYBOARD.ENTER?n.manageUpDownEnter(t.keyCode):f.KeyboardUtils.isArrowKeyPushed(t.keyCode)||n.populateSuggestions();r.$$(n.element).removeClass("coveo-error")}),r.$$(this.textBox).on("click",function(){n.populateSuggestions()}),this.textBox},t.prototype.buildAddIcon=function(){var i=this,n=r.$$("div",{className:"coveo-result-tagging-add-tag-tick-icon"},c.SVGIcons.icons.taggingOk),t;return h.SVGDom.addClassToSVGInContainer(n.el,"coveo-result-tagging-add-tag-tick-icon-svg"),t=r.$$("span"),t.on("click",function(){i.doAddTag()}),n.el.appendChild(t.el),n.el},t.prototype.buildClearIcon=function(){var i=this,n=r.$$("div",{className:"coveo-result-tagging-clear-icon"},c.SVGIcons.icons.clear),t;return h.SVGDom.addClassToSVGInContainer(n.el,"coveo-result-tagging-clear-icon-svg"),t=r.$$("span"),t.on("click",function(){i.textBox.value=""}),n.el.appendChild(t.el),n.el},t.prototype.bindFacetEventOnValue=function(n,t){var i=this,e=p.QueryStateModel.getFacetId(this.options.field),f=this.queryStateModel.get(e),o=this.componentStateModel.get(e),s=u.filter(o,function(n){return!n.disabled}).length>0;null!=f&&s&&(r.$$(n).on("click",function(){u.contains(f,t)?i.queryStateModel.set(e,u.without(f,t)):i.queryStateModel.set(e,u.union(f,[t]));i.queryController.deferExecuteQuery({beforeExecuteQuery:function(){return i.usageAnalytics.logSearchEvent(b.analyticsActionCauseList.documentTag,{facetId:i.options.field,facetField:i.options.field,facetValue:t})}})}),u.contains(f,t)&&r.$$(n).addClass("coveo-selected"),r.$$(n).addClass("coveo-clickable"))},t.prototype.clearPopup=function(){r.$$(this.autoCompletePopup).hide();r.$$(this.autoCompletePopup).empty()},t.prototype.showPopup=function(){r.$$(this.autoCompletePopup).show()},t.prototype.populateSuggestions=function(){var n=this,t=this.queryController.getEndpoint(),i=this.textBox.value,r={field:this.options.field,ignoreAccents:!0,sortCriteria:"occurences",maximumNumberOfValues:this.options.suggestBoxSize,queryOverride:"@uri",pattern:this.buildRegEx(i),patternType:"RegularExpression"};t.listFieldValues(r).then(function(t){n.clearPopup();u.each(t,function(t){n.autoCompletePopup.appendChild(n.buildSelectableValue(t.lookupValue))});n.showPopup();n.autoCompletePopup.style.width=n.textBox.offsetWidth+" px"})},t.prototype.manageAutocompleteAutoHide=function(){var i,n=this;r.$$(this.textBox).on("mouseover",function(){clearTimeout(i)});r.$$(this.autoCompletePopup).on("mouseout",function(u){r.$$(u.target).hasClass(t.autoCompleteClass)&&(i=setTimeout(function(){n.clearPopup()},n.options.autoCompleteTimer))});r.$$(this.autoCompletePopup).on("mouseenter",function(){clearTimeout(i)});r.$$(this.element).on("mouseenter",function(){n.clearPopup();r.$$(n.element).addClass("coveo-opened")});r.$$(r.$$(this.element).closest(".CoveoResult")).on("mouseleave",function(){n.clearPopup();""==n.textBox.value&&r.$$(n.element).removeClass("coveo-opened")});r.$$(r.$$(this.element).closest(".CoveoResult")).on("focusout",function(t){""!=n.textBox.value&&r.$$(t.target).closest(".CoveoResult")!=r.$$(n.element).closest(".CoveoResult")&&r.$$(n.element).addClass("coveo-error")});r.$$(r.$$(this.element).closest(".CoveoResult")).on("focusin",function(){r.$$(n.element).removeClass("coveo-error")})},t.prototype.buildRegEx=function(n){var t=this;return"(?=.*"+n+")"+u.map(this.tags,function(n){return t.buildTermToExclude(n)}).join("")+".*"},t.prototype.buildTermToExclude=function(n){return"(?!^"+n+"$)"},t.prototype.manageUpDownEnter=function(n){var i=r.$$(this.element).findAll(".coveo-selectable"),t,u;if(n==f.KEYBOARD.ENTER)return void this.doAddTag();i.length>0&&(t=this.computeNextIndex(n,i),t=Math.max(0,t),t=Math.min(i.length-1,t),u=r.$$(i[t]),u.addClass("coveo-selected"),this.textBox.value=u.text())},t.prototype.computeNextIndex=function(n,t){var i=0;return u.each(t,function(t,u){r.$$(t).hasClass("coveo-selected")&&(n==f.KEYBOARD.UP_ARROW?i=u-1:n==f.KEYBOARD.DOWN_ARROW&&(i=u+1),r.$$(t).removeClass("coveo-selected"))}),i},t.prototype.buildSelectableValue=function(n){var i=this,t=r.$$("div",{className:"coveo-selectable"});return t.el.appendChild(this.buildShortenedTagWithTitle(n)),t.on("click",function(){i.doAddTagWithValue(n)}),t.el},t.prototype.doRemoveTag=function(n,t){var i=this,f={fieldName:this.options.field,fieldValue:t,doAdd:!1,uniqueId:this.result.uniqueId};this.queryController.getEndpoint().tagDocument(f).then(function(){i.tags.splice(u.indexOf(i.tags,t),1);r.$$(n).detach()})},t.prototype.doAddTagWithValue=function(n){var t=this;u.each(n.split(","),function(n){t.doAddSingleTagValue(n)})},t.prototype.doAddSingleTagValue=function(n){var t=this,i;if(this.clearPopup(),u.indexOf(this.tags,n)>-1)return void r.$$(this.element).addClass("coveo-error");this.tags.push(n);i={fieldName:this.options.field,fieldValue:n,doAdd:!0,uniqueId:this.result.uniqueId};this.queryController.getEndpoint().tagDocument(i).then(function(){t.tagZone.appendChild(t.buildTagValue(n));t.textBox.value="";r.$$(t.element).removeClass("coveo-error")}).catch(function(){t.tags=u.without(t.tags,u.findWhere(t.tags,n))})},t.prototype.doAddTag=function(){var n=e.Utils.trim(this.textBox.value.toLowerCase());this.doAddTagWithValue(n)},t.ID="ResultTagging",t.autoCompleteClass="coveo-result-tagging-auto-complete",t.doExport=function(){y.exportGlobally({ResultTagging:t})},t.options={field:o.ComponentOptions.buildFieldOption({match:function(n){return"Tag"==n.type},required:!0}),suggestBoxSize:o.ComponentOptions.buildNumberOption({defaultValue:5,min:0}),autoCompleteTimer:o.ComponentOptions.buildNumberOption({defaultValue:2e3,min:0})},t.AUTO_COMPLETE_CLASS="coveo-result-tagging-auto-complete",t}(k.Component);t.ResultTagging=a;d.Initialization.registerAutoCreateComponent(a)},function(n,t,i){"use strict";var w=this&&this.__extends||function(){var n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])};return function(t,i){function r(){this.constructor=t}n(t,i);t.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var s=i(0),u=i(86),b=i(3),k=i(5),e=i(228),h=i(6),r=i(1),c=i(25),f=i(21),l=i(16),a=i(12),v=i(4),y=i(10),d=i(7),o=i(8),g=i(2),p=function(n){function t(i,f,e,s){var h=n.call(this,i,t.ID,e)||this,l,a;return h.element=i,h.options=f,h.bindings=e,h.result=s,h.options=o.ComponentOptions.initComponentOptions(i,t,f),k.Assert.exists(h.result),h.container=r.$$(h.element),h.text=r.$$("span"),l=h.buildIcon(),a=h.buildLoadingIcon(),h.container.append(l),h.container.append(a),h.container.append(h.text.el),h.container.on("click",function(){return h.toggleFollow()}),h.container.setAttribute("tabindex","0"),h.bind.on(h.container,"keyup",c.KeyboardUtils.keypressAction(c.KEYBOARD.ENTER,function(){return h.toggleFollow()})),h.bind.onRootElement(u.SearchAlertsEvents.searchAlertsDeleted,function(n){return h.handleSubscriptionDeleted(n)}),h.bind.onRootElement(u.SearchAlertsEvents.searchAlertsCreated,function(n){return h.handleSubscriptionCreated(n)}),h.container.addClass("coveo-follow-item-loading"),h.updateIsFollowed(),h}return w(t,n),t.prototype.setFollowed=function(n){this.container.removeClass("coveo-follow-item-loading");this.subscription=n;this.container.addClass("coveo-follow-item-followed");this.text.text(h.l("SearchAlerts_unFollowing"))},t.prototype.setNotFollowed=function(){this.container.removeClass("coveo-follow-item-loading");this.subscription=t.buildFollowRequest(this.getId(),this.result.title,this.options);this.container.removeClass("coveo-follow-item-followed");this.text.text(h.l("SearchAlerts_follow"))},t.prototype.toggleFollow=function(){var n=this;this.container.hasClass("coveo-follow-item-loading")||(this.container.removeClass("coveo-follow-item-followed"),this.container.addClass("coveo-follow-item-loading"),this.subscription.id?(this.logAnalyticsEvent(y.analyticsActionCauseList.searchAlertsUnfollowDocument),this.queryController.getEndpoint().deleteSubscription(this.subscription).then(function(){var t={subscription:n.subscription,dom:n.element};r.$$(n.root).trigger(u.SearchAlertsEvents.searchAlertsDeleted,t)}).catch(function(){n.container.removeClass("coveo-follow-item-loading");var t={dom:n.element};r.$$(n.root).trigger(u.SearchAlertsEvents.searchAlertsFail,t)})):(this.logAnalyticsEvent(y.analyticsActionCauseList.searchAlertsFollowDocument),this.queryController.getEndpoint().follow(this.subscription).then(function(t){var i={subscription:t,dom:n.element};r.$$(n.root).trigger(u.SearchAlertsEvents.searchAlertsCreated,i)}).catch(function(){n.container.removeClass("coveo-follow-item-loading");var t={dom:n.element};r.$$(n.root).trigger(u.SearchAlertsEvents.searchAlertsFail,t)})))},t.prototype.getText=function(){return this.text.text()},t.prototype.updateIsFollowed=function(){var n=this;this.queryController.getEndpoint().listSubscriptions().then(function(t){if(s.isArray(t)){var i=s.find(t,function(t){var i=t.typeConfig;return i&&null!=i.id&&i.id==n.getId()});null!=i?n.setFollowed(i):n.setNotFollowed()}else n.remove()}).catch(function(){n.remove()})},t.prototype.buildIcon=function(){var n=r.$$("span",{className:"coveo-follow-item-icon"},a.SVGIcons.icons.dropdownFollowQuery);return l.SVGDom.addClassToSVGInContainer(n.el,"coveo-follow-item-icon-svg"),n.el},t.prototype.buildLoadingIcon=function(){var n=r.$$("span",{className:"coveo-follow-item-icon-loading"},a.SVGIcons.icons.loading);return l.SVGDom.addClassToSVGInContainer(n.el,"coveo-follow-item-icon-loading-svg"),n.el},t.prototype.handleSubscriptionDeleted=function(n){n.subscription&&n.subscription.type==e.SUBSCRIPTION_TYPE.followDocument&&n.subscription.typeConfig.id==this.getId()&&this.setNotFollowed()},t.prototype.handleSubscriptionCreated=function(n){n.subscription&&n.subscription.type==e.SUBSCRIPTION_TYPE.followDocument&&n.subscription.typeConfig.id==this.getId()&&this.setFollowed(n.subscription)},t.prototype.remove=function(){this.element.parentElement&&this.element.parentElement.removeChild(this.element)},t.prototype.getId=function(){return v.Utils.getFieldValue(this.result,"sysurihash")||v.Utils.getFieldValue(this.result,"urihash")},t.buildFollowRequest=function(n,t,i){var r={id:n,title:t};return i.modifiedDateField&&(r.modifiedDateField=i.modifiedDateField),i.watchedFields&&(r.watchedFields=i.watchedFields),{type:e.SUBSCRIPTION_TYPE.followDocument,typeConfig:r,name:t}},t.prototype.logAnalyticsEvent=function(n){this.usageAnalytics.logCustomEvent(n,{author:f.QueryUtils.getAuthor(this.result),documentLanguage:f.QueryUtils.getLanguage(this.result),documentSource:f.QueryUtils.getSource(this.result),documentTitle:this.result.title,contentIDValue:f.QueryUtils.getPermanentId(this.result).fieldValue,contentIDKey:f.QueryUtils.getPermanentId(this.result).fieldUsed},this.element)},t.ID="FollowItem",t.doExport=function(){b.exportGlobally({FollowItem:t})},t.options={watchedFields:o.ComponentOptions.buildFieldsOption(),modifiedDateField:o.ComponentOptions.buildStringOption()},t}(d.Component);t.FollowItem=p;g.Initialization.registerAutoCreateComponent(p)},function(n,t,i){"use strict";var y=this&&this.__extends||function(){var n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])};return function(t,i){function r(){this.constructor=t}n(t,i);t.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),p=this&&this.__awaiter||function(n,t,i,r){return new(i||(i=Promise))(function(u,f){function o(n){try{e(r.next(n))}catch(n){f(n)}}function s(n){try{e(r.throw(n))}catch(n){f(n)}}function e(n){n.done?u(n.value):new i(function(t){t(n.value)}).then(o,s)}e((r=r.apply(n,t||[])).next())})},w=this&&this.__generator||function(n,t){function f(n){return function(t){return s([n,t])}}function s(f){if(e)throw new TypeError("Generator is already executing.");for(;r;)try{if(e=1,u&&(i=u[2&f[0]?"return":f[0]?"throw":"next"])&&!(i=i.call(u,f[1])).done)return i;switch(u=0,i&&(f=[0,i.value]),f[0]){case 0:case 1:i=f;break;case 4:return r.label++,{value:f[1],done:!1};case 5:r.label++;u=f[1];f=[0];continue;case 7:f=r.ops.pop();r.trys.pop();continue;default:if(i=r.trys,!(i=i.length>0&&i[i.length-1])&&(6===f[0]||2===f[0])){r=0;continue}if(3===f[0]&&(!i||f[1]>i[0]&&f[1]<i[3])){r.label=f[1];break}if(6===f[0]&&r.label<i[1]){r.label=i[1];i=f;break}if(i&&r.label<i[2]){r.label=i[2];r.ops.push(f);break}i[2]&&r.ops.pop();r.trys.pop();continue}f=t.call(n,r)}catch(n){f=[6,n];u=0}finally{e=i=0}if(5&f[0])throw f[1];return{value:f[0]?f[1]:void 0,done:!0}}var e,u,i,o,r={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:f(0),"throw":f(1),"return":f(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o};Object.defineProperty(t,"__esModule",{value:!0});var f=i(0),b=i(11),h=i(86),c=i(55),k=i(26),d=i(3),g=i(5),e=i(228),u=i(6),r=i(1),l=i(12),o=i(10),nt=i(7),s=i(8),tt=i(2),it=i(30),rt=i(63),ut=i(19),a=i(669),v=function(n){function t(i,r,f,e){var o,h;return void 0===e&&(e=k.ModalBox),o=n.call(this,i,t.ID,f)||this,o.element=i,o.options=r,o.ModalBox=e,o.options=s.ComponentOptions.initComponentOptions(i,t,r),o.options.enableMessage&&(o.message=new a.SearchAlertsMessage(i,{closeDelay:o.options.messageCloseDelay},o.getBindings())),o.queryController.getEndpoint().options.isGuestUser?o.logger.warn("Logged in as guest user, search alerts are therefore not available."):o.bind.onRootElement(c.SettingsEvents.settingsPopulateMenu,function(n){o.options.enableManagePanel&&n.menuData.push({text:u.l("SearchAlerts_Panel"),className:"coveo-subscriptions-panel",onOpen:function(){return o.openPanel()},onClose:function(){return o.close()},svgIcon:l.SVGIcons.icons.dropdownFollowQuery,svgIconClassName:"coveo-subscriptions-panel-svg"})}),h=!1,o.bind.onRootElement(b.QueryEvents.querySuccess,function(){h||(h=!0,o.queryController.getEndpoint().listSubscriptions().then(function(){o.bind.onRootElement(c.SettingsEvents.settingsPopulateMenu,function(n){o.options.enableFollowQuery&&n.menuData.push({text:u.l("SearchAlerts_followQuery"),className:"coveo-follow-query",tooltip:u.l("FollowQueryDescription"),onOpen:function(){return o.followQuery()},onClose:function(){},svgIcon:l.SVGIcons.icons.dropdownFollowQuery,svgIconClassName:"coveo-follow-query-svg"})})}).catch(function(n){if(403!=n.status)throw n;}))}),o}return y(t,n),t.prototype.followQuery=function(){var n=this,i=this.queryController.createQueryBuilder({}),t=this.buildFollowQueryRequest(i.build(),this.options);this.usageAnalytics.logCustomEvent(o.analyticsActionCauseList.searchAlertsFollowQuery,{subscription:t.name},this.element);this.queryController.getEndpoint().follow(t).then(function(t){if(t){var i={subscription:t,dom:n.findQueryBoxDom()};r.$$(n.root).trigger(h.SearchAlertsEvents.searchAlertsCreated,i)}else n.triggerSearchAlertsFail()}).catch(function(){n.triggerSearchAlertsFail()})},t.prototype.openPanel=function(){return p(this,void 0,void 0,function(){var e,h,n,i,o,t,c,l,a,v,y,p,s,b,k,d=this;return w(this,function(w){switch(w.label){case 0:e=r.$$("div");h=r.$$("div",{className:"coveo-subscriptions-panel-title"},u.l("SearchAlerts_Panel"));e.append(h.el);n=r.$$("div");i=r.$$("table",{className:"coveo-subscriptions-panel-content",cellspacing:0});n.append(i.el);o=r.$$("thead");i.append(o.el);t=r.$$("tr");o.append(t.el);c=r.$$("th",{className:"coveo-subscriptions-panel-content-type"},u.l("SearchAlerts_Type"));l=r.$$("th",null,u.l("SearchAlerts_Content"));a=r.$$("th",null,u.l("SearchAlerts_Frequency"));v=r.$$("th",{className:"coveo-subscriptions-panel-content-actions"},u.l("SearchAlerts_Actions"));t.append(c.el);t.append(l.el);t.append(a.el);t.append(v.el);y=r.$$("tbody",{className:"coveo-subscriptions-panel-spacer"},r.$$("tr",null,r.$$("td",{colsspan:3})));i.append(y.el);p=r.$$("tbody",{className:"coveo-subscriptions-panel-subscriptions"},r.$$("tr",{className:"coveo-subscriptions-panel-no-subscriptions"},r.$$("td",{colspan:3},u.l("SearchAlerts_PanelNoSearchAlerts"))));i.append(p.el);s="big";w.label=1;case 1:return w.trys.push([1,3,,4]),[4,this.queryController.getEndpoint().listSubscriptions()];case 2:return b=w.sent(),f.each(b,function(t){return d.addSearchAlert(t,n)}),[3,4];case 3:return k=w.sent(),this.logger.error("Error retrieving subscriptions",k),s="small",n.empty(),n.append(this.getFailureMessage().el),[3,4];case 4:return this.modal=this.ModalBox.open(n.el,{title:e.el.outerHTML,className:"coveo-subscriptions-panel",sizeMod:s,body:this.searchInterface.options.modalContainer}),[2]}})})},t.prototype.getFailureMessage=function(){return r.$$("div",{className:"coveo-subscriptions-panel-fail"},u.l("SearchAlerts_Fail"))},t.prototype.handleSearchAlertsFail=function(){if(null!=this.modal){var n=r.$$(this.modal.wrapper).find(".coveo-modal-body");r.$$(n).empty();r.$$(n).append(this.getFailureMessage().el)}},t.prototype.close=function(){this.modal&&(this.modal.close(),this.modal=null)},t.prototype.addSearchAlert=function(n,t){var c,i=this,y=[{value:"monthly",label:u.l("Monthly")},{value:"daily",label:u.l("Daily")},{value:"monday",label:u.l("Monday")},{value:"tuesday",label:u.l("Tuesday")},{value:"wednesday",label:u.l("Wednesday")},{value:"thursday",label:u.l("Thursday")},{value:"friday",label:u.l("Friday")},{value:"saturday",label:u.l("Saturday")},{value:"sunday",label:u.l("Sunday")}],a,l,v,w,b;n.name?"<empty>"==n.name?c="&lt;empty&gt;":(a=r.$$("div").el,a.innerHTML=n.name,c=r.$$(a).text()):n.type==e.SUBSCRIPTION_TYPE.followQuery?(l=n.typeConfig,c=f.escape(l.query.q)||u.l("EmptyQuery")):(l=n.typeConfig,c=f.escape(l.title||l.id));var s=r.$$("tr",{className:"coveo-subscriptions-panel-subscription"}),k=f.pluck(y,"value"),d=function(n){return f.findWhere(y,{value:n}).label},g=r.$$("td",{className:"coveo-subscriptions-panel-content-type"},u.l("SearchAlerts_Type_"+n.type)),p=r.$$("td",{className:"coveo-subscriptions-panel-context",title:c});p.setHtml(c);v=r.$$("td",null,r.$$("div",{className:"coveo-subscriptions-panel-frequency"},function(){return new rt.Dropdown(function(t){i.usageAnalytics.logCustomEvent(o.analyticsActionCauseList.searchAlertsUpdateSubscription,{subscription:c,frequency:t.getValue()},i.element);n.frequency=t.getValue();i.updateAndSyncSearchAlert(n)},k,d).build()}()));w=r.$$("td",{className:"coveo-subscriptions-panel-content-actions"},null,r.$$("div",{className:"coveo-subscriptions-panel-action coveo-subscriptions-panel-action-unfollow"},u.l("SearchAlerts_unFollowing")),r.$$("div",{className:"coveo-subscriptions-panel-action coveo-subscriptions-panel-action-follow"},u.l("SearchAlerts_follow")));s.append(g.el);s.append(p.el);s.append(v.el);s.append(w.el);b=t.find(".coveo-subscriptions-panel-no-subscriptions");s.insertBefore(b);v.find("select").value=n.frequency;r.$$(s.find(".coveo-subscriptions-panel-action-unfollow")).on("click",function(){s.addClass("coveo-subscription-unfollowed");i.queryController.getEndpoint().deleteSubscription(n).then(function(){n.type==e.SUBSCRIPTION_TYPE.followDocument?i.logAnalyticsEvent(o.analyticsActionCauseList.searchAlertsUnfollowDocument,n):n.type==e.SUBSCRIPTION_TYPE.followQuery&&i.logAnalyticsEvent(o.analyticsActionCauseList.searchAlertsUnfollowQuery,n);delete n.id;var t={subscription:n};r.$$(i.root).trigger(h.SearchAlertsEvents.searchAlertsDeleted,t)}).catch(function(){i.handleSearchAlertsFail()})});r.$$(s.find(".coveo-subscriptions-panel-action-follow")).on("click",function(){s.removeClass("coveo-subscription-unfollowed");i.queryController.getEndpoint().follow(n).then(function(t){n.type==e.SUBSCRIPTION_TYPE.followDocument?i.logAnalyticsEvent(o.analyticsActionCauseList.searchAlertsFollowDocument,n):n.type==e.SUBSCRIPTION_TYPE.followQuery&&i.logAnalyticsEvent(o.analyticsActionCauseList.searchAlertsFollowQuery,n);n.id=t.id;var u={subscription:n};r.$$(i.root).trigger(h.SearchAlertsEvents.searchAlertsCreated,u)}).catch(function(){i.handleSearchAlertsFail()})})},t.prototype.updateAndSyncSearchAlert=function(n){var t=this;this.queryController.getEndpoint().updateSubscription(n).then(function(t){return f.extend(n,t)}).catch(function(){t.handleSearchAlertsFail()})},t.prototype.triggerSearchAlertsFail=function(){var n={dom:this.findQueryBoxDom()};r.$$(this.root).trigger(h.SearchAlertsEvents.searchAlertsFail,n)},t.prototype.findQueryBoxDom=function(){var t,i=this.searchInterface.getComponents("Querybox"),n;return i&&i.length>0?t=f.first(i).element:(n=this.searchInterface.getComponents("Omnibox"),n&&n.length>0&&(t=f.first(n).element)),t},t.prototype.buildFollowQueryRequest=function(n,t){var i={query:n};return t.modifiedDateField&&(i.modifiedDateField=t.modifiedDateField),{type:e.SUBSCRIPTION_TYPE.followQuery,typeConfig:i,name:this.message.getFollowQueryMessage(n.q)}},t.prototype.logAnalyticsEvent=function(n,t){this.usageAnalytics.logCustomEvent(n,{subscription:t.name},this.element)},t.create=function(n,i,r){return g.Assert.exists(n),new t(n,i,it.get(r,ut.SearchInterface).getBindings())},t.ID="SearchAlerts",t.doExport=function(){d.exportGlobally({SearchAlerts:t,SearchAlertsMessage:a.SearchAlertsMessage})},t.options={enableManagePanel:s.ComponentOptions.buildBooleanOption({defaultValue:!0}),enableFollowQuery:s.ComponentOptions.buildBooleanOption({defaultValue:!0}),modifiedDateField:s.ComponentOptions.buildFieldOption(),enableMessage:s.ComponentOptions.buildBooleanOption({defaultValue:!0}),messageCloseDelay:s.ComponentOptions.buildNumberOption({defaultValue:2e3,min:0,depend:"enableMessage"})},t}(nt.Component);t.SearchAlerts=v;tt.Initialization.registerAutoCreateComponent(v)},function(n,t,i){"use strict";var c=this&&this.__extends||function(){var n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])};return function(t,i){function r(){this.constructor=t}n(t,i);t.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),l=this&&this.__assign||Object.assign||function(n){for(var t,r,i=1,u=arguments.length;i<u;i++){t=arguments[i];for(r in t)Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n};Object.defineProperty(t,"__esModule",{value:!0});i(670);var a=i(3),f=i(1),v=i(16),y=i(12),p=i(671),w=i(7),e=i(8),b=i(2),u=i(192),o=i(138),s=i(194),h=i(0),r=function(n){function t(i,r,u){var o=n.call(this,i,t.ID,u)||this;return o.element=i,o.options=r,o.bindings=u,o.options=e.ComponentOptions.initComponentOptions(i,t,r),o.options.inline&&f.$$(i).addClass("coveo-inline"),o.initSearchBox(),o.initSearchButton(),o.applyMagicBoxIcon(),o.applyCustomHeight(),o}return c(t,n),t.prototype.initSearchBox=function(){var n=document.createElement("div");this.element.appendChild(n);this.searchbox=this.options.enableOmnibox?new u.Omnibox(n,this.options,this.bindings):new o.Querybox(n,this.options,this.bindings)},t.prototype.initSearchButton=function(){if(this.options.addSearchButton){var n=f.$$("a");this.element.appendChild(n.el);this.searchButton=new s.SearchButton(n.el,{searchbox:this.searchbox},this.bindings)}},t.prototype.applyMagicBoxIcon=function(){var n=f.$$(this.element).find(".magic-box-icon");n.innerHTML=y.SVGIcons.icons.mainClear;v.SVGDom.addClassToSVGInContainer(n,"magic-box-clear-svg")},t.prototype.applyCustomHeight=function(){this.options.height&&(f.$$(this.element).addClass("coveo-custom-height"),p.SearchBoxResize.resize(this.element,this.options.height))},t.ID="Searchbox",t.parent=u.Omnibox,t.doExport=function(){a.exportGlobally({Searchbox:t,SearchButton:s.SearchButton,Omnibox:u.Omnibox,Querybox:o.Querybox})},t.options={addSearchButton:e.ComponentOptions.buildBooleanOption({defaultValue:!0}),height:e.ComponentOptions.buildNumberOption({min:25}),enableOmnibox:e.ComponentOptions.buildBooleanOption({defaultValue:!0})},t}(w.Component);t.Searchbox=r;r.options=l({},r.options,u.Omnibox.options,o.Querybox.options);h.each(r.options,function(n,t){t in u.Omnibox.options&&!(t in o.Querybox.options)&&(r.options[t]=h.extend({depend:"enableOmnibox"},n))});b.Initialization.registerAutoCreateComponent(r)},function(n,t,i){"use strict";var h=this&&this.__extends||function(){var n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])};return function(t,i){function r(){this.constructor=t}n(t,i);t.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),f;Object.defineProperty(t,"__esModule",{value:!0});f=i(97);i(672);var u=i(0),c=i(17),l=i(55),a=i(3),v=i(6),e=i(15),r=i(1),y=i(16),p=i(7),o=i(8),w=i(2),s=function(n){function t(i,r,u){var f=n.call(this,i,t.ID,u)||this;return f.element=i,f.options=r,f.isOpened=!1,f.options=o.ComponentOptions.initComponentOptions(i,t,r),f.bind.onRootElement(c.InitializationEvents.afterInitialization,function(){return f.init()}),f}return h(t,n),t.prototype.open=function(){this.isOpened=!0;null!=this.menu&&r.$$(this.menu).detach();this.menu=this.buildMenu();r.$$(this.menu).insertAfter(this.element);new f.default(this.element,this.menu,{placement:"bottom-end",modifiers:{offset:{offset:"0, 5"},preventOverflow:{boundariesElement:this.root}}})},t.prototype.close=function(){this.isOpened=!1;null!=this.menu&&(r.$$(this.menu).detach(),this.menu=null)},t.prototype.toggle=function(){this.isOpened?this.close():this.open()},t.prototype.init=function(){var n=this,i=r.$$("span",{className:"coveo-settings-square"}).el,t=r.$$("span",{className:"coveo-settings-squares"}).el;u.times(3,function(){return t.appendChild(i.cloneNode())});this.element.appendChild(t);(new e.AccessibleButton).withElement(this.element).withOwner(this.bind).withSelectAction(function(){return n.toggle()}).withFocusAndMouseEnterAction(function(){return n.onfocus()}).withBlurAndMouseLeaveAction(function(){return n.onblur()}).withLabel(v.l("Settings")).build()},t.prototype.buildMenu=function(){var i=this,t=r.$$("div",{className:"coveo-settings-advanced-menu"}).el,n={settings:this,menuData:[]};return r.$$(this.root).trigger(l.SettingsEvents.settingsPopulateMenu,n),u.each(n.menuData,function(r){var u=i.buildMenuItem(r,n),f=u.menuItemElement,e=u.menuItemIcon,o=u.menuItemText;f.appendChild(e);f.appendChild(o);t.appendChild(f)}),t},t.prototype.buildMenuItem=function(n,t){var i=this,f=r.$$("div",{className:"coveo-settings-item "+n.className}).el,o=function(){u.each(t.menuData,function(n){n.onClose&&n.onClose()});i.close();n.onOpen()};return(new e.AccessibleButton).withElement(f).withSelectAction(o).withFocusAndMouseEnterAction(function(){return i.onfocus()}).withBlurAndMouseLeaveAction(function(){return i.onblur()}).withLabel(n.tooltip||n.text).build(),{menuItemElement:f,menuItemIcon:this.buildMenuItemIcon(n),menuItemText:this.buildMenuItemText(n)}},t.prototype.buildMenuItemIcon=function(n){var t=r.$$("div",{className:"coveo-icon"}).el;return n.svgIcon&&(t.innerHTML=n.svgIcon),n.svgIconClassName&&y.SVGDom.addClassToSVGInContainer(t,n.svgIconClassName),t},t.prototype.buildMenuItemText=function(n){return r.$$("div",{className:"coveo-settings-text"},u.escape(n.text)).el},t.prototype.onblur=function(){var n=this;clearTimeout(this.closeTimeout);this.closeTimeout=window.setTimeout(function(){n.close()},this.options.menuDelay)},t.prototype.onfocus=function(){clearTimeout(this.closeTimeout)},t.ID="Settings",t.doExport=function(){a.exportGlobally({Settings:t})},t.options={menuDelay:o.ComponentOptions.buildNumberOption({defaultValue:300,min:0})},t}(p.Component);t.Settings=s;w.Initialization.registerAutoCreateComponent(s)},function(n,t,i){"use strict";var s=this&&this.__extends||function(){var n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])};return function(t,i){function r(){this.constructor=t}n(t,i);t.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),o,f;Object.defineProperty(t,"__esModule",{value:!0});var e=i(7),h=i(55),r=i(1),u=i(6),c=i(4),l=i(2),a=i(3),v=i(26);i(673);o=i(12);f=function(n){function t(i,r,f,e){void 0===e&&(e=v.ModalBox);var s=n.call(this,i,t.ID,f)||this;return s.element=i,s.options=r,s.ModalBox=e,s.bind.onRootElement(h.SettingsEvents.settingsPopulateMenu,function(n){n.menuData.push({className:"coveo-share-query",text:u.l("ShareQuery"),onOpen:function(){return s.open()},onClose:function(){return s.close()},svgIcon:o.SVGIcons.icons.dropdownShareQuery,svgIconClassName:"coveo-share-query-svg"})}),s}return s(t,n),t.prototype.open=function(){null==this.modalbox&&(this.dialogBoxContent=this.buildContent(),this.modalbox=this.ModalBox.open(this.dialogBoxContent,{title:u.l("ShareQuery"),className:"coveo-share-query-opened",body:this.searchInterface.options.modalContainer}))},t.prototype.close=function(){this.modalbox&&(this.modalbox.close(),this.modalbox=null)},t.prototype.getLinkToThisQuery=function(){return this.linkToThisQuery||this.buildLinkToThisQuery(),this.linkToThisQuery.value},t.prototype.setLinkToThisQuery=function(n){this.linkToThisQuery||this.buildLinkToThisQuery();this.linkToThisQuery.value=n},t.prototype.getCompleteQuery=function(){return this.completeQuery||this.buildCompleteQuery(),this.completeQuery.value},t.prototype.setCompleteQuery=function(n){this.completeQuery||this.buildCompleteQuery();this.completeQuery.value=n},t.prototype.outputIfNotNull=function(n){return n?"("+n+")":""},t.prototype.buildContent=function(){var n=r.$$("div",{className:"coveo-share-query-summary-info"}).el,t=r.$$("div",{className:"coveo-share-query-summary-info-boxes"}).el;return this.buildLinkToThisQuery(),this.buildCompleteQuery(),t.appendChild(this.buildTextBoxWithLabel(u.l("Link"),this.linkToThisQuery)),t.appendChild(this.buildTextBoxWithLabel(u.l("CompleteQuery"),this.completeQuery)),n.appendChild(t),e.Component.pointElementsToDummyForm(n),n},t.prototype.buildCompleteQuery=function(){this.completeQuery=r.$$("input",{type:"text",className:"coveo-share-query-summary-info-input"}).el;var n=this.queryController.getLastQuery();this.completeQuery.value=c.Utils.trim(this.outputIfNotNull(n.q)+" "+this.outputIfNotNull(n.aq)+" "+this.outputIfNotNull(n.cq))},t.prototype.buildLinkToThisQuery=function(){var n=this;this.linkToThisQuery=r.$$("input",{type:"text",className:"coveo-share-query-summary-info-input"}).el;r.$$(this.linkToThisQuery).on("click",function(){return n.linkToThisQuery.select()});this.linkToThisQuery.value=window.location.href},t.prototype.buildTextBoxWithLabel=function(n,t){var u=r.$$("span",{className:"coveo-share-query-summary-info-label"}),i;return u.text(n),i=r.$$("div").el,i.appendChild(u.el),i.appendChild(t),i},t.ID="ShareQuery",t.options={},t.doExport=function(){a.exportGlobally({ShareQuery:t})},t}(e.Component);t.ShareQuery=f;l.Initialization.registerAutoCreateComponent(f)},function(n,t,i){"use strict";var h=this&&this.__extends||function(){var n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])};return function(t,i){function r(){this.constructor=t}n(t,i);t.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var c=i(0),l=i(3),r=i(5),u=i(1),f=i(7),e=i(8),o=i(2),a=i(62),s=function(n){function t(i,u,f,o){var s=n.call(this,i,t.ID,f)||this;return(s.element=i,s.options=u,s.bindings=f,s.result=o,s.options=e.ComponentOptions.initComponentOptions(i,t,u),s.result=s.result||s.resolveResult(),r.Assert.exists(s.result),null!=s.options.condition)?new Function("obj","with(obj||{}){return "+s.options.condition+"}")(s.result)&&s.initialize():s.initialize(),s}return h(t,n),t.prototype.initialize=function(){var n=this;if(null!=this.options.template){var i=this.searchInterface.options,e={options:i,bindings:this.bindings,result:this.result},s=u.$$(this.element).parents(f.Component.computeCssClassName(t));c.each(s,function(t){var i=t.cloneNode(),f;u.$$(i).empty();f=i.outerHTML;r.Assert.check(-1===f.indexOf(n.element.outerHTML),"TemplateLoader cannot load a template into itself.")});this.element.innerHTML=this.options.template.instantiateToString(this.result,{checkCondition:!1,responsiveComponents:this.bindings?this.bindings.searchInterface.responsiveComponents:null});o.Initialization.automaticallyCreateComponentsInside(this.element,e)}},t.ID="TemplateLoader",t.doExport=function(){l.exportGlobally({TemplateLoader:t})},t.options={template:a.TemplateComponentOptions.buildTemplateOption(),condition:e.ComponentOptions.buildStringOption()},t}(f.Component);t.TemplateLoader=s;o.Initialization.registerAutoCreateComponent(s)},function(n,t,i){"use strict";var f=this&&this.__extends||function(){var n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])};return function(t,i){function r(){this.constructor=t}n(t,i);t.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});i(677);var e=i(3),o=i(1),s=i(7),r=i(8),h=i(2),u=function(n){function t(i,u,f){var e=n.call(this,i,t.ID,f)||this;return e.element=i,e.options=u,e.options=r.ComponentOptions.initComponentOptions(i,t,u),o.$$(e.element).text(e.options.value),e.element.style.fontSize=e.options.size,e.element.style.fontStyle=e.options.style,e.element.style.color=e.options.color,e.element.style.fontWeight=e.options.weight,e.element.style.textAlign=e.options.textAlign,e.element.style.marginTop=e.options.marginTop,e.element.style.marginBottom=e.options.marginBottom,e.element.style.marginRight=e.options.marginRight,e.element.style.marginLeft=e.options.marginLeft,e.element.style.paddingTop=e.options.paddingTop,e.element.style.paddingBottom=e.options.paddingBottom,e.element.style.paddingLeft=e.options.paddingLeft,e.element.style.paddingRight=e.options.paddingRight,e}return f(t,n),t.ID="Text",t.doExport=function(){e.exportGlobally({Text:t})},t.options={value:r.ComponentOptions.buildLocalizedStringOption(),size:r.ComponentOptions.buildStringOption(),style:r.ComponentOptions.buildStringOption(),color:r.ComponentOptions.buildStringOption(),weight:r.ComponentOptions.buildStringOption(),textAlign:r.ComponentOptions.buildStringOption(),marginTop:r.ComponentOptions.buildStringOption(),marginBottom:r.ComponentOptions.buildStringOption(),marginLeft:r.ComponentOptions.buildStringOption(),marginRight:r.ComponentOptions.buildStringOption(),paddingTop:r.ComponentOptions.buildStringOption(),paddingBottom:r.ComponentOptions.buildStringOption(),paddingLeft:r.ComponentOptions.buildStringOption(),paddingRight:r.ComponentOptions.buildStringOption()},t}(s.Component);t.Text=u;h.Initialization.registerAutoCreateComponent(u)},function(n,t,i){"use strict";var s=this&&this.__extends||function(){var n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])};return function(t,i){function r(){this.constructor=t}n(t,i);t.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var h=i(0),c=i(3),r=i(1),l=i(21),o=i(7),e=i(8),a=i(2),v=i(30),y=i(191),u=i(70),p=i(6),f=function(n){function t(i,f,o,s){var h=n.call(this,i,t.ID,o)||this,c,a;return(h.element=i,h.options=f,h.bindings=o,h.result=s,h.options=e.ComponentOptions.initOptions(i,t.options,f,t.ID),"img"!=h.element.tagName.toLowerCase()?(h.img=r.$$("img").el,h.element.appendChild(h.img)):h.img=h.element,h.options.clickable)&&("img"!=h.element.tagName.toLowerCase()?new u.ResultLink(h.element,h.options,h.bindings,h.result):(c=r.$$("a"),r.$$(h.element).replaceWith(c.el),r.$$(c).append(h.element),new u.ResultLink(c.el,h.options,h.bindings,h.result))),(h.img.setAttribute("src","data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="),l.QueryUtils.hasThumbnail(s))?h.buildThumbnailImage():(h.logger.info("Result has no thumbnail. Cannot build thumbnail image, instanciating an Icon component instead."),a=new y.Icon(r.$$("div").el,{small:!0},o,s),r.$$(h.element).replaceWith(a.element)),h}return s(t,n),t.prototype.buildThumbnailImage=function(){var n=this.bindings.queryController.getEndpoint();n.isJsonp()?this.buildImageWithDirectSrcAttribute(n):this.buildImageWithBase64SrcAttribute(n);this.makeAccessible()},t.prototype.buildImageWithDirectSrcAttribute=function(n){var t=n.getViewAsDatastreamUri(this.result.uniqueId,"$Thumbnail$",{contentType:"image/png"});this.img.setAttribute("src",t);this.resizeContainingFieldTable()},t.prototype.buildImageWithBase64SrcAttribute=function(n){var t=this;n.getRawDataStream(this.result.uniqueId,"$Thumbnail$").then(function(n){var i=String.fromCharCode.apply(null,new Uint8Array(n));t.img.setAttribute("src","data:image/png;base64, "+btoa(i));t.resizeContainingFieldTable()}).catch(function(){t.setEmptyThumbnailClass()})},t.prototype.makeAccessible=function(){this.img.setAttribute("alt",p.l("ThumbnailOf",this.result.title))},t.prototype.resizeContainingFieldTable=function(){var t=o.Component.computeCssClassNameForType("FieldTable"),n=r.$$(this.element).closest(t);null!=n&&v.get(n).updateToggleHeight()},t.prototype.setEmptyThumbnailClass=function(){r.$$(this.img).addClass(this.options.noThumbnailClass)},t.ID="Thumbnail",t.doExport=function(){c.exportGlobally({Thumbnail:t})},t.options={noThumbnailClass:e.ComponentOptions.buildStringOption({defaultValue:"coveo-no-thumbnail"}),clickable:e.ComponentOptions.buildBooleanOption({defaultValue:!1})},t.parent=u.ResultLink,t}(o.Component);t.Thumbnail=f;f.options=h.extend({},u.ResultLink.options,f.options);a.Initialization.registerAutoCreateComponent(f)},function(n,t,i){"use strict";function h(n){return"notify"===n.type}function c(n){return"redirect"===n.type}function l(n){return"query"===n.type}function a(n){return"execute"===n.type}var v=this&&this.__extends||function(){var n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])};return function(t,i){function r(){this.constructor=t}n(t,i);t.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),s,e;Object.defineProperty(t,"__esModule",{value:!0});var y=i(7),p=i(8),r=i(5),w=i(11),u=i(1),f=i(10),b=i(13),k=i(2),o=i(0),d=i(3);i(678);s=i(73);e=function(n){function t(i,u,f,e){var o=n.call(this,i,t.ID,f)||this;return o.element=i,o.options=u,o.bindings=f,o._window=e,o._window=o._window||window,o.options=p.ComponentOptions.initComponentOptions(i,t,u),r.Assert.exists(i),r.Assert.exists(o.options),o.notifications=[],o.bind.onRootElement(w.QueryEvents.querySuccess,o.handleProcessNewQueryResults),o}return v(t,n),t.prototype.handleProcessNewQueryResults=function(n){if(r.Assert.exists(n),r.Assert.exists(n.results),u.$$(this.element).empty(),this.notifications=[],s.Utils.isNullOrUndefined(n.results.triggers))return void u.$$(this.element).removeClass("coveo-visible");var e=[],t=null,i=null,f=null;n.results.triggers.forEach(function(n){h(n)?e.push(n):c(n)?t=t||n:l(n)?i=i||n:a(n)&&(f=f||n)});e.length&&(this.processNotifyTriggers(e),u.$$(this.element).addClass("coveo-visible"));t&&this.processRedirectTrigger(t);i&&this.processQueryTrigger(i);f&&this.processExecuteTrigger(f,n.query)},t.prototype.processNotifyTriggers=function(n){var t=this;this.usageAnalytics.logCustomEvent(f.analyticsActionCauseList.triggerNotify,{notifications:n.map(function(n){return n.content})},this.element);n.forEach(function(n){t.notifications.push(n.content);t.element.appendChild(u.$$("div",{className:"coveo-trigger-notify"},n.content).el)})},t.prototype.processRedirectTrigger=function(n){this.usageAnalytics.logCustomEvent(f.analyticsActionCauseList.triggerRedirect,{redirectedTo:n.content},this.element);this._window.location.replace(n.content)},t.prototype.processQueryTrigger=function(n){var t=this;this.queryStateModel.set(b.QueryStateModel.attributesEnum.q,n.content);this.queryController.executeQuery({beforeExecuteQuery:function(){t.usageAnalytics.logCustomEvent(f.analyticsActionCauseList.triggerQuery,{query:n.content},t.element)}})},t.prototype.processExecuteTrigger=function(n,t){var i,r;try{i=this._window[""+n.content.name];"function"==typeof i?(r=o.object(o.map(n.content.params,function(n,t){return["param"+(t+1),n]})),r.element=this.element,this.usageAnalytics.logCustomEvent(f.analyticsActionCauseList.triggerExecute,{executions:[{functionName:n.content.name,params:n.content.params}]},this.element),i.apply(this._window,[r])):this.logger.error("A trigger tried to call the function '"+n.content.name+"', which doesn't exist.",this,t,n)}catch(i){this.logger.error("A trigger called the function '"+n.content.name+"', which threw an error.",this,t,n)}},t.ID="Triggers",t.options={},t.doExport=function(){d.exportGlobally({Triggers:t})},t}(y.Component);t.Triggers=e;k.Initialization.registerAutoCreateComponent(e)},function(n,t,i){"use strict";var y=this&&this.__extends||function(){var n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])};return function(t,i){function r(){this.constructor=t}n(t,i);t.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});i(524);var u=i(0),l=i(35),s=i(11),p=i(3),o=i(5),w=i(9),e=i(6),b=i(48),k=i(15),r=i(1),d=i(16),h=i(12),c=i(10),a=i(7),f=i(8),g=i(2),nt=i(40),tt=i(65),it=i(679),v=function(n){function t(i,r,u){var e=n.call(this,i,t.ID,u)||this;return e.element=i,e.options=r,e.bindings=u,e.previouslySelected=[],e.groupByRequestValues=[],e.isSticky=!1,e.shouldTriggerQuery=!0,e.options=f.ComponentOptions.initComponentOptions(i,t,r),e.element.title=e.options.title,e.buildContent(),(new k.AccessibleButton).withElement(e.element).withClickAction(function(n){return e.handleClick(n)}).withEnterKeyboardAction(function(n){return e.handleKeyboardSelect(n)}).withBlurAction(function(n){return e.handleBlur(n)}).withLabel(e.options.title).build(),e.bind.onRootElement(l.BreadcrumbEvents.populateBreadcrumb,function(n){return e.handlePopulateBreadcrumb(n)}),e.bind.onRootElement(l.BreadcrumbEvents.clearBreadcrumb,function(){return e.handleClearBreadcrumb()}),e.bind.onRootElement(s.QueryEvents.buildingQuery,function(n){return e.handleBuildingQuery(n)}),e.bind.onRootElement(s.QueryEvents.doneBuildingQuery,function(n){return e.handleDoneBuildingQuery(n)}),e.bind.onRootElement(s.QueryEvents.querySuccess,function(n){return e.handleQuerySuccess(n)}),e}return y(t,n),t.simpleFilterSortCritera=function(){return["score","occurrences","alphaascending","alphadescending","chisquare"]},t.prototype.getValueContainer=function(){return this.valueContainer},t.prototype.getValueCaption=function(n){var t=n;return u.contains(u.keys(this.options.valueCaption),n)?(t=this.options.valueCaption[t]||t,e.l(t)):nt.FacetUtils.tryToGetTranslatedCaption(this.options.field.toString(),t)},t.prototype.getSelectedCaptions=function(){var n=this;return u.map(this.getSelectedValues(),function(t){return n.getValueCaption(t)})},t.prototype.toggleContainer=function(){r.$$(this.valueContainer).hasClass("coveo-simplefilter-value-container-expanded")?this.closeContainer():this.openContainer()},t.prototype.selectValue=function(n,t){var i=this;void 0===t&&(t=!0);u.each(this.checkboxes,function(r){var u=i.getValueCaption(r.label);r.label!=n&&u!=n||r.checkbox.select(t)})},t.prototype.deselectValue=function(n){var t=this;u.each(this.checkboxes,function(i){var r=t.getValueCaption(i.label);i.label!=n&&r!=n||i.checkbox.reset()})},t.prototype.toggleValue=function(n){var t=this;u.each(this.checkboxes,function(i){var r=t.getValueCaption(i.label);i.label!=n&&r!=n||i.checkbox.toggle()})},t.prototype.resetSimpleFilter=function(){var n=this;u.each(this.checkboxes,function(t){t.checkbox.isSelected()&&n.deselectValue(t.label)})},t.prototype.openContainer=function(){r.$$(this.element).addClass("coveo-simplefilter-value-container-expanded");this.valueContainer.addClass("coveo-simplefilter-value-container-expanded");this.refreshValueContainer();this.isSticky=!0;this.backdrop.hasClass("coveo-dropdown-background-active")||this.showBackdrop()},t.prototype.closeContainer=function(){r.$$(this.element).removeClass("coveo-simplefilter-value-container-expanded");this.valueContainer.removeClass("coveo-simplefilter-value-container-expanded");this.backdrop.hasClass("coveo-dropdown-background-active")&&this.hideBackdrop();0==this.getSelectedLabeledCheckboxes().length&&(this.isSticky=!1)},t.prototype.getSelectedValues=function(){return u.map(this.getSelectedLabeledCheckboxes(),function(n){return n.label})},t.prototype.handleClick=function(n){n.stopPropagation();n.target==this.element&&this.toggleContainer()},t.prototype.handleKeyboardSelect=function(n){n.target==this.element?this.toggleContainer():this.toggleValue(r.$$(n.target).text())},t.prototype.handleBlur=function(n){var i=n.relatedTarget;i&&(r.$$(i).parent(a.Component.computeCssClassName(t))||this.closeContainer())},t.prototype.handleValueToggle=function(n){var t=this.getSelectedValues(),i;this.circleElement.text(t.length.toString());this.circleElement.removeClass("coveo-simplefilter-circle-hidden");this.options.enableClearButton&&this.clearElement.show();1==t.length?(this.setDisplayedTitle(this.getValueCaption(t[0])),this.element.title=this.getValueCaption(t[0])):(this.setDisplayedTitle(this.options.title),this.element.title=this.options.title,t.length<1&&(this.circleElement.addClass("coveo-simplefilter-circle-hidden"),this.options.enableClearButton&&this.clearElement.hide()));0==t.length&&(this.isSticky=!1);i=n.isSelected()?c.analyticsActionCauseList.simpleFilterSelectValue:c.analyticsActionCauseList.simpleFilterDeselectValue;this.shouldTriggerQuery&&(this.usageAnalytics.logSearchEvent(i,{simpleFilterTitle:this.options.title,simpleFilterSelectedValue:n.label,simpleFilterField:this.options.field}),this.queryController.executeQuery())},t.prototype.createCheckbox=function(n){var i=this,t=new tt.Checkbox(function(){i.handleValueToggle(t)},this.getValueCaption(n));return t.getElement().title=e.l(n),{checkbox:t,label:n}},t.prototype.createCheckboxes=function(){var n=this;this.previouslySelected.length>0?(this.checkboxes=u.map(this.previouslySelected,function(t){return n.createCheckbox(t)}),u.each(this.checkboxes,function(t){n.previouslySelected.indexOf(t.label)>=0&&n.selectValue(t.label,!1)})):void 0!=this.options.values?this.checkboxes=u.map(this.options.values,function(t){return n.createCheckbox(t)}):void 0!=this.groupByRequestValues&&(this.checkboxes=u.map(this.groupByRequestValues,function(t){return n.createCheckbox(t)}));"alphaascending"!==this.options.sortCriteria.toLocaleLowerCase()&&"alphadescending"!==this.options.sortCriteria.toLowerCase()||(this.checkboxes.sort(function(n,t){return n.checkbox.label.localeCompare(t.checkbox.label)}),"alphadescending"===this.options.sortCriteria.toLowerCase()&&this.checkboxes.reverse());u.each(this.checkboxes,function(t){n.valueContainer.append(t.checkbox.getElement())});this.checkboxes.length>0&&r.$$(r.$$(this.checkboxes[this.checkboxes.length-1].checkbox.getElement()).find(".coveo-checkbox-button")).on("blur",function(){n.closeContainer()})},t.prototype.createValueContainer=function(){this.valueContainer=r.$$("div",{className:"coveo-simplefilter-value-container"})},t.prototype.buildContent=function(){this.createValueContainer();this.element.appendChild(this.buildSelect());this.element.appendChild(this.valueContainer.el);this.findOrCreateWrapper().append(this.element);this.createBackdrop()},t.prototype.buildSelect=function(){var n=r.$$("span",{className:"coveo-simplefilter-select"});return this.selectTitle=r.$$("span",{className:"coveo-simplefilter-selecttext"},this.options.title),n.append(this.selectTitle.el),n.append(this.buildCircleElement()),this.options.enableClearButton&&n.append(this.buildClearElement()),n.append(this.buildSvgToggleUpIcon()),n.el},t.prototype.buildSvgToggleUpIcon=function(){var n=r.$$("span",{className:"coveo-simplefilter-toggle-svg-container"},h.SVGIcons.icons.arrowDown).el;return d.SVGDom.addClassToSVGInContainer(n,"coveo-simplefilter-toggle-down-svg"),n},t.prototype.buildCircleElement=function(){return this.circleElement=r.$$("span",{className:"coveo-simplefilter-circle coveo-simplefilter-circle-hidden"},this.getSelectedLabeledCheckboxes().length.toString()),this.circleElement.el},t.prototype.buildClearElement=function(){var n=this;return this.clearElement=r.$$("button",{title:e.l("DeselectFilterValues",this.options.title),"aria-label":e.l("Clear",this.options.title),className:"coveo-simplefilter-eraser",type:"button"},h.SVGIcons.icons.mainClear),this.clearElement.hide(),this.clearElement.on("click",function(t){t.stopPropagation();n.handleClear()}),this.clearElement.el},t.prototype.createBackdrop=function(){var t=this,n=r.$$(this.root).find(".coveo-dropdown-background");null==n?(this.backdrop=r.$$("div",{className:"coveo-dropdown-background"}),this.root.appendChild(this.backdrop.el)):this.backdrop=r.$$(n);this.backdrop.on("click",function(){return t.closeContainer()})},t.prototype.handlePopulateBreadcrumb=function(n){var i=this,t,e,f;this.getSelectedLabeledCheckboxes().length>0&&(t=r.$$("div",{className:"coveo-simplefilter-breadcrumb"}),e=r.$$(b.getHeadingTag(n.headingLevel,"span"),{className:"coveo-simplefilter-breadcrumb-title"},this.options.title+":"),t.append(e.el),f=r.$$("span",{className:"coveo-simplefilter-breadcrumb-values"}),t.append(f.el),u.each(this.getSelectedLabeledCheckboxes(),function(n){var t=r.$$("span",{className:"coveo-simplefilter-breadcrumb-value"},i.getValueCaption(n.label)),u;f.append(t.el);u=r.$$("span",{className:"coveo-simplefilter-breadcrumb-clear"},h.SVGIcons.icons.mainClear);t.append(u.el);t.el.title=i.getValueCaption(n.label);r.$$(t).on("click",function(){return i.handleRemoveFromBreadcrumb(n)})}),n.breadcrumbs.push({element:t.el}))},t.prototype.handleRemoveFromBreadcrumb=function(n){n.checkbox.reset();this.refreshValueContainer()},t.prototype.handleClearBreadcrumb=function(){this.resetWithoutTriggeringQuery()},t.prototype.handleClear=function(){this.usageAnalytics.logSearchEvent(c.analyticsActionCauseList.simpleFilterClearAll,{simpleFilterTitle:this.options.title,simpleFilterField:this.options.field});this.resetWithoutTriggeringQuery();this.queryController.executeQuery()},t.prototype.resetWithoutTriggeringQuery=function(){this.shouldTriggerQuery=!1;this.resetSimpleFilter();this.shouldTriggerQuery=!0},t.prototype.handleQuerySuccess=function(n){n.results.results.length>0?this.findOrCreateWrapper().removeClass("coveo-no-results"):this.findOrCreateWrapper().addClass("coveo-no-results");void 0==this.options.values&&(this.groupByBuilder.groupBy(n),this.groupByRequestValues=this.groupByBuilder.getValuesFromGroupBy(),this.refreshValueContainer(),r.$$(this.element).hasClass("coveo-simplefilter-value-container-expanded")||(this.isSticky=!1))},t.prototype.handleBuildingQuery=function(n){o.Assert.exists(n);o.Assert.exists(n.queryBuilder);var t=this.getSelectedValues();t.length>0&&n.queryBuilder.advancedExpression.addFieldExpression(this.options.field.toString(),"==",t)},t.prototype.handleDoneBuildingQuery=function(n){void 0==this.options.values&&(o.Assert.exists(n),o.Assert.exists(n.queryBuilder),this.previouslySelected=this.getSelectedValues(),this.groupByBuilder=new it.SimpleFilterValues(this,this.options),this.groupByBuilder.handleDoneBuildingQuery(n))},t.prototype.getSelectedLabeledCheckboxes=function(){return u.filter(this.checkboxes,function(n){return n.checkbox.isSelected()})},t.prototype.setDisplayedTitle=function(n){this.selectTitle.text(this.getValueCaption(n))},t.prototype.showBackdrop=function(){this.backdrop.addClass("coveo-dropdown-background-active")},t.prototype.hideBackdrop=function(){this.backdrop.removeClass("coveo-dropdown-background-active")},t.prototype.findOrCreateWrapper=function(){var n;return null==r.$$(this.root).find(".coveo-simplefilter-header-wrapper")?(n=r.$$("div",{className:"coveo-simplefilter-header-wrapper"}),n.insertBefore(this.element),n):(n=r.$$(this.root).find(".coveo-simplefilter-header-wrapper"),r.$$(n))},t.prototype.refreshValueContainer=function(){this.isSticky||(this.valueContainer.empty(),this.createCheckboxes());0!=this.checkboxes.length||this.isSticky?r.$$(this.element).removeClass("coveo-simplefilter-empty"):r.$$(this.element).addClass("coveo-simplefilter-empty");r.$$(this.circleElement).text(this.getSelectedLabeledCheckboxes().length.toString())},t.ID="SimpleFilter",t.doExport=function(){p.exportGlobally({SimpleFilter:t})},t.options={maximumNumberOfValues:f.ComponentOptions.buildNumberOption({defaultValue:5,min:0}),values:f.ComponentOptions.buildListOption(),field:f.ComponentOptions.buildFieldOption({required:!0}),title:f.ComponentOptions.buildLocalizedStringOption({localizedString:function(){return e.l("NoTitle")}}),valueCaption:f.ComponentOptions.buildJsonOption(),sortCriteria:f.ComponentOptions.buildStringOption({postProcessing:function(n){var i=n||"score";return-1!==t.simpleFilterSortCritera().indexOf(i.toLowerCase())?i:(new w.Logger(t).warn("The simpleFilter component doesn't accept "+i+" as the value for the sortCriteria option.","Available option are : "+t.simpleFilterSortCritera().toString()),"score")}}),enableClearButton:f.ComponentOptions.buildBooleanOption({defaultValue:!1})},t}(a.Component);t.SimpleFilter=v;g.Initialization.registerAutoCreateComponent(v)},function(n,t,i){"use strict";var s=this&&this.__extends||function(){var n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])};return function(t,i){function r(){this.constructor=t}n(t,i);t.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),h=this&&this.__assign||Object.assign||function(n){for(var t,r,i=1,u=arguments.length;i<u;i++){t=arguments[i];for(r in t)Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n};Object.defineProperty(t,"__esModule",{value:!0});var r=i(102),c=i(0),l=i(3),u=i(6),e=i(1),a=i(7),f=i(8),v=i(2),y=i(189),p=i(84),o=function(n){function t(i,e,o){var s=n.call(this,i,t.ID,o)||this;return s.element=i,s.options=e,s.bindings=o,s.isFieldValueCompatible=!1,s.rangeValues=[{start:r(0).toDate(),end:r().endOf("day").toDate(),label:u.l("AllDates"),endInclusive:!1},{start:r().startOf("day").subtract(1,"day").toDate(),end:r().endOf("day").toDate(),label:u.l("WithinLastDay"),endInclusive:!1},{start:r().startOf("day").subtract(1,"week").toDate(),end:r().endOf("day").toDate(),label:u.l("WithinLastWeek"),endInclusive:!1},{start:r().startOf("day").subtract(1,"month").toDate(),end:r().endOf("day").toDate(),label:u.l("WithinLastMonth"),endInclusive:!1},{start:r().startOf("day").subtract(1,"year").toDate(),end:r().endOf("day").toDate(),label:u.l("WithinLastYear"),endInclusive:!1}],s.options=f.ComponentOptions.initComponentOptions(i,t,e),s.buildFacet(),s}return s(t,n),t.prototype.isCurrentlyDisplayed=function(){return!!e.$$(this.element).isVisible()&&!this.disabled},Object.defineProperty(t.prototype,"ranges",{get:function(){return this.rangeValues},set:function(n){this.rangeValues=n;this.buildFacet()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"facet",{get:function(){return this.facetRange},enumerable:!0,configurable:!0}),t.prototype.buildFacet=function(){this.destroyFacet();this.facetRangeElement=e.$$("div");e.$$(this.element).append(this.facetRangeElement.el);this.facetRange=new y.FacetRange(this.facetRangeElement.el,{field:this.options.field,title:this.options.title,ranges:this.rangeValues,availableSorts:["custom"],customSort:c.pluck(this.rangeValues,"label"),id:this.options.id},this.bindings);this.facetRange.isCurrentlyDisplayed=this.isCurrentlyDisplayed},t.prototype.destroyFacet=function(){this.facetRangeElement&&this.facetRangeElement.remove();delete this.facetRange},t.ID="TimespanFacet",t.options=h({title:f.ComponentOptions.buildStringOption({defaultValue:u.l("LastUpdated")}),field:f.ComponentOptions.buildFieldOption({defaultValue:"@date"}),id:f.ComponentOptions.buildStringOption({postProcessing:function(n,t){return n||t.field}})},p.ResponsiveFacetOptions),t.doExport=function(){l.exportGlobally({TimespanFacet:t})},t}(a.Component);t.TimespanFacet=o;v.Initialization.registerAutoCreateComponent(o)},function(n,t,i){"use strict";var f=this&&this.__extends||function(){var n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])};return function(t,i){function r(){this.constructor=t}n(t,i);t.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});i(680);var r=i(20),e=i(3),o=i(7),u=function(n){function t(i,u,f){var e=n.call(this,i,t.ID,f)||this;return e.element=i,e.options=u,e.bindings=f,e.options=r.ComponentOptions.initComponentOptions(i,t,u),e.bind.onRootElement(r.ResultListEvents.newResultDisplayed,function(n){var t=e.buildBadge(n.result,n.item);t&&e.appendBadge(t,n.item)}),e}return f(t,n),t.prototype.buildBadge=function(n,t){if(!this.shouldShowABadge(n,t))return null;var i=r.$$("div",{className:this.getClassName(n)});return this.applyTagline(n,i),this.applyColor(n,i),i},t.prototype.appendBadge=function(n,t){this.isCardLayout(t)?this.addBadgeToCardLayout(n,t):r.$$(t).prepend(n.el)},t.prototype.addBadgeToCardLayout=function(n,t){var i;null==t.parentElement?(i=r.$$("div",{className:"coveo-promoted-result-badge-container-card-layout"}),i.insertBefore(t)):i=r.$$(t.parentElement);i.append(n.el);i.append(t)},t.prototype.applyColor=function(n,t){this.isFeatured(n)&&this.options.colorForFeaturedResults&&(t.el.style.backgroundColor=this.options.colorForFeaturedResults);this.isRecommended(n)&&this.options.colorForRecommendedResults&&(t.el.style.backgroundColor=this.options.colorForRecommendedResults)},t.prototype.applyTagline=function(n,t){if(this.isFeatured(n)&&this.options.showBadgeForFeaturedResults&&t.text(this.options.captionForFeatured),this.isRecommended(n)&&this.options.showBadgeForRecommendedResults)return t.text(this.options.captionForRecommended)},t.prototype.isFeatured=function(n){return n.isTopResult},t.prototype.isRecommended=function(n){return n.isRecommendation&&!n.isTopResult},t.prototype.isTableLayout=function(n){return r.$$(n).hasClass("coveo-table-layout")},t.prototype.isCardLayout=function(n){return r.$$(n).hasClass("coveo-card-layout")},t.prototype.getClassName=function(n){return"coveo-promoted-result-badge coveo-"+(this.isFeatured(n)?"featured":"recommended")+"-result-badge"},t.prototype.shouldShowABadge=function(n,t){return!this.isTableLayout(t)&&(!(!this.isFeatured(n)||!this.options.showBadgeForFeaturedResults)||!(!this.isRecommended(n)||!this.options.showBadgeForRecommendedResults))},t.ID="PromotedResultsBadge",t.doExport=function(){e.exportGlobally({PromotedResultsBadge:t})},t.options={showBadgeForFeaturedResults:r.ComponentOptions.buildBooleanOption({defaultValue:!0}),showBadgeForRecommendedResults:r.ComponentOptions.buildBooleanOption({defaultValue:!1}),captionForRecommended:r.ComponentOptions.buildLocalizedStringOption({localizedString:function(){return r.l("Recommended")},depend:"showBadgeForRecommendedResults"}),captionForFeatured:r.ComponentOptions.buildLocalizedStringOption({localizedString:function(){return r.l("Featured")},depend:"showBadgeForFeaturedResults"}),colorForFeaturedResults:r.ComponentOptions.buildColorOption({depend:"showBadgeForFeaturedResults"}),colorForRecommendedResults:r.ComponentOptions.buildColorOption({depend:"showBadgeForRecommendedResults"})},t}(o.Component);t.PromotedResultsBadge=u;r.Initialization.registerAutoCreateComponent(u)},function(n,t,i){"use strict";var y=this&&this.__extends||function(){var n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])};return function(t,i){function r(){this.constructor=t}n(t,i);t.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),p=this&&this.__assign||Object.assign||function(n){for(var t,r,i=1,u=arguments.length;i<u;i++){t=arguments[i];for(r in t)Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},w=this&&this.__awaiter||function(n,t,i,r){return new(i||(i=Promise))(function(u,f){function o(n){try{e(r.next(n))}catch(n){f(n)}}function s(n){try{e(r.throw(n))}catch(n){f(n)}}function e(n){n.done?u(n.value):new i(function(t){t(n.value)}).then(o,s)}e((r=r.apply(n,t||[])).next())})},b=this&&this.__generator||function(n,t){function f(n){return function(t){return s([n,t])}}function s(f){if(e)throw new TypeError("Generator is already executing.");for(;r;)try{if(e=1,u&&(i=u[2&f[0]?"return":f[0]?"throw":"next"])&&!(i=i.call(u,f[1])).done)return i;switch(u=0,i&&(f=[0,i.value]),f[0]){case 0:case 1:i=f;break;case 4:return r.label++,{value:f[1],done:!1};case 5:r.label++;u=f[1];f=[0];continue;case 7:f=r.ops.pop();r.trys.pop();continue;default:if(i=r.trys,!(i=i.length>0&&i[i.length-1])&&(6===f[0]||2===f[0])){r=0;continue}if(3===f[0]&&(!i||f[1]>i[0]&&f[1]<i[3])){r.label=f[1];break}if(6===f[0]&&r.label<i[1]){r.label=i[1];i=f;break}if(i&&r.label<i[2]){r.label=i[2];r.ops.push(f);break}i[2]&&r.ops.pop();r.trys.pop();continue}f=t.call(n,r)}catch(n){f=[6,n];u=0}finally{e=i=0}if(5&f[0])throw f[1];return{value:f[0]?f[1]:void 0,done:!0}}var e,u,i,o,r={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:f(0),"throw":f(1),"return":f(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o};Object.defineProperty(t,"__esModule",{value:!0});i(223);var k=i(7),l=i(6),r=i(8),f=i(1),d=i(2),g=i(3),nt=i(681),tt=i(13),it=i(18),e=i(4),o=i(0),u=i(5),s=i(11),a=i(35),rt=i(682),h=i(10),ut=i(174),ft=i(84),et=i(182),ot=i(173),st=i(117),ht=i(183),ct=i(683),lt=i(71),v=i(512),at=i(9),vt=i(687),c=function(n){function t(i,u,f){var e=n.call(this,i,"DynamicHierarchicalFacet",f)||this;return e.element=i,e.listenToQueryStateChange=!0,e.moreValuesAvailable=!1,e.isDynamicFacet=!0,e.isFieldValueCompatible=!0,e.isFieldValueHierarchical=!0,e.options=r.ComponentOptions.initComponentOptions(i,t,u),e.dynamicHierarchicalFacetQueryController=new nt.DynamicHierarchicalFacetQueryController(e),e.isCollapsed=e.options.enableCollapse&&e.options.collapsedByDefault,e.verifyCollapsingConfiguration(),e.values=new ct.DynamicHierarchicalFacetValues(e),ut.ResponsiveFacets.init(e.root,e,e.options),e.initDependsOnManager(),e.initBreadCrumbEvents(),e.initQueryEvents(),e.initQueryStateEvents(),e}return y(t,n),Object.defineProperty(t.prototype,"fieldName",{get:function(){return this.options.field.slice(1)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"facetType",{get:function(){return ht.FacetType.hierarchical},enumerable:!0,configurable:!0}),t.prototype.isCurrentlyDisplayed=function(){return f.$$(this.element).isVisible()},Object.defineProperty(t.prototype,"hasActiveValues",{get:function(){return this.values.hasSelectedValue},enumerable:!0,configurable:!0}),t.prototype.hasSelectedValue=function(n){var t=this.splitValue(n);return o.isEqual(t,this.values.selectedPath)},t.prototype.selectValue=function(n){this.selectPath(this.splitValue(n))},t.prototype.deselectValue=function(){this.clear()},t.prototype.getCaptionForStringValue=function(n){return this.getCaption(o.last(this.splitValue(n)))},t.prototype.initQueryEvents=function(){var n=this;this.bind.onRootElement(s.QueryEvents.doneBuildingQuery,function(t){return n.handleDoneBuildingQuery(t)});this.bind.onRootElement(s.QueryEvents.deferredQuerySuccess,function(t){return n.handleQuerySuccess(t.results)});this.bind.onRootElement(s.QueryEvents.duringQuery,function(){return n.ensureDom()});this.bind.onRootElement(s.QueryEvents.queryError,function(){return n.onNoValues()})},t.prototype.initBreadCrumbEvents=function(){var n=this;this.options.includeInBreadcrumb&&(this.bind.onRootElement(a.BreadcrumbEvents.populateBreadcrumb,function(t){return n.handlePopulateBreadcrumb(t)}),this.bind.onRootElement(a.BreadcrumbEvents.clearBreadcrumb,function(){return n.reset()}))},Object.defineProperty(t.prototype,"queryStateAttribute",{get:function(){return tt.QueryStateModel.getFacetId(this.options.id)},enumerable:!0,configurable:!0}),t.prototype.handleDoneBuildingQuery=function(n){this.dynamicFacetManager||(u.Assert.exists(n),u.Assert.exists(n.queryBuilder),this.putStateIntoQueryBuilder(n.queryBuilder),this.putStateIntoAnalytics())},t.prototype.verifyCollapsingConfiguration=function(){this.options.collapsedByDefault&&!this.options.enableCollapse&&this.logger.warn('Setting "collapseByDefault" to "true" has no effect when "enableCollapse" is set to "false"')},t.prototype.putStateIntoQueryBuilder=function(n){u.Assert.exists(n);this.dynamicHierarchicalFacetQueryController.putFacetIntoQueryBuilder(n)},t.prototype.putStateIntoAnalytics=function(){var n=this.usageAnalytics.getPendingSearchEvent();n&&n.addFacetState(this.analyticsFacetState)},t.prototype.scrollToTop=function(){this.options.enableScrollToTop&&st.ResultListUtils.scrollToTop(this.root)},t.prototype.updateAppearance=function(){this.header.toggleCollapse(this.isCollapsed);this.toggleSearchDisplay();f.$$(this.element).toggleClass("coveo-dynamic-hierarchical-facet-collapsed",this.isCollapsed);f.$$(this.element).toggleClass("coveo-hidden",!this.values.allFacetValues.length)},t.prototype.toggleSearchDisplay=function(){if(!1!==this.options.enableFacetSearch)return f.$$(this.search.element).toggleClass("coveo-hidden",this.isCollapsed)},t.prototype.handleQuerySuccess=function(n){if(!this.dynamicFacetManager)return e.Utils.isNullOrUndefined(n.facets)?this.notImplementedError():void this.handleQueryResults(n)},t.prototype.handleQueryResults=function(n){var t=o.findIndex(n.facets,{facetId:this.options.id}),i=-1!==t?n.facets[t]:null;this.position=i?t+1:void 0;i?this.onNewValues(i):this.onNoValues();this.header.hideLoading();this.updateQueryStateModel(this.values.selectedPath);this.values.render();this.updateAppearance()},t.prototype.splitValue=function(n){return n.trim().split(this.options.delimitingCharacter)},t.prototype.onNewValues=function(n){var i=this,t;(this.moreValuesAvailable=n.moreValuesAvailable,this.values.createFromResponse(n),this.options.customSort)&&(t=this.options.customSort.split(this.options.customSortDelimitingCharacter).map(function(n){return i.splitValue(n)}),this.values.reorderValues(t))},t.prototype.onNoValues=function(){this.moreValuesAvailable=!1;this.values.resetValues()},t.prototype.updateQueryStateModel=function(n){this.listenToQueryStateChange=!1;this.queryStateModel.set(this.queryStateAttribute,n);this.listenToQueryStateChange=!0},t.prototype.beforeSendingQuery=function(){this.header.showLoading()},t.prototype.triggerNewQuery=function(n){this.beforeSendingQuery();var t=n?{beforeExecuteQuery:n}:{ignoreWarningSearchEvent:!0};this.queryController.executeQuery(t)},t.prototype.triggerNewIsolatedQuery=function(n){return w(this,void 0,void 0,function(){var t,i;return b(this,function(r){switch(r.label){case 0:this.beforeSendingQuery();n&&n();r.label=1;case 1:return r.trys.push([1,3,,4]),[4,this.dynamicHierarchicalFacetQueryController.getQueryResults()];case 2:return t=r.sent(),this.handleQueryResults(t),[3,4];case 3:return i=r.sent(),this.header.hideLoading(),[3,4];case 4:return[2]}})})},t.prototype.showMoreValues=function(n){var t=this;void 0===n&&(n=this.options.numberOfValues);this.ensureDom();this.logger.info("Show more values");this.dynamicHierarchicalFacetQueryController.increaseNumberOfValuesToRequest(n);this.triggerNewIsolatedQuery(function(){return t.logAnalyticsFacetShowMoreLess(h.analyticsActionCauseList.dynamicFacetShowMore)})},t.prototype.showLessValues=function(){var n=this;this.ensureDom();this.logger.info("Show less values");this.dynamicHierarchicalFacetQueryController.resetNumberOfValuesToRequest();this.triggerNewIsolatedQuery(function(){return n.logAnalyticsFacetShowMoreLess(h.analyticsActionCauseList.dynamicFacetShowLess)})},t.prototype.selectPath=function(n){u.Assert.exists(n);u.Assert.isLargerThan(0,n.length);this.ensureDom();this.updateQueryStateModel(n);this.values.selectPath(n);this.logger.info("Toggle select facet value at path",n)},t.prototype.clear=function(){var n=this;this.reset();this.scrollToTop();this.triggerNewQuery(function(){return n.logAnalyticsEvent(h.analyticsActionCauseList.dynamicFacetClearAll)})},t.prototype.reset=function(){this.ensureDom();this.values.hasSelectedValue&&(this.enablePreventAutoSelectionFlag(),this.logger.info("Deselect facet value"),this.values.clearPath(),this.updateQueryStateModel([]))},t.prototype.toggleCollapse=function(){this.isCollapsed?this.expand():this.collapse()},t.prototype.expand=function(){if(!this.options.enableCollapse)return this.logger.warn('Calling expand() won\'t do anything on a facet that has the option "enableCollapse" set to "false"');this.isCollapsed&&(this.ensureDom(),this.logger.info("Expand facet values"),this.isCollapsed=!1,this.updateAppearance())},t.prototype.enableFreezeFacetOrderFlag=function(){this.dynamicHierarchicalFacetQueryController.enableFreezeFacetOrderFlag()},t.prototype.enablePreventAutoSelectionFlag=function(){this.dynamicHierarchicalFacetQueryController.enablePreventAutoSelectionFlag()},t.prototype.collapse=function(){if(!this.options.enableCollapse)return this.logger.warn('Calling collapse() won\'t do anything on a facet that has the option "enableCollapse" set to "false"');this.isCollapsed||(this.ensureDom(),this.logger.info("Collapse facet values"),this.isCollapsed=!0,this.updateAppearance())},t.prototype.createDom=function(){this.createAndAppendContent();this.updateAppearance()},t.prototype.getCaption=function(n){var t=this.options.valueCaption,i=t[n];return i||n},t.prototype.logAnalyticsEvent=function(n){this.usageAnalytics.logSearchEvent(n,this.analyticsFacetMeta)},Object.defineProperty(t.prototype,"analyticsFacetValue",{get:function(){return this.values.selectedPath.join(this.options.delimitingCharacter)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"analyticsFacetState",{get:function(){return this.values.hasSelectedValue?[{field:this.options.field.toString(),id:this.options.id,title:this.options.title,facetType:this.facetType,facetPosition:this.position,value:this.analyticsFacetValue,displayValue:this.analyticsFacetValue,state:lt.FacetValueState.selected,valuePosition:1}]:[]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"analyticsFacetMeta",{get:function(){return{facetField:this.options.field.toString(),facetId:this.options.id,facetTitle:this.options.title,facetValue:this.analyticsFacetValue}},enumerable:!0,configurable:!0}),t.prototype.createAndAppendContent=function(){this.createAndAppendHeader();this.createAndAppendSearch();this.createAndAppendValues()},t.prototype.createAndAppendHeader=function(){var n=this;this.header=new et.DynamicFacetHeader({id:this.options.id,title:this.options.title,enableCollapse:this.options.enableCollapse,headingLevel:this.options.headingLevel,clear:function(){return n.clear()},toggleCollapse:function(){return n.toggleCollapse()},expand:function(){return n.expand()},collapse:function(){return n.collapse()}});this.element.appendChild(this.header.element)},t.prototype.createAndAppendSearch=function(){!1!==this.options.enableFacetSearch&&(this.search=new vt.DynamicHierarchicalFacetSearch(this),this.element.appendChild(this.search.element))},t.prototype.createAndAppendValues=function(){this.element.appendChild(this.values.render())},t.prototype.pathIsValidForSelection=function(n){return!e.Utils.isNullOrUndefined(n)&&o.isArray(n)},t.prototype.handleQueryStateChanged=function(n){if(this.listenToQueryStateChange){var t=n.attributes[this.queryStateAttribute];this.pathIsValidForSelection(t)&&(e.Utils.arrayEqual(t,this.values.selectedPath)||(t.length?this.selectPath(t):this.reset()))}},t.prototype.initQueryStateEvents=function(){var n=this;this.queryStateModel.registerNewAttribute(this.queryStateAttribute,[]);this.bind.onQueryState(it.MODEL_EVENTS.CHANGE,void 0,function(t){return n.handleQueryStateChanged(t)})},t.prototype.initDependsOnManager=function(){var n=this,t={reset:function(){return n.reset()},ref:this};this.dependsOnManager=new ot.DependsOnManager(t)},t.prototype.notImplementedError=function(){this.logger.error("DynamicHierarchicalFacets are not supported by your current search endpoint. Disabling this component.");this.disable();this.updateAppearance()},t.prototype.handlePopulateBreadcrumb=function(n){if(u.Assert.exists(n),this.values.hasSelectedValue){var t=new rt.DynamicHierarchicalFacetBreadcrumb(this,{headingLevel:n.headingLevel});n.breadcrumbs.push({element:t.element})}},t.prototype.logAnalyticsFacetShowMoreLess=function(n){this.usageAnalytics.logCustomEvent(n,this.analyticsFacetMeta,this.element)},t.ID="DynamicHierarchicalFacet",t.doExport=function(){g.exportGlobally({DynamicHierarchicalFacet:t})},t.options=p({id:r.ComponentOptions.buildStringOption({postProcessing:function(n,t){return n||t.field},section:"CommonOptions"}),field:r.ComponentOptions.buildFieldOption({required:!0,section:"CommonOptions"}),title:r.ComponentOptions.buildLocalizedStringOption({localizedString:function(){return l.l("NoTitle")},section:"CommonOptions"}),numberOfValues:r.ComponentOptions.buildNumberOption({defaultValue:5,min:0,section:"CommonOptions"}),enableCollapse:r.ComponentOptions.buildBooleanOption({defaultValue:!0,section:"CommonOptions"}),collapsedByDefault:r.ComponentOptions.buildBooleanOption({defaultValue:!1,section:"CommonOptions",depend:"enableCollapse"}),enableScrollToTop:r.ComponentOptions.buildBooleanOption({defaultValue:!0,section:"CommonOptions"}),includeInBreadcrumb:r.ComponentOptions.buildBooleanOption({defaultValue:!0,section:"CommonOptions"}),injectionDepth:r.ComponentOptions.buildNumberOption({defaultValue:1e3,min:1e3}),enableMoreLess:r.ComponentOptions.buildBooleanOption({defaultValue:!0,section:"CommonOptions"}),enableFacetSearch:r.ComponentOptions.buildBooleanOption({section:"Filtering",defaultValue:!1}),delimitingCharacter:r.ComponentOptions.buildStringOption({defaultValue:"|",section:"CommonOptions"}),valueCaption:r.ComponentOptions.buildJsonOption({defaultValue:{}}),dependsOn:r.ComponentOptions.buildStringOption({section:"CommonOptions"}),dependsOnCondition:r.ComponentOptions.buildCustomOption(function(){return null},{depend:"dependsOn",section:"CommonOptions"}),filterFacetCount:r.ComponentOptions.buildBooleanOption({section:"Filtering"}),sortCriteria:r.ComponentOptions.buildStringOption({postProcessing:function(n){if(n)return n===v.FacetSortCriteria.alphanumeric||n===v.FacetSortCriteria.occurrences?n:void new at.Logger(n).warn('sortCriteria is not of the the allowed values: "alphanumeric", "occurrences"')},section:"Sorting"}),customSort:r.ComponentOptions.buildStringOption({section:"Sorting"}),customSortDelimitingCharacter:r.ComponentOptions.buildStringOption({section:"Sorting",depend:"customSort",postProcessing:function(n,t){return e.Utils.isNullOrUndefined(n)?","===t.delimitingCharacter?"|":",":n}}),clearLabel:r.ComponentOptions.buildLocalizedStringOption({localizedString:function(){return l.l("AllCategories")},section:"CommonOptions"}),basePath:r.ComponentOptions.buildListOption({defaultValue:[]}),headingLevel:r.ComponentOptions.buildNumberOption({defaultValue:2,min:0,max:6})},ft.ResponsiveFacetOptions),t}(k.Component);t.DynamicHierarchicalFacet=c;d.Initialization.registerAutoCreateComponent(c);c.doExport()},function(n,t,i){"use strict";var s=this&&this.__extends||function(){var n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])};return function(t,i){function r(){this.constructor=t}n(t,i);t.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),h=this&&this.__awaiter||function(n,t,i,r){return new(i||(i=Promise))(function(u,f){function o(n){try{e(r.next(n))}catch(n){f(n)}}function s(n){try{e(r.throw(n))}catch(n){f(n)}}function e(n){n.done?u(n.value):new i(function(t){t(n.value)}).then(o,s)}e((r=r.apply(n,t||[])).next())})},c=this&&this.__generator||function(n,t){function f(n){return function(t){return s([n,t])}}function s(f){if(e)throw new TypeError("Generator is already executing.");for(;r;)try{if(e=1,u&&(i=u[2&f[0]?"return":f[0]?"throw":"next"])&&!(i=i.call(u,f[1])).done)return i;switch(u=0,i&&(f=[0,i.value]),f[0]){case 0:case 1:i=f;break;case 4:return r.label++,{value:f[1],done:!1};case 5:r.label++;u=f[1];f=[0];continue;case 7:f=r.ops.pop();r.trys.pop();continue;default:if(i=r.trys,!(i=i.length>0&&i[i.length-1])&&(6===f[0]||2===f[0])){r=0;continue}if(3===f[0]&&(!i||f[1]>i[0]&&f[1]<i[3])){r.label=f[1];break}if(6===f[0]&&r.label<i[1]){r.label=i[1];i=f;break}if(i&&r.label<i[2]){r.label=i[2];r.ops.push(f);break}i[2]&&r.ops.pop();r.trys.pop();continue}f=t.call(n,r)}catch(n){f=[6,n];u=0}finally{e=i=0}if(5&f[0])throw f[1];return{value:f[0]?f[1]:void 0,done:!0}}var e,u,i,o,r={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:f(0),"throw":f(1),"return":f(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o};Object.defineProperty(t,"__esModule",{value:!0});i(223);var l=i(2),e=i(141),u=i(525),r=i(8),a=i(3),v=i(6),o=i(183),y=i(516),p=i(693),w=i(699),b=i(20),k=i(700),d=i(9),f=function(n){function t(i,u,f){var e=n.call(this,i,r.ComponentOptions.initComponentOptions(i,t,u),f,t.ID)||this;return e.element=i,e.options=u,e.isFieldValueCompatible=!1,e.disableUnavailableOptions(),e}return s(t,n),t.prototype.initValues=function(){this.values=new y.DynamicFacetValues(this,p.DynamicFacetRangeValueCreator)},t.prototype.initDynamicFacetQueryController=function(){this.dynamicFacetQueryController=new w.DynamicFacetRangeQueryController(this)},t.prototype.disableUnavailableOptions=function(){this.options.enableFacetSearch=!1;this.options.useLeadingWildcardInFacetSearch=!1;this.options.enableMoreLess=!1;this.options.valueCaption={};this.options.sortCriteria=void 0;this.options.customSort=void 0},Object.defineProperty(t.prototype,"facetType",{get:function(){return this.options.valueFormat===u.DynamicFacetRangeValueFormat.date?o.FacetType.dateRange:o.FacetType.numericalRange},enumerable:!0,configurable:!0}),t.prototype.showMoreValues=function(){this.logger.warn('The "showMoreValues" method is not available on the "DynamicFacetRange" component')},t.prototype.showLessValues=function(){this.logger.warn('The "showLessValues" method is not available on the "DynamicFacetRange" component')},t.prototype.triggerNewIsolatedQuery=function(){return h(this,void 0,void 0,function(){return c(this,function(){return this.logger.warn('The "triggerNewIsolatedQuery" method is not available on the "DynamicFacetRange" component'),[2]})})},t.ID="DynamicFacetRange",t.parent=e.DynamicFacet,t.doExport=function(){return a.exportGlobally({DynamicFacetRange:t})},t.options={valueSeparator:r.ComponentOptions.buildLocalizedStringOption({localizedString:function(){return v.l("To")},section:"CommonOptions"}),field:r.ComponentOptions.buildFieldOption({required:!0,section:"CommonOptions"}),valueFormat:r.ComponentOptions.buildStringOption({postProcessing:function(n,t){return u.isFacetRangeValueFormat(n)?n:-1!==t.field.indexOf("date")?u.DynamicFacetRangeValueFormat.date:u.DynamicFacetRangeValueFormat.number},section:"CommonOptions"}),numberOfDecimals:r.ComponentOptions.buildNumberOption(),currencySymbol:r.ComponentOptions.buildStringOption({section:"CommonOptions"}),ranges:r.ComponentOptions.buildJsonOption({section:"CommonOptions",postProcessing:function(n){return b.Utils.isNonEmptyArray(n)?n:[]}}),sortOrder:r.ComponentOptions.buildStringOption({postProcessing:function(n){if(n)return k.isFacetRangeSortOrder(n)?n:void new d.Logger(n).warn('sortOrder is not of the the allowed values: "ascending", "descending"')},section:"Sorting"})},t}(e.DynamicFacet);t.DynamicFacetRange=f;l.Initialization.registerAutoCreateComponent(f);f.doExport()},function(n,t,i){"use strict";var c=this&&this.__extends||function(){var n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])};return function(t,i){function r(){this.constructor=t}n(t,i);t.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var l=i(7),a=i(17),o=i(11),v=i(3),u=i(0),f=i(1),s=i(4),r=i(8),h=i(5),y=i(2),p=i(47),e=function(n){function t(i,u){var f=n.call(this,i,"DynamicFacetManager")||this;return f.options=u,f.childrenFacets=[],f.options=r.ComponentOptions.initComponentOptions(i,t,u),f.resetContainer(),f.prependContainer(),f.initEvents(),f}return c(t,n),Object.defineProperty(t.prototype,"enabledFacets",{get:function(){return this.childrenFacets.filter(function(n){return!n.disabled})},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"displayedFacets",{get:function(){return this.childrenFacets.filter(function(n){return n.isCurrentlyDisplayed()})},enumerable:!0,configurable:!0}),t.prototype.resetContainer=function(){this.containerElement&&f.$$(this.containerElement).remove();this.containerElement=f.$$("div",{className:"coveo-dynamic-facet-manager-container"}).el},t.prototype.prependContainer=function(){f.$$(this.element).prepend(this.containerElement)},t.prototype.initEvents=function(){var n=this;this.bind.onRootElement(a.InitializationEvents.afterComponentsInitialization,function(){return n.handleAfterComponentsInitialization()});this.bind.onRootElement(o.QueryEvents.doneBuildingQuery,function(t){return n.handleDoneBuildingQuery(t)});this.bind.onRootElement(o.QueryEvents.deferredQuerySuccess,function(t){return n.handleQuerySuccess(t)})},t.prototype.isDynamicFacet=function(n){return!!n.isDynamicFacet},Object.defineProperty(t.prototype,"allDynamicFacets",{get:function(){return p.ComponentsTypes.getAllFacetInstancesFromElement(this.element).filter(this.isDynamicFacet)},enumerable:!0,configurable:!0}),t.prototype.handleAfterComponentsInitialization=function(){var n=this;this.childrenFacets=this.allDynamicFacets;this.childrenFacets.forEach(function(t){t.dynamicFacetManager=n;n.containerElement.appendChild(t.element)});this.element.children.length>1&&this.logger.warn("DynamicFacetManager contains incompatible elements. Those elements may be moved in the DOM.\n        To prevent this warning, move those elements outside of the DynamicFacetManager.");this.childrenFacets.length||this.disable()},t.prototype.handleDoneBuildingQuery=function(n){h.Assert.exists(n);h.Assert.exists(n.queryBuilder);this.enabledFacets.forEach(function(t){t.putStateIntoQueryBuilder(n.queryBuilder);t.putStateIntoAnalytics()})},t.prototype.handleQuerySuccess=function(n){return s.Utils.isNullOrUndefined(n.results.facets)?this.notImplementedError():(this.enabledFacets.forEach(function(t){t.handleQueryResults(n.results)}),n.query.facetOptions&&n.query.facetOptions.freezeFacetOrder?this.callOnUpdateOnChildrenFacets():(this.options.enableReorder&&(this.options.compareFacets?this.sortFacetsWithCompareOption():this.sortFacetsWithResponseOrder(n.results.facets),this.reorderFacetsInDom()),this.respectMaximumExpandedFacetsThreshold(),void this.callOnUpdateOnChildrenFacets()))},t.prototype.callOnUpdateOnChildrenFacets=function(){var n=this;this.options.onUpdate&&this.childrenFacets.forEach(function(t,i){return n.options.onUpdate(t,i)})},t.prototype.sortFacetsWithResponseOrder=function(n){var i=this,t=n.map(function(n){var t=n.facetId;return i.getChildFacetWithId(t)}).filter(s.Utils.exists),r=u.without.apply(void 0,[this.childrenFacets].concat(t));this.childrenFacets=t.concat(r)},t.prototype.sortFacetsWithCompareOption=function(){this.childrenFacets=this.childrenFacets.sort(this.options.compareFacets)},t.prototype.reorderFacetsInDom=function(){this.resetContainer();var n=document.createDocumentFragment();this.childrenFacets.forEach(function(t){return n.appendChild(t.element)});this.containerElement.appendChild(n);this.prependContainer()},t.prototype.respectMaximumExpandedFacetsThreshold=function(){if(-1!==this.options.maximumNumberOfExpandedFacets){var n=u.partition(this.displayedFacets,function(n){return n.options.enableCollapse}),i=n[0],r=n[1],t=this.options.maximumNumberOfExpandedFacets-r.length;i.forEach(function(n){return t<1?n.collapse():n.options.collapsedByDefault?(n.logger.info('The facet has its "collapsedByDefault" option set to "true", which prevents the DynamicFacetManager from expanding it.',"While this configuration may be legitimate, it partially defeats the purpose of the dynamic navigation experience feature.","For more information, see https://docs.coveo.com/en/2917/."),n.collapse()):(t--,void n.expand())})}},t.prototype.getChildFacetWithId=function(n){return u.find(this.childrenFacets,function(t){return t.options.id===n})},t.prototype.notImplementedError=function(){this.logger.error("DynamicFacetManager is not supported by your current search endpoint. Disabling this component.");this.disable()},t.prototype.isCurrentlyDisplayed=function(){return!!u.find(this.childrenFacets,function(n){return n.isCurrentlyDisplayed()})},t.ID="DynamicFacetManager",t.doExport=function(){return v.exportGlobally({DynamicFacetManager:t})},t.options={enableReorder:r.ComponentOptions.buildBooleanOption({defaultValue:!0,section:"Filtering"}),onUpdate:r.ComponentOptions.buildCustomOption(function(){return null}),compareFacets:r.ComponentOptions.buildCustomOption(function(){return null}),maximumNumberOfExpandedFacets:r.ComponentOptions.buildNumberOption({defaultValue:4,min:-1})},t}(l.Component);t.DynamicFacetManager=e;y.Initialization.registerAutoCreateComponent(e);e.doExport()},function(n,t,i){"use strict";var h=this&&this.__extends||function(){var n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])};return function(t,i){function r(){this.constructor=t}n(t,i);t.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});i(701);var r=i(20),c=i(3),l=i(10),a=i(7),u=i(8),e=i(206),f=i(207),v=i(0),o=i(73),s=function(n){function t(i,r,f,e){var o=n.call(this,i,t.ID,f)||this;return o.element=i,o.options=r,o.result=e,o.options=u.ComponentOptions.initComponentOptions(i,t,r),o.addMissingTerms(),o}return h(t,n),Object.defineProperty(t.prototype,"allResultTerms",{get:function(){var n=this.result.absentTerms;return this.result.attachments&&(n=this.intersectAbsentTerms(n,this.result.attachments)),this.result.childResults&&(n=this.intersectAbsentTerms(n,this.result.childResults)),n},enumerable:!0,configurable:!0}),t.prototype.intersectAbsentTerms=function(n,t){return v.intersection.apply(void 0,[n].concat(t.map(function(n){return n.absentTerms})))},Object.defineProperty(t.prototype,"missingTerms",{get:function(){return this.absentTerms.concat(this.absentPhrases)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"absentTerms",{get:function(){for(var u,t,f=this,i=[],e=this.allResultTerms.filter(function(n){return!f.isMissingPhrase(n)}),n=0,r=e;n<r.length;n++)u=r[n],t=this.queryMatch(u),t&&i.push(t);return i},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"absentPhrases",{get:function(){for(var u=this,t=[],f=this.allResultTerms.filter(function(n){return u.isMissingPhrase(n)}),n=0,i=f;n<i.length;n++){var e=i[n],o=e.slice(1,-1),r=this.queryMatch(o,!0);r&&t.push(r)}return t},enumerable:!0,configurable:!0}),t.prototype.isMissingPhrase=function(n){return o.Utils.stringStartsWith(n,'"')&&o.Utils.stringEndsWith(n,'"')},t.prototype.queryMatch=function(n,t){void 0===t&&(t=!1);var u=this.createWordBoundaryDelimitedRegex(n),i=this.queryStateModel.get("q"),e=t?i.replace(f(this.breakingCharacters,"gi")," "):i,r=u.exec(e);return r?r[4]:null},t.prototype.addTermForcedToAppear=function(n){if(-1===this.missingTerms.indexOf(n))return void this.logger.warn('Method execution aborted because the term to inject in aq ("'+n+'") is not a missing term.',"Allowed missing terms: "+this.missingTerms.toString()+".");this.updateTermForcedToAppear();this.termForcedToAppear.push(n);this.queryStateModel.set("missingTerms",this.termForcedToAppear.slice())},t.prototype.updateTermForcedToAppear=function(){this.termForcedToAppear=this.queryStateModel.get("missingTerms").slice()},t.prototype.addMissingTerms=function(){var t=this,n;0!==this.missingTerms.length&&(n=this.buildContainer(),n.length>1&&(this.hideMissingTermsOverTheNumberOfResults(n),n.map(function(n){r.$$(t.element).append(n)})))},t.prototype.buildContainer=function(){var n=[];return n.push(this.buildCaption().el),this.buildMissingTerms().forEach(function(t){t&&n.push(t.el)}),n},t.prototype.buildCaption=function(){return r.$$("span",{className:"coveo-field-caption"},this.options.caption)},t.prototype.buildMissingTerms=function(){var n=this,t=this.absentTerms.filter(function(t){return n.isValidTerm(t)}),i=this.absentPhrases.filter(function(i){return n.isValidPhrase(i,t)});return t.concat(i).map(function(t){return n.makeTermClickableIfEnabled(t)})},t.prototype.executeNewQuery=function(n){void 0===n&&(n=this.queryStateModel.get("q"));this.queryController.executeQuery()},t.prototype.makeTermClickableIfEnabled=function(n){var t=this,i;return this.options.clickable?(i=r.$$("button",{className:"coveo-missing-term coveo-clickable",type:"button"},n),i.on("click",function(){t.addTermForcedToAppear(n);t.logAnalyticsAddMissingTerm(n);t.executeNewQuery(n)}),i):r.$$("span",{className:"coveo-missing-term"},n)},t.prototype.createWordBoundaryDelimitedRegex=function(n){return f(e.MissingTermManager.wordBoundary+"("+n+")"+e.MissingTermManager.wordBoundary,"gi")},t.prototype.containsFeaturedResults=function(n){return this.updateTermForcedToAppear(),-1!==this.termForcedToAppear.indexOf(n)},t.prototype.hideMissingTermsOverTheNumberOfResults=function(n){var e=this,t=n.filter(function(n){return"BUTTON"===n.tagName}),i,f,u;if(!(t.length<=this.options.numberOfTerms)){for(i=this.options.numberOfTerms;i<t.length;i++)r.$$(t[i]).hide();f=t.length-this.options.numberOfTerms;u=r.$$("button",{className:"coveo-missing-term-show-more coveo-clickable",type:"button"},r.l("NMore",[f]));u.on("click",function(){e.showAllHiddenMissingTerms()});n.push(u.el)}},t.prototype.showAllHiddenMissingTerms=function(){var i=r.$$(this.element).find(".coveo-missing-term-show-more"),t,n;for(i.parentNode.removeChild(i),t=r.$$(this.element).findAll(".coveo-missing-term"),n=this.options.numberOfTerms;n<t.length;n++)r.$$(t[n]).show(),t[n].removeAttribute("style")},t.prototype.isValidTerm=function(n){return this.isNonBoundaryTerm(n)&&!this.containsFeaturedResults(n)},t.prototype.isValidPhrase=function(n,t){var i=this;return t.every(function(t){return!i.createWordBoundaryDelimitedRegex(t).exec(n)})},Object.defineProperty(t.prototype,"breakingCharacters",{get:function(){return"[-'?*’.~=,/\\\\:`;_!&()]+"},enumerable:!0,configurable:!0}),t.prototype.isNonBoundaryTerm=function(n){var t="\\p{L}*"+this.breakingCharacters+"\\p{L}*",i=f(t,"gi");return(this.queryStateModel.get("q").match(i)||[]).every(function(t){return-1===t.indexOf(n)})},t.prototype.logAnalyticsAddMissingTerm=function(n){this.usageAnalytics.logSearchEvent(l.analyticsActionCauseList.addMissingTerm,{missingTerm:n})},t.ID="MissingTerms",t.options={clickable:u.ComponentOptions.buildBooleanOption({defaultValue:!0}),caption:u.ComponentOptions.buildLocalizedStringOption({localizedString:function(){return r.l("Missing")}}),numberOfTerms:u.ComponentOptions.buildNumberOption({defaultValue:5,min:1})},t.doExport=function(){c.exportGlobally({MissingTerms:t})},t}(a.Component);t.MissingTerms=s;r.Initialization.registerAutoCreateComponent(s)},function(n,t,i){"use strict";var l=this&&this.__extends||function(){var n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])};return function(t,i){function r(){this.constructor=t}n(t,i);t.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),a=this&&this.__assign||Object.assign||function(n){for(var t,r,i=1,u=arguments.length;i<u;i++){t=arguments[i];for(r in t)Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},f=this&&this.__awaiter||function(n,t,i,r){return new(i||(i=Promise))(function(u,f){function o(n){try{e(r.next(n))}catch(n){f(n)}}function s(n){try{e(r.throw(n))}catch(n){f(n)}}function e(n){n.done?u(n.value):new i(function(t){t(n.value)}).then(o,s)}e((r=r.apply(n,t||[])).next())})},e=this&&this.__generator||function(n,t){function f(n){return function(t){return s([n,t])}}function s(f){if(e)throw new TypeError("Generator is already executing.");for(;r;)try{if(e=1,u&&(i=u[2&f[0]?"return":f[0]?"throw":"next"])&&!(i=i.call(u,f[1])).done)return i;switch(u=0,i&&(f=[0,i.value]),f[0]){case 0:case 1:i=f;break;case 4:return r.label++,{value:f[1],done:!1};case 5:r.label++;u=f[1];f=[0];continue;case 7:f=r.ops.pop();r.trys.pop();continue;default:if(i=r.trys,!(i=i.length>0&&i[i.length-1])&&(6===f[0]||2===f[0])){r=0;continue}if(3===f[0]&&(!i||f[1]>i[0]&&f[1]<i[3])){r.label=f[1];break}if(6===f[0]&&r.label<i[1]){r.label=i[1];i=f;break}if(i&&r.label<i[2]){r.label=i[2];r.ops.push(f);break}i[2]&&r.ops.pop();r.trys.pop();continue}f=t.call(n,r)}catch(n){f=[6,n];u=0}finally{e=i=0}if(5&f[0])throw f[1];return{value:f[0]?f[1]:void 0,done:!0}}var e,u,i,o,r={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:f(0),"throw":f(1),"return":f(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o},o,r;Object.defineProperty(t,"__esModule",{value:!0});o=i(3);r=i(20);i(702);var v=i(62),y=i(472),s=i(70),h=i(10),p=i(196),u=i(509),c=function(n){function t(i,f,e){var o=n.call(this,i,t.ID,e)||this;return o.element=i,o.options=f,o.bindings=e,o.options=r.ComponentOptions.initComponentOptions(i,t,f),o.options.resultTemplate||(o.logger.warn("No template was provided for "+t.ID+", a default template was used instead."),o.options.resultTemplate=o.buildDefaultSearchResultPreviewTemplate()),o.bind.onRootElement(u.ResultPreviewsManagerEvents.updateResultPreviewsManagerOptions,function(n){return n.displayAfterDuration=Math.max(n.displayAfterDuration||0,o.options.executeQueryDelay)}),o.bind.onRootElement(u.ResultPreviewsManagerEvents.populateSearchResultPreviews,function(n){return o.populateSearchResultPreviews(n)}),o.omniboxAnalytics=o.searchInterface.getOmniboxAnalytics(),o}return l(t,n),t.prototype.buildDefaultSearchResultPreviewTemplate=function(){return r.HtmlTemplate.create(r.$$("div",{className:"result-template"},r.$$("div",{className:"coveo-result-frame coveo-default-result-preview"},r.$$("div",{className:r.Component.computeCssClassName(p.ImageFieldValue),"data-field":"@image"}),r.$$("a",{className:r.Component.computeCssClassName(s.ResultLink)}))).el)},Object.defineProperty(t.prototype,"templateToHtml",{get:function(){var n={searchInterface:this.searchInterface,queryStateModel:this.queryStateModel,resultTemplate:this.options.resultTemplate};return new y.TemplateToHtml(n)},enumerable:!0,configurable:!0}),t.prototype.populateSearchResultPreviews=function(n){n.previewsQueries.push(this.fetchSearchResultPreviews(n.suggestion))},t.prototype.fetchSearchResultPreviews=function(n){return f(this,void 0,void 0,function(){var i,t;return e(this,function(r){switch(r.label){case 0:return i=this.buildQuery(n),this.logShowQuerySuggestPreview(),[4,this.queryController.getEndpoint().search(i)];case 1:return t=r.sent(),t?[2,this.buildResultsPreview(n,t)]:[2,[]]}})})},t.prototype.buildQuery=function(n){var t=this.buildDefaultQuery(n);return r.$$(this.root).trigger(u.ResultPreviewsManagerEvents.buildingResultPreviewsQuery,{query:t}),t},t.prototype.buildDefaultQuery=function(n){var t=this.queryController.getLastQuery(),i=t.searchHub,r=t.pipeline,u=t.tab,f=t.locale,e=t.timezone,o=t.context,s=t.cq;return a({firstResult:0,searchHub:i,pipeline:r,tab:u,locale:f,timezone:e,context:o,cq:s,numberOfResults:this.options.numberOfPreviewResults,q:n.text||n.dom.innerText},n.advancedQuery&&{aq:n.advancedQuery})},t.prototype.buildResultsPreview=function(n,t){return f(this,void 0,void 0,function(){var i,r=this;return e(this,function(u){switch(u.label){case 0:return[4,this.templateToHtml.buildResults(t,"preview",[])];case 1:return i=u.sent(),i.length>0?[2,i.map(function(t,i){return r.buildResultPreview(n,t,i)})]:[2,[]]}})})},t.prototype.buildResultPreview=function(n,t,i){var f=this,u;return t.classList.add("coveo-preview-selectable"),u=t.querySelector(r.Component.computeSelectorForType(s.ResultLink.ID)),u&&(t.setAttribute("aria-label",u.textContent),u.setAttribute("role","link"),u.removeAttribute("aria-level")),{element:t,onSelect:function(){return f.handleSelect(n,t,i)}}},t.prototype.handleSelect=function(n,t,i){var u,f;this.logClickQuerySuggestPreview(n,i,t);u=r.$$(t).find("."+r.Component.computeCssClassNameForType("ResultLink"));u&&(f=r.Component.get(u),f.openLinkAsConfigured(),f.openLink())},t.prototype.logShowQuerySuggestPreview=function(){this.usageAnalytics.logSearchEvent(h.analyticsActionCauseList.showQuerySuggestPreview,this.omniboxAnalytics.buildCustomDataForPartialQueries())},t.prototype.logClickQuerySuggestPreview=function(n,t,i){this.usageAnalytics.logCustomEvent(h.analyticsActionCauseList.clickQuerySuggestPreview,{suggestion:n.text||n.dom.innerText,displayedRank:t},i)},t.ID="QuerySuggestPreview",t.doExport=function(){o.exportGlobally({QuerySuggestPreview:t})},t.options={resultTemplate:v.TemplateComponentOptions.buildTemplateOption(),numberOfPreviewResults:r.ComponentOptions.buildNumberOption({defaultValue:4,min:1,max:6}),executeQueryDelay:r.ComponentOptions.buildNumberOption({defaultValue:200})},t}(r.Component);t.QuerySuggestPreview=c;r.Initialization.registerAutoCreateComponent(c)},function(n,t,i){"use strict";var f=this&&this.__extends||function(){var n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])};return function(t,i){function r(){this.constructor=t}n(t,i);t.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var e=i(7),r=i(8),o=i(11),s=i(57),h=i(2),c=i(3),l=i(34),u=function(n){function t(i,u,f){var e=n.call(this,i,t.ID,f)||this;return e.element=i,e.options=u,e.bindings=f,e.options=r.ComponentOptions.initComponentOptions(i,t,u),e.bind.onRootElement(o.QueryEvents.doneBuildingQuery,e.handleDoneBuildingQuery),e.bind.onRootElement(l.OmniboxEvents.buildingQuerySuggest,e.handleBuildingQuerySuggest),e.bind.onRootElement(s.AnalyticsEvents.changeAnalyticsCustomData,e.handleChangeAnalytics),e}return f(t,n),t.prototype.handleDoneBuildingQuery=function(n){this.options.listing&&(n.queryBuilder.tab=this.options.listing,n.queryBuilder.addContextValue("listing",this.options.listing))},t.prototype.handleBuildingQuerySuggest=function(n){this.options.listing&&(n.payload.tab=this.options.listing,(n.payload.context||(n.payload.context={})).listing=this.options.listing)},t.prototype.handleChangeAnalytics=function(n){this.options.listing&&(n.originLevel2=this.options.listing)},t.ID="CommerceQuery",t.doExport=function(){c.exportGlobally({CommerceQuery:t})},t.options={listing:r.ComponentOptions.buildStringOption()},t}(e.Component);t.CommerceQuery=u;h.Initialization.registerAutoCreateComponent(u)},function(n,t,i){"use strict";var s=this&&this.__extends||function(){var n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])};return function(t,i){function r(){this.constructor=t}n(t,i);t.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});i(703);var h=i(0),c=i(3),f=i(11),l=i(18),e=i(13),r=i(1),u=i(7),a=i(8),v=i(2),y=i(17),p=i(195),w=i(63),b=i(6),o=function(n){function t(i,r,u){var o=n.call(this,i,t.ID,u)||this;return o.element=i,o.options=r,o.sortComponents=[],o.options=a.ComponentOptions.initComponentOptions(i,t,r),o.removeTabSupport(),o.bind.oneRootElement(y.InitializationEvents.afterInitialization,function(){return o.handleAfterInitialization()}),o.bind.onQueryState(l.MODEL_EVENTS.CHANGE_ONE,e.QUERY_STATE_ATTRIBUTES.SORT,function(n){return o.handleQueryStateChanged(n)}),o.bind.onRootElement(f.QueryEvents.querySuccess,function(n){return o.handleQuerySuccess(n)}),o.bind.onRootElement(f.QueryEvents.queryError,function(n){return o.handleQueryError(n)}),o}return s(t,n),t.prototype.handleAfterInitialization=function(){this.buildDropdown()},t.prototype.clearDropdown=function(){this.dropdown&&this.element.removeChild(this.dropdown.getElement());this.dropdown=null},t.prototype.buildDropdown=function(){var n=this;this.sortComponents=this.getEnabledSortComponents();this.clearDropdown();this.sortComponents.length&&(this.dropdown=new w.Dropdown(function(){return n.handleChange()},this.getValuesForDropdown(),function(t){return n.getCaptionForValue(t)},b.l("SortBy")),this.element.appendChild(this.dropdown.getElement()),this.update())},t.prototype.getEnabledSortComponents=function(){var n=this;return r.$$(this.element).findAll("."+u.Component.computeCssClassNameForType("Sort")).map(function(t){var i=u.Component.get(t,p.Sort);return 1==i.options.sortCriteria.length?i:void n.logger.warn("Each Sort component inside a SortDropdown should have only one sort criteria. Skipping "+i.options.caption+" in the SortDropdown.")}).filter(function(n){return n&&!n.disabled})},t.prototype.getValuesForDropdown=function(){return this.sortComponents.map(function(n){return n.options.sortCriteria.toString()})},t.prototype.handleQueryStateChanged=function(){this.update()},t.prototype.update=function(){if(this.dropdown){var n=this.queryStateModel.get(e.QueryStateModel.attributesEnum.sort);this.select(n)}},t.prototype.select=function(n,t){void 0===t&&(t=!1);var i=this.getSortIndex(n);i>-1&&this.dropdown.select(i,t);r.$$(this.dropdown.getElement()).toggleClass("coveo-selected",i>-1)},t.prototype.handleQuerySuccess=function(n){return n.results.results.length?(this.buildDropdown(),this.sortComponents.length?void this.showElement():this.hideElement()):this.hideElement()},t.prototype.handleQueryError=function(){this.hideElement()},t.prototype.handleChange=function(){var t=this.dropdown.getValue(),n=this.getSortIndex(t);n>-1&&this.sortComponents[n].selectAndExecuteQuery()},t.prototype.getCaptionForValue=function(n){var t=this.getSortIndex(n);return t>-1?this.sortComponents[t].options.caption:""},t.prototype.getSortIndex=function(n){return h.findIndex(this.sortComponents,function(t){return t.options.sortCriteria.toString()===n})},t.prototype.hideElement=function(){r.$$(this.element).hide()},t.prototype.showElement=function(){r.$$(this.element).show()},t.ID="SortDropdown",t.options={},t.doExport=function(){c.exportGlobally({SortDropdown:t})},t}(u.Component);t.SortDropdown=o;v.Initialization.registerAutoCreateComponent(o)},function(n,t,i){"use strict";var w=this&&this.__extends||function(){var n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])};return function(t,i){function r(){this.constructor=t}n(t,i);t.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),b=this&&this.__assign||Object.assign||function(n){for(var t,r,i=1,u=arguments.length;i<u;i++){t=arguments[i];for(r in t)Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},l=this&&this.__awaiter||function(n,t,i,r){return new(i||(i=Promise))(function(u,f){function o(n){try{e(r.next(n))}catch(n){f(n)}}function s(n){try{e(r.throw(n))}catch(n){f(n)}}function e(n){n.done?u(n.value):new i(function(t){t(n.value)}).then(o,s)}e((r=r.apply(n,t||[])).next())})},a=this&&this.__generator||function(n,t){function f(n){return function(t){return s([n,t])}}function s(f){if(e)throw new TypeError("Generator is already executing.");for(;r;)try{if(e=1,u&&(i=u[2&f[0]?"return":f[0]?"throw":"next"])&&!(i=i.call(u,f[1])).done)return i;switch(u=0,i&&(f=[0,i.value]),f[0]){case 0:case 1:i=f;break;case 4:return r.label++,{value:f[1],done:!1};case 5:r.label++;u=f[1];f=[0];continue;case 7:f=r.ops.pop();r.trys.pop();continue;default:if(i=r.trys,!(i=i.length>0&&i[i.length-1])&&(6===f[0]||2===f[0])){r=0;continue}if(3===f[0]&&(!i||f[1]>i[0]&&f[1]<i[3])){r.label=f[1];break}if(6===f[0]&&r.label<i[1]){r.label=i[1];i=f;break}if(i&&r.label<i[2]){r.label=i[2];r.ops.push(f);break}i[2]&&r.ops.pop();r.trys.pop();continue}f=t.call(n,r)}catch(n){f=[6,n];u=0}finally{e=i=0}if(5&f[0])throw f[1];return{value:f[0]?f[1]:void 0,done:!0}}var e,u,i,o,r={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:f(0),"throw":f(1),"return":f(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o},c;Object.defineProperty(t,"__esModule",{value:!0});var k=i(26),d=i(3),g=i(7),u=i(20);i(704);var f=i(0),nt=i(705),r=i(10),tt=i(706),it=i(707),v=i(6),rt=i(522),o=i(4),e=i(8),s=i(229),ut=i(70),ft=[{analytics:r.AnalyticsSmartSnippetFeedbackReason.DoesNotAnswer,localeKey:"UsefulnessFeedbackDoesNotAnswer"},{analytics:r.AnalyticsSmartSnippetFeedbackReason.PartiallyAnswers,localeKey:"UsefulnessFeedbackPartiallyAnswers"},{analytics:r.AnalyticsSmartSnippetFeedbackReason.WasNotAQuestion,localeKey:"UsefulnessFeedbackWasNotAQuestion"},{analytics:r.AnalyticsSmartSnippetFeedbackReason.Other,localeKey:"Other",hasDetails:!0}],y="coveo-smart-snippet",h=y+"-content-wrapper",p=y+"-source";t.SmartSnippetClassNames={QUESTION_CLASSNAME:"coveo-smart-snippet-question",ANSWER_CONTAINER_CLASSNAME:"coveo-smart-snippet-answer",HAS_ANSWER_CLASSNAME:"coveo-smart-snippet-has-answer",SHADOW_CLASSNAME:"coveo-smart-snippet-content",CONTENT_CLASSNAME:h,SOURCE_CLASSNAME:p,SOURCE_TITLE_CLASSNAME:"coveo-smart-snippet-source-title",SOURCE_URL_CLASSNAME:"coveo-smart-snippet-source-url"};c=function(n){function t(i,r,f,o){void 0===o&&(o=k.ModalBox);var s=n.call(this,i,t.ID,f)||this;return s.element=i,s.options=r,s.ModalBox=o,s.lastRenderedResult=null,s.options=e.ComponentOptions.initComponentOptions(i,t,r),s.bind.onRootElement(u.QueryEvents.deferredQuerySuccess,function(n){return s.handleQuerySuccess(n)}),s}return w(t,n),Object.defineProperty(t.prototype,"loading",{get:function(){return this.shadowLoading},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"style",{get:function(){var n=u.$$(this.element).children().filter(function(n){return n instanceof HTMLScriptElement&&"text/css"===n.type.toLowerCase()}).map(function(n){return n.innerHTML});return n.length?n.join("\n"):null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hasAnswer",{set:function(n){u.$$(this.element).toggleClass("coveo-smart-snippet-has-answer",n)},enumerable:!0,configurable:!0}),t.prototype.createDom=function(){var n=this;this.element.appendChild(this.buildAnswerContainer());this.feedbackBanner=new nt.UserFeedbackBanner(function(t){return t?n.sendLikeSmartSnippetAnalytics():n.sendDislikeSmartSnippetAnalytics()},function(){return n.openExplanationModal()});this.element.appendChild(this.feedbackBanner.build());this.explanationModal=new it.ExplanationModal({reasons:ft.map(function(t){return{label:v.l(t.localeKey),id:t.analytics.replace(/_/g,"-"),onSelect:function(){return n.sendExplanationAnalytics(t.analytics,n.explanationModal.details)},hasDetails:t.hasDetails}}),onClosed:function(){return n.sendCloseFeedbackModalAnalytics()},ownerElement:this.searchInterface.options.modalContainer,modalBoxModule:this.ModalBox})},t.prototype.buildAnswerContainer=function(){return u.$$("div",{className:"coveo-smart-snippet-answer"},this.buildQuestion(),this.buildShadow(),this.buildHeightLimiter(),this.buildSourceContainer()).el},t.prototype.buildQuestion=function(){return this.questionContainer=u.$$("div",{className:"coveo-smart-snippet-question"}).el},t.prototype.buildShadow=function(){var n=this;return this.shadowContainer=u.$$("div",{className:"coveo-smart-snippet-content"}).el,this.snippetContainer=u.$$("section",{className:h}).el,this.shadowLoading=rt.attachShadow(this.shadowContainer,{mode:"open",title:v.l("AnswerSnippet"),onSizeChanged:function(){return n.handleAnswerSizeChanged()},useIFrame:this.options.useIFrame}).then(function(t){t.appendChild(n.snippetContainer);var i=n.buildStyle();return t.appendChild(i),t}),this.shadowContainer},t.prototype.buildHeightLimiter=function(){var n=this;return(this.heightLimiter=new tt.HeightLimiter(this.shadowContainer,this.shadowContainer.childNodes.item(0),this.options.maximumSnippetHeight,function(t){return t?n.sendExpandSmartSnippetAnalytics():n.sendCollapseSmartSnippetAnalytics()})).toggleButton},t.prototype.buildSourceContainer=function(){return this.sourceContainer=u.$$("div",{className:p}).el},t.prototype.buildStyle=function(){var t=o.Utils.isNullOrUndefined(this.style)?s.getDefaultSnippetStyle(h):this.style,n=document.createElement("style");return n.innerHTML=t,n},t.prototype.handleAnswerSizeChanged=function(){this.heightLimiter.onContentHeightChanged()},t.prototype.getCorrespondingResult=function(n){var t=this.queryController.getLastResults().results,i=f.flatten(f.map(t,function(n){return n.childResults})),r=f.flatten(f.map(t,function(n){return n.attachments}));return f.find(f.compact(t.concat(i,r)),function(t){return t.raw[n.documentId.contentIdKey]===n.documentId.contentIdValue})},t.prototype.handleQuerySuccess=function(n){return l(this,void 0,void 0,function(){var t;return a(this,function(i){switch(i.label){case 0:return t=n.results.questionAnswer,this.containsQuestionAnswer(t)?(this.hasAnswer=!0,this.searchUid=n.results.searchUid,[4,this.render(t)]):(this.hasAnswer=!1,[2]);case 1:return i.sent(),[2]}})})},t.prototype.containsQuestionAnswer=function(n){return n&&n.question&&n.answerSnippet},t.prototype.render=function(n){return l(this,void 0,void 0,function(){return a(this,function(){return this.ensureDom(),this.feedbackBanner.reset(),this.questionContainer.innerText=n.question,this.renderSnippet(n),this.lastRenderedResult=this.getCorrespondingResult(n),this.lastRenderedResult?this.renderSource():this.lastRenderedResult=null,[2]})})},t.prototype.renderSnippet=function(n){var t=this;this.snippetContainer.innerHTML=s.getSanitizedAnswerSnippet(n);s.transformSnippetLinks(this.snippetContainer,this.options.alwaysOpenInNewWindow,function(n){return t.sendClickSnippetLinkAnalytics(n)})},t.prototype.renderSource=function(){var n=u.$$(this.sourceContainer);n.empty();n.append(this.renderSourceUrl().el);n.append(this.renderSourceTitle().el)},t.prototype.renderSourceTitle=function(){var n=this.buildLink("coveo-smart-snippet-source-title");return n.text(o.Utils.getFieldValue(this.lastRenderedResult,this.options.titleField)),n},t.prototype.renderSourceUrl=function(){var n=this.buildLink("coveo-smart-snippet-source-url");return n.text(n.el.href),n},t.prototype.buildLink=function(n){var i=this,t=u.$$("a",{className:"CoveoResultLink"});return t.addClass(n),new ut.ResultLink(t.el,{hrefTemplate:this.options.hrefTemplate,logAnalytics:function(n){return i.sendClickSourceAnalytics(t.el,n)},alwaysOpenInNewWindow:this.options.alwaysOpenInNewWindow},b({},this.getBindings(),{resultElement:this.element}),this.lastRenderedResult),t},t.prototype.openExplanationModal=function(){this.sendOpenFeedbackModalAnalytics();this.explanationModal.open(this.feedbackBanner.explainWhy)},t.prototype.sendLikeSmartSnippetAnalytics=function(){return this.usageAnalytics.logCustomEvent(r.analyticsActionCauseList.likeSmartSnippet,{searchQueryUid:this.searchUid},this.element)},t.prototype.sendDislikeSmartSnippetAnalytics=function(){return this.usageAnalytics.logCustomEvent(r.analyticsActionCauseList.dislikeSmartSnippet,{searchQueryUid:this.searchUid},this.element)},t.prototype.sendExpandSmartSnippetAnalytics=function(){return this.usageAnalytics.logCustomEvent(r.analyticsActionCauseList.expandSmartSnippet,{searchQueryUid:this.searchUid},this.element)},t.prototype.sendCollapseSmartSnippetAnalytics=function(){return this.usageAnalytics.logCustomEvent(r.analyticsActionCauseList.collapseSmartSnippet,{searchQueryUid:this.searchUid},this.element)},t.prototype.sendOpenFeedbackModalAnalytics=function(){return this.usageAnalytics.logCustomEvent(r.analyticsActionCauseList.openSmartSnippetFeedbackModal,{searchQueryUid:this.searchUid},this.element)},t.prototype.sendCloseFeedbackModalAnalytics=function(){return this.usageAnalytics.logCustomEvent(r.analyticsActionCauseList.closeSmartSnippetFeedbackModal,{searchQueryUid:this.searchUid},this.element)},t.prototype.sendExplanationAnalytics=function(n,t){return this.usageAnalytics.logCustomEvent(r.analyticsActionCauseList.sendSmartSnippetReason,{searchQueryUid:this.searchUid,reason:n,details:t},this.element)},t.prototype.sendClickSourceAnalytics=function(n,t){return this.usageAnalytics.logClickEvent(r.analyticsActionCauseList.openSmartSnippetSource,{searchQueryUid:this.searchUid,documentTitle:this.lastRenderedResult.title,author:o.Utils.getFieldValue(this.lastRenderedResult,"author"),documentURL:t},this.lastRenderedResult,n)},t.prototype.sendClickSnippetLinkAnalytics=function(n){return this.usageAnalytics.logClickEvent(r.analyticsActionCauseList.openSmartSnippetInlineLink,{searchQueryUid:this.searchUid,linkText:n.innerText,linkURL:n.href},this.lastRenderedResult,n)},t.ID="SmartSnippet",t.doExport=function(){d.exportGlobally({SmartSnippet:t})},t.options={maximumSnippetHeight:e.ComponentOptions.buildNumberOption({defaultValue:250,min:0}),titleField:e.ComponentOptions.buildFieldOption({defaultValue:"@title"}),hrefTemplate:e.ComponentOptions.buildStringOption(),alwaysOpenInNewWindow:e.ComponentOptions.buildBooleanOption({defaultValue:!1}),useIFrame:e.ComponentOptions.buildBooleanOption({defaultValue:!0})},t}(g.Component);t.SmartSnippet=c;u.Initialization.registerAutoCreateComponent(c)},function(n,t,i){"use strict";var h=this&&this.__extends||function(){var n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])};return function(t,i){function r(){this.constructor=t}n(t,i);t.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),f;Object.defineProperty(t,"__esModule",{value:!0});i(709);var c=i(7),l=i(3),a=i(11),u=i(1),e=i(0),s=i(710),v=i(6),y=i(2),p=i(4),w=i(229),r=i(8),o="coveo-smart-snippet-suggestions-questions-title";t.SmartSnippetSuggestionsClassNames={HAS_QUESTIONS_CLASSNAME:"coveo-smart-snippet-suggestions-has-questions",QUESTIONS_LIST_CLASSNAME:"coveo-smart-snippet-suggestions-questions",QUESTIONS_LIST_TITLE_CLASSNAME:o};f=function(n){function t(i,u,f){var s=n.call(this,i,t.ID,f)||this;return s.element=i,s.options=u,s.titleId=e.uniqueId(o),s.options=r.ComponentOptions.initComponentOptions(i,t,u),s.bind.onRootElement(a.QueryEvents.deferredQuerySuccess,function(n){return s.handleQuerySuccess(n)}),s}return h(t,n),Object.defineProperty(t.prototype,"loading",{get:function(){return this.contentLoaded},enumerable:!0,configurable:!0}),t.prototype.getCorrespondingResult=function(n){return e.find(this.queryController.getLastResults().results,function(t){return t.raw[n.documentId.contentIdKey]===n.documentId.contentIdValue})},t.prototype.handleQuerySuccess=function(n){var t=n.results.questionAnswer,i=!(!t||!t.relatedQuestions.length);if(u.$$(this.element).toggleClass("coveo-smart-snippet-suggestions-has-questions",i),i){if(this.searchUid=n.results.searchUid,this.renderedQuestionAnswer&&e.isEqual(t,this.renderedQuestionAnswer))return;this.detachContent();this.element.appendChild((this.title=this.buildTitle()).el);this.element.appendChild((this.questionAnswers=this.buildQuestionAnswers(t.relatedQuestions)).el)}else this.detachContent();this.renderedQuestionAnswer=t},t.prototype.detachContent=function(){this.title&&this.title.detach();this.questionAnswers&&this.questionAnswers.detach();this.title=this.questionAnswers=null},t.prototype.buildTitle=function(){return u.$$("span",{className:o,id:this.titleId},v.l("SuggestedQuestions"))},t.prototype.buildQuestionAnswers=function(n){var t=this,i=this.getInnerCSS(),r=n.map(function(n){return new s.SmartSnippetCollapsibleSuggestion({questionAnswer:n,bindings:t.getBindings(),innerCSS:p.Utils.isNullOrUndefined(i)?w.getDefaultSnippetStyle(s.SmartSnippetCollapsibleSuggestionClassNames.RAW_CONTENT_CLASSNAME):i,searchUid:t.searchUid,titleField:t.options.titleField,hrefTemplate:t.options.hrefTemplate,alwaysOpenInNewWindow:t.options.alwaysOpenInNewWindow,source:t.getCorrespondingResult(n),useIFrame:t.options.useIFrame})}),f=u.$$.apply(void 0,["ul",{className:"coveo-smart-snippet-suggestions-questions",ariaLabelledby:this.titleId}].concat(r.map(function(n){return n.build()})));return this.contentLoaded=Promise.all(r.map(function(n){return n.loading.then(function(){return n})})),f},t.prototype.getInnerCSS=function(){var n=u.$$(this.element).children().filter(function(n){return n instanceof HTMLScriptElement&&"text/css"===n.type.toLowerCase()}).map(function(n){return n.innerHTML});return n.length?n.join("\n"):null},t.ID="SmartSnippetSuggestions",t.doExport=function(){l.exportGlobally({SmartSnippetSuggestions:t})},t.options={titleField:r.ComponentOptions.buildFieldOption({defaultValue:"@title"}),hrefTemplate:r.ComponentOptions.buildStringOption(),alwaysOpenInNewWindow:r.ComponentOptions.buildBooleanOption({defaultValue:!1}),useIFrame:r.ComponentOptions.buildBooleanOption({defaultValue:!0})},t}(c.Component);t.SmartSnippetSuggestions=f;y.Initialization.registerAutoCreateComponent(f);f.doExport()},function(n,t,i){"use strict";n.exports=i(301).polyfill()},function(n,t,i){(function(t,i){!function(t,i){n.exports=i()}(0,function(){"use strict";function at(n){var t=typeof n;return null!==n&&("object"===t||"function"===t)}function it(n){return"function"==typeof n}function vt(n){tt=n}function yt(n){e=n}function pt(){return void 0!==nt?function(){nt(o)}:w()}function w(){var n=setTimeout;return function(){return n(o,1)}}function o(){for(var n=0;n<v;n+=2)h[n](h[n+1]),h[n]=void 0,h[n+1]=void 0;v=0}function b(n,t){var u=this,i=new this.constructor(s),r,f;return void 0===i[p]&&et(i),r=u._state,r?(f=arguments[r-1],e(function(){return ft(r,i,f,u._result)})):d(u,i,n,t),i}function k(n){var i=this,t;return n&&"object"==typeof n&&n.constructor===i?n:(t=new i(s),a(t,n),t)}function s(){}function wt(){return new TypeError("You cannot resolve a promise with itself")}function bt(){return new TypeError("A promises callback cannot return that same promise.")}function rt(n){try{return n.then}catch(n){return f.error=n,f}}function kt(n,t,i,r){try{n.call(t,i,r)}catch(n){return n}}function dt(t,i,r){e(function(t){var f=!1,e=kt(r,i,function(n){f||(f=!0,i!==n?a(t,n):u(t,n))},function(i){f||(f=!0,n(t,i))},"Settle: "+(t._label||" unknown promise"));!f&&e&&(f=!0,n(t,e))},t)}function gt(t,i){i._state===y?u(t,i._result):i._state===l?n(t,i._result):d(i,void 0,function(n){return a(t,n)},function(i){return n(t,i)})}function ut(t,i,r){i.constructor===t.constructor&&r===b&&i.constructor.resolve===k?gt(t,i):r===f?(n(t,f.error),f.error=null):void 0===r?u(t,i):it(r)?dt(t,i,r):u(t,i)}function a(t,i){t===i?n(t,wt()):at(i)?ut(t,i,rt(i)):u(t,i)}function ni(n){n._onerror&&n._onerror(n._result);g(n)}function u(n,t){n._state===c&&(n._result=t,n._state=y,0!==n._subscribers.length&&e(g,n))}function n(n,t){n._state===c&&(n._state=l,n._result=t,e(ni,n))}function d(n,t,i,r){var u=n._subscribers,f=u.length;n._onerror=null;u[f]=t;u[f+y]=i;u[f+l]=r;0===f&&n._state&&e(g,n)}function g(n){var t=n._subscribers,f=n._state;if(0!==t.length){for(var r=void 0,u=void 0,e=n._result,i=0;i<t.length;i+=3)r=t[i],u=t[i+f],r?ft(f,r,u,e):u(e);n._subscribers.length=0}}function ti(n,t){try{return n(t)}catch(n){return f.error=n,f}}function ft(t,i,r,e){var h=it(r),o=void 0,v=void 0,s=void 0,p=void 0;if(h){if(o=ti(r,e),o===f?(p=!0,v=o.error,o.error=null):s=!0,i===o)return void n(i,bt())}else o=e,s=!0;i._state!==c||(h&&s?a(i,o):p?n(i,v):t===y?u(i,o):t===l&&n(i,o))}function ii(t,i){try{i(function(n){a(t,n)},function(i){n(t,i)})}catch(i){n(t,i)}}function ri(){return lt++}function et(n){n[p]=lt++;n._state=void 0;n._result=void 0;n._subscribers=[]}function ui(){return new Error("Array Methods must be provided an Array")}function fi(n){return new pi(this,n).promise}function ei(n){var t=this;return new t(ot(n)?function(i,r){for(var f=n.length,u=0;u<f;u++)t.resolve(n[u]).then(i,r)}:function(n,t){return t(new TypeError("You must pass an array to race."))})}function oi(t){var r=this,i=new r(s);return n(i,t),i}function si(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor");}function hi(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.");}function ci(){var n=void 0,t,u;if(void 0!==i)n=i;else if("undefined"!=typeof self)n=self;else try{n=Function("return this")()}catch(n){throw new Error("polyfill failed because global object is unavailable in this environment");}if(t=n.Promise,t){u=null;try{u=Object.prototype.toString.call(t.resolve())}catch(n){}if("[object Promise]"===u&&!t.cast)return}n.Promise=r}var li=Array.isArray?Array.isArray:function(n){return"[object Array]"===Object.prototype.toString.call(n)};var ot=li,v=0,nt=void 0,tt=void 0,e=function(n,t){h[v]=n;h[v+1]=t;2===(v+=2)&&(tt?tt(o):yi())},st="undefined"!=typeof window?window:void 0,ht=st||{},ct=ht.MutationObserver||ht.WebKitMutationObserver,ai="undefined"==typeof self&&void 0!==t&&"[object process]"==={}.toString.call(t),vi="undefined"!=typeof Uint8ClampedArray&&"undefined"!=typeof importScripts&&"undefined"!=typeof MessageChannel,h=new Array(1e3),yi=ai?function(){return function(){return t.nextTick(o)}}():ct?function(){var n=0,i=new ct(o),t=document.createTextNode("");return i.observe(t,{characterData:!0}),function(){t.data=n=++n%2}}():vi?function(){var n=new MessageChannel;return n.port1.onmessage=o,function(){return n.port2.postMessage(0)}}():void 0===st?function(){try{var n=Function("return this")().require("vertx");return nt=n.runOnLoop||n.runOnContext,pt()}catch(n){return w()}}():w();var p=Math.random().toString(36).substring(2),c=void 0,y=1,l=2,f={error:null},lt=0,pi=function(){function t(t,i){this._instanceConstructor=t;this.promise=new t(s);this.promise[p]||et(this.promise);ot(i)?(this.length=i.length,this._remaining=i.length,this._result=new Array(this.length),0===this.length?u(this.promise,this._result):(this.length=this.length||0,this._enumerate(i),0===this._remaining&&u(this.promise,this._result))):n(this.promise,ui())}return t.prototype._enumerate=function(n){for(var t=0;this._state===c&&t<n.length;t++)this._eachEntry(n[t],t)},t.prototype._eachEntry=function(n,t){var i=this._instanceConstructor,e=i.resolve,u,f;e===k?(u=rt(n),u===b&&n._state!==c?this._settledAt(n._state,t,n._result):"function"!=typeof u?(this._remaining--,this._result[t]=n):i===r?(f=new i(s),ut(f,n,u),this._willSettleAt(f,t)):this._willSettleAt(new i(function(t){return t(n)}),t)):this._willSettleAt(e(n),t)},t.prototype._settledAt=function(t,i,r){var f=this.promise;f._state===c&&(this._remaining--,t===l?n(f,r):this._result[i]=r);0===this._remaining&&u(f,this._result)},t.prototype._willSettleAt=function(n,t){var i=this;d(n,void 0,function(n){return i._settledAt(y,t,n)},function(n){return i._settledAt(l,t,n)})},t}(),r=function(){function n(t){this[p]=ri();this._result=this._state=void 0;this._subscribers=[];s!==t&&("function"!=typeof t&&si(),this instanceof n?ii(this,t):hi())}return n.prototype.catch=function(n){return this.then(null,n)},n.prototype.finally=function(n){var t=this,i=t.constructor;return t.then(function(t){return i.resolve(n()).then(function(){return t})},function(t){return i.resolve(n()).then(function(){throw t;})})},n}();return r.prototype.then=b,r.all=fi,r.race=ei,r.resolve=k,r.reject=oi,r._setScheduler=vt,r._setAsap=yt,r._asap=e,r.polyfill=ci,r.Promise=r,r})}).call(t,i(202),i(75))},function(n,t,i){"use strict";var r,u,f;Object.defineProperty(t,"__esModule",{value:!0});i(303).shim();i(304).customEventPolyfill();r=i(103);t.version=r.version;u=i(53);t.SearchEndpoint=u.SearchEndpoint,function(n){for(var i in n)t.hasOwnProperty(i)||(t[i]=n[i])}(i(26));i(151).defaultLanguage();f=i(151);t.setLanguageAfterPageLoaded=f.setLanguageAfterPageLoaded},function(n,t){"use strict";function i(){var n=function(n){"function"!=typeof n.prototype.finally&&(n.prototype.finally=function(n){var t=this.constructor;return this.then(function(i){return t.resolve(n()).then(function(){return i})},function(i){return t.resolve(n()).then(function(){throw i;})})});var t=function(n){n.then(null,function(n){setTimeout(function(){throw n;},0)})};"function"!=typeof n.prototype.done&&(n.prototype.done=function(){var n=arguments.length?this.then.apply(this,arguments):this;return t(n),this});"function"!=typeof n.prototype.fail&&(n.prototype.fail=function(){var n=arguments.length?this.catch.apply(this,arguments):this;return t(n),this})},t=window.Promise,i=Promise;t&&n(t);i&&n(i)}Object.defineProperty(t,"__esModule",{value:!0});t.shim=i},function(n,t){"use strict";function i(){if("function"!=typeof window.CustomEvent){var n=function(n,t){t=t||{bubbles:!1,cancelable:!1,detail:void 0};var i=document.createEvent("CustomEvent");return i.initCustomEvent(n,t.bubbles,t.cancelable,t.detail),i};n.prototype=window.Event.prototype;window.CustomEvent=n}}Object.defineProperty(t,"__esModule",{value:!0});t.customEventPolyfill=i},function(){},function(n){n.exports=function(n){var t="undefined"!=typeof window&&window.location,i,r;if(!t)throw new Error("fixUrls requires window.location");return!n||"string"!=typeof n?n:(i=t.protocol+"//"+t.host,r=i+t.pathname.replace(/\/[^\/]*$/,"/"),n.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi,function(n,t){var u=t.trim().replace(/^"(.*)"$/,function(n,t){return t}).replace(/^'(.*)'$/,function(n,t){return t}),f;return/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/)/i.test(u)?n:(f=0===u.indexOf("//")?u:0===u.indexOf("/")?i+u:r+u.replace(/^\.\//,""),"url("+JSON.stringify(f)+")")}))}},function(n,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=i(5),u=function(){function n(n,t){this.message=n;this.status=t;r.Assert.exists(n);r.Assert.exists(t);this.name=this.type="Ajax Error (status: "+t+")"}return n}();t.AjaxError=u},function(n,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function n(n){this.provider=n;this.isMissingAuthentication=!0;this.name=this.type=this.message="Missing Authentication (provider: "+n+")"}return n}();t.MissingAuthenticationError=i},function(n,t,i){"use strict";var o=i(145),r,u,f,e;t.analytics=o;r=i(312);t.SimpleAnalytics=r;u=i(146);t.history=u;f=i(315);t.donottrack=f;e=i(104);t.storage=e},function(n,t){"use strict";var i=function(){function n(){}return n.set=function(t,i,r){var f,s,e,u,o;r?(e=new Date,e.setTime(e.getTime()+r),u="; expires="+e.toGMTString()):u="";o=location.hostname;-1===o.indexOf(".")?document.cookie=t+"="+i+u+"; path=/":(s=o.split("."),s.shift(),f="."+s.join("."),document.cookie=t+"="+i+u+"; path=/; domain="+f,null!=n.get(t)&&n.get(t)==i||(f="."+o,document.cookie=t+"="+i+u+"; path=/; domain="+f))},n.get=function(n){for(var t,r=n+"=",u=document.cookie.split(";"),i=0;i<u.length;i++)if(t=u[i],t=t.replace(/^\s+/,""),0==t.indexOf(r))return t.substring(r.length,t.length);return null},n.erase=function(t){n.set(t,"",-1)},n}();t.Cookie=i},function(){!function(n){"use strict";function f(n){if("string"!=typeof n&&(n=String(n)),/[^a-z0-9\-#$%&'*+.\^_`|~]/i.test(n))throw new TypeError("Invalid character in header field name");return n.toLowerCase()}function s(n){return"string"!=typeof n&&(n=String(n)),n}function e(n){var t={next:function(){var t=n.shift();return{done:void 0===t,value:t}}};return i.iterable&&(t[Symbol.iterator]=function(){return t}),t}function t(n){this.map={};n instanceof t?n.forEach(function(n,t){this.append(t,n)},this):Array.isArray(n)?n.forEach(function(n){this.append(n[0],n[1])},this):n&&Object.getOwnPropertyNames(n).forEach(function(t){this.append(t,n[t])},this)}function o(n){if(n.bodyUsed)return Promise.reject(new TypeError("Already read"));n.bodyUsed=!0}function h(n){return new Promise(function(t,i){n.onload=function(){t(n.result)};n.onerror=function(){i(n.error)}})}function y(n){var t=new FileReader,i=h(t);return t.readAsArrayBuffer(n),i}function p(n){var t=new FileReader,i=h(t);return t.readAsText(n),i}function w(n){for(var i=new Uint8Array(n),r=new Array(i.length),t=0;t<i.length;t++)r[t]=String.fromCharCode(i[t]);return r.join("")}function c(n){if(n.slice)return n.slice(0);var t=new Uint8Array(n.byteLength);return t.set(new Uint8Array(n)),t.buffer}function l(){return this.bodyUsed=!1,this._initBody=function(n){if(this._bodyInit=n,n)if("string"==typeof n)this._bodyText=n;else if(i.blob&&Blob.prototype.isPrototypeOf(n))this._bodyBlob=n;else if(i.formData&&FormData.prototype.isPrototypeOf(n))this._bodyFormData=n;else if(i.searchParams&&URLSearchParams.prototype.isPrototypeOf(n))this._bodyText=n.toString();else if(i.arrayBuffer&&i.blob&&nt(n))this._bodyArrayBuffer=c(n.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer]);else{if(!i.arrayBuffer||!ArrayBuffer.prototype.isPrototypeOf(n)&&!tt(n))throw new Error("unsupported BodyInit type");this._bodyArrayBuffer=c(n)}else this._bodyText="";this.headers.get("content-type")||("string"==typeof n?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):i.searchParams&&URLSearchParams.prototype.isPrototypeOf(n)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},i.blob&&(this.blob=function(){var n=o(this);if(n)return n;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?o(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(y)}),this.text=function(){var n=o(this);if(n)return n;if(this._bodyBlob)return p(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(w(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},i.formData&&(this.formData=function(){return this.text().then(k)}),this.json=function(){return this.text().then(JSON.parse)},this}function b(n){var t=n.toUpperCase();return a.indexOf(t)>-1?t:n}function u(n,i){i=i||{};var r=i.body;if(n instanceof u){if(n.bodyUsed)throw new TypeError("Already read");this.url=n.url;this.credentials=n.credentials;i.headers||(this.headers=new t(n.headers));this.method=n.method;this.mode=n.mode;r||null==n._bodyInit||(r=n._bodyInit,n.bodyUsed=!0)}else this.url=String(n);if(this.credentials=i.credentials||this.credentials||"omit",!i.headers&&this.headers||(this.headers=new t(i.headers)),this.method=b(i.method||this.method||"GET"),this.mode=i.mode||this.mode||null,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&r)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(r)}function k(n){var t=new FormData;return n.trim().split("&").forEach(function(n){if(n){var i=n.split("="),r=i.shift().replace(/\+/g," "),u=i.join("=").replace(/\+/g," ");t.append(decodeURIComponent(r),decodeURIComponent(u))}}),t}function d(n){var i=new t;return n.split(/\r?\n/).forEach(function(n){var t=n.split(":"),r=t.shift().trim(),u;r&&(u=t.join(":").trim(),i.append(r,u))}),i}function r(n,i){i||(i={});this.type="default";this.status="status"in i?i.status:200;this.ok=this.status>=200&&this.status<300;this.statusText="statusText"in i?i.statusText:"OK";this.headers=new t(i.headers);this.url=i.url||"";this._initBody(n)}var i,a,v;if(!n.fetch){if(i={searchParams:"URLSearchParams"in n,iterable:"Symbol"in n&&"iterator"in Symbol,blob:"FileReader"in n&&"Blob"in n&&function(){try{return new Blob,!0}catch(n){return!1}}(),formData:"FormData"in n,arrayBuffer:"ArrayBuffer"in n},i.arrayBuffer)var g=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],nt=function(n){return n&&DataView.prototype.isPrototypeOf(n)},tt=ArrayBuffer.isView||function(n){return n&&g.indexOf(Object.prototype.toString.call(n))>-1};t.prototype.append=function(n,t){n=f(n);t=s(t);var i=this.map[n];this.map[n]=i?i+","+t:t};t.prototype.delete=function(n){delete this.map[f(n)]};t.prototype.get=function(n){return n=f(n),this.has(n)?this.map[n]:null};t.prototype.has=function(n){return this.map.hasOwnProperty(f(n))};t.prototype.set=function(n,t){this.map[f(n)]=s(t)};t.prototype.forEach=function(n,t){for(var i in this.map)this.map.hasOwnProperty(i)&&n.call(t,this.map[i],i,this)};t.prototype.keys=function(){var n=[];return this.forEach(function(t,i){n.push(i)}),e(n)};t.prototype.values=function(){var n=[];return this.forEach(function(t){n.push(t)}),e(n)};t.prototype.entries=function(){var n=[];return this.forEach(function(t,i){n.push([i,t])}),e(n)};i.iterable&&(t.prototype[Symbol.iterator]=t.prototype.entries);a=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];u.prototype.clone=function(){return new u(this,{body:this._bodyInit})};l.call(u.prototype);l.call(r.prototype);r.prototype.clone=function(){return new r(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new t(this.headers),url:this.url})};r.error=function(){var n=new r(null,{status:0,statusText:""});return n.type="error",n};v=[301,302,303,307,308];r.redirect=function(n,t){if(-1===v.indexOf(t))throw new RangeError("Invalid status code");return new r(null,{status:t,headers:{location:n}})};n.Headers=t;n.Request=u;n.Response=r;n.fetch=function(n,t){return new Promise(function(f,e){var s=new u(n,t),o=new XMLHttpRequest;o.onload=function(){var n={status:o.status,statusText:o.statusText,headers:d(o.getAllResponseHeaders()||"")},t;n.url="responseURL"in o?o.responseURL:n.headers.get("X-Request-URL");t="response"in o?o.response:o.responseText;f(new r(t,n))};o.onerror=function(){e(new TypeError("Network request failed"))};o.ontimeout=function(){e(new TypeError("Network request failed"))};o.open(s.method,s.url,!0);"include"===s.credentials&&(o.withCredentials=!0);"responseType"in o&&i.blob&&(o.responseType="blob");s.headers.forEach(function(n,t){o.setRequestHeader(t,n)});o.send(void 0===s._bodyInit?null:s._bodyInit)})};n.fetch.polyfill=!0}}("undefined"!=typeof self?self:this)},function(n,t,i){"use strict";var f=i(145),o=i(313),r=i(314),e=function(){function n(){}return n.prototype.init=function(n,t){if(void 0===n)throw new Error("You must pass your token when you call 'init'");if("string"==typeof n)t=t||f.Endpoints.default,this.client=new f.Client({token:n,endpoint:t});else{if("object"!=typeof n||void 0===n.sendEvent)throw new Error("You must pass either your token or a valid object when you call 'init'");this.client=n}},n.prototype.send=function(n,t){if(void 0===this.client)throw new Error("You must call init before sending an event");switch(t=o.default({},{hash:window.location.hash},t),n){case"pageview":return void this.client.sendViewEvent({location:window.location.toString(),referrer:document.referrer,language:document.documentElement.lang,title:document.title,contentIdKey:r.popFromObject(t,"contentIdKey"),contentIdValue:r.popFromObject(t,"contentIdValue"),contentType:r.popFromObject(t,"contentType"),anonymous:r.popFromObject(t,"anonymous"),customData:t});default:throw new Error("Event type: '"+n+"' not implemented");}},n.prototype.onLoad=function(n){if(void 0===n)throw new Error("You must pass a function when you call 'onLoad'");n()},n}(),u;t.SimpleAPI=e;u=new e;t.SimpleAnalytics=function(n){for(var r,i=[],t=1;t<arguments.length;t++)i[t-1]=arguments[t];return r=u[n],r?r.apply(u,i):void 0};Object.defineProperty(t,"__esModule",{value:!0});t.default=t.SimpleAnalytics},function(n,t){"use strict";var u=Object.prototype.hasOwnProperty,i=Object.getOwnPropertySymbols,f=Object.prototype.propertyIsEnumerable,r=function(n){for(var r,e=[],t=1;t<arguments.length;t++)e[t-1]=arguments[t];if(void 0===n||null===n)throw new TypeError("Cannot convert undefined or null to object");return r=Object(n),e.forEach(function(n){var t=Object(n),e;for(e in t)u.call(t,e)&&(r[e]=t[e]);i&&i(t).forEach(function(n){f.call(t,n)&&(r[n]=t[n])})}),r};t.ponyfill=r;t.assign="function"==typeof Object.assign?Object.assign:r;Object.defineProperty(t,"__esModule",{value:!0});t.default=t.assign},function(n,t){"use strict";function i(n,t){if(n){var i=n[t];return delete n[t],i}}t.popFromObject=i},function(n,t){"use strict";t.doNotTrack=[!0,"yes","1"].indexOf(navigator.doNotTrack||navigator.msDoNotTrack||window.doNotTrack);Object.defineProperty(t,"__esModule",{value:!0});t.default=t.doNotTrack},function(n,t,i){"use strict";function e(n){u=n||r.backOff}var o=this&&this.__awaiter||function(n,t,i,r){return new(i||(i=Promise))(function(u,f){function o(n){try{e(r.next(n))}catch(n){f(n)}}function s(n){try{e(r.throw(n))}catch(n){f(n)}}function e(n){n.done?u(n.value):new i(function(t){t(n.value)}).then(o,s)}e((r=r.apply(n,t||[])).next())})},s=this&&this.__generator||function(n,t){function f(n){return function(t){return s([n,t])}}function s(f){if(e)throw new TypeError("Generator is already executing.");for(;r;)try{if(e=1,u&&(i=u[2&f[0]?"return":f[0]?"throw":"next"])&&!(i=i.call(u,f[1])).done)return i;switch(u=0,i&&(f=[0,i.value]),f[0]){case 0:case 1:i=f;break;case 4:return r.label++,{value:f[1],done:!1};case 5:r.label++;u=f[1];f=[0];continue;case 7:f=r.ops.pop();r.trys.pop();continue;default:if(i=r.trys,!(i=i.length>0&&i[i.length-1])&&(6===f[0]||2===f[0])){r=0;continue}if(3===f[0]&&(!i||f[1]>i[0]&&f[1]<i[3])){r.label=f[1];break}if(6===f[0]&&r.label<i[1]){r.label=i[1];i=f;break}if(i&&r.label<i[2]){r.label=i[2];r.ops.push(f);break}i[2]&&r.ops.pop();r.trys.pop();continue}f=t.call(n,r)}catch(n){f=[6,n];u=0}finally{e=i=0}if(5&f[0])throw f[1];return{value:f[0]?f[1]:void 0,done:!0}}var e,u,i,o,r={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:f(0),"throw":f(1),"return":f(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o},r,u,f;Object.defineProperty(t,"__esModule",{value:!0});r=i(317);u=r.backOff;t.setBackOffModule=e;f=function(){function n(){}return n.enqueue=function(t){return new Promise(function(i,r){n.enqueueRequest(t,i,r);n.clearQueueIfNotAlready()})},n.enqueueRequest=function(t,i,r){var f=function(){return u(t.fn,t.options).then(i).catch(r)};n.queue.push(f)},n.clearQueueIfNotAlready=function(){return o(this,void 0,void 0,function(){var t;return s(this,function(i){switch(i.label){case 0:if(n.clearingQueue)return[2];n.clearingQueue=!0;i.label=1;case 1:return n.queue.length?(t=n.queue.shift(),[4,t()]):[3,3];case 2:return i.sent(),[3,1];case 3:return n.clearingQueue=!1,[2]}})})},n.queue=[],n.clearingQueue=!1,n}();t.BackOffRequest=f},function(n,t,i){"use strict";function s(n,t){return void 0===t&&(t={}),r(this,void 0,void 0,function(){var i,r;return u(this,function(u){switch(u.label){case 0:return i=f.getSanitizedOptions(t),r=new o(n,i),[4,r.execute()];case 1:return[2,u.sent()]}})})}var r=this&&this.__awaiter||function(n,t,i,r){function u(n){return n instanceof i?n:new i(function(t){t(n)})}return new(i||(i=Promise))(function(i,f){function o(n){try{e(r.next(n))}catch(n){f(n)}}function s(n){try{e(r.throw(n))}catch(n){f(n)}}function e(n){n.done?i(n.value):u(n.value).then(o,s)}e((r=r.apply(n,t||[])).next())})},u=this&&this.__generator||function(n,t){function f(n){return function(t){return s([n,t])}}function s(f){if(e)throw new TypeError("Generator is already executing.");for(;r;)try{if(e=1,u&&(i=2&f[0]?u.return:f[0]?u.throw||((i=u.return)&&i.call(u),0):u.next)&&!(i=i.call(u,f[1])).done)return i;switch(u=0,i&&(f=[2&f[0],i.value]),f[0]){case 0:case 1:i=f;break;case 4:return r.label++,{value:f[1],done:!1};case 5:r.label++;u=f[1];f=[0];continue;case 7:f=r.ops.pop();r.trys.pop();continue;default:if(i=r.trys,!(i=i.length>0&&i[i.length-1])&&(6===f[0]||2===f[0])){r=0;continue}if(3===f[0]&&(!i||f[1]>i[0]&&f[1]<i[3])){r.label=f[1];break}if(6===f[0]&&r.label<i[1]){r.label=i[1];i=f;break}if(i&&r.label<i[2]){r.label=i[2];r.ops.push(f);break}i[2]&&r.ops.pop();r.trys.pop();continue}f=t.call(n,r)}catch(n){f=[6,n];u=0}finally{e=i=0}if(5&f[0])throw f[1];return{value:f[0]?f[1]:void 0,done:!0}}var e,u,i,o,r={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:f(0),"throw":f(1),"return":f(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o},f,e,o;Object.defineProperty(t,"__esModule",{value:!0});f=i(149);e=i(318);t.backOff=s;o=function(){function n(n,t){this.request=n;this.options=t;this.attemptNumber=0}return n.prototype.execute=function(){return r(this,void 0,void 0,function(){var n,t;return u(this,function(i){switch(i.label){case 0:if(this.attemptLimitReached)return[3,6];i.label=1;case 1:return i.trys.push([1,4,,5]),[4,this.applyDelay()];case 2:return i.sent(),[4,this.request()];case 3:return[2,i.sent()];case 4:if(n=i.sent(),this.attemptNumber++,!(t=this.options.retry(n,this.attemptNumber))||this.attemptLimitReached)throw n;return[3,5];case 5:return[3,0];case 6:throw new Error("Something went wrong.");}})})},Object.defineProperty(n.prototype,"attemptLimitReached",{get:function(){return this.attemptNumber>=this.options.numOfAttempts},enumerable:!0,configurable:!0}),n.prototype.applyDelay=function(){return r(this,void 0,void 0,function(){var n;return u(this,function(t){switch(t.label){case 0:return n=e.DelayFactory(this.options,this.attemptNumber),[4,n.apply()];case 1:return t.sent(),[2]}})})},n}()},function(n,t,i){"use strict";function r(n,t){var i=u(n);return i.setAttemptNumber(t),i}function u(n){return n.delayFirstAttempt?new e.AlwaysDelay(n):new f.SkipFirstDelay(n)}Object.defineProperty(t,"__esModule",{value:!0});var f=i(319),e=i(323);t.DelayFactory=r},function(n,t,i){"use strict";var f=this&&this.__extends||function(){var n=function(t,i){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(t,i)};return function(t,i){function r(){this.constructor=t}n(t,i);t.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),e=this&&this.__awaiter||function(n,t,i,r){function u(n){return n instanceof i?n:new i(function(t){t(n)})}return new(i||(i=Promise))(function(i,f){function o(n){try{e(r.next(n))}catch(n){f(n)}}function s(n){try{e(r.throw(n))}catch(n){f(n)}}function e(n){n.done?i(n.value):u(n.value).then(o,s)}e((r=r.apply(n,t||[])).next())})},o=this&&this.__generator||function(n,t){function f(n){return function(t){return s([n,t])}}function s(f){if(e)throw new TypeError("Generator is already executing.");for(;r;)try{if(e=1,u&&(i=2&f[0]?u.return:f[0]?u.throw||((i=u.return)&&i.call(u),0):u.next)&&!(i=i.call(u,f[1])).done)return i;switch(u=0,i&&(f=[2&f[0],i.value]),f[0]){case 0:case 1:i=f;break;case 4:return r.label++,{value:f[1],done:!1};case 5:r.label++;u=f[1];f=[0];continue;case 7:f=r.ops.pop();r.trys.pop();continue;default:if(i=r.trys,!(i=i.length>0&&i[i.length-1])&&(6===f[0]||2===f[0])){r=0;continue}if(3===f[0]&&(!i||f[1]>i[0]&&f[1]<i[3])){r.label=f[1];break}if(6===f[0]&&r.label<i[1]){r.label=i[1];i=f;break}if(i&&r.label<i[2]){r.label=i[2];r.ops.push(f);break}i[2]&&r.ops.pop();r.trys.pop();continue}f=t.call(n,r)}catch(n){f=[6,n];u=0}finally{e=i=0}if(5&f[0])throw f[1];return{value:f[0]?f[1]:void 0,done:!0}}var e,u,i,o,r={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:f(0),"throw":f(1),"return":f(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o},r,u;Object.defineProperty(t,"__esModule",{value:!0});r=i(150);u=function(n){function t(){return null!==n&&n.apply(this,arguments)||this}return f(t,n),t.prototype.apply=function(){return e(this,void 0,void 0,function(){return o(this,function(){return[2,!!this.isFirstAttempt||n.prototype.apply.call(this)]})})},Object.defineProperty(t.prototype,"isFirstAttempt",{get:function(){return 0===this.attempt},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"numOfDelayedAttempts",{get:function(){return this.attempt-1},enumerable:!0,configurable:!0}),t}(r.Delay);t.SkipFirstDelay=u},function(n,t,i){"use strict";function u(n){switch(n.jitter){case r.JitterTypes.Full:return f.fullJitter;case r.JitterTypes.None:default:return e.noJitter}}Object.defineProperty(t,"__esModule",{value:!0});var r=i(149),f=i(321),e=i(322);t.JitterFactory=u},function(n,t){"use strict";function i(n){var t=Math.random()*n;return Math.round(t)}Object.defineProperty(t,"__esModule",{value:!0});t.fullJitter=i},function(n,t){"use strict";function i(n){return n}Object.defineProperty(t,"__esModule",{value:!0});t.noJitter=i},function(n,t,i){"use strict";var f=this&&this.__extends||function(){var n=function(t,i){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(t,i)};return function(t,i){function r(){this.constructor=t}n(t,i);t.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),r,u;Object.defineProperty(t,"__esModule",{value:!0});r=i(150);u=function(n){function t(){return null!==n&&n.apply(this,arguments)||this}return f(t,n),t}(r.Delay);t.AlwaysDelay=u},function(n,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function n(n){this.response=n}return Object.defineProperty(n.prototype,"basicExpression",{get:function(){return this.response.parsedInput.basicExpression},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"largeExpression",{get:function(){return this.response.parsedInput.largeExpression},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"redirectionURL",{get:function(){var n=this.response.preprocessingOutput.triggers.filter(function(n){return"redirect"===n.type});return n.length?n[0].content:null},enumerable:!0,configurable:!0}),n}();t.ExecutionPlan=i},function(n,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=i(91),u=i(41),f=function(){function n(){this.safeLocalStorage=new u.SafeLocalStorage}return n.prototype.getItem=function(n){return this.safeLocalStorage.getItem(n)||r.ScopedCookie.get(n)},n.prototype.removeItem=function(n){this.safeLocalStorage.removeItem(n);r.ScopedCookie.erase(n)},n.prototype.setItem=function(n,t){this.safeLocalStorage.setItem(n,t);r.ScopedCookie.set(n,t,31556926e3)},n}();t.CookieAndLocalStorage=f},function(n){var t;!function(n){!function(n){function u(n,u){var s,f,h,c,y,v,a;void 0===u&&(u={});s=u.body||document.body;s.className?-1==s.className.indexOf("coveo-modal-opened")&&(s.className+=" coveo-modal-opened"):s.className="coveo-modal-opened";f=document.createElement("div");f.className="coveo-modal-container coveo-opened ";"small"==u.sizeMod&&(f.className+=" coveo-mod-small");"big"==u.sizeMod&&(f.className+=" coveo-mod-big");setTimeout(function(){f.className+=" coveo-mod-fade-in-scale"},0);s.appendChild(f);!0===u.fullscreen&&(f.className+=" coveo-fullscreen");h=document.createElement("div");h.className="coveo-modal-backdrop coveo-modal-transparent";s.appendChild(h);setTimeout(function(){r(h,"coveo-modal-transparent")},0);c=document.createElement("div");c.className="coveo-modal-content";f.appendChild(c);var l=function(n,t){if(void 0===n&&(n=0),void 0===t&&(t=!1),!1!==(null==u.validation||u.validation(n))||t){f.parentElement&&f.parentElement.removeChild(f);var e=i.indexOf(l);return e>=0&&i.splice(e,1),null==s.querySelector(".coveo-modal-container")&&r(s,"coveo-modal-opened"),h.parentNode&&h.parentNode.removeChild(h),!0}return!1},p=e(u,l),w=p.header,b=p.closeIcon;return c.appendChild(w),c.appendChild(o(u,n)),b.addEventListener("click",function(){l()}),h.addEventListener("click",function(){l()}),y=function(n){27==n.keyCode&&-1!=s.className.indexOf("coveo-modal-opened")&&(l(),document.removeEventListener("keyup",y))},document.addEventListener("keyup",y),a=function(n,t){var i=document.createElement("button");i.className="coveo-btn";i.textContent=n;i.addEventListener("click",function(){return l(t)});v.appendChild(i)},null!=u.buttons&&(v=document.createElement("footer"),v.className="coveo-modal-footer",c.appendChild(v),u.buttons&t.OK&&a("Ok",t.OK),u.buttons&t.APPLY&&a("Apply",t.APPLY),u.buttons&t.YES&&a("Yes",t.YES),u.buttons&t.NO&&a("No",t.NO),u.buttons&t.CANCEL&&a("Cancel",t.CANCEL)),i.push(l),null!=u.className&&(f.className+=" "+u.className),{modalBox:f,wrapper:c,buttons:v,content:c,overlay:h,close:l}}function f(n){void 0===n&&(n=!1);for(var t=0;i.length>t;)i[t](0,n)||t++}function e(n,t){var u=document.createElement("header"),i,r;return(u.className="coveo-modal-header",null!=n.title)&&(i=document.createElement("h1"),u.appendChild(i),n.title instanceof HTMLElement?i.appendChild(n.title):i.innerHTML=n.title,!0===n.titleClose&&i.addEventListener("click",function(){return t()})),r=document.createElement("span"),r.className="coveo-small-close",u.appendChild(r),r.innerHTML='<svg viewBox="0 0 22 22" class="coveo-icon coveo-fill-pure-white">\n                    <g transform="matrix(.7071-.7071.7071.7071-3.142 11)">\n                        <path d="m9-3.4h2v26.9h-2z"><\/path>\n                        <path d="m-3.4 9h26.9v2h-26.9z"><\/path>\n                    <\/g>\n                <\/svg>',{header:u,closeIcon:r}}function o(n,t){var i=document.createElement("div");return i.className="coveo-modal-body coveo-mod-header-paddding coveo-mod-form-top-bottom-padding",i.appendChild(t),i}function r(n,t){n.className=n.className.replace(new RegExp("(^|\\s)"+t+"(\\s|\\b)","g"),"$1")}!function(n){n[n.OK=1]="OK";n[n.APPLY=2]="APPLY";n[n.YES=4]="YES";n[n.NO=8]="NO";n[n.CANCEL=16]="CANCEL"}(n.BUTTON||(n.BUTTON={}));var t=n.BUTTON,i=[];n.open=u;n.close=f}(n.ModalBox||(n.ModalBox={}))}(t||(t={}));n.exports=t.ModalBox},function(n){!function(){"use strict";var s,h,c="undefined",d="string",l=self.navigator,n=String,g=Object.prototype.hasOwnProperty,i={},t={},a="locale",f="defaultLocale",v="toLocaleString",u="toLowerCase",nt=Array.prototype.indexOf||function(n){for(var i=this.length,t=0;i>t;t++)if(t in this&&this[t]===n)return t;return-1},y=function(n){var t=new s;return t.open("GET",n,!1),t.send(null),200!==t.status?(setTimeout(function(){var t=new Error("Unable to load localization data: "+n);throw t.name="Localization Error",t;},0),{}):JSON.parse(t.responseText)},e=n[v]=function(r){if(arguments.length>0&&"number"!=typeof r)if(typeof r===d)e(y(r));else if(!1===r)t={};else{var f,o,s;for(f in r)if(g.call(r,f)){if(o=r[f],f=f[u](),f in t&&!1!==o||(t[f]={}),!1===o)continue;if(typeof o===d){if(0!==n[a][u]().indexOf(f)){f in i||(i[f]=[]);i[f].push(o);continue}o=y(o)}for(s in o)g.call(o,s)&&(t[f][s]=o[s])}}return Function.prototype[v].apply(n,arguments)},tt=function(n){for(var t,u=i[n],r=0,f=u.length;f>r;r++)t={},t[n]=y(u[r]),e(t);delete i[n]},it=n.prototype[v]=function(){var r,o=h,l=n[o?f:a],s=l[u]().split("-"),c=s.length,e=this.valueOf();h=!1;do if(r=s.slice(0,c).join("-"),r in i&&tt(r),r in t&&e in t[r])return t[r][e];while(c-->1);return!o&&n[f]?(h=!0,it.call(e)):e},o,p,w,b,r,k;if(typeof XMLHttpRequest===c&&typeof ActiveXObject!==c?(o=ActiveXObject,s=function(){try{return new o("Msxml2.XMLHTTP.6.0")}catch(n){}try{return new o("Msxml2.XMLHTTP.3.0")}catch(n){}try{return new o("Msxml2.XMLHTTP")}catch(n){}throw new Error("XMLHttpRequest not supported by this browser.");}):s=XMLHttpRequest,n[f]=n[f]||"",n[a]=l&&(l.language||l.userLanguage)||"",typeof document!==c)for(w=document.getElementsByTagName("link"),b=w.length;b--;)r=w[b],k=(r.getAttribute("rel")||"")[u]().split(/\s+/),/^\s*application\/(?:vnd\.oftn\.|x-)?l10n\+json\s*(?:$|;)/i.test(r.type)&&(-1!==nt.call(k,"localizations")?e(r.getAttribute("href")):-1!==nt.call(k,"localization")&&(p={},p[(r.getAttribute("hreflang")||"")[u]()]=r.getAttribute("href"),e(p)))}();n.exports=window.String.toLocaleString},function(n){var t=function(i,r){var u,tt,it,rt,ut,f,l,p,a,ft,w,o,e,b,s,v,k,d,et,g,h,y,nt,c;return u=function(n){return new u.prototype.init(n)},n.exports=u,u.cultures={},u.prototype={constructor:u,init:function(n){return this.cultures=u.cultures,this.cultureSelector=n,this}},u.prototype.init.prototype=u.prototype,u.cultures.default={name:"en",englishName:"English",nativeName:"English",isRTL:!1,language:"en",numberFormat:{pattern:["-n"],decimals:2,",":",",".":".",groupSizes:[3],"+":"+","-":"-",NaN:"NaN",negativeInfinity:"-Infinity",positiveInfinity:"Infinity",percent:{pattern:["-n %","n %"],decimals:2,groupSizes:[3],",":",",".":".",symbol:"%"},currency:{pattern:["($n)","$n"],decimals:2,groupSizes:[3],",":",",".":".",symbol:"$"}},calendars:{standard:{name:"Gregorian_USEnglish","/":"/",":":":",firstDay:0,days:{names:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],namesAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],namesShort:["Su","Mo","Tu","We","Th","Fr","Sa"]},months:{names:["January","February","March","April","May","June","July","August","September","October","November","December",""],namesAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec",""]},AM:["AM","am","AM"],PM:["PM","pm","PM"],eras:[{name:"A.D.",start:null,offset:0}],twoDigitYearMax:2029,patterns:{d:"M/d/yyyy",D:"dddd, MMMM dd, yyyy",t:"h:mm tt",T:"h:mm:ss tt",f:"dddd, MMMM dd, yyyy h:mm tt",F:"dddd, MMMM dd, yyyy h:mm:ss tt",M:"MMMM dd",Y:"yyyy MMMM",S:"yyyy'-'MM'-'dd'T'HH':'mm':'ss"}}},messages:{}},u.cultures.default.calendar=u.cultures.default.calendars.standard,u.cultures.en=u.cultures.default,u.cultureSelector="en",tt=/^0x[a-f0-9]+$/i,it=/^[+\-]?infinity$/i,rt=/^[+\-]?\d*\.?\d*(e[+\-]?\d+)?$/,ut=/^\s+|\s+$/g,f=function(n,t){if(n.indexOf)return n.indexOf(t);for(var i=0,r=n.length;r>i;i++)if(n[i]===t)return i;return-1},l=function(n,t){return n.substr(n.length-t.length)===t},p=function(){var e,u,i,t,o,s,n=arguments[0]||{},f=1,c=arguments.length,h=!1;for("boolean"==typeof n&&(h=n,n=arguments[1]||{},f=2),"object"==typeof n||ft(n)||(n={});c>f;f++)if(null!=(e=arguments[f]))for(u in e)i=n[u],t=e[u],n!==t&&(h&&t&&(w(t)||(o=a(t)))?(o?(o=!1,s=i&&a(i)?i:[]):s=i&&w(i)?i:{},n[u]=p(h,s,t)):t!==r&&(n[u]=t));return n},a=Array.isArray||function(n){return"[object Array]"===Object.prototype.toString.call(n)},ft=function(n){return"[object Function]"===Object.prototype.toString.call(n)},w=function(n){return"[object Object]"===Object.prototype.toString.call(n)},o=function(n,t){return 0===n.indexOf(t)},e=function(n){return(n+"").replace(ut,"")},b=function(n){return isNaN(n)?NaN:Math[0>n?"ceil":"floor"](n)},s=function(n,t,i){for(var r=n.length;t>r;r+=1)n=i?"0"+n:n+"0";return n},v=function(n,t){for(var u,f=0,i=!1,r=0,e=n.length;e>r;r++){u=n.charAt(r);switch(u){case"'":i?t.push("'"):f++;i=!1;break;case"\\":i&&t.push("\\");i=!i;break;default:t.push(u);i=!1}}return f},k=function(n,t){t=t||"F";var i,u=n.patterns,r=t.length;if(1===r){if(!(i=u[t]))throw"Invalid date format string '"+t+"'.";t=i}else 2===r&&"%"===t.charAt(0)&&(t=t.charAt(1));return t},d=function(n,t,i){function e(n,t){var i,r=n+"";return t>1&&t>r.length?(i=st[t-2]+r,i.substr(i.length-t,t)):i=r}function w(n,t){if(l)return l[t];switch(t){case 0:return n.getFullYear();case 1:return n.getMonth();case 2:return n.getDate();default:throw"Invalid part value "+t;}}var r,u=i.calendar,b=u.convert,nt,rt,tt,it,p,f,ot,s;if(!t||!t.length||"i"===t)return i&&i.name.length?b?r=d(n,u.patterns.F,i):(nt=new Date(n.getTime()),rt=h(n,u.eras),nt.setFullYear(y(n,u,rt)),r=nt.toLocaleString()):r=""+n,r;tt=u.eras;it="s"===t;t=k(u,t);r=[];var o,c,ut,l,st=["0","00","000"],ht=/([^d]|^)(d|dd)([^d]|$)/g,ft=0,et=g();for(!it&&b&&(l=b.fromGregorian(n));;){var ct=et.lastIndex,a=et.exec(t),lt=t.slice(ct,a?a.index:t.length);if(ft+=v(lt,r),!a)break;if(ft%2)r.push(a[0]);else{p=a[0];f=p.length;switch(p){case"ddd":case"dddd":ot=3===f?u.days.namesAbbr:u.days.names;r.push(ot[n.getDay()]);break;case"d":case"dd":c=!0;r.push(e(w(n,2),f));break;case"MMM":case"MMMM":s=w(n,1);r.push(u.monthsGenitive&&function(){return c||ut?c:(c=ht.test(t),ut=!0,c)}()?u.monthsGenitive[3===f?"namesAbbr":"names"][s]:u.months[3===f?"namesAbbr":"names"][s]);break;case"M":case"MM":r.push(e(w(n,1)+1,f));break;case"y":case"yy":case"yyyy":s=l?l[0]:y(n,u,h(n,tt),it);4>f&&(s%=100);r.push(e(s,f));break;case"h":case"hh":o=n.getHours()%12;0===o&&(o=12);r.push(e(o,f));break;case"H":case"HH":r.push(e(n.getHours(),f));break;case"m":case"mm":r.push(e(n.getMinutes(),f));break;case"s":case"ss":r.push(e(n.getSeconds(),f));break;case"t":case"tt":s=12>n.getHours()?u.AM?u.AM[0]:" ":u.PM?u.PM[0]:" ";r.push(1===f?s.charAt(0):s);break;case"f":case"ff":case"fff":r.push(e(n.getMilliseconds(),3).substr(0,f));break;case"z":case"zz":o=n.getTimezoneOffset()/60;r.push((0>=o?"+":"-")+e(Math.floor(Math.abs(o)),f));break;case"zzz":o=n.getTimezoneOffset()/60;r.push((0>=o?"+":"-")+e(Math.floor(Math.abs(o)),2)+":"+e(Math.abs(n.getTimezoneOffset()%60),2));break;case"g":case"gg":u.eras&&r.push(u.eras[h(n,tt)].name);break;case"/":r.push(u["/"]);break;default:throw"Invalid date format pattern '"+p+"'.";}}}return r.join("")},function(){var n;n=function(n,t,i){var l=i.groupSizes,c=l[0],a=1,p=Math.pow(10,t),v=Math.round(n*p)/p;isFinite(v)||(v=n);n=v;var r=n+"",u="",e=r.split(/e/i),f=e.length>1?parseInt(e[1],10):0;r=e[0];e=r.split(".");r=e[0];u=e.length>1?e[1]:"";f>0?(u=s(u,f,!1),r+=u.slice(0,f),u=u.substr(f)):0>f&&(f=-f,r=s(r,f+1,!0),u=r.slice(-f,r.length)+u,r=r.slice(0,-f));u=t>0?i["."]+(u.length>t?u.slice(0,t):s(u,t)):"";for(var o=r.length-1,y=i[","],h="";o>=0;){if(0===c||c>o)return r.slice(0,o+1)+(h.length?y+h+u:u);h=r.slice(o-c+1,o+1)+(h.length?y+h:"");o-=c;l.length>a&&(c=l[a],a++)}return r.slice(0,o+1)+y+h+u};et=function(t,i,r){var f,a,v,e,y,l;if(!isFinite(t))return 1/0===t?r.numberFormat.positiveInfinity:t===-1/0?r.numberFormat.negativeInfinity:r.numberFormat.NaN;if(!i||"i"===i)return r.name.length?t.toLocaleString():""+t;i=i||"D";var c,o=r.numberFormat,u=Math.abs(t),h=-1;i.length>1&&(h=parseInt(i.slice(1),10));a=i.charAt(0).toUpperCase();switch(a){case"D":c="n";u=b(u);-1!==h&&(u=s(""+u,h,!0));0>t&&(u="-"+u);break;case"N":f=o;case"C":f=f||o.currency;case"P":f=f||o.percent;c=0>t?f.pattern[0]:f.pattern[1]||"n";-1===h&&(h=f.decimals);u=n(u*("P"===a?100:1),h,f);break;default:throw"Bad number format specifier: "+a;}for(v=/n|\$|-|%/g,e="";;){if(y=v.lastIndex,l=v.exec(c),e+=c.slice(y,l?l.index:c.length),!l)break;switch(l[0]){case"n":e+=u;break;case"$":e+=o.currency.symbol;break;case"-":/[1-9]/.test(u)&&(e+=o["-"]);break;case"%":e+=o.percent.symbol}}return e}}(),g=function(){return/\/|dddd|ddd|dd|d|MMMM|MMM|MM|M|yyyy|yy|y|hh|h|HH|H|mm|m|ss|s|tt|t|fff|ff|f|zzz|zz|z|gg|g/g},h=function(n,t){if(!t)return 0;for(var r,u=n.getTime(),i=0,f=t.length;f>i;i++)if(null===(r=t[i].start)||u>=r)return i;return 0},y=function(n,t,i,r){var u=n.getFullYear();return!r&&t.eras&&(u-=t.eras[i].offset),u},function(){var r,u,s,c,n,i,t;r=function(n,t){if(100>t){var r=new Date,f=h(r),u=y(r,n,f),i=n.twoDigitYearMax;i="string"==typeof i?(new Date).getFullYear()%100+parseInt(i,10):i;(t+=u-u%100)>i&&(t-=100)}return t};u=function(n,r,u){var o,s=n.days,e=n._upperDays;return e||(n._upperDays=e=[t(s.names),t(s.namesAbbr),t(s.namesShort)]),r=i(r),u?-1===(o=f(e[1],r))&&(o=f(e[2],r)):o=f(e[0],r),o};s=function(n,r,u){var h=n.months,c=n.monthsGenitive||n.months,e=n._upperMonths,s=n._upperMonthsGen,o;return e||(n._upperMonths=e=[t(h.names),t(h.namesAbbr)],n._upperMonthsGen=s=[t(c.names),t(c.namesAbbr)]),r=i(r),o=f(u?e[1]:e[0],r),0>o&&(o=f(u?s[1]:s[0],r)),o};c=function(n,t){var f=n._parseRegExp,o,a,i,e,y,p,w;if(f){if(o=f[t],o)return o}else n._parseRegExp=f={};for(var u,s=k(n,t).replace(/([\^\$\.\*\+\?\|\[\]\(\)\{\}])/g,"\\\\$1"),r=["^"],c=[],h=0,b=0,l=g();null!==(u=l.exec(s));)if(a=s.slice(h,u.index),h=l.lastIndex,(b+=v(a,r))%2)r.push(u[0]);else{e=u[0];y=e.length;switch(e){case"dddd":case"ddd":case"MMMM":case"MMM":case"gg":case"g":i="(\\D+)";break;case"tt":case"t":i="(\\D*)";break;case"yyyy":case"fff":case"ff":case"f":i="(\\d{"+y+"})";break;case"dd":case"d":case"MM":case"M":case"yy":case"y":case"HH":case"H":case"hh":case"h":case"mm":case"m":case"ss":case"s":i="(\\d\\d?)";break;case"zzz":i="([+-]?\\d\\d?:\\d{2})";break;case"zz":case"z":i="([+-]?\\d\\d?)";break;case"/":i="(\\/)";break;default:throw"Invalid date format pattern '"+e+"'.";}i&&r.push(i);c.push(u[0])}return v(s.slice(h),r),r.push("$"),p=r.join("").replace(/\s+/g,"\\s+"),w={regExp:p,groups:c},f[t]=w};n=function(n,t,i){return t>n||n>i};i=function(n){return n.split(" ").join(" ").toUpperCase()};t=function(n){for(var r=[],t=0,u=n.length;u>t;t++)r[t]=i(n[t]);return r};nt=function(t,i,f){var l,ft,et,d,g,bt,kt,a,nt,lt;t=e(t);var h=f.calendar,at=c(h,i),vt=RegExp(at.regExp).exec(t);if(null===vt)return null;for(var k,yt=at.groups,ot=null,w=null,p=null,b=null,tt=null,y=0,st=0,ht=0,ct=0,it=null,pt=!1,rt=0,dt=yt.length;dt>rt;rt++)if(l=vt[rt+1],l){var wt=yt[rt],ut=wt.length,v=parseInt(l,10);switch(wt){case"dd":case"d":if(b=v,n(b,1,31))return null;break;case"MMM":case"MMMM":if(p=s(h,l,3===ut),n(p,0,11))return null;break;case"M":case"MM":if(p=v-1,n(p,0,11))return null;break;case"y":case"yy":case"yyyy":if(w=4>ut?r(h,v):v,n(w,0,9999))return null;break;case"h":case"hh":if(y=v,12===y&&(y=0),n(y,0,11))return null;break;case"H":case"HH":if(y=v,n(y,0,23))return null;break;case"m":case"mm":if(st=v,n(st,0,59))return null;break;case"s":case"ss":if(ht=v,n(ht,0,59))return null;break;case"tt":case"t":if(!(pt=h.PM&&(l===h.PM[0]||l===h.PM[1]||l===h.PM[2]))&&(!h.AM||l!==h.AM[0]&&l!==h.AM[1]&&l!==h.AM[2]))return null;break;case"f":case"ff":case"fff":if(ct=v*Math.pow(10,3-ut),n(ct,0,999))return null;break;case"ddd":case"dddd":if(tt=u(h,l,3===ut),n(tt,0,6))return null;break;case"zzz":if((ft=l.split(/:/),2!==ft.length)||(k=parseInt(ft[0],10),n(k,-12,13))||(et=parseInt(ft[1],10),n(et,0,59)))return null;it=60*k+(o(l,"-")?-et:et);break;case"z":case"zz":if(k=v,n(k,-12,13))return null;it=60*k;break;case"g":case"gg":if(d=l,!d||!h.eras)return null;for(d=e(d.toLowerCase()),g=0,bt=h.eras.length;bt>g;g++)if(d===h.eras[g].name.toLowerCase()){ot=g;break}if(null===ot)return null}}if(a=new Date,nt=h.convert,kt=nt?nt.fromGregorian(a)[0]:a.getFullYear(),null===w?w=kt:h.eras&&(w+=h.eras[ot||0].offset),null===p&&(p=0),null===b&&(b=1),nt){if(null===(a=nt.toGregorian(w,p,b)))return null}else if((a.setFullYear(w,p,b),a.getDate()!==b)||null!==tt&&a.getDay()!==tt)return null;return(pt&&12>y&&(y+=12),a.setHours(y,st,ht,ct),null!==it)&&(lt=a.getMinutes()-(it+a.getTimezoneOffset()),a.setHours(a.getHours()+parseInt(lt/60,10),lt%60)),a}}(),c=function(n,t,i){var f,r=t["-"],u=t["+"];switch(i){case"n -":r=" "+r;u=" "+u;case"n-":l(n,r)?f=["-",n.substr(0,n.length-r.length)]:l(n,u)&&(f=["+",n.substr(0,n.length-u.length)]);break;case"- n":r+=" ";u+=" ";case"-n":o(n,r)?f=["-",n.substr(r.length)]:o(n,u)&&(f=["+",n.substr(u.length)]);break;case"(n)":o(n,"(")&&l(n,")")&&(f=["-",n.substr(1,n.length-2)])}return f||["",n]},u.prototype.findClosestCulture=function(n){return u.findClosestCulture.call(this,n)},u.prototype.format=function(n,t,i){return u.format.call(this,n,t,i)},u.prototype.localize=function(n,t){return u.localize.call(this,n,t)},u.prototype.parseInt=function(n,t,i){return u.parseInt.call(this,n,t,i)},u.prototype.parseFloat=function(n,t,i){return u.parseFloat.call(this,n,t,i)},u.prototype.culture=function(n){return u.culture.call(this,n)},u.addCultureInfo=function(n,t,i){var r={},u=!1;"string"!=typeof n?(i=n,n=this.culture().name,r=this.cultures[n]):"string"!=typeof t?(i=t,u=null==this.cultures[n],r=this.cultures[n]||this.cultures.default):(u=!0,r=this.cultures[t]);this.cultures[n]=p(!0,{},r,i);u&&(this.cultures[n].calendar=this.cultures[n].calendars.standard)},u.findClosestCulture=function(n){var u,r,h,c,y,l;if(!n)return this.findClosestCulture(this.cultureSelector)||this.cultures.default;if("string"==typeof n&&(n=n.split(",")),a(n)){for(var i,o=this.cultures,v=n,s=v.length,f=[],t=0;s>t;t++)n=e(v[t]),h=n.split(";"),i=e(h[0]),1===h.length?r=1:(n=e(h[1]),0===n.indexOf("q=")?(n=n.substr(2),r=parseFloat(n),r=isNaN(r)?0:r):r=1),f.push({lang:i,pri:r});for(f.sort(function(n,t){return n.pri<t.pri?1:n.pri>t.pri?-1:0}),t=0;s>t;t++)if(i=f[t].lang,u=o[i])return u;for(t=0;s>t;t++)for(i=f[t].lang;;){if(c=i.lastIndexOf("-"),-1===c)break;if(i=i.substr(0,c),u=o[i])return u}for(t=0;s>t;t++){i=f[t].lang;for(y in o)if(l=o[y],l.language===i)return l}}else if("object"==typeof n)return n;return u||null},u.format=function(n,t,i){var r=this.findClosestCulture(i);return n instanceof Date?n=d(n,t,r):"number"==typeof n&&(n=et(n,t,r)),n},u.localize=function(n,t){return this.findClosestCulture(t).messages[n]||this.cultures.default.messages[n]},u.parseDate=function(n,t,i){var u,o,f,r,s,e;if(i=this.findClosestCulture(i),t){if("string"==typeof t&&(t=[t]),t.length)for(r=0,s=t.length;s>r;r++)if(e=t[r],e&&(u=nt(n,e,i)))break}else{f=i.calendar.patterns;for(o in f)if(u=nt(n,f[o],i))break}return u||null},u.parseInt=function(n,t,i){return b(u.parseFloat(n,t,i))},u.parseFloat=function(n,t,i){var y,h,l,s,p,k,w,b,d,a,g;"number"!=typeof t&&(i=t,t=10);var f=this.findClosestCulture(i),v=NaN,r=f.numberFormat;if(n.indexOf(f.numberFormat.currency.symbol)>-1&&(n=n.replace(f.numberFormat.currency.symbol,""),n=n.replace(f.numberFormat.currency["."],f.numberFormat["."])),n.indexOf(f.numberFormat.percent.symbol)>-1&&(n=n.replace(f.numberFormat.percent.symbol,"")),n=n.replace(/ /g,""),it.test(n))v=parseFloat(n);else if(!t&&tt.test(n))v=parseInt(n,16);else{var u=c(n,r,r.pattern[0]),e=u[0],o=u[1];""===e&&"(n)"!==r.pattern[0]&&(u=c(n,r,"(n)"),e=u[0],o=u[1]);""===e&&"-n"!==r.pattern[0]&&(u=c(n,r,"-n"),e=u[0],o=u[1]);e=e||"+";l=o.indexOf("e");0>l&&(l=o.indexOf("E"));0>l?(h=o,y=null):(h=o.substr(0,l),y=o.substr(l+1));k=r["."];w=h.indexOf(k);0>w?(s=h,p=null):(s=h.substr(0,w),p=h.substr(w+k.length));b=r[","];s=s.split(b).join("");d=b.replace(/\u00A0/g," ");b!==d&&(s=s.split(d).join(""));a=e+s;(null!==p&&(a+="."+p),null!==y)&&(g=c(y,r,"-n"),a+="e"+(g[0]||"+")+g[1]);rt.test(a)&&(v=parseFloat(a))}return v},u.culture=function(n){return n!==r&&(this.cultureSelector=n),this.findClosestCulture(n)||this.cultures.default},t}()},function(n,t,i){"use strict";var r,u,f;Object.defineProperty(t,"__esModule",{value:!0});r=i(153);t.AnalyticsEndpoint=r.AnalyticsEndpoint;u=i(90);t.EndpointCaller=u.EndpointCaller;f=i(144);t.QueryError=f.QueryError},function(n,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=i(90),u=i(43),f=function(){function n(n){void 0===n&&(n={});this.options=n;this.passthrough=new r.EndpointCaller(n)}return n.prototype.call=function(n){return this.shouldSendAsBeacon(n)?void this.sendBeacon(n):this.passthrough.call(n)},Object.defineProperty(n.prototype,"beaconApiIsUsable",{get:function(){return"function"==typeof navigator.sendBeacon},enumerable:!0,configurable:!0}),n.prototype.sendBeacon=function(n){var t=n.queryString.concat(this.additionalQueryStringParams),i=u.UrlUtils.normalizeAsString({paths:n.url,queryAsString:t}),f=r.EndpointCaller.convertJsonToFormBody({clickEvent:n.requestData});navigator.sendBeacon(i,new Blob([f],{type:"application/x-www-form-urlencoded"}))},Object.defineProperty(n.prototype,"additionalQueryStringParams",{get:function(){var n=this.accessTokenAsQueryString;return n?[n]:[]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"accessTokenAsQueryString",{get:function(){var n=this.options.accessToken;return n?"access_token="+n:""},enumerable:!0,configurable:!0}),n.prototype.shouldSendAsBeacon=function(n){return-1!=n.url.indexOf("/click")&&this.beaconApiIsUsable},n}();t.AnalyticsEndpointCaller=f},function(n,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=i(0),u=function(){function n(n,t){this.endpoint=n;this.callOptions=t;this.options=n.options}return Object.defineProperty(n.prototype,"accessToken",{get:function(){return this.endpoint.accessToken},enumerable:!0,configurable:!0}),n.prototype.getBaseUri=function(){return this.endpoint.getBaseUri()},n.prototype.getBaseAlertsUri=function(){return this.endpoint.getBaseAlertsUri()},n.prototype.getAuthenticationProviderUri=function(n,t,i){return this.endpoint.getAuthenticationProviderUri(n,t,i)},n.prototype.isJsonp=function(){return this.endpoint.isJsonp()},n.prototype.search=function(n,t){return this.endpoint.search(n,this.enrichCallOptions(t))},n.prototype.fetchBinary=function(n,t){return this.endpoint.fetchBinary(n,this.enrichCallOptions(t))},n.prototype.plan=function(n,t){return this.endpoint.plan(n,this.enrichCallOptions(t))},n.prototype.getExportToExcelLink=function(n,t,i){return this.endpoint.getExportToExcelLink(n,t,this.enrichCallOptions(i))},n.prototype.tagDocument=function(n,t){return this.endpoint.tagDocument(n,this.enrichCallOptions(t))},n.prototype.getQuerySuggest=function(n,t){return this.endpoint.getQuerySuggest(n,this.enrichCallOptions(t))},n.prototype.facetSearch=function(n,t){return this.endpoint.facetSearch(n,this.enrichCallOptions(t))},n.prototype.rateDocument=function(n,t){return this.endpoint.rateDocument(n,this.enrichCallOptions(t))},n.prototype.getRawDataStream=function(n,t,i){return this.endpoint.getRawDataStream(n,t,this.enrichCallOptions(i))},n.prototype.getDocument=function(n,t){return this.endpoint.getDocument(n,this.enrichCallOptions(t))},n.prototype.getDocumentText=function(n,t){return this.endpoint.getDocumentText(n,this.enrichCallOptions(t))},n.prototype.getDocumentHtml=function(n,t){return this.endpoint.getDocumentHtml(n,this.enrichCallOptions(t))},n.prototype.getViewAsHtmlUri=function(n,t){return this.endpoint.getViewAsHtmlUri(n,this.enrichCallOptions(t))},n.prototype.getViewAsDatastreamUri=function(n,t,i){return this.endpoint.getViewAsDatastreamUri(n,t,this.enrichCallOptions(i))},n.prototype.listFieldValuesBatch=function(n,t){return this.endpoint.listFieldValuesBatch(n,this.enrichCallOptions(t))},n.prototype.listFieldValues=function(n,t){return this.endpoint.listFieldValues(n,this.enrichCallOptions(t))},n.prototype.listFields=function(n){return this.endpoint.listFields(this.enrichCallOptions(n))},n.prototype.extensions=function(n){return this.endpoint.extensions(this.enrichCallOptions(n))},n.prototype.follow=function(n){return this.endpoint.follow(n)},n.prototype.listSubscriptions=function(n){return this.endpoint.listSubscriptions(n)},n.prototype.updateSubscription=function(n){return this.endpoint.updateSubscription(n)},n.prototype.deleteSubscription=function(n){return this.endpoint.deleteSubscription(n)},n.prototype.logError=function(n){return this.endpoint.logError(n)},n.prototype.exchangeHandshakeToken=function(n){return this.endpoint.exchangeHandshakeToken(n)},n.prototype.enrichCallOptions=function(n){return r.extend({},n,this.callOptions)},n}();t.SearchEndpointWithDefaultCallOptions=u},function(n,t,i){"use strict";var r,u,f,e,o,s,h,c,l,a,v,y,p,w,b;Object.defineProperty(t,"__esModule",{value:!0}),function(n){for(var i in n)t.hasOwnProperty(i)||(t[i]=n[i])}(i(30));r=i(51);t.ComponentOptionsType=r.ComponentOptionsType;u=i(8);t.ComponentOptions=u.ComponentOptions;f=i(7);t.Component=f.Component;e=i(36);t.BaseComponent=e.BaseComponent;o=i(45);t.RootComponent=o.RootComponent;s=i(49);t.QueryBuilder=s.QueryBuilder;h=i(74);t.ExpressionBuilder=h.ExpressionBuilder;c=i(2);t.Initialization=c.Initialization;l=i(2);t.CoveoJQuery=l.Initialization;a=i(212);t.initCoveoJQuery=a.initCoveoJQuery;v=i(89);t.DatePicker=v.DatePicker;y=i(61);t.ResponsiveComponentsManager=y.ResponsiveComponentsManager;p=i(123);t.ResponsiveDropdown=p.ResponsiveDropdown;w=i(135);t.ResponsiveDropdownHeader=w.ResponsiveDropdownHeader;b=i(93);t.ResponsiveDropdownContent=b.ResponsiveDropdownContent},function(n,t,i){var r,u;!function(f){var e=function(){"use strict";var n={DAY:864e5,HOUR:36e5,MINUTE:6e4,SECOND:1e3,BASELINE_YEAR:2014,MAX_SCORE:864e6,AMBIGUITIES:{"America/Denver":["America/Mazatlan"],"Europe/London":["Africa/Casablanca"],"America/Chicago":["America/Mexico_City"],"America/Asuncion":["America/Campo_Grande","America/Santiago"],"America/Montevideo":["America/Sao_Paulo","America/Santiago"],"Asia/Beirut":["Asia/Amman","Asia/Jerusalem","Europe/Helsinki","Asia/Damascus","Africa/Cairo","Asia/Gaza","Europe/Minsk"],"Pacific/Auckland":["Pacific/Fiji"],"America/Los_Angeles":["America/Santa_Isabel"],"America/New_York":["America/Havana"],"America/Halifax":["America/Goose_Bay"],"America/Godthab":["America/Miquelon"],"Asia/Dubai":["Asia/Yerevan"],"Asia/Jakarta":["Asia/Krasnoyarsk"],"Asia/Shanghai":["Asia/Irkutsk","Australia/Perth"],"Australia/Sydney":["Australia/Lord_Howe"],"Asia/Tokyo":["Asia/Yakutsk"],"Asia/Dhaka":["Asia/Omsk"],"Asia/Baku":["Asia/Yerevan"],"Australia/Brisbane":["Asia/Vladivostok"],"Pacific/Noumea":["Asia/Vladivostok"],"Pacific/Majuro":["Asia/Kamchatka","Pacific/Fiji"],"Pacific/Tongatapu":["Pacific/Apia"],"Asia/Baghdad":["Europe/Minsk","Europe/Moscow"],"Asia/Karachi":["Asia/Yekaterinburg"],"Africa/Johannesburg":["Asia/Gaza","Africa/Cairo"]}},t=function(n){var t=-n.getTimezoneOffset();return null!==t?t:0},r=function(){var i=t(new Date(n.BASELINE_YEAR,0,2)),r=t(new Date(n.BASELINE_YEAR,5,2)),u=i-r;return u<0?i+",1":u>0?r+",1,s":i+",0"},u=function(){var t,n;if("undefined"!=typeof Intl&&void 0!==Intl.DateTimeFormat&&void 0!==(t=Intl.DateTimeFormat())&&void 0!==t.resolvedOptions)return n=t.resolvedOptions().timeZone,n&&(n.indexOf("/")>-1||"UTC"===n)?n:void 0},f=function(n){for(var f,t,s=new Date(n,0,1,0,0,1,0).getTime(),h=new Date(n,12,31,23,59,59).getTime(),r=s,u=new Date(r).getTimezoneOffset(),e=null,o=null;r<h-864e5;)f=new Date(r),t=f.getTimezoneOffset(),t!==u&&(t<u&&(e=f),t>u&&(o=f),u=t),r+=864e5;return!(!e||!o)&&{s:i(e).getTime(),e:i(o).getTime()}},i=function t(i,r,u){var o;void 0===r&&(r=n.DAY,u=n.HOUR);for(var s=new Date(i.getTime()-r).getTime(),h=i.getTime()+r,c=new Date(s).getTimezoneOffset(),e=s,f=null;e<h-u;){if(o=new Date(e),o.getTimezoneOffset()!==c){f=o;break}e+=u}return r===n.DAY?t(f,n.HOUR,n.MINUTE):r===n.HOUR?t(f,n.MINUTE,n.SECOND):f},o=function(n,t,i,r){if("N/A"!==i)return i;if("Asia/Beirut"===t){if("Africa/Cairo"===r.name&&13983768e5===n[6].s&&14116788e5===n[6].e||"Asia/Jerusalem"===r.name&&13959648e5===n[6].s&&14118588e5===n[6].e)return 0}else if("America/Santiago"===t){if("America/Asuncion"===r.name&&14124816e5===n[6].s&&1397358e6===n[6].e||"America/Campo_Grande"===r.name&&14136912e5===n[6].s&&13925196e5===n[6].e)return 0}else if("America/Montevideo"===t){if("America/Sao_Paulo"===r.name&&14136876e5===n[6].s&&1392516e6===n[6].e)return 0}else if("Pacific/Auckland"===t&&"Pacific/Fiji"===r.name&&14142456e5===n[6].s&&13961016e5===n[6].e)return 0;return i},s=function(t,i){for(var a,c,u,f,s={},h=e.olson.dst_rules.zones,v=h.length,l=n.AMBIGUITIES[i],r=0;r<v;r++)a=h[r],c=function(r){for(var f=0,u=0;u<t.length;u++)if(r.rules[u]&&t[u]){if(!(t[u].s>=r.rules[u].s&&t[u].e<=r.rules[u].e)){f="N/A";break}if(f=0,f+=Math.abs(t[u].s-r.rules[u].s),f+=Math.abs(r.rules[u].e-t[u].e),f>n.MAX_SCORE){f="N/A";break}}return o(t,i,f,r)}(h[r]),"N/A"!==c&&(s[a.name]=c);for(u in s)if(s.hasOwnProperty(u))for(f=0;f<l.length;f++)if(l[f]===u)return u;return i},h=function(n){var t=function(){for(var i,t=[],n=0;n<e.olson.dst_rules.years.length;n++)i=f(e.olson.dst_rules.years[n]),t.push(i);return t}();return function(n){for(var t=0;t<n.length;t++)if(!1!==n[t])return!0;return!1}(t)?s(t,n):n};return{determine:function(){var t=u();return t||(t=e.olson.timezones[r()],void 0!==n.AMBIGUITIES[t]&&(t=h(t))),{name:function(){return t}}}}}();e.olson=e.olson||{};e.olson.timezones={"-720,0":"Etc/GMT+12","-660,0":"Pacific/Pago_Pago","-660,1,s":"Pacific/Apia","-600,1":"America/Adak","-600,0":"Pacific/Honolulu","-570,0":"Pacific/Marquesas","-540,0":"Pacific/Gambier","-540,1":"America/Anchorage","-480,1":"America/Los_Angeles","-480,0":"Pacific/Pitcairn","-420,0":"America/Phoenix","-420,1":"America/Denver","-360,0":"America/Guatemala","-360,1":"America/Chicago","-360,1,s":"Pacific/Easter","-300,0":"America/Bogota","-300,1":"America/New_York","-270,0":"America/Caracas","-240,1":"America/Halifax","-240,0":"America/Santo_Domingo","-240,1,s":"America/Asuncion","-210,1":"America/St_Johns","-180,1":"America/Godthab","-180,0":"America/Argentina/Buenos_Aires","-180,1,s":"America/Montevideo","-120,0":"America/Noronha","-120,1":"America/Noronha","-60,1":"Atlantic/Azores","-60,0":"Atlantic/Cape_Verde","0,0":"UTC","0,1":"Europe/London","60,1":"Europe/Berlin","60,0":"Africa/Lagos","60,1,s":"Africa/Windhoek","120,1":"Asia/Beirut","120,0":"Africa/Johannesburg","180,0":"Asia/Baghdad","180,1":"Europe/Moscow","210,1":"Asia/Tehran","240,0":"Asia/Dubai","240,1":"Asia/Baku","270,0":"Asia/Kabul","300,1":"Asia/Yekaterinburg","300,0":"Asia/Karachi","330,0":"Asia/Kolkata","345,0":"Asia/Kathmandu","360,0":"Asia/Dhaka","360,1":"Asia/Omsk","390,0":"Asia/Rangoon","420,1":"Asia/Krasnoyarsk","420,0":"Asia/Jakarta","480,0":"Asia/Shanghai","480,1":"Asia/Irkutsk","525,0":"Australia/Eucla","525,1,s":"Australia/Eucla","540,1":"Asia/Yakutsk","540,0":"Asia/Tokyo","570,0":"Australia/Darwin","570,1,s":"Australia/Adelaide","600,0":"Australia/Brisbane","600,1":"Asia/Vladivostok","600,1,s":"Australia/Sydney","630,1,s":"Australia/Lord_Howe","660,1":"Asia/Kamchatka","660,0":"Pacific/Noumea","690,0":"Pacific/Norfolk","720,1,s":"Pacific/Auckland","720,0":"Pacific/Majuro","765,1,s":"Pacific/Chatham","780,0":"Pacific/Tongatapu","780,1,s":"Pacific/Apia","840,0":"Pacific/Kiritimati"};e.olson.dst_rules={years:[2008,2009,2010,2011,2012,2013,2014],zones:[{name:"Africa/Cairo",rules:[{e:12199572e5,s:12090744e5},{e:1250802e6,s:1240524e6},{e:12858804e5,s:12840696e5},!1,!1,!1,{e:14116788e5,s:1406844e6}]},{name:"Africa/Casablanca",rules:[{e:12202236e5,s:12122784e5},{e:12508092e5,s:12438144e5},{e:1281222e6,s:12727584e5},{e:13120668e5,s:13017888e5},{e:13489704e5,s:1345428e6},{e:13828392e5,s:13761e8},{e:14142888e5,s:14069448e5}]},{name:"America/Asuncion",rules:[{e:12050316e5,s:12243888e5},{e:12364812e5,s:12558384e5},{e:12709548e5,s:12860784e5},{e:13024044e5,s:1317528e6},{e:1333854e6,s:13495824e5},{e:1364094e6,s:1381032e6},{e:13955436e5,s:14124816e5}]},{name:"America/Campo_Grande",rules:[{e:12032172e5,s:12243888e5},{e:12346668e5,s:12558384e5},{e:12667212e5,s:1287288e6},{e:12981708e5,s:13187376e5},{e:13302252e5,s:1350792e6},{e:136107e7,s:13822416e5},{e:13925196e5,s:14136912e5}]},{name:"America/Goose_Bay",rules:[{e:122559486e4,s:120503526e4},{e:125704446e4,s:123648486e4},{e:128909886e4,s:126853926e4},{e:13205556e5,s:129998886e4},{e:13520052e5,s:13314456e5},{e:13834548e5,s:13628952e5},{e:14149044e5,s:13943448e5}]},{name:"America/Havana",rules:[{e:12249972e5,s:12056436e5},{e:12564468e5,s:12364884e5},{e:12885012e5,s:12685428e5},{e:13211604e5,s:13005972e5},{e:13520052e5,s:13332564e5},{e:13834548e5,s:13628916e5},{e:14149044e5,s:13943412e5}]},{name:"America/Mazatlan",rules:[{e:1225008e6,s:12074724e5},{e:12564576e5,s:1238922e6},{e:1288512e6,s:12703716e5},{e:13199616e5,s:13018212e5},{e:13514112e5,s:13332708e5},{e:13828608e5,s:13653252e5},{e:14143104e5,s:13967748e5}]},{name:"America/Mexico_City",rules:[{e:12250044e5,s:12074688e5},{e:1256454e6,s:12389184e5},{e:12885084e5,s:1270368e6},{e:1319958e6,s:13018176e5},{e:13514076e5,s:13332672e5},{e:13828572e5,s:13653216e5},{e:14143068e5,s:13967712e5}]},{name:"America/Miquelon",rules:[{e:12255984e5,s:12050388e5},{e:1257048e6,s:12364884e5},{e:12891024e5,s:12685428e5},{e:1320552e6,s:12999924e5},{e:13520016e5,s:1331442e6},{e:13834512e5,s:13628916e5},{e:14149008e5,s:13943412e5}]},{name:"America/Santa_Isabel",rules:[{e:12250116e5,s:1207476e6},{e:12564612e5,s:12389256e5},{e:12885156e5,s:12703752e5},{e:13199652e5,s:13018248e5},{e:13514148e5,s:13332744e5},{e:13828644e5,s:13653288e5},{e:1414314e6,s:13967784e5}]},{name:"America/Santiago",rules:[{e:1206846e6,s:1223784e6},{e:1237086e6,s:12552336e5},{e:127035e7,s:12866832e5},{e:13048236e5,s:13138992e5},{e:13356684e5,s:13465584e5},{e:1367118e6,s:13786128e5},{e:13985676e5,s:14100624e5}]},{name:"America/Sao_Paulo",rules:[{e:12032136e5,s:12243852e5},{e:12346632e5,s:12558348e5},{e:12667176e5,s:12872844e5},{e:12981672e5,s:1318734e6},{e:13302216e5,s:13507884e5},{e:13610664e5,s:1382238e6},{e:1392516e6,s:14136876e5}]},{name:"Asia/Amman",rules:[{e:1225404e6,s:12066552e5},{e:12568536e5,s:12381048e5},{e:12883032e5,s:12695544e5},{e:13197528e5,s:13016088e5},!1,!1,{e:14147064e5,s:13959576e5}]},{name:"Asia/Damascus",rules:[{e:12254868e5,s:120726e7},{e:125685e7,s:12381048e5},{e:12882996e5,s:12701592e5},{e:13197492e5,s:13016088e5},{e:13511988e5,s:13330584e5},{e:13826484e5,s:1364508e6},{e:14147028e5,s:13959576e5}]},{name:"Asia/Dubai",rules:[!1,!1,!1,!1,!1,!1,!1]},{name:"Asia/Gaza",rules:[{e:12199572e5,s:12066552e5},{e:12520152e5,s:12381048e5},{e:1281474e6,s:126964086e4},{e:1312146e6,s:130160886e4},{e:13481784e5,s:13330584e5},{e:13802292e5,s:1364508e6},{e:1414098e6,s:13959576e5}]},{name:"Asia/Irkutsk",rules:[{e:12249576e5,s:12068136e5},{e:12564072e5,s:12382632e5},{e:12884616e5,s:12697128e5},!1,!1,!1,!1]},{name:"Asia/Jerusalem",rules:[{e:12231612e5,s:12066624e5},{e:1254006e6,s:1238112e6},{e:1284246e6,s:12695616e5},{e:131751e7,s:1301616e6},{e:13483548e5,s:13330656e5},{e:13828284e5,s:13645152e5},{e:1414278e6,s:13959648e5}]},{name:"Asia/Kamchatka",rules:[{e:12249432e5,s:12067992e5},{e:12563928e5,s:12382488e5},{e:12884508e5,s:12696984e5},!1,!1,!1,!1]},{name:"Asia/Krasnoyarsk",rules:[{e:12249612e5,s:12068172e5},{e:12564108e5,s:12382668e5},{e:12884652e5,s:12697164e5},!1,!1,!1,!1]},{name:"Asia/Omsk",rules:[{e:12249648e5,s:12068208e5},{e:12564144e5,s:12382704e5},{e:12884688e5,s:126972e7},!1,!1,!1,!1]},{name:"Asia/Vladivostok",rules:[{e:12249504e5,s:12068064e5},{e:12564e8,s:1238256e6},{e:12884544e5,s:12697056e5},!1,!1,!1,!1]},{name:"Asia/Yakutsk",rules:[{e:1224954e6,s:120681e7},{e:12564036e5,s:12382596e5},{e:1288458e6,s:12697092e5},!1,!1,!1,!1]},{name:"Asia/Yekaterinburg",rules:[{e:12249684e5,s:12068244e5},{e:1256418e6,s:1238274e6},{e:12884724e5,s:12697236e5},!1,!1,!1,!1]},{name:"Asia/Yerevan",rules:[{e:1224972e6,s:1206828e6},{e:12564216e5,s:12382776e5},{e:1288476e6,s:12697272e5},{e:13199256e5,s:13011768e5},!1,!1,!1]},{name:"Australia/Lord_Howe",rules:[{e:12074076e5,s:12231342e5},{e:12388572e5,s:12545838e5},{e:12703068e5,s:12860334e5},{e:13017564e5,s:1317483e6},{e:1333206e6,s:13495374e5},{e:13652604e5,s:1380987e6},{e:139671e7,s:14124366e5}]},{name:"Australia/Perth",rules:[{e:12068136e5,s:12249576e5},!1,!1,!1,!1,!1,!1]},{name:"Europe/Helsinki",rules:[{e:12249828e5,s:12068388e5},{e:12564324e5,s:12382884e5},{e:12884868e5,s:1269738e6},{e:13199364e5,s:13011876e5},{e:1351386e6,s:13326372e5},{e:13828356e5,s:13646916e5},{e:14142852e5,s:13961412e5}]},{name:"Europe/Minsk",rules:[{e:12249792e5,s:12068352e5},{e:12564288e5,s:12382848e5},{e:12884832e5,s:12697344e5},!1,!1,!1,!1]},{name:"Europe/Moscow",rules:[{e:12249756e5,s:12068316e5},{e:12564252e5,s:12382812e5},{e:12884796e5,s:12697308e5},!1,!1,!1,!1]},{name:"Pacific/Apia",rules:[!1,!1,!1,{e:13017528e5,s:13168728e5},{e:13332024e5,s:13489272e5},{e:13652568e5,s:13803768e5},{e:13967064e5,s:14118264e5}]},{name:"Pacific/Fiji",rules:[!1,!1,{e:12696984e5,s:12878424e5},{e:13271544e5,s:1319292e6},{e:1358604e6,s:13507416e5},{e:139005e7,s:1382796e6},{e:14215032e5,s:14148504e5}]},{name:"Europe/London",rules:[{e:12249828e5,s:12068388e5},{e:12564324e5,s:12382884e5},{e:12884868e5,s:1269738e6},{e:13199364e5,s:13011876e5},{e:1351386e6,s:13326372e5},{e:13828356e5,s:13646916e5},{e:14142852e5,s:13961412e5}]}]};void 0!==n&&void 0!==n.exports?n.exports=e:null!==i(334)&&null!=i(335)?(r=[],void 0!==(u=function(){return e}.apply(t,r))&&(n.exports=u)):void 0===f?window.jstz=e:f.jstz=e}()},function(n){n.exports=function(){throw new Error("define cannot be used indirect");}},function(n,t){(function(t){n.exports=t}).call(t,{})},function(){},function(){},function(){},function(){},function(n,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function n(){}return n.prototype.setState=function(){},n.prototype.replaceState=function(){},n}();t.NoopHistoryController=i},function(n,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});i(342);var u=i(1),f=i(11),e=i(205),r=i(6),o=i(101),s=function(){function n(n){this.root=n;this.initAriaLiveEl();this.appendToRoot();this.addQueryEventListeners()}return n.prototype.updateText=function(n){var t=n===u.$$(this.ariaLiveEl).text()?n+" ":n;u.$$(this.ariaLiveEl).text(t)},n.prototype.appendToRoot=function(){this.root.appendChild(this.ariaLiveEl)},n.prototype.initAriaLiveEl=function(){this.ariaLiveEl=u.$$("div",{"aria-live":"polite",className:"coveo-visible-to-screen-reader-only"}).el},n.prototype.addQueryEventListeners=function(){var n=this,t=u.$$(this.root);t.on(f.QueryEvents.duringQuery,function(){return n.onDuringQuery()});t.on(f.QueryEvents.querySuccess,function(t,i){return n.onQuerySuccess(i)});t.on(f.QueryEvents.queryError,function(t,i){return n.onQueryError(i)});t.on(o.OmniboxEvents.querySuggestRendered,function(t,i){if(i.numberOfSuggestions>0)return void n.onQuerySuggest(i.numberOfSuggestions);n.onNoQuerySuggest()})},n.prototype.onDuringQuery=function(){var n=r.l("UpdatingResults");this.updateText(n)},n.prototype.onQuerySuccess=function(n){var t=this.messageForResultCount(n);this.updateText(t)},n.prototype.onQuerySuggest=function(n){var t=r.l("QuerySuggestionsAvailable",n,n);this.updateText(t)},n.prototype.onNoQuerySuggest=function(){var n=r.l("QuerySuggestionsUnavailable");this.updateText(n)},n.prototype.messageForResultCount=function(n){return n.results.results.length?e.QuerySummaryUtils.message(this.root,n):this.noResultMessage(n.query.q)},n.prototype.noResultMessage=function(n){var t=r.l("noResultFor","${query}"),i=escape(n);return e.QuerySummaryUtils.replaceQueryTags(t,i)},n.prototype.onQueryError=function(n){var t=r.l("QueryException",n.error.message);this.updateText(t)},n}();t.AriaLive=s},function(){},function(n){n.exports='<svg focusable="false" enable-background="new 0 0 20 20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="Search"><title>Search<\/title><g fill="currentColor"><path class="coveo-magnifier-circle-svg" d="m8.368 16.736c-4.614 0-8.368-3.754-8.368-8.368s3.754-8.368 8.368-8.368 8.368 3.754 8.368 8.368-3.754 8.368-8.368 8.368m0-14.161c-3.195 0-5.793 2.599-5.793 5.793s2.599 5.793 5.793 5.793 5.793-2.599 5.793-5.793-2.599-5.793-5.793-5.793"><\/path><path d="m18.713 20c-.329 0-.659-.126-.91-.377l-4.552-4.551c-.503-.503-.503-1.318 0-1.82.503-.503 1.318-.503 1.82 0l4.552 4.551c.503.503.503 1.318 0 1.82-.252.251-.581.377-.91.377"><\/path><\/g><\/svg>'},function(n){n.exports='<svg focusable="false" enable-background="new 0 0 16 16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="More"><title>More<\/title><g fill="currentColor"><path class="coveo-more-background-svg" fill-opacity="0" d="m8.03.819c3.987 0 7.227 3.222 7.227 7.181s-3.239 7.181-7.227 7.181c-3.976 0-7.209-3.222-7.209-7.181s3.237-7.181 7.209-7.181"><\/path><path d="m0 8c0 4.416 3.572 8 7.991 8 4.425 0 8.009-3.581 8.009-8 0-4.416-3.581-8-8.009-8-4.416 0-7.991 3.581-7.991 8m8.031-6.4c3.553 0 6.441 2.872 6.441 6.4s-2.887 6.4-6.441 6.4c-3.544 0-6.425-2.872-6.425-6.4s2.885-6.4 6.425-6.4"><\/path><path d="m10.988 9.024c.551 0 1-.449 1-1s-.449-1-1-1-1 .449-1 1 .449 1 1 1"><\/path><path d="m7.991 9c .551 0 1-.449 1-1s-.449-1-1-1-1 .449-1 1 .449 1 1 1"><\/path><path d="m4.994 9c .551 0 1-.449 1-1s-.449-1-1-1-1 .449-1 1 .449 1 1 1"><\/path><\/g><\/svg>'},function(n){n.exports='<svg focusable="false" enable-background="new 0 0 18 18" viewBox="0 0 18 18" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="Loading"><title>Loading<\/title><g fill="currentColor"><path d="m16.76 8.051c-.448 0-.855-.303-.969-.757-.78-3.117-3.573-5.294-6.791-5.294s-6.01 2.177-6.79 5.294c-.134.537-.679.861-1.213.727-.536-.134-.861-.677-.728-1.212 1.004-4.009 4.594-6.809 8.731-6.809 4.138 0 7.728 2.8 8.73 6.809.135.536-.191 1.079-.727 1.213-.081.02-.162.029-.243.029z"><\/path><path d="m9 18c-4.238 0-7.943-3.007-8.809-7.149-.113-.541.234-1.071.774-1.184.541-.112 1.071.232 1.184.773.674 3.222 3.555 5.56 6.851 5.56s6.178-2.338 6.852-5.56c.113-.539.634-.892 1.184-.773.54.112.887.643.773 1.184-.866 4.142-4.57 7.149-8.809 7.149z"><\/path><\/g><\/svg>'},function(n){n.exports='<svg focusable="false" enable-background="new 0 0 11 11" viewBox="0 0 11 11" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="Toggle"><title>Toggle<\/title><g class="coveo-more-svg" fill="none"><path d="m10.083 4.583h-3.666v-3.666c0-.524-.393-.917-.917-.917s-.917.393-.917.917v3.667h-3.666c-.524-.001-.917.392-.917.916s.393.917.917.917h3.667v3.667c-.001.523.392.916.916.916s.917-.393.917-.917v-3.666h3.667c.523 0 .916-.393.916-.917-.001-.524-.394-.917-.917-.917z"><\/path><\/g><g class="coveo-line-svg" fill="none"><path d="m10 6.5h-9c-.552 0-1-.448-1-1 0-.552.448-1 1-1h9c .552 0 1 .448 1 1 0 .552-.448 1-1 1z"><\/path><\/g><g class="coveo-exclusion-svg" fill="none"><path d="m9.233 7.989-2.489-2.489 2.489-2.489c.356-.356.356-.889 0-1.244-.356-.356-.889-.356-1.244 0l-2.489 2.489-2.489-2.489c-.356-.356-.889-.356-1.244 0-.356.356-.356.889 0 1.244l2.489 2.489-2.489 2.489c-.356.356-.356.889 0 1.244.356.356.889.356 1.244 0l2.489-2.489 2.489 2.489c.356.356.889.356 1.244 0 .356-.355.356-.889 0-1.244z"><\/path><\/g><g class="coveo-hook-svg" fill="none"><path d="m10.252 2.213c-.155-.142-.354-.211-.573-.213-.215.005-.414.091-.561.24l-4.873 4.932-2.39-2.19c-.154-.144-.385-.214-.57-.214-.214.004-.415.09-.563.24-.148.147-.227.343-.222.549.005.207.093.4.249.542l2.905 2.662c.168.154.388.239.618.239h.022.003c.237-.007.457-.101.618-.266l5.362-5.428c.148-.148.228-.344.223-.551s-.093-.399-.248-.542z"><\/path><\/g><\/svg>'},function(n){n.exports='<svg focusable="false" enable-background="new 0 0 10 6" viewBox="0 0 10 6" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="Arrow Up"><title>Arrow Up<\/title><g fill="currentColor"><path d="m5 .068c.222 0 .443.084.612.253l4.134 4.134c.338.338.338.886 0 1.224s-.886.338-1.224 0l-3.522-3.521-3.523 3.521c-.336.338-.886.338-1.224 0s-.337-.886.001-1.224l4.134-4.134c.168-.169.39-.253.612-.253z"><\/path><\/g><\/svg>'},function(n){n.exports='<svg focusable="false" enable-background="new 0 0 10 6" viewBox="0 0 10 6" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="Arrow Down"><title>Arrow Down<\/title><g fill="currentColor"><path d="m5 5.932c-.222 0-.443-.084-.612-.253l-4.134-4.134c-.338-.338-.338-.886 0-1.224s.886-.338 1.224 0l3.522 3.521 3.523-3.521c.336-.338.886-.338 1.224 0s .337.886-.001 1.224l-4.135 4.134c-.168.169-.39.253-.611.253z"><\/path><\/g><\/svg>'},function(n){n.exports='<svg focusable="false" enable-background="new 0 0 13 13" viewBox="0 0 13 13" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="Clear"><title>Clear<\/title><g fill="currentColor"><path d="m7.881 6.501 4.834-4.834c.38-.38.38-1.001 0-1.381s-1.001-.38-1.381 0l-4.834 4.834-4.834-4.835c-.38-.38-1.001-.38-1.381 0s-.38 1.001 0 1.381l4.834 4.834-4.834 4.834c-.38.38-.38 1.001 0 1.381s1.001.38 1.381 0l4.834-4.834 4.834 4.834c.38.38 1.001.38 1.381 0s .38-1.001 0-1.381z"><\/path><\/g><\/svg>'},function(n){n.exports='<svg viewBox="0 0 18 18" xmlns="http://www.w3.org/2000/svg"><path d="m9 16c-3.9 0-7-3.1-7-7s3.1-7 7-7 7 3.1 7 7-3.1 7-7 7m0-16c-5 0-9 4-9 9s4 9 9 9 9-4 9-9-4-9-9-9"><\/path><path d="m11.1 5.5-2.1 2.1-2.1-2.1-1.4 1.4 2.1 2.1-2.1 2.1 1.4 1.4 2.1-2.1 2.1 2.1 1.4-1.4-2.1-2.1 2.1-2.1z"><\/path><\/svg>'},function(n){n.exports='<svg focusable="false" enable-background="new 0 0 11 11" viewBox="0 0 11 11" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="Clear"><title>Clear<\/title><g class="coveo-exclusion-svg" fill="none"><path d="m9.233 7.989-2.489-2.489 2.489-2.489c.356-.356.356-.889 0-1.244-.356-.356-.889-.356-1.244 0l-2.489 2.489-2.489-2.489c-.356-.356-.889-.356-1.244 0-.356.356-.356.889 0 1.244l2.489 2.489-2.489 2.489c-.356.356-.356.889 0 1.244.356.356.889.356 1.244 0l2.489-2.489 2.489 2.489c.356.356.889.356 1.244 0 .356-.355.356-.889 0-1.244z"><\/path><\/g><\/svg>'},function(n){n.exports='<svg focusable="false" enable-background="new 0 0 11 11" viewBox="0 0 11 11" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="Close"><title>Close<\/title><g class="coveo-exclusion-svg" fill="none"><path d="m9.233 7.989-2.489-2.489 2.489-2.489c.356-.356.356-.889 0-1.244-.356-.356-.889-.356-1.244 0l-2.489 2.489-2.489-2.489c-.356-.356-.889-.356-1.244 0-.356.356-.356.889 0 1.244l2.489 2.489-2.489 2.489c-.356.356-.356.889 0 1.244.356.356.889.356 1.244 0l2.489-2.489 2.489 2.489c.356.356.889.356 1.244 0 .356-.355.356-.889 0-1.244z"><\/path><\/g><\/svg>'},function(n){n.exports='<svg focusable="false" enable-background="new 0 0 11 11" viewBox="0 0 11 11" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="Delete"><title>Delete<\/title><g class="coveo-exclusion-svg" fill="none"><path d="m9.233 7.989-2.489-2.489 2.489-2.489c.356-.356.356-.889 0-1.244-.356-.356-.889-.356-1.244 0l-2.489 2.489-2.489-2.489c-.356-.356-.889-.356-1.244 0-.356.356-.356.889 0 1.244l2.489 2.489-2.489 2.489c-.356.356-.356.889 0 1.244.356.356.889.356 1.244 0l2.489-2.489 2.489 2.489c.356.356.889.356 1.244 0 .356-.355.356-.889 0-1.244z"><\/path><\/g><\/svg>'},function(n){n.exports='<svg focusable="false" enable-background="new 0 0 11 11" viewBox="0 0 11 11" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="Save"><title>Save<\/title><g class="coveo-hook-svg" fill="none"><path d="m10.252 2.213c-.155-.142-.354-.211-.573-.213-.215.005-.414.091-.561.24l-4.873 4.932-2.39-2.19c-.154-.144-.385-.214-.57-.214-.214.004-.415.09-.563.24-.148.147-.227.343-.222.549.005.207.093.4.249.542l2.905 2.662c.168.154.388.239.618.239h.022.003c.237-.007.457-.101.618-.266l5.362-5.428c.148-.148.228-.344.223-.551s-.093-.399-.248-.542z"><\/path><\/g><\/svg>'},function(n){n.exports='<svg viewBox="0 0 96 96" xmlns="http://www.w3.org/2000/svg"><g><path d="m48 .5c-26.2 0-47.5 21.3-47.5 47.5s21.3 47.5 47.5 47.5 47.5-21.3 47.5-47.5-21.3-47.5-47.5-47.5zm0 86.6c-21.6 0-39.1-17.5-39.1-39.1s17.5-39.1 39.1-39.1 39.1 17.5 39.1 39.1-17.5 39.1-39.1 39.1z"><\/path><path d="m42.1 51.6-11.3-11.4-10 9.9 21.3 21.3 33.4-33.4-9.9-9.9z"><\/path><\/g><\/svg>'},function(n){n.exports='<svg focusable="false" enable-background="new 0 0 18 18" viewBox="0 0 18 18" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="Or/And Operator"><title>Or/And Operator<\/title><g fill="currentColor"><path class="coveo-and-svg" d="m13.769 5.294h-1.063v-1.063c0-2.329-1.894-4.231-4.231-4.231h-4.244c-2.329 0-4.231 1.894-4.231 4.231v4.244c0 2.329 1.894 4.231 4.231 4.231h1.063v1.063c0 2.329 1.894 4.231 4.231 4.231h4.244c2.329 0 4.231-1.894 4.231-4.231v-4.244c0-2.329-1.894-4.231-4.231-4.231zm2.731 8.475c0 1.506-1.225 2.731-2.731 2.731h-4.244c-1.506 0-2.731-1.225-2.731-2.731v-2.563h-2.563c-1.506 0-2.731-1.225-2.731-2.731v-4.244c0-1.506 1.225-2.731 2.731-2.731h4.244c1.506 0 2.731 1.225 2.731 2.731v2.563h2.563c1.506 0 2.731 1.225 2.731 2.731z"><\/path><path class="coveo-or-svg" d="m11.206 6.794v1.909c0 1.38-1.123 2.503-2.503 2.503h-1.909v-1.909c0-1.38 1.123-2.503 2.503-2.503zm1.5-1.5h-3.409c-2.209 0-4.003 1.792-4.003 4.003v3.409h3.409c2.209 0 4.003-1.792 4.003-4.003z"><\/path><\/g><\/svg>'},function(n){n.exports='<svg focusable="false" enable-background="new 0 0 15 14" viewBox="0 0 15 14" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="Sort"><title>Sort<\/title><g fill="currentColor"><path class="coveo-active-shape-svg" d="m13.002 4.076 0 0c0 .536-.439.975-.975.975h-2.925c-.536 0-.975-.439-.975-.975l0 0c0-.536.439-.975.975-.975h2.925c.537 0 .975.438.975.975z"><\/path><path class="coveo-active-shape-svg" d="m13.002 9.925 0 0c0 .536-.439.975-.975.975h-2.925c-.536 0-.975-.439-.975-.975l0 0c0-.536.439-.975.975-.975h2.925c.537 0 .975.439.975.975z"><\/path><path class="coveo-active-shape-svg" d="m15 7 0 0c0 .536-.439.975-.975.975h-4.923c-.536 0-.974-.438-.974-.975l0 0c0-.536.439-.975.975-.975h4.923c.535.001.974.439.974.975z"><\/path><path d="m4.956 9.837-.671.671v-7.015l.671.671c.381.381.997.381 1.379 0 .381-.38.381-.997 0-1.379l-2.335-2.336c-.183-.184-.431-.286-.69-.286s-.506.102-.689.286l-2.335 2.336c-.381.381-.381.997 0 1.379s.997.381 1.379 0l .671-.671v7.015l-.671-.671c-.381-.381-.997-.381-1.379 0-.381.38-.381.997 0 1.379l2.335 2.336c.182.183.431.286.689.286s.506-.103.69-.287l2.335-2.336c.381-.381.381-.997 0-1.379-.382-.381-.998-.381-1.379.001z"><\/path><\/g><\/svg>'},function(n){n.exports='<svg focusable="false" enable-background="new 0 0 15 12" viewBox="0 0 15 12" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="Ascending"><title>Ascending<\/title><g fill="currentColor"><path class="coveo-active-shape-svg" d="m10.936 2.021 0 0c0 .549-.452.998-1.004.998h-1.004c-.552 0-1.004-.449-1.004-.998l0 0c0-.549.452-.998 1.004-.998h1.004c.552 0 1.004.449 1.004.998z"><\/path><path class="coveo-active-shape-svg" d="m12.943 5.015 0 0c0 .549-.452.998-1.004.998h-3.011c-.552 0-1.004-.449-1.004-.998l0 0c0-.549.452-.998 1.004-.998h3.011c.553 0 1.004.449 1.004.998z"><\/path><path class="coveo-active-shape-svg" d="m15 8.008 0 0c0 .549-.452.998-1.004.998h-5.068c-.552 0-1.004-.449-1.004-.998l0 0c0-.549.452-.998 1.004-.998h5.068c.552 0 1.004.449 1.004.998z"><\/path><path d="m6.521 2.683-2.403-2.391c-.188-.187-.444-.292-.71-.292s-.521.105-.71.292l-2.404 2.391c-.392.39-.392 1.021 0 1.411s1.027.39 1.419 0l .691-.687v7.594c0 .55.452.999 1.004.999s1.004-.449 1.004-.998v-7.594l.691.687c.392.39 1.027.39 1.419 0s .392-1.021-.001-1.412z"><\/path><\/g><\/svg>'},function(n){n.exports='<svg focusable="false" enable-background="new 0 0 15 12" viewBox="0 0 15 12" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="Descending"><title>Descending<\/title><g fill="currentColor"><path d="m6.521 7.906c-.392-.39-1.027-.39-1.419 0l-.69.686v-7.594c0-.549-.452-.998-1.004-.998s-1.004.449-1.004.998v7.594l-.69-.686c-.392-.39-1.027-.39-1.419 0-.392.39-.392 1.021 0 1.411l2.404 2.391c.188.187.443.292.709.292s.522-.105.71-.292l2.404-2.391c.392-.391.392-1.022-.001-1.411z"><\/path><path class="coveo-active-shape-svg" d="m9.932 11.001h-1.004c-.552 0-1.004-.449-1.004-.998l0 0c0-.549.452-.998 1.004-.998h1.004c.552 0 1.004.449 1.004.998l0 0c0 .549-.452.998-1.004.998z"><\/path><path class="coveo-active-shape-svg" d="m11.94 8.007h-3.012c-.552 0-1.004-.449-1.004-.998l0 0c0-.549.452-.998 1.004-.998h3.011c.552 0 1.004.449 1.004.998l0 0c0 .549-.451.998-1.003.998z"><\/path><path class="coveo-active-shape-svg" d="m13.996 5.014h-5.068c-.552 0-1.004-.449-1.004-.998l0 0c0-.549.452-.998 1.004-.998h5.068c.552 0 1.004.449 1.004.998l0 0c0 .548-.452.998-1.004.998z"><\/path><\/g><\/svg>'},function(n){n.exports='<svg focusable="false" enable-background="new 0 0 16 16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="Dropdown More"><title>Dropdown More<\/title><g fill="currentColor"><path class="coveo-active-shape-svg" d="m14 2v12h-12v-12zm1.306-2h-14.607c-.386 0-.699.318-.699.694v14.607c0 .384.315.699.699.699h14.602c.385 0 .699-.316.699-.694v-14.612c0-.383-.311-.694-.694-.694z"><\/path><path d="m10.969 7.055h-1.97v-1.968c0-.571-.448-1.032-1-1.032s-1 .462-1 1.032v1.969h-1.969c-.57 0-1.032.448-1.032 1s .463 1 1.032 1h1.97v1.969c0 .57.448 1.032 1 1.032s1-.463 1-1.032v-1.97h1.969c.571 0 1.032-.448 1.032-1 .001-.552-.462-1-1.032-1z"><\/path><\/g><\/svg>'},function(n){n.exports='<svg focusable="false" enable-background="new 0 0 16 16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="Dropdown Less"><title>Dropdown Less<\/title><g fill="currentColor"><path class="coveo-active-shape-svg" d="m14 2v12h-11.999v-12zm1.306-2h-14.607c-.386 0-.699.318-.699.694v14.607c0 .384.315.699.699.699h14.602c.385 0 .699-.316.699-.694v-14.612c0-.383-.311-.694-.694-.694z"><\/path><path d="m10.969 9.055h-5.939c-.569 0-1.032-.448-1.032-1s .462-1 1.032-1h5.938c.57 0 1.032.448 1.032 1 .001.552-.46 1-1.031 1"><\/path><\/g><\/svg>'},function(n){n.exports='<svg focusable="false" enable-background="new 0 0 16 16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="Collapse"><title>Collapse<\/title><g fill="currentColor"><path class="coveo-active-shape-svg" d="m8.01 0c-4.425 0-8.01 3.581-8.01 7.992 0 4.425 3.581 8.01 7.999 8.01l.003-.003c4.417 0 7.999-3.581 7.999-7.999 0-4.417-3.581-7.999-7.992-7.999m.002 1.5c3.58 0 6.493 2.916 6.493 6.5s-2.916 6.5-6.5 6.5h-.172c-3.506-.09-6.331-2.975-6.331-6.508 0-3.58 2.92-6.493 6.51-6.492"><\/path><path d="m11.04 10.27c-.192 0-.384-.073-.53-.22l-2.51-2.51-2.51 2.51c-.293.293-.768.293-1.061 0s-.293-.768 0-1.061l3.041-3.04c.141-.14.332-.219.53-.219l0 0c .199 0 .39.079.53.22l3.04 3.041c.293.293.293.768 0 1.061-.146.145-.337.218-.53.218z"><\/path><\/g><\/svg>'},function(n){n.exports='<svg focusable="false" enable-background="new 0 0 16 16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="Expand"><title>Expand<\/title><g fill="currentColor"><path class="coveo-active-shape-svg" d="m7.991 16.002c4.425 0 8.01-3.581 8.01-7.992 0-4.425-3.581-8.01-7.999-8.01l-.003.003c-4.417 0-7.999 3.581-7.999 7.999 0 4.417 3.581 7.999 7.992 7.999m-.002-1.5c-3.58 0-6.493-2.916-6.493-6.5s2.916-6.5 6.5-6.5h.172c3.506.09 6.331 2.975 6.331 6.508 0 3.58-2.92 6.493-6.51 6.493"><\/path><path d="m4.961 5.732c.192 0 .384.073.53.22l2.51 2.51 2.51-2.51c.293-.293.768-.293 1.061 0s .293.768 0 1.061l-3.041 3.04c-.141.14-.332.219-.53.219l0 0c-.199 0-.39-.079-.53-.22l-3.04-3.041c-.293-.293-.293-.768 0-1.061.146-.145.337-.218.53-.218z"><\/path><\/g><\/svg>'},function(n){n.exports='<svg focusable="false" viewBox="0 0 18 14" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="Dropdown Share Query"><title>Dropdown Share Query<\/title><g fill="currentColor" fill-rule="evenodd"><path class="coveo-active-shape-svg" d="m12.1 13.5c-.426 0-.771-.332-.771-.74 0-.409.346-.74.771-.74h1.862c1.374 0 2.49-1.136 2.49-2.534v-.193c0-1.144-.756-2.15-1.839-2.448l-.488-.134-.066-.484c-.132-.979-1.11-1.673-2.041-1.458l-.635.143-.253-.578c-.626-1.429-2.024-2.352-3.562-2.352-2.147 0-3.892 1.769-3.892 3.944 0 .082.002.164.007.246l.032.541-.529.192c-.986.359-1.65 1.319-1.65 2.388v.192c0 1.398 1.117 2.535 2.49 2.535h.782c.426 0 .771.332.771.74 0 .409-.346.74-.771.74h-.782c-2.224 0-4.03-1.802-4.03-4.02v-.192c0-1.496.842-2.861 2.143-3.549.097-2.908 2.496-5.243 5.432-5.243 1.968 0 3.767 1.061 4.726 2.747 1.501-.024 2.798.945 3.198 2.327 1.495.61 2.501 2.077 2.501 3.717v.193c0 2.215-1.808 4.02-4.03 4.02h-1.863"><\/path><path d="m9 5.234c-.098-.149-.3-.233-.511-.234-.212 0-.413.084-.561.232l-3.193 3.176c-.311.309-.312.812-.003 1.123.155.156.359.233.563.233.202 0 .406-.076.56-.231l1.822-1.813v5.485c0 .438.356.794.794.794.438 0 .794-.356.794-.794v-5.504l1.82 1.83c.309.311.812.312 1.122.002.31-.309.312-.812.002-1.123l-3.21-3.176"><\/path><\/g><\/svg>'},function(n){n.exports='<svg focusable="false" enable-background="new 0 0 22 22" viewBox="0 0 22 22" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="Dropdown Preferences"><title>Dropdown Preferences<\/title><g fill="currentColor"><path class="coveo-active-shape-svg" d="m12.989 21.947h-3.978c-.752 0-1.388-.557-1.48-1.295l-.298-2.075c-.309-.154-.611-.33-.905-.526l-1.968.79c-.722.268-1.508-.028-1.858-.668l-1.977-3.419c-.366-.671-.207-1.47.365-1.922l1.669-1.306c-.013-.186-.019-.359-.019-.526s.006-.34.02-.526l-1.665-1.303c-.586-.462-.742-1.292-.365-1.932l1.985-3.434c.343-.633 1.136-.923 1.836-.65l1.98.796c.3-.2.6-.375.901-.527l.301-2.096c.089-.719.726-1.275 1.478-1.275h3.979c.753 0 1.39.557 1.479 1.296l.298 2.074c.31.154.611.33.905.526l1.968-.791c.721-.263 1.508.028 1.857.667l1.979 3.421c.365.671.207 1.47-.365 1.922l-1.669 1.305c.012.166.02.342.02.527s-.008.361-.02.526l1.665 1.302c.576.457.734 1.256.381 1.903l-2 3.463c-.35.636-1.146.922-1.84.649l-1.978-.794c-.301.199-.6.374-.902.526l-.3 2.095c-.088.72-.725 1.277-1.478 1.277m-3.539-2h3.1l.396-2.762.529-.217c.485-.2.964-.478 1.461-.851l.45-.337 2.585 1.038 1.554-2.688-2.198-1.718.071-.563c.035-.277.062-.555.062-.85s-.027-.572-.062-.85l-.071-.563 2.198-1.718-1.555-2.688-2.592 1.042-.452-.348c-.466-.358-.94-.633-1.451-.843l-.529-.217-.396-2.761h-3.1l-.396 2.762-.53.217c-.485.199-.962.477-1.46.85l-.451.337-2.584-1.038-1.554 2.688 2.196 1.718-.07.562c-.034.277-.061.564-.061.851s.027.573.062.852l.07.562-2.196 1.718 1.554 2.688 2.591-1.041.452.348c.465.356.939.632 1.452.843l.529.217z"><\/path><path d="m11 15c-2.206 0-4-1.794-4-4s1.794-4 4-4 4 1.794 4 4-1.794 4-4 4m0-6c-1.103 0-2 .897-2 2s .897 2 2 2 2-.897 2-2-.897-2-2-2"><\/path><\/g><\/svg>'},function(n){n.exports='<svg focusable="false" enable-background="new 0 0 12 16" viewBox="0 0 12 16" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="Dropdown Authenticate"><title>Dropdown Authenticate<\/title><g class="coveo-dropdown-authenticate-svg" fill="none"><path d="m10 5h-8c-1.1 0-2 .9-2 2v5c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2v-5c0-1.1-.9-2-2-2m0 1.5c.3 0 .5.2.5.5v5c0 .3-.2.5-.5.5h-8c-.3 0-.5-.2-.5-.5v-5c0-.3.2-.5.5-.5z"><\/path><path d="m10 5h-1.6v-1.1c0-1.3-1.1-2.4-2.4-2.4s-2.4 1.1-2.4 2.4v1.1h-1.6v-1.1c0-2.1 1.8-3.9 4-3.9s4 1.8 4 3.9z"><\/path><\/g><g class="coveo-dropdown-authenticate-hover-svg" fill="none"><path class="coveo-active-shape-svg" d="m10 7h-8c-1.1 0-2 .9-2 2v5c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2v-5c0-1.1-.9-2-2-2m0 1.5c.3 0 .5.2.5.5v5c0 .3-.2.5-.5.5h-8c-.3 0-.5-.2-.5-.5v-5c0-.3.2-.5.5-.5z"><\/path><path d="m5.1.1c-1.8.4-3.1 2.1-3.1 4v2.9h1.6v-3.1c0-1.7 1.8-3 3.6-2.1.8.4 1.2 1.3 1.2 2.2v.6c0 .4.4.8.8.8s.8-.4.8-.8v-.7c0-2.4-2.3-4.4-4.9-3.8z"><\/path><\/g><\/svg>'},function(n){n.exports='<svg focusable="false" enable-background="new 0 0 14 14" viewBox="0 0 14 14" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="Dropdown Export"><title>Dropdown Export<\/title><g fill="currentColor" transform="matrix(0 1 -1 0 20 0)"><path d="m7.699 8.591 1.05 1.05c.49.49 1.05 0 1.05 0s .49-.56 0-1.05l-2.31-2.381c-.28-.28-.7-.28-.98 0l-2.309 2.451c-.49.49 0 .98 0 .98s.56.49 1.05 0l1.05-1.05v7.91c0 .42.35.7.7.7s.7-.35.7-.7z"><\/path><path class="coveo-active-shape-svg" d="m10.5 12.301h2.033l.065 6.301h-11.198v-6.301h2.1c.386 0 .7-.314.7-.7l0 0c0-.386-.314-.7-.7-.7h-2.806c-.383-.001-.694.31-.694.694v7.706c0 .385.318.699.694.699h12.607c.384 0 .699-.315.699-.699v-7.7c0-.386-.316-.699-.694-.699h-2.806c-.386 0-.7.314-.7.7l0 0c0 .385.314.699.7.699z"><\/path><\/g><\/svg>'},function(n){n.exports='<svg focusable="false" enable-background="new 0 0 15 12" viewBox="0 0 15 12" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="Dropdown Follow Query"><title>Dropdown Follow Query<\/title><g fill="currentColor"><path d="m9.224 11.999c-.198 0-.496-.103-.694-.308-.397-.411-.397-1.025 0-1.436l3.965-4.409-3.966-4.102c-.397-.411-.397-1.025 0-1.436s.991-.411 1.388 0l4.859 4.922c.298.308.298.718 0 1.025l-4.859 5.435c-.198.206-.496.309-.693.309"><\/path><path class="coveo-active-shape-svg" d="m4.958.411c-.397-.411-.991-.411-1.388 0s-.397 1.025 0 1.436l2.973 2.974h-5.552c-.594 0-.991.41-.991 1.025s.397 1.025.991 1.025h5.651l-3.074 3.384c-.397.411-.397 1.025 0 1.436.199.206.398.309.695.309.298 0 .495-.103.694-.308l4.859-5.333c.298-.308.298-.718 0-1.025z"><\/path><\/g><\/svg>'},function(n){n.exports='<svg focusable="false" enable-background="new 0 0 20 12" viewBox="0 0 20 12" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="Quickview"><title>Quickview<\/title><g fill="currentColor"><path d="m10 4.3c-1 0-1.7.8-1.7 1.7 0 1 .8 1.7 1.7 1.7 1 0 1.7-.8 1.7-1.7 0-1-.7-1.7-1.7-1.7m0 4.7c-1.6 0-3-1.4-3-3s1.4-3 3-3 3 1.4 3 3-1.4 3-3 3"><\/path><path d="m19.8 6.4v-.001c.069-.117.109-.253.109-.399s-.04-.282-.109-.399v-.001c-.005-.008.005.007 0 0-2.203-3.473-5.917-5.6-9.8-5.6-3.884 0-7.655 2.091-9.8 5.602l0 0c-.069.117-.109.253-.109.398s.04.281.109.398c0 0-.001-.002 0 0 2.203 3.475 5.916 5.602 9.8 5.602 3.883 0 7.597-2.127 9.8-5.6.005-.007-.005.008 0 0zm-9.8 4.1c-3.236 0-6.28-1.635-8.189-4.339-.067-.095-.067-.228-.002-.324 1.908-2.797 4.953-4.337 8.191-4.337 3.235 0 6.278 1.634 8.187 4.337.068.096.068.231 0 .327-1.909 2.702-4.952 4.336-8.187 4.336z"><\/path><\/g><\/svg>'},function(n){n.exports='<svg focusable="false" enable-background="new 0 0 11 20" viewBox="0 0 11 20" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="Right Arrow"><title>Right Arrow<\/title><g fill="currentColor"><path d="m .308 18.189c-.412.413-.411 1.086 0 1.5.2.201.465.311.746.311.282 0 .547-.11.747-.31l8.891-8.939c.199-.2.307-.466.307-.75 0-.286-.109-.551-.305-.748l-8.893-8.942c-.199-.2-.465-.311-.747-.311-.001 0-.001 0-.001 0-.281 0-.546.11-.745.309-.198.201-.308.468-.308.753 0 .284.11.548.306.745l8.145 8.193z"><\/path><\/g><\/svg>'},function(n){n.exports='<svg focusable="false" enable-background="new 0 0 11 20" viewBox="0 0 11 20" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="Left Arrow"><title>Left Arrow<\/title><g fill="currentColor"><path d="m10.692 1.811c.412-.413.411-1.086 0-1.5-.2-.201-.465-.311-.746-.311-.283 0-.548.11-.747.31l-8.892 8.939c-.198.2-.307.466-.307.75 0 .286.109.551.305.748l8.893 8.941c.2.201.466.312.748.312h.001c.281 0 .546-.11.745-.309.199-.201.308-.468.308-.753 0-.284-.109-.548-.306-.745l-8.146-8.194z"><\/path><\/g><\/svg>'},function(n){n.exports='<svg focusable="false" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="Replies"><title>Replies<\/title><g fill="currentColor" fill-rule="evenodd" transform="translate(1)"><path d="m4 5h7v1h-7v-1m0 3h7v1h-7v-1m0 3h7v1h-7v-1"><\/path><path d="m15 1c.009-.525.066-1-1-1h-12.998c-.651 0-1 .33-1 1v15c0 .66.351 1 1 1h1.998v2c.075.546.383 1 1 1h13c.718 0 1-.295 1-1v-16c.001-.468-.406-.99-1-1h-2v-1m-13 14v-13h11v13h-11m14 3h-11v-.995l9-.005c.5.005.976-.428 1-1l.021-12h.979v14"><\/path><\/g><\/svg>'},function(n){n.exports='<svg focusable="false" enable-background="new 0 0 60 60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="Video"><title>Video<\/title><path clip-rule="evenodd" d="m3.753 60c-2.073 0-3.753-1.667-3.753-3.753v-52.494c0-2.073 1.667-3.753 3.753-3.753h52.494c2.073 0 3.753 1.667 3.753 3.753v52.493c0 2.074-1.667 3.754-3.753 3.754z" fill="#cc0d00" fill-rule="evenodd"><\/path><path d="m42.8 21.536h-8.96c-.267-.64-.64-1.173-1.12-1.653l3.36-4.32c.533-.693.427-1.707-.267-2.24-.693-.533-1.707-.427-2.24.267l-3.733 4.8c-.32 0-.587-.053-.907-.053s-.587.053-.853.053l-3.733-4.8c-.533-.693-1.547-.8-2.24-.267s-.8 1.547-.267 2.24l3.36 4.32c-.48.48-.853 1.013-1.12 1.653h-6.88c-1.76 0-3.2 1.44-3.2 3.2v14.933c0 1.76 1.44 3.2 3.2 3.2h25.6c1.76 0 3.2-1.44 3.2-3.2v-14.933c0-1.76-1.44-3.2-3.2-3.2zm-4.267 17.067c0 .587-.48 1.067-1.067 1.067h-19.2c-.587 0-1.067-.48-1.067-1.067v-12.8c0-.587.48-1.067 1.067-1.067h19.2c.587 0 1.067.48 1.067 1.067zm3.734-5.334c-.907 0-1.6-.693-1.6-1.6s.693-1.6 1.6-1.6 1.6.693 1.6 1.6-.694 1.6-1.6 1.6zm0-5.333c-.907 0-1.6-.693-1.6-1.6s.693-1.6 1.6-1.6 1.6.693 1.6 1.6-.694 1.6-1.6 1.6z" fill="#fff"><\/path><\/svg>'},function(n){n.exports='<svg version="1.1" id="prefix__Layer_1" xmlns="http://www.w3.org/2000/svg" x="0" y="0" viewBox="0 0 409.4 103.6" xml:space="preserve" aria-label="Coveo Logo"><style>.prefix__st0{fill:#333357}<\/style><path class="prefix__st0" d="M164.6 36.2l-4.9 5.2c-3.3-3.3-7-5.2-11.9-5.2-8.5 0-14.9 6.7-14.9 16.1s6.4 16.1 14.9 16.1c4.9 0 9.1-2.1 12.2-5.2l4.6 5.2c-4 4.6-9.7 7-16.4 7-14 0-23.1-10-23.1-23.1 0-13.4 9.1-23.4 23.1-23.4 6.6 0 12.4 2.7 16.4 7.3zM219.3 52.3c0 13.1-10 23.1-23.4 23.1-13.7 0-23.7-10-23.7-23.1 0-13.4 10-23.4 23.7-23.4 13.3 0 23.4 10 23.4 23.4zm-39.2 0c0 9.4 6.7 16.1 15.8 16.1 8.8 0 15.5-6.7 15.5-16.1s-6.7-16.1-15.5-16.1c-9.2 0-15.8 6.7-15.8 16.1zM252.1 74.5H243l-18.9-44.4h8.5l14.9 36.8 14.9-36.8h8.2l-18.5 44.4zM318.6 52v3h-35c.9 9.1 7.3 13.7 14.9 13.7 5.5 0 10-1.8 14-5.2l4 5.2c-5.5 5.2-11.5 6.7-18.2 6.7-13.4 0-22.8-9.1-22.8-23.1 0-13.7 9.4-23.4 22.2-23.4 12.1 0 20.9 9.7 20.9 23.1zm-34.9-3.4h27.4c-.9-7.6-6.1-12.8-13.4-12.8-7.9.1-12.8 5.2-14 12.8zM375.8 52.3c0 13.1-10 23.1-23.4 23.1-13.7 0-23.7-10-23.7-23.1 0-13.4 10-23.4 23.7-23.4 13.4 0 23.4 10 23.4 23.4zm-39.2 0c0 9.4 6.7 16.1 15.8 16.1 8.8 0 15.5-6.7 15.5-16.1s-6.7-16.1-15.5-16.1c-9.1 0-15.8 6.7-15.8 16.1z"><\/path><g><path class="prefix__st0" d="M394 30.2h-9v1.7h3.6V43h1.9V31.9h3.5v-1.7M409.4 30.2h-2l-3.7 8-3.7-8h-2V43h2v-8.6l3 6.3h1.5l2.9-6.3V43h2V30.2"><\/path><\/g><g><path d="M88.1 15C79.2 6.1 67.9 1.1 56.2 0 54.8-.1 54 1.6 55 2.6l18.7 18.7c.1.1 0 .3-.2.2-5.3-3.9-11.5-6.1-17.8-6.7-1-.1-1.5 1.1-.8 1.8l12.7 12.7c.1.1 0 .3-.2.2-3.5-2.4-7.5-3.8-11.6-4.2-.7-.1-1.1.8-.6 1.2l21.6 21.6c.5.5 1.3.1 1.2-.6-.4-4.1-1.8-8-4.2-11.5-.1-.1.1-.3.2-.2L86.2 48c.7.7 1.9.1 1.8-.8-.6-6.3-2.8-12.4-6.7-17.8-.1-.1.1-.3.2-.2L100.4 48c1 1 2.7.2 2.6-1.2-1-11.6-6-22.9-14.9-31.8" fill="#00adff"><\/path><path d="M15 15C23.9 6.1 35.2 1.1 46.8 0 48.2-.1 49 1.6 48 2.6L29.4 21.3c-.1.1 0 .3.2.2 5.3-3.9 11.5-6.1 17.8-6.7 1-.1 1.5 1.1.8 1.8L35.4 29.3c-.1.1 0 .3.2.2 3.5-2.4 7.5-3.8 11.6-4.2.7-.1 1.1.8.6 1.2L26.1 48.2c-.5.5-1.3.1-1.2-.6.4-4.1 1.8-8 4.2-11.5.1-.1-.1-.3-.2-.2L16.6 48.1c-.7.7-1.9.1-1.8-.8.6-6.3 2.8-12.4 6.7-17.8.1-.1-.1-.3-.2-.2L2.6 48c-1 1-2.7.2-2.6-1.2C1.1 35.2 6.1 23.9 15 15" fill="#f05245"><\/path><path d="M15 88.7c8.9 8.9 20.2 13.9 31.9 15 1.4.1 2.2-1.6 1.2-2.6L29.4 82.4c-.1-.1 0-.3.2-.2 5.3 3.9 11.5 6.1 17.8 6.7 1 .1 1.5-1.1.8-1.8L35.4 74.3c-.1-.1 0-.3.2-.2 3.5 2.4 7.5 3.8 11.6 4.2.7.1 1.1-.8.6-1.2L26.1 55.4c-.5-.5-1.3-.1-1.2.6.4 4.1 1.8 8 4.2 11.5.1.1-.1.3-.2.2L16.6 55.5c-.7-.7-1.9-.1-1.8.8.6 6.3 2.8 12.4 6.7 17.8.1.1-.1.3-.2.2L2.6 55.6c-1-1-2.7-.2-2.6 1.2 1.1 11.7 6.1 23 15 31.9" fill="#1cebcf"><\/path><path d="M88.1 88.7c-8.9 8.9-20.2 13.9-31.9 15-1.4.1-2.2-1.6-1.2-2.6l18.7-18.7c.1-.1 0-.3-.2-.2-5.3 3.8-11.5 6.1-17.8 6.6-1 .1-1.5-1.1-.8-1.8l12.7-12.7c.1-.1 0-.3-.2-.2-3.5 2.4-7.5 3.8-11.6 4.2-.7.1-1.1-.8-.6-1.2l21.6-21.6c.5-.5 1.3-.1 1.2.6-.4 4.1-1.8 8-4.2 11.5-.1.1.1.3.2.2l12.2-12.2c.7-.7 1.9-.1 1.8.8-.6 6.3-2.8 12.4-6.7 17.8-.1.1.1.3.2.2l18.7-18.7c1-1 2.7-.2 2.6 1.2-.8 11.6-5.8 22.9-14.7 31.8" fill="#ffe300"><\/path><\/g><\/svg>'},function(n){n.exports='<svg version="1.1" id="prefix__Layer_1" xmlns="http://www.w3.org/2000/svg" x="0" y="0" viewBox="0 0 409.4 103.6" xml:space="preserve" aria-label="Powered By Coveo Logo"><style>.prefix__st0{fill:#282829}<\/style><path class="prefix__st0" d="M164.6 36.2l-4.9 5.2c-3.3-3.3-7-5.2-11.9-5.2-8.5 0-14.9 6.7-14.9 16.1s6.4 16.1 14.9 16.1c4.9 0 9.1-2.1 12.2-5.2l4.6 5.2c-4 4.6-9.7 7-16.4 7-14 0-23.1-10-23.1-23.1 0-13.4 9.1-23.4 23.1-23.4 6.6 0 12.4 2.7 16.4 7.3zM219.3 52.3c0 13.1-10 23.1-23.4 23.1-13.7 0-23.7-10-23.7-23.1 0-13.4 10-23.4 23.7-23.4 13.3 0 23.4 10 23.4 23.4zm-39.2 0c0 9.4 6.7 16.1 15.8 16.1 8.8 0 15.5-6.7 15.5-16.1s-6.7-16.1-15.5-16.1c-9.2 0-15.8 6.7-15.8 16.1zM252.1 74.5H243l-18.9-44.4h8.5l14.9 36.8 14.9-36.8h8.2zM318.6 52v3h-35c.9 9.1 7.3 13.7 14.9 13.7 5.5 0 10-1.8 14-5.2l4 5.2c-5.5 5.2-11.5 6.7-18.2 6.7-13.4 0-22.8-9.1-22.8-23.1 0-13.7 9.4-23.4 22.2-23.4 12.1 0 20.9 9.7 20.9 23.1zm-34.9-3.4h27.4c-.9-7.6-6.1-12.8-13.4-12.8-7.9.1-12.8 5.2-14 12.8zM375.8 52.3c0 13.1-10 23.1-23.4 23.1-13.7 0-23.7-10-23.7-23.1 0-13.4 10-23.4 23.7-23.4 13.4 0 23.4 10 23.4 23.4zm-39.2 0c0 9.4 6.7 16.1 15.8 16.1 8.8 0 15.5-6.7 15.5-16.1s-6.7-16.1-15.5-16.1c-9.1 0-15.8 6.7-15.8 16.1z"><\/path><g><path class="prefix__st0" d="M394 30.2h-9v1.7h3.6V43h1.9V31.9h3.5v-1.7M409.4 30.2h-2l-3.7 8-3.7-8h-2V43h2v-8.6l3 6.3h1.5l2.9-6.3V43h2V30.2"><\/path><\/g><g><path class="prefix__st0" d="M88.1 15C79.2 6.1 67.9 1.1 56.2 0 54.8-.1 54 1.6 55 2.6l18.7 18.7c.1.1 0 .3-.2.2-5.3-3.9-11.5-6.1-17.8-6.7-1-.1-1.5 1.1-.8 1.8l12.7 12.7c.1.1 0 .3-.2.2-3.5-2.4-7.5-3.8-11.6-4.2-.7-.1-1.1.8-.6 1.2l21.6 21.6c.5.5 1.3.1 1.2-.6-.4-4.1-1.8-8-4.2-11.5-.1-.1.1-.3.2-.2L86.2 48c.7.7 1.9.1 1.8-.8-.6-6.3-2.8-12.4-6.7-17.8-.1-.1.1-.3.2-.2L100.4 48c1 1 2.7.2 2.6-1.2-1-11.6-6-22.9-14.9-31.8M15 15C23.9 6.1 35.2 1.1 46.8 0 48.2-.1 49 1.6 48 2.6L29.4 21.3c-.1.1 0 .3.2.2 5.3-3.9 11.5-6.1 17.8-6.7 1-.1 1.5 1.1.8 1.8L35.4 29.3c-.1.1 0 .3.2.2 3.5-2.4 7.5-3.8 11.6-4.2.7-.1 1.1.8.6 1.2L26.1 48.2c-.5.5-1.3.1-1.2-.6.4-4.1 1.8-8 4.2-11.5.1-.1-.1-.3-.2-.2L16.6 48.1c-.7.7-1.9.1-1.8-.8.6-6.3 2.8-12.4 6.7-17.8.1-.1-.1-.3-.2-.2L2.6 48c-1 1-2.7.2-2.6-1.2C1.1 35.2 6.1 23.9 15 15M15 88.7c8.9 8.9 20.2 13.9 31.9 15 1.4.1 2.2-1.6 1.2-2.6L29.4 82.4c-.1-.1 0-.3.2-.2 5.3 3.9 11.5 6.1 17.8 6.7 1 .1 1.5-1.1.8-1.8L35.4 74.3c-.1-.1 0-.3.2-.2 3.5 2.4 7.5 3.8 11.6 4.2.7.1 1.1-.8.6-1.2L26.1 55.4c-.5-.5-1.3-.1-1.2.6.4 4.1 1.8 8 4.2 11.5.1.1-.1.3-.2.2L16.6 55.5c-.7-.7-1.9-.1-1.8.8.6 6.3 2.8 12.4 6.7 17.8.1.1-.1.3-.2.2L2.6 55.6c-1-1-2.7-.2-2.6 1.2 1.1 11.7 6.1 23 15 31.9M88.1 88.7c-8.9 8.9-20.2 13.9-31.9 15-1.4.1-2.2-1.6-1.2-2.6l18.7-18.7c.1-.1 0-.3-.2-.2-5.3 3.8-11.5 6.1-17.8 6.6-1 .1-1.5-1.1-.8-1.8l12.7-12.7c.1-.1 0-.3-.2-.2-3.5 2.4-7.5 3.8-11.6 4.2-.7.1-1.1-.8-.6-1.2l21.6-21.6c.5-.5 1.3-.1 1.2.6-.4 4.1-1.8 8-4.2 11.5-.1.1.1.3.2.2l12.2-12.2c.7-.7 1.9-.1 1.8.8-.6 6.3-2.8 12.4-6.7 17.8-.1.1.1.3.2.2l18.7-18.7c1-1 2.7-.2 2.6 1.2-.8 11.6-5.8 22.9-14.7 31.8"><\/path><\/g><\/svg>'},function(n){n.exports='<svg focusable="false" enable-background="new 0 0 9 7" viewBox="0 0 9 7" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="Tagging Ok"><title>Tagging Ok<\/title><g fill="currentColor"><path d="m8.755.446c-.154-.145-.35-.216-.567-.218-.212.005-.409.093-.555.246l-4.176 4.422-2.117-2.003c-.152-.147-.381-.22-.564-.22-.211.004-.41.092-.556.247-.147.151-.225.352-.22.563.005.213.092.41.246.557l2.627 2.487c.166.158.384.245.611.245h.022.003c.234-.007.452-.103.611-.272l4.66-4.931c.146-.153.225-.354.22-.566-.005-.213-.092-.41-.245-.557z"><\/path><\/g><\/svg>'},function(n){n.exports='<svg focusable="false" enable-background="new 0 0 20 20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="Edit"><title>Edit<\/title><g fill="currentColor"><path d="m1 4c0-.552.448-1 1-1h7c .552 0 1 .448 1 1v0c0 .552-.448 1-1 1h-6v12h12v-6c0-.552.448-1 1-1h0c .552 0 1 .448 1 1v7c0 .552-.448 1-1 1h-14c-.552 0-1-.448-1-1z"><\/path><path d="m17.8.8c-.2-.2-.5-.2-.7 0l-1.7 1.7 2 2 1.7-1.7c.2-.2.2-.5 0-.7z"><\/path><path d="m14.5 3.5-6.9 6.9c-.1.1-.2.2-.2.3l-1.2 2.8c-.1.2.1.4.3.3l2.8-1.2c.1 0 .2-.1.3-.2l6.9-6.9z"><\/path><\/g><\/svg>'},function(n){n.exports='<svg focusable="false" enable-background="new 0 0 16 16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="Star"><title>Star<\/title><g fill="currentColor"><path d="m8.683.852 1.558 4.794h5.041c.695 0 .985.889.421 1.298l-4.077 2.963 1.558 4.794c.215.661-.542 1.211-1.104.802l-4.08-2.962-4.077 2.963c-.562.409-1.32-.141-1.104-.802l1.558-4.794-4.079-2.963c-.563-.409-.274-1.298.421-1.298h5.041l1.558-4.794c.214-.662 1.15-.662 1.365-.001z"><\/path><\/g><\/svg>'},function(n){n.exports='<svg focusable="false" enable-background="new 0 0 19 14" viewBox="0 0 19 14" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="List Layout"><title>List Layout<\/title><g fill="currentColor"><path d="m19 12c0 .552-.397 1-.813 1h-11.375c-.416 0-.813-.448-.813-1s .397-1 .813-1h11.375c.416 0 .813.448.813 1"><\/path><path d="m19 7c0 .552-.397 1-.813 1h-11.375c-.416 0-.813-.448-.813-1s .397-1 .813-1h11.375c.416 0 .813.448.813 1"><\/path><path d="m19 2c0 .552-.397 1-.813 1h-11.375c-.416 0-.813-.448-.813-1s .397-1 .813-1h11.375c.416 0 .813.448.813 1"><\/path><path d="m2 10c1.105 0 2 .895 2 2s-.895 2-2 2-2-.895-2-2 .895-2 2-2"><\/path><path d="m2 5c1.105 0 2 .895 2 2s-.895 2-2 2-2-.895-2-2 .895-2 2-2"><\/path><path d="m2 0c1.105 0 2 .895 2 2s-.895 2-2 2-2-.895-2-2 .895-2 2-2"><\/path><\/g><\/svg>'},function(n){n.exports='<svg focusable="false" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="Card Layout"><title>Card Layout<\/title><g fill="currentColor" fill-rule="evenodd"><rect x="12" y="12" width="4" height="4" rx="1"><\/rect><rect x="6" y="12" width="4" height="4" rx="1"><\/rect><rect y="12" width="4" height="4" rx="1"><\/rect><rect x="12" y="6" width="4" height="4" rx="1"><\/rect><rect x="6" y="6" width="4" height="4" rx="1"><\/rect><rect y="6" width="4" height="4" rx="1"><\/rect><rect x="12" width="4" height="4" rx="1"><\/rect><rect x="6" width="4" height="4" rx="1"><\/rect><rect width="4" height="4" rx="1"><\/rect><\/g><\/svg>'},function(n){n.exports='<svg focusable="false" viewBox="0 0 18 13" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="Table Layout"><title>Table Layout<\/title><g fill="currentColor" fill-rule="evenodd"><rect x="11" y="10" width="7" height="3" rx="1"><\/rect><rect x="11" y="5" width="7" height="3" rx="1"><\/rect><rect x="11" width="7" height="3" rx="1"><\/rect><rect y="10" width="9" height="3" rx="1"><\/rect><rect y="5" width="9" height="3" rx="1"><\/rect><rect width="9" height="3" rx="1"><\/rect><\/g><\/svg>'},function(n){n.exports='<svg viewBox="0 0 512 512" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="Plus"><title>Plus<\/title><path d="M496 208H304V16h-96v192H16v96h192v192h96V304h192"><\/path><\/svg>'},function(n,t,i){"use strict";var f=this&&this.__assign||Object.assign||function(n){for(var t,r,i=1,u=arguments.length;i<u;i++){t=arguments[i];for(r in t)Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n};Object.defineProperty(t,"__esModule",{value:!0});var e=i(0),o=i(9),r=i(4),u=i(51),s=function(){function n(n,t,i,r){this.element=n;this.values=t;this.optionName=i;this.optionDefinition=r;this.logger=new o.Logger(this)}return n.prototype.load=function(){return this.findFirstValidValue(this.loadFromAttribute.bind(this),this.loadFromOptionsDictionnary.bind(this),this.loadFromDefaultValue.bind(this),this.loadFromDefaultFunction.bind(this))},n.prototype.loadFromAttribute=function(){return this.optionDefinition.load?this.optionDefinition.load(this.element,this.optionName,this.optionDefinition):null},n.prototype.loadFromOptionsDictionnary=function(){return this.values[this.optionName]},n.prototype.loadFromDefaultValue=function(){if(this.optionDefinition.type==u.ComponentOptionsType.LOCALIZED_STRING)return this.loadDefaultLocalizedString();if(r.Utils.isNullOrUndefined(this.optionDefinition.defaultValue))return null;switch(this.optionDefinition.type){case u.ComponentOptionsType.LIST:return this.optionDefinition.defaultValue.slice();case u.ComponentOptionsType.OBJECT:return f({},this.optionDefinition.defaultValue);default:return this.optionDefinition.defaultValue}},n.prototype.loadDefaultLocalizedString=function(){if(!r.Utils.isNullOrUndefined(this.optionDefinition.defaultValue))return this.warnDeprecatedLocalizedStringAndReturnDefaultValue();var n=this.optionDefinition;return n.localizedString?n.localizedString():null},n.prototype.loadFromDefaultFunction=function(){return this.optionDefinition.defaultFunction?this.optionDefinition.defaultFunction(this.element):null},n.prototype.warnDeprecatedLocalizedStringAndReturnDefaultValue=function(){return this.logger.warn("defaultValue for option "+this.optionName+" is deprecated. You should instead use localizedString. Not doing so could cause localization bug in your interface."),this.optionDefinition.defaultValue},n.prototype.findFirstValidValue=function(){for(var t,i=[],n=0;n<arguments.length;n++)i[n]=arguments[n];return t=null,e.find(i,function(n){return t=n(),!r.Utils.isNullOrUndefined(t)}),t},n}();t.ComponentOptionLoader=s},function(n,t,i){"use strict";var u=this&&this.__assign||Object.assign||function(n){for(var t,r,i=1,u=arguments.length;i<u;i++){t=arguments[i];for(r in t)Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n};Object.defineProperty(t,"__esModule",{value:!0});var f=i(6),e=i(4),r=i(51),o=function(){function n(n,t,i){this.optionDefinition=n;this.valueToMerge=t;this.optionsDictionary=i}return n.prototype.merge=function(){var i=this.valueToMerge,n=i.name,t=i.value,o;if(!e.Utils.isNullOrUndefined(t)){switch(this.optionDefinition.type){case r.ComponentOptionsType.OBJECT:o=this.optionsDictionary[n]||{};this.optionsDictionary[n]=u({},o,t);break;case r.ComponentOptionsType.LOCALIZED_STRING:this.optionsDictionary[n]=f.l(t);break;default:this.optionsDictionary[n]=t}return this.valueToMerge}},n}();t.ComponentOptionsMerger=o},function(n,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=i(0),u=i(4),f=i(9),e=function(){function n(n,t,i){this.allOptionsDefinitions=n;this.optionsDictionnary=t;this.componentID=i;this.logger=new f.Logger(this)}return n.prototype.postProcess=function(){var n=this;r.each(this.allOptionsDefinitions,function(t,i){t.required&&u.Utils.isNullOrUndefined(n.optionsDictionnary[i])&&n.logger.warn('Option "'+i+'" is *REQUIRED* on the component "'+n.componentID+'". The component or the search page might *NOT WORK PROPERLY*.');t.postProcessing&&(n.optionsDictionnary[i]=t.postProcessing(n.optionsDictionnary[i],n.optionsDictionnary))})},n}();t.ComponentOptionsPostProcessor=e},function(n,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=i(9),u=function(){function n(n,t,i){this.optionDefinition=n;this.valueToValidate=t;this.optionsDictionnary=i;this.logger=new r.Logger(this)}return n.prototype.validate=function(){var n=this.valueToValidate,t=n.name,i=n.value,r=n.componentID;!this.optionDefinition.validator||this.optionDefinition.validator(i)||(this.logger.warn(r+" ."+t+" has invalid value: "+i),this.optionDefinition.required&&this.logger.error(r+" ."+t+" is required and has an invalid value: "+i+". ***THIS COMPONENT WILL NOT WORK***"),delete this.optionsDictionnary[t])},n}();t.ComponentOptionsValidator=u},function(n,t){"use strict";function i(n){return"string"==typeof n?n.replace(/[^A-Za-z0-9]/g,function(n){return r[n]||n}):n}Object.defineProperty(t,"__esModule",{value:!0});var r={"Á":"A","Ă":"A","Ắ":"A","Ặ":"A","Ằ":"A","Ẳ":"A","Ẵ":"A","Ǎ":"A","Â":"A","Ấ":"A","Ậ":"A","Ầ":"A","Ẩ":"A","Ẫ":"A","Ä":"A","Ǟ":"A","Ȧ":"A","Ǡ":"A","Ạ":"A","Ȁ":"A","À":"A","Ả":"A","Ȃ":"A","Ā":"A","Ą":"A","Å":"A","Ǻ":"A","Ḁ":"A","Ⱥ":"A","Ã":"A","Ꜳ":"AA","Æ":"AE","Ǽ":"AE","Ǣ":"AE","Ꜵ":"AO","Ꜷ":"AU","Ꜹ":"AV","Ꜻ":"AV","Ꜽ":"AY","Ḃ":"B","Ḅ":"B","Ɓ":"B","Ḇ":"B","Ƀ":"B","Ƃ":"B","Ć":"C","Č":"C","Ç":"C","Ḉ":"C","Ĉ":"C","Ċ":"C","Ƈ":"C","Ȼ":"C","Ď":"D","Ḑ":"D","Ḓ":"D","Ḋ":"D","Ḍ":"D","Ɗ":"D","Ḏ":"D","ǲ":"D","ǅ":"D","Đ":"D","Ð":"D","Ƌ":"D","Ǳ":"DZ","Ǆ":"DZ","É":"E","Ĕ":"E","Ě":"E","Ȩ":"E","Ḝ":"E","Ê":"E","Ế":"E","Ệ":"E","Ề":"E","Ể":"E","Ễ":"E","Ḙ":"E","Ë":"E","Ė":"E","Ẹ":"E","Ȅ":"E","È":"E","Ẻ":"E","Ȇ":"E","Ē":"E","Ḗ":"E","Ḕ":"E","Ę":"E","Ɇ":"E","Ẽ":"E","Ḛ":"E","Ꝫ":"ET","Ḟ":"F","Ƒ":"F","Ǵ":"G","Ğ":"G","Ǧ":"G","Ģ":"G","Ĝ":"G","Ġ":"G","Ɠ":"G","Ḡ":"G","Ǥ":"G","Ḫ":"H","Ȟ":"H","Ḩ":"H","Ĥ":"H","Ⱨ":"H","Ḧ":"H","Ḣ":"H","Ḥ":"H","Ħ":"H","Í":"I","Ĭ":"I","Ǐ":"I","Î":"I","Ï":"I","Ḯ":"I","İ":"I","Ị":"I","Ȉ":"I","Ì":"I","Ỉ":"I","Ȋ":"I","Ī":"I","Į":"I","Ɨ":"I","Ĩ":"I","Ḭ":"I","І":"I","Ꝺ":"D","Ꝼ":"F","Ᵹ":"G","Ꞃ":"R","Ꞅ":"S","Ꞇ":"T","Ꝭ":"IS","Ĵ":"J","Ɉ":"J","Ḱ":"K","Ǩ":"K","Ķ":"K","Ⱪ":"K","Ꝃ":"K","Ḳ":"K","Ƙ":"K","Ḵ":"K","Ꝁ":"K","Ꝅ":"K","Ĺ":"L","Ƚ":"L","Ľ":"L","Ļ":"L","Ḽ":"L","Ḷ":"L","Ḹ":"L","Ⱡ":"L","Ꝉ":"L","Ḻ":"L","Ŀ":"L","Ɫ":"L","ǈ":"L","Ł":"L","Ǉ":"LJ","Ḿ":"M","Ṁ":"M","Ṃ":"M","Ɱ":"M","Ń":"N","Ň":"N","Ņ":"N","Ṋ":"N","Ṅ":"N","Ṇ":"N","Ǹ":"N","Ɲ":"N","Ṉ":"N","Ƞ":"N","ǋ":"N","Ñ":"N","Ǌ":"NJ","Ó":"O","Ŏ":"O","Ǒ":"O","Ô":"O","Ố":"O","Ộ":"O","Ồ":"O","Ổ":"O","Ỗ":"O","Ö":"O","Ȫ":"O","Ȯ":"O","Ȱ":"O","Ọ":"O","Ő":"O","Ȍ":"O","Ò":"O","Ỏ":"O","Ơ":"O","Ớ":"O","Ợ":"O","Ờ":"O","Ở":"O","Ỡ":"O","Ȏ":"O","Ꝋ":"O","Ꝍ":"O","Ō":"O","Ṓ":"O","Ṑ":"O","Ɵ":"O","Ǫ":"O","Ǭ":"O","Ø":"O","Ǿ":"O","Õ":"O","Ṍ":"O","Ṏ":"O","Ȭ":"O","Ƣ":"OI","Ꝏ":"OO","Ɛ":"E","Ɔ":"O","Ȣ":"OU","Ṕ":"P","Ṗ":"P","Ꝓ":"P","Ƥ":"P","Ꝕ":"P","Ᵽ":"P","Ꝑ":"P","Ꝙ":"Q","Ꝗ":"Q","Ŕ":"R","Ř":"R","Ŗ":"R","Ṙ":"R","Ṛ":"R","Ṝ":"R","Ȑ":"R","Ȓ":"R","Ṟ":"R","Ɍ":"R","Ɽ":"R","Ꜿ":"C","Ǝ":"E","Ś":"S","Ṥ":"S","Š":"S","Ṧ":"S","Ş":"S","Ŝ":"S","Ș":"S","Ṡ":"S","Ṣ":"S","Ṩ":"S","ß":"ss","Ť":"T","Ţ":"T","Ṱ":"T","Ț":"T","Ⱦ":"T","Ṫ":"T","Ṭ":"T","Ƭ":"T","Ṯ":"T","Ʈ":"T","Ŧ":"T","Ɐ":"A","Ꞁ":"L","Ɯ":"M","Ʌ":"V","Ꜩ":"TZ","Ú":"U","Ŭ":"U","Ǔ":"U","Û":"U","Ṷ":"U","Ü":"U","Ǘ":"U","Ǚ":"U","Ǜ":"U","Ǖ":"U","Ṳ":"U","Ụ":"U","Ű":"U","Ȕ":"U","Ù":"U","Ủ":"U","Ư":"U","Ứ":"U","Ự":"U","Ừ":"U","Ử":"U","Ữ":"U","Ȗ":"U","Ū":"U","Ṻ":"U","Ų":"U","Ů":"U","Ũ":"U","Ṹ":"U","Ṵ":"U","Ꝟ":"V","Ṿ":"V","Ʋ":"V","Ṽ":"V","Ꝡ":"VY","Ẃ":"W","Ŵ":"W","Ẅ":"W","Ẇ":"W","Ẉ":"W","Ẁ":"W","Ⱳ":"W","Ẍ":"X","Ẋ":"X","Ý":"Y","Ŷ":"Y","Ÿ":"Y","Ẏ":"Y","Ỵ":"Y","Ỳ":"Y","Ƴ":"Y","Ỷ":"Y","Ỿ":"Y","Ȳ":"Y","Ɏ":"Y","Ỹ":"Y","Ї":"YI","Ź":"Z","Ž":"Z","Ẑ":"Z","Ⱬ":"Z","Ż":"Z","Ẓ":"Z","Ȥ":"Z","Ẕ":"Z","Ƶ":"Z","Þ":"TH","Ĳ":"IJ","Œ":"OE","ᴀ":"A","ᴁ":"AE","ʙ":"B","ᴃ":"B","ᴄ":"C","ᴅ":"D","ᴇ":"E","ꜰ":"F","ɢ":"G","ʛ":"G","ʜ":"H","ɪ":"I","ʁ":"R","ᴊ":"J","ᴋ":"K","ʟ":"L","ᴌ":"L","ᴍ":"M","ɴ":"N","ᴏ":"O","ɶ":"OE","ᴐ":"O","ᴕ":"OU","ᴘ":"P","ʀ":"R","ᴎ":"N","ᴙ":"R","ꜱ":"S","ᴛ":"T","ⱻ":"E","ᴚ":"R","ᴜ":"U","ᴠ":"V","ᴡ":"W","ʏ":"Y","ᴢ":"Z","á":"a","ă":"a","ắ":"a","ặ":"a","ằ":"a","ẳ":"a","ẵ":"a","ǎ":"a","â":"a","ấ":"a","ậ":"a","ầ":"a","ẩ":"a","ẫ":"a","ä":"a","ǟ":"a","ȧ":"a","ǡ":"a","ạ":"a","ȁ":"a","à":"a","ả":"a","ȃ":"a","ā":"a","ą":"a","ᶏ":"a","ẚ":"a","å":"a","ǻ":"a","ḁ":"a","ⱥ":"a","ã":"a","ꜳ":"aa","æ":"ae","ǽ":"ae","ǣ":"ae","ꜵ":"ao","ꜷ":"au","ꜹ":"av","ꜻ":"av","ꜽ":"ay","ḃ":"b","ḅ":"b","ɓ":"b","ḇ":"b","ᵬ":"b","ᶀ":"b","ƀ":"b","ƃ":"b","ɵ":"o","ć":"c","č":"c","ç":"c","ḉ":"c","ĉ":"c","ɕ":"c","ċ":"c","ƈ":"c","ȼ":"c","ď":"d","ḑ":"d","ḓ":"d","ȡ":"d","ḋ":"d","ḍ":"d","ɗ":"d","ᶑ":"d","ḏ":"d","ᵭ":"d","ᶁ":"d","đ":"d","ɖ":"d","ƌ":"d","ð":"d","ı":"i","ȷ":"j","ɟ":"j","ʄ":"j","ǳ":"dz","ǆ":"dz","é":"e","ĕ":"e","ě":"e","ȩ":"e","ḝ":"e","ê":"e","ế":"e","ệ":"e","ề":"e","ể":"e","ễ":"e","ḙ":"e","ë":"e","ė":"e","ẹ":"e","ȅ":"e","è":"e","ẻ":"e","ȇ":"e","ē":"e","ḗ":"e","ḕ":"e","ⱸ":"e","ę":"e","ᶒ":"e","ɇ":"e","ẽ":"e","ḛ":"e","ꝫ":"et","ḟ":"f","ƒ":"f","ᵮ":"f","ᶂ":"f","ǵ":"g","ğ":"g","ǧ":"g","ģ":"g","ĝ":"g","ġ":"g","ɠ":"g","ḡ":"g","ᶃ":"g","ǥ":"g","ḫ":"h","ȟ":"h","ḩ":"h","ĥ":"h","ⱨ":"h","ḧ":"h","ḣ":"h","ḥ":"h","ɦ":"h","ẖ":"h","ħ":"h","ƕ":"hv","í":"i","ĭ":"i","ǐ":"i","î":"i","ï":"i","ḯ":"i","ị":"i","ȉ":"i","ì":"i","ỉ":"i","ȋ":"i","ī":"i","į":"i","ᶖ":"i","ɨ":"i","ĩ":"i","ḭ":"i","і":"i","ꝺ":"d","ꝼ":"f","ᵹ":"g","ꞃ":"r","ꞅ":"s","ꞇ":"t","ꝭ":"is","ǰ":"j","ĵ":"j","ʝ":"j","ɉ":"j","ḱ":"k","ǩ":"k","ķ":"k","ⱪ":"k","ꝃ":"k","ḳ":"k","ƙ":"k","ḵ":"k","ᶄ":"k","ꝁ":"k","ꝅ":"k","ĺ":"l","ƚ":"l","ɬ":"l","ľ":"l","ļ":"l","ḽ":"l","ȴ":"l","ḷ":"l","ḹ":"l","ⱡ":"l","ꝉ":"l","ḻ":"l","ŀ":"l","ɫ":"l","ᶅ":"l","ɭ":"l","ł":"l","ǉ":"lj","ſ":"s","ẜ":"s","ẛ":"s","ẝ":"s","ḿ":"m","ṁ":"m","ṃ":"m","ɱ":"m","ᵯ":"m","ᶆ":"m","ń":"n","ň":"n","ņ":"n","ṋ":"n","ȵ":"n","ṅ":"n","ṇ":"n","ǹ":"n","ɲ":"n","ṉ":"n","ƞ":"n","ᵰ":"n","ᶇ":"n","ɳ":"n","ñ":"n","ǌ":"nj","ó":"o","ŏ":"o","ǒ":"o","ô":"o","ố":"o","ộ":"o","ồ":"o","ổ":"o","ỗ":"o","ö":"o","ȫ":"o","ȯ":"o","ȱ":"o","ọ":"o","ő":"o","ȍ":"o","ò":"o","ỏ":"o","ơ":"o","ớ":"o","ợ":"o","ờ":"o","ở":"o","ỡ":"o","ȏ":"o","ꝋ":"o","ꝍ":"o","ⱺ":"o","ō":"o","ṓ":"o","ṑ":"o","ǫ":"o","ǭ":"o","ø":"o","ǿ":"o","õ":"o","ṍ":"o","ṏ":"o","ȭ":"o","ƣ":"oi","ꝏ":"oo","ɛ":"e","ᶓ":"e","ɔ":"o","ᶗ":"o","ȣ":"ou","ṕ":"p","ṗ":"p","ꝓ":"p","ƥ":"p","ᵱ":"p","ᶈ":"p","ꝕ":"p","ᵽ":"p","ꝑ":"p","ꝙ":"q","ʠ":"q","ɋ":"q","ꝗ":"q","ŕ":"r","ř":"r","ŗ":"r","ṙ":"r","ṛ":"r","ṝ":"r","ȑ":"r","ɾ":"r","ᵳ":"r","ȓ":"r","ṟ":"r","ɼ":"r","ᵲ":"r","ᶉ":"r","ɍ":"r","ɽ":"r","ↄ":"c","ꜿ":"c","ɘ":"e","ɿ":"r","ś":"s","ṥ":"s","š":"s","ṧ":"s","ş":"s","ŝ":"s","ș":"s","ṡ":"s","ṣ":"s","ṩ":"s","ʂ":"s","ᵴ":"s","ᶊ":"s","ȿ":"s","ɡ":"g","ᴑ":"o","ᴓ":"o","ᴝ":"u","ť":"t","ţ":"t","ṱ":"t","ț":"t","ȶ":"t","ẗ":"t","ⱦ":"t","ṫ":"t","ṭ":"t","ƭ":"t","ṯ":"t","ᵵ":"t","ƫ":"t","ʈ":"t","ŧ":"t","ᵺ":"th","ɐ":"a","ᴂ":"ae","ǝ":"e","ᵷ":"g","ɥ":"h","ʮ":"h","ʯ":"h","ᴉ":"i","ʞ":"k","ꞁ":"l","ɯ":"m","ɰ":"m","ᴔ":"oe","ɹ":"r","ɻ":"r","ɺ":"r","ⱹ":"r","ʇ":"t","ʌ":"v","ʍ":"w","ʎ":"y","ꜩ":"tz","ú":"u","ŭ":"u","ǔ":"u","û":"u","ṷ":"u","ü":"u","ǘ":"u","ǚ":"u","ǜ":"u","ǖ":"u","ṳ":"u","ụ":"u","ű":"u","ȕ":"u","ù":"u","ủ":"u","ư":"u","ứ":"u","ự":"u","ừ":"u","ử":"u","ữ":"u","ȗ":"u","ū":"u","ṻ":"u","ų":"u","ᶙ":"u","ů":"u","ũ":"u","ṹ":"u","ṵ":"u","ᵫ":"ue","ꝸ":"um","ⱴ":"v","ꝟ":"v","ṿ":"v","ʋ":"v","ᶌ":"v","ⱱ":"v","ṽ":"v","ꝡ":"vy","ẃ":"w","ŵ":"w","ẅ":"w","ẇ":"w","ẉ":"w","ẁ":"w","ⱳ":"w","ẘ":"w","ẍ":"x","ẋ":"x","ᶍ":"x","ý":"y","ŷ":"y","ÿ":"y","ẏ":"y","ỵ":"y","ỳ":"y","ƴ":"y","ỷ":"y","ỿ":"y","ȳ":"y","ẙ":"y","ɏ":"y","ỹ":"y","ї":"yi","ź":"z","ž":"z","ẑ":"z","ʑ":"z","ⱬ":"z","ż":"z","ẓ":"z","ȥ":"z","ẕ":"z","ᵶ":"z","ᶎ":"z","ʐ":"z","ƶ":"z","ɀ":"z","þ":"th","ﬀ":"ff","ﬃ":"ffi","ﬄ":"ffl","ﬁ":"fi","ﬂ":"fl","ĳ":"ij","œ":"oe","ﬆ":"st","ₐ":"a","ₑ":"e","ᵢ":"i","ⱼ":"j","ₒ":"o","ᵣ":"r","ᵤ":"u","ᵥ":"v","ₓ":"x","Ё":"YO","Й":"I","Ц":"TS","У":"U","К":"K","Е":"E","Н":"N","Г":"G","Ґ":"G","Ш":"SH","Щ":"SCH","З":"Z","Х":"H","Ъ":"'","ё":"yo","й":"i","ц":"ts","у":"u","к":"k","е":"e","н":"n","г":"g","ґ":"g","ш":"sh","щ":"sch","з":"z","х":"h","ъ":"'","Ф":"F","Ы":"I","В":"V","А":"a","П":"P","Р":"R","О":"O","Л":"L","Д":"D","Ж":"ZH","Э":"E","ф":"f","ы":"i","в":"v","а":"a","п":"p","р":"r","о":"o","л":"l","д":"d","ж":"zh","э":"e","Я":"Ya","Ч":"CH","С":"S","М":"M","И":"I","Т":"T","Ь":"'","Б":"B","Ю":"YU","я":"ya","ч":"ch","с":"s","м":"m","и":"i","т":"t","ь":"'","б":"b","ю":"yu"};t.latinize=i},function(){},function(){},function(n,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var f=i(0),e=i(11),o=i(29),s=i(28),u=i(1),r=i(65),h=i(56),c=function(){function n(n,t,i,r){var f=this;this.debugInstance=n;this.element=t;this.onSearch=i;this.infoToDebug=r;this.debug=!1;this.enableQuerySyntax=!1;this.highlightRecommendation=!1;this.requestAllFields=!1;this.widgets=[];this.widgets.push(this.buildEnabledHighlightRecommendation());this.widgets.push(this.buildEnableDebugCheckbox());this.widgets.push(this.buildEnableQuerySyntaxCheckbox());this.widgets.push(this.buildRequestAllFieldsCheckbox());this.widgets.push(this.buildSearch());this.moveTo(t);u.$$(this.root).on(o.ResultListEvents.newResultDisplayed,function(n,t){return f.handleNewResultDisplayed(t)});u.$$(this.root).on(e.QueryEvents.doneBuildingQuery,function(n,t){return f.handleDoneBuildingQuery(t)})}return n.prototype.moveTo=function(n){f.each(this.widgets,function(t){return n.appendChild(t)});this.element=n},n.prototype.setSearch=function(n){this.onSearch=n;this.resetSearchbox()},n.prototype.setNewInfoToDebug=function(n){this.infoToDebug=n},n.prototype.resetSearchbox=function(){this.search&&this.search.reset()},Object.defineProperty(n.prototype,"bindings",{get:function(){return this.debugInstance.bindings},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"root",{get:function(){return this.debugInstance.element},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"queryOptions",{get:function(){return{closeModalBox:!1,origin:this.debugInstance}},enumerable:!0,configurable:!0}),n.prototype.handleNewResultDisplayed=function(n){null!=n.item&&n.result.isRecommendation&&this.highlightRecommendation&&u.$$(n.item).addClass("coveo-is-recommendation")},n.prototype.handleDoneBuildingQuery=function(n){n.queryBuilder.enableDebug=this.debug||n.queryBuilder.enableDebug;this.requestAllFields&&(n.queryBuilder.fieldsToInclude=void 0,n.queryBuilder.includeRequiredFields=!1)},n.prototype.buildSearch=function(){var n=this;return this.search=new h.TextInput(function(t){var i=t.getValue().toLowerCase();n.onSearch(i)},"Search in debug"),this.search.build(),this.search.getElement()},n.prototype.buildEnableDebugCheckbox=function(){var n=this,t=new r.Checkbox(function(t){n.debug=t.isSelected();n.bindings.queryController.executeQuery(n.queryOptions);n.resetSearchbox()},"Enable query debug");return this.debug&&t.select(),t.build()},n.prototype.buildEnableQuerySyntaxCheckbox=function(){var n=this,t=new r.Checkbox(function(t){n.enableQuerySyntax=t.isSelected();n.bindings.componentOptionsModel.set(s.COMPONENT_OPTIONS_ATTRIBUTES.SEARCH_BOX,{enableQuerySyntax:n.enableQuerySyntax});n.bindings.queryController.executeQuery(n.queryOptions)},"Enable query syntax in search box");return this.enableQuerySyntax&&t.select(),t.build()},n.prototype.buildRequestAllFieldsCheckbox=function(){var n=this,t=new r.Checkbox(function(t){n.requestAllFields=t.isSelected();n.bindings.queryController.executeQuery(n.queryOptions)},"Request all fields available");return this.requestAllFields&&t.select(),t.build()},n.prototype.buildEnabledHighlightRecommendation=function(){var n=this,t=new r.Checkbox(function(t){n.highlightRecommendation=t.isSelected();n.bindings.queryController.executeQuery(n.queryOptions)},"Highlight recommendation");return this.highlightRecommendation&&t.select(),t.build()},n}();t.DebugHeader=c},function(){},function(n,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var u=i(22),r=i(0),f=function(){function n(n){this.bindings=n}return n.prototype.generateDebugInfoForResult=function(n){var t=this;return{result:n,fields:function(){return t.buildFieldsSection(n)},rankingInfo:function(){return t.buildRankingInfoSection(n)}}},n.prototype.fetchFields=function(){var n=this;return null==this.fields?this.bindings.queryController.getEndpoint().listFields().then(function(t){return n.fields={},t.forEach(function(t){n.fields[t.name]=t}),n.fields}):Promise.resolve(this.fields)},n.prototype.buildRankingInfoSection=function(n){return n.rankingInfo&&this.parseRankingInfo(n.rankingInfo)},n.prototype.parseWeights=function(n){var t=n.match(/(\w+(?:\s\w+)*): ([-0-9]+)/g);return r.object(r.map(t,function(n){var t=n.match(/^(\w+(?:\s\w+)*): ([-0-9]+)$/);return[t[1],Number(t[2])]}))},n.prototype.buildFieldsSection=function(n){return this.fetchFields().then(function(t){var i={};return r.each(n.raw,function(n,u){var f=t["@"+u];null==f&&u.match(/^sys/)&&(f=t["@"+u.substr(3)]);i["@"+u]=null==f?n:"Date"==f.fieldType?new Date(n):f.splitGroupByField&&r.isString(n)?n.split(/\s*;\s*/):n}),i})},n.prototype.parseRankingInfo=function(n){var s=this,t={},o;if(n){var i=/Document weights:\n((?:.)*?)\n+/g.exec(n),f=/Terms weights:\n((?:.|\n)*)\n+/g.exec(n),e=/Total weight: ([0-9]+)/g.exec(n);(i&&i[1]&&(t["Document weights"]=this.parseWeights(i[1])),e&&e[1]&&(t["Total weight"]=Number(e[1])),f&&f[1])&&(o=u.StringUtils.match(f[1],/((?:[^:]+: [0-9]+, [0-9]+; )+)\n((?:\w+: [0-9]+; )+)/g),t["Terms weights"]=r.object(r.map(o,function(n){var t=r.object(r.map(u.StringUtils.match(n[1],/([^:]+): ([0-9]+), ([0-9]+); /g),function(n){return[n[1],{Correlation:Number(n[2]),"TF-IDF":Number(n[3])}]})),i=s.parseWeights(n[2]);return[r.keys(t).join(", "),{terms:t,Weights:i}]})))}return t},n}();t.DebugForResult=f},function(){},function(n,t,i){"use strict";function w(n){var t=!0;try{new RegExp("",n)}catch(n){t=!1}return t}function g(n,t,i,f,e){if(n[u]={captureNames:t},e)return n;if(n.__proto__)n.__proto__=r.prototype;else for(var o in r.prototype)n[o]=r.prototype[o];return n[u].source=i,n[u].flags=f?f.split("").sort().join(""):f,n}function l(n){return f.replace.call(n,/([\s\S])(?=[\s\S]*\1)/g,"")}function o(n,t){if(!r.isRegExp(n))throw new TypeError("Type RegExp expected");var i=n[u]||{},o=pt(n),e="",s="",h=null,c=null;return t=t||{},t.removeG&&(s+="g"),t.removeY&&(s+="y"),s&&(o=f.replace.call(o,new RegExp("[".concat(s,"]+"),"g"),"")),t.addG&&(e+="g"),t.addY&&(e+="y"),e&&(o=l(o+e)),t.isInternalOnly||(void 0!==i.source&&(h=i.source),null!=i.flags&&(c=e?l(i.flags+e):i.flags)),n=g(new RegExp(t.source||n.source,o),wt(n)?i.captureNames.slice(0):null,h,c,t.isInternalOnly)}function nt(n){return ht.default(n,16)}function tt(n,t,i){return"("===n.input[n.index-1]||")"===n.input[n.index+n[0].length]||"|"===n.input[n.index-1]||"|"===n.input[n.index+n[0].length]||n.index<1||n.index+n[0].length>=n.input.length||f.test.call(/^\(\?[:=!]/,n.input.substr(n.index-3,3))||bt(n.input,n.index+n[0].length,i)?"":"(?:)"}function pt(n){return ri?n.flags:f.exec.call(/\/([a-z]*)$/i,RegExp.prototype.toString.call(n))[1]}function wt(n){return!(!n[u]||!n[u].captureNames)}function it(n){return ht.default(n,10).toString(16)}function bt(n,t,i){return f.test.call(-1!==i.indexOf("x")?/^(?:\s|#[^#\n]*|\(\?#[^)]*\))*(?:[?*+]|{\d+(?:,\d*)?})/:/^(?:\(\?#[^)]*\))*(?:[?*+]|{\d+(?:,\d*)?})/,n.slice(t))}function b(n,t){return lt.call(n)==="[object ".concat(t,"]")}function rt(n){for(;n.length<4;)n="0".concat(n);return n}function kt(n,t){var s,i,u;if(l(t)!==t)throw new SyntaxError("Invalid duplicate regex flag ".concat(t));n=f.replace.call(n,/^\(\?([\w$]+)\)/,function(n,i){if(f.test.call(/[gy]/,i))throw new SyntaxError("Cannot use flag g or y in mode modifier ".concat(n));return t=l(t+i),""});var r=!0,e=!1,o=void 0;try{for(i=v.default(t);!(r=(s=i.next()).done);r=!0)if(u=s.value,!vt[u])throw new SyntaxError("Unknown regex flag ".concat(u));}catch(n){e=!0;o=n}finally{try{r||null==i.return||i.return()}finally{if(e)throw o;}}return{pattern:n,flags:t}}function ut(n){var t={};return b(n,"String")?(r.forEach(n,/[^\s,]+/,function(n){t[n]=!0}),t):n}function ft(n){if(!/^[\w$]$/.test(n))throw new Error("Flag must be a single character A-Za-z0-9_$");vt[n]=!0}function dt(n,t,i,u,f){for(var o,e,s=k.length,c=n[i],h=null;s--;)if(e=k[s],!(e.leadChar&&e.leadChar!==c||e.scope!==u&&"all"!==e.scope||e.flag&&-1===t.indexOf(e.flag))&&(o=r.exec(n,e.regex,i,"sticky"))){h={matchLength:o[0].length,output:e.handler.call(f,o,u,t),reparse:e.reparse};break}return h}function et(n){s.astral=n}function ot(n){s.namespacing=n}function a(n){if(null==n)throw new TypeError("Cannot convert null or undefined to object");return n}function r(n,t){var a;if(r.isRegExp(n)){if(void 0!==t)throw new TypeError("Cannot supply flags when copying a RegExp");return o(n)}if(n=void 0===n?"":String(n),t=void 0===t?"":String(t),r.isInstalled("astral")&&-1===t.indexOf("A")&&(t+="A"),h[n]||(h[n]={}),!h[n][t]){for(var i,v={hasNamedCapture:!1,captureNames:[]},e=c,y="",u=0,p=kt(n,t),s=p.pattern,w=p.flags;u<s.length;){do(i=dt(s,w,u,e,v))&&i.reparse&&(s=s.slice(0,u)+i.output+s.slice(u+i.matchLength));while(i&&i.reparse);if(i)y+=i.output,u+=i.matchLength||1;else{var b=r.exec(s,ni[e],u,"sticky"),k=gt.default(b,1),l=k[0];y+=l;u+=l.length;"["===l&&e===c?e=ct:"]"===l&&e===ct&&(e=c)}}h[n][t]={pattern:f.replace.call(y,/(?:\(\?:\))+/g,"(?:)"),flags:f.replace.call(w,/[^gimuy]+/g,""),captures:v.hasNamedCapture?v.captureNames:null}}return a=h[n][t],g(new RegExp(a.pattern,a.flags),a.captures,n,t)}var p=i(37),yt;Object.defineProperty(t,"__esModule",{value:!0});t.default=void 0;var st=p(i(395)),gt=p(i(410)),v=p(i(115)),ht=p(i(432)),u="xregexp",s={astral:!1,namespacing:!1},f={exec:RegExp.prototype.exec,test:RegExp.prototype.test,match:String.prototype.match,replace:String.prototype.replace,split:String.prototype.split},e={},y={},h={},k=[],c="default",ct="class",ni={"default":/\\(?:0(?:[0-3][0-7]{0,2}|[4-7][0-7]?)?|[1-9]\d*|x[\dA-Fa-f]{2}|u(?:[\dA-Fa-f]{4}|{[\dA-Fa-f]+})|c[A-Za-z]|[\s\S])|\(\?(?:[:=!]|<[=!])|[?*+]\?|{\d+(?:,\d*)?}\??|[\s\S]/,"class":/\\(?:[0-3][0-7]{0,2}|[4-7][0-7]?|x[\dA-Fa-f]{2}|u(?:[\dA-Fa-f]{4}|{[\dA-Fa-f]+})|c[A-Za-z]|[\s\S])|[\s\S]/},ti=/\$(?:{([\w$]+)}|<([\w$]+)>|(\d\d?|[\s\S]))/g,ii=void 0===f.exec.call(/()??/,"")[1],ri=void 0!==/x/.flags,lt={}.toString,at=w("u"),d=w("y"),vt={g:!0,i:!0,m:!0,u:at,y:d};r.prototype=/(?:)/;r.version="4.2.4";r._clipDuplicates=l;r._hasNativeFlag=w;r._dec=nt;r._hex=it;r._pad4=rt;r.addToken=function(n,t,i){var h,u,y,e;if(i=i||{},h=i,u=h.optionalFlags,i.flag&&ft(i.flag),u){u=f.split.call(u,"");var s=!0,l=!1,a=void 0;try{for(e=v.default(u);!(s=(y=e.next()).done);s=!0)ft(y.value)}catch(n){l=!0;a=n}finally{try{s||null==e.return||e.return()}finally{if(l)throw a;}}}k.push({regex:o(n,{addG:!0,addY:d,isInternalOnly:!0}),handler:t,scope:i.scope||c,flag:i.flag,reparse:i.reparse,leadChar:i.leadChar});r.cache.flush("patterns")};r.cache=function(n,t){return y[n]||(y[n]={}),y[n][t]||(y[n][t]=r(n,t))};r.cache.flush=function(n){"patterns"===n?h={}:y={}};r.escape=function(n){return f.replace.call(a(n),/[-\[\]{}()*+?.,\\^$|#\s]/g,"\\$&")};r.exec=function(n,t,i,r){var f,s="g",c=!1,l=!1,h;return c=d&&!!(r||t.sticky&&!1!==r),c?s+="y":r&&(l=!0,s+="FakeY"),t[u]=t[u]||{},h=t[u][s]||(t[u][s]=o(t,{addG:!0,addY:c,source:l?"".concat(t.source,"|()"):void 0,removeY:!1===r,isInternalOnly:!0})),i=i||0,h.lastIndex=i,f=e.exec.call(h,n),l&&f&&""===f.pop()&&(f=null),t.global&&(t.lastIndex=f?h.lastIndex:0),f};r.forEach=function(n,t,i){for(var u,f=0,e=-1;u=r.exec(n,t,f);)i(u,++e,n,t),f=u.index+(u[0].length||1)};r.globalize=function(n){return o(n,{addG:!0})};r.install=function(n){n=ut(n);!s.astral&&n.astral&&et(!0);!s.namespacing&&n.namespacing&&ot(!0)};r.isInstalled=function(n){return!!s[n]};r.isRegExp=function(n){return"[object RegExp]"===lt.call(n)};r.match=function(n,t,i){var e=t.global&&"one"!==i||"all"===i,s=(e?"g":"")+(t.sticky?"y":"")||"noGY",h,r;return t[u]=t[u]||{},h=t[u][s]||(t[u][s]=o(t,{addG:!!e,removeG:"one"===i,isInternalOnly:!0})),r=f.match.call(a(n),h),t.global&&(t.lastIndex="one"===i&&r?r.index+r[0].length:0),e?r||[]:r&&r[0]};r.matchChain=function(n,t){return function n(i,u){function y(n){var t,i,u;if(f.backref){if(t="Backreference to undefined group: ".concat(f.backref),i=isNaN(f.backref),i&&r.isInstalled("namespacing")){if(!(f.backref in n.groups))throw new ReferenceError(t);}else if(!n.hasOwnProperty(f.backref))throw new ReferenceError(t);u=i&&r.isInstalled("namespacing")?n.groups[f.backref]:n[f.backref];e.push(u||"")}else e.push(n[0])}var f=t[u].regex?t[u]:{regex:t[u]},e=[],s=!0,h=!1,c=void 0,l,o,a;try{for(o=v.default(i);!(s=(l=o.next()).done);s=!0)a=l.value,r.forEach(a,f.regex,y)}catch(n){h=!0;c=n}finally{try{s||null==o.return||o.return()}finally{if(h)throw c;}}return u!==t.length-1&&e.length?n(e,u+1):e}([n],0)};r.replace=function(n,t,i,f){var c=r.isRegExp(t),s=t.global&&"one"!==f||"all"===f,l=(s?"g":"")+(t.sticky?"y":"")||"noGY",h=t,v;return c?(t[u]=t[u]||{},h=t[u][l]||(t[u][l]=o(t,{addG:!!s,removeG:"one"===f,isInternalOnly:!0}))):s&&(h=new RegExp(r.escape(String(t)),"g")),v=e.replace.call(a(n),h,i),c&&t.global&&(t.lastIndex=0),v};r.replaceEach=function(n,t){var f=!0,e=!1,o=void 0,s,i,u;try{for(i=v.default(t);!(f=(s=i.next()).done);f=!0)u=s.value,n=r.replace(n,u[0],u[1],u[2])}catch(n){e=!0;o=n}finally{try{f||null==i.return||i.return()}finally{if(e)throw o;}}return n};r.split=function(n,t,i){return e.split.call(a(n),t,i)};r.test=function(n,t,i,u){return!!r.exec(n,t,i,u)};r.uninstall=function(n){n=ut(n);s.astral&&n.astral&&et(!1);s.namespacing&&n.namespacing&&ot(!1)};r.union=function(n,t,i){function g(n,t,i){var r=a[o-h];if(t){if(++o,r)return"(?<".concat(r,">")}else if(i)return"\\".concat(+i+h);return n}var h,a,y,o,k,s,e,d;if(i=i||{},y=i.conjunction||"or",o=0,!b(n,"Array")||!n.length)throw new TypeError("Must provide a nonempty array of patterns to merge");var nt=/(\()(?!\?)|\\([1-9]\d*)|\\[\s\S]|\[(?:[^\\\]]|\\[\s\S])*\]/g,c=[],l=!0,p=!1,w=void 0;try{for(s=v.default(n);!(l=(k=s.next()).done);l=!0)e=k.value,r.isRegExp(e)?(h=o,a=e[u]&&e[u].captureNames||[],c.push(f.replace.call(r(e.source).source,nt,g))):c.push(r.escape(e))}catch(n){p=!0;w=n}finally{try{l||null==s.return||s.return()}finally{if(p)throw w;}}return d="none"===y?"":"|",r(c.join(d),t)};e.exec=function(n){var c=this.lastIndex,t=f.exec.apply(this,arguments),h,e,i,s;if(t){if(!ii&&t.length>1&&-1!==t.indexOf("")&&(h=o(this,{removeG:!0,isInternalOnly:!0}),f.replace.call(String(n).slice(t.index),h,function(){for(var i=arguments.length,n=1;n<i-2;++n)void 0===(n<0||arguments.length<=n?void 0:arguments[n])&&(t[n]=void 0)})),e=t,r.isInstalled("namespacing")&&(t.groups=st.default(null),e=t.groups),this[u]&&this[u].captureNames)for(i=1;i<t.length;++i)s=this[u].captureNames[i-1],s&&(e[s]=t[i]);this.global&&!t[0].length&&this.lastIndex>t.index&&(this.lastIndex=t.index)}return this.global||(this.lastIndex=c),t};e.test=function(n){return!!e.exec.call(this,n)};e.match=function(n){if(r.isRegExp(n)){if(n.global){var t=f.match.apply(this,arguments);return n.lastIndex=0,t}}else n=new RegExp(n);return e.exec.call(n,a(this))};e.replace=function(n,t){var o,i,s,e=r.isRegExp(n);return e?(n[u]&&(i=n[u].captureNames),o=n.lastIndex):n+="",s=b(t,"Function")?f.replace.call(String(this),n,function(){for(var s,f,h=arguments.length,u=new Array(h),o=0;o<h;o++)u[o]=arguments[o];if(i)for(r.isInstalled("namespacing")?(s=st.default(null),u.push(s)):(u[0]=new String(u[0]),s=u[0]),f=0;f<i.length;++f)i[f]&&(s[i[f]]=u[f+1]);return e&&n.global&&(n.lastIndex=u[u.length-2]+u[0].length),t.apply(void 0,u)}):f.replace.call(null==this?this:String(this),n,function(){function e(t,r,u,f){if(r=r||u){var e=+r;if(e<=n.length-3)return n[e]||"";if((e=i?i.indexOf(r):-1)<0)throw new SyntaxError("Backreference to undefined group ".concat(t));return n[e+1]||""}if("$"===f)return"$";if("&"===f||0==+f)return n[0];if("`"===f)return n[n.length-1].slice(0,n[n.length-2]);if("'"===f)return n[n.length-1].slice(n[n.length-2]+n[0].length);if(f=+f,!isNaN(f)){if(f>n.length-3)throw new SyntaxError("Backreference to undefined group ".concat(t));return n[f]||""}throw new SyntaxError("Invalid token ".concat(t));}for(var u=arguments.length,n=new Array(u),r=0;r<u;r++)n[r]=arguments[r];return f.replace.call(String(t),ti,e)}),e&&(n.lastIndex=n.global?0:o),s};e.split=function(n,t){if(!r.isRegExp(n))return f.split.apply(this,arguments);var o,u=String(this),i=[],s=n.lastIndex,e=0;return t=(void 0===t?-1:t)>>>0,r.forEach(u,n,function(n){n.index+n[0].length>e&&(i.push(u.slice(e,n.index)),n.length>1&&n.index<u.length&&Array.prototype.push.apply(i,n.slice(1)),o=n[0].length,e=n.index+o)}),e===u.length?f.test.call(n,"")&&!o||i.push(""):i.push(u.slice(e)),n.lastIndex=s,i.length>t?i.slice(0,t):i};r.addToken(/\\([ABCE-RTUVXYZaeg-mopqyz]|c(?![A-Za-z])|u(?![\dA-Fa-f]{4}|{[\dA-Fa-f]+})|x(?![\dA-Fa-f]{2}))/,function(n,t){if("B"===n[1]&&t===c)return n[0];throw new SyntaxError("Invalid escape ".concat(n[0]));},{scope:"all",leadChar:"\\"});r.addToken(/\\u{([\dA-Fa-f]+)}/,function(n,t,i){var r=nt(n[1]);if(r>1114111)throw new SyntaxError("Invalid Unicode code point ".concat(n[0]));if(r<=65535)return"\\u".concat(rt(it(r)));if(at&&-1!==i.indexOf("u"))return n[0];throw new SyntaxError("Cannot use Unicode code point above \\u{FFFF} without flag u");},{scope:"all",leadChar:"\\"});r.addToken(/\[(\^?)\]/,function(n){return n[1]?"[\\s\\S]":"\\b\\B"},{leadChar:"["});r.addToken(/\(\?#[^)]*\)/,tt,{leadChar:"("});r.addToken(/\s+|#[^\n]*\n?/,tt,{flag:"x"});r.addToken(/\./,function(){return"[\\s\\S]"},{flag:"s",leadChar:"."});r.addToken(/\\k<([\w$]+)>/,function(n){var t=isNaN(n[1])?this.captureNames.indexOf(n[1])+1:+n[1],i=n.index+n[0].length;if(!t||t>this.captureNames.length)throw new SyntaxError("Backreference to undefined group ".concat(n[0]));return"\\".concat(t).concat(i===n.input.length||isNaN(n.input[i])?"":"(?:)")},{leadChar:"\\"});r.addToken(/\\(\d+)/,function(n,t){if(!(t===c&&/^[1-9]/.test(n[1])&&+n[1]<=this.captureNames.length)&&"0"!==n[1])throw new SyntaxError("Cannot use octal escape or backreference to undefined group ".concat(n[0]));return n[0]},{scope:"all",leadChar:"\\"});r.addToken(/\(\?P?<([\w$]+)>/,function(n){if(!isNaN(n[1]))throw new SyntaxError("Cannot use integer as capture name ".concat(n[0]));if(!r.isInstalled("namespacing")&&("length"===n[1]||"__proto__"===n[1]))throw new SyntaxError("Cannot use reserved word as capture name ".concat(n[0]));if(-1!==this.captureNames.indexOf(n[1]))throw new SyntaxError("Cannot use same name for multiple groups ".concat(n[0]));return this.captureNames.push(n[1]),this.hasNamedCapture=!0,"("},{leadChar:"("});r.addToken(/\((?!\?)/,function(n,t,i){return-1!==i.indexOf("n")?"(?:":(this.captureNames.push(null),"(")},{optionalFlags:"n",leadChar:"("});yt=r;t.default=yt;n.exports=t.default},function(n,t,i){n.exports=i(396)},function(n,t,i){i(397);var r=i(39).Object;n.exports=function(n,t){return r.create(n,t)}},function(n,t,i){var r=i(59);r(r.S,"Object",{create:i(162)})},function(n,t,i){var r=i(399);n.exports=function(n,t,i){if(r(n),void 0===t)return n;switch(i){case 1:return function(i){return n.call(t,i)};case 2:return function(i,r){return n.call(t,i,r)};case 3:return function(i,r,u){return n.call(t,i,r,u)}}return function(){return n.apply(t,arguments)}}},function(n){n.exports=function(n){if("function"!=typeof n)throw TypeError(n+" is not a function!");return n}},function(n,t,i){n.exports=!i(80)&&!i(110)(function(){return 7!=Object.defineProperty(i(160)("div"),"a",{get:function(){return 7}}).a})},function(n,t,i){var r=i(109);n.exports=function(n,t){if(!r(n))return n;var i,u;if(t&&"function"==typeof(i=n.toString)&&!r(u=i.call(n))||"function"==typeof(i=n.valueOf)&&!r(u=i.call(n))||!t&&"function"==typeof(i=n.toString)&&!r(u=i.call(n)))return u;throw TypeError("Can't convert object to primitive value");}},function(n,t,i){var r=i(108),u=i(79),f=i(403);n.exports=i(80)?Object.defineProperties:function(n,t){u(n);for(var i,e=f(t),s=e.length,o=0;s>o;)r.f(n,i=e[o++],t[i]);return n}},function(n,t,i){var r=i(404),u=i(166);n.exports=Object.keys||function(n){return r(n,u)}},function(n,t,i){var r=i(81),u=i(111),f=i(406)(!1),e=i(114)("IE_PROTO");n.exports=function(n,t){var i,s=u(n),h=0,o=[];for(i in s)i!=e&&r(s,i)&&o.push(i);for(;t.length>h;)r(s,i=t[h++])&&(~f(o,i)||o.push(i));return o}},function(n,t,i){var r=i(112);n.exports=Object("z").propertyIsEnumerable(0)?Object:function(n){return"String"==r(n)?n.split(""):Object(n)}},function(n,t,i){var r=i(111),u=i(407),f=i(408);n.exports=function(n){return function(t,i,e){var c,s=r(t),h=u(s.length),o=f(e,h);if(n&&i!=i){for(;h>o;)if((c=s[o++])!=c)return!0}else for(;h>o;o++)if((n||o in s)&&s[o]===i)return n||o||0;return!n&&-1}}},function(n,t,i){var r=i(113),u=Math.min;n.exports=function(n){return n>0?u(r(n),9007199254740991):0}},function(n,t,i){var r=i(113),u=Math.max,f=Math.min;n.exports=function(n,t){return n=r(n),n<0?u(n+t,0):f(n,t)}},function(n,t,i){var r=i(38).document;n.exports=r&&r.documentElement},function(n,t,i){function r(n,t){return u(n)||f(n,t)||e()}var u=i(411),f=i(416),e=i(431);n.exports=r},function(n,t,i){function r(n){if(u(n))return n}var u=i(412);n.exports=r},function(n,t,i){n.exports=i(413)},function(n,t,i){i(414);n.exports=i(39).Array.isArray},function(n,t,i){var r=i(59);r(r.S,"Array",{isArray:i(415)})},function(n,t,i){var r=i(112);n.exports=Array.isArray||function(n){return"Array"==r(n)}},function(n,t,i){function r(n,t){var r=[],f=!0,e=!1,o=void 0,s,i;try{for(i=u(n);!(f=(s=i.next()).done)&&(r.push(s.value),!t||r.length!==t);f=!0);}catch(n){e=!0;o=n}finally{try{f||null==i.return||i.return()}finally{if(e)throw o;}}return r}var u=i(115);n.exports=r},function(n,t,i){i(418);i(426);n.exports=i(428)},function(n,t,i){i(419);for(var c=i(38),l=i(60),e=i(83),o=i(46)("toStringTag"),s="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),r=0;r<s.length;r++){var u=s[r],h=c[u],f=h&&h.prototype;f&&!f[o]&&l(f,o,u);e[u]=e.Array}},function(n,t,i){"use strict";var u=i(420),r=i(421),f=i(83),e=i(111);n.exports=i(167)(Array,"Array",function(n,t){this._t=e(n);this._i=0;this._k=t},function(){var t=this._t,i=this._k,n=this._i++;return!t||n>=t.length?(this._t=void 0,r(1)):"keys"==i?r(0,n):"values"==i?r(0,t[n]):r(0,[n,t[n]])},"values");f.Arguments=f.Array;u("keys");u("values");u("entries")},function(n){n.exports=function(){}},function(n){n.exports=function(n,t){return{value:t,done:!!n}}},function(n,t,i){n.exports=i(60)},function(n,t,i){"use strict";var u=i(162),f=i(161),e=i(168),r={};i(60)(r,i(46)("iterator"),function(){return this});n.exports=function(n,t,i){n.prototype=u(r,{next:f(1,i)});e(n,t+" Iterator")}},function(n,t,i){var u=i(81),f=i(425),r=i(114)("IE_PROTO"),e=Object.prototype;n.exports=Object.getPrototypeOf||function(n){return n=f(n),u(n,r)?n[r]:"function"==typeof n.constructor&&n instanceof n.constructor?n.constructor.prototype:n instanceof Object?e:null}},function(n,t,i){var r=i(82);n.exports=function(n){return Object(r(n))}},function(n,t,i){"use strict";var r=i(427)(!0);i(167)(String,"String",function(n){this._t=String(n);this._i=0},function(){var n,t=this._t,i=this._i;return i>=t.length?{value:void 0,done:!0}:(n=r(t,i),this._i+=n.length,{value:n,done:!1})})},function(n,t,i){var r=i(113),u=i(82);n.exports=function(n){return function(t,i){var e,s,o=String(u(t)),f=r(i),h=o.length;return f<0||f>=h?n?"":void 0:(e=o.charCodeAt(f),e<55296||e>56319||f+1===h||(s=o.charCodeAt(f+1))<56320||s>57343?n?o.charAt(f):e:n?o.slice(f,f+2):s-56320+(e-55296<<10)+65536)}}},function(n,t,i){var r=i(79),u=i(429);n.exports=i(39).getIterator=function(n){var t=u(n);if("function"!=typeof t)throw TypeError(n+" is not iterable!");return r(t.call(n))}},function(n,t,i){var r=i(430),u=i(46)("iterator"),f=i(83);n.exports=i(39).getIteratorMethod=function(n){if(void 0!=n)return n[u]||n["@@iterator"]||f[r(n)]}},function(n,t,i){var r=i(112),u=i(46)("toStringTag"),f="Arguments"==r(function(){return arguments}()),e=function(n,t){try{return n[t]}catch(n){}};n.exports=function(n){var t,i,o;return void 0===n?"Undefined":null===n?"Null":"string"==typeof(i=e(t=Object(n),u))?i:f?r(t):"Object"==(o=r(t))&&"function"==typeof t.callee?"Arguments":o}},function(n){function t(){throw new TypeError("Invalid attempt to destructure non-iterable instance");}n.exports=t},function(n,t,i){n.exports=i(433)},function(n,t,i){i(434);n.exports=i(39).parseInt},function(n,t,i){var r=i(59),u=i(435);r(r.G+r.F*(parseInt!=u),{parseInt:u})},function(n,t,i){var r=i(38).parseInt,f=i(436).trim,u=i(169),e=/^[-+]?0[xX]/;n.exports=8!==r(u+"08")||22!==r(u+"0x16")?function(n,t){var i=f(String(n),3);return r(i,t>>>0||(e.test(i)?16:10))}:r},function(n,t,i){var u=i(59),s=i(82),h=i(110),f=i(169),r="["+f+"]",e="​",c=RegExp("^"+r+r+"*"),l=RegExp(r+r+"*$"),o=function(n,t,i){var r={},o=h(function(){return!!f[n]()||e[n]()!=e}),s=r[n]=o?t(a):f[n];i&&(r[i]=s);u(u.P+u.F*o,"String",r)},a=o.trim=function(n,t){return n=String(s(n)),1&t&&(n=n.replace(c,"")),2&t&&(n=n.replace(l,"")),n};n.exports=o},function(n,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default=void 0;var i=function(n){function u(n){var i=/^(?:\(\?:\))*\^/,t=/\$(?:\(\?:\))*$/;return i.test(n)&&t.test(n)&&t.test(n.replace(/\\[\s\S]/g,""))?n.replace(i,"").replace(t,""):n}function i(i,r){var u=r?"x":"";return n.isRegExp(i)?i[t]&&i[t].captureNames?i:n(i.source,u):n(i,u)}function f(t){return t instanceof RegExp?t:n.escape(t)}function e(n,t,i){return n["subpattern".concat(i)]=t,n}function o(n,t,i){return n+(t<i.length-1?"{{subpattern".concat(t,"}}"):"")}var t="xregexp",r=/(\()(?!\?)|\\([1-9]\d*)|\\[\s\S]|\[(?:[^\\\]]|\\[\s\S])*\]/g,s=n.union([/\({{([\w$]+)}}\)|{{([\w$]+)}}/,r],"g",{conjunction:"or"});n.tag=function(t){return function(i){for(var h,c,u=arguments.length,s=new Array(u>1?u-1:0),r=1;r<u;r++)s[r-1]=arguments[r];return h=s.map(f).reduce(e,{}),c=i.raw.map(o).join(""),n.build(c,h,t)}};n.build=function(f,e,o){var y,p,h,l,w;o=o||"";y=-1!==o.indexOf("x");p=/^\(\?([\w$]+)\)/.exec(f);p&&(o=n._clipDuplicates(o+p[1]));h={};for(l in e)e.hasOwnProperty(l)&&(w=i(e[l],y),h[l]={pattern:u(w.source),names:w[t].captureNames||[]});var b,d=i(f,y),c=0,a=0,k=[0],v=d[t].captureNames||[],g=d.source.replace(s,function(n,t,i,u,f){var e,l,s,o=t||i,y;if(o){if(!h.hasOwnProperty(o))throw new ReferenceError("Undefined property ".concat(n));return t?(e=v[a],k[++a]=++c,l="(?<".concat(e||o,">")):l="(?:",b=c,y=h[o].pattern.replace(r,function(n,t,i){if(t){if(e=h[o].names[c-b],++c,e)return"(?<".concat(e,">")}else if(i)return s=+i-1,h[o].names[s]?"\\k<".concat(h[o].names[s],">"):"\\".concat(+i+b);return n}),"".concat(l).concat(y,")")}if(u){if(e=v[a],k[++a]=++c,e)return"(?<".concat(e,">")}else if(f)return s=+f-1,v[s]?"\\k<".concat(v[s],">"):"\\".concat(k[+f]);return n});return n(g,o)}};t.default=i;n.exports=t.default},function(n,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default=void 0;var i=function(n){function t(n,t,i,r){return{name:n,value:t,start:i,end:r}}n.matchRecursive=function(i,r,u,f,e){f=f||"";e=e||{};var p,w,c,l,k,d=-1!==f.indexOf("g"),g=-1!==f.indexOf("y"),nt=f.replace(/y/g,""),tt=e,v=tt.escapeChar,o=e.valueNames,y=[],b=0,h=0,s=0,a=0;if(r=n(r,nt),u=n(u,nt),v){if(v.length>1)throw new Error("Cannot use more than one escape character");v=n.escape(v);k=new RegExp("(?:".concat(v,"[\\S\\s]|(?:(?!").concat(n.union([r,u],"",{conjunction:"or"}).source,")[^").concat(v,"])+)+"),f.replace(/[^imu]+/g,""))}for(;;){if(v&&(s+=(n.exec(i,k,s,"sticky")||[""])[0].length),c=n.exec(i,r,s),l=n.exec(i,u,s),c&&l&&(c.index<=l.index?l=null:c=null),c||l)h=(c||l).index,s=h+(c||l)[0].length;else if(!b)break;if(g&&!b&&h>a)break;if(c)b||(p=h,w=s),++b;else{if(!l||!b)throw new Error("Unbalanced delimiter found in string");if(!--b&&(o?(o[0]&&p>a&&y.push(t(o[0],i.slice(a,p),a,p)),o[1]&&y.push(t(o[1],i.slice(p,w),p,w)),o[2]&&y.push(t(o[2],i.slice(w,h),w,h)),o[3]&&y.push(t(o[3],i.slice(h,s),h,s))):y.push(i.slice(w,h)),a=s,!d))break}h===s&&++s}return d&&!g&&o&&o[0]&&i.length>a&&y.push(t(o[0],i.slice(a),a,i.length)),y}};t.default=i;n.exports=t.default},function(n,t,i){"use strict";var f=i(37),r,u;Object.defineProperty(t,"__esModule",{value:!0});t.default=void 0;r=f(i(115));u=function(n){function i(n){return n.replace(/[- _]+/g,"").toLowerCase()}function e(n){var t=/^\\[xu](.+)/.exec(n);return t?l(t[1]):n.charCodeAt("\\"===n[0]?1:0)}function o(t){var r="",i=-1;return n.forEach(t,/(\\x..|\\u....|\\?[\s\S])(?:-(\\x..|\\u....|\\?[\s\S]))?/,function(n){var t=e(n[1]);t>i+1&&(r+="\\u".concat(f(u(i+1))),t>i+2&&(r+="-\\u".concat(f(u(t-1)))));i=e(n[2]||n[1])}),i<65535&&(r+="\\u".concat(f(u(i+1))),i<65534&&(r+="-\\uFFFF")),r}function s(n){return t[n]["b!"]||(t[n]["b!"]=o(t[n].bmp))}function h(n,i){var r=t[n],u="";return r.bmp&&!r.isBmpLast&&(u="[".concat(r.bmp,"]").concat(r.astral?"|":"")),r.astral&&(u+=r.astral),r.isBmpLast&&r.bmp&&(u+="".concat(r.astral?"|":"","[").concat(r.bmp,"]")),i?"(?:(?!".concat(u,")(?:[�-�][�-�]|[\0-￿]))"):"(?:".concat(u,")")}function c(n,i){var r=i?"a!":"a=";return t[n][r]||(t[n][r]=h(n,i))}var t={},l=n._dec,u=n._hex,f=n._pad4;n.addToken(/\\([pP])(?:{(\^?)([^}]*)}|([A-Za-z]))/,function(n,r,u){var o="P"===n[1]||!!n[2],h=-1!==u.indexOf("A"),f=i(n[4]||n[3]),e=t[f];if("P"===n[1]&&n[2])throw new SyntaxError("Invalid double negation "+n[0]);if(!t.hasOwnProperty(f))throw new SyntaxError("Unknown Unicode token "+n[0]);if(e.inverseOf){if(f=i(e.inverseOf),!t.hasOwnProperty(f))throw new ReferenceError("".concat("Unicode token missing data "+n[0]," -> ").concat(e.inverseOf));e=t[f];o=!o}if(!e.bmp&&!h)throw new SyntaxError("Astral mode required for Unicode token "+n[0]);if(h){if("class"===r)throw new SyntaxError("Astral mode does not support Unicode tokens within character classes");return c(f,o)}return"class"===r?o?s(f):e.bmp:"".concat((o?"[^":"[")+e.bmp,"]")},{scope:"all",optionalFlags:"A",leadChar:"\\"});n.addUnicodeData=function(u){var o=!0,s=!1,h=void 0,c,e,f;try{for(e=r.default(u);!(o=(c=e.next()).done);o=!0){if(f=c.value,!f.name)throw new Error("Unicode token requires name");if(!(f.inverseOf||f.bmp||f.astral))throw new Error("Unicode token has no character data "+f.name);t[i(f.name)]=f;f.alias&&(t[i(f.alias)]=f)}}catch(n){s=!0;h=n}finally{try{o||null==e.return||e.return()}finally{if(s)throw h;}}n.cache.flush("patterns")};n._getUnicodeProperty=function(n){var r=i(n);return t[r]}};t.default=u;n.exports=t.default},function(n,t,i){"use strict";var f=i(37),r,u;Object.defineProperty(t,"__esModule",{value:!0});t.default=void 0;r=f(i(441));u=function(n){if(!n.addUnicodeData)throw new ReferenceError("Unicode Base must be loaded before Unicode Blocks");n.addUnicodeData(r.default)};t.default=u;n.exports=t.default},function(n){n.exports=[{name:"InAdlam",astral:"�[�-�]"},{name:"InAegean_Numbers",astral:"�[�-�]"},{name:"InAhom",astral:"�[�-�]"},{name:"InAlchemical_Symbols",astral:"�[�-�]"},{name:"InAlphabetic_Presentation_Forms",bmp:"ﬀ-ﭏ"},{name:"InAnatolian_Hieroglyphs",astral:"�[�-�]"},{name:"InAncient_Greek_Musical_Notation",astral:"�[�-�]"},{name:"InAncient_Greek_Numbers",astral:"�[�-�]"},{name:"InAncient_Symbols",astral:"�[�-�]"},{name:"InArabic",bmp:"؀-ۿ"},{name:"InArabic_Extended_A",bmp:"ࢠ-ࣿ"},{name:"InArabic_Mathematical_Alphabetic_Symbols",astral:"�[�-�]"},{name:"InArabic_Presentation_Forms_A",bmp:"ﭐ-﷿"},{name:"InArabic_Presentation_Forms_B",bmp:"ﹰ-﻿"},{name:"InArabic_Supplement",bmp:"ݐ-ݿ"},{name:"InArmenian",bmp:"԰-֏"},{name:"InArrows",bmp:"←-⇿"},{name:"InAvestan",astral:"�[�-�]"},{name:"InBalinese",bmp:"ᬀ-᭿"},{name:"InBamum",bmp:"ꚠ-꛿"},{name:"InBamum_Supplement",astral:"�[�-�]"},{name:"InBasic_Latin",bmp:"\0-"},{name:"InBassa_Vah",astral:"�[�-�]"},{name:"InBatak",bmp:"ᯀ-᯿"},{name:"InBengali",bmp:"ঀ-৿"},{name:"InBhaiksuki",astral:"�[�-�]"},{name:"InBlock_Elements",bmp:"▀-▟"},{name:"InBopomofo",bmp:"㄀-ㄯ"},{name:"InBopomofo_Extended",bmp:"ㆠ-ㆿ"},{name:"InBox_Drawing",bmp:"─-╿"},{name:"InBrahmi",astral:"�[�-�]"},{name:"InBraille_Patterns",bmp:"⠀-⣿"},{name:"InBuginese",bmp:"ᨀ-᨟"},{name:"InBuhid",bmp:"ᝀ-᝟"},{name:"InByzantine_Musical_Symbols",astral:"�[�-�]"},{name:"InCJK_Compatibility",bmp:"㌀-㏿"},{name:"InCJK_Compatibility_Forms",bmp:"︰-﹏"},{name:"InCJK_Compatibility_Ideographs",bmp:"豈-﫿"},{name:"InCJK_Compatibility_Ideographs_Supplement",astral:"�[�-�]"},{name:"InCJK_Radicals_Supplement",bmp:"⺀-⻿"},{name:"InCJK_Strokes",bmp:"㇀-㇯"},{name:"InCJK_Symbols_And_Punctuation",bmp:"　-〿"},{name:"InCJK_Unified_Ideographs",bmp:"一-鿿"},{name:"InCJK_Unified_Ideographs_Extension_A",bmp:"㐀-䶿"},{name:"InCJK_Unified_Ideographs_Extension_B",astral:"[�-�][�-�]|�[�-�]"},{name:"InCJK_Unified_Ideographs_Extension_C",astral:"�[�-�]|[�-�][�-�]|�[�-�]"},{name:"InCJK_Unified_Ideographs_Extension_D",astral:"�[�-�]|�[�-�]"},{name:"InCJK_Unified_Ideographs_Extension_E",astral:"�[�-�]|[�-�][�-�]|�[�-�]"},{name:"InCJK_Unified_Ideographs_Extension_F",astral:"�[�-�]|[�-�][�-�]|�[�-�]"},{name:"InCarian",astral:"�[�-�]"},{name:"InCaucasian_Albanian",astral:"�[�-�]"},{name:"InChakma",astral:"�[�-�]"},{name:"InCham",bmp:"ꨀ-꩟"},{name:"InCherokee",bmp:"Ꭰ-᏿"},{name:"InCherokee_Supplement",bmp:"ꭰ-ꮿ"},{name:"InChess_Symbols",astral:"�[�-�]"},{name:"InCombining_Diacritical_Marks",bmp:"̀-ͯ"},{name:"InCombining_Diacritical_Marks_Extended",bmp:"᪰-᫿"},{name:"InCombining_Diacritical_Marks_For_Symbols",bmp:"⃐-⃿"},{name:"InCombining_Diacritical_Marks_Supplement",bmp:"᷀-᷿"},{name:"InCombining_Half_Marks",bmp:"︠-︯"},{name:"InCommon_Indic_Number_Forms",bmp:"꠰-꠿"},{name:"InControl_Pictures",bmp:"␀-␿"},{name:"InCoptic",bmp:"Ⲁ-⳿"},{name:"InCoptic_Epact_Numbers",astral:"�[�-�]"},{name:"InCounting_Rod_Numerals",astral:"�[�-�]"},{name:"InCuneiform",astral:"�[�-�]"},{name:"InCuneiform_Numbers_And_Punctuation",astral:"�[�-�]"},{name:"InCurrency_Symbols",bmp:"₠-⃏"},{name:"InCypriot_Syllabary",astral:"�[�-�]"},{name:"InCyrillic",bmp:"Ѐ-ӿ"},{name:"InCyrillic_Extended_A",bmp:"ⷠ-ⷿ"},{name:"InCyrillic_Extended_B",bmp:"Ꙁ-ꚟ"},{name:"InCyrillic_Extended_C",bmp:"ᲀ-᲏"},{name:"InCyrillic_Supplement",bmp:"Ԁ-ԯ"},{name:"InDeseret",astral:"�[�-�]"},{name:"InDevanagari",bmp:"ऀ-ॿ"},{name:"InDevanagari_Extended",bmp:"꣠-ꣿ"},{name:"InDingbats",bmp:"✀-➿"},{name:"InDogra",astral:"�[�-�]"},{name:"InDomino_Tiles",astral:"�[�-�]"},{name:"InDuployan",astral:"�[�-�]"},{name:"InEarly_Dynastic_Cuneiform",astral:"�[�-�]"},{name:"InEgyptian_Hieroglyphs",astral:"�[�-�]|�[�-�]"},{name:"InElbasan",astral:"�[�-�]"},{name:"InEmoticons",astral:"�[�-�]"},{name:"InEnclosed_Alphanumeric_Supplement",astral:"�[�-�]"},{name:"InEnclosed_Alphanumerics",bmp:"①-⓿"},{name:"InEnclosed_CJK_Letters_And_Months",bmp:"㈀-㋿"},{name:"InEnclosed_Ideographic_Supplement",astral:"�[�-�]"},{name:"InEthiopic",bmp:"ሀ-፿"},{name:"InEthiopic_Extended",bmp:"ⶀ-⷟"},{name:"InEthiopic_Extended_A",bmp:"꬀-꬯"},{name:"InEthiopic_Supplement",bmp:"ᎀ-᎟"},{name:"InGeneral_Punctuation",bmp:" -⁯"},{name:"InGeometric_Shapes",bmp:"■-◿"},{name:"InGeometric_Shapes_Extended",astral:"�[�-�]"},{name:"InGeorgian",bmp:"Ⴀ-ჿ"},{name:"InGeorgian_Extended",bmp:"Ა-Ჿ"},{name:"InGeorgian_Supplement",bmp:"ⴀ-⴯"},{name:"InGlagolitic",bmp:"Ⰰ-ⱟ"},{name:"InGlagolitic_Supplement",astral:"�[�-�]"},{name:"InGothic",astral:"�[�-�]"},{name:"InGrantha",astral:"�[�-�]"},{name:"InGreek_And_Coptic",bmp:"Ͱ-Ͽ"},{name:"InGreek_Extended",bmp:"ἀ-῿"},{name:"InGujarati",bmp:"઀-૿"},{name:"InGunjala_Gondi",astral:"�[�-�]"},{name:"InGurmukhi",bmp:"਀-੿"},{name:"InHalfwidth_And_Fullwidth_Forms",bmp:"＀-￯"},{name:"InHangul_Compatibility_Jamo",bmp:"㄰-㆏"},{name:"InHangul_Jamo",bmp:"ᄀ-ᇿ"},{name:"InHangul_Jamo_Extended_A",bmp:"ꥠ-꥿"},{name:"InHangul_Jamo_Extended_B",bmp:"ힰ-퟿"},{name:"InHangul_Syllables",bmp:"가-힯"},{name:"InHanifi_Rohingya",astral:"�[�-�]"},{name:"InHanunoo",bmp:"ᜠ-᜿"},{name:"InHatran",astral:"�[�-�]"},{name:"InHebrew",bmp:"֐-׿"},{name:"InHigh_Private_Use_Surrogates",bmp:"�-�"},{name:"InHigh_Surrogates",bmp:"�-�"},{name:"InHiragana",bmp:"぀-ゟ"},{name:"InIPA_Extensions",bmp:"ɐ-ʯ"},{name:"InIdeographic_Description_Characters",bmp:"⿰-⿿"},{name:"InIdeographic_Symbols_And_Punctuation",astral:"�[�-�]"},{name:"InImperial_Aramaic",astral:"�[�-�]"},{name:"InIndic_Siyaq_Numbers",astral:"�[�-�]"},{name:"InInscriptional_Pahlavi",astral:"�[�-�]"},{name:"InInscriptional_Parthian",astral:"�[�-�]"},{name:"InJavanese",bmp:"ꦀ-꧟"},{name:"InKaithi",astral:"�[�-�]"},{name:"InKana_Extended_A",astral:"�[�-�]"},{name:"InKana_Supplement",astral:"�[�-�]"},{name:"InKanbun",bmp:"㆐-㆟"},{name:"InKangxi_Radicals",bmp:"⼀-⿟"},{name:"InKannada",bmp:"ಀ-೿"},{name:"InKatakana",bmp:"゠-ヿ"},{name:"InKatakana_Phonetic_Extensions",bmp:"ㇰ-ㇿ"},{name:"InKayah_Li",bmp:"꤀-꤯"},{name:"InKharoshthi",astral:"�[�-�]"},{name:"InKhmer",bmp:"ក-៿"},{name:"InKhmer_Symbols",bmp:"᧠-᧿"},{name:"InKhojki",astral:"�[�-�]"},{name:"InKhudawadi",astral:"�[�-�]"},{name:"InLao",bmp:"຀-໿"},{name:"InLatin_1_Supplement",bmp:"-ÿ"},{name:"InLatin_Extended_A",bmp:"Ā-ſ"},{name:"InLatin_Extended_Additional",bmp:"Ḁ-ỿ"},{name:"InLatin_Extended_B",bmp:"ƀ-ɏ"},{name:"InLatin_Extended_C",bmp:"Ⱡ-Ɀ"},{name:"InLatin_Extended_D",bmp:"꜠-ꟿ"},{name:"InLatin_Extended_E",bmp:"ꬰ-꭯"},{name:"InLepcha",bmp:"ᰀ-ᱏ"},{name:"InLetterlike_Symbols",bmp:"℀-⅏"},{name:"InLimbu",bmp:"ᤀ-᥏"},{name:"InLinear_A",astral:"�[�-�]"},{name:"InLinear_B_Ideograms",astral:"�[�-�]"},{name:"InLinear_B_Syllabary",astral:"�[�-�]"},{name:"InLisu",bmp:"ꓐ-꓿"},{name:"InLow_Surrogates",bmp:"�-�"},{name:"InLycian",astral:"�[�-�]"},{name:"InLydian",astral:"�[�-�]"},{name:"InMahajani",astral:"�[�-�]"},{name:"InMahjong_Tiles",astral:"�[�-�]"},{name:"InMakasar",astral:"�[�-�]"},{name:"InMalayalam",bmp:"ഀ-ൿ"},{name:"InMandaic",bmp:"ࡀ-࡟"},{name:"InManichaean",astral:"�[�-�]"},{name:"InMarchen",astral:"�[�-�]"},{name:"InMasaram_Gondi",astral:"�[�-�]"},{name:"InMathematical_Alphanumeric_Symbols",astral:"�[�-�]"},{name:"InMathematical_Operators",bmp:"∀-⋿"},{name:"InMayan_Numerals",astral:"�[�-�]"},{name:"InMedefaidrin",astral:"�[�-�]"},{name:"InMeetei_Mayek",bmp:"ꯀ-꯿"},{name:"InMeetei_Mayek_Extensions",bmp:"ꫠ-꫿"},{name:"InMende_Kikakui",astral:"�[�-�]"},{name:"InMeroitic_Cursive",astral:"�[�-�]"},{name:"InMeroitic_Hieroglyphs",astral:"�[�-�]"},{name:"InMiao",astral:"�[�-�]"},{name:"InMiscellaneous_Mathematical_Symbols_A",bmp:"⟀-⟯"},{name:"InMiscellaneous_Mathematical_Symbols_B",bmp:"⦀-⧿"},{name:"InMiscellaneous_Symbols",bmp:"☀-⛿"},{name:"InMiscellaneous_Symbols_And_Arrows",bmp:"⬀-⯿"},{name:"InMiscellaneous_Symbols_And_Pictographs",astral:"�[�-�]|�[�-�]"},{name:"InMiscellaneous_Technical",bmp:"⌀-⏿"},{name:"InModi",astral:"�[�-�]"},{name:"InModifier_Tone_Letters",bmp:"꜀-ꜟ"},{name:"InMongolian",bmp:"᠀-᢯"},{name:"InMongolian_Supplement",astral:"�[�-�]"},{name:"InMro",astral:"�[�-�]"},{name:"InMultani",astral:"�[�-�]"},{name:"InMusical_Symbols",astral:"�[�-�]"},{name:"InMyanmar",bmp:"က-႟"},{name:"InMyanmar_Extended_A",bmp:"ꩠ-ꩿ"},{name:"InMyanmar_Extended_B",bmp:"ꧠ-꧿"},{name:"InNKo",bmp:"߀-߿"},{name:"InNabataean",astral:"�[�-�]"},{name:"InNew_Tai_Lue",bmp:"ᦀ-᧟"},{name:"InNewa",astral:"�[�-�]"},{name:"InNumber_Forms",bmp:"⅐-↏"},{name:"InNushu",astral:"�[�-�]"},{name:"InOgham",bmp:" -᚟"},{name:"InOl_Chiki",bmp:"᱐-᱿"},{name:"InOld_Hungarian",astral:"�[�-�]"},{name:"InOld_Italic",astral:"�[�-�]"},{name:"InOld_North_Arabian",astral:"�[�-�]"},{name:"InOld_Permic",astral:"�[�-�]"},{name:"InOld_Persian",astral:"�[�-�]"},{name:"InOld_Sogdian",astral:"�[�-�]"},{name:"InOld_South_Arabian",astral:"�[�-�]"},{name:"InOld_Turkic",astral:"�[�-�]"},{name:"InOptical_Character_Recognition",bmp:"⑀-⑟"},{name:"InOriya",bmp:"଀-୿"},{name:"InOrnamental_Dingbats",astral:"�[�-�]"},{name:"InOsage",astral:"�[�-�]"},{name:"InOsmanya",astral:"�[�-�]"},{name:"InPahawh_Hmong",astral:"�[�-�]"},{name:"InPalmyrene",astral:"�[�-�]"},{name:"InPau_Cin_Hau",astral:"�[�-�]"},{name:"InPhags_Pa",bmp:"ꡀ-꡿"},{name:"InPhaistos_Disc",astral:"�[�-�]"},{name:"InPhoenician",astral:"�[�-�]"},{name:"InPhonetic_Extensions",bmp:"ᴀ-ᵿ"},{name:"InPhonetic_Extensions_Supplement",bmp:"ᶀ-ᶿ"},{name:"InPlaying_Cards",astral:"�[�-�]"},{name:"InPrivate_Use_Area",bmp:"-"},{name:"InPsalter_Pahlavi",astral:"�[�-�]"},{name:"InRejang",bmp:"ꤰ-꥟"},{name:"InRumi_Numeral_Symbols",astral:"�[�-�]"},{name:"InRunic",bmp:"ᚠ-᛿"},{name:"InSamaritan",bmp:"ࠀ-࠿"},{name:"InSaurashtra",bmp:"ꢀ-꣟"},{name:"InSharada",astral:"�[�-�]"},{name:"InShavian",astral:"�[�-�]"},{name:"InShorthand_Format_Controls",astral:"�[�-�]"},{name:"InSiddham",astral:"�[�-�]"},{name:"InSinhala",bmp:"඀-෿"},{name:"InSinhala_Archaic_Numbers",astral:"�[�-�]"},{name:"InSmall_Form_Variants",bmp:"﹐-﹯"},{name:"InSogdian",astral:"�[�-�]"},{name:"InSora_Sompeng",astral:"�[�-�]"},{name:"InSoyombo",astral:"�[�-�]"},{name:"InSpacing_Modifier_Letters",bmp:"ʰ-˿"},{name:"InSpecials",bmp:"￰-￿"},{name:"InSundanese",bmp:"ᮀ-ᮿ"},{name:"InSundanese_Supplement",bmp:"᳀-᳏"},{name:"InSuperscripts_And_Subscripts",bmp:"⁰-₟"},{name:"InSupplemental_Arrows_A",bmp:"⟰-⟿"},{name:"InSupplemental_Arrows_B",bmp:"⤀-⥿"},{name:"InSupplemental_Arrows_C",astral:"�[�-�]"},{name:"InSupplemental_Mathematical_Operators",bmp:"⨀-⫿"},{name:"InSupplemental_Punctuation",bmp:"⸀-⹿"},{name:"InSupplemental_Symbols_And_Pictographs",astral:"�[�-�]"},{name:"InSupplementary_Private_Use_Area_A",astral:"[�-�][�-�]"},{name:"InSupplementary_Private_Use_Area_B",astral:"[�-�][�-�]"},{name:"InSutton_SignWriting",astral:"�[�-�]"},{name:"InSyloti_Nagri",bmp:"ꠀ-꠯"},{name:"InSyriac",bmp:"܀-ݏ"},{name:"InSyriac_Supplement",bmp:"ࡠ-࡯"},{name:"InTagalog",bmp:"ᜀ-ᜟ"},{name:"InTagbanwa",bmp:"ᝠ-᝿"},{name:"InTags",astral:"�[�-�]"},{name:"InTai_Le",bmp:"ᥐ-᥿"},{name:"InTai_Tham",bmp:"ᨠ-᪯"},{name:"InTai_Viet",bmp:"ꪀ-꫟"},{name:"InTai_Xuan_Jing_Symbols",astral:"�[�-�]"},{name:"InTakri",astral:"�[�-�]"},{name:"InTamil",bmp:"஀-௿"},{name:"InTangut",astral:"[�-�][�-�]"},{name:"InTangut_Components",astral:"�[�-�]"},{name:"InTelugu",bmp:"ఀ-౿"},{name:"InThaana",bmp:"ހ-޿"},{name:"InThai",bmp:"฀-๿"},{name:"InTibetan",bmp:"ༀ-࿿"},{name:"InTifinagh",bmp:"ⴰ-⵿"},{name:"InTirhuta",astral:"�[�-�]"},{name:"InTransport_And_Map_Symbols",astral:"�[�-�]"},{name:"InUgaritic",astral:"�[�-�]"},{name:"InUnified_Canadian_Aboriginal_Syllabics",bmp:"᐀-ᙿ"},{name:"InUnified_Canadian_Aboriginal_Syllabics_Extended",bmp:"ᢰ-᣿"},{name:"InVai",bmp:"ꔀ-꘿"},{name:"InVariation_Selectors",bmp:"︀-️"},{name:"InVariation_Selectors_Supplement",astral:"�[�-�]"},{name:"InVedic_Extensions",bmp:"᳐-᳿"},{name:"InVertical_Forms",bmp:"︐-︟"},{name:"InWarang_Citi",astral:"�[�-�]"},{name:"InYi_Radicals",bmp:"꒐-꓏"},{name:"InYi_Syllables",bmp:"ꀀ-꒏"},{name:"InYijing_Hexagram_Symbols",bmp:"䷀-䷿"},{name:"InZanabazar_Square",astral:"�[�-�]"}]},function(n,t,i){"use strict";var f=i(37),r,u;Object.defineProperty(t,"__esModule",{value:!0});t.default=void 0;r=f(i(443));u=function(n){if(!n.addUnicodeData)throw new ReferenceError("Unicode Base must be loaded before Unicode Categories");n.addUnicodeData(r.default)};t.default=u;n.exports=t.default},function(n){n.exports=[{name:"C",alias:"Other",isBmpLast:!0,bmp:"\0--­͸͹΀-΃΋΍΢԰՗՘֋֌֐׈-׏׫-׮׵-؅؜؝۝܎܏݋݌޲-޿߻߼࠮࠯࠿࡜࡝࡟࡫-࢟ࢵࢾ-࣒࣢঄঍঎঑঒঩঱঳-঵঺঻৅৆৉৊৏-৖৘-৛৞৤৥৿਀਄਋-਎਑਒਩਱਴਷਺਻਽੃-੆੉੊੎-੐੒-੘੝੟-੥੷-઀઄઎઒઩઱઴઺઻૆૊૎૏૑-૟૤૥૲-૸଀଄଍଎଑଒଩଱଴଺଻୅୆୉୊୎-୕୘-୛୞୤୥୸-஁஄஋-஍஑஖-஘஛஝஠-஢஥-஧஫-஭஺-஽௃-௅௉௎௏௑-௖௘-௥௻-௿఍఑఩఺-఼౅౉౎-౔౗౛-౟౤౥౰-౷಍಑಩಴಺಻೅೉೎-೔೗-ೝ೟೤೥೰ೳ-೿ഄ഍഑൅൉൐-൓൤൥඀ඁ඄඗-඙඲඼඾඿෇-෉෋-෎෕෗෠-෥෰෱෵-฀฻-฾๜-຀຃຅ຆຉ຋ຌຎ-ຓຘຠ຤຦ຨຩຬ຺຾຿໅໇໎໏໚໛໠-໿཈཭-཰྘྽࿍࿛-࿿჆჈-჌჎჏቉቎቏቗቙቞቟኉኎኏኱኶኷኿዁዆዇዗጑጖጗፛፜፽-፿᎚-᎟᏶᏷᏾᏿᚝-᚟᛹-᛿ᜍ᜕-ᜟ᜷-᜿᝔-᝟᝭᝱᝴-᝿៞៟៪-៯៺-៿᠎᠏᠚-᠟᡹-᡿᢫-᢯᣶-᣿᤟᤬-᤯᤼-᤿᥁-᥃᥮᥯᥵-᥿᦬-᦯᧊-᧏᧛-᧝᨜᨝᩟᩽᩾᪊-᪏᪚-᪟᪮᪯ᪿ-᫿ᭌ-᭏᭽-᭿᯴-᯻᰸-᰺᱊-᱌Ᲊ-᲏᲻᲼᳈-᳏ᳺ-᳿᷺἖἗἞἟὆὇὎὏὘὚὜὞὾὿᾵῅῔῕῜῰῱῵῿​-‏‪-‮⁠-⁯⁲⁳₏₝-₟⃀-⃏⃱-⃿↌-↏␧-␿⑋-⑟⭴⭵⮖⮗⯉⯿Ⱟⱟ⳴-⳸⴦⴨-⴬⴮⴯⵨-⵮⵱-⵾⶗-⶟⶧⶯⶷⶿⷇⷏⷗⷟⹏-⹿⺚⻴-⻿⿖-⿯⿼-⿿぀゗゘㄀-㄄㄰㆏ㆻ-ㆿ㇤-㇯㈟㋿䶶-䶿鿰-鿿꒍-꒏꓇-꓏꘬-꘿꛸-꛿Ꞻ-ꟶ꠬-꠯꠺-꠿꡸-꡿꣆-꣍꣚-꣟꥔-꥞꥽-꥿꧎꧚-꧝꧿꨷-꨿꩎꩏꩚꩛꫃-꫚꫷-꬀꬇꬈꬏꬐꬗-꬟꬧꬯ꭦ-꭯꯮꯯꯺-꯿힤-힯퟇-퟊퟼-﩮﩯﫚-﫿﬇-﬒﬘-﬜﬷﬽﬿﭂﭅﯂-﯒﵀-﵏﶐﶑﷈-﷯﷾﷿︚-︟﹓﹧﹬-﹯﹵﻽-＀﾿-￁￈￉￐￑￘￙￝-￟￧￯-￻￾￿",astral:"�[�������-��-��-��-���-��-��-��-��-��-��-��-��-���-��-�]|�[���-��-��-��-��-��-��-��-��-�]|�[�����-�����-��-���-��-��-��-��-�����-������-��-��-��-��-��-��-����-��-��-��-�]|�[�-��-��-��-��-��-��-��-�]|�[�-��-���-��-��-���-��-�����-���-������-��-��-�����������������-��-����-��-�]|�[���-��-��-����-��-��-��-��-��-����-��-�]|�[�-��-��-��-����-��-�]|�[���-��-�����-����-����-��-������-��-��-�]|�[�-�]|�[��-��-�]|[���-��-��-����-�����-��-��-�][�-�]|�[�-�]|�[�-�]|�[�-���-��-����-��-����-��-�]|�[�-��-��-��-��-��-�]|�[�-�]|�[�-�]|�[�-��-�]|�[�-��-��-����-�]|�[�-����-��-��-��-��-��-�]|�[���������������������-������]|�[�-���-�]|�[������-�]|�[���-��-��-��-�]|�[�-��-�����������-��-�����������������������-����-��-�]|�[�-��-������-��-��-��-��-��-��-��-��-�]|�[�-��-��-��-��-�]|�[�-��-��-��-��-��-�����-���-��-��-��-��-�]|�[�-�]|�[�-�]|�[��]|�[�-�]|�[�-�]|�[�-�]|�[�-��-�]"},{name:"Cc",alias:"Control",bmp:"\0--"},{name:"Cf",alias:"Format",bmp:"­؀-؅؜۝܏࣢᠎​-‏‪-‮⁠-⁤⁦-⁯﻿￹-￻",astral:"�[��]|�[�-�]|�[�-�]|�[��-�]"},{name:"Cn",alias:"Unassigned",bmp:"͸͹΀-΃΋΍΢԰՗՘֋֌֐׈-׏׫-׮׵-׿؝܎݋݌޲-޿߻߼࠮࠯࠿࡜࡝࡟࡫-࢟ࢵࢾ-࣒঄঍঎঑঒঩঱঳-঵঺঻৅৆৉৊৏-৖৘-৛৞৤৥৿਀਄਋-਎਑਒਩਱਴਷਺਻਽੃-੆੉੊੎-੐੒-੘੝੟-੥੷-઀઄઎઒઩઱઴઺઻૆૊૎૏૑-૟૤૥૲-૸଀଄଍଎଑଒଩଱଴଺଻୅୆୉୊୎-୕୘-୛୞୤୥୸-஁஄஋-஍஑஖-஘஛஝஠-஢஥-஧஫-஭஺-஽௃-௅௉௎௏௑-௖௘-௥௻-௿఍఑఩఺-఼౅౉౎-౔౗౛-౟౤౥౰-౷಍಑಩಴಺಻೅೉೎-೔೗-ೝ೟೤೥೰ೳ-೿ഄ഍഑൅൉൐-൓൤൥඀ඁ඄඗-඙඲඼඾඿෇-෉෋-෎෕෗෠-෥෰෱෵-฀฻-฾๜-຀຃຅ຆຉ຋ຌຎ-ຓຘຠ຤຦ຨຩຬ຺຾຿໅໇໎໏໚໛໠-໿཈཭-཰྘྽࿍࿛-࿿჆჈-჌჎჏቉቎቏቗቙቞቟኉኎኏኱኶኷኿዁዆዇዗጑጖጗፛፜፽-፿᎚-᎟᏶᏷᏾᏿᚝-᚟᛹-᛿ᜍ᜕-ᜟ᜷-᜿᝔-᝟᝭᝱᝴-᝿៞៟៪-៯៺-៿᠏᠚-᠟᡹-᡿᢫-᢯᣶-᣿᤟᤬-᤯᤼-᤿᥁-᥃᥮᥯᥵-᥿᦬-᦯᧊-᧏᧛-᧝᨜᨝᩟᩽᩾᪊-᪏᪚-᪟᪮᪯ᪿ-᫿ᭌ-᭏᭽-᭿᯴-᯻᰸-᰺᱊-᱌Ᲊ-᲏᲻᲼᳈-᳏ᳺ-᳿᷺἖἗἞἟὆὇὎὏὘὚὜὞὾὿᾵῅῔῕῜῰῱῵῿⁥⁲⁳₏₝-₟⃀-⃏⃱-⃿↌-↏␧-␿⑋-⑟⭴⭵⮖⮗⯉⯿Ⱟⱟ⳴-⳸⴦⴨-⴬⴮⴯⵨-⵮⵱-⵾⶗-⶟⶧⶯⶷⶿⷇⷏⷗⷟⹏-⹿⺚⻴-⻿⿖-⿯⿼-⿿぀゗゘㄀-㄄㄰㆏ㆻ-ㆿ㇤-㇯㈟㋿䶶-䶿鿰-鿿꒍-꒏꓇-꓏꘬-꘿꛸-꛿Ꞻ-ꟶ꠬-꠯꠺-꠿꡸-꡿꣆-꣍꣚-꣟꥔-꥞꥽-꥿꧎꧚-꧝꧿꨷-꨿꩎꩏꩚꩛꫃-꫚꫷-꬀꬇꬈꬏꬐꬗-꬟꬧꬯ꭦ-꭯꯮꯯꯺-꯿힤-힯퟇-퟊퟼-퟿﩮﩯﫚-﫿﬇-﬒﬘-﬜﬷﬽﬿﭂﭅﯂-﯒﵀-﵏﶐﶑﷈-﷯﷾﷿︚-︟﹓﹧﹬-﹯﹵﻽﻾＀﾿-￁￈￉￐￑￘￙￝-￟￧￯-￸￾￿",astral:"�[�������-��-��-��-���-��-��-��-��-��-��-��-��-���-��-�]|�[���-��-��-��-��-��-��-��-��-�]|�[�����-�����-��-���-��-��-��-��-�����-������-��-��-��-��-��-��-����-��-��-��-�]|�[�-��-��-��-��-��-��-��-�]|�[�-��-��-����-��-���-��-�����-���-������-��-��-�����������������-��-����-��-�]|�[���-��-��-����-��-��-��-��-��-����-��-�]|�[�-��-��-��-����-��-�]|�[���-��-�����-����-����-��-������-��-��-�]|�[�-�]|�[��-��-�]|[���-��-��-����-�����-��-��-�][�-�]|�[�-�]|�[�-�]|�[�-���-��-����-��-����-��-�]|�[�-��-��-��-��-��-�]|�[�-�]|�[�-�]|�[�-��-�]|�[�-��-��-����-�]|�[�-����-��-��-��-��-�]|�[���������������������-������]|�[�-���-�]|�[������-�]|�[���-��-��-��-�]|�[�-��-�����������-��-�����������������������-����-��-�]|�[�-��-������-��-��-��-��-��-��-��-��-�]|�[�-��-��-��-��-�]|�[�-��-��-��-��-��-�����-���-��-��-��-��-�]|�[�-�]|�[�-�]|�[��]|�[�-�]|�[�-�]|�[�-�]|�[��-��-��-�]|[��][��]"},{name:"Co",alias:"Private_Use",bmp:"-",astral:"[�-��-�][�-�]|[��][�-�]"},{name:"Cs",alias:"Surrogate",bmp:"�-�"},{name:"L",alias:"Letter",bmp:"A-Za-zªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࢠ-ࢴࢶ-ࢽऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛱ-ᛸᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢄᢇ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲈᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎↃↄⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々〆〱-〵〻〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿯ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛥꜗ-ꜟꜢ-ꞈꞋ-ꞹꟷ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭥꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ﬀ-ﬆﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼＡ-Ｚａ-ｚｦ-ﾾￂ-ￇￊ-ￏￒ-ￗￚ-ￜ",astral:"�[�-��-��-����-��-��-��-��-��-��-��-��-��-��-��-�]|�[�-��-��-��-��-��-��-��-�]|�[�-���-�����-��-��-��-����-��-��-�����-��-��-��-��-��-��-��-��-��-��-�]|�[�-��-��-��-��-���-�]|�[�-��-��-��-���-���-��-����-��-��-���-��-��-��-��-����-��-����-����-�]|�[�-��-��-�����-��-��-���-��-�]|�[�-��-����-����-��-���-�]|�[�-��-���-��-����-���-����-���-�]|�[�-�]|�[�-�]|[��-��-��-��-��-�][�-�]|�[�-�]|�[�-�]|�[�-��-��-��-��-��-��-�]|�[�-��-���-���]|�[�-�]|�[�-�]|�[�-��-�]|�[�-��-��-��-�]|�[�-��-�������-��-���-��-��-��-��-��-��-��-���-��-��-��-��-��-��-��-��-��-��-��-��-�]|�[�-��-�]|�[�-��-������-��-��������-�������������-��-��-��-���-��-��-��-��-�]|�[�-��-�]|�[�-��-�]|�[�-��-�]|�[�-��-�]|�[�-�]|�[�-�]"},{name:"LC",alias:"Cased_Letter",bmp:"A-Za-zµÀ-ÖØ-öø-ƺƼ-ƿǄ-ʓʕ-ʯͰ-ͳͶͷͻ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՠ-ֈႠ-ჅჇჍა-ჺჽ-ჿᎠ-Ᏽᏸ-ᏽᲀ-ᲈᲐ-ᲺᲽ-Ჿᴀ-ᴫᵫ-ᵷᵹ-ᶚḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℴℹℼ-ℿⅅ-ⅉⅎↃↄⰀ-Ⱞⰰ-ⱞⱠ-ⱻⱾ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭꙀ-ꙭꚀ-ꚛꜢ-ꝯꝱ-ꞇꞋ-ꞎꞐ-ꞹꟺꬰ-ꭚꭠ-ꭥꭰ-ꮿﬀ-ﬆﬓ-ﬗＡ-Ｚａ-ｚ",astral:"�[�-��-��-�]|�[�-��-�]|�[�-�]|�[�-�]|�[�-��-�������-��-���-��-��-��-��-��-��-��-���-��-��-��-��-��-��-��-��-��-��-��-��-�]|�[�-�]"},{name:"Ll",alias:"Lowercase_Letter",bmp:"a-zµß-öø-ÿāăąćĉċčďđēĕėęěĝğġģĥħĩīĭįıĳĵķĸĺļľŀłńņňŉŋōŏőœŕŗřśŝşšţťŧũūŭůűųŵŷźżž-ƀƃƅƈƌƍƒƕƙ-ƛƞơƣƥƨƪƫƭưƴƶƹƺƽ-ƿǆǉǌǎǐǒǔǖǘǚǜǝǟǡǣǥǧǩǫǭǯǰǳǵǹǻǽǿȁȃȅȇȉȋȍȏȑȓȕȗșțȝȟȡȣȥȧȩȫȭȯȱȳ-ȹȼȿɀɂɇɉɋɍɏ-ʓʕ-ʯͱͳͷͻ-ͽΐά-ώϐϑϕ-ϗϙϛϝϟϡϣϥϧϩϫϭϯ-ϳϵϸϻϼа-џѡѣѥѧѩѫѭѯѱѳѵѷѹѻѽѿҁҋҍҏґғҕҗҙқҝҟҡңҥҧҩҫҭүұҳҵҷҹһҽҿӂӄӆӈӊӌӎӏӑӓӕӗәӛӝӟӡӣӥӧөӫӭӯӱӳӵӷӹӻӽӿԁԃԅԇԉԋԍԏԑԓԕԗԙԛԝԟԡԣԥԧԩԫԭԯՠ-ֈა-ჺჽ-ჿᏸ-ᏽᲀ-ᲈᴀ-ᴫᵫ-ᵷᵹ-ᶚḁḃḅḇḉḋḍḏḑḓḕḗḙḛḝḟḡḣḥḧḩḫḭḯḱḳḵḷḹḻḽḿṁṃṅṇṉṋṍṏṑṓṕṗṙṛṝṟṡṣṥṧṩṫṭṯṱṳṵṷṹṻṽṿẁẃẅẇẉẋẍẏẑẓẕ-ẝẟạảấầẩẫậắằẳẵặẹẻẽếềểễệỉịọỏốồổỗộớờởỡợụủứừửữựỳỵỷỹỻỽỿ-ἇἐ-ἕἠ-ἧἰ-ἷὀ-ὅὐ-ὗὠ-ὧὰ-ώᾀ-ᾇᾐ-ᾗᾠ-ᾧᾰ-ᾴᾶᾷιῂ-ῄῆῇῐ-ΐῖῗῠ-ῧῲ-ῴῶῷℊℎℏℓℯℴℹℼℽⅆ-ⅉⅎↄⰰ-ⱞⱡⱥⱦⱨⱪⱬⱱⱳⱴⱶ-ⱻⲁⲃⲅⲇⲉⲋⲍⲏⲑⲓⲕⲗⲙⲛⲝⲟⲡⲣⲥⲧⲩⲫⲭⲯⲱⲳⲵⲷⲹⲻⲽⲿⳁⳃⳅⳇⳉⳋⳍⳏⳑⳓⳕⳗⳙⳛⳝⳟⳡⳣⳤⳬⳮⳳⴀ-ⴥⴧⴭꙁꙃꙅꙇꙉꙋꙍꙏꙑꙓꙕꙗꙙꙛꙝꙟꙡꙣꙥꙧꙩꙫꙭꚁꚃꚅꚇꚉꚋꚍꚏꚑꚓꚕꚗꚙꚛꜣꜥꜧꜩꜫꜭꜯ-ꜱꜳꜵꜷꜹꜻꜽꜿꝁꝃꝅꝇꝉꝋꝍꝏꝑꝓꝕꝗꝙꝛꝝꝟꝡꝣꝥꝧꝩꝫꝭꝯꝱ-ꝸꝺꝼꝿꞁꞃꞅꞇꞌꞎꞑꞓ-ꞕꞗꞙꞛꞝꞟꞡꞣꞥꞧꞩꞯꞵꞷꞹꟺꬰ-ꭚꭠ-ꭥꭰ-ꮿﬀ-ﬆﬓ-ﬗａ-ｚ",astral:"�[�-��-�]|�[�-�]|�[�-�]|�[�-�]|�[�-��-��-��-��-���-��-��-��-��-��-��-��-��-��-��-��-��-��-��-��-��-��-��-��-��-��]|�[�-�]"},{name:"Lm",alias:"Modifier_Letter",bmp:"ʰ-ˁˆ-ˑˠ-ˤˬˮʹͺՙـۥۦߴߵߺࠚࠤࠨॱๆໆჼៗᡃᪧᱸ-ᱽᴬ-ᵪᵸᶛ-ᶿⁱⁿₐ-ₜⱼⱽⵯⸯ々〱-〵〻ゝゞー-ヾꀕꓸ-ꓽꘌꙿꚜꚝꜗ-ꜟꝰꞈꟸꟹꧏꧦꩰꫝꫳꫴꭜ-ꭟｰﾞﾟ",astral:"�[�-�]|�[�-���]"},{name:"Lo",alias:"Other_Letter",bmp:"ªºƻǀ-ǃʔא-תׯ-ײؠ-ؿف-يٮٯٱ-ۓەۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪࠀ-ࠕࡀ-ࡘࡠ-ࡪࢠ-ࢴࢶ-ࢽऄ-हऽॐक़-ॡॲ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๅກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎᄀ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛱ-ᛸᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៜᠠ-ᡂᡄ-ᡸᢀ-ᢄᢇ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱷᳩ-ᳬᳮ-ᳱᳵᳶℵ-ℸⴰ-ⵧⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ〆〼ぁ-ゖゟァ-ヺヿㄅ-ㄯㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿯ꀀ-ꀔꀖ-ꒌꓐ-ꓷꔀ-ꘋꘐ-ꘟꘪꘫꙮꚠ-ꛥꞏꟷꟻ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧠ-ꧤꧧ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩯꩱ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛꫜꫠ-ꫪꫲꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎יִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼｦ-ｯｱ-ﾝﾠ-ﾾￂ-ￇￊ-ￏￒ-ￗￚ-ￜ",astral:"�[�-��-��-����-��-��-��-��-��-��-��-��-��-��-��-�]|�[�-��-��-��-��-��-�]|�[�-���-�����-��-��-��-����-��-��-�����-��-��-��-��-��-��-��-��-��-��-�]|�[�-��-��-���-�]|�[�-��-��-��-���-���-��-����-��-��-���-��-��-��-��-����-��-����-����-�]|�[�-��-��-�����-��-��-���-��-�]|�[�-����-����-��-���-�]|�[�-��-���-��-����-���-����-���-�]|�[�-�]|�[�-�]|[��-��-��-��-��-�][�-�]|�[�-�]|�[�-�]|�[�-��-��-��-��-��-�]|�[�-��]|�[�-�]|�[�-�]|�[�-��-�]|�[�-��-��-��-�]|�[�-�]|�[�-��-������-��-��������-�������������-��-��-��-���-��-��-��-��-�]|�[�-��-�]|�[�-��-�]|�[�-��-�]|�[�-��-�]|�[�-�]|�[�-�]"},{name:"Lt",alias:"Titlecase_Letter",bmp:"ǅǈǋǲᾈ-ᾏᾘ-ᾟᾨ-ᾯᾼῌῼ"},{name:"Lu",alias:"Uppercase_Letter",bmp:"A-ZÀ-ÖØ-ÞĀĂĄĆĈĊČĎĐĒĔĖĘĚĜĞĠĢĤĦĨĪĬĮİĲĴĶĹĻĽĿŁŃŅŇŊŌŎŐŒŔŖŘŚŜŞŠŢŤŦŨŪŬŮŰŲŴŶŸŹŻŽƁƂƄƆƇƉ-ƋƎ-ƑƓƔƖ-ƘƜƝƟƠƢƤƦƧƩƬƮƯƱ-ƳƵƷƸƼǄǇǊǍǏǑǓǕǗǙǛǞǠǢǤǦǨǪǬǮǱǴǶ-ǸǺǼǾȀȂȄȆȈȊȌȎȐȒȔȖȘȚȜȞȠȢȤȦȨȪȬȮȰȲȺȻȽȾɁɃ-ɆɈɊɌɎͰͲͶͿΆΈ-ΊΌΎΏΑ-ΡΣ-ΫϏϒ-ϔϘϚϜϞϠϢϤϦϨϪϬϮϴϷϹϺϽ-ЯѠѢѤѦѨѪѬѮѰѲѴѶѸѺѼѾҀҊҌҎҐҒҔҖҘҚҜҞҠҢҤҦҨҪҬҮҰҲҴҶҸҺҼҾӀӁӃӅӇӉӋӍӐӒӔӖӘӚӜӞӠӢӤӦӨӪӬӮӰӲӴӶӸӺӼӾԀԂԄԆԈԊԌԎԐԒԔԖԘԚԜԞԠԢԤԦԨԪԬԮԱ-ՖႠ-ჅჇჍᎠ-ᏵᲐ-ᲺᲽ-ᲿḀḂḄḆḈḊḌḎḐḒḔḖḘḚḜḞḠḢḤḦḨḪḬḮḰḲḴḶḸḺḼḾṀṂṄṆṈṊṌṎṐṒṔṖṘṚṜṞṠṢṤṦṨṪṬṮṰṲṴṶṸṺṼṾẀẂẄẆẈẊẌẎẐẒẔẞẠẢẤẦẨẪẬẮẰẲẴẶẸẺẼẾỀỂỄỆỈỊỌỎỐỒỔỖỘỚỜỞỠỢỤỦỨỪỬỮỰỲỴỶỸỺỼỾἈ-ἏἘ-ἝἨ-ἯἸ-ἿὈ-ὍὙὛὝὟὨ-ὯᾸ-ΆῈ-ΉῘ-ΊῨ-ῬῸ-Ώℂℇℋ-ℍℐ-ℒℕℙ-ℝℤΩℨK-ℭℰ-ℳℾℿⅅↃⰀ-ⰮⱠⱢ-ⱤⱧⱩⱫⱭ-ⱰⱲⱵⱾ-ⲀⲂⲄⲆⲈⲊⲌⲎⲐⲒⲔⲖⲘⲚⲜⲞⲠⲢⲤⲦⲨⲪⲬⲮⲰⲲⲴⲶⲸⲺⲼⲾⳀⳂⳄⳆⳈⳊⳌⳎⳐⳒⳔⳖⳘⳚⳜⳞⳠⳢⳫⳭⳲꙀꙂꙄꙆꙈꙊꙌꙎꙐꙒꙔꙖꙘꙚꙜꙞꙠꙢꙤꙦꙨꙪꙬꚀꚂꚄꚆꚈꚊꚌꚎꚐꚒꚔꚖꚘꚚꜢꜤꜦꜨꜪꜬꜮꜲꜴꜶꜸꜺꜼꜾꝀꝂꝄꝆꝈꝊꝌꝎꝐꝒꝔꝖꝘꝚꝜꝞꝠꝢꝤꝦꝨꝪꝬꝮꝹꝻꝽꝾꞀꞂꞄꞆꞋꞍꞐꞒꞖꞘꞚꞜꞞꞠꞢꞤꞦꞨꞪ-ꞮꞰ-ꞴꞶꞸＡ-Ｚ",astral:"�[�-��-�]|�[�-�]|�[�-�]|�[�-�]|�[�-��-��-��������-��-��-����-��-��-����-��-���-��-��-��-��-��-��-��-��-��-��-��-��]|�[�-�]"},{name:"M",alias:"Mark",bmp:"̀-ͯ҃-҉֑-ׇֽֿׁׂׅׄؐ-ًؚ-ٰٟۖ-ۜ۟-۪ۤۧۨ-ܑۭܰ-݊ަ-ް߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛࣓-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣঁ-ঃ়া-ৄেৈো-্ৗৢৣ৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑੰੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍ୖୗୢୣஂா-ூெ-ைொ-்ௗఀ-ఄా-ౄె-ైొ-్ౕౖౢౣಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣංඃ්ා-ුූෘ-ෟෲෳัิ-ฺ็-๎ັິ-ູົຼ່-ໍ༹༘༙༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏႚ-ႝ፝-፟ᜒ-᜔ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝᠋-᠍ᢅᢆᢩᤠ-ᤫᤰ-᤻ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼᪰-᪾ᬀ-ᬄ᬴-᭄᭫-᭳ᮀ-ᮂᮡ-ᮭ᯦-᯳ᰤ-᰷᳐-᳔᳒-᳨᳭ᳲ-᳴᳷-᳹᷀-᷹᷻-᷿⃐-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯꙯-꙲ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧꢀꢁꢴ-ꣅ꣠-꣱ꣿꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀ꧥꨩ-ꨶꩃꩌꩍꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭ﬞ︀-️︠-︯",astral:"�[���-�]|�[�-����-��-����]|�[�-��-�]|�[�-��-��-��-��-��-�����-��-��-��-���-��-����-����-�����-��-�]|�[�-���-��-��-����-��-��-�]|�[�-��-��-��-���-��-�]|�[�-��-��-��-��-�����-���-����-��-�]|�[�-��-�]|�[�-��-�]|�[��]|�[�-��-��-��-��-��-�]|�[�-��-����-��-�]|�[�-��-��-����-�]|�[�-��-�]|�[�-�]"},{name:"Mc",alias:"Spacing_Mark",bmp:"ःऻा-ीॉ-ौॎॏংঃা-ীেৈোৌৗਃਾ-ੀઃા-ીૉોૌଂଃାୀେୈୋୌୗாிுூெ-ைொ-ௌௗఁ-ఃు-ౄಂಃಾೀ-ೄೇೈೊೋೕೖംഃാ-ീെ-ൈൊ-ൌൗංඃා-ෑෘ-ෟෲෳ༾༿ཿါာေးျြၖၗၢ-ၤၧ-ၭႃႄႇ-ႌႏႚ-ႜាើ-ៅះៈᤣ-ᤦᤩ-ᤫᤰᤱᤳ-ᤸᨙᨚᩕᩗᩡᩣᩤᩭ-ᩲᬄᬵᬻᬽ-ᭁᭃ᭄ᮂᮡᮦᮧ᮪ᯧᯪ-ᯬᯮ᯲᯳ᰤ-ᰫᰴᰵ᳡ᳲᳳ᳷〮〯ꠣꠤꠧꢀꢁꢴ-ꣃꥒ꥓ꦃꦴꦵꦺꦻꦽ-꧀ꨯꨰꨳꨴꩍꩻꩽꫫꫮꫯꫵꯣꯤꯦꯧꯩꯪ꯬",astral:"�[����-��������-����-�����-������-����-����]|�[�-�����-���-���-��-���-�����������]|�[�-������]|�[������-������]|�[�-�]|�[���-�]"},{name:"Me",alias:"Enclosing_Mark",bmp:"҈҉᪾⃝-⃠⃢-⃤꙰-꙲"},{name:"Mn",alias:"Nonspacing_Mark",bmp:"̀-ͯ҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-ٰٟۖ-ۜ۟-۪ۤۧۨ-ܑۭܰ-݊ަ-ް߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛࣓-ࣣ࣡-ंऺ़ु-ै्॑-ॗॢॣঁ়ু-ৄ্ৢৣ৾ਁਂ਼ੁੂੇੈੋ-੍ੑੰੱੵઁં઼ુ-ૅેૈ્ૢૣૺ-૿ଁ଼ିୁ-ୄ୍ୖୢୣஂீ்ఀఄా-ీె-ైొ-్ౕౖౢౣಁ಼ಿೆೌ್ೢೣഀഁ഻഼ു-ൄ്ൢൣ්ි-ුූัิ-ฺ็-๎ັິ-ູົຼ່-ໍཱ༹༘༙༵༷-ཾྀ-྄྆྇ྍ-ྗྙ-ྼ࿆ိ-ူဲ-့္်ွှၘၙၞ-ၠၱ-ၴႂႅႆႍႝ፝-፟ᜒ-᜔ᜲ-᜴ᝒᝓᝲᝳ឴឵ិ-ួំ៉-៓៝᠋-᠍ᢅᢆᢩᤠ-ᤢᤧᤨᤲ᤹-᤻ᨘᨗᨛᩖᩘ-ᩞ᩠ᩢᩥ-ᩬᩳ-᩿᩼᪰-᪽ᬀ-ᬃ᬴ᬶ-ᬺᬼᭂ᭫-᭳ᮀᮁᮢ-ᮥᮨᮩ᮫-ᮭ᯦ᯨᯩᯭᯯ-ᯱᰬ-ᰳᰶ᰷᳐-᳔᳒-᳢᳠-᳨᳭᳴᳸᳹᷀-᷹᷻-᷿⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〭꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠥꠦ꣄ꣅ꣠-꣱ꣿꤦ-꤭ꥇ-ꥑꦀ-ꦂ꦳ꦶ-ꦹꦼꧥꨩ-ꨮꨱꨲꨵꨶꩃꩌꩼꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫬꫭ꫶ꯥꯨ꯭ﬞ︀-️︠-︯",astral:"�[���-�]|�[�-����-��-����]|�[�-��-�]|�[��-��-��-����-��-��-�����-��-��-�������-�������-��-�]|�[�-��-����-�������-��������-�������-���-��-��-�]|�[�-����-��-��-���-��-��-���]|�[�-��-���-��-������-�����-��������]|�[�-��-�]|�[�-�]|�[��]|�[�-��-��-��-��-�]|�[�-��-����-��-�]|�[�-��-��-����-�]|�[�-��-�]|�[�-�]"},{name:"N",alias:"Number",bmp:"0-9²³¹¼-¾٠-٩۰-۹߀-߉०-९০-৯৴-৹੦-੯૦-૯୦-୯୲-୷௦-௲౦-౯౸-౾೦-೯൘-൞൦-൸෦-෯๐-๙໐-໙༠-༳၀-၉႐-႙፩-፼ᛮ-ᛰ០-៩៰-៹᠐-᠙᥆-᥏᧐-᧚᪀-᪉᪐-᪙᭐-᭙᮰-᮹᱀-᱉᱐-᱙⁰⁴-⁹₀-₉⅐-ↂↅ-↉①-⒛⓪-⓿❶-➓⳽〇〡-〩〸-〺㆒-㆕㈠-㈩㉈-㉏㉑-㉟㊀-㊉㊱-㊿꘠-꘩ꛦ-ꛯ꠰-꠵꣐-꣙꤀-꤉꧐-꧙꧰-꧹꩐-꩙꯰-꯹０-９",astral:"�[�-��-����-��-����-�]|�[�-�]|�[�-��-��-��-��-����-��-��-����-��-��-��-��-�]|�[�-��-��-��-��-�]|�[�-��-��-��-��-��-�]|�[�-��-��-��-��-�]|�[�-�]|�[�-��-��-�]|�[�-�]|�[�-��-��-�]|�[�-�]|�[�-��-�]|�[�-�]|�[�-��-�]|�[�-��-��-�]|�[�-�]"},{name:"Nd",alias:"Decimal_Number",bmp:"0-9٠-٩۰-۹߀-߉०-९০-৯੦-੯૦-૯୦-୯௦-௯౦-౯೦-೯൦-൯෦-෯๐-๙໐-໙༠-༩၀-၉႐-႙០-៩᠐-᠙᥆-᥏᧐-᧙᪀-᪉᪐-᪙᭐-᭙᮰-᮹᱀-᱉᱐-᱙꘠-꘩꣐-꣙꤀-꤉꧐-꧙꧰-꧹꩐-꩙꯰-꯹０-９",astral:"�[�-�]|�[�-�]|�[�-��-��-��-��-�]|�[�-��-��-��-��-�]|�[�-�]|�[�-��-��-�]|�[�-��-�]|�[�-�]|�[�-�]"},{name:"Nl",alias:"Letter_Number",bmp:"ᛮ-ᛰⅠ-ↂↅ-ↈ〇〡-〩〸-〺ꛦ-ꛯ",astral:"�[�-����-�]|�[�-�]"},{name:"No",alias:"Other_Number",bmp:"²³¹¼-¾৴-৹୲-୷௰-௲౸-౾൘-൞൰-൸༪-༳፩-፼៰-៹᧚⁰⁴-⁹₀-₉⅐-⅟↉①-⒛⓪-⓿❶-➓⳽㆒-㆕㈠-㈩㉈-㉏㉑-㉟㊀-㊉㊱-㊿꠰-꠵",astral:"�[�-��-����-��-�]|�[�-��-��-��-��-����-��-��-����-��-��-��-��-�]|�[�-��-��-��-�]|�[�-��-�]|�[��]|�[�-�]|�[�-�]|�[�-�]|�[�-�]|�[�-��-�]|�[�-�]|�[�-��-��-�]|�[�-�]"},{name:"P",alias:"Punctuation",bmp:"!-#%-\\*,-\\/:;\\?@\\[-\\]_\\{\\}¡§«¶·»¿;·՚-՟։֊־׀׃׆׳״؉؊،؍؛؞؟٪-٭۔܀-܍߷-߹࠰-࠾࡞।॥॰৽੶૰಄෴๏๚๛༄-༒༔༺-༽྅࿐-࿔࿙࿚၊-၏჻፠-፨᐀᙭᙮᚛᚜᛫-᛭᜵᜶។-៖៘-៚᠀-᠊᥄᥅᨞᨟᪠-᪦᪨-᪭᭚-᭠᯼-᯿᰻-᰿᱾᱿᳀-᳇᳓‐-‧‰-⁃⁅-⁑⁓-⁞⁽⁾₍₎⌈-⌋〈〉❨-❵⟅⟆⟦-⟯⦃-⦘⧘-⧛⧼⧽⳹-⳼⳾⳿⵰⸀-⸮⸰-⹎、-〃〈-】〔-〟〰〽゠・꓾꓿꘍-꘏꙳꙾꛲-꛷꡴-꡷꣎꣏꣸-꣺꣼꤮꤯꥟꧁-꧍꧞꧟꩜-꩟꫞꫟꫰꫱꯫﴾﴿︐-︙︰-﹒﹔-﹡﹣﹨﹪﹫！-＃％-＊，-／：；？＠［-］＿｛｝｟-･",astral:"�[�-���]|𐕯|�[����-���-��-��-�]|�[�-�]|�[�-����-��-����-����-��-��]|�[�-�����-��-��-��-�]|�[��-��-��-�]|�[�-�����]|�[�-�]|�[����-��]|�[�-�]|𛲟|�[�-�]|�[��]"},{name:"Pc",alias:"Connector_Punctuation",bmp:"_‿⁀⁔︳︴﹍-﹏＿"},{name:"Pd",alias:"Dash_Punctuation",bmp:"\\-֊־᐀᠆‐-―⸗⸚⸺⸻⹀〜〰゠︱︲﹘﹣－"},{name:"Pe",alias:"Close_Punctuation",bmp:"\\)\\]\\}༻༽᚜⁆⁾₎⌉⌋〉❩❫❭❯❱❳❵⟆⟧⟩⟫⟭⟯⦄⦆⦈⦊⦌⦎⦐⦒⦔⦖⦘⧙⧛⧽⸣⸥⸧⸩〉》」』】〕〗〙〛〞〟﴾︘︶︸︺︼︾﹀﹂﹄﹈﹚﹜﹞）］｝｠｣"},{name:"Pf",alias:"Final_Punctuation",bmp:"»’”›⸃⸅⸊⸍⸝⸡"},{name:"Pi",alias:"Initial_Punctuation",bmp:"«‘‛“‟‹⸂⸄⸉⸌⸜⸠"},{name:"Po",alias:"Other_Punctuation",bmp:"!-#%-'\\*,\\.\\/:;\\?@\\¡§¶·¿;·՚-՟։׀׃׆׳״؉؊،؍؛؞؟٪-٭۔܀-܍߷-߹࠰-࠾࡞।॥॰৽੶૰಄෴๏๚๛༄-༒༔྅࿐-࿔࿙࿚၊-၏჻፠-፨᙭᙮᛫-᛭᜵᜶។-៖៘-៚᠀-᠅᠇-᠊᥄᥅᨞᨟᪠-᪦᪨-᪭᭚-᭠᯼-᯿᰻-᰿᱾᱿᳀-᳇᳓‖‗†-‧‰-‸※-‾⁁-⁃⁇-⁑⁓⁕-⁞⳹-⳼⳾⳿⵰⸀⸁⸆-⸈⸋⸎-⸖⸘⸙⸛⸞⸟⸪-⸮⸰-⸹⸼-⸿⹁⹃-⹎、-〃〽・꓾꓿꘍-꘏꙳꙾꛲-꛷꡴-꡷꣎꣏꣸-꣺꣼꤮꤯꥟꧁-꧍꧞꧟꩜-꩟꫞꫟꫰꫱꯫︐-︖︙︰﹅﹆﹉-﹌﹐-﹒﹔-﹗﹟-﹡﹨﹪﹫！-＃％-＇＊，．／：；？＠＼｡､･",astral:"�[�-���]|𐕯|�[����-���-��-��-�]|�[�-�]|�[�-����-��-����-����-��-��]|�[�-�����-��-��-��-�]|�[��-��-��-�]|�[�-�����]|�[�-�]|�[����-��]|�[�-�]|𛲟|�[�-�]|�[��]"},{name:"Ps",alias:"Open_Punctuation",bmp:"\\(\\[\\{༺༼᚛‚„⁅⁽₍⌈⌊〈❨❪❬❮❰❲❴⟅⟦⟨⟪⟬⟮⦃⦅⦇⦉⦋⦍⦏⦑⦓⦕⦗⧘⧚⧼⸢⸤⸦⸨⹂〈《「『【〔〖〘〚〝﴿︗︵︷︹︻︽︿﹁﹃﹇﹙﹛﹝（［｛｟｢"},{name:"S",alias:"Symbol",bmp:"\\$\\+<->\\^`\\|~¢-¦¨©¬®-±´¸×÷˂-˅˒-˟˥-˫˭˯-˿͵΄΅϶҂֍-֏؆-؈؋؎؏۞۩۽۾߶߾߿৲৳৺৻૱୰௳-௺౿൏൹฿༁-༃༓༕-༗༚-༟༴༶༸྾-࿅࿇-࿌࿎࿏࿕-࿘႞႟᎐-᎙៛᥀᧞-᧿᭡-᭪᭴-᭼᾽᾿-῁῍-῏῝-῟῭-`´῾⁄⁒⁺-⁼₊-₌₠-₿℀℁℃-℆℈℉℔№-℘℞-℣℥℧℩℮℺℻⅀-⅄⅊-⅍⅏↊↋←-⌇⌌-⌨⌫-␦⑀-⑊⒜-ⓩ─-❧➔-⟄⟇-⟥⟰-⦂⦙-⧗⧜-⧻⧾-⭳⭶-⮕⮘-⯈⯊-⯾⳥-⳪⺀-⺙⺛-⻳⼀-⿕⿰-⿻〄〒〓〠〶〷〾〿゛゜㆐㆑㆖-㆟㇀-㇣㈀-㈞㈪-㉇㉐㉠-㉿㊊-㊰㋀-㋾㌀-㏿䷀-䷿꒐-꓆꜀-꜖꜠꜡꞉꞊꠨-꠫꠶-꠹꩷-꩹꭛﬩﮲-﯁﷼﷽﹢﹤-﹦﹩＄＋＜-＞＾｀｜～￠-￦￨-￮￼�",astral:"�[�-��-��-��-���-�]|�[���]|𑜿|�[�-��]|𛲜|�[�-��-��-��-����-��-��-���-�]|�[����������]|�[�-��-��-��-���]|�[����]|�[�-��-��-��-��-��-��-��-��-��-��-����-��-�]|�[�-��-��-��-��-�]|�[�-��-��-��-��-��-��-��-��-���-��-��-��-��-�]"},{name:"Sc",alias:"Currency_Symbol",bmp:"\\$¢-¥֏؋߾߿৲৳৻૱௹฿៛₠-₿꠸﷼﹩＄￠￡￥￦",astral:"𞲰"},{name:"Sk",alias:"Modifier_Symbol",bmp:"\\^`¨¯´¸˂-˅˒-˟˥-˫˭˯-˿͵΄΅᾽᾿-῁῍-῏῝-῟῭-`´῾゛゜꜀-꜖꜠꜡꞉꞊꭛﮲-﯁＾｀￣",astral:"�[�-�]"},{name:"Sm",alias:"Math_Symbol",bmp:"\\+<->\\|~¬±×÷϶؆-؈⁄⁒⁺-⁼₊-₌℘⅀-⅄⅋←-↔↚↛↠↣↦↮⇎⇏⇒⇔⇴-⋿⌠⌡⍼⎛-⎳⏜-⏡▷◁◸-◿♯⟀-⟄⟇-⟥⟰-⟿⤀-⦂⦙-⧗⧜-⧻⧾-⫿⬰-⭄⭇-⭌﬩﹢﹤-﹦＋＜-＞｜～￢￩-￬",astral:"�[����������]|�[��]"},{name:"So",alias:"Other_Symbol",bmp:"¦©®°҂֍֎؎؏۞۩۽۾߶৺୰௳-௸௺౿൏൹༁-༃༓༕-༗༚-༟༴༶༸྾-࿅࿇-࿌࿎࿏࿕-࿘႞႟᎐-᎙᥀᧞-᧿᭡-᭪᭴-᭼℀℁℃-℆℈℉℔№℗℞-℣℥℧℩℮℺℻⅊⅌⅍⅏↊↋↕-↙↜-↟↡↢↤↥↧-↭↯-⇍⇐⇑⇓⇕-⇳⌀-⌇⌌-⌟⌢-⌨⌫-⍻⍽-⎚⎴-⏛⏢-␦⑀-⑊⒜-ⓩ─-▶▸-◀◂-◷☀-♮♰-❧➔-➿⠀-⣿⬀-⬯⭅⭆⭍-⭳⭶-⮕⮘-⯈⯊-⯾⳥-⳪⺀-⺙⺛-⻳⼀-⿕⿰-⿻〄〒〓〠〶〷〾〿㆐㆑㆖-㆟㇀-㇣㈀-㈞㈪-㉇㉐㉠-㉿㊊-㊰㋀-㋾㌀-㏿䷀-䷿꒐-꓆꠨-꠫꠶꠷꠹꩷-꩹﷽￤￨￭￮￼�",astral:"�[�-��-��-��-���-�]|�[���]|𑜿|�[�-��]|𛲜|�[�-��-��-��-����-��-��-���-�]|�[�-��-��-��-���]|𞲬|�[�-��-��-��-��-��-��-��-��-��-��-����-��-�]|�[�-��-��-��-��-�]|�[�-��-��-��-��-��-��-��-��-���-��-��-��-��-�]"},{name:"Z",alias:"Separator",bmp:"    - \u2028\u2029  　"},{name:"Zl",alias:"Line_Separator",bmp:"\u2028"},{name:"Zp",alias:"Paragraph_Separator",bmp:"\u2029"},{name:"Zs",alias:"Space_Separator",bmp:"    -   　"}]},function(n,t,i){"use strict";var f=i(37),r,u;Object.defineProperty(t,"__esModule",{value:!0});t.default=void 0;r=f(i(445));u=function(n){if(!n.addUnicodeData)throw new ReferenceError("Unicode Base must be loaded before Unicode Properties");var t=r.default;t.push({name:"Assigned",inverseOf:"Cn"});n.addUnicodeData(t)};t.default=u;n.exports=t.default},function(n){n.exports=[{name:"ASCII",bmp:"\0-"},{name:"Alphabetic",bmp:"A-Za-zªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͅͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈְ-ׇֽֿׁׂׅׄא-תׯ-ײؐ-ؚؠ-ٗٙ-ٟٮ-ۓە-ۜۡ-ۭۨ-ۯۺ-ۼۿܐ-ܿݍ-ޱߊ-ߪߴߵߺࠀ-ࠗࠚ-ࠬࡀ-ࡘࡠ-ࡪࢠ-ࢴࢶ-ࢽࣔ-ࣣࣟ-ࣰࣩ-ऻऽ-ौॎ-ॐॕ-ॣॱ-ঃঅ-ঌএঐও-নপ-রলশ-হঽ-ৄেৈোৌৎৗড়ঢ়য়-ৣৰৱৼਁ-ਃਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਾ-ੂੇੈੋੌੑਖ਼-ੜਫ਼ੰ-ੵઁ-ઃઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽ-ૅે-ૉોૌૐૠ-ૣૹ-ૼଁ-ଃଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽ-ୄେୈୋୌୖୗଡ଼ଢ଼ୟ-ୣୱஂஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹா-ூெ-ைொ-ௌௐௗఀ-ఃఅ-ఌఎ-ఐఒ-నప-హఽ-ౄె-ైొ-ౌౕౖౘ-ౚౠ-ౣಀ-ಃಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽ-ೄೆ-ೈೊ-ೌೕೖೞೠ-ೣೱೲഀ-ഃഅ-ഌഎ-ഐഒ-ഺഽ-ൄെ-ൈൊ-ൌൎൔ-ൗൟ-ൣൺ-ൿංඃඅ-ඖක-නඳ-රලව-ෆා-ුූෘ-ෟෲෳก-ฺเ-ๆํກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ູົ-ຽເ-ໄໆໍໜ-ໟༀཀ-ཇཉ-ཬཱ-ཱྀྈ-ྗྙ-ྼက-ံးျ-ဿၐ-ၢၥ-ၨၮ-ႆႎႜႝႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚ፟ᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜌᜎ-ᜓᜠ-ᜳᝀ-ᝓᝠ-ᝬᝮ-ᝰᝲᝳក-ឳា-ៈៗៜᠠ-ᡸᢀ-ᢪᢰ-ᣵᤀ-ᤞᤠ-ᤫᤰ-ᤸᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨛᨠ-ᩞᩡ-ᩴᪧᬀ-ᬳᬵ-ᭃᭅ-ᭋᮀ-ᮩᮬ-ᮯᮺ-ᯥᯧ-ᯱᰀ-ᰵᱍ-ᱏᱚ-ᱽᲀ-ᲈᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᴀ-ᶿᷧ-ᷴḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⒶ-ⓩⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⷠ-ⷿⸯ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿯ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙴ-ꙻꙿ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞹꟷ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠧꡀ-ꡳꢀ-ꣃꣅꣲ-ꣷꣻꣽꣾꤊ-ꤪꤰ-ꥒꥠ-ꥼꦀ-ꦲꦴ-ꦿꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨶꩀ-ꩍꩠ-ꩶꩺꩾ-ꪾꫀꫂꫛ-ꫝꫠ-ꫯꫲ-ꫵꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭥꭰ-ꯪ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ﬀ-ﬆﬓ-ﬗיִ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼＡ-Ｚａ-ｚｦ-ﾾￂ-ￇￊ-ￏￒ-ￗￚ-ￜ",astral:"�[�-��-��-����-��-��-��-��-��-��-��-��-��-��-��-��-�]|�[�-��-��-��-��-��-��-��-�]|�[�-���-�����-��-��-��-����-��-��-����-����-��-��-��-��-��-��-��-��-��-��-�]|�[�-��-��-��-��-���-�]|�[�-��-��-��-��-��-���-��-����-��-����-���-��-��-��-��-��-����-��-����-��-��������-�]|�[�-��-��-��-�����-��-��-��-����-��-��-�]|�[�-��-���-��-��-��-���-�]|�[�-��-��-���-��-��-��-����-�����-�����-����-����-���-�]|�[�-�]|�[�-��-�]|[��-��-��-��-��-�][�-�]|�[�-�]|�[�-�]|�[�-��-��-��-��-��-��-�]|�[�-��-��-��-���]|�[�-�]|�[�-�]|�[�-��-�]|�[�-��-��-��-��]|�[�-��-�������-��-���-��-��-��-��-��-��-��-���-��-��-��-��-��-��-��-��-��-��-��-��-�]|�[�-��-��-����-�]|�[�-��-��]|�[�-��-������-��-��������-�������������-��-��-��-���-��-��-��-��-�]|�[�-��-��-�]|�[�-��-�]|�[�-��-�]|�[�-��-�]|�[�-��-�]|�[�-�]|�[�-�]"},{name:"Any",isBmpLast:!0,bmp:"\0-￿",astral:"[�-�][�-�]"},{name:"Default_Ignorable_Code_Point",bmp:"­͏؜ᅟᅠ឴឵᠋-᠎​-‏‪-‮⁠-⁯ㅤ︀-️﻿ﾠ￰-￸",astral:"�[�-�]|�[�-�]|[�-�][�-�]"},{name:"Lowercase",bmp:"a-zªµºß-öø-ÿāăąćĉċčďđēĕėęěĝğġģĥħĩīĭįıĳĵķĸĺļľŀłńņňŉŋōŏőœŕŗřśŝşšţťŧũūŭůűųŵŷźżž-ƀƃƅƈƌƍƒƕƙ-ƛƞơƣƥƨƪƫƭưƴƶƹƺƽ-ƿǆǉǌǎǐǒǔǖǘǚǜǝǟǡǣǥǧǩǫǭǯǰǳǵǹǻǽǿȁȃȅȇȉȋȍȏȑȓȕȗșțȝȟȡȣȥȧȩȫȭȯȱȳ-ȹȼȿɀɂɇɉɋɍɏ-ʓʕ-ʸˀˁˠ-ˤͅͱͳͷͺ-ͽΐά-ώϐϑϕ-ϗϙϛϝϟϡϣϥϧϩϫϭϯ-ϳϵϸϻϼа-џѡѣѥѧѩѫѭѯѱѳѵѷѹѻѽѿҁҋҍҏґғҕҗҙқҝҟҡңҥҧҩҫҭүұҳҵҷҹһҽҿӂӄӆӈӊӌӎӏӑӓӕӗәӛӝӟӡӣӥӧөӫӭӯӱӳӵӷӹӻӽӿԁԃԅԇԉԋԍԏԑԓԕԗԙԛԝԟԡԣԥԧԩԫԭԯՠ-ֈა-ჺჽ-ჿᏸ-ᏽᲀ-ᲈᴀ-ᶿḁḃḅḇḉḋḍḏḑḓḕḗḙḛḝḟḡḣḥḧḩḫḭḯḱḳḵḷḹḻḽḿṁṃṅṇṉṋṍṏṑṓṕṗṙṛṝṟṡṣṥṧṩṫṭṯṱṳṵṷṹṻṽṿẁẃẅẇẉẋẍẏẑẓẕ-ẝẟạảấầẩẫậắằẳẵặẹẻẽếềểễệỉịọỏốồổỗộớờởỡợụủứừửữựỳỵỷỹỻỽỿ-ἇἐ-ἕἠ-ἧἰ-ἷὀ-ὅὐ-ὗὠ-ὧὰ-ώᾀ-ᾇᾐ-ᾗᾠ-ᾧᾰ-ᾴᾶᾷιῂ-ῄῆῇῐ-ΐῖῗῠ-ῧῲ-ῴῶῷⁱⁿₐ-ₜℊℎℏℓℯℴℹℼℽⅆ-ⅉⅎⅰ-ⅿↄⓐ-ⓩⰰ-ⱞⱡⱥⱦⱨⱪⱬⱱⱳⱴⱶ-ⱽⲁⲃⲅⲇⲉⲋⲍⲏⲑⲓⲕⲗⲙⲛⲝⲟⲡⲣⲥⲧⲩⲫⲭⲯⲱⲳⲵⲷⲹⲻⲽⲿⳁⳃⳅⳇⳉⳋⳍⳏⳑⳓⳕⳗⳙⳛⳝⳟⳡⳣⳤⳬⳮⳳⴀ-ⴥⴧⴭꙁꙃꙅꙇꙉꙋꙍꙏꙑꙓꙕꙗꙙꙛꙝꙟꙡꙣꙥꙧꙩꙫꙭꚁꚃꚅꚇꚉꚋꚍꚏꚑꚓꚕꚗꚙꚛ-ꚝꜣꜥꜧꜩꜫꜭꜯ-ꜱꜳꜵꜷꜹꜻꜽꜿꝁꝃꝅꝇꝉꝋꝍꝏꝑꝓꝕꝗꝙꝛꝝꝟꝡꝣꝥꝧꝩꝫꝭꝯ-ꝸꝺꝼꝿꞁꞃꞅꞇꞌꞎꞑꞓ-ꞕꞗꞙꞛꞝꞟꞡꞣꞥꞧꞩꞯꞵꞷꞹꟸ-ꟺꬰ-ꭚꭜ-ꭥꭰ-ꮿﬀ-ﬆﬓ-ﬗａ-ｚ",astral:"�[�-��-�]|�[�-�]|�[�-�]|�[�-�]|�[�-��-��-��-��-���-��-��-��-��-��-��-��-��-��-��-��-��-��-��-��-��-��-��-��-��-��]|�[�-�]"},{name:"Noncharacter_Code_Point",bmp:"﷐-﷯￾￿",astral:"[����������������][��]"},{name:"Uppercase",bmp:"A-ZÀ-ÖØ-ÞĀĂĄĆĈĊČĎĐĒĔĖĘĚĜĞĠĢĤĦĨĪĬĮİĲĴĶĹĻĽĿŁŃŅŇŊŌŎŐŒŔŖŘŚŜŞŠŢŤŦŨŪŬŮŰŲŴŶŸŹŻŽƁƂƄƆƇƉ-ƋƎ-ƑƓƔƖ-ƘƜƝƟƠƢƤƦƧƩƬƮƯƱ-ƳƵƷƸƼǄǇǊǍǏǑǓǕǗǙǛǞǠǢǤǦǨǪǬǮǱǴǶ-ǸǺǼǾȀȂȄȆȈȊȌȎȐȒȔȖȘȚȜȞȠȢȤȦȨȪȬȮȰȲȺȻȽȾɁɃ-ɆɈɊɌɎͰͲͶͿΆΈ-ΊΌΎΏΑ-ΡΣ-ΫϏϒ-ϔϘϚϜϞϠϢϤϦϨϪϬϮϴϷϹϺϽ-ЯѠѢѤѦѨѪѬѮѰѲѴѶѸѺѼѾҀҊҌҎҐҒҔҖҘҚҜҞҠҢҤҦҨҪҬҮҰҲҴҶҸҺҼҾӀӁӃӅӇӉӋӍӐӒӔӖӘӚӜӞӠӢӤӦӨӪӬӮӰӲӴӶӸӺӼӾԀԂԄԆԈԊԌԎԐԒԔԖԘԚԜԞԠԢԤԦԨԪԬԮԱ-ՖႠ-ჅჇჍᎠ-ᏵᲐ-ᲺᲽ-ᲿḀḂḄḆḈḊḌḎḐḒḔḖḘḚḜḞḠḢḤḦḨḪḬḮḰḲḴḶḸḺḼḾṀṂṄṆṈṊṌṎṐṒṔṖṘṚṜṞṠṢṤṦṨṪṬṮṰṲṴṶṸṺṼṾẀẂẄẆẈẊẌẎẐẒẔẞẠẢẤẦẨẪẬẮẰẲẴẶẸẺẼẾỀỂỄỆỈỊỌỎỐỒỔỖỘỚỜỞỠỢỤỦỨỪỬỮỰỲỴỶỸỺỼỾἈ-ἏἘ-ἝἨ-ἯἸ-ἿὈ-ὍὙὛὝὟὨ-ὯᾸ-ΆῈ-ΉῘ-ΊῨ-ῬῸ-Ώℂℇℋ-ℍℐ-ℒℕℙ-ℝℤΩℨK-ℭℰ-ℳℾℿⅅⅠ-ⅯↃⒶ-ⓏⰀ-ⰮⱠⱢ-ⱤⱧⱩⱫⱭ-ⱰⱲⱵⱾ-ⲀⲂⲄⲆⲈⲊⲌⲎⲐⲒⲔⲖⲘⲚⲜⲞⲠⲢⲤⲦⲨⲪⲬⲮⲰⲲⲴⲶⲸⲺⲼⲾⳀⳂⳄⳆⳈⳊⳌⳎⳐⳒⳔⳖⳘⳚⳜⳞⳠⳢⳫⳭⳲꙀꙂꙄꙆꙈꙊꙌꙎꙐꙒꙔꙖꙘꙚꙜꙞꙠꙢꙤꙦꙨꙪꙬꚀꚂꚄꚆꚈꚊꚌꚎꚐꚒꚔꚖꚘꚚꜢꜤꜦꜨꜪꜬꜮꜲꜴꜶꜸꜺꜼꜾꝀꝂꝄꝆꝈꝊꝌꝎꝐꝒꝔꝖꝘꝚꝜꝞꝠꝢꝤꝦꝨꝪꝬꝮꝹꝻꝽꝾꞀꞂꞄꞆꞋꞍꞐꞒꞖꞘꞚꞜꞞꞠꞢꞤꞦꞨꞪ-ꞮꞰ-ꞴꞶꞸＡ-Ｚ",astral:"�[�-��-�]|�[�-�]|�[�-�]|�[�-�]|�[�-��-��-��������-��-��-����-��-��-����-��-���-��-��-��-��-��-��-��-��-��-��-��-��]|�[�-�]|�[�-��-��-�]"},{name:"White_Space",bmp:"\t-\r    - \u2028\u2029  　"}]},function(n,t,i){"use strict";var f=i(37),r,u;Object.defineProperty(t,"__esModule",{value:!0});t.default=void 0;r=f(i(447));u=function(n){if(!n.addUnicodeData)throw new ReferenceError("Unicode Base must be loaded before Unicode Scripts");n.addUnicodeData(r.default)};t.default=u;n.exports=t.default},function(n){n.exports=[{name:"Adlam",astral:"�[�-��-���]"},{name:"Ahom",astral:"�[�-��-��-�]"},{name:"Anatolian_Hieroglyphs",astral:"�[�-�]"},{name:"Arabic",bmp:"؀-؄؆-؋؍-ؚ؜؞ؠ-ؿف-يٖ-ٯٱ-ۜ۞-ۿݐ-ݿࢠ-ࢴࢶ-ࢽ࣓-ࣣ࣡-ࣿﭐ-﯁ﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-﷽ﹰ-ﹴﹶ-ﻼ",astral:"�[�-�]|�[�-��-������-��-��������-�������������-��-��-��-���-��-��-��-��-���]"},{name:"Armenian",bmp:"Ա-Ֆՙ-ֈ֊֍-֏ﬓ-ﬗ"},{name:"Avestan",astral:"�[�-��-�]"},{name:"Balinese",bmp:"ᬀ-ᭋ᭐-᭼"},{name:"Bamum",bmp:"ꚠ-꛷",astral:"�[�-�]"},{name:"Bassa_Vah",astral:"�[�-��-�]"},{name:"Batak",bmp:"ᯀ-᯳᯼-᯿"},{name:"Bengali",bmp:"ঀ-ঃঅ-ঌএঐও-নপ-রলশ-হ়-ৄেৈো-ৎৗড়ঢ়য়-ৣ০-৾"},{name:"Bhaiksuki",astral:"�[�-��-��-��-�]"},{name:"Bopomofo",bmp:"˪˫ㄅ-ㄯㆠ-ㆺ"},{name:"Brahmi",astral:"�[�-��-��]"},{name:"Braille",bmp:"⠀-⣿"},{name:"Buginese",bmp:"ᨀ-ᨛ᨞᨟"},{name:"Buhid",bmp:"ᝀ-ᝓ"},{name:"Canadian_Aboriginal",bmp:"᐀-ᙿᢰ-ᣵ"},{name:"Carian",astral:"�[�-�]"},{name:"Caucasian_Albanian",astral:"�[�-��]"},{name:"Chakma",astral:"�[�-��-�]"},{name:"Cham",bmp:"ꨀ-ꨶꩀ-ꩍ꩐-꩙꩜-꩟"},{name:"Cherokee",bmp:"Ꭰ-Ᏽᏸ-ᏽꭰ-ꮿ"},{name:"Common",bmp:"\0-@\\[-`\\{-©«-¹»-¿×÷ʹ-˟˥-˩ˬ-˿ʹ;΅·։؅،؛؟ـ۝࣢।॥฿࿕-࿘჻᛫-᛭᜵᜶᠂᠃᠅᳓᳡ᳩ-ᳬᳮ-ᳳᳵ-᳷ -​‎-⁤⁦-⁰⁴-⁾₀-₎₠-₿℀-℥℧-℩ℬ-ℱℳ-⅍⅏-⅟↉-↋←-␦⑀-⑊①-⟿⤀-⭳⭶-⮕⮘-⯈⯊-⯾⸀-⹎⿰-⿻　-〄〆〈-〠〰-〷〼-〿゛゜゠・ー㆐-㆟㇀-㇣㈠-㉟㉿-㋏㍘-㏿䷀-䷿꜀-꜡ꞈ-꞊꠰-꠹꤮ꧏ꭛﴾﴿︐-︙︰-﹒﹔-﹦﹨-﹫\ufeff！-＠［-｀｛-･ｰﾞﾟ￠-￦￨-￮￹-�",astral:"�[�-��-��-��-��-��-�]|�[�-�]|�[�-��-��-��-����-��-��-��-��-�]|�[�-��-�������-��-���-��-��-��-��-��-��-��-���-��-��-��-�]|�[�-�]|�[�-��-��-��-��-��-��-��-��-��-����-��-����-��-�]|�[�-��-��-��-��-�]|�[�-��-��-��-��-��-��-��-��-���-��-��-��-��-�]|�[��-�]"},{name:"Coptic",bmp:"Ϣ-ϯⲀ-ⳳ⳹-⳿"},{name:"Cuneiform",astral:"�[�-�]|�[�-��-��-�]"},{name:"Cypriot",astral:"�[�-���-�����]"},{name:"Cyrillic",bmp:"Ѐ-҄҇-ԯᲀ-ᲈᴫᵸⷠ-ⷿꙀ-ꚟ︮︯"},{name:"Deseret",astral:"�[�-�]"},{name:"Devanagari",bmp:"ऀ-ॐ॓-ॣ०-ॿ꣠-ꣿ"},{name:"Dogra",astral:"�[�-�]"},{name:"Duployan",astral:"�[�-��-��-��-��-�]"},{name:"Egyptian_Hieroglyphs",astral:"�[�-�]|�[�-�]"},{name:"Elbasan",astral:"�[�-�]"},{name:"Ethiopic",bmp:"ሀ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚ፝-፼ᎀ-᎙ⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮ"},{name:"Georgian",bmp:"Ⴀ-ჅჇჍა-ჺჼ-ჿᲐ-ᲺᲽ-Ჿⴀ-ⴥⴧⴭ"},{name:"Glagolitic",bmp:"Ⰰ-Ⱞⰰ-ⱞ",astral:"�[�-��-��-����-�]"},{name:"Gothic",astral:"�[�-�]"},{name:"Grantha",astral:"�[�-��-����-��-����-��-����-����-��-��-�]"},{name:"Greek",bmp:"Ͱ-ͳ͵-ͷͺ-ͽͿ΄ΆΈ-ΊΌΎ-ΡΣ-ϡϰ-Ͽᴦ-ᴪᵝ-ᵡᵦ-ᵪᶿἀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ῄῆ-ΐῖ-Ί῝-`ῲ-ῴῶ-῾Ωꭥ",astral:"�[�-��]|�[�-�]"},{name:"Gujarati",bmp:"ઁ-ઃઅ-ઍએ-ઑઓ-નપ-રલળવ-હ઼-ૅે-ૉો-્ૐૠ-ૣ૦-૱ૹ-૿"},{name:"Gunjala_Gondi",astral:"�[�-����-����-��-�]"},{name:"Gurmukhi",bmp:"ਁ-ਃਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹ਼ਾ-ੂੇੈੋ-੍ੑਖ਼-ੜਫ਼੦-੶"},{name:"Han",bmp:"⺀-⺙⺛-⻳⼀-⿕々〇〡-〩〸-〻㐀-䶵一-鿯豈-舘並-龎",astral:"[�-��-��-��-�][�-�]|�[�-��-�]|�[�-��-�]|�[�-��-�]|�[�-��-�]|�[�-�]|�[�-�]"},{name:"Hangul",bmp:"ᄀ-ᇿ〮〯ㄱ-ㆎ㈀-㈞㉠-㉾ꥠ-ꥼ가-힣ힰ-ퟆퟋ-ퟻﾠ-ﾾￂ-ￇￊ-ￏￒ-ￗￚ-ￜ"},{name:"Hanifi_Rohingya",astral:"�[�-��-�]"},{name:"Hanunoo",bmp:"ᜠ-᜴"},{name:"Hatran",astral:"�[�-����-�]"},{name:"Hebrew",bmp:"֑-ׇא-תׯ-״יִ-זּטּ-לּמּנּסּףּפּצּ-ﭏ"},{name:"Hiragana",bmp:"ぁ-ゖゝ-ゟ",astral:"�[�-�]|🈀"},{name:"Imperial_Aramaic",astral:"�[�-��-�]"},{name:"Inherited",bmp:"̀-ًͯ҅҆-ٰٕ॒॑᪰-᪾᳐-᳔᳒-᳢᳠-᳨᳭᳴᳸᳹᷀-᷹᷻-᷿‌‍⃐-〪⃰-゙゚〭︀-️︠-︭",astral:"�[��]|𑌻|�[�-��-��-��-�]|�[�-�]"},{name:"Inscriptional_Pahlavi",astral:"�[�-��-�]"},{name:"Inscriptional_Parthian",astral:"�[�-��-�]"},{name:"Javanese",bmp:"ꦀ-꧍꧐-꧙꧞꧟"},{name:"Kaithi",astral:"�[�-��]"},{name:"Kannada",bmp:"ಀ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹ಼-ೄೆ-ೈೊ-್ೕೖೞೠ-ೣ೦-೯ೱೲ"},{name:"Katakana",bmp:"ァ-ヺヽ-ヿㇰ-ㇿ㋐-㋾㌀-㍗ｦ-ｯｱ-ﾝ",astral:"𛀀"},{name:"Kayah_Li",bmp:"꤀-꤭꤯"},{name:"Kharoshthi",astral:"�[�-����-��-��-��-��-��-�]"},{name:"Khmer",bmp:"ក-៝០-៩៰-៹᧠-᧿"},{name:"Khojki",astral:"�[�-��-�]"},{name:"Khudawadi",astral:"�[�-��-�]"},{name:"Lao",bmp:"ກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ູົ-ຽເ-ໄໆ່-ໍ໐-໙ໜ-ໟ"},{name:"Latin",bmp:"A-Za-zªºÀ-ÖØ-öø-ʸˠ-ˤᴀ-ᴥᴬ-ᵜᵢ-ᵥᵫ-ᵷᵹ-ᶾḀ-ỿⁱⁿₐ-ₜKÅℲⅎⅠ-ↈⱠ-ⱿꜢ-ꞇꞋ-ꞹꟷ-ꟿꬰ-ꭚꭜ-ꭤﬀ-ﬆＡ-Ｚａ-ｚ"},{name:"Lepcha",bmp:"ᰀ-᰷᰻-᱉ᱍ-ᱏ"},{name:"Limbu",bmp:"ᤀ-ᤞᤠ-ᤫᤰ-᤻᥀᥄-᥏"},{name:"Linear_A",astral:"�[�-��-��-�]"},{name:"Linear_B",astral:"�[�-��-��-����-��-��-�]"},{name:"Lisu",bmp:"ꓐ-꓿"},{name:"Lycian",astral:"�[�-�]"},{name:"Lydian",astral:"�[�-��]"},{name:"Mahajani",astral:"�[�-�]"},{name:"Makasar",astral:"�[�-�]"},{name:"Malayalam",bmp:"ഀ-ഃഅ-ഌഎ-ഐഒ-ൄെ-ൈൊ-൏ൔ-ൣ൦-ൿ"},{name:"Mandaic",bmp:"ࡀ-࡛࡞"},{name:"Manichaean",astral:"�[�-��-�]"},{name:"Marchen",astral:"�[�-��-��-�]"},{name:"Masaram_Gondi",astral:"�[�-����-�����-��-�]"},{name:"Medefaidrin",astral:"�[�-�]"},{name:"Meetei_Mayek",bmp:"ꫠ-꫶ꯀ-꯭꯰-꯹"},{name:"Mende_Kikakui",astral:"�[�-��-�]"},{name:"Meroitic_Cursive",astral:"�[�-��-��-�]"},{name:"Meroitic_Hieroglyphs",astral:"�[�-�]"},{name:"Miao",astral:"�[�-��-��-�]"},{name:"Modi",astral:"�[�-��-�]"},{name:"Mongolian",bmp:"᠀᠁᠄᠆-᠎᠐-᠙ᠠ-ᡸᢀ-ᢪ",astral:"�[�-�]"},{name:"Mro",astral:"�[�-��-���]"},{name:"Multani",astral:"�[�-���-��-��-�]"},{name:"Myanmar",bmp:"က-႟ꧠ-ꧾꩠ-ꩿ"},{name:"Nabataean",astral:"�[�-��-�]"},{name:"New_Tai_Lue",bmp:"ᦀ-ᦫᦰ-ᧉ᧐-᧚᧞᧟"},{name:"Newa",astral:"�[�-����]"},{name:"Nko",bmp:"߀-ߺ߽-߿"},{name:"Nushu",astral:"𖿡|�[�-�]"},{name:"Ogham",bmp:" -᚜"},{name:"Ol_Chiki",bmp:"᱐-᱿"},{name:"Old_Hungarian",astral:"�[�-��-��-�]"},{name:"Old_Italic",astral:"�[�-��-�]"},{name:"Old_North_Arabian",astral:"�[�-�]"},{name:"Old_Permic",astral:"�[�-�]"},{name:"Old_Persian",astral:"�[�-��-�]"},{name:"Old_Sogdian",astral:"�[�-�]"},{name:"Old_South_Arabian",astral:"�[�-�]"},{name:"Old_Turkic",astral:"�[�-�]"},{name:"Oriya",bmp:"ଁ-ଃଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହ଼-ୄେୈୋ-୍ୖୗଡ଼ଢ଼ୟ-ୣ୦-୷"},{name:"Osage",astral:"�[�-��-�]"},{name:"Osmanya",astral:"�[�-��-�]"},{name:"Pahawh_Hmong",astral:"�[�-��-��-��-��-�]"},{name:"Palmyrene",astral:"�[�-�]"},{name:"Pau_Cin_Hau",astral:"�[�-�]"},{name:"Phags_Pa",bmp:"ꡀ-꡷"},{name:"Phoenician",astral:"�[�-��]"},{name:"Psalter_Pahlavi",astral:"�[�-��-��-�]"},{name:"Rejang",bmp:"ꤰ-꥓꥟"},{name:"Runic",bmp:"ᚠ-ᛪᛮ-ᛸ"},{name:"Samaritan",bmp:"ࠀ-࠭࠰-࠾"},{name:"Saurashtra",bmp:"ꢀ-ꣅ꣎-꣙"},{name:"Sharada",astral:"�[�-��-�]"},{name:"Shavian",astral:"�[�-�]"},{name:"Siddham",astral:"�[�-��-�]"},{name:"SignWriting",astral:"�[�-��-��-�]"},{name:"Sinhala",bmp:"ංඃඅ-ඖක-නඳ-රලව-ෆ්ා-ුූෘ-ෟ෦-෯ෲ-෴",astral:"�[�-�]"},{name:"Sogdian",astral:"�[�-�]"},{name:"Sora_Sompeng",astral:"�[�-��-�]"},{name:"Soyombo",astral:"�[�-��-�]"},{name:"Sundanese",bmp:"ᮀ-ᮿ᳀-᳇"},{name:"Syloti_Nagri",bmp:"ꠀ-꠫"},{name:"Syriac",bmp:"܀-܍܏-݊ݍ-ݏࡠ-ࡪ"},{name:"Tagalog",bmp:"ᜀ-ᜌᜎ-᜔"},{name:"Tagbanwa",bmp:"ᝠ-ᝬᝮ-ᝰᝲᝳ"},{name:"Tai_Le",bmp:"ᥐ-ᥭᥰ-ᥴ"},{name:"Tai_Tham",bmp:"ᨠ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪠-᪭"},{name:"Tai_Viet",bmp:"ꪀ-ꫂꫛ-꫟"},{name:"Takri",astral:"�[�-��-�]"},{name:"Tamil",bmp:"ஂஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹா-ூெ-ைொ-்ௐௗ௦-௺"},{name:"Tangut",astral:"𖿠|[�-�][�-�]|�[�-�]|�[�-�]"},{name:"Telugu",bmp:"ఀ-ఌఎ-ఐఒ-నప-హఽ-ౄె-ైొ-్ౕౖౘ-ౚౠ-ౣ౦-౯౸-౿"},{name:"Thaana",bmp:"ހ-ޱ"},{name:"Thai",bmp:"ก-ฺเ-๛"},{name:"Tibetan",bmp:"ༀ-ཇཉ-ཬཱ-ྗྙ-ྼ྾-࿌࿎-࿔࿙࿚"},{name:"Tifinagh",bmp:"ⴰ-ⵧⵯ⵰⵿"},{name:"Tirhuta",astral:"�[�-��-�]"},{name:"Ugaritic",astral:"�[�-��]"},{name:"Vai",bmp:"ꔀ-ꘫ"},{name:"Warang_Citi",astral:"�[�-��]"},{name:"Yi",bmp:"ꀀ-ꒌ꒐-꓆"},{name:"Zanabazar_Square",astral:"�[�-�]"}]},function(n,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=i(0),u=function(){function n(){this.partialQueries=[];this.suggestions=[];this.analyticsLengthLimit=256}return n.prototype.buildCustomDataForPartialQueries=function(){return this.partialQuery=r.last(this.partialQueries),{partialQueries:this.cleanCustomData(this.partialQueries),suggestionRanking:this.suggestionRanking,suggestions:this.cleanCustomData(this.suggestions),partialQuery:this.partialQuery}},n.prototype.cleanCustomData=function(n,t){var r=this;void 0===t&&(t=this.analyticsLengthLimit);var u=this.filterOutConsecutiveValues(n),f=u.map(function(n){return r.removeSemicolons(n)}),e=this.reduceAnalyticsToLengthLimit(f,t),i=e.reverse();return i.join(";").length>=this.analyticsLengthLimit?this.cleanCustomData(i,t-10):i.join(";")},n.prototype.filterOutConsecutiveValues=function(n){return r.compact(r.filter(n,function(n,t,i){return 0===t||n!==i[t-1]}))},n.prototype.removeSemicolons=function(n){return n.replace(/;/g,"")},n.prototype.reduceAnalyticsToLengthLimit=function(n,t){var i=[];return r.reduceRight(n,function(n,r){var u=n+r.length;return u<=t&&i.push(r),u},0),i},n}();t.OmniboxAnalytics=u},function(n,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=i(1),f=i(9),e=i(11),u=i(0),o=i(30),s=function(){function n(){}return n.isAutoLayoutAdjustable=function(n){return"isCurrentlyDisplayed"in n},n.initializeAutoLayoutAdjustment=function(n,t){var i=this,u;(this.autoLayoutAdjustmentComponent.has(n)||this.autoLayoutAdjustmentComponent.set(n,[]),this.autoLayoutAdjustmentComponent.get(n).push(t),this.autoLayoutAdjustmentHandlers.has(n))||(u=function(){return r.$$(n).on(e.QueryEvents.deferredQuerySuccess,function(){var t=i.findColumn(n);i.everyStandardComponentsAreInvisible(n)&&i.columnsDoesNotContainVisibleCustomElement(t)?r.$$(n).addClass("coveo-no-visible-facet"):r.$$(n).removeClass("coveo-no-visible-facet")})},u(),this.autoLayoutAdjustmentHandlers.set(n,u))},n.columnsDoesNotContainVisibleCustomElement=function(n){var f=this,t,i;return n?(t=r.$$(n).children(),i=["coveo-facet-header-filter-by-container","coveo-topSpace","coveo-bottomSpace"],u.every(t,function(n){if(null!=u.find(i,function(t){return r.$$(n).hasClass(t)}))return!0;try{var t=o.get(n);if(t&&f.isAutoLayoutAdjustable(t))return!0}catch(n){}return!r.$$(n).isVisible()})):!0},n.everyStandardComponentsAreInvisible=function(n){var t=this.autoLayoutAdjustmentComponent.get(n);return u.every(t,function(n){return!n.isCurrentlyDisplayed()})},n.findColumn=function(n){var t=r.$$(n).find(".coveo-facet-column");return t||new f.Logger("ResponsiveFacets").info("No element with class coveo-facet-column. Facet column auto layout adjustment cannot be enabled"),t},n.autoLayoutAdjustmentComponent=new Map,n.autoLayoutAdjustmentHandlers=new Map,n}();t.FacetColumnAutoLayoutAdjustment=s},function(n,t,i){"use strict";var u,f;Object.defineProperty(t,"__esModule",{value:!0});var r=i(13),e=i(47),o=function(){function n(n){this.searchInterface=n}return n.prototype.handleFacetValueState=function(n){var i=e.ComponentsTypes.getAllFacetsFromSearchInterface(this.searchInterface),t=n.fv,r=new u(n,t,i),o=new f(n,t),s=Object.keys(t),h=s.filter(function(n){return t[n]&&t[n].length>0}).filter(function(n){return!r.tryTransform(n,t[n])});o.transform(h)},n}();t.FacetValueStateHandler=o;u=function(){function n(n,t,i){this.queryState=n;this.facetValueState=t;this.allFacets=i}return n.prototype.tryTransform=function(n,t){var u=this,i=this.allFacets.filter(function(t){return t.options.field==n});return i.length>0&&(delete this.facetValueState[n],i.forEach(function(n){return u.queryState[r.QueryStateModel.getFacetId(n.options.id)]=t}),!0)},n}();f=function(){function n(n,t){this.queryState=n;this.facetValueState=t}return n.prototype.transform=function(n){var i=this,t=n.map(function(n){return i.facetValueIntoQuery(n)});t.length>0&&(this.queryState[r.QueryStateModel.attributesEnum.hq]=t.join(" AND "))},n.prototype.facetValueIntoQuery=function(n){var t=this.facetValueState[n];return delete this.facetValueState[n],n+'=="'+t+'"'},n}()},function(n,t,i){"use strict";var r=this&&this.__assign||Object.assign||function(n){for(var t,r,i=1,u=arguments.length;i<u;i++){t=arguments[i];for(r in t)Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n};Object.defineProperty(t,"__esModule",{value:!0});var u=i(29),f=i(1),e=i(9),o=i(208),s=function(){function n(n,t){var i=this;this.root=n;this.queryStateModel=t;this.ID="ScrollRestorer";this.restorationTimeOutInMs=5e3;this.tryToScrollIntervalInMs=50;this.scrollInfoStorage=new o.StorageUtils(this.ID,"session");window.addEventListener("beforeunload",function(){i.saveScrollInfo()});f.$$(this.root).on(u.ResultListEvents.newResultsDisplayed,function(n,t){return i.handleNewResultsDisplayed(t)})}return n.prototype.saveScrollInfo=function(){var t={pageHeight:window.document.body.scrollHeight,lastPosition:window.pageYOffset},i=this.getKeyForCurrentQuery(),u=this.scrollInfoStorage.load(),n;this.scrollInfoStorage.save(r({},u,(n={},n[i]=t,n)))},n.prototype.handleNewResultsDisplayed=function(n){var t,i;if(n.isInfiniteScrollEnabled)return new e.Logger(this).warn("Scroll restoration is not supported on result lists with infinite scrolling enabled."),void this.resetScrollInfo();t=this.getScrollInfoForCurrentQuery();(this.resetScrollInfo(),t&&t.lastPosition)&&(i=Date.now()+this.restorationTimeOutInMs,this.tryToRestoreScrollPosition(t,i))},n.prototype.resetScrollInfo=function(){this.scrollInfoStorage.remove(this.getKeyForCurrentQuery())},n.prototype.tryToRestoreScrollPosition=function(n,t){var u=this,i=window.document.documentElement,r=window.document.body,f=Math.max(r.scrollHeight,r.offsetHeight,i.clientHeight,i.scrollHeight,i.offsetHeight);clearTimeout(this.timeoutHandle);f>=n.pageHeight||Date.now()>=t?window.scrollTo(0,n.lastPosition):this.timeoutHandle=setTimeout(function(){return u.tryToRestoreScrollPosition(n,t)},this.tryToScrollIntervalInMs)},n.prototype.getScrollInfoForCurrentQuery=function(){return(this.scrollInfoStorage.load()||{})[this.getKeyForCurrentQuery()]},n.prototype.getKeyForCurrentQuery=function(){return JSON.stringify(this.queryStateModel.getAttributes())},n}();t.ScrollRestorer=s},function(n){n.exports=function(n){return n.webpackPolyfill||(n.deprecate=function(){},n.paths=[],n.children||(n.children=[]),Object.defineProperty(n,"loaded",{enumerable:!0,get:function(){return n.l}}),Object.defineProperty(n,"id",{enumerable:!0,get:function(){return n.i}}),n.webpackPolyfill=1),n}},function(){},function(n,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var e=i(7),f=i(1),r=i(0),o=i(2),u=i(73),s=function(){function n(){}return n.findDOMElementsToIgnore=function(n,t){var e=this,i=[];return r.each(t,function(t){var o=e.findDOMElementsMatchingComponentId(n,t);i=u.Utils.concatWithoutDuplicate(i,o);r.each(o,function(n){var t=f.$$(n).findAll("*");i=u.Utils.concatWithoutDuplicate(i,t)})}),i},n.findDOMElementsToInitialize=function(n,t){var i=this,s=[];return r.each(o.Initialization.getListOfRegisteredComponents(),function(h){var c=[],l;c=u.Utils.concatWithoutDuplicate(c,i.findDOMElementsMatchingComponentId(n,h));l=o.Initialization.componentAliases[h];r.each(l,function(t){c=u.Utils.concatWithoutDuplicate(c,i.findDOMElementsMatchingComponentId(n,t))});f.$$(n).hasClass(e.Component.computeCssClassNameForType(""+h))&&!r.contains(t,n)&&c.push(n);s.push({componentClassId:h,htmlElements:r.difference(c,t)})}),s},n.findDOMElementsMatchingComponentId=function(n,t){var i=e.Component.computeCssClassNameForType(""+t);return f.$$(n).findAll("."+i)},n}();t.InitializationHelper=s},function(n,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=i(0),u=function(){function n(n){void 0===n&&(n=[]);this.analyticsClients=n;this.isContextual=!1;this.endpoint=r.first(this.analyticsClients).endpoint}return n.prototype.isActivated=function(){return r.some(this.analyticsClients,function(n){return n.isActivated()})},n.prototype.getCurrentEventCause=function(){return r.find(r.map(this.analyticsClients,function(n){return n.getCurrentEventCause()}),function(n){return null!=n})},n.prototype.getCurrentEventMeta=function(){return r.find(r.map(this.analyticsClients,function(n){return n.getCurrentEventMeta()}),function(n){return null!=n})},n.prototype.logSearchEvent=function(n,t){r.each(this.analyticsClients,function(i){return i.logSearchEvent(n,t)})},n.prototype.logSearchAsYouType=function(n,t){r.each(this.analyticsClients,function(i){return i.logSearchEvent(n,t)})},n.prototype.logClickEvent=function(n,t,i,u){return Promise.all(r.map(this.analyticsClients,function(r){return r.logClickEvent(n,t,i,u)})).then(function(n){return r.first(n)})},n.prototype.logCustomEvent=function(n,t,i){return Promise.all(r.map(this.analyticsClients,function(r){return r.logCustomEvent(n,t,i)})).then(function(n){return r.first(n)})},n.prototype.getTopQueries=function(n){var t=this;return Promise.all(r.map(this.analyticsClients,function(t){return t.getTopQueries(n)})).then(function(i){return t.mergeTopQueries(i,n.pageSize)})},n.prototype.getCurrentVisitIdPromise=function(){return r.first(this.analyticsClients).getCurrentVisitIdPromise()},n.prototype.getCurrentVisitId=function(){return r.first(this.analyticsClients).getCurrentVisitId()},n.prototype.sendAllPendingEvents=function(){r.each(this.analyticsClients,function(n){return n.sendAllPendingEvents()})},n.prototype.warnAboutSearchEvent=function(){r.each(this.analyticsClients,function(n){return n.warnAboutSearchEvent()})},n.prototype.cancelAllPendingEvents=function(){r.each(this.analyticsClients,function(n){return n.cancelAllPendingEvents()})},n.prototype.getPendingSearchEvent=function(){return r.first(this.analyticsClients).getPendingSearchEvent()},n.prototype.setOriginContext=function(n){r.each(this.analyticsClients,function(t){return t.setOriginContext(n)})},n.prototype.getOriginContext=function(){return r.first(this.analyticsClients).getOriginContext()},n.prototype.getUserDisplayName=function(){return r.first(this.analyticsClients).getUserDisplayName()},n.prototype.mergeTopQueries=function(n,t){return void 0===t&&(t=5),r.chain(n).flatten().first(t).value()},n}();t.MultiAnalyticsClient=u},function(n,t,i){!function(t,r){"use strict";var u;try{u=i(102)}catch(n){}n.exports=r(u)}(0,function(n){"use strict";var o="function"==typeof n,l=!!window.addEventListener,t=window.document,a=window.setTimeout,u=function(n,t,i,r){l?n.addEventListener(t,i,!!r):n.attachEvent("on"+t,i)},e=function(n,t,i,r){l?n.removeEventListener(t,i,!!r):n.detachEvent("on"+t,i)},d=function(n){return n.trim?n.trim():n.replace(/^\s+|\s+$/g,"")},i=function(n,t){return-1!==(" "+n.className+" ").indexOf(" "+t+" ")},g=function(n,t){i(n,t)||(n.className=""===n.className?t:n.className+" "+t)},nt=function(n,t){n.className=d((" "+n.className+" ").replace(" "+t+" "," "))},v=function(n){return/Array/.test(Object.prototype.toString.call(n))},r=function(n){return/Date/.test(Object.prototype.toString.call(n))&&!isNaN(n.getTime())},tt=function(n){var t=n.getDay();return 0===t||6===t},it=function(n){return n%4==0&&n%100!=0||n%400==0},y=function(n,t){return[31,it(n)?29:28,31,30,31,30,31,31,30,31,30,31][t]},h=function(n){r(n)&&n.setHours(0,0,0,0)},c=function(n,t){return n.getTime()===t.getTime()},s=function(n,t,i){var u,f;for(u in t)f=void 0!==n[u],f&&"object"==typeof t[u]&&null!==t[u]&&void 0===t[u].nodeName?r(t[u])?i&&(n[u]=new Date(t[u].getTime())):v(t[u])?i&&(n[u]=t[u].slice(0)):n[u]=s({},t[u],i):!i&&f||(n[u]=t[u]);return n},p=function(n,i,r){var u;t.createEvent?(u=t.createEvent("HTMLEvents"),u.initEvent(i,!0,!1),u=s(u,r),n.dispatchEvent(u)):t.createEventObject&&(u=t.createEventObject(),u=s(u,r),n.fireEvent("on"+i,u))},w=function(n){return n.month<0&&(n.year-=Math.ceil(Math.abs(n.month)/12),n.month+=12),n.month>11&&(n.year+=Math.floor(Math.abs(n.month)/12),n.month-=12),n},f={field:null,bound:void 0,position:"bottom left",reposition:!0,format:"YYYY-MM-DD",toString:null,parse:null,defaultDate:null,setDefaultDate:!1,firstDay:0,formatStrict:!1,minDate:null,maxDate:null,yearRange:10,showWeekNumber:!1,pickWholeWeek:!1,minYear:0,maxYear:9999,minMonth:void 0,maxMonth:void 0,startRange:null,endRange:null,isRTL:!1,yearSuffix:"",showMonthAfterYear:!1,showDaysInNextAndPreviousMonths:!1,enableSelectionDaysInNextAndPreviousMonths:!1,numberOfMonths:1,mainCalendar:"left",container:void 0,blurFieldOnSelect:!0,i18n:{previousMonth:"Previous Month",nextMonth:"Next Month",months:["January","February","March","April","May","June","July","August","September","October","November","December"],weekdays:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],weekdaysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},theme:null,events:[],onSelect:null,onOpen:null,onClose:null,onDraw:null,keyboardInput:!0},b=function(n,t,i){for(t+=n.firstDay;t>=7;)t-=7;return i?n.i18n.weekdaysShort[t]:n.i18n.weekdays[t]},rt=function(n){var t=[],i="false";if(n.isEmpty){if(!n.showDaysInNextAndPreviousMonths)return'<td class="is-empty"><\/td>';t.push("is-outside-current-month");n.enableSelectionDaysInNextAndPreviousMonths||t.push("is-selection-disabled")}return n.isDisabled&&t.push("is-disabled"),n.isToday&&t.push("is-today"),n.isSelected&&(t.push("is-selected"),i="true"),n.hasEvent&&t.push("has-event"),n.isInRange&&t.push("is-inrange"),n.isStartRange&&t.push("is-startrange"),n.isEndRange&&t.push("is-endrange"),'<td data-day="'+n.day+'" class="'+t.join(" ")+'" aria-selected="'+i+'"><button class="pika-button pika-day" type="button" data-pika-year="'+n.year+'" data-pika-month="'+n.month+'" data-pika-day="'+n.day+'">'+n.day+"<\/button><\/td>"},ut=function(n,t,i){var r=new Date(i,0,1);return'<td class="pika-week">'+Math.ceil(((new Date(i,t,n)-r)/864e5+r.getDay()+1)/7)+"<\/td>"},ft=function(n,t,i,r){return'<tr class="pika-row'+(i?" pick-whole-week":"")+(r?" is-selected":"")+'">'+(t?n.reverse():n).join("")+"<\/tr>"},et=function(n){return"<tbody>"+n.join("")+"<\/tbody>"},ot=function(n){var t,i=[];for(n.showWeekNumber&&i.push("<th><\/th>"),t=0;t<7;t++)i.push('<th scope="col"><abbr title="'+b(n,t)+'">'+b(n,t,!0)+"<\/abbr><\/th>");return"<thead><tr>"+(n.isRTL?i.reverse():i).join("")+"<\/tr><\/thead>"},st=function(n,t,i,r,u,f){for(var c,l,a,e=n._o,y=i===e.minYear,p=i===e.maxYear,h='<div id="'+f+'" class="pika-title" role="heading" aria-live="assertive">',w=!0,b=!0,s=[],o=0;o<12;o++)s.push('<option value="'+(i===u?o-t:12+o-t)+'"'+(o===r?' selected="selected"':"")+(y&&o<e.minMonth||p&&o>e.maxMonth?'disabled="disabled"':"")+">"+e.i18n.months[o]+"<\/option>");for(l='<div class="pika-label">'+e.i18n.months[r]+'<select class="pika-select pika-select-month" tabindex="-1">'+s.join("")+"<\/select><\/div>",v(e.yearRange)?(o=e.yearRange[0],c=e.yearRange[1]+1):(o=i-e.yearRange,c=1+i+e.yearRange),s=[];o<c&&o<=e.maxYear;o++)o>=e.minYear&&s.push('<option value="'+o+'"'+(o===i?' selected="selected"':"")+">"+o+"<\/option>");return a='<div class="pika-label">'+i+e.yearSuffix+'<select class="pika-select pika-select-year" tabindex="-1">'+s.join("")+"<\/select><\/div>",h+=e.showMonthAfterYear?a+l:l+a,y&&(0===r||e.minMonth>=r)&&(w=!1),p&&(11===r||e.maxMonth<=r)&&(b=!1),0===t&&(h+='<button class="pika-prev'+(w?"":" is-disabled")+'" type="button">'+e.i18n.previousMonth+"<\/button>"),t===n._o.numberOfMonths-1&&(h+='<button class="pika-next'+(b?"":" is-disabled")+'" type="button">'+e.i18n.nextMonth+"<\/button>"),h+"<\/div>"},ht=function(n,t,i){return'<table cellpadding="0" cellspacing="0" class="pika-table" role="grid" aria-labelledby="'+i+'">'+ot(n)+et(t)+"<\/table>"},k=function(f){var e=this,s=e.config(f),h;e._onMouseDown=function(n){if(e._v){n=n||window.event;var t=n.target||n.srcElement;if(t)if(i(t,"is-disabled")||(!i(t,"pika-button")||i(t,"is-empty")||i(t.parentNode,"is-disabled")?i(t,"pika-prev")?e.prevMonth():i(t,"pika-next")&&e.nextMonth():(e.setDate(new Date(t.getAttribute("data-pika-year"),t.getAttribute("data-pika-month"),t.getAttribute("data-pika-day"))),s.bound&&a(function(){e.hide();s.blurFieldOnSelect&&s.field&&s.field.blur()},100))),i(t,"pika-select"))e._c=!0;else{if(!n.preventDefault)return n.returnValue=!1,!1;n.preventDefault()}}};e._onChange=function(n){n=n||window.event;var t=n.target||n.srcElement;t&&(i(t,"pika-select-month")?e.gotoMonth(t.value):i(t,"pika-select-year")&&e.gotoYear(t.value))};e._onKeyChange=function(n){if(n=n||window.event,e.isVisible())switch(n.keyCode){case 13:case 27:s.field&&s.field.blur();break;case 37:n.preventDefault();e.adjustDate("subtract",1);break;case 38:e.adjustDate("subtract",7);break;case 39:e.adjustDate("add",1);break;case 40:e.adjustDate("add",7)}};e._onInputChange=function(t){var i;t.firedBy!==e&&(s.parse?i=s.parse(s.field.value,s.format):o?(i=n(s.field.value,s.format,s.formatStrict),i=i&&i.isValid()?i.toDate():null):i=new Date(Date.parse(s.field.value)),r(i)&&e.setDate(i),e._v||e.show())};e._onInputFocus=function(){e.show()};e._onInputClick=function(){e.show()};e._onInputBlur=function(){var n=t.activeElement;do if(i(n,"pika-single"))return;while(n=n.parentNode);e._c||(e._b=a(function(){e.hide()},50));e._c=!1};e._onClick=function(n){n=n||window.event;var t=n.target||n.srcElement,r=t;if(t){!l&&i(t,"pika-select")&&(t.onchange||(t.setAttribute("onchange","return;"),u(t,"change",e._onChange)));do if(i(r,"pika-single")||r===s.trigger)return;while(r=r.parentNode);e._v&&t!==s.trigger&&r!==s.trigger&&e.hide()}};e.el=t.createElement("div");e.el.className="pika-single"+(s.isRTL?" is-rtl":"")+(s.theme?" "+s.theme:"");u(e.el,"mousedown",e._onMouseDown,!0);u(e.el,"touchend",e._onMouseDown,!0);u(e.el,"change",e._onChange);s.keyboardInput&&u(t,"keydown",e._onKeyChange);s.field&&(s.container?s.container.appendChild(e.el):s.bound?t.body.appendChild(e.el):s.field.parentNode.insertBefore(e.el,s.field.nextSibling),u(s.field,"change",e._onInputChange),s.defaultDate||(s.defaultDate=o&&s.field.value?n(s.field.value,s.format).toDate():new Date(Date.parse(s.field.value)),s.setDefaultDate=!0));h=s.defaultDate;r(h)?s.setDefaultDate?e.setDate(h,!0):e.gotoDate(h):e.gotoDate(new Date);s.bound?(this.hide(),e.el.className+=" is-bound",u(s.trigger,"click",e._onInputClick),u(s.trigger,"focus",e._onInputFocus),u(s.trigger,"blur",e._onInputBlur)):this.show()};return k.prototype={config:function(n){var t,i,u;return this._o||(this._o=s({},f,!0)),t=s(this._o,n,!0),t.isRTL=!!t.isRTL,t.field=t.field&&t.field.nodeName?t.field:null,t.theme="string"==typeof t.theme&&t.theme?t.theme:null,t.bound=!!(void 0!==t.bound?t.field&&t.bound:t.field),t.trigger=t.trigger&&t.trigger.nodeName?t.trigger:t.field,t.disableWeekends=!!t.disableWeekends,t.disableDayFn="function"==typeof t.disableDayFn?t.disableDayFn:null,i=parseInt(t.numberOfMonths,10)||1,(t.numberOfMonths=i>4?4:i,r(t.minDate)||(t.minDate=!1),r(t.maxDate)||(t.maxDate=!1),t.minDate&&t.maxDate&&t.maxDate<t.minDate&&(t.maxDate=t.minDate=!1),t.minDate&&this.setMinDate(t.minDate),t.maxDate&&this.setMaxDate(t.maxDate),v(t.yearRange))?(u=(new Date).getFullYear()-10,t.yearRange[0]=parseInt(t.yearRange[0],10)||u,t.yearRange[1]=parseInt(t.yearRange[1],10)||u):(t.yearRange=Math.abs(parseInt(t.yearRange,10))||f.yearRange,t.yearRange>100&&(t.yearRange=100)),t},toString:function(t){return t=t||this._o.format,r(this._d)?this._o.toString?this._o.toString(this._d,t):o?n(this._d).format(t):this._d.toDateString():""},getMoment:function(){return o?n(this._d):null},setMoment:function(t,i){o&&n.isMoment(t)&&this.setDate(t.toDate(),i)},getDate:function(){return r(this._d)?new Date(this._d.getTime()):null},setDate:function(n,t){if(!n)return this._d=null,this._o.field&&(this._o.field.value="",p(this._o.field,"change",{firedBy:this})),this.draw();if("string"==typeof n&&(n=new Date(Date.parse(n))),r(n)){var i=this._o.minDate,u=this._o.maxDate;r(i)&&n<i?n=i:r(u)&&n>u&&(n=u);this._d=new Date(n.getTime());h(this._d);this.gotoDate(this._d);this._o.field&&(this._o.field.value=this.toString(),p(this._o.field,"change",{firedBy:this}));t||"function"!=typeof this._o.onSelect||this._o.onSelect.call(this,this.getDate())}},gotoDate:function(n){var i=!0;if(r(n)){if(this.calendars){var f=new Date(this.calendars[0].year,this.calendars[0].month,1),t=new Date(this.calendars[this.calendars.length-1].year,this.calendars[this.calendars.length-1].month,1),u=n.getTime();t.setMonth(t.getMonth()+1);t.setDate(t.getDate()-1);i=u<f.getTime()||t.getTime()<u}i&&(this.calendars=[{month:n.getMonth(),year:n.getFullYear()}],"right"===this._o.mainCalendar&&(this.calendars[0].month+=1-this._o.numberOfMonths));this.adjustCalendars()}},adjustDate:function(n,t){var i,r=this.getDate()||new Date,u=864e5*parseInt(t);"add"===n?i=new Date(r.valueOf()+u):"subtract"===n&&(i=new Date(r.valueOf()-u));this.setDate(i)},adjustCalendars:function(){this.calendars[0]=w(this.calendars[0]);for(var n=1;n<this._o.numberOfMonths;n++)this.calendars[n]=w({month:this.calendars[0].month+n,year:this.calendars[0].year});this.draw()},gotoToday:function(){this.gotoDate(new Date)},gotoMonth:function(n){isNaN(n)||(this.calendars[0].month=parseInt(n,10),this.adjustCalendars())},nextMonth:function(){this.calendars[0].month++;this.adjustCalendars()},prevMonth:function(){this.calendars[0].month--;this.adjustCalendars()},gotoYear:function(n){isNaN(n)||(this.calendars[0].year=parseInt(n,10),this.adjustCalendars())},setMinDate:function(n){n instanceof Date?(h(n),this._o.minDate=n,this._o.minYear=n.getFullYear(),this._o.minMonth=n.getMonth()):(this._o.minDate=f.minDate,this._o.minYear=f.minYear,this._o.minMonth=f.minMonth,this._o.startRange=f.startRange);this.draw()},setMaxDate:function(n){n instanceof Date?(h(n),this._o.maxDate=n,this._o.maxYear=n.getFullYear(),this._o.maxMonth=n.getMonth()):(this._o.maxDate=f.maxDate,this._o.maxYear=f.maxYear,this._o.maxMonth=f.maxMonth,this._o.endRange=f.endRange);this.draw()},setStartRange:function(n){this._o.startRange=n},setEndRange:function(n){this._o.endRange=n},draw:function(n){var i;if(this._v||n){var r,t=this._o,e=t.minYear,o=t.maxYear,u=t.minMonth,f=t.maxMonth,s="";for(this._y<=e&&(this._y=e,!isNaN(u)&&this._m<u&&(this._m=u)),this._y>=o&&(this._y=o,!isNaN(f)&&this._m>f&&(this._m=f)),r="pika-title-"+Math.random().toString(36).replace(/[^a-z]+/g,"").substr(0,2),i=0;i<t.numberOfMonths;i++)s+='<div class="pika-lendar">'+st(this,i,this.calendars[i].year,this.calendars[i].month,this.calendars[0].year,r)+this.render(this.calendars[i].year,this.calendars[i].month,r)+"<\/div>";this.el.innerHTML=s;t.bound&&"hidden"!==t.field.type&&a(function(){t.trigger.focus()},1);"function"==typeof this._o.onDraw&&this._o.onDraw(this);t.bound&&t.field.setAttribute("aria-label","Use the arrow keys to pick a date")}},adjustPosition:function(){var n,i,f,e,s,h,c,r,u,o;if(!this._o.container){if(this.el.style.position="absolute",n=this._o.trigger,i=n,f=this.el.offsetWidth,e=this.el.offsetHeight,s=window.innerWidth||t.documentElement.clientWidth,h=window.innerHeight||t.documentElement.clientHeight,c=window.pageYOffset||t.body.scrollTop||t.documentElement.scrollTop,"function"==typeof n.getBoundingClientRect)o=n.getBoundingClientRect(),r=o.left+window.pageXOffset,u=o.bottom+window.pageYOffset;else for(r=i.offsetLeft,u=i.offsetTop+i.offsetHeight;i=i.offsetParent;)r+=i.offsetLeft,u+=i.offsetTop;(this._o.reposition&&r+f>s||this._o.position.indexOf("right")>-1&&r-f+n.offsetWidth>0)&&(r=r-f+n.offsetWidth);(this._o.reposition&&u+e>h+c||this._o.position.indexOf("top")>-1&&u-e-n.offsetHeight>0)&&(u=u-e-n.offsetHeight);this.el.style.left=r+"px";this.el.style.top=u+"px"}},render:function(n,t,i){var u=this._o,d=new Date,a=y(n,t),e=new Date(n,t,1).getDay(),g=[],s=[],ct;h(d);u.firstDay>0&&(e-=u.firstDay)<0&&(e+=7);for(var nt=0===t?11:t-1,lt=11===t?0:t+1,it=0===t?n-1:n,at=11===t?n+1:n,vt=y(it,nt),v=a+e,p=v;p>7;)p-=7;v+=7-p;for(var w=!1,o=0,et=0;o<v;o++){var f=new Date(n,t,o-e+1),ot=!!r(this._d)&&c(f,this._d),yt=c(f,d),pt=-1!==u.events.indexOf(f.toDateString()),st=o<e||o>=a+e,l=o-e+1,b=t,k=n,wt=u.startRange&&c(u.startRange,f),bt=u.endRange&&c(u.endRange,f),kt=u.startRange&&u.endRange&&u.startRange<f&&f<u.endRange,dt=u.minDate&&f<u.minDate||u.maxDate&&f>u.maxDate||u.disableWeekends&&tt(f)||u.disableDayFn&&u.disableDayFn(f);st&&(o<e?(l=vt+l,b=nt,k=it):(l-=a,b=lt,k=at));ct={day:l,month:b,year:k,hasEvent:pt,isSelected:ot,isToday:yt,isDisabled:dt,isEmpty:st,isStartRange:wt,isEndRange:bt,isInRange:kt,showDaysInNextAndPreviousMonths:u.showDaysInNextAndPreviousMonths,enableSelectionDaysInNextAndPreviousMonths:u.enableSelectionDaysInNextAndPreviousMonths};u.pickWholeWeek&&ot&&(w=!0);s.push(rt(ct));7==++et&&(u.showWeekNumber&&s.unshift(ut(o-e,t,n)),g.push(ft(s,u.isRTL,u.pickWholeWeek,w)),s=[],et=0,w=!1)}return ht(u,g,i)},isVisible:function(){return this._v},show:function(){this.isVisible()||(this._v=!0,this.draw(),nt(this.el,"is-hidden"),this._o.bound&&(u(t,"click",this._onClick),this.adjustPosition()),"function"==typeof this._o.onOpen&&this._o.onOpen.call(this))},hide:function(){var n=this._v;!1!==n&&(this._o.bound&&e(t,"click",this._onClick),this.el.style.position="static",this.el.style.left="auto",this.el.style.top="auto",g(this.el,"is-hidden"),this._v=!1,void 0!==n&&"function"==typeof this._o.onClose&&this._o.onClose.call(this))},destroy:function(){var n=this._o;this.hide();e(this.el,"mousedown",this._onMouseDown,!0);e(this.el,"touchend",this._onMouseDown,!0);e(this.el,"change",this._onChange);n.keyboardInput&&e(t,"keydown",this._onKeyChange);n.field&&(e(n.field,"change",this._onInputChange),n.bound&&(e(n.trigger,"click",this._onInputClick),e(n.trigger,"focus",this._onInputFocus),e(n.trigger,"blur",this._onInputBlur)));this.el.parentNode&&this.el.parentNode.removeChild(this.el)}},k})},function(n,t,i){"use strict";var r,u,f,e,o;Object.defineProperty(t,"__esModule",{value:!0});r=i(121);t.TemplateHelpers=r.TemplateHelpers;u=i(95);t.TemplateList=u.TemplateList;f=i(67);t.TemplateCache=f.TemplateCache;e=i(107);t.HtmlTemplate=e.HtmlTemplate;o=i(58);t.UnderscoreTemplate=o.UnderscoreTemplate},function(n,t,i){"use strict";function r(){u.Initialization.registerComponentFields("ChatterLikedBy",f)}Object.defineProperty(t,"__esModule",{value:!0});var u=i(2),f=["sflikedby","sflikedbyid","clickableuri","sffeeditemid"];t.registerFields=r},function(n,t,i){"use strict";function r(){u.Initialization.registerComponentFields("ChatterPostAttachment",f)}Object.defineProperty(t,"__esModule",{value:!0});var u=i(2),f=["sfcontentversionid","sffeeditemid","sfcontentfilename","sftitle","sf_title"];t.registerFields=r},function(n,t,i){"use strict";function r(){u.Initialization.registerComponentFields("ChatterPostedBy",f)}Object.defineProperty(t,"__esModule",{value:!0});var u=i(2),f=["sfcreatedby","sfcreatedbyid","sffeeditemid","sfuserid","sfinsertedbyid","sfparentid","sfparentname"];t.registerFields=r},function(n,t,i){"use strict";function r(){u.Initialization.registerComponentFields("ChatterTopic",f)}Object.defineProperty(t,"__esModule",{value:!0});var u=i(2),f=["coveochatterfeedtopics"];t.registerFields=r},function(n,t,i){"use strict";function r(){u.Initialization.registerComponentFields("Icon",f)}Object.defineProperty(t,"__esModule",{value:!0});var u=i(2),f=["objecttype","filetype"];t.registerFields=r},function(n,t,i){"use strict";function r(){u.Initialization.registerComponentFields("PrintableUri",f)}Object.defineProperty(t,"__esModule",{value:!0});var u=i(2),f=["parents"];t.registerFields=r},function(n,t,i){"use strict";function r(){u.Initialization.registerComponentFields("Quickview",f)}Object.defineProperty(t,"__esModule",{value:!0});var u=i(2),f=["urihash","collection","source","author","date"];t.registerFields=r},function(n,t,i){"use strict";function r(){u.Initialization.registerComponentFields("ResultLink",t.fields)}Object.defineProperty(t,"__esModule",{value:!0});var u=i(2);t.fields=["outlookformacuri","outlookuri","connectortype","urihash","collection","source","author"];t.registerFields=r},function(n,t,i){"use strict";function r(){u.Initialization.registerComponentFields("FollowItem",f)}Object.defineProperty(t,"__esModule",{value:!0});var u=i(2),f=["urihash"];t.registerFields=r},function(n,t,i){"use strict";function r(){u.Initialization.registerComponentFields("Thumbnail",f)}Object.defineProperty(t,"__esModule",{value:!0});var u=i(2),f=["outlookformacuri","outlookuri","connectortype","urihash","collection","source"];t.registerFields=r},function(n,t,i){"use strict";function u(n){if(void 0==window.Coveo?window.Coveo=n:r.each(r.keys(n),function(t){window.Coveo[t]=n[t]}),void 0==window.__extends){var t=function(n,t){function r(){this.constructor=n}for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);n.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)};window.__extends=t}}Object.defineProperty(t,"__esModule",{value:!0});var r=i(0);t.swapVar=u},function(n,t,i){"use strict";var f=this&&this.__extends||function(){var n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])};return function(t,i){function r(){this.constructor=t}n(t,i);t.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var u=i(27),e=i(95),r=i(0),o=function(n){function t(){var t=null!==n&&n.apply(this,arguments)||this;return t.defaultTemplate='<td><a class="CoveoResultLink"><\/a><\/td>\n                             <td><span class="CoveoExcerpt"><\/span><\/td>\n                             <td><span class="CoveoFieldValue" data-field="@date" data-helper="date"><\/span><\/td>',t.defaultRoledTemplates={"table-header":'<th style="width: 40%">Link<\/th>\n                     <th>Excerpt<\/th>\n                     <th style="width: 20%"\n                         class="CoveoSort coveo-table-header-sort"\n                         data-sort-criteria="date ascending,date descending"\n                         data-display-unselected-icon="false">Date<\/th>',"table-footer":"<th>Link<\/th>\n                     <th>Excerpt<\/th>\n                     <th>Date<\/th>"},t}return f(t,n),t.prototype.instantiateRoleToString=function(n){var t=r.find(this.templates,function(t){return t.role===n});return t?t.instantiateToString(void 0,{}):this.defaultRoledTemplates[n]},t.prototype.instantiateRoleToElement=function(n){var f=this,i=r.find(this.templates,function(t){return t.role===n}),t;return i?i.instantiateToElement(void 0,{}):(t=new u.Template(function(){return f.defaultRoledTemplates[n]}),t.layout="table",t.instantiateToElement(void 0))},t.prototype.getFallbackTemplate=function(){var n=this;return new u.Template(function(){return n.defaultTemplate})},t.prototype.hasTemplateWithRole=function(n){return r.find(this.templates,function(t){return t.role===n})},t}(e.TemplateList);t.TableTemplate=o},function(n,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var f=i(31),u=i(0),r=i(1),e=function(){function n(n,t){void 0===t&&(t={focusableSelector:"[tabindex], button"});this.container=n;this.options=t;this.hiddenElements=[];this.enable()}return Object.defineProperty(n.prototype,"focusableElements",{get:function(){return u.chain(r.Dom.nodeListToArray(this.container.querySelectorAll(this.options.focusableSelector))).filter(function(n){return r.$$(n).isVisible()}).sortBy(function(n){return n.tabIndex}).value()},enumerable:!0,configurable:!0}),n.prototype.disable=function(){document.removeEventListener("focusin",this.focusInEvent);document.removeEventListener("focusout",this.focusOutEvent);this.showHiddenElements();this.enabled=!1},n.prototype.enable=function(){var n=this;document.addEventListener("focusin",this.focusInEvent=function(t){return n.onFocusIn(t)});document.addEventListener("focusout",this.focusOutEvent=function(t){return n.onFocusOut(t)});this.hideAllExcept(this.container);this.enabled=!0},n.prototype.showHiddenElements=function(){for(;this.hiddenElements.length;)this.hiddenElements.pop().removeAttribute("aria-hidden")},n.prototype.hideElement=function(n){n.getAttribute("aria-hidden")||(this.hiddenElements.push(n),n.setAttribute("aria-hidden","true"))},n.prototype.hideSiblings=function(n){var i=this,t=n.parentElement;t&&u.without(r.$$(t).children(),n).forEach(function(n){i.hideElement(n)})},n.prototype.hideAllExcept=function(n){this.hideSiblings(n);var t=n.parentElement;t&&t!==document.body&&this.hideAllExcept(t)},n.prototype.getFocusableSibling=function(n,t){void 0===t&&(t=!1);var i=this.focusableElements,r=i.indexOf(n);return-1===r?null:i[(r+(t?-1:1)+i.length)%i.length]},n.prototype.focusSibling=function(n,t){void 0===t&&(t=!1);var i=this.getFocusableSibling(n,t);i&&i.focus()},n.prototype.focusFirstElement=function(){var n=this.focusableElements;n.length&&n[0].focus()},n.prototype.elementIsBefore=function(n,t){return!!t&&n.compareDocumentPosition(t)===Node.DOCUMENT_POSITION_PRECEDING},n.prototype.onLosingFocus=function(n,t){var i=this;f.Defer.defer(function(){i.enabled&&(i.enabled=!1,n&&i.focusIsAllowed(n)?i.focusSibling(n,i.elementIsBefore(n,t)):i.focusFirstElement(),i.enabled=!0)})},n.prototype.focusIsAllowed=function(n){return this.container.contains(n)},n.prototype.elementIsInPage=function(n){return n&&n!==document.body.parentElement},n.prototype.onFocusIn=function(n){var i,t;this.enabled&&(i=n.relatedTarget,this.elementIsInPage(i)||(t=n.target,this.elementIsInPage(t)&&(this.focusIsAllowed(t)||this.onLosingFocus(null,t))))},n.prototype.onFocusOut=function(n){if(this.enabled){var t=n.relatedTarget;this.elementIsInPage(t)&&(t&&this.focusIsAllowed(t)||this.onLosingFocus(n.target,t))}},n}();t.FocusTrap=e},function(n,t,i){"use strict";var f=this&&this.__extends||function(){var n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])};return function(t,i){function r(){this.constructor=t}n(t,i);t.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),r,u;Object.defineProperty(t,"__esModule",{value:!0});r=i(27);u=function(n){function t(){return null!==n&&n.apply(this,arguments)||this}return f(t,n),t.prototype.instantiateToString=function(){return'<div class="coveo-result-frame">\n        <div class="coveo-result-row">\n          <div class="coveo-result-cell" style="width:40px;text-align:center;vertical-align:middle;">\n            <span class="CoveoIcon" data-small="true" data-with-label="false">\n            <\/span>\n          <\/div>\n          <div class="coveo-result-cell" style="padding:0 0 3px 5px;vertical-align:middle">\n            <div class="coveo-result-row">\n              <div class="coveo-result-cell" style="font-size:10pt;">\n                <a class="CoveoResultLink" style="display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis">\n                <\/a>\n              <\/div>\n            <\/div>\n          <\/div>\n        <\/div>\n      <\/div>'},t.prototype.instantiateToElement=function(n){var t=this;return new Promise(function(i){var r=document.createElement("div");r.innerHTML=t.instantiateToString(n);i(r)})},t}(r.Template);t.DefaultRecommendationTemplate=u},function(n,t,i){"use strict";var f=this&&this.__awaiter||function(n,t,i,r){return new(i||(i=Promise))(function(u,f){function o(n){try{e(r.next(n))}catch(n){f(n)}}function s(n){try{e(r.throw(n))}catch(n){f(n)}}function e(n){n.done?u(n.value):new i(function(t){t(n.value)}).then(o,s)}e((r=r.apply(n,t||[])).next())})},e=this&&this.__generator||function(n,t){function f(n){return function(t){return s([n,t])}}function s(f){if(e)throw new TypeError("Generator is already executing.");for(;r;)try{if(e=1,u&&(i=u[2&f[0]?"return":f[0]?"throw":"next"])&&!(i=i.call(u,f[1])).done)return i;switch(u=0,i&&(f=[0,i.value]),f[0]){case 0:case 1:i=f;break;case 4:return r.label++,{value:f[1],done:!1};case 5:r.label++;u=f[1];f=[0];continue;case 7:f=r.ops.pop();r.trys.pop();continue;default:if(i=r.trys,!(i=i.length>0&&i[i.length-1])&&(6===f[0]||2===f[0])){r=0;continue}if(3===f[0]&&(!i||f[1]>i[0]&&f[1]<i[3])){r.label=f[1];break}if(6===f[0]&&r.label<i[1]){r.label=i[1];i=f;break}if(i&&r.label<i[2]){r.label=i[2];r.ops.push(f);break}i[2]&&r.ops.pop();r.trys.pop();continue}f=t.call(n,r)}catch(n){f=[6,n];u=0}finally{e=i=0}if(5&f[0])throw f[1];return{value:f[0]?f[1]:void 0,done:!0}}var e,u,i,o,r={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:f(0),"throw":f(1),"return":f(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o};Object.defineProperty(t,"__esModule",{value:!0});var r=i(20),o=i(92),u=i(0),s=i(1),h=i(9),c=function(){function n(n){this.args=n}return n.prototype.buildResults=function(n,t,i){return f(this,void 0,void 0,function(){var r,f,s=this;return e(this,function(){return r=[],f=u.map(n.results,function(n,u){return s.buildResult(n,t,i).then(function(n){return null!=n&&r.push({elem:n,idx:u}),o.ResultList.resultCurrentlyBeingRendered=null,n})}),[2,Promise.all(f).then(function(){return u.pluck(u.sortBy(r,"idx"),"elem")})]})})},n.prototype.buildResult=function(n,t,i){return f(this,void 0,void 0,function(){var u;return e(this,function(f){switch(f.label){case 0:return r.Assert.exists(n),r.QueryUtils.setStateObjectOnQueryResult(this.args.queryStateModel.get(),n),r.QueryUtils.setSearchInterfaceObjectOnQueryResult(this.args.searchInterface,n),o.ResultList.resultCurrentlyBeingRendered=n,[4,this.createHtmlElement(n,t)];case 1:return u=f.sent(),null!=u&&r.Component.bindResultToElement(u,n),i.push(n),[4,this.autoCreateComponentsInsideResult(u,n).initResult];case 2:return f.sent(),this.verifyChildren(u),[2,u]}})})},n.prototype.autoCreateComponentsInsideResult=function(n,t){return r.Assert.exists(n),r.Initialization.automaticallyCreateComponentsInsideResult(n,t)},n.prototype.createHtmlElement=function(n,t){return this.args.resultTemplate.instantiateToElement(n,{wrapInDiv:!0,checkCondition:!0,currentLayout:t,responsiveComponents:this.args.searchInterface.responsiveComponents})},n.prototype.verifyChildren=function(n){s.$$(n).find(".CoveoResultLink")||new h.Logger(n).warn('Result does not contain a "CoveoResultLink" component, please verify the result template',this.args.resultTemplate)},n}();t.TemplateToHtml=c},function(n,t,i){"use strict";function s(){var n,i=p.Component.getComponentRef("ResultList"),t;return(i&&(n=i.resultCurrentlyBeingRendered),n)||(t=p.Component.getComponentRef("Quickview"),t&&(n=t.resultCurrentlyBeingRendered)),n}function l(){var n=s();if(n)return n.termsToHighlight}function a(){var n=s();if(n)return n.phrasesToHighlight}function it(n,t){return u.Utils.isNonEmptyArray(f.keys(n))||u.Utils.isNonEmptyArray(f.keys(t))}var rt=this&&this.__assign||Object.assign||function(n){for(var t,r,i=1,u=arguments.length;i<u;i++){t=arguments[i];for(r in t)Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},w,b,k,d,g,nt,tt;Object.defineProperty(t,"__esModule",{value:!0});var r=i(121),h=i(68),e=i(33),et=i(134),v=i(178),u=i(4),c=i(22),ot=i(72),y=i(177),st=i(21),ut=i(24),o=i(1),ht=i(53),ft=i(119),ct=i(40),lt=i(23),f=i(0),p=i(7),at=i(67),vt=function(){function n(){}return n.exportAllHelpersGlobally=function(n){f.each(r.TemplateHelpers.getHelpers(),function(t,i){void 0==n[i]&&(n[i]=t)})},n}();t.CoreHelpers=vt;r.TemplateHelpers.registerFieldHelper("javascriptEncode",function(n){if(u.Utils.exists(n))return c.StringUtils.javascriptEncode(n)});w=function(n,t){var i=h.StringAndHoles.shortenString(n,t.length,"...");return u.Utils.exists(t.highlights)?h.HighlightUtils.highlightString(i.value,t.highlights,i.holes,t.cssClass||"highlight"):i.value};r.TemplateHelpers.registerTemplateHelper("shorten",function(n,t,i,r){return w(n,{length:t,highlights:i,cssClass:r})});r.TemplateHelpers.registerTemplateHelper("shortenv2",function(n,t){return w(n,t)});b=function(n,t){var i=h.StringAndHoles.shortenPath(n,t.length);return u.Utils.exists(t.highlights)?h.HighlightUtils.highlightString(i.value,t.highlights,i.holes,t.cssClass||"highlight"):i.value};r.TemplateHelpers.registerTemplateHelper("shortenPath",function(n,t,i,r){return b(n,{length:t,highlights:i,cssClass:r})});r.TemplateHelpers.registerFieldHelper("shortenPathv2",function(n,t){return b(n,t)});k=function(n,t){var i=h.StringAndHoles.shortenUri(n,t.length);return u.Utils.exists(t.highlights)?h.HighlightUtils.highlightString(i.value,t.highlights,i.holes,t.cssClass||"highlight"):i.value};r.TemplateHelpers.registerTemplateHelper("shortenUri",function(n,t,i,r){return k(n,{length:t,highlights:i,cssClass:r})});r.TemplateHelpers.registerTemplateHelper("shortenUriv2",function(n,t){return k(n,t)});d=function(n,t){if(u.Utils.exists(n))return u.Utils.exists(t.highlights)?h.HighlightUtils.highlightString(n,t.highlights,null,t.cssClass||"highlight"):n};r.TemplateHelpers.registerTemplateHelper("highlight",function(n,t,i){return d(n,{highlights:t,cssClass:i})});r.TemplateHelpers.registerTemplateHelper("highlightv2",function(n,t){return d(n,t)});g=function(n,t){if(u.Utils.exists(n)&&u.Utils.exists(t.termsToHighlight)&&u.Utils.exists(t.phrasesToHighlight))return it(t.termsToHighlight,t.phrasesToHighlight)?ft.StreamHighlightUtils.highlightStreamText(n,t.termsToHighlight,t.phrasesToHighlight,t.opts):n};r.TemplateHelpers.registerTemplateHelper("highlightStreamText",function(n,t,i,r){return void 0===t&&(t=l()),void 0===i&&(i=a()),g(n,{termsToHighlight:t,phrasesToHighlight:i,opts:r})});r.TemplateHelpers.registerTemplateHelper("highlightStreamTextv2",function(n,t){var i=rt({termsToHighlight:l(),phrasesToHighlight:a()},t);return g(n,i)});nt=function(n,t){if(u.Utils.exists(n)&&u.Utils.exists(t.termsToHighlight)&&u.Utils.exists(t.phrasesToHighlight))return it(t.termsToHighlight,t.phrasesToHighlight)?ft.StreamHighlightUtils.highlightStreamHTML(n,t.termsToHighlight,t.phrasesToHighlight,t.opts):n};r.TemplateHelpers.registerTemplateHelper("highlightStreamHTML",function(n,t,i,r){return void 0===t&&(t=l()),void 0===i&&(i=a()),nt(n,{termsToHighlight:t,phrasesToHighlight:i,opts:r})});r.TemplateHelpers.registerTemplateHelper("highlightStreamHTMLv2",function(n,t){var i=rt({termsToHighlight:l(),phrasesToHighlight:a()},t);return nt(n,i)});r.TemplateHelpers.registerFieldHelper("number",function(n,t){if(u.Utils.exists(n)){var i=Number(n),r=f.isString(t)?t:t&&t.format;return r?c.StringUtils.htmlEncode(lt.format(i,r)):c.StringUtils.htmlEncode(i.toString())}});r.TemplateHelpers.registerFieldHelper("date",function(n,t){return e.DateUtils.dateToString(e.DateUtils.convertFromJsonDateIfNeeded(n),t)});r.TemplateHelpers.registerFieldHelper("time",function(n,t){return e.DateUtils.timeToString(e.DateUtils.convertFromJsonDateIfNeeded(n),t)});r.TemplateHelpers.registerFieldHelper("dateTime",function(n,t){return e.DateUtils.dateTimeToString(e.DateUtils.convertFromJsonDateIfNeeded(n),t)});r.TemplateHelpers.registerFieldHelper("emailDateTime",function(n,t){var i={},r;return i.includeTimeIfThisWeek=!0,r=f.extend(t,i),n?e.DateUtils.dateTimeToString(e.DateUtils.convertFromJsonDateIfNeeded(n),r):void 0});r.TemplateHelpers.registerFieldHelper("currency",function(n,t){return et.CurrencyUtils.currencyToString(n,t)});r.TemplateHelpers.registerFieldHelper("timeSpan",function(n,t){return void 0===t&&(t={isMilliseconds:!1}),new ot.TimeSpan(n,t.isMilliseconds).getHHMMSS()});r.TemplateHelpers.registerFieldHelper("email",function(n){for(var e,o,i,r,s,t=[],u=1;u<arguments.length;u++)t[u-1]=arguments[u];return(f.isObject(t[0])?(e=t[0].companyDomain,o=t[0].me,i=t[0].lengthLimit,r=t[0].truncateName):(e=t[0],o=t[1],i=t[2],r=t[3]),void 0==i&&(i=2),void 0==r&&(r=!1),f.isString(n))?(s=y.EmailUtils.splitSemicolonSeparatedListOfEmailAddresses(n),y.EmailUtils.emailAddressesToHyperlinks(s,e,o,i,r)):f.isArray(n)?y.EmailUtils.emailAddressesToHyperlinks(n,e,o,i,r):void 0});r.TemplateHelpers.registerTemplateHelper("excessEmailToggle",function(n){o.$$(n).removeClass("coveo-active");o.$$(n).hasClass("coveo-emails-excess-collapsed")?f.each(o.$$(n).siblings(".coveo-emails-excess-expanded"),function(n){o.$$(n).addClass("coveo-active")}):o.$$(n).hasClass("coveo-hide-expanded")&&(o.$$(n.parentElement).addClass("coveo-inactive"),f.each(o.$$(n.parentElement).siblings(".coveo-emails-excess-collapsed"),function(n){o.$$(n).addClass("coveo-active")}))});r.TemplateHelpers.registerFieldHelper("anchor",function(n,t){return v.AnchorUtils.buildAnchor(n,t)});r.TemplateHelpers.registerFieldHelper("image",function(n,t,i){return void 0===i&&(i=s()),t&&t.srcTemplate?v.ImageUtils.buildImage(c.StringUtils.buildStringTemplateFromResult(t.srcTemplate,i),{alt:t.alt,height:t.height,width:t.width}):v.ImageUtils.buildImage(n,t)});r.TemplateHelpers.registerTemplateHelper("thumbnail",function(n,t,i){if(void 0===n&&(n=s()),void 0===t&&(t="default"),st.QueryUtils.hasThumbnail(n))return v.ImageUtils.buildImageFromResult(n,ht.SearchEndpoint.endpoints[t],i)});r.TemplateHelpers.registerTemplateHelper("fromFileTypeToIcon",function(n,t){void 0===n&&(n=s());void 0===t&&(t={});var i=p.Component.getComponentRef("Icon");if(i)return i.createIcon(n,t).outerHTML});r.TemplateHelpers.registerTemplateHelper("attrEncode",function(n){return(""+n).replace(/&/g,"&amp;").replace(/'/g,"&apos;").replace(/'/g,"&quot;").replace(/</g,"&lt;").replace(/>/g,"&gt;")});r.TemplateHelpers.registerTemplateHelper("loadTemplates",function(n,t){void 0===t&&(t=!0);var i,e="",o=s(),u=!1,h=n;return f.each(n,function(n,t){"default"==n&&(i=t)}),void 0!=i&&(h=f.omit(n,i)),f.each(h,function(n,i){u&&t||(u=u||n,e+=r.TemplateHelpers.getHelper("loadTemplate")(i,n,o))}),u||void 0==i||(e+=r.TemplateHelpers.getHelper("loadTemplate")(i,!0,o)),e});tt=["B","KB","MB","GB","TB","PB","EB"];r.TemplateHelpers.registerFieldHelper("size",function(n,t){for(var i=parseInt(n,10),u=null!=t&&null!=t.precision?t.precision:2,r=null!=t&&null!=t.base?t.base:0;i>1024&&r+1<tt.length;)i/=1024,r++;return(i=Math.floor(i*Math.pow(10,u))/Math.pow(10,u))+" "+tt[r]});r.TemplateHelpers.registerFieldHelper("translatedCaption",function(n){return ct.FacetUtils.tryToGetTranslatedCaption("@filetype",n)});r.TemplateHelpers.registerTemplateHelper("loadTemplate",function(n,t,i){return void 0===t&&(t=!0),u.Utils.isNullOrUndefined(i)&&(i=s()),t?at.TemplateCache.getTemplate(n).instantiateToString(i,{checkCondition:!1}):""});r.TemplateHelpers.registerTemplateHelper("encodeCarriageReturn",function(n){if(!u.Utils.isNullOrUndefined(n))return c.StringUtils.encodeCarriageReturn(n)});r.TemplateHelpers.registerTemplateHelper("isMobileDevice",function(){return ut.DeviceUtils.isMobileDevice()?ut.DeviceUtils.getDeviceName():null});r.TemplateHelpers.registerTemplateHelper("pluralHelper",function(n,t){return n>1?t.plural:t.singular})},function(n,t,i){"use strict";function u(n,t){var u=f.once(function(){return t()}),i;r.$$(n).on(["contextmenu","click","mousedown","mouseup"],u);r.$$(n).on("touchstart",function(){i=window.setTimeout(u,1e3)});r.$$(n).on("touchend",function(){i&&clearTimeout(i)})}Object.defineProperty(t,"__esModule",{value:!0});var f=i(0),r=i(1);t.bindAnalyticsToLink=u},function(n,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});!function(n){n.Legacy="legacy";n.Wildcards="wildcards";n.Regex="regex";n.EditDistance="editdistance";n.Phonetic="phonetic"}(t.AllowedValuesPatternType||(t.AllowedValuesPatternType={}))},function(n,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var e=i(477),o=i(4),r=i(10),f=i(1),u=i(25),s=function(){function n(n,t,i,r){this.facet=n;this.facetValue=t;this.onSelect=i;this.onExclude=r}return n.prototype.build=function(){return this.renderer=new e.ValueElementRenderer(this.facet,this.facetValue).build(),this.bindEvent({displayNextTime:!0,pinFacet:this.facet.options.preservePosition}),this},n.prototype.bindEvent=function(n){this.isOmnibox=o.Utils.isNullOrUndefined(n.omniboxObject)?!1:!0;this.handleEventForCheckboxChange(n);this.facetValue.excluded?this.handleEventForExcludedValueElement(n):this.handleEventForValueElement(n)},n.prototype.select=function(){this.facetValue.selected=!0;this.facetValue.excluded=!1;this.renderer.setCssClassOnListValueElement()},n.prototype.unselect=function(){this.facetValue.selected=!1;this.facetValue.excluded=!1;this.renderer.setCssClassOnListValueElement()},n.prototype.exclude=function(){this.facetValue.selected=!1;this.facetValue.excluded=!0;this.renderer.setCssClassOnListValueElement()},n.prototype.unexclude=function(){this.facetValue.selected=!1;this.facetValue.excluded=!1;this.renderer.setCssClassOnListValueElement()},n.prototype.toggleExcludeWithUA=function(){var t,n=this;t=this.facetValue.excluded?this.isOmnibox?r.analyticsActionCauseList.omniboxFacetUnexclude:r.analyticsActionCauseList.facetUnexclude:this.isOmnibox?r.analyticsActionCauseList.omniboxFacetExclude:r.analyticsActionCauseList.facetExclude;this.facet.toggleExcludeValue(this.facetValue);this.onExclude?this.facet.triggerNewQuery(function(){return n.onExclude(n,t)}):this.facet.triggerNewQuery(function(){return n.facet.usageAnalytics.logSearchEvent(t,n.getAnalyticsFacetMeta())})},n.prototype.handleSelectValue=function(n){var t=this,i;this.facet.keepDisplayedValuesNextTime=n.displayNextTime&&!this.facet.options.useAnd;this.facetValue.excluded?(i=this.isOmnibox?r.analyticsActionCauseList.omniboxFacetUnexclude:r.analyticsActionCauseList.facetUnexclude,this.facet.unexcludeValue(this.facetValue)):(i=this.facetValue.selected?this.isOmnibox?r.analyticsActionCauseList.omniboxFacetDeselect:r.analyticsActionCauseList.facetDeselect:this.isOmnibox?r.analyticsActionCauseList.omniboxFacetSelect:r.analyticsActionCauseList.facetSelect,this.facet.toggleSelectValue(this.facetValue));this.onSelect?this.facet.triggerNewQuery(function(){return t.onSelect(t,i)}):this.facet.triggerNewQuery(function(){return t.facet.usageAnalytics.logSearchEvent(i,t.getAnalyticsFacetMeta())})},n.prototype.handleExcludeClick=function(n){this.facet.keepDisplayedValuesNextTime=n.displayNextTime&&!this.facet.options.useAnd;this.toggleExcludeWithUA()},n.prototype.handleSelectEventForExcludedValueElement=function(n){var t=this,i=function(){return n.pinFacet&&t.facet.pinFacetPosition(),n.omniboxObject&&t.omniboxCloseEvent(n.omniboxObject),t.handleSelectValue(n),t.tryDismissSearchResults(),!1};f.$$(this.renderer.label).on("click",function(n){n.stopPropagation();i()});f.$$(this.renderer.stylishCheckbox).on("keydown",u.KeyboardUtils.keypressAction([u.KEYBOARD.SPACEBAR,u.KEYBOARD.ENTER],i))},n.prototype.handleExcludeEventForValueElement=function(n){var t=this,i=function(i){n.omniboxObject&&t.omniboxCloseEvent(n.omniboxObject);t.handleExcludeClick(n);t.tryDismissSearchResults();i.stopPropagation();i.preventDefault()};f.$$(this.renderer.excludeIcon).on("click",i);f.$$(this.renderer.excludeIcon).on("keydown",u.KeyboardUtils.keypressAction([u.KEYBOARD.SPACEBAR,u.KEYBOARD.ENTER],i))},n.prototype.handleSelectEventForValueElement=function(n){var t=this,i=function(i){n.pinFacet&&t.facet.pinFacetPosition();t.tryDismissSearchResults();f.$$(t.renderer.checkbox).trigger("change");i.preventDefault()};f.$$(this.renderer.label).on("click",i);f.$$(this.renderer.stylishCheckbox).on("keydown",u.KeyboardUtils.keypressAction([u.KEYBOARD.SPACEBAR,u.KEYBOARD.ENTER],i))},n.prototype.handleEventForExcludedValueElement=function(n){this.handleSelectEventForExcludedValueElement(n);this.handleExcludeEventForValueElement(n)},n.prototype.handleEventForValueElement=function(n){this.handleSelectEventForValueElement(n);this.handleExcludeEventForValueElement(n)},n.prototype.handleEventForCheckboxChange=function(n){var t=this;f.$$(this.renderer.checkbox).on("change",function(){n.omniboxObject&&t.omniboxCloseEvent(n.omniboxObject);t.handleSelectValue(n)})},n.prototype.omniboxCloseEvent=function(n){n.closeOmnibox();n.clear()},n.prototype.tryDismissSearchResults=function(){this.facet&&this.facet.facetSearch&&this.facet.facetSearch.dismissSearchResults&&this.facet.facetSearch.dismissSearchResults()},n.prototype.getAnalyticsFacetMeta=function(){return{facetId:this.facet.options.id,facetField:this.facet.options.field.toString(),facetValue:this.facetValue.value,facetTitle:this.facet.options.title}},n}();t.ValueElement=s},function(n,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=i(1),u=i(4),f=i(6),h=i(7),s=i(0),e=i(12),o=i(16),c=function(){function n(n,t){this.facet=n;this.facetValue=t}return n.prototype.withNo=function(n){return s.isArray(n)?s.each(n,function(n){n&&r.$$(n).detach()}):n&&r.$$(n).detach(),this},n.prototype.build=function(){return this.buildListItem(),this.initAndAppendLabel(),this.initAndAppendExcludeIcon(),this.setCssClassOnListValueElement(),this.addAccessibilityAttributesToTargetElement(),this},n.prototype.setCssClassOnListValueElement=function(){r.$$(this.listItem).toggleClass("coveo-selected",this.facetValue.selected);r.$$(this.listItem).toggleClass("coveo-excluded",this.facetValue.excluded)},Object.defineProperty(n.prototype,"accessibleElement",{get:function(){return this.stylishCheckbox},enumerable:!0,configurable:!0}),n.prototype.buildExcludeIcon=function(){var t=this.facetValue.excluded,n=r.$$("div",{ariaLabel:f.l("ExcludeValueWithResultCount",this.caption,f.l("ResultCount",this.count,parseInt(this.count,10))),className:"coveo-facet-value-exclude",tabindex:0,role:"button",ariaPressed:t.toString()}).el;return this.addFocusAndBlurEventListeners(n),n.innerHTML=t?e.SVGIcons.icons.plus:e.SVGIcons.icons.checkboxHookExclusionMore,o.SVGDom.addClassToSVGInContainer(n,t?"coveo-facet-value-unexclude-svg":"coveo-facet-value-exclude-svg"),o.SVGDom.addAttributesToSVGInContainer(n,{"aria-hidden":"true"}),n},n.prototype.buildValueComputedField=function(){var t=this.facetValue.getFormattedComputedField(this.facet.options.computedFieldFormat),n;if(u.Utils.isNonEmptyString(t))return n=r.$$("span",{className:"coveo-facet-value-computed-field"}).el,r.$$(n).text(t),n},n.prototype.buildValueCheckbox=function(){var n=r.$$("input",{type:"checkbox",ariaHidden:!0,ariaLabel:this.ariaLabel}).el;return this.facetValue.selected?n.setAttribute("checked","checked"):n.removeAttribute("checked"),this.facetValue.excluded?n.setAttribute("disabled","disabled"):n.removeAttribute("disabled"),h.Component.pointElementsToDummyForm(n),n},n.prototype.buildValueStylishCheckbox=function(){var n=r.$$("div",{className:"coveo-facet-value-checkbox",tabindex:0}).el;return n.innerHTML=e.SVGIcons.icons.checkboxHookExclusionMore,o.SVGDom.addClassToSVGInContainer(n,"coveo-facet-value-checkbox-svg"),this.addFocusAndBlurEventListeners(n),n},n.prototype.buildValueIcon=function(){var n=this.getValueIcon();return u.Utils.exists(n)?r.$$("img",{className:"coveo-facet-value-icon coveo-icon",src:this.getValueIcon()}).el:this.buildValueIconFromSprite()},n.prototype.getValueIcon=function(){if(u.Utils.exists(this.facet.options.valueIcon))return this.facet.options.valueIcon(this.facetValue)},n.prototype.buildValueIconFromSprite=function(){return r.$$("div",{className:"coveo-facet-value-icon coveo-icon "+this.facet.options.field.substr(1)+" "+this.facetValue.value}).el},n.prototype.buildValueCaption=function(){var n=r.$$("span",{className:"coveo-facet-value-caption",title:this.caption,"data-original-value":this.facetValue.value}).el;return r.$$(n).text(this.caption),n},n.prototype.buildValueCount=function(){if(u.Utils.isNonEmptyString(this.count)){var n=r.$$("span",{className:"coveo-facet-value-count"}).el;return r.$$(n).text(this.count),n}},Object.defineProperty(n.prototype,"caption",{get:function(){return this.facet.getValueCaption(this.facetValue)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"count",{get:function(){return this.facetValue.getFormattedCount()},enumerable:!0,configurable:!0}),n.prototype.addFocusAndBlurEventListeners=function(n){var t=this;r.$$(n).on("focus",function(){return r.$$(t.listItem).addClass("coveo-focused")});r.$$(n).on("blur",function(){return r.$$(t.listItem).removeClass("coveo-focused")})},n.prototype.buildListItem=function(){this.listItem=r.$$("li",{className:"coveo-facet-value coveo-facet-selectable",ariaLabel:this.ariaLabel}).el;r.$$(this.listItem).canHandleEvent("touchstart")||r.$$(this.listItem).addClass("coveo-with-hover");this.listItem.setAttribute("data-value",this.facetValue.value)},n.prototype.initAndAppendLabel=function(){this.label=r.$$("label",{className:"coveo-facet-value-label",role:"group"}).el;this.tryToInitAndAppendComputedField();this.initAndAppendFacetValueLabelWrapper();this.listItem.appendChild(this.label)},n.prototype.initAndAppendExcludeIcon=function(){this.excludeIcon=this.buildExcludeIcon();this.attachExcludeIconEventHandlers();this.listItem.appendChild(this.excludeIcon)},n.prototype.attachExcludeIconEventHandlers=function(){var n=this;r.$$(this.excludeIcon).on("mouseover",function(){r.$$(n.listItem).addClass("coveo-facet-value-will-exclude")});r.$$(this.excludeIcon).on("mouseout",function(){r.$$(n.listItem).removeClass("coveo-facet-value-will-exclude")})},n.prototype.tryToInitAndAppendComputedField=function(){u.Utils.exists(this.facetValue.computedField)&&(this.computedField=this.buildValueComputedField(),this.computedField&&(this.label.appendChild(this.computedField),r.$$(this.label).addClass("coveo-with-computed-field")))},n.prototype.initAndAppendFacetValueLabelWrapper=function(){this.facetValueLabelWrapper=r.$$("div",{className:"coveo-facet-value-label-wrapper"}).el;this.initAndAppendCheckbox();this.initAndAppendStylishCheckbox();this.initAndAppendValueCaption();this.initAndAppendValueCount();this.label.appendChild(this.facetValueLabelWrapper)},n.prototype.initAndAppendCheckbox=function(){this.checkbox=this.buildValueCheckbox();this.facetValueLabelWrapper.appendChild(this.checkbox)},n.prototype.initAndAppendStylishCheckbox=function(){this.stylishCheckbox=this.buildValueStylishCheckbox();this.facetValueLabelWrapper.appendChild(this.stylishCheckbox)},n.prototype.initAndAppendValueCount=function(){this.valueCount=this.buildValueCount();this.valueCount&&this.facetValueLabelWrapper.appendChild(this.valueCount)},n.prototype.initAndAppendValueCaption=function(){this.valueCaption=this.buildValueCaption();this.facetValueLabelWrapper.appendChild(this.valueCaption)},n.prototype.addAccessibilityAttributesToTargetElement=function(){var n=this.accessibleElement;n.setAttribute("aria-label",this.ariaLabel);n.setAttribute("role","button");n.setAttribute("aria-pressed",this.ariaPressed)},Object.defineProperty(n.prototype,"ariaLabel",{get:function(){var n=f.l("ResultCount",this.count,parseInt(this.count,10));return""+f.l("IncludeValueWithResultCount",this.caption,n)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"ariaPressed",{get:function(){return this.facetValue.excluded?"mixed":this.facetValue.selected?"true":"false"},enumerable:!0,configurable:!0}),n}();t.ValueElementRenderer=c},function(n,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var u=i(22),r=i(0),f=function(){function n(n,t){this.facet=n;this.facetSort=t}return n.prototype.reorderValues=function(n){if(this.facetSort&&this.facetSort.activeSort){if(this.usingCustomSort)return this.reorderValuesWithCustomOrder(n);if(this.usingAlphabeticalSort)return this.reorderValuesWithCustomCaption(n)}return n},n.prototype.reorderValuesIfUsingCustomSort=function(n){return this.usingCustomSort?this.reorderValuesWithCustomOrder(n):n},n.prototype.reorderValuesIfUsingAlphabeticalSort=function(n){return this.usingAlphabeticalSort?this.reorderValuesWithCustomCaption(n):n},Object.defineProperty(n.prototype,"usingCustomSort",{get:function(){return"custom"==this.facetSort.activeSort.name&&void 0!=this.facet.options.customSort},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"usingAlphabeticalSort",{get:function(){return-1!=this.facetSort.activeSort.name.indexOf("alpha")},enumerable:!0,configurable:!0}),n.prototype.reorderValuesWithCustomOrder=function(n){var i=r.map(this.facet.options.customSort,function(n){return n.toLowerCase()}),f=r.map(n,function(n,t){var f=r.findIndex(i,function(t){return u.StringUtils.equalsCaseInsensitive(t,n.value)||null!=n.lookupValue&&u.StringUtils.equalsCaseInsensitive(t,n.lookupValue)});return-1==f&&(f=t+i.length),{facetValue:n,index:f}}),t=r.sortBy(f,"index");return t="ascending"==this.facetSort.customSortDirection?t:t.reverse(),r.pluck(t,"facetValue")},n.prototype.reorderValuesWithCustomCaption=function(n){var i=this,t=n.sort(function(n,t){return i.facet.getValueCaption(n).localeCompare(i.facet.getValueCaption(t),String.locale,{sensitivity:"base"})});return-1!=this.facetSort.activeSort.name.indexOf("descending")&&(t=t.reverse()),t},n}();t.FacetValuesOrder=f},function(n,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=i(1),e=i(12),o=i(16),h=i(7),u=i(6),f=i(137),c=i(544),s=i(0),l=i(545),a=i(25),v=function(){function n(n){this.facetSearch=n;this.searchBarIsAnimating=!1;this.triggeredScroll=!1;this.facetSearchId=s.uniqueId("coveo-facet-search-results");this.facetValueNotFoundId=s.uniqueId("coveo-facet-value-not-found");this.facetSearchUserInputHandler=new c.FacetSearchUserInputHandler(this.facetSearch);this.initSearchResults()}return n.prototype.build=function(n){var t=this;return this.search=document.createElement("div"),r.$$(this.search).addClass("coveo-facet-search"),this.magnifier=this.buildMagnifierIcon(),this.search.appendChild(this.magnifier),this.wait=this.buildWaitIcon(),this.search.appendChild(this.wait),this.hideFacetSearchWaitingAnimation(),this.clear=r.$$("div",{className:"coveo-facet-search-clear",title:u.l("Clear",u.l("Search"))},e.SVGIcons.icons.clear).el,o.SVGDom.addClassToSVGInContainer(this.clear,"coveo-facet-search-clear-svg"),this.clear.style.display="none",this.search.appendChild(this.clear),this.combobox=this.buildCombobox(),this.search.appendChild(this.combobox),this.input=this.buildInputElement(),h.Component.pointElementsToDummyForm(this.input),this.combobox.appendChild(this.input),r.$$(this.input).on("keyup",function(n){t.facetSearchUserInputHandler.handleKeyboardEvent(n)}),r.$$(this.clear).on("click",function(){n&&n()}),r.$$(this.input).on("focus",function(){t.handleFacetSearchFocus()}),r.$$(this.input).on("blur",function(n){return t.onInputBlur(n)}),this.detectSearchBarAnimation(),this.initSearchDropdownNavigator(),this.search},n.prototype.initSearchResults=function(){var n=this;this.searchResults=r.$$("ul",{id:this.facetSearchId,className:"coveo-facet-search-results",role:"listbox"}).el;r.$$(this.searchResults).on("scroll",function(){return n.handleScrollEvent()});r.$$(this.searchResults).on("keyup",function(t){t.which===a.KEYBOARD.ESCAPE&&n.facetSearch.dismissSearchResults()});r.$$(this.searchResults).on("focusout",function(t){return n.onSearchResultsFocusOut(t)});r.$$(this.searchResults).hide()},n.prototype.onInputBlur=function(n){var t=n.relatedTarget,i=this.searchResults.contains(t);this.search.parentElement.contains(t)&&!i&&this.facetSearch.dismissSearchResults()},n.prototype.onSearchResultsFocusOut=function(n){var t=n.relatedTarget,i=!!t,r=this.input.contains(t),u=this.searchResults.contains(t);!i||r||u||this.facetSearch.dismissSearchResults()},n.prototype.initSearchDropdownNavigator=function(){var n=this,t={input:this.input,searchResults:this.searchResults,setScrollTrigger:function(t){return n.triggeredScroll=t}};this.searchDropdownNavigator=l.SearchDropdownNavigatorFactory(this.facetSearch,t)},n.prototype.buildCombobox=function(){return r.$$("div",{className:"coveo-facet-search-middle",ariaHaspopup:"listbox",ariaExpanded:"true"}).el},n.prototype.showFacetSearchWaitingAnimation=function(){this.magnifier&&r.$$(this.magnifier).hide();r.$$(this.wait).show()},n.prototype.getValueInInputForFacetSearch=function(){return this.input.value.trim()},n.prototype.hideFacetSearchWaitingAnimation=function(){r.$$(this.magnifier).show();r.$$(this.wait).hide()},n.prototype.detectSearchBarAnimation=function(){var n=this;f.EventsUtils.addPrefixedEvent(this.search,"AnimationStart",function(t){"grow"==t.animationName&&(n.searchBarIsAnimating=!0)});f.EventsUtils.addPrefixedEvent(this.search,"AnimationEnd",function(t){"grow"==t.animationName&&(n.searchBarIsAnimating=!1)})},n.prototype.positionSearchResults=function(){var n=this;null!=this.searchResults&&(r.$$(this.searchResults).insertAfter(this.search),r.$$(this.searchResults).show(),"none"==r.$$(this.searchResults).css("display")&&(this.searchResults.style.display=""),("none"==r.$$(this.search).css("display")||this.searchBarIsAnimating)&&("none"==r.$$(this.searchResults).css("display")&&(this.searchResults.style.display=""),f.EventsUtils.addPrefixedEvent(this.search,"AnimationEnd",function(){f.EventsUtils.removePrefixedEvent(n.search,"AnimationEnd",n)})));this.addAriaAttributes()},n.prototype.setAsCurrentResult=function(n){this.searchDropdownNavigator.setAsCurrentResult(n)},Object.defineProperty(n.prototype,"currentResult",{get:function(){return this.searchDropdownNavigator.currentResult},enumerable:!0,configurable:!0}),n.prototype.moveCurrentResultDown=function(){this.searchDropdownNavigator.focusNextElement()},n.prototype.moveCurrentResultUp=function(){this.searchDropdownNavigator.focusPreviousElement()},n.prototype.highlightCurrentQueryInSearchResults=function(n){this.facetSearch.getCaptions().forEach(function(t){t.innerHTML=r.$$(t).text().replace(n,'<span class="coveo-highlight">$1<\/span>')})},n.prototype.appendToSearchResults=function(n){this.searchResults.appendChild(n);this.setupFacetSearchResultsEvents(n)},n.prototype.emptyAndShowNoResults=function(){r.$$(this.searchResults).empty();this.searchResults.appendChild(r.$$("li",{id:this.facetValueNotFoundId,className:"coveo-facet-value-not-found",role:"option",ariaSelected:"true",tabindex:0},u.l("NoValuesFound")).el);this.input.setAttribute("aria-activedescendant",this.facetValueNotFoundId)},n.prototype.updateAriaLiveWithResults=function(n,t,i){var r=""===n?u.l("ShowingResults",t,n,t):u.l("ShowingResultsWithQuery",t,n,t);i&&(r=r+" ("+u.l("MoreValuesAvailable")+")");this.facetSearch.updateAriaLive(r)},n.prototype.focus=function(){this.input.focus();this.handleFacetSearchFocus()},n.prototype.handleFacetSearchFocus=function(){null==this.facetSearch.currentlyDisplayedResults&&(this.facetSearch.displayNewValues(),this.addAriaAttributes())},n.prototype.setupFacetSearchResultsEvents=function(n){var u=this,i,t;r.$$(n).on("mousemove",function(){u.setAsCurrentResult(r.$$(n))});i=!1;t=!1;r.$$(n).on("mousedown",function(){return t=!1});r.$$(n).on("mousemove",function(){return t=!0});r.$$(n).on("touchmove",function(){return i=!0});r.$$(n).on("mouseup touchend",function(){i||t||setTimeout(function(){u.facetSearch.dismissSearchResults()},0);i=!1;t=!1})},n.prototype.hideSearchResultsElement=function(){this.removeAriaAttributes();r.$$(this.searchResults).hide();r.$$(this.searchResults).remove()},n.prototype.clearSearchInput=function(){this.input&&(this.input.value="")},n.prototype.buildMagnifierIcon=function(){var n=document.createElement("div");return n.innerHTML=e.SVGIcons.icons.search,r.$$(n).addClass("coveo-facet-search-magnifier"),o.SVGDom.addClassToSVGInContainer(n,"coveo-facet-search-magnifier-svg"),this.search.appendChild(n),n},n.prototype.buildWaitIcon=function(){var n=document.createElement("div");return n.innerHTML=e.SVGIcons.icons.loading,r.$$(n).addClass("coveo-facet-search-wait-animation"),o.SVGDom.addClassToSVGInContainer(n,"coveo-facet-search-wait-animation-svg"),n},n.prototype.buildInputElement=function(){return r.$$("input",{className:"coveo-facet-search-input",type:"text",autocapitalize:"off",autocorrect:"off",ariaLabel:u.l("SearchFacetResults",this.facetSearch.facetTitle),ariaHaspopup:"true",ariaAutocomplete:"list"}).el},n.prototype.handleScrollEvent=function(){this.triggeredScroll?this.triggeredScroll=!1:this.facetSearchUserInputHandler.handleFacetSearchResultsScroll()},n.prototype.addAriaAttributes=function(){this.input&&this.combobox&&(this.combobox.setAttribute("role","combobox"),this.combobox.setAttribute("aria-owns",this.facetSearchId),this.input.setAttribute("aria-controls",this.facetSearchId),this.input.setAttribute("aria-expanded","true"),this.facetSearch.setExpandedFacetSearchAccessibilityAttributes(this.searchResults))},n.prototype.removeAriaAttributes=function(){this.input&&this.combobox&&(this.combobox.removeAttribute("role"),this.combobox.removeAttribute("aria-owns"),this.input.removeAttribute("aria-controls"),this.input.removeAttribute("aria-activedescendant"),this.input.setAttribute("aria-expanded","false"),this.facetSearch.setCollapsedFacetSearchAccessibilityAttributes())},n}();t.FacetSearchElement=v},function(n,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var u=i(0),r=i(1),f=function(){function n(n){this.config=n}return n.prototype.setAsCurrentResult=function(n){this.currentResult&&this.currentResult.removeClass("coveo-facet-search-current-result");this.currentResult=n;n.addClass("coveo-facet-search-current-result");this.updateSelectedOption(n)},n.prototype.focusNextElement=function(){this.moveCurrentResultDown()},n.prototype.focusPreviousElement=function(){this.moveCurrentResultUp()},n.prototype.moveCurrentResultDown=function(){var n=this.currentResult.el.nextElementSibling;n||(n=u.first(this.searchResults.children));this.setAsCurrentResult(r.$$(n));this.highlightAndShowCurrentResultWithKeyboard()},n.prototype.moveCurrentResultUp=function(){var n=this.currentResult.el.previousElementSibling;n||(n=u.last(this.searchResults.children));this.setAsCurrentResult(r.$$(n));this.highlightAndShowCurrentResultWithKeyboard()},n.prototype.highlightAndShowCurrentResultWithKeyboard=function(){this.currentResult.addClass("coveo-facet-search-current-result");this.config.setScrollTrigger(!0);this.searchResults.scrollTop=this.currentResult.el.offsetTop},Object.defineProperty(n.prototype,"searchResults",{get:function(){return this.config.searchResults},enumerable:!0,configurable:!0}),n.prototype.updateSelectedOption=function(n){this.config.input.setAttribute("aria-activedescendant",n.getAttribute("id"));var t=r.$$(this.searchResults).find('[aria-selected^="true"]');t&&t.setAttribute("aria-selected","false");n.setAttribute("aria-selected","true")},n}();t.DefaultSearchDropdownNavigator=f},function(n,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=i(549),u=i(0),f=function(){function n(n,t,i,r){this.element=n;this.categoryFacetTemplates=t;this.categoryValue=i;this.categoryFacet=r;this.children=[]}return n.prototype.clearChildren=function(){this.element.removeClass("coveo-active-category-facet-parent");this.children.forEach(function(n){n.clear()});this.children=[]},n.prototype.renderChildren=function(n){var t=this;u.each(n,function(n){t.renderValue(n,!0).makeSelectable()})},n.prototype.renderAsParent=function(n){return this.renderValue(n,!1)},n.prototype.renderValue=function(n,t){var u=this.categoryValue.path.concat([n.value]),f={value:n.value,count:n.numberOfResults,path:u},i=new r.CategoryValue(this.categoryValue.listRoot,f,this.categoryFacetTemplates,this.categoryFacet);return i.render(t),this.children.push(i),i},n}();t.CategoryChildrenValueRenderer=f},function(n,t,i){"use strict";var v=this&&this.__extends||function(){var n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])};return function(t,i){function r(){this.constructor=t}n(t,i);t.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),c;Object.defineProperty(t,"__esModule",{value:!0});c=i(97);i(558);var u=i(0),y=i(17),h=i(13),f=i(6),o=i(15),r=i(1),l=i(25),p=i(41),a=i(16),s=i(12),e=i(4),w=i(10),b=i(483),k=function(n){function t(t,i){var r=n.call(this,t,i)||this;return r.sorts=t,r.facet=i,r.customSortDirectionChange=!1,r.onDocumentClick=function(){return r.close()},r.enabledSortsIgnoreRenderBecauseOfPairs=[],r.filterDuplicateForRendering(),r}return v(t,n),Object.defineProperty(t.prototype,"isExpanded",{get:function(){return this.settingsButton&&this.settingsButton.getAttribute("aria-expanded")==="true"},set:function(n){this.settingsButton.setAttribute("aria-expanded",""+n)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"firstFocusablePopupElement",{get:function(){return u.find(r.$$(this.settingsPopup).findAll("[tabindex]"),function(n){return n.tabIndex>=0})},enumerable:!0,configurable:!0}),t.prototype.build=function(){var n=this,t;return this.buildSettingsButton(),this.buildSettingsPopup(),e.Utils.isNonEmptyArray(this.enabledSorts)&&(this.sortSection=this.buildSortSection(),this.enabledSortsAllowDirection()&&(this.directionSection=this.buildDirectionSection())),this.facet.options.enableSettingsFacetState&&(this.saveStateSection=this.buildSaveStateSection(),this.clearStateSection=this.buildClearStateSection()),this.facet.options.enableCollapse&&(this.hideSection=this.buildHideSection(),this.showSection=this.buildShowSection()),t=function(){n.appendIfNotUndefined(n.saveStateSection);n.appendIfNotUndefined(n.clearStateSection);n.appendIfNotUndefined(n.hideSection);n.appendIfNotUndefined(n.showSection)},this.addOnDocumentClickHandler(),this.addOnNukeHandler(),e.Utils.isNonEmptyArray(this.enabledSorts)?(this.settingsPopup.appendChild(this.sortSection.element),u.each(this.directionSection,function(t){n.appendIfNotUndefined(t)}),t()):t(),this.settingsButton},t.prototype.loadSavedState=function(){var n;if(this.facetStateLocalStorage){var t=this.facetStateLocalStorage.load(),i=this.facet.queryStateModel.get(this.includedStateAttribute),r=this.facet.queryStateModel.get(this.excludedStateAttribute),u=this.facet.queryStateModel.get(this.operatorStateAttribute);!e.Utils.isNullOrUndefined(t)&&e.Utils.isEmptyArray(i)&&e.Utils.isEmptyArray(r)&&!e.Utils.isNonEmptyString(u)&&(n={},n[this.includedStateAttribute]=t.included,n[this.excludedStateAttribute]=t.excluded,n[this.operatorStateAttribute]=t.operator,this.facet.queryStateModel.setMultiple(n),this.loadedFromSettings=n)}else this.facet.logger.info("Facet state local storage not enabled : See Facet.options.enableSettingsFacetState")},t.prototype.saveState=function(){this.facetStateLocalStorage?this.facetStateLocalStorage.save({included:this.facet.queryStateModel.get(this.includedStateAttribute),excluded:this.facet.queryStateModel.get(this.excludedStateAttribute),operator:this.facet.queryStateModel.get(this.operatorStateAttribute)}):this.facet.logger.info("Facet state local storage not enabled : See Facet.options.enableSettingsFacetState")},t.prototype.close=function(){this.isExpanded&&(this.isExpanded=!1,r.$$(this.settingsPopup).detach())},t.prototype.open=function(){var n=this,t;r.$$(this.settingsPopup).insertAfter(this.settingsButton);new c.default(this.settingsButton,this.settingsPopup);this.isExpanded=!0;this.hideSection&&this.showSection&&(r.$$(this.hideSection).toggle(!r.$$(this.facet.element).hasClass("coveo-facet-collapsed")),r.$$(this.showSection).toggle(r.$$(this.facet.element).hasClass("coveo-facet-collapsed")));this.facet.options.enableSettingsFacetState&&r.$$(this.clearStateSection).toggle(!e.Utils.isNullOrUndefined(this.facetStateLocalStorage.load()));u.each(this.enabledSorts,function(t){n.activeSort.name==t.name.toLowerCase()?n.selectItem(n.getSortItem(t.name)):n.unselectItem(n.getSortItem(t.name))});t=this.firstFocusablePopupElement;t&&t.focus()},t.prototype.getSortItem=function(n){return u.find(this.sortSection.sortItems,function(t){return r.$$(t).getAttribute("data-sort-name").toLowerCase()==n.replace("ascending|descending","").toLowerCase()})},Object.defineProperty(t.prototype,"button",{get:function(){return this.settingsButton},enumerable:!0,configurable:!0}),t.prototype.buildSettingsButton=function(){var n=this;this.settingsButton=r.$$("div",{className:"coveo-facet-header-settings","aria-haspopup":"true"}).el;this.settingsButton.innerHTML=s.SVGIcons.icons.more;a.SVGDom.addClassToSVGInContainer(this.settingsButton,"coveo-facet-settings-more-svg");this.hideElementOnMouseEnterLeave(this.settingsButton);this.isExpanded=!1;(new o.AccessibleButton).withElement(this.settingsButton).withLabel(f.l("Settings")).withClickAction(function(t){return n.handleSettingsButtonClick(t)}).withEnterKeyboardAction(function(t){return n.handleSettingsButtonClick(t)}).build()},t.prototype.hideElementOnMouseEnterLeave=function(n){var t=this,i=function(){return t.closeTimeout=window.setTimeout(function(){return t.close()},300)},u=function(){return clearTimeout(t.closeTimeout)};r.$$(n).on("mouseleave",i);r.$$(n).on("mouseenter",u);r.$$(n).on("keyup",l.KeyboardUtils.keypressAction(l.KEYBOARD.ESCAPE,function(){return t.handleKeyboardClose()}))},t.prototype.handleKeyboardClose=function(){this.close();this.settingsButton.focus()},t.prototype.buildSettingsPopup=function(){var n=this;this.settingsPopup=r.$$("div",{className:"coveo-facet-settings-popup"}).el;this.hideElementOnMouseEnterLeave(this.settingsPopup);r.$$(this.settingsPopup).on("focusout",function(t){t.relatedTarget&&n.settingsPopup.contains(t.relatedTarget)||n.close()})},t.prototype.buildSortSection=function(){var n=this.buildSection("coveo-facet-settings-section-sort"),o=this.buildIcon("coveo-facet-settings-section-sort-svg",s.SVGIcons.icons.sort),t=this.buildItems(),i=document.createElement("div"),e;return r.$$(i).addClass("coveo-facet-settings-section-sort-title"),r.$$(i).text(f.l("SortBy")+" :"),t.appendChild(i),e=this.buildSortSectionItems(),u.each(e,function(n){t.appendChild(n)}),n.appendChild(o),n.appendChild(t),{element:n,sortItems:e}},t.prototype.buildSortSectionItems=function(){var n=this,t=u.map(this.enabledSorts,function(t){if(!u.contains(n.enabledSortsIgnoreRenderBecauseOfPairs,t)){var i=n.buildItem(f.l(t.label),t.description);return r.$$(i).setAttribute("data-sort-name",t.name.toLowerCase().replace("ascending|descending","")),(new o.AccessibleButton).withElement(i).withSelectAction(function(i){return n.handleClickSortButton(i,t)}).withLabel(t.label).build(),i}});return u.compact(t)},t.prototype.closePopupAndUpdateSort=function(){this.close();"custom"!=this.activeSort.name?this.facet.updateSort(this.activeSort.name):(this.facet.updateSort("nosort"),this.customSortDirectionChange&&(this.customSortDirectionChange=!1,this.facet.queryController.executeQuery()))},t.prototype.enabledSortsAllowDirection=function(){var n=this,t=u.filter(this.enabledSorts,function(n){return n.directionToggle});return u.filter(t,function(t){return void 0!=u.findWhere(n.enabledSorts,{name:t.relatedSort})}).length>0},t.prototype.buildDirectionSection=function(){var f=this,n=this.buildAscendingOrDescendingSection("Ascending"),c=this.buildIcon("coveo-facet-settings-section-direction-ascending-svg",s.SVGIcons.icons.ascending),l=this.buildIcon("coveo-facet-settings-section-direction-descending-svg",s.SVGIcons.icons.descending),e=this.buildItems(),i=this.buildAscendingOrDescending("Ascending");e.appendChild(i);n.appendChild(c);n.appendChild(e);(new o.AccessibleButton).withElement(i).withoutLabelOrTitle().withSelectAction(function(){return f.handleDirectionClick(i,"ascending")}).build();this.unselectSection(n);var t=this.buildAscendingOrDescendingSection("Descending"),h=this.buildItems(),u=this.buildAscendingOrDescending("Descending");return h.appendChild(u),t.appendChild(l),t.appendChild(h),(new o.AccessibleButton).withElement(u).withoutLabelOrTitle().withSelectAction(function(){return f.handleDirectionClick(u,"descending")}).build(),this.unselectSection(t),this.activeSort.directionToggle?this.selectItem(this.getItems(n)[0]):(r.$$(n).addClass("coveo-facet-settings-disabled"),r.$$(t).addClass("coveo-facet-settings-disabled")),[n,t]},t.prototype.buildSaveStateSection=function(){var u=this,t=this.buildSection("coveo-facet-settings-section-save-state"),e=this.buildIcon("coveo-facet-settings-section-save-state-svg",s.SVGIcons.icons.dropdownMore),i=this.buildItems(),n;return this.facetStateLocalStorage=new p.LocalStorageUtils("facet-state-"+this.facet.options.id),this.includedStateAttribute=h.QueryStateModel.getFacetId(this.facet.options.id),this.excludedStateAttribute=h.QueryStateModel.getFacetId(this.facet.options.id,!1),this.operatorStateAttribute=h.QueryStateModel.getFacetOperator(this.facet.options.id),n=document.createElement("div"),r.$$(n).addClass("coveo-facet-settings-item"),n.setAttribute("title",f.l("SaveFacetState")),r.$$(n).text(f.l("SaveFacetState")),i.appendChild(n),t.appendChild(e),t.appendChild(i),(new o.AccessibleButton).withElement(t).withSelectAction(function(){return u.handleSaveStateClick()}).withoutLabelOrTitle().build(),t},t.prototype.buildClearStateSection=function(){var i=this,n=this.buildSection("coveo-facet-settings-section-clear-state"),r=this.buildIcon("coveo-facet-settings-section-clear-state-svg",s.SVGIcons.icons.dropdownLess),t=this.buildItems(),u=this.buildItem(f.l("ClearFacetState"));return t.appendChild(u),n.appendChild(r),n.appendChild(t),(new o.AccessibleButton).withElement(n).withSelectAction(function(){return i.handleClearStateClick()}).withoutLabelOrTitle().build(),n},t.prototype.buildHideSection=function(){var t=this,n=this.buildSection("coveo-facet-settings-section-hide"),r=this.buildIcon("coveo-facet-settings-section-hide-svg",s.SVGIcons.icons.facetCollapse),i=this.buildItems(),u=this.buildItem(f.l("Collapse"));return i.appendChild(u),n.appendChild(r),n.appendChild(i),(new o.AccessibleButton).withElement(n).withSelectAction(function(){t.facet.facetHeader.collapseFacet();t.close()}).withLabel(f.l("CollapseFacet",this.facet.options.title)).build(),n},t.prototype.buildShowSection=function(){var t=this,n=this.buildSection("coveo-facet-settings-section-show"),r=this.buildIcon("coveo-facet-settings-section-show-svg",s.SVGIcons.icons.facetExpand),i=this.buildItems(),u=this.buildItem(f.l("Expand"));return i.appendChild(u),n.appendChild(r),n.appendChild(i),(new o.AccessibleButton).withElement(n).withSelectAction(function(){t.facet.facetHeader.expandFacet();t.close()}).withLabel(f.l("ExpandFacet",this.facet.options.title)).build(),n},t.prototype.buildIcon=function(n,t){if(n&&t){var i=r.$$("div",{className:"coveo-icon-container"},t);return a.SVGDom.addClassToSVGInContainer(i.el,n),i.el}return r.$$("div",{className:"coveo-icon"}).el},t.prototype.buildAscendingOrDescending=function(n){var t=this.buildItem(f.l(n));return t.setAttribute("aria-disabled",this.activeSort.directionToggle?"false":"true"),t.setAttribute("data-direction",n.toLowerCase()),t},t.prototype.buildAscendingOrDescendingSection=function(n){return this.buildSection("coveo-facet-settings-section-direction-"+n.toLowerCase())},t.prototype.buildItem=function(n,t){return void 0===t&&(t=n),r.$$("div",{className:"coveo-facet-settings-item",title:t},u.escape(n)).el},t.prototype.buildItems=function(){var n=document.createElement("div");return r.$$(n).addClass("coveo-facet-settings-items"),n},t.prototype.buildSection=function(n){var t=document.createElement("div");return r.$$(t).addClass(["coveo-facet-settings-section",n]),t},t.prototype.handleSettingsButtonClick=function(n){n.stopPropagation();e.Utils.isNullOrUndefined(this.settingsPopup.parentElement)?this.open():this.close()},t.prototype.handleClickSortButton=function(n,i){this.activeSort!=i&&this.activeSort.relatedSort!=i.name&&(this.activeSort=i,i.directionToggle&&u.contains(this.enabledSorts,t.availableSorts[this.activeSort.relatedSort])?this.activateDirectionSection():this.disableDirectionSection(),this.unselectSection(this.sortSection.element),this.selectItem(n.target),this.closePopupAndUpdateSort())},t.prototype.handleDirectionClick=function(n,i){var r=this;"false"===n.getAttribute("aria-disabled")&&-1===this.activeSort.name.indexOf(i)&&(this.activeSort=t.availableSorts[this.activeSort.relatedSort],u.each(this.directionSection,function(n){r.unselectSection(n)}),this.selectItem(n),"custom"==this.activeSort.name&&this.customSortDirection!=i&&(this.customSortDirection=i,this.customSortDirectionChange=!0),this.closePopupAndUpdateSort())},t.prototype.handleSaveStateClick=function(){this.saveState();this.close()},t.prototype.handleClearStateClick=function(){var n=this;this.facetStateLocalStorage.remove();this.facet.reset();this.close();this.facet.triggerNewQuery(function(){return n.facet.usageAnalytics.logSearchEvent(w.analyticsActionCauseList.facetClearAll,{facetId:n.facet.options.id,facetField:n.facet.options.field.toString(),facetTitle:n.facet.options.title})})},t.prototype.addOnNukeHandler=function(){var n=this;r.$$(this.facet.root).on(y.InitializationEvents.nuke,function(){return n.handleNuke()})},t.prototype.addOnDocumentClickHandler=function(){var n=this;document.addEventListener("click",function(){return n.onDocumentClick()})},t.prototype.getCurrentDirectionItem=function(n){var i=this,t;return void 0===n&&(n=this.directionSection),u.each(n,function(n){t||(t=u.find(i.getItems(n),function(n){return-1!=i.activeSort.name.indexOf(n.getAttribute("data-direction"))}))}),t||(t=n[0]),t},t.prototype.activateDirectionSection=function(){var n=this;u.each(this.directionSection,function(t){r.$$(t).removeClass("coveo-facet-settings-disabled");r.$$(t).find(".coveo-facet-settings-item").setAttribute("aria-disabled","false");n.unselectSection(t)});this.selectItem(this.getCurrentDirectionItem())},t.prototype.disableDirectionSection=function(){var n=this;u.each(this.directionSection,function(t){r.$$(t).addClass("coveo-facet-settings-disabled");r.$$(t).find(".coveo-facet-settings-item").setAttribute("aria-disabled","true");n.unselectSection(t)})},t.prototype.getItems=function(n){return r.$$(n).findAll(".coveo-facet-settings-item")},t.prototype.unselectSection=function(n){var t=this;u.each(this.getItems(n),function(n){return t.unselectItem(n)})},t.prototype.selectItem=function(n){n&&(r.$$(n).addClass("coveo-selected"),n.setAttribute("aria-pressed","true"))},t.prototype.unselectItem=function(n){n&&(r.$$(n).removeClass("coveo-selected"),n.setAttribute("aria-pressed","false"))},t.prototype.filterDuplicateForRendering=function(){var n=this;u.each(this.enabledSorts,function(t,i){if(null!=t.relatedSort)for(var r=i+1;r<n.enabledSorts.length;r++)if(n.enabledSorts[r].name==t.relatedSort){n.enabledSortsIgnoreRenderBecauseOfPairs.push(n.enabledSorts[r]);break}})},t.prototype.appendIfNotUndefined=function(n){e.Utils.isNullOrUndefined(n)||this.settingsPopup.appendChild(n)},t.prototype.handleNuke=function(){document.removeEventListener("click",this.onDocumentClick)},t}(b.FacetSort);t.FacetSettings=k},function(n,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=i(6),f=i(482),e=i(4),u=i(0),o=function(){function n(n,t){var i=this;this.facet=t;this.enabledSorts=[];this.customSortDirection="ascending";u.each(n,function(n){var t=f.FacetSettings.availableSorts[n.toLowerCase()];void 0!=t&&i.enabledSorts.push(t)});this.removeEnabledSortsBasedOnFacetType();e.Utils.isNonEmptyArray(this.enabledSorts)&&(void 0!=this.facet.options.sortCriteria&&(this.activeSort=u.find(this.enabledSorts,function(n){return n.name==i.facet.options.sortCriteria})),this.activeSort||(this.activeSort=this.enabledSorts[0]))}return n.prototype.removeEnabledSortsBasedOnFacetType=function(){Coveo.FacetRange&&this.facet instanceof Coveo.FacetRange&&this.facet.options.slider&&(this.enabledSorts=[])},n.availableSorts={score:{label:r.l("Score"),directionToggle:!1,description:r.l("ScoreDescription"),name:"score"},occurrences:{label:r.l("Occurrences"),directionToggle:!1,description:r.l("OccurrencesDescription"),name:"occurrences"},alphaascending:{label:r.l("Label"),directionToggle:!0,description:r.l("LabelDescription"),name:"alphaascending",relatedSort:"alphadescending"},alphadescending:{label:r.l("Label"),directionToggle:!0,description:r.l("LabelDescription"),name:"alphadescending",relatedSort:"alphaascending"},computedfieldascending:{label:r.l("Value"),directionToggle:!0,description:r.l("ValueDescription"),name:"computedfieldascending",relatedSort:"computedfielddescending"},computedfielddescending:{label:r.l("Value"),directionToggle:!0,description:r.l("ValueDescription"),name:"computedfielddescending",relatedSort:"computedfieldascending"},chisquare:{label:r.l("RelativeFrequency"),directionToggle:!1,description:r.l("RelativeFrequencyDescription"),name:"chisquare"},nosort:{label:r.l("Nosort"),directionToggle:!1,description:r.l("NosortDescription"),name:"nosort"},custom:{label:r.l("Custom"),directionToggle:!0,description:r.l("CustomDescription"),name:"custom",relatedSort:"custom"}},n}();t.FacetSort=o},function(n,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=i(1),u=i(6),o=i(10);i(538);var f=i(12),e=i(16),s=i(15),h=function(){function n(n){this.options=n;this.element=document.createElement("div");r.$$(this.element).addClass("coveo-facet-header")}return n.prototype.build=function(){var t=r.$$("div",{className:"coveo-facet-header-title-section"}),n;return void 0!=this.options.icon&&(this.iconElement=this.buildIcon(),t.append(this.iconElement)),t.append(this.buildTitle()),this.waitElement=this.buildWaitAnimation(),t.append(this.waitElement),this.element.appendChild(t.el),n=r.$$("div",{className:"coveo-facet-header-settings-section"}),this.eraserElement=this.buildEraser(),n.append(this.eraserElement),this.options.facet&&(this.operatorElement=this.buildOperatorToggle(),n.append(this.operatorElement),r.$$(this.operatorElement).toggle(this.options.facet.options.enableTogglingOperator)),this.options.settingsKlass?(this.sort=this.settings=new this.options.settingsKlass(this.options.availableSorts,this.options.facet),n.append(this.settings.build())):this.options.sortKlass&&(this.sort=new this.options.sortKlass(this.options.availableSorts,this.options.facet)),this.element.appendChild(n.el),this.element},n.prototype.switchToAnd=function(){this.options.facet&&(this.options.facet.options.useAnd=!0,this.rebuildOperatorToggle(),this.updateOperatorQueryStateModel())},n.prototype.switchToOr=function(){this.options.facet&&(this.options.facet.options.useAnd=!1,this.rebuildOperatorToggle(),this.updateOperatorQueryStateModel())},n.prototype.collapseFacet=function(){this.collapseElement&&this.expandElement&&(r.$$(this.collapseElement).hide(),r.$$(this.expandElement).show());r.$$(this.options.facetElement).addClass("coveo-facet-collapsed")},n.prototype.expandFacet=function(){this.collapseElement&&this.expandElement&&(r.$$(this.expandElement).hide(),r.$$(this.collapseElement).show());r.$$(this.options.facetElement).removeClass("coveo-facet-collapsed")},n.prototype.updateOperatorQueryStateModel=function(){if(this.options.facet&&this.options.facet.options.enableTogglingOperator){var n="";0==this.options.facet.getSelectedValues().length&&0==this.options.facet.getExcludedValues().length||(n=this.options.facet.options.useAnd?"and":"or");this.options.facet.queryStateModel.set(this.options.facet.operatorAttributeId,n)}},n.prototype.rebuildOperatorToggle=function(){var n=this.buildOperatorToggle();this.operatorElement&&r.$$(this.operatorElement).replaceWith(n);this.operatorElement=n},n.prototype.buildIcon=function(){var n;return n=this.options.icon?"coveo-icon-custom "+this.options.icon:"coveo-icon "+this.options.field.substr(1),this.iconElement=document.createElement("div"),r.$$(this.iconElement).addClass(n),this.iconElement},n.prototype.buildWaitAnimation=function(){return this.waitElement=r.$$("div",{className:"coveo-facet-header-wait-animation"},f.SVGIcons.icons.loading).el,e.SVGDom.addClassToSVGInContainer(this.waitElement,"coveo-facet-header-wait-animation-svg"),this.waitElement.style.visibility="hidden",this.waitElement},n.prototype.buildOperatorToggle=function(){var o=this,t=u.l("SwitchTo",this.options.facet.options.useAnd?u.l("Or"):u.l("And")),i=r.$$("span",{className:"coveo-"+(this.options.facet.options.useAnd?"and":"or")},f.SVGIcons.icons.orAnd),n;return e.SVGDom.addClassToSVGInContainer(i.el,"coveo-or-and-svg"),n=r.$$("div",{className:"coveo-facet-header-operator",title:t}),n.append(i.el),(new s.AccessibleButton).withElement(n).withLabel(t).withSelectAction(function(){return o.handleOperatorClick()}).build(),n.el},n.prototype.handleOperatorClick=function(){var n=this,t,i;(this.options.facet.options.useAnd?this.options.facet.switchToOr():this.options.facet.switchToAnd(),0!=this.options.facet.getSelectedValues().length)&&(t=this.options.facet.options.useAnd?"AND":"OR",i=this.options.facet.options.useAnd?"OR":"AND",this.options.facet.triggerNewQuery(function(){return n.options.facet.usageAnalytics.logSearchEvent(o.analyticsActionCauseList.facetToggle,{facetId:n.options.facet.options.id,facetField:n.options.field.toString(),facetOperatorBefore:i,facetOperatorAfter:t,facetTitle:n.options.title})}))},n.prototype.buildTitle=function(){var n=r.$$("div",{className:"coveo-facet-header-title"});return n.text(this.options.title),n.setAttribute("role","heading"),n.setAttribute("aria-level","2"),n.setAttribute("aria-label",u.l("FacetTitle",this.options.title)+"."),n.el},n.prototype.buildEraser=function(){var t=this,n=r.$$("div",{className:"coveo-facet-header-eraser"},f.SVGIcons.icons.mainClear);return e.SVGDom.addClassToSVGInContainer(n.el,"coveo-facet-header-eraser-svg"),(new s.AccessibleButton).withElement(n.el).withLabel(u.l("Clear",this.options.title)).withClickAction(function(){return t.onEraserClick()}).withEnterKeyboardAction(function(){return t.onEraserClick()}).build(),n.el},n.prototype.onEraserClick=function(){var n=this.options.facet||this.options.facetSlider;n.reset();n.usageAnalytics.logSearchEvent(o.analyticsActionCauseList.facetClearAll,{facetId:n.options.id,facetField:n.options.field.toString(),facetTitle:n.options.title});n.queryController.executeQuery()},n}();t.FacetHeader=h},function(n,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});i(542);var u=i(0),f=i(5),e=i(15),r=i(1),o=i(12),s=i(10),h=i(6),c=function(){function n(n,t){this.facet=n;this.facetValue=t}return n.prototype.build=function(){f.Assert.exists(this.facetValue);var n=this.buildElements(),t=n.container,r=n.caption,u=n.clear,i=n.listContainer;return t.append(r.el),t.append(u.el),i.append(t.el),i},n.prototype.getBreadcrumbTooltip=function(){var n=[this.facet.getValueCaption(this.facetValue),this.facetValue.getFormattedCount(),this.facetValue.getFormattedComputedField(this.facet.options.computedFieldFormat)];return u.compact(n).join(" ")},n.prototype.buildElements=function(){return{container:this.buildContainer(),clear:this.buildClear(),caption:this.buildCaption(),listContainer:this.buildListContainer()}},n.prototype.buildContainer=function(){var u=this,n=r.$$("div",{className:"coveo-facet-breadcrumb-value"}),t,i;return n.toggleClass("coveo-selected",this.facetValue.selected),n.toggleClass("coveo-excluded",this.facetValue.excluded),t=this.facetValue.excluded?"Unexclude":"RemoveFilterOn",i=h.l(t,this.facet.getValueCaption(this.facetValue)),(new e.AccessibleButton).withElement(n).withLabel(i).withSelectAction(function(){return u.selectAction()}).build(),n},n.prototype.buildListContainer=function(){return r.$$("li",{className:"coveo-facet-breadcrumb-value-list-item"})},n.prototype.buildClear=function(){return r.$$("span",{className:"coveo-facet-breadcrumb-clear"},o.SVGIcons.icons.mainClear)},n.prototype.buildCaption=function(){var n=r.$$("span",{className:"coveo-facet-breadcrumb-caption"});return n.text(this.facet.getValueCaption(this.facetValue)),n},n.prototype.selectAction=function(){var n=this;this.facetValue.excluded?this.facet.unexcludeValue(this.facetValue.value):this.facet.deselectValue(this.facetValue.value);this.facet.triggerNewQuery(function(){return n.facet.usageAnalytics.logSearchEvent(s.analyticsActionCauseList.breadcrumbFacet,{facetId:n.facet.options.id,facetField:n.facet.options.field.toString(),facetValue:n.facetValue.value,facetTitle:n.facet.options.title})});this.focusOnContainer()},n.prototype.focusOnContainer=function(){var n=u.first(this.facet.searchInterface.getComponents("Breadcrumb"));n&&n.element.focus()},n}();t.BreadcrumbValueElement=c},function(n,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var f=i(23),u=i(0),e=i(5),o=i(6),r=i(1),s=i(15),h=i(48),c=function(){function n(n,t,i,u){this.facet=n;this.facetValues=t;this.breadcrumbValueElementKlass=i;this.options=u;this.setExpandedAndCollapsed();this.elem=r.$$("div",{className:"coveo-facet-breadcrumb"}).el;var f=r.$$(h.getHeadingTag(this.options&&this.options.headingLevel,"span"));f.addClass("coveo-facet-breadcrumb-title");f.text(this.facet.options.title+":");this.elem.appendChild(f.el);this.valueContainer=r.$$("ul",{className:"coveo-facet-breadcrumb-values"}).el;this.elem.appendChild(this.valueContainer)}return n.prototype.build=function(){return this.buildExpanded(),0!=this.collapsed.length&&this.buildCollapsed(),this.elem},n.prototype.buildAsString=function(){return this.build(),this.elem?this.facet.options.title+": "+r.$$(this.elem).findAll(".coveo-facet-breadcrumb-value").map(function(n){return r.$$(n).text()}).join(", "):""},n.prototype.buildExpanded=function(){var n=this;this.expanded.forEach(function(t){var i=new n.breadcrumbValueElementKlass(n.facet,t).build();n.valueContainer.appendChild(i.el)})},n.prototype.buildCollapsed=function(){var n=this,i=u.filter(this.collapsed,function(n){return n.selected}).length,h=u.filter(this.collapsed,function(n){return n.excluded}).length;e.Assert.check(i+h==this.collapsed.length);var t=r.$$("div",{className:"coveo-facet-breadcrumb-value"},r.$$("span",{className:"coveo-facet-breadcrumb-multi-count"},o.l("NMore",f.format(i+h,"n0")))),l=r.$$("li",{className:"coveo-facet-breadcrumb-value-list-item"},t),c=this.collapsed.map(function(t){return new n.breadcrumbValueElementKlass(n.facet,t)}),a=c.map(function(n){return n.getBreadcrumbTooltip()}).join("\n");(new s.AccessibleButton).withElement(t).withTitle(a).withSelectAction(function(){t.remove();c.forEach(function(t){n.valueContainer.appendChild(t.build().el)})}).build();this.valueContainer.appendChild(l.el)},n.prototype.setExpandedAndCollapsed=function(){this.facetValues.length>this.facet.options.numberOfValuesInBreadcrumb?(this.collapsed=u.rest(this.facetValues,this.facet.options.numberOfValuesInBreadcrumb),this.expanded=u.first(this.facetValues,this.facet.options.numberOfValuesInBreadcrumb)):(this.collapsed=[],this.expanded=this.facetValues)},n}();t.BreadcrumbValueList=c},function(n,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s=i(69),r=i(1),f=i(4),c=i(17),o=i(172),l=i(10),a=i(6),e=i(5),h=i(118),v=i(22),y=i(131),p=i(26),w=i(19),b=i(130),k=i(478);i(543);var u=i(0),d=i(479),g=function(){function n(n,t,i){var f=this;this.facet=n;this.facetSearchValuesListKlass=t;this.root=i;this.moreValuesToFetch=!0;this.lastSearchWasEmpty=!0;this.facetSearchElement=new d.FacetSearchElement(this);this.onResize=u.debounce(function(){f.facet instanceof s.Facet&&f.facet.searchInterface instanceof w.SearchInterface&&f.shouldPositionSearchResults()&&f.positionSearchResults()},250);this.onDocumentClick=function(n){f.handleClickElsewhere(n)};window.addEventListener("resize",this.onResize);document.addEventListener("click",function(n){return f.onDocumentClick(n)});r.$$(n.root).on(c.InitializationEvents.nuke,function(){return f.handleNuke()})}return Object.defineProperty(n.prototype,"facetType",{get:function(){return s.Facet.ID},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"facetTitle",{get:function(){return this.facet.options.title||this.facet.options.field.toString()},enumerable:!0,configurable:!0}),n.prototype.build=function(){return this.buildBaseSearch()},n.prototype.positionSearchResults=function(){this.facetSearchElement.positionSearchResults()},n.prototype.fetchMoreValues=function(){this.triggerNewFacetSearch(this.buildParamsForFetchingMore())},n.prototype.dismissSearchResults=function(){this.cancelAnyPendingSearchOperation();this.facet.unfadeInactiveValuesInMainList();r.$$(this.searchResults).empty();this.moreValuesToFetch=!0;r.$$(this.search).removeClass("coveo-facet-search-no-results");r.$$(this.facet.element).removeClass("coveo-facet-searching");this.facetSearchElement.hideSearchResultsElement();this.input.value="";r.$$(this.clear).hide();this.currentlyDisplayedResults=void 0},n.prototype.triggerNewFacetSearch=function(n){var t=this;this.cancelAnyPendingSearchOperation();this.facetSearchElement.showFacetSearchWaitingAnimation();this.facet.logger.info("Triggering new facet search");this.facetSearchPromise=this.facet.facetQueryController.search(n);this.facetSearchPromise&&this.facetSearchPromise.then(function(i){t.facet.usageAnalytics.logCustomEvent(l.analyticsActionCauseList.facetSearch,{facetId:t.facet.options.id,facetField:t.facet.options.field.toString(),facetTitle:t.facet.options.title},t.facet.root);t.facet.logger.debug("Received field values",i);t.processNewFacetSearchResults(i,n);t.facetSearchElement.hideFacetSearchWaitingAnimation();t.facetSearchPromise=void 0}).catch(function(n){return f.Utils.exists(n)&&(t.facet.logger.error("Error while retrieving facet values",n),t.facetSearchElement.hideFacetSearchWaitingAnimation()),t.facetSearchPromise=void 0,null})},n.prototype.focus=function(){this.facetSearchElement.focus()},Object.defineProperty(n.prototype,"searchResults",{get:function(){return this.facetSearchElement.searchResults},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"searchBarIsAnimating",{get:function(){return this.facetSearchElement.searchBarIsAnimating},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"search",{get:function(){return this.facetSearchElement.search},enumerable:!0,configurable:!0}),n.prototype.setExpandedFacetSearchAccessibilityAttributes=function(n){this.facet.setExpandedFacetSearchAccessibilityAttributes(n)},n.prototype.setCollapsedFacetSearchAccessibilityAttributes=function(){this.facet.setCollapsedFacetSearchAccessibilityAttributes()},n.prototype.keyboardEventDefaultHandler=function(){this.moreValuesToFetch=!0;this.highlightCurrentQueryWithinSearchResults();this.inputIsEmpty()?this.lastSearchWasEmpty||(this.currentlyDisplayedResults=void 0,r.$$(this.searchResults).empty(),this.lastSearchWasEmpty=!0,this.displayNewValues(this.buildParamsForFetchingMore())):(this.lastSearchWasEmpty=!1,this.displayNewValues(this.buildParamsForNormalSearch()))},n.prototype.keyboardNavigationEnterPressed=function(n){n.shiftKey?this.triggerNewFacetSearch(this.buildParamsForNormalSearch()):"none"!=this.searchResults.style.display?(this.performActionOnCurrentSearchResult(),this.dismissSearchResults()):r.$$(this.search).is(".coveo-facet-search-no-results")&&this.selectAllValuesMatchingSearch()},n.prototype.keyboardNavigationDeletePressed=function(n){n.shiftKey&&(this.performExcludeActionOnCurrentSearchResult(),this.dismissSearchResults(),this.input.value="")},n.prototype.displayNewValues=function(n){var t=this;void 0===n&&(n=this.buildParamsForExcludingCurrentlyDisplayedValues());this.cancelAnyPendingSearchOperation();this.facetSearchTimeout=window.setTimeout(function(){t.triggerNewFacetSearch(n)},this.facet.options.facetSearchDelay)},n.prototype.getCaptions=function(){return r.$$(this.searchResults).findAll(".coveo-facet-value-caption")},n.prototype.getValueInInputForFacetSearch=function(){return this.facetSearchElement.getValueInInputForFacetSearch()},n.prototype.updateAriaLive=function(n){this.facet.searchInterface.ariaLive.updateText(n)},Object.defineProperty(n.prototype,"input",{get:function(){return this.facetSearchElement.input},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"clear",{get:function(){return this.facetSearchElement.clear},enumerable:!0,configurable:!0}),n.prototype.shouldPositionSearchResults=function(){return!b.ResponsiveComponentsUtils.isSmallFacetActivated(r.$$(this.root))&&r.$$(this.facet.element).hasClass("coveo-facet-searching")},n.prototype.buildBaseSearch=function(){var n=this;return this.facetSearchElement.build(function(){return n.handleFacetSearchClear()}),r.$$(this.facetSearchElement.input).on("keyup",function(){return n.showOrHideClearElement()}),this.search},n.prototype.handleNuke=function(){window.removeEventListener("resize",this.onResize);document.removeEventListener("click",this.onDocumentClick)},n.prototype.handleClickElsewhere=function(n){this.currentlyDisplayedResults&&this.search!=n.target&&this.searchResults!=n.target&&this.input!=n.target&&this.dismissSearchResults()},n.prototype.handleFacetSearchClear=function(){this.input.value="";r.$$(this.clear).hide();this.dismissSearchResults()},n.prototype.showOrHideClearElement=function(){this.inputIsEmpty()?(r.$$(this.clear).hide(),r.$$(this.search).removeClass("coveo-facet-search-no-results")):r.$$(this.clear).show()},n.prototype.cancelAnyPendingSearchOperation=function(){f.Utils.exists(this.facetSearchTimeout)&&(clearTimeout(this.facetSearchTimeout),this.facetSearchTimeout=void 0);f.Utils.exists(this.facetSearchPromise)&&(Promise.reject(this.facetSearchPromise).catch(function(){}),this.facetSearchPromise=void 0);this.facetSearchElement.hideFacetSearchWaitingAnimation()},n.prototype.inputIsEmpty=function(){return""==this.input.value.trim()},n.prototype.processNewFacetSearchResults=function(n,t){e.Assert.exists(n);n=new k.FacetValuesOrder(this.facet,this.facet.facetSort).reorderValues(n);n.length>0?(r.$$(this.search).removeClass("coveo-facet-search-no-results"),this.facet.fadeInactiveValuesInMainList(this.facet.options.facetSearchDelay),this.rebuildSearchResults(n,t),t.fetchMore||this.showSearchResultsElement(),this.highlightCurrentQueryWithinSearchResults(),this.makeFirstSearchResultTheCurrentOne(),this.facetSearchElement.updateAriaLiveWithResults(this.input.value,this.currentlyDisplayedResults.length,this.moreValuesToFetch)):t.fetchMore?this.moreValuesToFetch=!1:(r.$$(this.search).addClass("coveo-facet-search-no-results"),this.showSearchResultsElement(),this.facetSearchElement.emptyAndShowNoResults())},n.prototype.rebuildSearchResults=function(n,t){var o=this,i;e.Assert.exists(n);t.fetchMore||r.$$(this.searchResults).empty();f.Utils.isNonEmptyString(t.valueToSearch)&&this.appendSelectAllResultsButton();i=u.map(n,function(n){return h.FacetValue.create(n)});u.each(new this.facetSearchValuesListKlass(this.facet,y.FacetValueElement).build(i),function(n){o.facetSearchElement.appendToSearchResults(n)});this.currentlyDisplayedResults=this.currentlyDisplayedResults?this.currentlyDisplayedResults.concat(u.pluck(i,"value")):u.pluck(i,"value");u.each(r.$$(this.searchResults).findAll(".coveo-facet-selectable"),function(n,t){r.$$(n).setAttribute("id","coveo-facet-search-"+o.facet.options.id+"-suggestion-"+t);r.$$(n).setAttribute("role","option");r.$$(n).setAttribute("aria-selected","false");r.$$(n).addClass("coveo-facet-search-selectable")})},n.prototype.appendSelectAllResultsButton=function(){var t=this,n=document.createElement("li");r.$$(n).addClass(["coveo-facet-selectable","coveo-facet-search-selectable","coveo-facet-search-select-all"]);r.$$(n).text(a.l("SelectAll"));r.$$(n).on("click",function(){return t.selectAllValuesMatchingSearch()});this.facetSearchElement.appendToSearchResults(n)},n.prototype.buildParamsForNormalSearch=function(){var n=new o.FacetSearchParameters(this.facet);return n.setValueToSearch(this.getValueInInputForFacetSearch()),n.fetchMore=!1,n},n.prototype.buildParamsForFetchingMore=function(){var n=this.buildParamsForExcludingCurrentlyDisplayedValues();return n.fetchMore=!0,n},n.prototype.buildParamsForExcludingCurrentlyDisplayedValues=function(){var n=new o.FacetSearchParameters(this.facet);return n.excludeCurrentlyDisplayedValuesInSearch(this.searchResults),n.setValueToSearch(this.getValueInInputForFacetSearch()),n},n.prototype.showSearchResultsElement=function(){this.positionSearchResults()},n.prototype.highlightCurrentQueryWithinSearchResults=function(){var n=this.getValueInInputForFacetSearch(),t=new RegExp("("+v.StringUtils.wildcardsToRegex(n,this.facet.options.facetSearchIgnoreAccents)+")","ig");this.facetSearchElement.highlightCurrentQueryInSearchResults(t)},n.prototype.makeFirstSearchResultTheCurrentOne=function(){this.facetSearchElement.setAsCurrentResult(r.$$(this.getSelectables()[0]))},n.prototype.getSelectables=function(n){return void 0===n&&(n=this.searchResults),r.$$(n).findAll(".coveo-facet-selectable")},n.prototype.performActionOnCurrentSearchResult=function(){var n=r.$$(this.searchResults).find(".coveo-facet-search-current-result"),t;if(e.Assert.check(void 0!=n),r.$$(n).hasClass("coveo-facet-value-will-exclude"))return void r.$$(n).find(".coveo-facet-value-exclude").click();t=r.$$(n).find('input[type="checkbox"]');t?(t.checked=!0,r.$$(t).trigger("change")):n.click()},n.prototype.performExcludeActionOnCurrentSearchResult=function(){var n=r.$$(this.searchResults).find(".coveo-facet-search-current-result"),t;e.Assert.check(null!=n);t=r.$$(n).find(".coveo-facet-value-caption");this.facet.facetValuesList.get(r.$$(t).text()).toggleExcludeWithUA()},n.prototype.selectAllValuesMatchingSearch=function(){var t=this,n;this.facet.showWaitingAnimation();n=new o.FacetSearchParameters(this.facet);n.nbResults=1e3;n.setValueToSearch(this.getValueInInputForFacetSearch());this.facet.facetQueryController.search(n).then(function(n){t.dismissSearchResults();p.ModalBox.close(!0);var i=u.map(n,function(n){var i=t.facet.values.get(n.value);return f.Utils.exists(i)||(i=h.FacetValue.create(n)),i.selected=!0,i.excluded=!1,i});t.facet.processFacetSearchAllResultsSelected(i)});this.dismissSearchResults()},n}();t.FacetSearch=g},function(n,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=i(0),u=function(){function n(n,t){this.facet=n;this.facetValueElementKlass=t}return n.prototype.build=function(n){var t=this,i=r.map(n,function(n){return r.find(t.facet.values.getAll(),function(t){return t.value==n.value})||n});return r.map(i,function(n){var i=new t.facetValueElementKlass(t.facet,n,t.facet.keepDisplayedValuesNextTime).build();return i.renderer.excludeIcon.setAttribute("aria-hidden","true"),i.renderer.label.setAttribute("aria-hidden","true"),i.renderer.listItem})},n}();t.FacetSearchValuesList=u},function(n,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var e=i(131),f=i(1),r=i(118),o=i(4),s=i(40),u=i(0),h=function(){function n(n,t){this.facet=n;this.facetValueElementKlass=t;this.valueList={};this.currentlyDisplayed=[]}return n.prototype.build=function(){return this.valueContainer=document.createElement("ul"),f.$$(this.valueContainer).addClass("coveo-facet-values"),this.valueContainer},n.prototype.getAllCurrentlyDisplayed=function(){return this.currentlyDisplayed},n.prototype.getAll=function(){return u.toArray(this.valueList)},n.prototype.getAllFacetValue=function(){return u.map(this.getAll(),function(n){return n.facetValue})},n.prototype.get=function(n){var t;return n instanceof r.FacetValue?t=n.value:(n=o.Utils.anyTypeToString(n),t=n),this.ensureFacetValueIsInList(n),this.valueList[t.toLowerCase()]},n.prototype.select=function(n){var t=this.get(n);return t.select(),t},n.prototype.unselect=function(n){var t=this.get(n);return t.unselect(),t},n.prototype.exclude=function(n){var t=this.get(n);return t.exclude(),t},n.prototype.unExclude=function(n){var t=this.get(n);return t.unexclude(),t},n.prototype.toggleSelect=function(n){var t=this.get(n);return t.facetValue.selected?t.unselect():t.select(),t},n.prototype.toggleExclude=function(n){var t=this.get(n);return t.facetValue.excluded?t.unexclude():t.exclude(),t},n.prototype.rebuild=function(n){var t=this;f.$$(this.valueContainer).empty();this.currentlyDisplayed=[];var e=this.getValuesToBuildWith(),i=n,r=document.createDocumentFragment();u.each(e,function(n,u){var f,e;t.facetValueShouldBeRemoved(n)?(t.facet.values.remove(n.value),i+=1):u<i&&(f=new t.facetValueElementKlass(t.facet,n,!0),t.valueList[n.value.toLowerCase()]=f,e=f.build().renderer.listItem,r.appendChild(e),t.currentlyDisplayed.push(f))});this.valueContainer.appendChild(r);s.FacetUtils.addNoStateCssClassToFacetValues(this.facet,this.valueContainer)},n.prototype.getValuesToBuildWith=function(){return this.facet.values.getAll()},n.prototype.facetValueShouldBeRemoved=function(n){return!(0!=n.occurrences||0!=n.delta&&void 0!=n.delta||n.selected||n.excluded||this.facet.keepDisplayedValuesNextTime)},n.prototype.ensureFacetValueIsInList=function(n){var t,u,i;n instanceof r.FacetValue?null==(t=this.facet.values.get(n.value))&&(this.facet.values.add(n),t=n):null==(t=this.facet.values.get(n))&&(t=r.FacetValue.createFromValue(n),this.facet.values.add(t));u=t.value.toLowerCase();i=this.valueList[u];void 0==i?(i=this.valueList[u]=new e.FacetValueElement(this.facet,t,!0),i.build()):i.facetValue=t},n}();t.FacetValuesList=h},function(n,t,i){"use strict";var f=this&&this.__extends||function(){var n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])};return function(t,i){function r(){this.constructor=t}n(t,i);t.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),r,u;Object.defineProperty(t,"__esModule",{value:!0});r=i(476);u=function(n){function t(t,i,r,u,f){var e=n.call(this,t,i,u,f)||this;return e.facet=t,e.facetValue=i,e.eventArg=r,e}return f(t,n),t.prototype.bindEvent=function(){n.prototype.bindEvent.call(this,{displayNextTime:!1,pinFacet:!1,omniboxObject:this.eventArg})},t}(r.ValueElement);t.OmniboxValueElement=u},function(n,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var u=i(0),r=i(1),f=i(4),e=i(40),o=function(){function n(n,t,i,r){this.facet=n;this.facetValues=t;this.omniboxObject=i;this.omniboxValueElementKlass=r}return n.prototype.build=function(){var n=this,t=[];return u.each(this.facetValues,function(i){t.push(n.buildOmniboxForOneRow(i,n.omniboxObject))}),this.buildFinalOmniboxElement(t)},n.prototype.buildOmniboxForOneRow=function(n,t){var f=this,e=function(n,t){return f.logAnalyticsEvent(n,t)},o=function(n,t){return f.logAnalyticsEvent(n,t)},s=new this.omniboxValueElementKlass(this.facet,n,t,e,o),u=s.build().renderer.listItem,h=t.completeQueryExpression.regex,c=t.completeQueryExpression.word,i;return r.$$(u).find(".coveo-facet-value-caption").innerHTML=this.highlightOmniboxMatch(this.facet.getValueCaption(n),h,c),i=r.$$("ul",{className:"coveo-omnibox-selectable coveo-facet-value coveo-omnibox-facet-value"}).el,i.appendChild(u),r.$$(i).on("keyboardSelect",function(){var n=r.$$(u).find("input[type=checkbox]");r.$$(n).trigger("change")}),i["no-text-suggestion"]=!0,i},n.prototype.buildFinalOmniboxElement=function(n){var i=this.buildOmniboxHeader(),t;if(!f.Utils.isEmptyArray(n))return t=r.$$("div",{className:"coveo-omnibox-facet-value"}).el,t.appendChild(i),u.each(n,function(n){t.appendChild(n)}),e.FacetUtils.addNoStateCssClassToFacetValues(this.facet,t),t},n.prototype.buildOmniboxHeader=function(){var t=this.facet.options.title,n=r.$$("div",{className:"coveo-omnibox-facet-header"}).el;return r.$$(n).text(t),n},n.prototype.highlightOmniboxMatch=function(n,t,i){var r=n.search(t),u=r+i.length;return n.slice(0,r)+'<span class="coveo-highlight">'+n.slice(r,u)+"<\/span>"+n.slice(u)},n.prototype.logAnalyticsEvent=function(n,t){var i=u.pluck(this.facetValues,"value");n.facet.usageAnalytics.logSearchEvent(t,{query:this.omniboxObject.completeQueryExpression.word,facetId:n.facet.options.id,facetField:n.facet.options.field.toString(),facetTitle:n.facet.options.title,facetValue:n.facetValue.value,suggestions:i.join(";"),suggestionRanking:u.indexOf(i,n.facetValue.value)})},n}();t.OmniboxValuesList=o},function(n,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var f=i(52),r=i(493),u=i(217),e=i(0),o=function(){function n(n,t,i,r){this.ref=n;this.occurrence=t;this.id=i;this.grammar=r}return n.prototype.parse=function(n,t){var i=this.grammar.getExpression(this.ref);if(null==i)throw new Error("Expression not found:"+this.ref);return"?"==this.occurrence||null==this.occurrence?this.parseOnce(n,t,i):this.parseMany(n,t,i)},n.prototype.parseOnce=function(n,t,i){var o=i.parse(n,t),s=o.isSuccess();return s||"?"!=this.occurrence?new r.RefResult([o],this,n,s?null:o):t?0==n.length?new r.RefResult([],this,n,o):e.all(o.getBestExpect(),function(n){return n.expression==u.ExpressionEndOfInput})?new r.RefResult([new f.Result(null,u.ExpressionEndOfInput,n)],this,n,o):o:new r.RefResult([],this,n,null)},n.prototype.parseMany=function(n,t,i){var o,l,s=[],c=n,a,h,v;do o=i.parse(c,!1),(l=o.isSuccess())&&(s.push(o),c=c.substr(o.getLength()));while(l&&o.input!=c);if(a=e.isNumber(this.occurrence)?this.occurrence:"+"==this.occurrence?1:0,s.length<a)s.push(o);else if(t)if(s.length>0)h=e.last(s),o=i.parse(h.input,!0),o.isSuccess()?s[s.length-1]=o:(s.push(new f.Result(null,u.ExpressionEndOfInput,h.input.substr(h.getLength()))),o=i.parse(h.input.substr(h.getLength()),!0));else if(0!=n.length)return v=new f.Result(null,u.ExpressionEndOfInput,n),new r.RefResult([v],this,n,o);return new r.RefResult(s,this,n,o)},n.prototype.toString=function(){return this.id},n}();t.ExpressionRef=o},function(n,t,i){"use strict";var f=this&&this.__extends||function(){var n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])};return function(t,i){function r(){this.constructor=t}n(t,i);t.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var u=i(52),r=i(0),e=function(n){function t(t,i,u,f){var e=n.call(this,t,i,u)||this;return e.expression=i,e.input=u,r.last(t)!=f&&(e.failAttempt=f,null!=e.failAttempt&&(e.failAttempt.parent=e)),e}return f(t,n),t.prototype.getExpect=function(){var t=n.prototype.getExpect.call(this);return null!=this.failAttempt?t.concat(this.failAttempt.getExpect()):t},t.prototype.clean=function(t){var i,f,e;return null!=this.failAttempt&&(null!=t||!this.isSuccess())&&(t=t||r.last(this.getBestExpect()).path(this),i=r.first(t),null!=i&&i==this.failAttempt)?(f=r.last(this.subResults),e=r.map(null!=f&&f.isSuccess()?this.subResults:r.initial(this.subResults),function(n){return n.clean()}),e.push(i.clean(r.rest(t))),new u.Result(e,this.expression,this.input)):n.prototype.clean.call(this,t)},t}(u.Result);t.RefResult=e},function(n,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=i(495),u=function(){function n(n,t){this.parts=n;this.id=t}return n.prototype.parse=function(n,t){for(var f,i=[],u=0;u<this.parts.length;u++){if(f=this.parts[u].parse(n,t),f.isSuccess())return new r.OptionResult(f,this,n,i);i.push(f)}return new r.OptionResult(null,this,n,i)},n.prototype.toString=function(){return this.id},n}();t.ExpressionOptions=u},function(n,t,i){"use strict";var f=this&&this.__extends||function(){var n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])};return function(t,i){function r(){this.constructor=t}n(t,i);t.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var u=i(52),r=i(0),e=function(n){function t(t,i,u,f){var e=n.call(this,null!=t?[t]:null,i,u)||this;return e.result=t,e.expression=i,e.input=u,e.failAttempt=f,r.forEach(e.failAttempt,function(n){n.parent=e}),e}return f(t,n),t.prototype.getExpect=function(){var t=this,n=[];return null!=this.result&&(n=this.result.getExpect()),n=r.reduce(this.failAttempt,function(n,t){return n.concat(t.getExpect())},n),n.length>0&&r.all(n,function(n){return n.input==t.input})?[this]:n},t.prototype.clean=function(n){if(null!=n||!this.isSuccess()){n=r.rest(n||r.last(this.getBestExpect()).path(this));var t=r.first(n);return null==t?new u.Result(null,this.expression,this.input):new u.Result([t.clean(r.rest(n))],this.expression,this.input)}return new u.Result(r.map(this.result.subResults,function(n){return n.clean()}),this.expression,this.input)},t}(u.Result);t.OptionResult=e},function(n,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=i(52),u=i(52),f=function(){function n(n,t){this.value=n;this.id=t}return n.prototype.parse=function(n,t){var i=n.match(this.value),f;return null!=i&&0!=i.index&&(i=null),f=new r.Result(null!=i?i[0]:null,this,n),f.isSuccess()&&t&&n.length>f.value.length?new u.EndOfInputResult(f):f},n.prototype.toString=function(){return this.id},n}();t.ExpressionRegExp=f},function(n,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function n(n,t,i){this.func=n;this.id=t;this.grammar=i}return n.prototype.parse=function(n,t){return this.func(n,t,this)},n.prototype.toString=function(){return this.id},n}();t.ExpressionFunction=i},function(n,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=i(52),u=function(){function n(n,t){if(this.parts=n,this.id=t,0==n.length)throw new Error(JSON.stringify(t)+" should have at least 1 parts");}return n.prototype.parse=function(n,t){for(var i,e=[],f=n,u=0;u<this.parts.length;u++){if(i=this.parts[u].parse(f,t&&u==this.parts.length-1),e.push(i),!i.isSuccess())break;f=f.substr(i.getLength())}return new r.Result(e,this,n)},n.prototype.toString=function(){return this.id},n}();t.ExpressionList=u},function(n,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=i(219);t.NestedQuery={basicExpressions:["NestedQuery"],grammars:{NestedQuery:"[[NestedField][OptionalSpaces][Expressions]]",NestedField:"[[Field]]",FieldValue:["NestedQuery"]},include:[r.Field]}},function(n,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=i(132);t.Date={grammars:{Date:"[DateYear]/[DateMonth]/[DateDay]",DateYear:/([0-9]{4})/,DateMonth:/(1[0-2]|0?[1-9])/,DateDay:/([1-2][0-9]|3[0-1]|0?[1-9])/,DateRange:"[Date][Spaces?]..[Spaces?][Date]",DateRelative:["DateRelativeNegative","DateRelativeTerm"],DateRelativeTerm:/now|today|yesterday/,DateRelativeNegative:"[DateRelativeTerm][DateRelativeNegativeRef]",DateRelativeNegativeRef:/([\-\+][0-9]+(s|m|h|d|mo|y))/},include:[r.Basic]}},function(n,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=i(132);t.QueryExtension={basicExpressions:["QueryExtension"],grammars:{QueryExtension:"$[QueryExtensionName]([QueryExtensionArguments])",QueryExtensionName:/\w+/,QueryExtensionArguments:"[QueryExtensionArgumentList*][QueryExtensionArgument]",QueryExtensionArgumentList:"[QueryExtensionArgument][Spaces?],[Spaces?]",QueryExtensionArgument:"[QueryExtensionArgumentName]:[Spaces?][QueryExtensionArgumentValue]",QueryExtensionArgumentName:/\w+/,QueryExtensionArgumentValue:["SingleQuoted","Expressions"]},include:[r.Basic]}},function(n,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.SubExpression={basicExpressions:["SubExpression"],grammars:{SubExpression:"([Expressions])"}}},function(n,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=i(0),f=i(20),e=i(6),r=i(1),u=i(25),s=function(){function n(n,t,i){this.onchange=t;this.magicBox=i;this.hasFocus=!1;this.root=f.Component.resolveRoot(n);this.underlay=document.createElement("div");this.underlay.className="magic-box-underlay";this.highlightContainer=document.createElement("span");this.highlightContainer.className="magic-box-highlight-container";this.underlay.appendChild(this.highlightContainer);this.ghostTextContainer=document.createElement("span");this.ghostTextContainer.className="magic-box-ghost-text";this.underlay.appendChild(this.ghostTextContainer);this.input=r.$$(n).find("input");this.input?n.insertBefore(this.underlay,this.input):(this.input=document.createElement("input"),n.appendChild(this.underlay),n.appendChild(this.input));this.setupHandler();this.addAccessibilitiesProperties()}return Object.defineProperty(n.prototype,"expanded",{set:function(n){this.input.setAttribute("aria-expanded",n.toString())},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"activeDescendant",{set:function(n){n?this.input.setAttribute("aria-activedescendant",n.id):this.input.removeAttribute("aria-activedescendant")},enumerable:!0,configurable:!0}),n.prototype.updateInput=function(){this.input.value!=this.result.input&&(this.input.value=this.result.input,this.hasFocus&&this.setCursor(this.getValue().length))},n.prototype.updateHighlight=function(){r.$$(this.highlightContainer).empty();this.highlightContainer.appendChild(this.result.toHtmlElement())},n.prototype.updateWordCompletion=function(){r.$$(this.ghostTextContainer).empty();this.ghostTextContainer.innerHTML="";null!=this.wordCompletion&&this.ghostTextContainer.appendChild(document.createTextNode(this.wordCompletion.substr(this.result.input.length)))},n.prototype.setResult=function(n,t){this.result=n;this.updateInput();this.updateHighlight();o.isUndefined(t)&&null!=this.wordCompletion&&0==this.wordCompletion.indexOf(this.result.input)?this.updateWordCompletion():this.setWordCompletion(t);this.updateScroll()},n.prototype.setWordCompletion=function(n){null!=n&&0!=n.toLowerCase().indexOf(this.result.input.toLowerCase())&&(n=null);this.wordCompletion=n;this.updateWordCompletion();this.updateScroll()},n.prototype.setCursor=function(n){if(this.input.focus(),this.input.createTextRange){var t=this.input.createTextRange();t.move("character",n);t.select()}else null!=this.input.selectionStart&&(this.input.focus(),this.input.setSelectionRange(n,n))},n.prototype.getCursor=function(){return this.input.selectionStart},n.prototype.updateScroll=function(n){var t=this,i;void 0===n&&(n=!0);i=function(){t.underlay.clientWidth<t.underlay.scrollWidth&&(t.underlay.style.visibility="hidden",t.underlay.scrollLeft=t.input.scrollLeft,t.underlay.scrollTop=t.input.scrollTop,t.underlay.style.visibility="visible");t.updateScrollDefer=null;t.hasFocus&&t.updateScroll()};n?null==this.updateScrollDefer&&(this.updateScrollDefer=requestAnimationFrame(i)):i()},n.prototype.setupHandler=function(){var n=this;this.input.onblur=function(){n.hasFocus=!1;setTimeout(function(){n.hasFocus||n.onblur&&n.onblur()},300);n.updateScroll()};this.input.onfocus=function(){n.hasFocus||(n.hasFocus=!0,n.updateScroll(),n.onfocus&&n.onfocus())};this.input.onkeydown=function(t){n.keydown(t)};this.input.onkeyup=function(t){n.keyup(t)};this.input.oncut=function(){setTimeout(function(){n.onInputChange()})};this.input.onpaste=function(){setTimeout(function(){n.onInputChange()})}},n.prototype.addAccessibilitiesProperties=function(){this.input.setAttribute("autocomplete","off");this.input.setAttribute("type","text");this.input.setAttribute("role","combobox");this.input.setAttribute("form","coveo-dummy-form");this.input.setAttribute("aria-autocomplete","list");this.input.setAttribute("title",e.l("InsertAQuery")+". "+e.l("PressEnterToSend"))},n.prototype.focus=function(){var n=this;setTimeout(function(){n.input.focus();n.setCursor(n.getValue().length)})},n.prototype.blur=function(){this.hasFocus&&this.input.blur()},n.prototype.keydown=function(n){var t=this;switch(n.keyCode||n.which){case u.KEYBOARD.TAB:this.tabPress();this.magicBox.clearSuggestion();break;default:n.stopPropagation();null==this.onkeydown||this.onkeydown(n.keyCode||n.which)?requestAnimationFrame(function(){t.onInputChange()}):n.preventDefault()}},n.prototype.keyup=function(n){switch(n.keyCode||n.which){case u.KEYBOARD.LEFT_ARROW:case u.KEYBOARD.RIGHT_ARROW:this.handleLeftRightArrow(n);break;default:null==this.onkeydown||this.onkeyup(n.keyCode||n.which)?this.onInputChange():n.preventDefault()}},n.prototype.handleLeftRightArrow=function(n){r.$$(this.root).find("."+f.Component.computeCssClassNameForType("QuerySuggestPreview"))||this.onchangecursor();null==this.onkeydown||this.onkeyup(n.keyCode||n.which)?this.onInputChange():n.preventDefault()},n.prototype.tabPress=function(){this.ontabpress&&this.ontabpress();this.onblur&&this.onblur()},n.prototype.onInputChange=function(){this.result.input!=this.input.value&&this.onchange(this.input.value,!1)},n.prototype.getValue=function(){return this.input.value},n.prototype.getWordCompletion=function(){return this.wordCompletion},n}();t.InputManager=s},function(n,t,i){"use strict";function s(n){return new Promise(function(t,i){return n.forEach(function(n){return Promise.resolve(n).then(t,i)})})}var h=this&&this.__assign||Object.assign||function(n){for(var t,r,i=1,u=arguments.length;i<u;i++){t=arguments[i];for(r in t)Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},u=this&&this.__awaiter||function(n,t,i,r){return new(i||(i=Promise))(function(u,f){function o(n){try{e(r.next(n))}catch(n){f(n)}}function s(n){try{e(r.throw(n))}catch(n){f(n)}}function e(n){n.done?u(n.value):new i(function(t){t(n.value)}).then(o,s)}e((r=r.apply(n,t||[])).next())})},f=this&&this.__generator||function(n,t){function f(n){return function(t){return s([n,t])}}function s(f){if(e)throw new TypeError("Generator is already executing.");for(;r;)try{if(e=1,u&&(i=u[2&f[0]?"return":f[0]?"throw":"next"])&&!(i=i.call(u,f[1])).done)return i;switch(u=0,i&&(f=[0,i.value]),f[0]){case 0:case 1:i=f;break;case 4:return r.label++,{value:f[1],done:!1};case 5:r.label++;u=f[1];f=[0];continue;case 7:f=r.ops.pop();r.trys.pop();continue;default:if(i=r.trys,!(i=i.length>0&&i[i.length-1])&&(6===f[0]||2===f[0])){r=0;continue}if(3===f[0]&&(!i||f[1]>i[0]&&f[1]<i[3])){r.label=f[1];break}if(6===f[0]&&r.label<i[1]){r.label=i[1];i=f;break}if(i&&r.label<i[2]){r.label=i[2];r.ops.push(f);break}i[2]&&r.ops.pop();r.trys.pop();continue}f=t.call(n,r)}catch(n){f=[6,n];u=0}finally{e=i=0}if(5&f[0])throw f[1];return{value:f[0]?f[1]:void 0,done:!0}}var e,u,i,o,r={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:f(0),"throw":f(1),"return":f(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o},r,e,o;Object.defineProperty(t,"__esModule",{value:!0});e=i(0);!function(n){n[n.Finished=0]="Finished";n[n.TimedOut=1]="TimedOut";n[n.Overriden=2]="Overriden"}(r=t.ProcessingStatus||(t.ProcessingStatus={}));o=function(){function n(n){void 0===n&&(n={});this.options=h({timeout:500},n)}return n.prototype.processQueries=function(n){return u(this,void 0,void 0,function(){var i,t=this;return f(this,function(){return this.overrideIfProcessing(),this.processedResults=new Array(n.length),i=n.map(function(n){return n instanceof Promise?n:Promise.resolve(n)}),[2,s([this.accumulateResultsChronologically(i).then(function(){return t.buildProcessResults(r.Finished)}),this.waitForOverride().then(function(){return t.buildProcessResults(r.Overriden)}),this.waitForTimeout().then(function(){return t.buildProcessResults(r.TimedOut)})])]})})},n.prototype.overrideIfProcessing=function(){return u(this,void 0,void 0,function(){return f(this,function(){return this.override&&this.override(),[2]})})},Object.defineProperty(n.prototype,"orderedResults",{get:function(){return e.flatten(this.processedResults.filter(function(n){return!!n}),!0)},enumerable:!0,configurable:!0}),n.prototype.buildProcessResults=function(n){return{status:n,results:n!==r.Overriden?this.orderedResults:[]}},n.prototype.accumulateResultsChronologically=function(n){return u(this,void 0,void 0,function(){var t;return f(this,function(i){switch(i.label){case 0:return t=this.processedResults,[4,Promise.all(n.map(function(n,i){return n.then(function(n){return t[i]=n})}))];case 1:return i.sent(),[2]}})})},n.prototype.waitForOverride=function(){var n=this;return new Promise(function(t){n.override=function(){n.override=null;t()}})},n.prototype.waitForTimeout=function(){var n=this;return new Promise(function(t){return setTimeout(function(){return t()},n.options.timeout)})},n}();t.QueryProcessor=o},function(n,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=i(1),u=i(16),f=function(){function n(n){this.rootOptions=n;this.create()}return n.prototype.create=function(){var n=this.rootOptions.iconSVG&&this.rootOptions.iconClassName;this.button=r.$$("button",{className:("coveo-dynamic-facet-header-btn "+(this.rootOptions.className||"")).trim(),type:"button"},n?this.rootOptions.iconSVG:this.rootOptions.label);this.rootOptions.action&&this.button.on("click",this.rootOptions.action);n&&(this.button.setAttribute("aria-label",this.rootOptions.label),this.button.setAttribute("title",this.rootOptions.label),u.SVGDom.addClassToSVGInContainer(this.button.el,this.rootOptions.iconClassName));this.rootOptions.ariaLabel&&this.button.setAttribute("aria-label",this.rootOptions.ariaLabel);void 0!==this.rootOptions.shouldDisplay&&this.toggle(this.rootOptions.shouldDisplay);this.element=this.button.el},n.prototype.toggle=function(n){this.button.toggle(n)},n}();t.DynamicFacetHeaderButton=f},function(n,t,i){"use strict";var f,r,u,e,o,s;Object.defineProperty(t,"__esModule",{value:!0});r=i(0);u=i(5);!function(n){n.RELEVANCY="relevancy";n.DATE="date";n.QRE="qre"}(f=t.VALID_SORT||(t.VALID_SORT={}));!function(n){n.ASCENDING="ascending";n.DESCENDING="descending"}(e=t.VALID_DIRECTION||(t.VALID_DIRECTION={}));o=function(){function n(t,i){void 0===i&&(i="");this.sort=t;this.direction=i;n.sortIsField(t)||u.Assert.check(this.isValidSort(t),t+" is not a valid sort criteria. Valid values are "+r.values(f)+" or a valid index sortable index field.");n.sortNeedsDirection(t)?u.Assert.check(this.isValidDirection(i),i+" is not a valid sort criteria direction. Valid values are "+r.values(e)):u.Assert.check(""==i)}return n.prototype.isValidDirection=function(n){return r.chain(e).values().contains(n).value()},n.prototype.isValidSort=function(n){return r.chain(f).values().contains(n).value()},n.sortIsField=function(n){return"@"==n.charAt(0)},n.sortNeedsDirection=function(t){return r.contains(n.sortsNeedingDirection,t)||n.sortIsField(t)},n.sortsNeedingDirection=[f.DATE],n}();t.SortCriterion=o;s=function(){function n(n){var t=this;this.criteria=[];n.split(";").forEach(function(n){var i=n.match(/\S+/g);t.criteria.push(new o(i[0],i[1]))})}return Object.defineProperty(n.prototype,"direction",{get:function(){return r.first(this.criteria).direction},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"sort",{get:function(){return r.first(this.criteria).sort},enumerable:!0,configurable:!0}),n.parse=function(t){return new n(t)},n.prototype.putInQueryBuilder=function(n){u.Assert.exists(n);n.sortCriteria=this.toString().split(";").join(",")},n.prototype.toString=function(){return this.criteria.map(function(n){return n.direction?n.sort+" "+n.direction:""+n.sort}).join(";")},n.prototype.equals=function(n){return n.toString()==this.toString()},n}();t.SortCriteria=s},function(n,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=i(499),u=i(501),f=i(132),e=i(219),o=i(502);t.Complete={include:[r.NestedQuery,u.QueryExtension,o.SubExpression,e.Field,f.Basic]}},function(n,t,i){"use strict";function f(n,t,i,u){r.each(u.expressions,function(t){r.contains(n,t)||n.push(t)});r.each(u.basicExpressions,function(n){r.contains(t,n)||t.push(n)});r.each(u.grammars,function(n,t){if(t in i){if(!r.isArray(i[t])||!r.isArray(n))throw r.each(n,function(n){i[t].push(n)}),new Error("Can not merge "+t+"("+JSON.stringify(n)+" => "+JSON.stringify(i[t])+")");r.each(n,function(n){i[t].push(n)})}else i[t]=n})}function u(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];for(var u=[],e=[],o={Start:["Expressions","Empty"],Expressions:"[OptionalSpaces][Expression][ExpressionsList*][OptionalSpaces]",ExpressionsList:"[Spaces][Expression]",Expression:u,BasicExpression:e,OptionalSpaces:/ */,Spaces:/ +/,Empty:/(?!.)/},i=0;i<n.length;i++)f(u,e,o,n[i]),r.each(n[i].include,function(t){r.contains(n,t)||n.push(t)});return u.push("BasicExpression"),{start:"Start",expressions:o}}function e(){for(var i,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return i=u.apply(this,t),new o.Grammar(i.start,i.expressions)}Object.defineProperty(t,"__esModule",{value:!0});var o=i(175),r=i(0);t.Expressions=u;t.ExpressionsGrammar=e},function(n,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function n(){}return n.buildingResultPreviewsQuery="buildingResultPreviewsQuery",n.updateResultPreviewsManagerOptions="updateResultPreviewsManagerOptions",n.populateSearchResultPreviews="populateSearchResultPreviews",n}();t.ResultPreviewsManagerEvents=i},function(n,t,i){"use strict";var f=this&&this.__assign||Object.assign||function(n){for(var t,r,i=1,u=arguments.length;i<u;i++){t=arguments[i];for(r in t)Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},r,u;Object.defineProperty(t,"__esModule",{value:!0});r=i(28);u=function(){function n(n){this.owner=n}return Object.defineProperty(n.prototype,"options",{get:function(){return this.owner.options},set:function(n){this.owner.options=n},enumerable:!0,configurable:!0}),n.prototype.postProcess=function(){this.options=f({},this.options,this.owner.componentOptionsModel.get(r.ComponentOptionsModel.attributesEnum.searchBox));this.processQueryOnClearVersusEmptyQuery();this.processQueryOnClearVersusSearchAsYouType()},n.prototype.processQueryOnClearVersusEmptyQuery=function(){this.options.triggerQueryOnClear&&!1===this.owner.searchInterface.options.allowQueriesWithoutKeywords&&(this.owner.logger.warn('Forcing option triggerQueryOnClear to false, as it is not supported when the search interface is configured to not allow queries without keywords (data-allow-queries-without-keywords="false")',this.owner),this.options.triggerQueryOnClear=!1)},n.prototype.processQueryOnClearVersusSearchAsYouType=function(){!0===this.owner.searchInterface.options.allowQueriesWithoutKeywords&&!1===this.options.triggerQueryOnClear&&!0===this.options.enableSearchAsYouType&&(this.owner.logger.warn("Forcing option triggerQueryOnClear to true, since search-as-you-type is enabled",this.owner),this.options.triggerQueryOnClear=!0)},n}();t.QueryboxOptionsProcessing=u},function(){},function(n,t){"use strict";function r(n){return!!i[n]}Object.defineProperty(t,"__esModule",{value:!0});var i;!function(n){n.score="score";n.alphanumeric="alphanumeric";n.occurrences="occurrences"}(i=t.FacetSortCriteria||(t.FacetSortCriteria={}));t.isFacetSortCriteria=r},function(n,t,i){"use strict";var e=this&&this.__assign||Object.assign||function(n){for(var t,r,i=1,u=arguments.length;i<u;i++){t=arguments[i];for(r in t)Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},o=this&&this.__awaiter||function(n,t,i,r){return new(i||(i=Promise))(function(u,f){function o(n){try{e(r.next(n))}catch(n){f(n)}}function s(n){try{e(r.throw(n))}catch(n){f(n)}}function e(n){n.done?u(n.value):new i(function(t){t(n.value)}).then(o,s)}e((r=r.apply(n,t||[])).next())})},s=this&&this.__generator||function(n,t){function f(n){return function(t){return s([n,t])}}function s(f){if(e)throw new TypeError("Generator is already executing.");for(;r;)try{if(e=1,u&&(i=u[2&f[0]?"return":f[0]?"throw":"next"])&&!(i=i.call(u,f[1])).done)return i;switch(u=0,i&&(f=[0,i.value]),f[0]){case 0:case 1:i=f;break;case 4:return r.label++,{value:f[1],done:!1};case 5:r.label++;u=f[1];f=[0];continue;case 7:f=r.ops.pop();r.trys.pop();continue;default:if(i=r.trys,!(i=i.length>0&&i[i.length-1])&&(6===f[0]||2===f[0])){r=0;continue}if(3===f[0]&&(!i||f[1]>i[0]&&f[1]<i[3])){r.label=f[1];break}if(6===f[0]&&r.label<i[1]){r.label=i[1];i=f;break}if(i&&r.label<i[2]){r.label=i[2];r.ops.push(f);break}i[2]&&r.ops.pop();r.trys.pop();continue}f=t.call(n,r)}catch(n){f=[6,n];u=0}finally{e=i=0}if(5&f[0])throw f[1];return{value:f[0]?f[1]:void 0,done:!0}}var e,u,i,o,r={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:f(0),"throw":f(1),"return":f(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o};Object.defineProperty(t,"__esModule",{value:!0});var r=i(1),h=i(569),f=i(0),c=i(12),l=i(16),a=i(570);i(571);var v=i(4),u=i(6),y=function(){function n(n){this.options=n;this.defaultOptions={wrapperClassName:"",clearOnBlur:!1};this.throttlingDelay=600;this.isRequestCancelled=!1;this.throttledRequest=f.throttle(this.triggerRequest,this.throttlingDelay,{leading:!0,trailing:!0});this.options=e({},this.defaultOptions,this.options);this.id=f.uniqueId("coveo-combobox-");this.create()}return n.prototype.create=function(){this.element=r.$$("div",{className:"coveo-combobox-wrapper "+this.options.wrapperClassName}).el;this.createAndAppendInput();this.createAndAppendWaitAnimation();this.createAndAppendValues()},n.prototype.createAndAppendInput=function(){this.input=new h.ComboboxInput(this);this.element.appendChild(this.input.element)},n.prototype.createAndAppendWaitAnimation=function(){this.waitAnimationElement=r.$$("div",{className:"coveo-combobox-wait-animation"},c.SVGIcons.icons.loading).el;l.SVGDom.addClassToSVGInContainer(this.waitAnimationElement,"coveo-combobox-wait-animation-svg");this.toggleWaitAnimation(!1);this.input.element.appendChild(this.waitAnimationElement)},n.prototype.toggleWaitAnimation=function(n){r.$$(this.waitAnimationElement).toggle(n)},n.prototype.createAndAppendValues=function(){this.values=new a.ComboboxValues(this);this.element.appendChild(this.values.element)},n.prototype.clearAll=function(){this.clearValues();this.input.clearInput()},n.prototype.clearValues=function(){this.values.clearValues();this.cancelRequest()},n.prototype.cancelRequest=function(){this.toggleWaitAnimation(!1);this.throttledRequest.cancel();this.isRequestCancelled=!0},n.prototype.onInputChange=function(n){var t=this;if(v.Utils.isEmptyString(n))return this.clearValues();this.throttledRequest(function(){return t.options.requestValues(n)},function(){return t.values.resetScroll()})},n.prototype.onInputBlur=function(){if(!this.values.mouseIsOverValue&&!this.values.isRenderingNewValues)return this.options.clearOnBlur?this.clearAll():void this.clearValues()},n.prototype.updateAccessibilityAttributes=function(n){this.input.updateAccessibilityAttributes(n)},n.prototype.updateAriaLive=function(){if(!this.values.hasValues())return void this.options.ariaLive.updateText(u.l("NoValuesFound"));var n=u.l("ShowingResultsWithQuery",this.values.numberOfValues,this.input.value,this.values.numberOfValues);this.options.scrollable&&this.options.scrollable.areMoreValuesAvailable()&&(n=n+" ("+u.l("MoreValuesAvailable")+")");this.options.ariaLive.updateText(n)},n.prototype.onScrollEndReached=function(){var n=this;this.values.saveFocusedValue();this.options.scrollable&&this.throttledRequest(function(){return n.options.scrollable.requestMoreValues()},function(){return n.values.restoreFocusedValue()})},n.prototype.triggerRequest=function(n,t){return o(this,void 0,void 0,function(){var i;return s(this,function(r){switch(r.label){case 0:return this.isRequestCancelled=!1,this.toggleWaitAnimation(!0),[4,n()];case 1:return i=r.sent(),this.toggleWaitAnimation(!1),this.isRequestCancelled||(this.values.renderFromResponse(i),t&&t()),[2]}})})},n}();t.Combobox=y},function(){},function(n,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var u=i(65),r=i(1),f=function(){function n(n,t){void 0===t&&(t=function(){});this.facetValue=n;this.checkbox=new u.Checkbox(t.bind(this),this.facetValue.displayValue,this.facetValue.selectAriaLabel,"("+this.facetValue.formattedCount+")");var i=r.$$(this.checkbox.getElement()).find(".coveo-checkbox-span-label"),f=r.$$(this.checkbox.getElement()).find(".coveo-checkbox-span-label-suffix");i&&f&&(i.setAttribute("title",this.facetValue.displayValue),i.setAttribute("aria-hidden","true"),f.setAttribute("aria-hidden","true"));this.facetValue.isSelected&&this.checkbox.select(!1);this.element=this.checkbox.getElement()}return n}();t.DynamicFacetValueCheckbox=f},function(n,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});i(582);var f=i(1),r=i(0),e=i(71),u=i(6),o=i(224),s=i(4),h=i(182),c=function(){function n(n,t){this.facet=n;this.list=f.$$("ul",{className:"coveo-dynamic-facet-values","aria-labelledby":h.getDynamicFacetHeaderId(this.facet.options.id),role:"group"}).el;this.valueCreator=new t(this.facet);this.resetValues()}return n.prototype.createFromResponse=function(n){var t=this;this.facetValues=n.values.map(function(n,i){return t.valueCreator.createFromResponse(n,i)})},n.prototype.reorderValues=function(n){this.facetValues=s.Utils.reorderValuesByKeys(this.facetValues,n,function(n){return n.value})},n.prototype.resetValues=function(){this.facetValues=this.valueCreator.getDefaultValues()},Object.defineProperty(n.prototype,"allFacetValues",{get:function(){return this.facetValues},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"allValues",{get:function(){return this.facetValues.map(function(n){return n.value})},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"selectedValues",{get:function(){return this.facetValues.filter(function(n){return n.isSelected}).map(function(n){return n.value})},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"selectedDisplayValues",{get:function(){return this.facetValues.filter(function(n){return n.isSelected}).map(function(n){return n.displayValue})},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"activeValues",{get:function(){return this.facetValues.filter(function(n){return!n.isIdle})},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"displayedValues",{get:function(){return this.facetValues.filter(function(n){return!n.isIdle||n.numberOfResults>0})},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"hasSelectedValues",{get:function(){return!!r.findWhere(this.facetValues,{state:e.FacetValueState.selected})},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"hasActiveValues",{get:function(){return!!this.activeValues.length},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"hasIdleValues",{get:function(){return!!r.findWhere(this.facetValues,{state:e.FacetValueState.idle})},enumerable:!0,configurable:!0}),n.prototype.clearAll=function(){this.facetValues.forEach(function(n){return n.deselect()})},Object.defineProperty(n.prototype,"hasValues",{get:function(){return!!this.allFacetValues.length},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"hasDisplayedValues",{get:function(){return!!this.displayedValues.length},enumerable:!0,configurable:!0}),n.prototype.hasSelectedValue=function(n){var i="string"==typeof n?n:n.value,t=r.find(this.facetValues,function(n){return n.equals(i)});return t&&t.isSelected},n.prototype.get=function(n){var i="string"==typeof n?n:n.value,u=r.find(this.facetValues,function(n){return n.equals(i)}),t;return u?u:(t=this.valueCreator.createFromValue(i),t?(this.facetValues.push(t),t):null)},n.prototype.focus=function(n){var t=r.find(this.facetValues,function(t){return t.equals(n)});t&&t.focus()},n.prototype.buildShowLess=function(){var n=this;return new o.DynamicFacetValueShowMoreLessButton({className:"coveo-dynamic-facet-show-less",ariaLabel:u.l("ShowLessFacetResults",this.facet.options.title),label:u.l("ShowLess"),action:function(){n.facet.enableFreezeFacetOrderFlag();n.facet.showLessValues()}}).element},n.prototype.buildShowMore=function(){var n=this;return new o.DynamicFacetValueShowMoreLessButton({className:"coveo-dynamic-facet-show-more",ariaLabel:u.l("ShowMoreFacetResults",this.facet.options.title),label:u.l("ShowMore"),action:function(){n.facet.enableFreezeFacetOrderFlag();n.facet.showMoreValues()}}).element},Object.defineProperty(n.prototype,"shouldEnableShowLess",{get:function(){return this.facetValues.length>this.facet.options.numberOfValues&&this.hasIdleValues},enumerable:!0,configurable:!0}),n.prototype.appendShowMoreLess=function(n){this.facet.options.enableMoreLess&&(this.shouldEnableShowLess&&n.appendChild(this.buildShowLess()),this.facet.moreValuesAvailable&&n.appendChild(this.buildShowMore()))},n.prototype.appendSelectedCollapsedValues=function(n){if(this.hasSelectedValues){var t=this.selectedDisplayValues.join(", ");n.appendChild(f.$$("li",{className:"coveo-dynamic-facet-collapsed-values",ariaLabel:u.l("CurrentSelections")+": "+t},r.escape(t)).el)}},n.prototype.render=function(){var n=document.createDocumentFragment();return f.$$(this.list).empty(),this.displayedValues.forEach(function(t){n.appendChild(t.renderedElement)}),this.appendShowMoreLess(n),this.appendSelectedCollapsedValues(n),this.list.appendChild(n),this.list},n}();t.DynamicFacetValues=c},function(n,t,i){"use strict";var r=this&&this.__assign||Object.assign||function(n){for(var t,r,i=1,u=arguments.length;i<u;i++){t=arguments[i];for(r in t)Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n};Object.defineProperty(t,"__esModule",{value:!0});var u=i(5),f=i(11),e=i(0),o=i(181),s=function(){function n(n){this.facet=n;this.freezeCurrentValues=!1;this.freezeFacetOrder=!1;this.preventAutoSelection=!1;this.requestBuilder=new o.DynamicFacetRequestBuilder({facetId:this.facet.options.id,field:this.facet.fieldName,type:this.facet.facetType,sortCriteria:this.facet.options.sortCriteria,injectionDepth:this.facet.options.injectionDepth,filterFacetCount:this.facet.options.filterFacetCount});this.resetNumberOfValuesToRequest();this.resetFlagsDuringQuery()}return n.prototype.resetFlagsDuringQuery=function(){var n=this;this.facet.bind.onRootElement(f.QueryEvents.duringQuery,function(){n.freezeCurrentValues=!1;n.freezeFacetOrder=!1;n.preventAutoSelection=!1})},n.prototype.increaseNumberOfValuesToRequest=function(n){this.numberOfValuesToRequest+=n},n.prototype.resetNumberOfValuesToRequest=function(){this.numberOfValuesToRequest=this.facet.options.numberOfValues},n.prototype.enablePreventAutoSelectionFlag=function(){this.preventAutoSelection=!0},n.prototype.enableFreezeCurrentValuesFlag=function(){this.areValuesIncorrectlyAffectedByDependsOn||(this.freezeCurrentValues=!0)},n.prototype.enableFreezeFacetOrderFlag=function(){this.freezeFacetOrder=!0},Object.defineProperty(n.prototype,"areValuesIncorrectlyAffectedByDependsOn",{get:function(){return!!this.facet.dependsOnManager.hasDependentFacets&&!this.facet.dependsOnManager.dependentFacetsHaveSelectedValues&&this.currentValues.length<this.numberOfValuesToRequest},enumerable:!0,configurable:!0}),n.prototype.putFacetIntoQueryBuilder=function(n){u.Assert.exists(n);n.facetRequests.push(this.buildFacetRequest());this.freezeFacetOrder&&(n.facetOptions.freezeFacetOrder=!0)},n.prototype.buildFacetRequest=function(){return r({},this.requestBuilder.buildBaseRequestForQuery(),{currentValues:this.currentValues,numberOfValues:this.numberOfValues,freezeCurrentValues:this.freezeCurrentValues,preventAutoSelect:this.preventAutoSelection,isFieldExpanded:this.numberOfValuesToRequest>this.facet.options.numberOfValues})},n.prototype.getQueryResults=function(){var n=this.facet.queryController.getLastQuery(),t;return n.numberOfResults=0,t=e.findIndex(n.facets,{facetId:this.facet.options.id}),-1!==t?n.facets[t]=this.buildFacetRequest():n.facets?n.facets.push(this.buildFacetRequest()):n.facets=[this.buildFacetRequest()],this.facet.queryController.getEndpoint().search(n)},Object.defineProperty(n.prototype,"currentValues",{get:function(){return this.facet.values.allFacetValues.map(function(n){return{value:n.value,state:n.state}})},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"numberOfValues",{get:function(){return this.freezeCurrentValues?this.currentValues.length:Math.max(this.numberOfValuesToRequest,this.facet.values.activeValues.length)},enumerable:!0,configurable:!0}),n}();t.DynamicFacetQueryController=s},function(n,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=i(1),u=i(515),f=function(){function n(n,t){this.facetValue=n;this.facet=t}return n.prototype.render=function(){return this.dom=r.$$("li",{className:"coveo-dynamic-facet-value",role:"none",dataValue:this.facetValue.value}),this.toggleSelectedClass(),this.renderCheckbox(),this.addFocusAndBlurEventListeners(),this.dom.el},n.prototype.toggleSelectedClass=function(){this.dom.toggleClass("coveo-selected",this.facetValue.isSelected)},n.prototype.renderCheckbox=function(){this.valueCheckbox=new u.DynamicFacetValueCheckbox(this.facetValue,this.selectAction.bind(this));this.dom.append(this.valueCheckbox.element)},n.prototype.addFocusAndBlurEventListeners=function(){var n=this,t=r.$$(this.valueCheckbox.element).find("button");r.$$(t).on("focusin",function(){return n.onFocusIn()});r.$$(t).on("focusout",function(){return n.onFocusOut()})},n.prototype.onFocusIn=function(){this.dom.addClass("coveo-focused")},n.prototype.onFocusOut=function(){this.dom.removeClass("coveo-focused")},n.prototype.selectAction=function(){var n=this;this.facet.toggleSelectValue(this.facetValue.value);this.toggleSelectedClass();this.facet.enableFreezeCurrentValuesFlag();this.facet.enableFreezeFacetOrderFlag();this.facet.enablePreventAutoSelectionFlag();this.facet.scrollToTop();this.facet.focusValueAfterRerender(this.facetValue.value);this.facet.triggerNewQuery(function(){return n.facetValue.logSelectActionToAnalytics()})},n}();t.DynamicFacetValueRenderer=f},function(n,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function n(){}return n.cancelLastAction="cancelLastAction",n}();t.QuerySummaryEvents=i},function(n,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var f=i(96),r=i(1),u=i(0),e=function(){function n(n,t,i){this.structure=n;this.onSelect=t;this.onTabPress=i}return n.prototype.buildOmniboxElement=function(n,t){var i,f,e;return 0!=n.length&&((i=r.$$("div").el,this.structure.header)&&(f=this.buildElementHeader(),i.appendChild(f)),e=this.buildRowElements(n,t),u.each(e,function(n){i.appendChild(n)})),i},n.prototype.buildElementHeader=function(){return r.$$("div",void 0,this.structure.header.template({headerTitle:this.structure.header.title})).el},n.prototype.buildRowElements=function(n,t){var i=this,e=[];return u.each(n,function(n){var u=r.$$("div",void 0,i.structure.row({rawValue:n.value,data:f.DomUtils.highlightElement(n.value,t.completeQueryExpression.word)})).el;r.$$(u).on("click",function(){i.onSelect.call(i,n.value,t)});r.$$(u).on("keyboardSelect",function(){i.onSelect.call(i,n.value,t)});r.$$(u).on("tabSelect",function(){i.onTabPress.call(i,n.value,t)});e.push(u)}),e},n}();t.SuggestionForOmnibox=e},function(){},function(n,t,i){"use strict";function u(n,t){return e(this,void 0,void 0,function(){var s,i,e,h,u;return o(this,function(o){switch(o.label){case 0:return s={className:"coveo-shadow-iframe",scrolling:"no",title:t.title},t.useIFrame?(i=r.$$("iframe",s).el,h=new Promise(function(n){return i.addEventListener("load",function(){return n()})}),n.appendChild(i),[4,h]):[3,2];case 1:return o.sent(),e=i.contentDocument.body,[3,3];case 2:i=r.$$("div",s).el;e=i;n.appendChild(i);o.label=3;case 3:return e.style.margin="0",u=r.$$("div",{style:"overflow: auto;"}).el,e.appendChild(u),f(i,u,t.onSizeChanged),"open"===t.mode&&Object.defineProperty(n,"shadowRoot",{get:function(){return u}}),[2,u]}})})}function f(n,t,i){var r=t.clientWidth,u=t.clientHeight;new MutationObserver(function(){r===t.clientWidth&&u===t.clientHeight||(r=t.clientWidth,u=t.clientHeight,n.style.width=t.clientWidth+"px",n.style.height=t.clientHeight+"px",i&&i())}).observe(t,{attributes:!0,characterData:!0,childList:!0,subtree:!0})}var e=this&&this.__awaiter||function(n,t,i,r){return new(i||(i=Promise))(function(u,f){function o(n){try{e(r.next(n))}catch(n){f(n)}}function s(n){try{e(r.throw(n))}catch(n){f(n)}}function e(n){n.done?u(n.value):new i(function(t){t(n.value)}).then(o,s)}e((r=r.apply(n,t||[])).next())})},o=this&&this.__generator||function(n,t){function f(n){return function(t){return s([n,t])}}function s(f){if(e)throw new TypeError("Generator is already executing.");for(;r;)try{if(e=1,u&&(i=u[2&f[0]?"return":f[0]?"throw":"next"])&&!(i=i.call(u,f[1])).done)return i;switch(u=0,i&&(f=[0,i.value]),f[0]){case 0:case 1:i=f;break;case 4:return r.label++,{value:f[1],done:!1};case 5:r.label++;u=f[1];f=[0];continue;case 7:f=r.ops.pop();r.trys.pop();continue;default:if(i=r.trys,!(i=i.length>0&&i[i.length-1])&&(6===f[0]||2===f[0])){r=0;continue}if(3===f[0]&&(!i||f[1]>i[0]&&f[1]<i[3])){r.label=f[1];break}if(6===f[0]&&r.label<i[1]){r.label=i[1];i=f;break}if(i&&r.label<i[2]){r.label=i[2];r.ops.push(f);break}i[2]&&r.ops.pop();r.trys.pop();continue}f=t.call(n,r)}catch(n){f=[6,n];u=0}finally{e=i=0}if(5&f[0])throw f[1];return{value:f[0]?f[1]:void 0,done:!0}}var e,u,i,o,r={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:f(0),"throw":f(1),"return":f(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o},r;Object.defineProperty(t,"__esModule",{value:!0});r=i(1);i(587);t.attachShadow=u},function(n,t,i){"use strict";function e(n,t){switch(arguments.length){case 0:break;case 1:this.range(n);break;default:this.range(t).domain(n)}return this}function o(n,t){switch(arguments.length){case 0:break;case 1:this.interpolator(n);break;default:this.interpolator(t).domain(n)}return this}function nt(){function n(n){var e=n+"",f=t.get(e);if(!f){if(u!==ct)return u;t.set(e,f=i.push(n))}return r[(f-1)%r.length]}var t=Object(wi.c)(),i=[],r=[],u=ct;return n.domain=function(r){if(!arguments.length)return i.slice();i=[];t=Object(wi.c)();for(var u,f,e=-1,o=r.length;++e<o;)t.has(f=(u=r[e])+"")||t.set(f,i.push(u));return n},n.range=function(t){return arguments.length?(r=c.call(t),n):r.slice()},n.unknown=function(t){return arguments.length?(u=t,n):u},n.copy=function(){return nt(i,r).unknown(u)},e.apply(n,arguments),n}function tt(){function t(){var t=c().length,e=i[1]<i[0],n=i[+e],y=i[1-e],v;return f=(y-n)/Math.max(1,t-u+2*s),o&&(f=Math.floor(f)),n+=(y-n-f*(t-u))*l,h=f*(1-u),o&&(n=Math.round(n),h=Math.round(h)),v=Object(r.s)(t).map(function(t){return n+f*t}),a(e?v.reverse():v)}var f,h,n=nt().unknown(void 0),c=n.domain,a=n.range,i=[0,1],o=!1,u=0,s=0,l=.5;return delete n.unknown,n.domain=function(n){return arguments.length?(c(n),t()):c()},n.range=function(n){return arguments.length?(i=[+n[0],+n[1]],t()):i.slice()},n.rangeRound=function(n){return i=[+n[0],+n[1]],o=!0,t()},n.bandwidth=function(){return h},n.step=function(){return f},n.round=function(n){return arguments.length?(o=!!n,t()):o},n.padding=function(n){return arguments.length?(u=Math.min(1,s=+n),t()):u},n.paddingInner=function(n){return arguments.length?(u=Math.min(1,n),t()):u},n.paddingOuter=function(n){return arguments.length?(s=+n,t()):s},n.align=function(n){return arguments.length?(l=Math.max(0,Math.min(1,n)),t()):l},n.copy=function(){return tt(c(),i).round(o).paddingInner(u).paddingOuter(s).align(l)},e.apply(t(),arguments)}function yt(n){var t=n.copy;return n.padding=n.paddingOuter,delete n.paddingInner,delete n.paddingOuter,n.copy=function(){return yt(t())},n}function ir(){return yt(tt.apply(null,arguments).paddingInner(1))}function u(n){return n}function it(n,t){return(t-=n=+n)?function(i){return(i-n)/t}:br(isNaN(t)?NaN:.5)}function pt(n){var r,t=n[0],i=n[n.length-1];return t>i&&(r=t,t=i,i=r),function(n){return Math.max(t,Math.min(i,n))}}function rr(n,t,i){var r=n[0],f=n[1],u=t[0],e=t[1];return f<r?(r=it(f,r),u=i(e,u)):(r=it(r,f),u=i(u,e)),function(n){return u(r(n))}}function ur(n,t,i){var f=Math.min(n.length,t.length)-1,e=new Array(f),o=new Array(f),u=-1;for(n[f]<n[0]&&(n=n.slice().reverse(),t=t.slice().reverse());++u<f;)e[u]=it(n[u],n[u+1]),o[u]=i(t[u],t[u+1]);return function(t){var i=Object(r.b)(n,t,1,f)-1;return o[i](e[i](t))}}function a(n,t){return t.domain(n.domain()).range(n.range()).interpolate(n.interpolate()).clamp(n.clamp()).unknown(n.unknown())}function b(){function f(){return h=Math.min(t.length,i.length)>2?ur:rr,l=a=null,n}function n(n){return isNaN(n=+n)?s:(l||(l=h(t.map(e),i,o)))(e(r(n)))}var e,v,s,h,l,a,t=ki,i=ki,o=lt.a,r=u;return n.invert=function(n){return r(v((a||(a=h(i,t.map(e),lt.o)))(n)))},n.domain=function(n){return arguments.length?(t=g.call(n,at),r===u||(r=pt(t)),f()):t.slice()},n.range=function(n){return arguments.length?(i=c.call(n),f()):i.slice()},n.rangeRound=function(n){return i=c.call(n),o=lt.u,f()},n.clamp=function(i){return arguments.length?(r=i?pt(t):u,n):r!==u},n.interpolate=function(n){return arguments.length?(o=n,f()):o},n.unknown=function(t){return arguments.length?(s=t,n):s},function(n,t){return e=n,v=t,f()}}function wt(n,t){return b()(n,t)}function h(n){var t=n.domain;return n.ticks=function(n){var i=t();return Object(r.B)(i[0],i[i.length-1],null==n?10:n)},n.tickFormat=function(n,i){var r=t();return di(r[0],r[r.length-1],null==n?10:n,i)},n.nice=function(i){null==i&&(i=10);var u,o=t(),s=0,h=o.length-1,f=o[s],e=o[h];return e<f&&(u=f,f=e,e=u,u=s,s=h,h=u),u=Object(r.z)(f,e,i),u>0?(f=Math.floor(f/u)*u,e=Math.ceil(e/u)*u,u=Object(r.z)(f,e,i)):u<0&&(f=Math.ceil(f*u)/u,e=Math.floor(e*u)/u,u=Object(r.z)(f,e,i)),u>0?(o[s]=Math.floor(f/u)*u,o[h]=Math.ceil(e/u)*u,t(o)):u<0&&(o[s]=Math.ceil(f*u)/u,o[h]=Math.floor(e*u)/u,t(o)),n},n}function bt(){var n=wt(u,u);return n.copy=function(){return a(n,bt())},e.apply(n,arguments),h(n)}function kt(n){function t(n){return isNaN(n=+n)?i:n}var i;return t.invert=t,t.domain=t.range=function(i){return arguments.length?(n=g.call(i,at),t):n.slice()},t.unknown=function(n){return arguments.length?(i=n,t):i},t.copy=function(){return kt(n).unknown(i)},n=arguments.length?g.call(n,at):[0,1],h(t)}function dt(n){return Math.log(n)}function gt(n){return Math.exp(n)}function fr(n){return-Math.log(-n)}function er(n){return-Math.exp(-n)}function or(n){return isFinite(n)?+("1e"+n):n<0?0:n}function sr(n){return 10===n?or:n===Math.E?Math.exp:function(t){return Math.pow(n,t)}}function hr(n){return n===Math.E?Math.log:10===n&&Math.log10||2===n&&Math.log2||(n=Math.log(n),function(t){return Math.log(t)/n})}function ni(n){return function(t){return-n(-t)}}function rt(n){function o(){return f=hr(t),i=sr(t),e()[0]<0?(f=ni(f),i=ni(i),n(fr,er)):n(dt,gt),u}var f,i,u=n(dt,gt),e=u.domain,t=10;return u.base=function(n){return arguments.length?(t=+n,o()):t},u.domain=function(n){return arguments.length?(e(n),o()):e()},u.ticks=function(n){var p,y=e(),s=y[0],c=y[y.length-1];(p=c<s)&&(u=s,s=c,c=u);var v,o,l,u=f(s),h=f(c),w=null==n?10:+n,a=[];if(!(t%1)&&h-u<w){if(u=Math.round(u)-1,h=Math.round(h)+1,s>0){for(;u<h;++u)for(o=1,v=i(u);o<t;++o)if(!((l=v*o)<s)){if(l>c)break;a.push(l)}}else for(;u<h;++u)for(o=t-1,v=i(u);o>=1;--o)if(!((l=v*o)<s)){if(l>c)break;a.push(l)}}else a=Object(r.B)(u,h,Math.min(h-u,w)).map(i);return p?a.reverse():a},u.tickFormat=function(n,r){if(null==r&&(r=10===t?".0e":","),"function"!=typeof r&&(r=Object(l.b)(r)),n===1/0)return r;null==n&&(n=10);var e=Math.max(1,t*n/u.ticks().length);return function(n){var u=n/i(Math.round(f(n)));return u*t<t-.5&&(u*=t),u<=e?r(n):""}},u.nice=function(){return e(gi(e(),{floor:function(n){return i(Math.floor(f(n)))},ceil:function(n){return i(Math.ceil(f(n)))}}))},u}function ti(){var n=rt(b()).domain([1,10]);return n.copy=function(){return a(n,ti()).base(n.base())},e.apply(n,arguments),n}function ii(n){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/n))}}function ri(n){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*n}}function ut(n){var t=1,i=n(ii(t),ri(t));return i.constant=function(i){return arguments.length?n(ii(t=+i),ri(t)):t},h(i)}function ui(){var n=ut(b());return n.copy=function(){return a(n,ui()).constant(n.constant())},e.apply(n,arguments)}function fi(n){return function(t){return t<0?-Math.pow(-t,n):Math.pow(t,n)}}function cr(n){return n<0?-Math.sqrt(-n):Math.sqrt(n)}function lr(n){return n<0?-n*n:n*n}function ft(n){function r(){return 1===t?n(u,u):.5===t?n(cr,lr):n(fi(t),fi(1/t))}var i=n(u,u),t=1;return i.exponent=function(n){return arguments.length?(t=+n,r()):t},h(i)}function et(){var n=ft(b());return n.copy=function(){return a(n,et()).exponent(n.exponent())},e.apply(n,arguments),n}function ar(){return et.apply(null,arguments).exponent(.5)}function ei(){function o(){var f=0,e=Math.max(1,u.length);for(i=new Array(e-1);++f<e;)i[f-1]=Object(r.r)(t,f/e);return n}function n(n){return isNaN(n=+n)?f:u[Object(r.b)(i,n)]}var f,t=[],u=[],i=[];return n.invertExtent=function(n){var r=u.indexOf(n);return r<0?[NaN,NaN]:[r>0?i[r-1]:t[0],r<i.length?i[r]:t[t.length-1]]},n.domain=function(n){if(!arguments.length)return t.slice();t=[];for(var i,u=0,f=n.length;u<f;++u)null==(i=n[u])||isNaN(i=+i)||t.push(i);return t.sort(r.a),o()},n.range=function(n){return arguments.length?(u=c.call(n),o()):u.slice()},n.unknown=function(t){return arguments.length?(f=t,n):f},n.quantiles=function(){return i.slice()},n.copy=function(){return ei().domain(t).range(u).unknown(f)},e.apply(n,arguments)}function oi(){function n(n){return n<=n?o[Object(r.b)(i,n,0,t)]:s}function l(){var r=-1;for(i=new Array(t);++r<t;)i[r]=((r+1)*f-(r-t)*u)/(t+1);return n}var s,u=0,f=1,t=1,i=[.5],o=[0,1];return n.domain=function(n){return arguments.length?(u=+n[0],f=+n[1],l()):[u,f]},n.range=function(n){return arguments.length?(t=(o=c.call(n)).length-1,l()):o.slice()},n.invertExtent=function(n){var r=o.indexOf(n);return r<0?[NaN,NaN]:r<1?[u,i[0]]:r>=t?[i[t-1],f]:[i[r-1],i[r]]},n.unknown=function(t){return arguments.length?(s=t,n):n},n.thresholds=function(){return i.slice()},n.copy=function(){return oi().domain([u,f]).range(o).unknown(s)},e.apply(h(n),arguments)}function si(){function n(n){return n<=n?i[Object(r.b)(t,n,0,f)]:u}var u,t=[.5],i=[0,1],f=1;return n.domain=function(r){return arguments.length?(t=c.call(r),f=Math.min(t.length,i.length-1),n):t.slice()},n.range=function(r){return arguments.length?(i=c.call(r),f=Math.min(t.length,i.length-1),n):i.slice()},n.invertExtent=function(n){var r=i.indexOf(n);return[t[r-1],t[r]]},n.unknown=function(t){return arguments.length?(u=t,n):u},n.copy=function(){return si().domain(t).range(i).unknown(u)},e.apply(n,arguments)}function vr(n){return new Date(n)}function yr(n){return n instanceof Date?+n:+new Date(+n)}function ot(n,t,i,f,e,o,s,h,c){function nt(r){return(s(r)<r?it:o(r)<r?rt:e(r)<r?ut:f(r)<r?ft:t(r)<r?i(r)<r?et:st:n(r)<r?ht:ct)(r)}function d(t,i,u,f){if(null==t&&(t=10),"number"==typeof t){var o=Math.abs(u-i)/t,e=Object(r.e)(function(n){return n[2]}).right(k,o);e===k.length?(f=Object(r.A)(i/vt,u/vt,t),t=n):e?(e=k[o/k[e-1][2]<k[e][2]/o?e-1:e],f=e[1],t=e[0]):(f=Math.max(Object(r.A)(i,u,t),1),t=h)}return null==f?t:t.every(f)}var l=wt(u,u),tt=l.invert,b=l.domain,it=c(".%L"),rt=c(":%S"),ut=c("%I:%M"),ft=c("%I %p"),et=c("%a %d"),st=c("%b %d"),ht=c("%B"),ct=c("%Y"),k=[[s,1,v],[s,5,5*v],[s,15,15*v],[s,30,30*v],[o,1,y],[o,5,5*y],[o,15,15*y],[o,30,30*y],[e,1,p],[e,3,3*p],[e,6,6*p],[e,12,12*p],[f,1,w],[f,2,2*w],[i,1,kr],[t,1,tr],[t,3,3*tr],[n,1,vt]];return l.invert=function(n){return new Date(tt(n))},l.domain=function(n){return arguments.length?b(g.call(n,yr)):b().map(vr)},l.ticks=function(n,t){var i,f=b(),r=f[0],u=f[f.length-1],e=u<r;return e&&(i=r,r=u,u=i),i=d(n,r,u,t),i=i?i.range(r,u+1):[],e?i.reverse():i},l.tickFormat=function(n,t){return null==t?nt:c(t)},l.nice=function(n,t){var i=b();return(n=d(n,i[0],i[i.length-1],t))?b(gi(i,n)):l},l.copy=function(){return a(l,ot(n,t,i,f,e,o,s,h,c))},l}function k(){function n(n){return isNaN(n=+n)?e:h(0===r?.5:(n=(f(n)-t)*r,c?Math.max(0,Math.min(1,n)):n))}var t,i,r,f,e,o=0,s=1,h=u,c=!1;return n.domain=function(u){return arguments.length?(t=f(o=+u[0]),i=f(s=+u[1]),r=t===i?0:1/(i-t),n):[o,s]},n.clamp=function(t){return arguments.length?(c=!!t,n):c},n.interpolator=function(t){return arguments.length?(h=t,n):h},n.unknown=function(t){return arguments.length?(e=t,n):e},function(u){return f=u,t=u(o),i=u(s),r=t===i?0:1/(i-t),n}}function s(n,t){return t.domain(n.domain()).interpolator(n.interpolator()).clamp(n.clamp()).unknown(n.unknown())}function hi(){var n=h(k()(u));return n.copy=function(){return s(n,hi())},o.apply(n,arguments)}function ci(){var n=rt(k()).domain([1,10]);return n.copy=function(){return s(n,ci()).base(n.base())},o.apply(n,arguments)}function li(){var n=ut(k());return n.copy=function(){return s(n,li()).constant(n.constant())},o.apply(n,arguments)}function st(){var n=ft(k());return n.copy=function(){return s(n,st()).exponent(n.exponent())},o.apply(n,arguments)}function pr(){return st.apply(null,arguments).exponent(.5)}function ai(){function t(t){if(!isNaN(t=+t))return i((Object(r.b)(n,t)-1)/(n.length-1))}var n=[],i=u;return t.domain=function(i){if(!arguments.length)return n.slice();n=[];for(var u,f=0,e=i.length;f<e;++f)null==(u=i[f])||isNaN(u=+u)||n.push(u);return n.sort(r.a),t},t.interpolator=function(n){return arguments.length?(i=n,t):i},t.copy=function(){return ai(i).domain(n)},o.apply(t,arguments)}function d(){function t(t){return isNaN(t=+t)?s:(t=.5+((t=+f(t))-n)*(t<n?e:o),a(v?Math.max(0,Math.min(1,t)):t))}var i,n,r,e,o,f,s,h=0,c=.5,l=1,a=u,v=!1;return t.domain=function(u){return arguments.length?(i=f(h=+u[0]),n=f(c=+u[1]),r=f(l=+u[2]),e=i===n?0:.5/(n-i),o=n===r?0:.5/(r-n),t):[h,c,l]},t.clamp=function(n){return arguments.length?(v=!!n,t):v},t.interpolator=function(n){return arguments.length?(a=n,t):a},t.unknown=function(n){return arguments.length?(s=n,t):s},function(u){return f=u,i=u(h),n=u(c),r=u(l),e=i===n?0:.5/(n-i),o=n===r?0:.5/(r-n),t}}function vi(){var n=h(d()(u));return n.copy=function(){return s(n,vi())},o.apply(n,arguments)}function yi(){var n=rt(d()).domain([.1,1,10]);return n.copy=function(){return s(n,yi()).base(n.base())},o.apply(n,arguments)}function pi(){var n=ut(d());return n.copy=function(){return s(n,pi()).constant(n.constant())},o.apply(n,arguments)}function ht(){var n=ft(d());return n.copy=function(){return s(n,ht()).exponent(n.exponent())},o.apply(n,arguments)}function wr(){return ht.apply(null,arguments).exponent(.5)}Object.defineProperty(t,"__esModule",{value:!0});var r=i(32),wi=i(186),bi=Array.prototype,g=bi.map,c=bi.slice,ct={name:"implicit"},lt=i(64),br=function(n){return function(){return n}},at=function(n){return+n},ki=[0,1],l=i(232),di=function(n,t,i,u){var f,e=Object(r.A)(n,t,i),o;switch(u=Object(l.f)(null==u?",f":u),u.type){case"s":return o=Math.max(Math.abs(n),Math.abs(t)),null!=u.precision||isNaN(f=Object(l.h)(e,o))||(u.precision=f),Object(l.e)(u,o);case"":case"e":case"g":case"p":case"r":null!=u.precision||isNaN(f=Object(l.i)(e,Math.max(Math.abs(n),Math.abs(t))))||(u.precision=f-("e"===u.type));break;case"f":case"%":null!=u.precision||isNaN(f=Object(l.g)(e))||(u.precision=f-2*("%"===u.type))}return Object(l.b)(u)},gi=function(n,t){n=n.slice();var i,r=0,u=n.length-1,f=n[r],e=n[u];return e<f&&(i=r,r=u,u=i,i=f,f=e,e=i),n[r]=t.floor(f),n[u]=t.ceil(e),n},f=i(187),nr=i(233),v=1e3,y=60*v,p=60*y,w=24*p,kr=7*w,tr=30*w,vt=365*w,dr=function(){return e.apply(ot(f.D,f.n,f.B,f.a,f.e,f.j,f.r,f.h,nr.c).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)},gr=function(){return e.apply(ot(f._7,f.R,f._5,f.F,f.J,f.N,f.V,f.L,nr.g).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)};i.d(t,"scaleBand",function(){return tt});i.d(t,"scalePoint",function(){return ir});i.d(t,"scaleIdentity",function(){return kt});i.d(t,"scaleLinear",function(){return bt});i.d(t,"scaleLog",function(){return ti});i.d(t,"scaleSymlog",function(){return ui});i.d(t,"scaleOrdinal",function(){return nt});i.d(t,"scaleImplicit",function(){return ct});i.d(t,"scalePow",function(){return et});i.d(t,"scaleSqrt",function(){return ar});i.d(t,"scaleQuantile",function(){return ei});i.d(t,"scaleQuantize",function(){return oi});i.d(t,"scaleThreshold",function(){return si});i.d(t,"scaleTime",function(){return dr});i.d(t,"scaleUtc",function(){return gr});i.d(t,"scaleSequential",function(){return hi});i.d(t,"scaleSequentialLog",function(){return ci});i.d(t,"scaleSequentialPow",function(){return st});i.d(t,"scaleSequentialSqrt",function(){return pr});i.d(t,"scaleSequentialSymlog",function(){return li});i.d(t,"scaleSequentialQuantile",function(){return ai});i.d(t,"scaleDiverging",function(){return vi});i.d(t,"scaleDivergingLog",function(){return yi});i.d(t,"scaleDivergingPow",function(){return ht});i.d(t,"scaleDivergingSqrt",function(){return wr});i.d(t,"scaleDivergingSymlog",function(){return pi});i.d(t,"tickFormat",function(){return di})},function(){},function(n,t){"use strict";function r(n){return!!i[n]}Object.defineProperty(t,"__esModule",{value:!0});var i;!function(n){n.currency="currency";n.number="number";n.date="date"}(i=t.DynamicFacetRangeValueFormat||(t.DynamicFacetRangeValueFormat={}));t.isFacetRangeValueFormat=r},function(n,t,i){(function(n){function r(n,i){var r={seen:[],stylize:et};return arguments.length>=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),w(i)?r.showHidden=i:i&&t._extend(r,i),u(r.showHidden)&&(r.showHidden=!1),u(r.depth)&&(r.depth=2),u(r.colors)&&(r.colors=!1),u(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=ft),s(r,n,r.depth)}function ft(n,t){var i=r.styles[t];return i?"\x1b["+r.colors[i][0]+"m"+n+"\x1b["+r.colors[i][1]+"m":n}function et(n){return n}function ot(n){var t={};return n.forEach(function(n){t[n]=!0}),t}function s(n,i,r){var e,w,u,k,d,g;if(n.customInspect&&i&&v(i.inspect)&&i.inspect!==t.inspect&&(!i.constructor||i.constructor.prototype!==i))return e=i.inspect(r,n),c(e)||(e=s(n,e,r)),e;if(w=st(n,i),w)return w;if(u=Object.keys(i),k=ot(u),n.showHidden&&(u=Object.getOwnPropertyNames(i)),a(i)&&(u.indexOf("message")>=0||u.indexOf("description")>=0))return y(i);if(0===u.length){if(v(i))return d=i.name?": "+i.name:"",n.stylize("[Function"+d+"]","special");if(l(i))return n.stylize(RegExp.prototype.toString.call(i),"regexp");if(b(i))return n.stylize(Date.prototype.toString.call(i),"date");if(a(i))return y(i)}var f="",o=!1,h=["{","}"];return((nt(i)&&(o=!0,h=["[","]"]),v(i))&&(f=" [Function"+(i.name?": "+i.name:"")+"]"),l(i)&&(f=" "+RegExp.prototype.toString.call(i)),b(i)&&(f=" "+Date.prototype.toUTCString.call(i)),a(i)&&(f=" "+y(i)),0===u.length&&(!o||0==i.length))?h[0]+f+h[1]:r<0?l(i)?n.stylize(RegExp.prototype.toString.call(i),"regexp"):n.stylize("[Object]","special"):(n.seen.push(i),g=o?ht(n,i,r,k,u):u.map(function(t){return p(n,i,r,k,t,o)}),n.seen.pop(),ct(g,f,h))}function st(n,t){if(u(t))return n.stylize("undefined","undefined");if(c(t)){var i="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return n.stylize(i,"string")}return tt(t)?n.stylize(""+t,"number"):w(t)?n.stylize(""+t,"boolean"):h(t)?n.stylize("null","null"):void 0}function y(n){return"["+Error.prototype.toString.call(n)+"]"}function ht(n,t,i,r,u){for(var f=[],e=0,o=t.length;e<o;++e)it(t,String(e))?f.push(p(n,t,i,r,String(e),!0)):f.push("");return u.forEach(function(u){u.match(/^\d+$/)||f.push(p(n,t,i,r,u,!0))}),f}function p(n,t,i,r,f,e){var o,c,l;if(l=Object.getOwnPropertyDescriptor(t,f)||{value:t[f]},l.get?c=l.set?n.stylize("[Getter/Setter]","special"):n.stylize("[Getter]","special"):l.set&&(c=n.stylize("[Setter]","special")),it(r,f)||(o="["+f+"]"),c||(n.seen.indexOf(l.value)<0?(c=h(i)?s(n,l.value,null):s(n,l.value,i-1),c.indexOf("\n")>-1&&(c=e?c.split("\n").map(function(n){return"  "+n}).join("\n").substr(2):"\n"+c.split("\n").map(function(n){return"   "+n}).join("\n"))):c=n.stylize("[Circular]","special")),u(o)){if(e&&f.match(/^\d+$/))return c;o=JSON.stringify(""+f);o.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(o=o.substr(1,o.length-2),o=n.stylize(o,"name")):(o=o.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),o=n.stylize(o,"string"))}return o+": "+c}function ct(n,t,i){var r=0;return n.reduce(function(n,t){return r++,t.indexOf("\n")>=0&&r++,n+t.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60?i[0]+(""===t?"":t+"\n ")+" "+n.join(",\n  ")+" "+i[1]:i[0]+t+" "+n.join(", ")+" "+i[1]}function nt(n){return Array.isArray(n)}function w(n){return"boolean"==typeof n}function h(n){return null===n}function lt(n){return null==n}function tt(n){return"number"==typeof n}function c(n){return"string"==typeof n}function at(n){return"symbol"==typeof n}function u(n){return void 0===n}function l(n){return e(n)&&"[object RegExp]"===k(n)}function e(n){return"object"==typeof n&&null!==n}function b(n){return e(n)&&"[object Date]"===k(n)}function a(n){return e(n)&&("[object Error]"===k(n)||n instanceof Error)}function v(n){return"function"==typeof n}function vt(n){return null===n||"boolean"==typeof n||"number"==typeof n||"string"==typeof n||"symbol"==typeof n||void 0===n}function k(n){return Object.prototype.toString.call(n)}function d(n){return n<10?"0"+n.toString(10):n.toString(10)}function yt(){var n=new Date,t=[d(n.getHours()),d(n.getMinutes()),d(n.getSeconds())].join(":");return[n.getDate(),ut[n.getMonth()],t].join(" ")}function it(n,t){return Object.prototype.hasOwnProperty.call(n,t)}function pt(n,t){if(!n){var i=new Error("Promise was rejected with a falsy value");i.reason=n;n=i}return t(n)}function wt(t){function i(){for(var u,e,f,i=[],r=0;r<arguments.length;r++)i.push(arguments[r]);if(u=i.pop(),"function"!=typeof u)throw new TypeError("The last argument must be of type Function");e=this;f=function(){return u.apply(e,arguments)};t.apply(this,i).then(function(t){n.nextTick(f,null,t)},function(t){n.nextTick(pt,t,f)})}if("function"!=typeof t)throw new TypeError('The "original" argument must be of type Function');return Object.setPrototypeOf(i,Object.getPrototypeOf(t)),Object.defineProperties(i,rt(t)),i}var rt=Object.getOwnPropertyDescriptors||function(n){for(var i=Object.keys(n),r={},t=0;t<i.length;t++)r[i[t]]=Object.getOwnPropertyDescriptor(n,i[t]);return r},bt=/%[sdj%]/g,g,o,ut,f;t.format=function(n){var f,t;if(!c(n)){for(f=[],t=0;t<arguments.length;t++)f.push(r(arguments[t]));return f.join(" ")}for(var t=1,i=arguments,o=i.length,s=String(n).replace(bt,function(n){if("%%"===n)return"%";if(t>=o)return n;switch(n){case"%s":return String(i[t++]);case"%d":return Number(i[t++]);case"%j":try{return JSON.stringify(i[t++])}catch(n){return"[Circular]"}default:return n}}),u=i[t];t<o;u=i[++t])s+=h(u)||!e(u)?" "+u:" "+r(u);return s};t.deprecate=function(i,r){function f(){if(!u){if(n.throwDeprecation)throw new Error(r);n.traceDeprecation?console.trace(r):console.error(r);u=!0}return i.apply(this,arguments)}if(void 0!==n&&!0===n.noDeprecation)return i;if(void 0===n)return function(){return t.deprecate(i,r).apply(this,arguments)};var u=!1;return f};o={};t.debuglog=function(i){if(u(g)&&(g=n.env.NODE_DEBUG||""),i=i.toUpperCase(),!o[i])if(new RegExp("\\b"+i+"\\b","i").test(g)){var r=n.pid;o[i]=function(){var n=t.format.apply(t,arguments);console.error("%s %d: %s",i,r,n)}}else o[i]=function(){};return o[i]};t.inspect=r;r.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]};r.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey","null":"bold",string:"green",date:"magenta",regexp:"red"};t.isArray=nt;t.isBoolean=w;t.isNull=h;t.isNullOrUndefined=lt;t.isNumber=tt;t.isString=c;t.isSymbol=at;t.isUndefined=u;t.isRegExp=l;t.isObject=e;t.isDate=b;t.isError=a;t.isFunction=v;t.isPrimitive=vt;t.isBuffer=i(697);ut=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];t.log=function(){console.log("%s - %s",yt(),t.format.apply(t,arguments))};t.inherits=i(698);t._extend=function(n,t){if(!t||!e(t))return n;for(var i=Object.keys(t),r=i.length;r--;)n[i[r]]=t[i[r]];return n};f="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;t.promisify=function(n){function t(){for(var u,t,f=new Promise(function(n,i){u=n;t=i}),i=[],r=0;r<arguments.length;r++)i.push(arguments[r]);i.push(function(n,i){n?t(n):u(i)});try{n.apply(this,i)}catch(n){t(n)}return f}if("function"!=typeof n)throw new TypeError('The "original" argument must be of type Function');if(f&&n[f]){var t=n[f];if("function"!=typeof t)throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,f,{value:t,enumerable:!1,writable:!1,configurable:!0}),t}return Object.setPrototypeOf(t,Object.getPrototypeOf(n)),f&&Object.defineProperty(t,f,{value:t,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(t,rt(n))};t.promisify.custom=f;t.callbackify=wt}).call(t,i(202))},function(){},function(){},function(){},function(n,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var e=i(61),o=i(19),u=i(92),r=i(1),f=i(7),s=i(9),h=function(){function n(n,t){this.coveoRoot=n;this.ID=t;this.searchInterface=f.Component.get(this.coveoRoot.el,o.SearchInterface,!1);this.currentMode="large"}return n.init=function(t,i,o){if(!r.$$(t).find("."+f.Component.computeCssClassName(u.ResultList)))return void new s.Logger("ResponsiveDefaultResultTemplate").trace("No ResultLayout component found : Cannot instantiate ResponsiveResultLayout");e.ResponsiveComponentsManager.register(n,r.$$(t),u.ResultList.ID,i,o)},n.prototype.registerComponent=function(n){return n instanceof u.ResultList&&(this.resultList=n,!0)},n.prototype.handleResizeEvent=function(){var t=this,n=this.resultList.queryController.getLastResults();this.needSmallMode()?(r.$$(this.resultList.options.resultsContainer).addClass("coveo-card-layout-container"),r.$$(this.resultList.options.resultsContainer).removeClass("coveo-list-layout-container"),"small"!=this.currentMode&&(n&&this.resultList.buildResults(n).then(function(n){t.resultList.renderResults(n)}),this.currentMode="small")):(r.$$(this.resultList.options.resultsContainer).removeClass("coveo-card-layout-container"),r.$$(this.resultList.options.resultsContainer).addClass("coveo-list-layout-container"),"large"!=this.currentMode&&(n&&this.resultList.buildResults(n).then(function(n){t.resultList.renderResults(n)}),this.currentMode="large"))},n.prototype.needSmallMode=function(){return this.coveoRoot.width()<=this.searchInterface.responsiveComponents.getSmallScreenWidth()},n}();t.ResponsiveDefaultResultTemplate=h},function(n,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=i(1),u=function(){function n(n,t){this.searchInterface=t;this.resultContainerElement=r.$$(n)}return n.prototype.empty=function(){this.searchInterface.detachComponentsInside(this.resultContainerElement.el);r.$$(this.resultContainerElement).empty()},n.prototype.addClass=function(n){this.resultContainerElement.addClass(n)},n.prototype.isEmpty=function(){return this.resultContainerElement.isEmpty()},n.prototype.hideChildren=function(){this.resultContainerElement.children().forEach(function(n){return r.$$(n).hide()})},n.prototype.getResultElements=function(){return this.resultContainerElement.findAll(".CoveoResult")},Object.defineProperty(n.prototype,"el",{get:function(){return this.resultContainerElement.el},enumerable:!0,configurable:!0}),n.resultCurrentlyBeingRendered=null,n}();t.ResultContainer=u},function(n,t,i){"use strict";var f=this&&this.__extends||function(){var n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])};return function(t,i){function r(){this.constructor=t}n(t,i);t.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var e=i(214),r=i(1),u=i(0),o=function(n){function t(){return null!==n&&n.apply(this,arguments)||this}return f(t,n),t.prototype.getEndFragment=function(n){var t=this;return new Promise(function(i){var e,f;u.isEmpty(n)||(t.resultListOptions.enableInfiniteScroll&&(e=r.$$(t.resultListOptions.resultsContainer).findAll(".coveo-card-layout-padding"),u.each(e,function(n){return r.$$(n).remove()})),f=document.createDocumentFragment(),u.times(3,function(){return f.appendChild(r.$$("div",{className:"coveo-card-layout coveo-card-layout-padding"}).el)}),i(f));i(null)})},t}(e.ResultListRenderer);t.ResultListCardRenderer=o},function(n,t,i){"use strict";var u=this&&this.__extends||function(){var n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])};return function(t,i){function r(){this.constructor=t}n(t,i);t.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),f=this&&this.__awaiter||function(n,t,i,r){return new(i||(i=Promise))(function(u,f){function o(n){try{e(r.next(n))}catch(n){f(n)}}function s(n){try{e(r.throw(n))}catch(n){f(n)}}function e(n){n.done?u(n.value):new i(function(t){t(n.value)}).then(o,s)}e((r=r.apply(n,t||[])).next())})},e=this&&this.__generator||function(n,t){function f(n){return function(t){return s([n,t])}}function s(f){if(e)throw new TypeError("Generator is already executing.");for(;r;)try{if(e=1,u&&(i=u[2&f[0]?"return":f[0]?"throw":"next"])&&!(i=i.call(u,f[1])).done)return i;switch(u=0,i&&(f=[0,i.value]),f[0]){case 0:case 1:i=f;break;case 4:return r.label++,{value:f[1],done:!1};case 5:r.label++;u=f[1];f=[0];continue;case 7:f=r.ops.pop();r.trys.pop();continue;default:if(i=r.trys,!(i=i.length>0&&i[i.length-1])&&(6===f[0]||2===f[0])){r=0;continue}if(3===f[0]&&(!i||f[1]>i[0]&&f[1]<i[3])){r.label=f[1];break}if(6===f[0]&&r.label<i[1]){r.label=i[1];i=f;break}if(i&&r.label<i[2]){r.label=i[2];r.ops.push(f);break}i[2]&&r.ops.pop();r.trys.pop();continue}f=t.call(n,r)}catch(n){f=[6,n];u=0}finally{e=i=0}if(5&f[0])throw f[1];return{value:f[0]?f[1]:void 0,done:!0}}var e,u,i,o,r={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:f(0),"throw":f(1),"return":f(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o};Object.defineProperty(t,"__esModule",{value:!0});var o=i(214),s=i(469),h=i(1),r=i(0),c=function(n){function t(t,i){var r=n.call(this,t,i)||this;return r.resultListOptions=t,r.autoCreateComponentsFn=i,r.shouldDisplayHeader=!0,r.shouldDisplayFooter=!1,r.resultListOptions.resultTemplate instanceof s.TableTemplate&&(r.resultListOptions.resultTemplate.hasTemplateWithRole("table-footer")&&(r.shouldDisplayFooter=!0),0===r.resultListOptions.resultTemplate.templates.length||r.resultListOptions.resultTemplate.hasTemplateWithRole("table-header")||(r.shouldDisplayHeader=!1)),r}return u(t,n),t.prototype.getStartFragment=function(n,t){if(!t&&!r.isEmpty(n)&&this.shouldDisplayHeader)return this.renderRoledTemplate("table-header")},t.prototype.getEndFragment=function(n,t){if(!t&&!r.isEmpty(n)&&this.shouldDisplayFooter)return this.renderRoledTemplate("table-footer")},t.prototype.renderRoledTemplate=function(n){return f(this,void 0,void 0,function(){var t,i;return e(this,function(r){switch(r.label){case 0:return[4,this.resultListOptions.resultTemplate.instantiateRoleToElement(n)];case 1:return t=r.sent(),h.$$(t).addClass("coveo-result-list-"+n),this.autoCreateComponentsFn(t,void 0),i=document.createDocumentFragment(),i.appendChild(t),[2,i]}})})},t}(o.ResultListRenderer);t.ResultListTableRenderer=c},function(){},function(){},function(n,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=i(93),u=i(20),f=i(12),e=i(470),o=function(){function n(n,t,i,r){this.componentName=n;this.element=t;this.closeButtonLabel=i;this.close=r;this.className="coveo-"+this.componentName+"-dropdown-modal-content"}return Object.defineProperty(n.prototype,"hidden",{set:function(n){this.element.toggleClass("coveo-hidden",n)},enumerable:!0,configurable:!0}),n.prototype.positionDropdown=function(){this.element.el.classList.add(this.className,r.ResponsiveDropdownContent.DEFAULT_CSS_CLASS_NAME);this.element.setAttribute("role","group");this.element.setAttribute("aria-label",u.l("FiltersDropdown"));this.hidden=!1;this.ensureCloseButton();this.ensureFocusTrap()},n.prototype.hideDropdown=function(){this.element.el.classList.remove(this.className,r.ResponsiveDropdownContent.DEFAULT_CSS_CLASS_NAME);this.element.setAttribute("role",null);this.element.setAttribute("aria-label",null);this.hidden=!0;this.removeCloseButton();this.removeFocusTrap()},n.prototype.cleanUp=function(){this.hidden=!1},n.prototype.ensureCloseButton=function(){var n=this;this.closeButton||(this.closeButton=u.$$("button",{className:"coveo-facet-modal-close-button",type:"button",ariaLabel:this.closeButtonLabel},f.SVGIcons.icons.mainClear),this.closeButton.on("click",function(){return n.close()}),this.element.prepend(this.closeButton.el))},Object.defineProperty(n.prototype,"focusableSelector",{get:function(){return"[data-field]:not(.coveo-facet-empty) [tabindex] , [data-field]:not(.coveo-hidden) button , .coveo-facet-modal-close-button"},enumerable:!0,configurable:!0}),n.prototype.ensureFocusTrap=function(){this.focusTrap||(this.focusTrap=new e.FocusTrap(this.element.el,{focusableSelector:this.focusableSelector}))},n.prototype.removeCloseButton=function(){this.closeButton&&(this.closeButton.remove(),this.closeButton=null)},n.prototype.removeFocusTrap=function(){this.focusTrap&&(this.focusTrap.disable(),this.focusTrap=null)},n}();t.ResponsiveDropdownModalContent=o},function(n,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function n(){}return n.popupOpened="popupOpened",n.popupClosed="popupClosed",n}();t.FacetsMobileModeEvents=i},function(){},function(n,t){"use strict";function i(n){return!!n.isFieldValueCompatible}Object.defineProperty(t,"__esModule",{value:!0});t.isFacetFieldValueCompatible=i},function(){},function(){},function(){},function(){},function(n,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=i(25),u=function(){function n(n){this.facetSearch=n}return n.prototype.handleKeyboardEvent=function(n){switch(n.which){case r.KEYBOARD.ENTER:this.facetSearch.keyboardNavigationEnterPressed(n);break;case r.KEYBOARD.DELETE:this.facetSearch.keyboardNavigationDeletePressed&&this.facetSearch.keyboardNavigationDeletePressed(n);break;case r.KEYBOARD.ESCAPE:this.facetSearch.dismissSearchResults();break;case r.KEYBOARD.DOWN_ARROW:this.facetSearch.facetSearchElement.moveCurrentResultDown();break;case r.KEYBOARD.UP_ARROW:this.facetSearch.facetSearchElement.moveCurrentResultUp();break;default:this.facetSearch.keyboardEventDefaultHandler()}},n.prototype.handleFacetSearchResultsScroll=function(){if(!this.facetSearch.facetSearchPromise&&""==this.facetSearch.facetSearchElement.getValueInInputForFacetSearch()&&this.facetSearch.moreValuesToFetch){var n=this.facetSearch.facetSearchElement.searchResults.clientHeight;this.facetSearch.facetSearchElement.searchResults.scrollHeight-(this.facetSearch.facetSearchElement.searchResults.scrollTop+n)<n/2&&this.facetSearch.fetchMoreValues()}},n}();t.FacetSearchUserInputHandler=u},function(n,t,i){"use strict";function r(n,t){switch(n.facetType){case s.Facet.ID:return new e.FacetSearchDropdownNavigator(u({},t,{facetSearch:n}));case o.CategoryFacet.ID:default:return new f.DefaultSearchDropdownNavigator(t)}}var u=this&&this.__assign||Object.assign||function(n){for(var t,r,i=1,u=arguments.length;i<u;i++){t=arguments[i];for(r in t)Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n};Object.defineProperty(t,"__esModule",{value:!0});var f=i(480),e=i(546),o=i(94),s=i(69);t.SearchDropdownNavigatorFactory=r},function(n,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=i(480),u=i(1),f=function(){function n(n){this.config=n;this.defaultDropdownNavigator=new r.DefaultSearchDropdownNavigator(n)}return n.prototype.setAsCurrentResult=function(n){this.defaultDropdownNavigator.setAsCurrentResult(n)},Object.defineProperty(n.prototype,"currentResult",{get:function(){return this.defaultDropdownNavigator.currentResult},enumerable:!0,configurable:!0}),n.prototype.focusNextElement=function(){if(this.toggleCanExcludeCurrentResult(),this.willExcludeCurrentResult)return void this.announceCurrentResultCanBeExcluded();this.defaultDropdownNavigator.moveCurrentResultDown()},n.prototype.focusPreviousElement=function(){if(this.willExcludeCurrentResult)return void this.toggleCanExcludeCurrentResult();this.moveResultUp();this.toggleCanExcludeCurrentResult()},n.prototype.moveResultUp=function(){if(this.willExcludeCurrentResult)return void this.toggleCanExcludeCurrentResult();this.defaultDropdownNavigator.moveCurrentResultUp();this.toggleCanExcludeCurrentResult()},Object.defineProperty(n.prototype,"isCurrentResultNotAFacetValue",{get:function(){return this.currentResult.hasClass("coveo-facet-search-select-all")||this.currentResult.hasClass("coveo-facet-value-not-found")},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"willExcludeCurrentResult",{get:function(){return this.currentResult.hasClass("coveo-facet-value-will-exclude")},enumerable:!0,configurable:!0}),n.prototype.toggleCanExcludeCurrentResult=function(){this.isCurrentResultNotAFacetValue||this.currentResult.toggleClass("coveo-facet-value-will-exclude",!this.willExcludeCurrentResult)},n.prototype.announceCurrentResultCanBeExcluded=function(){if(!this.isCurrentResultNotAFacetValue){var n=u.$$(this.currentResult).find(".coveo-facet-value-exclude");this.config.facetSearch.updateAriaLive(n.getAttribute("aria-label"))}},n}();t.FacetSearchDropdownNavigator=f},function(n,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=i(1),f=i(12),e=i(16),u=i(0),o=i(6),s=i(23),h=function(){function n(){this.listRoot=r.$$("ul",{className:"coveo-category-facet-values"});this.collapseArrow=r.$$("span",{className:"coveo-category-facet-collapse-children"},f.SVGIcons.icons.arrowDown);e.SVGDom.addClassToSVGInContainer(this.collapseArrow.el,"coveo-category-facet-collapse-children-svg")}return n.prototype.buildListRoot=function(){return this.listRoot.clone(!0)},n.prototype.buildListElement=function(n){var t=r.$$("div",{},this.createListElement(n));return r.$$(t.el.firstChild)},n.prototype.buildAllCategoriesButton=function(){var n=r.$$("span",{className:"coveo-category-facet-all-categories-caption"},o.l("AllCategories"));return r.$$("li",{className:"coveo-category-facet-value coveo-category-facet-all-categories"},this.buildCollapseArrow(),n)},n.prototype.buildEllipsis=function(){var n=r.$$("span",{className:"coveo-category-facet-ellipsis-caption"},"[ ... ]");return r.$$("li",{className:"coveo-category-facet-ellipsis"},n)},n.prototype.buildCollapseArrow=function(){return this.collapseArrow.clone(!0)},n.prototype.getFormattedCount=function(n){return s.format(n,"n0")},n.prototype.createListElement=function(n){return'<li class="coveo-category-facet-value">\n        <label class="coveo-category-facet-value-label">\n          <span title="'+u.escape(n.value)+'" class="coveo-category-facet-value-caption">'+u.escape(n.value)+'<\/span>\n          <span class="coveo-category-facet-value-count">'+this.getFormattedCount(n.count)+"<\/span>\n        <\/label>\n      <\/li>"},n}();t.CategoryFacetTemplates=h},function(n,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=i(481),u=function(){function n(n,t,i){this.element=n;this.path=[];this.categoryChildrenValueRenderer=new r.CategoryChildrenValueRenderer(n,t,this,i);this.listRoot=t.buildListRoot();this.appendListRoot()}return n.prototype.renderChildren=function(n){this.appendListRoot();this.categoryChildrenValueRenderer.renderChildren(n)},n.prototype.renderAsParent=function(n){return this.appendListRoot(),this.categoryChildrenValueRenderer.renderAsParent(n)},Object.defineProperty(n.prototype,"children",{get:function(){return this.categoryChildrenValueRenderer.children},enumerable:!0,configurable:!0}),n.prototype.clear=function(){this.listRoot.detach();this.listRoot.empty();this.categoryChildrenValueRenderer.clearChildren()},n.prototype.appendListRoot=function(){this.element.append(this.listRoot.el)},n}();t.CategoryValueRoot=u},function(n,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=i(1),f=i(481),e=i(10),o=i(15),u=i(6),s=function(){function n(n,t,i,r){this.listRoot=n;this.categoryValueDescriptor=t;this.categoryFacetTemplates=i;this.categoryFacet=r;this.isActive=!1;this.element=this.categoryFacetTemplates.buildListElement({value:this.captionedValueDescriptorValue,count:this.categoryValueDescriptor.count});this.collapseArrow=this.categoryFacetTemplates.buildCollapseArrow();this.categoryChildrenValueRenderer=new f.CategoryChildrenValueRenderer(this.element,i,this,this.categoryFacet);this.path=this.categoryValueDescriptor.path}return n.prototype.render=function(n){this.pastMaximumDepth()&&this.element.addClass("coveo-category-facet-last-value");n?this.element.addClass("coveo-category-facet-child-value"):this.element.addClass("coveo-category-facet-parent-value");this.listRoot.append(this.element.el)},n.prototype.getDescriptor=function(){return{value:this.categoryValueDescriptor.value,count:this.categoryValueDescriptor.count,path:this.path}},n.prototype.clear=function(){this.element.detach();this.categoryChildrenValueRenderer.clearChildren()},n.prototype.renderChildren=function(n){this.isActive=!0;this.element.addClass("coveo-active-category-facet-parent");this.categoryChildrenValueRenderer.renderChildren(n)},n.prototype.renderAsParent=function(n){return this.categoryChildrenValueRenderer.renderAsParent(n)},Object.defineProperty(n.prototype,"children",{get:function(){return this.categoryChildrenValueRenderer.children},enumerable:!0,configurable:!0}),n.prototype.makeSelectable=function(){var i=this,n=r.$$(this.element.find(".coveo-category-facet-value-label"));n.addClass("coveo-selectable");var t=this.categoryValueDescriptor.count,f=u.l("ResultCount",t.toString(),t),e=u.l("IncludeValueWithResultCount",this.captionedValueDescriptorValue,f);return(new o.AccessibleButton).withElement(n).withSelectAction(function(){return i.onSelect()}).withLabel(e).build(),this},n.prototype.showCollapseArrow=function(){if(!this.collapseArrow.el.parentElement){var n=this.element.find("label");r.$$(n).prepend(this.collapseArrow.el)}return this},Object.defineProperty(n.prototype,"captionedValueDescriptorValue",{get:function(){var n=this.categoryValueDescriptor.value;return this.categoryFacet.getCaption(n)},enumerable:!0,configurable:!0}),n.prototype.onSelect=function(){this.pastMaximumDepth()||(this.categoryFacet.logAnalyticsEvent(e.analyticsActionCauseList.categoryFacetSelect,this.path),this.categoryFacet.scrollToTop(),this.categoryFacet.changeActivePath(this.path),this.categoryFacet.executeQuery())},n.prototype.pastMaximumDepth=function(){return this.path.length-this.categoryFacet.options.basePath.length>=this.categoryFacet.options.maximumDepth},n}();t.CategoryValue=s},function(n,t,i){"use strict";var f=this&&this.__assign||Object.assign||function(n){for(var t,r,i=1,u=arguments.length;i<u;i++){t=arguments[i];for(r in t)Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},e=this&&this.__awaiter||function(n,t,i,r){return new(i||(i=Promise))(function(u,f){function o(n){try{e(r.next(n))}catch(n){f(n)}}function s(n){try{e(r.throw(n))}catch(n){f(n)}}function e(n){n.done?u(n.value):new i(function(t){t(n.value)}).then(o,s)}e((r=r.apply(n,t||[])).next())})},o=this&&this.__generator||function(n,t){function f(n){return function(t){return s([n,t])}}function s(f){if(e)throw new TypeError("Generator is already executing.");for(;r;)try{if(e=1,u&&(i=u[2&f[0]?"return":f[0]?"throw":"next"])&&!(i=i.call(u,f[1])).done)return i;switch(u=0,i&&(f=[0,i.value]),f[0]){case 0:case 1:i=f;break;case 4:return r.label++,{value:f[1],done:!1};case 5:r.label++;u=f[1];f=[0];continue;case 7:f=r.ops.pop();r.trys.pop();continue;default:if(i=r.trys,!(i=i.length>0&&i[i.length-1])&&(6===f[0]||2===f[0])){r=0;continue}if(3===f[0]&&(!i||f[1]>i[0]&&f[1]<i[3])){r.label=f[1];break}if(6===f[0]&&r.label<i[1]){r.label=i[1];i=f;break}if(i&&r.label<i[2]){r.label=i[2];r.ops.push(f);break}i[2]&&r.ops.pop();r.trys.pop();continue}f=t.call(n,r)}catch(n){f=[6,n];u=0}finally{e=i=0}if(5&f[0])throw f[1];return{value:f[0]?f[1]:void 0,done:!0}}var e,u,i,o,r={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:f(0),"throw":f(1),"return":f(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o};Object.defineProperty(t,"__esModule",{value:!0});var u=i(475),r=i(4),s=function(){function n(n){this.categoryFacet=n}return n.prototype.putCategoryFacetInQueryBuilder=function(n,t,i){var r=n.categoryFacets.length;return this.addQueryFilter(n,t),this.addCategoryFacetRequest(n,t,i),r},n.prototype.searchFacetValues=function(n,t){return e(this,void 0,void 0,function(){var i,r,e,s;return o(this,function(o){switch(o.label){case 0:return i=f({},this.categoryFacet.queryController.getLastQuery()),r={allowedValues:[this.getAllowedValuesPattern(n)],allowedValuesPatternType:u.AllowedValuesPatternType.Wildcards,maximumNumberOfValues:t,field:this.categoryFacet.options.field,sortCriteria:"occurrences",injectionDepth:this.categoryFacet.options.injectionDepth},i.groupBy=[r],i.categoryFacets.splice(this.categoryFacet.positionInQuery,1),[4,this.categoryFacet.queryController.getEndpoint().search(i)];case 1:return e=o.sent(),s=function(n,t){return n.numberOfResults==t.numberOfResults?n.value.length-t.value.length:t.numberOfResults-n.numberOfResults},[2,e.groupByResults[0].values.sort(s)]}})})},n.prototype.addDebugGroupBy=function(n,t){n.groupByRequests.push({field:this.categoryFacet.options.field,allowedValues:[".*"+r.Utils.escapeRegexCharacter(t)+".*"],allowedValuesPatternType:u.AllowedValuesPatternType.Regex})},n.prototype.shouldAddFilterToQuery=function(n){return 0!=n.length&&!r.Utils.arrayEqual(n,this.categoryFacet.options.basePath)},n.prototype.addQueryFilter=function(n,t){this.shouldAddFilterToQuery(t)&&n.advancedExpression.addFieldExpression(this.categoryFacet.options.field,"==",[t.join(this.categoryFacet.options.delimitingCharacter)])},n.prototype.addCategoryFacetRequest=function(n,t,i){var r={field:this.categoryFacet.options.field,path:t,injectionDepth:this.categoryFacet.options.injectionDepth,maximumNumberOfValues:i,delimitingCharacter:this.categoryFacet.options.delimitingCharacter};n.categoryFacets.push(r)},n.prototype.getAllowedValuesPattern=function(n){var t=this.categoryFacet.options.basePath,i=this.categoryFacet.options.delimitingCharacter;return r.Utils.isNonEmptyArray(t)?""+t.join(i)+i+"*"+n+"*":"*"+n+"*"},n}();t.CategoryFacetQueryController=s},function(){},function(n,t,i){"use strict";var s=this&&this.__awaiter||function(n,t,i,r){return new(i||(i=Promise))(function(u,f){function o(n){try{e(r.next(n))}catch(n){f(n)}}function s(n){try{e(r.throw(n))}catch(n){f(n)}}function e(n){n.done?u(n.value):new i(function(t){t(n.value)}).then(o,s)}e((r=r.apply(n,t||[])).next())})},h=this&&this.__generator||function(n,t){function f(n){return function(t){return s([n,t])}}function s(f){if(e)throw new TypeError("Generator is already executing.");for(;r;)try{if(e=1,u&&(i=u[2&f[0]?"return":f[0]?"throw":"next"])&&!(i=i.call(u,f[1])).done)return i;switch(u=0,i&&(f=[0,i.value]),f[0]){case 0:case 1:i=f;break;case 4:return r.label++,{value:f[1],done:!1};case 5:r.label++;u=f[1];f=[0];continue;case 7:f=r.ops.pop();r.trys.pop();continue;default:if(i=r.trys,!(i=i.length>0&&i[i.length-1])&&(6===f[0]||2===f[0])){r=0;continue}if(3===f[0]&&(!i||f[1]>i[0]&&f[1]<i[3])){r.label=f[1];break}if(6===f[0]&&r.label<i[1]){r.label=i[1];i=f;break}if(i&&r.label<i[2]){r.label=i[2];r.ops.push(f);break}i[2]&&r.ops.pop();r.trys.pop();continue}f=t.call(n,r)}catch(n){f=[6,n];u=0}finally{e=i=0}if(5&f[0])throw f[1];return{value:f[0]?f[1]:void 0,done:!0}}var e,u,i,o,r={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:f(0),"throw":f(1),"return":f(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o};Object.defineProperty(t,"__esModule",{value:!0});var c=i(94),l=i(479),u=i(0),r=i(1),a=i(16),v=i(12),f=i(6);i(553);var y=i(22),e=i(10),o=i(15),p=i(23),w=function(){function n(n,t){void 0===t&&(t=!0);var i=this;this.categoryFacet=n;this.displayButton=t;this.moreValuesToFetch=!0;this.facetSearchElement=new l.FacetSearchElement(this);this.displayNewValues=u.debounce(this.getDisplayNewValuesFunction(),this.categoryFacet.options.facetSearchDelay);this.categoryFacet.root.addEventListener("click",function(n){return i.handleClickElsewhere(n)});this.numberOfValuesToFetch=this.categoryFacet.options.numberOfResultsInFacetSearch}return Object.defineProperty(n.prototype,"facetType",{get:function(){return c.CategoryFacet.ID},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"facetTitle",{get:function(){return this.categoryFacet.options.title||this.categoryFacet.options.field.toString()},enumerable:!0,configurable:!0}),n.prototype.setExpandedFacetSearchAccessibilityAttributes=function(){this.container.setAttribute("aria-expanded","true")},n.prototype.setCollapsedFacetSearchAccessibilityAttributes=function(){this.container.setAttribute("aria-expanded","false")},n.prototype.build=function(){return this.container=r.$$("div",{className:"coveo-category-facet-search-container",role:"button"}),this.container.toggleClass("coveo-category-facet-search-without-button",!this.displayButton),this.displayButton&&this.buildButton(),this.container.append(this.facetSearchElement.build()),r.$$(this.facetSearchElement.search).toggleClass("without-animation",!this.displayButton),this.container},n.prototype.buildButton=function(){var n=this;(new o.AccessibleButton).withElement(this.container).withSelectAction(function(){r.$$(n.categoryFacet.element).addClass("coveo-category-facet-searching");n.focus()}).withLabel(f.l("SearchFacetResults",this.facetTitle)).build();this.buildfacetSearchPlaceholder()},n.prototype.focus=function(){this.facetSearchElement.focus()},n.prototype.clear=function(){this.dismissSearchResults();this.container&&this.container.detach()},n.prototype.dismissSearchResults=function(){this.removeNoResultsCssClasses();r.$$(this.categoryFacet.element).removeClass("coveo-category-facet-searching");r.$$(this.facetSearchElement.searchResults).empty();this.facetSearchElement.clearSearchInput();this.facetSearchElement.hideSearchResultsElement();this.currentlyDisplayedResults=null;this.numberOfValuesToFetch=this.categoryFacet.options.numberOfResultsInFacetSearch;this.moreValuesToFetch=!0},n.prototype.keyboardEventDefaultHandler=function(){this.moreValuesToFetch=!0;this.displayNewValues()},n.prototype.keyboardNavigationEnterPressed=function(){this.selectCurrentResult()},n.prototype.fetchMoreValues=function(){this.numberOfValuesToFetch+=this.categoryFacet.options.numberOfResultsInFacetSearch;this.displayNewValues()},n.prototype.getCaptions=function(){var n=r.$$(this.facetSearchElement.searchResults);return n.findAll(".coveo-category-facet-search-value-caption").concat(n.findAll(".coveo-category-facet-search-path-parents")).concat(n.findAll(".coveo-category-facet-search-path-last-value"))},n.prototype.updateAriaLive=function(n){this.categoryFacet.searchInterface.ariaLive.updateText(n)},n.prototype.selectCurrentResult=function(){if(this.facetSearchElement.currentResult){var t=this.facetSearchElement.currentResult.el.dataset.path,i=this.categoryFacet.options.delimitingCharacter,n=t.split(i);this.categoryFacet.changeActivePath(n);this.categoryFacet.logAnalyticsEvent(e.analyticsActionCauseList.categoryFacetSelect,n);this.categoryFacet.executeQuery();this.categoryFacet.scrollToTop()}},n.prototype.handleClickElsewhere=function(n){var t=r.$$(n.target).closest(".coveo-category-facet-search-container"),i=this.container&&t===this.container.el;t&&i||this.dismissSearchResults()},n.prototype.buildfacetSearchPlaceholder=function(){var n=r.$$("div",{className:"coveo-category-facet-search-placeholder"}),t=r.$$("div",{className:"coveo-category-facet-search-icon"},v.SVGIcons.icons.checkboxHookExclusionMore),i;a.SVGDom.addClassToSVGInContainer(t.el,"coveo-category-facet-search-icon-svg");i=r.$$("span",{className:"coveo-category-facet-search-label"},f.l("Search"));n.append(t.el);n.append(i.el);this.container.append(n.el)},n.prototype.getDisplayNewValuesFunction=function(){var n=this;return function(){return s(n,void 0,void 0,function(){var n;return h(this,function(t){switch(t.label){case 0:return this.facetSearchElement.showFacetSearchWaitingAnimation(),this.categoryFacet.logger.info("Triggering new Category Facet search"),[4,this.categoryFacet.categoryFacetQueryController.searchFacetValues(this.facetSearchElement.input.value,this.numberOfValuesToFetch)];case 1:return n=t.sent(),(this.logAnalyticsEvent(),n.length<this.numberOfValuesToFetch&&(this.moreValuesToFetch=!1),0==n.length)?(this.noFacetSearchResults(),[2]):(this.removeNoResultsCssClasses(),this.setFacetSearchResults(n),this.shouldPositionSearchResults&&this.facetSearchElement.positionSearchResults(),this.facetSearchElement.hideFacetSearchWaitingAnimation(),[2])}})})}},n.prototype.setFacetSearchResults=function(n){var t,i;for(r.$$(this.facetSearchElement.searchResults).empty(),this.currentlyDisplayedResults=u.pluck(n,"value"),t=0;t<n.length;t++)i=this.buildFacetSearchValue(n[t],t),0==t&&this.facetSearchElement.setAsCurrentResult(i),this.facetSearchElement.appendToSearchResults(i.el);this.highlightCurrentQueryWithinSearchResults();this.facetSearchElement.updateAriaLiveWithResults(this.facetSearchElement.input.value,this.currentlyDisplayedResults.length,this.moreValuesToFetch)},n.prototype.getFormattedCount=function(n){return p.format(n,"n0")},n.prototype.buildFacetSearchValue=function(n,t){var s=this,i=n.value.split(this.categoryFacet.options.delimitingCharacter),a=0!=i.slice(0,-1).length?i.slice(0,-1).join("/")+"/":"",v=r.$$("span",{className:"coveo-category-facet-search-value-caption"},u.last(i)),y=r.$$("span",{className:"coveo-category-facet-search-value-number"},this.getFormattedCount(n.numberOfResults)),p=r.$$("span",{className:"coveo-category-facet-search-path-parents"},a),w=r.$$("span",{className:"coveo-category-facet-search-path"},p),b=r.$$("div",{className:"coveo-category-facet-search-first-row"},v,y),k=r.$$("div",{className:"coveo-category-facet-search-second-row"},w),h=r.$$("li",{id:"coveo-category-facet-search-suggestion-"+t,role:"option",ariaSelected:"false",className:"coveo-category-facet-search-value",title:i},b,k),c,l;return h.el.dataset.path=n.value,c=f.l("ResultCount",this.getFormattedCount(n.numberOfResults),n.numberOfResults),l=f.l("IncludeValueWithResultCount",u.last(i),c),(new o.AccessibleButton).withElement(h).withSelectAction(function(){s.categoryFacet.changeActivePath(i);s.categoryFacet.scrollToTop();s.categoryFacet.logAnalyticsEvent(e.analyticsActionCauseList.categoryFacetSelect,i);s.categoryFacet.executeQuery()}).withLabel(l).build(),h},n.prototype.noFacetSearchResults=function(){this.facetSearchElement.hideFacetSearchWaitingAnimation();this.facetSearchElement.emptyAndShowNoResults();r.$$(this.facetSearchElement.search).addClass("coveo-facet-search-no-results");r.$$(this.categoryFacet.element).addClass("coveo-no-results")},n.prototype.removeNoResultsCssClasses=function(){this.facetSearchElement.search&&r.$$(this.facetSearchElement.search).removeClass("coveo-facet-search-no-results");r.$$(this.categoryFacet.element).removeClass("coveo-no-results")},n.prototype.highlightCurrentQueryWithinSearchResults=function(){var n=new RegExp("("+y.StringUtils.stringToRegex(this.facetSearchElement.input.value,!0)+")","ig");this.facetSearchElement.highlightCurrentQueryInSearchResults(n)},n.prototype.logAnalyticsEvent=function(){this.categoryFacet.usageAnalytics.logCustomEvent(e.analyticsActionCauseList.categoryFacetSearch,{categoryFacetId:this.categoryFacet.options.id,categoryFacetField:this.categoryFacet.options.field.toString(),categoryFacetTitle:this.categoryFacet.options.title},this.categoryFacet.root)},Object.defineProperty(n.prototype,"shouldPositionSearchResults",{get:function(){var n=this.facetSearchElement.searchResults;return n&&!n.parentElement},enumerable:!0,configurable:!0}),n}();t.CategoryFacetSearch=w},function(){},function(n,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=i(1),u=i(12),f=i(15),e=i(6),o=i(0),s=i(48),h=function(){function n(n,t,i,r){this.categoryFacet=n;this.onClickHandler=t;this.categoryValueDescriptor=i;this.options=r}return n.prototype.build=function(){var i=this,h=r.$$("span",{className:"coveo-facet-breadcrumb-clear"},u.SVGIcons.icons.mainClear),c=o.without.apply(void 0,[this.categoryValueDescriptor.path].concat(this.categoryFacet.options.basePath)),n=c.map(function(n){return i.categoryFacet.getCaption(n)}).join("/"),l=r.$$(s.getHeadingTag(this.options&&this.options.headingLevel,"span"),{className:"coveo-category-facet-breadcrumb-title"},this.categoryFacet.options.title+":"),t=r.$$("span",{className:"coveo-category-facet-breadcrumb-values"},n,h);return(new f.AccessibleButton).withElement(t).withLabel(e.l("RemoveFilterOn",n)).withSelectAction(this.onClickHandler).build(),r.$$("span",{className:"coveo-category-facet-breadcrumb"},l,t).el},n}();t.CategoryFacetBreadcrumb=h},function(n,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var f=i(94),r=i(11),u=i(0),e=i(9),o=(function(){}(),function(){function n(n){var t=this;this.categoryFacet=n;this.categoryFacet.bind.onRootElement(r.QueryEvents.buildingQuery,function(n){return t.handleBuildingQuery(n)});this.categoryFacet.bind.onRootElement(r.QueryEvents.querySuccess,function(n){t.handleQuerySuccess(n)})}return n.prototype.handleBuildingQuery=function(n){var t=n.queryBuilder.groupByRequests.length,i;0==this.categoryFacet.activePath.length?(this.positionInQuery={start:t,end:t+1},this.addGroupByForEmptyPath(n.queryBuilder)):(i=this.categoryFacet.activePath,this.positionInQuery={start:t,end:t+i.length},this.addGroupByForEachPathElement(n.queryBuilder,i))},n.prototype.handleQuerySuccess=function(t){var i=this;t.results.groupByResults.slice(this.positionInQuery.start,this.positionInQuery.end).forEach(function(t){return n.analyzeResults(t,i.categoryFacet.options.delimitingCharacter)})},n.prototype.addGroupByForEmptyPath=function(n){n.groupByRequests.push({field:this.categoryFacet.options.field,injectionDepth:this.categoryFacet.options.injectionDepth})},n.prototype.addGroupByForEachPathElement=function(n,t){var i=this;t.forEach(function(t){i.categoryFacet.categoryFacetQueryController.addDebugGroupBy(n,t)})},n.analyzeResults=function(n,t){var i=this,f=new Map,e=[],r=this.buildPathsFromGroupByValues(n.values,t);return r=u.sortBy(r,function(n){return n.length}),r.forEach(function(n){var h;if(1==n.length)i.addFirstNodeToTree(f,n);else{for(var o=!0,c=n.slice(0,-1),r=f,u=0,s=c;u<s.length;u++)if(h=s[u],!(r=r.get(h))){i.processOrphan(e,n,t);o=!1;break}o&&i.addValidNodeToTree(r,n)}}),e},n.buildPathsFromGroupByValues=function(n,t){return u.chain(n).pluck("value").map(function(n){return n.split(t)}).sortBy(function(n){return n.length}).value()},n.addFirstNodeToTree=function(n,t){n.set(t[0],new Map)},n.addValidNodeToTree=function(n,t){n.set(t.slice(-1)[0],new Map)},n.processOrphan=function(n,t,i){var r=t.join(i);n.push(r);this.logger.error("Value "+r+" has no parent.")},n.logger=new e.Logger(f.CategoryFacet),n}());t.CategoryFacetDebug=o},function(n,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=i(94),r=i(1),u=i(6),f=i(12),e=i(16),s=i(15),h=function(){function n(n){this.options=n;this.element=document.createElement("div");r.$$(this.element).addClass("coveo-facet-header")}return n.prototype.build=function(){var t=this.buildWaitAnimation(),i=r.$$("div",{className:"coveo-category-facet-title",role:"heading","aria-level":"2","aria-label":u.l("FacetTitle",this.options.title)+"."},this.options.title),n;return this.element=r.$$("div",{className:"coveo-category-facet-header"},i).el,r.$$(this.element).append(t),n=this.buildEraser(),r.$$(this.element).append(n),this.element},n.prototype.buildWaitAnimation=function(){var n=r.$$("div",{className:o.CategoryFacet.WAIT_ELEMENT_CLASS},f.SVGIcons.icons.loading).el;return e.SVGDom.addClassToSVGInContainer(n,"coveo-category-facet-header-wait-animation-svg"),n.style.visibility="hidden",n},n.prototype.buildEraser=function(){var i=this,n=r.$$("div",{className:"coveo-category-facet-header-eraser coveo-facet-header-eraser"},f.SVGIcons.icons.mainClear).el,t;return e.SVGDom.addClassToSVGInContainer(n,"coveo-facet-header-eraser-svg"),t=function(){i.options.categoryFacet.reset();i.options.categoryFacet.scrollToTop()},(new s.AccessibleButton).withElement(n).withLabel(u.l("Clear",this.options.title)).withClickAction(t).withEnterKeyboardAction(t).build(),n},n}();t.CategoryFacetHeader=h},function(n,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=i(0),u=function(){function n(){this.seenValues=[]}return n.prototype.getValueForLastPartInPath=function(n){for(var t,r={value:"",numberOfResults:0},i=0,u=n;i<u.length;i++){var e=u[i],o=t?t.children:this.seenValues,f=this.findNodeWithValue(o,e);if(!f)return r;t=f}return t?t.result:r},n.prototype.storeNewValues=function(n){for(var i,f,e=this,t=this.seenValues,r=0,u=n.parentValues;r<u.length;r++)i=u[r],this.findNodeWithValue(t,i.value)||(f={result:i,children:[]},t.push(f)),t=this.findNodeWithValue(t,i.value).children;n.values.filter(function(n){return!e.findNodeWithValue(t,n.value)}).forEach(function(n){return t.push({result:n,children:[]})})},n.prototype.findNodeWithValue=function(n,t){return r.find(n,function(n){return n.result.value===t})},n}();t.CategoryFacetValuesTree=u},function(){},function(n,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var u=i(5),f=i(4),e=i(118),r=i(0),o=function(){function n(n){this.values=f.Utils.exists(n)?r.map(n.values,function(n){return e.FacetValue.createFromGroupByValue(n)}):[]}return n.prototype.add=function(n){u.Assert.exists(n);u.Assert.check(!this.contains(n.value));this.values.push(n)},n.prototype.remove=function(n){u.Assert.isNonEmptyString(n);n=n;this.values=r.filter(this.values,function(t){return t.value!=n})},n.prototype.size=function(){return this.values.length},n.prototype.isEmpty=function(){return 0==this.values.length},n.prototype.at=function(n){return u.Assert.isLargerOrEqualsThan(0,n),u.Assert.isSmallerThan(this.values.length,n),this.values[n]},n.prototype.get=function(n){return r.find(this.values,function(t){return t.value.toLowerCase()==n.toLowerCase()})},n.prototype.contains=function(n){return f.Utils.exists(this.get(n))},n.prototype.getAll=function(){return this.values},n.prototype.getSelected=function(){return r.filter(this.values,function(n){return n.selected})},n.prototype.getExcluded=function(){return r.filter(this.values,function(n){return n.excluded})},n.prototype.hasSelectedOrExcludedValues=function(){return 0!=this.getSelected().length||0!=this.getExcluded().length},n.prototype.hasSelectedAndExcludedValues=function(){return 0!=this.getSelected().length&&0!=this.getExcluded().length},n.prototype.hasOnlyExcludedValues=function(){return 0==this.getSelected().length&&0!=this.getExcluded().length},n.prototype.hasOnlySelectedValues=function(){return 0!=this.getSelected().length&&0==this.getExcluded().length},n.prototype.reset=function(){r.each(this.values,function(n){return n.reset()})},n.prototype.importActiveValuesFromOtherList=function(n){var t=this;u.Assert.exists(n);r.each(n.getSelected(),function(n){var i=t.get(n.value);f.Utils.exists(i)?i.selected=!0:t.values.push(n.cloneWithZeroOccurrences())});r.each(n.getExcluded(),function(n){var r=t.get(n.value),u,i;f.Utils.exists(r)?r.excluded=!0:0!=n.occurrences?(u=n.occurrences,i=n.cloneWithZeroOccurrences(),i.occurrences=u,t.values.push(i)):t.values.push(n.cloneWithZeroOccurrences())})},n.prototype.updateCountsFromNewValues=function(n){u.Assert.exists(n);this.values=r.map(this.values,function(t){var i=n.get(t.value);return f.Utils.exists(i)?(t.updateCountsFromNewValue(i),t):null==t.occurrences?t.cloneWithZeroOccurrences():t})},n.prototype.updateDeltaWithFilteredFacetValues=function(n,t){var i=this;u.Assert.exists(n);r.each(this.values,function(r){var u=n.get(r.value);r.waitingForDelta=!1;f.Utils.exists(u)?r.occurrences-u.occurrences>0?i.hasOnlyExcludedValues()?(r.delta=null,r.occurrences=u.occurrences):r.delta=r.occurrences-u.occurrences:r.delta=null:r.selected||r.excluded||(t&&0==n.values.length?(r.delta=null,r.occurrences=0):r.delta=r.occurrences)})},n.prototype.mergeWithUnfilteredFacetValues=function(n){var e=this,t,i;u.Assert.exists(n);t=[];r.each(n.values,function(n){var i=e.get(n.value);f.Utils.exists(i)?i.occurrences==n.occurrences?t.push(i):t.push(n.cloneWithDelta(n.occurrences,n.occurrences-i.occurrences)):t.push(n.cloneWithDelta(n.occurrences,n.occurrences))});i=0;r.each(this.values,function(r){var e=n.get(r.value),u;if(f.Utils.exists(e)){for(u=0;u<t.length;u++)if(t[u].value==r.value){i=u+1;break}}else(r.selected||r.excluded)&&(t.splice(i,0,r),i++)});this.values=t},n.prototype.sort=function(n){var t=n.facetValuesOrder,i=n.numberOfValues;this.values=t.reorderValuesIfUsingAlphabeticalSort(this.values);this.sortValuesDependingOnStatus(i);this.values=t.reorderValuesIfUsingCustomSort(this.values)},n.prototype.sortValuesDependingOnStatus=function(n){this.values=r.sortBy(this.values,function(n){return n.selected?1:n.excluded?3:2});this.ensureExcludedValuesAreDisplayed(n)},n.prototype.ensureExcludedValuesAreDisplayed=function(n){var t,i,r;null!=n&&n<this.values.length&&(t=this.getExcluded().length,i=this.values.splice(this.values.length-t,t),(r=this.values).splice.apply(r,[n-t,0].concat(i)))},n}();t.FacetValues=o},function(){},function(n,t,i){"use strict";function e(){o.exportGlobally({MagicBox:{EndOfInputResult:f.EndOfInputResult,ExpressionConstant:s.ExpressionConstant,ExpressionEndOfInput:h.ExpressionEndOfInput,ExpressionFunction:c.ExpressionFunction,ExpressionList:l.ExpressionList,ExpressionOptions:a.ExpressionOptions,ExpressionRef:v.ExpressionRef,ExpressionRegExp:y.ExpressionRegExp,Grammar:p.Grammar,Grammars:u.Grammars,InputManager:w.InputManager,Instance:r.MagicBoxInstance,OptionResult:k.OptionResult,RefResult:d.RefResult,Result:f.Result,SuggestionsManager:g.SuggestionsManager,Utils:b.MagicBoxUtils,create:r.createMagicBox,requestAnimationFrame:r.requestAnimationFrame}})}Object.defineProperty(t,"__esModule",{value:!0});var o=i(3),s=i(218),h=i(217),c=i(497),l=i(498),a=i(494),v=i(492),y=i(496),p=i(175),u=i(562),w=i(503),r=i(221),b=i(222),k=i(495),d=i(493),f=i(52),g=i(220);t.GrammarsImportedLocally=u.Grammars;t.doMagicBoxExport=e},function(n,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=i(132),f=i(507),e=i(500),u=i(508),o=i(219),s=i(499),h=i(501),c=i(502);t.Grammars={Basic:r.Basic,notInWord:r.notInWord,notWordStart:r.notWordStart,Complete:f.Complete,Date:e.Date,Expressions:u.Expressions,ExpressionsGrammar:u.ExpressionsGrammar,Field:o.Field,NestedQuery:s.NestedQuery,QueryExtension:h.QueryExtension,SubExpression:c.SubExpression}},function(n,t,i){"use strict";var c=this&&this.__awaiter||function(n,t,i,r){return new(i||(i=Promise))(function(u,f){function o(n){try{e(r.next(n))}catch(n){f(n)}}function s(n){try{e(r.throw(n))}catch(n){f(n)}}function e(n){n.done?u(n.value):new i(function(t){t(n.value)}).then(o,s)}e((r=r.apply(n,t||[])).next())})},l=this&&this.__generator||function(n,t){function f(n){return function(t){return s([n,t])}}function s(f){if(e)throw new TypeError("Generator is already executing.");for(;r;)try{if(e=1,u&&(i=u[2&f[0]?"return":f[0]?"throw":"next"])&&!(i=i.call(u,f[1])).done)return i;switch(u=0,i&&(f=[0,i.value]),f[0]){case 0:case 1:i=f;break;case 4:return r.label++,{value:f[1],done:!1};case 5:r.label++;u=f[1];f=[0];continue;case 7:f=r.ops.pop();r.trys.pop();continue;default:if(i=r.trys,!(i=i.length>0&&i[i.length-1])&&(6===f[0]||2===f[0])){r=0;continue}if(3===f[0]&&(!i||f[1]>i[0]&&f[1]<i[3])){r.label=f[1];break}if(6===f[0]&&r.label<i[1]){r.label=i[1];i=f;break}if(i&&r.label<i[2]){r.label=i[2];r.ops.push(f);break}i[2]&&r.ops.pop();r.trys.pop();continue}f=t.call(n,r)}catch(n){f=[6,n];u=0}finally{e=i=0}if(5&f[0])throw f[1];return{value:f[0]?f[1]:void 0,done:!0}}var e,u,i,o,r={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:f(0),"throw":f(1),"return":f(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o};Object.defineProperty(t,"__esModule",{value:!0});var r=i(1),f=i(6),e=i(0),a=i(7),u=i(220),o=i(509),s=i(504),h=i(4),v=function(){function n(n,t){void 0===t&&(t={});this.element=n;this.options=e.defaults(t,{previewHeaderText:f.l("QuerySuggestPreview"),previewHeaderFieldText:f.l("QuerySuggestPreviewWithField"),previewClass:"coveo-preview-selectable",selectedClass:"magic-box-selected"});this.root=a.Component.resolveRoot(n);this.previewsProcessor=new s.QueryProcessor({timeout:this.options.timeout})}return Object.defineProperty(n.prototype,"previewsOwner",{get:function(){return this.lastDisplayedSuggestion},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"hasPreviews",{get:function(){return!!this.suggestionsPreviewContainer},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"focusedPreviewElement",{get:function(){if(!this.hasPreviews)return null;var n=this.suggestionsPreviewContainer.findClass(this.options.selectedClass)[0];return n&&n.classList.contains(this.options.previewClass)?n:null},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"previewElements",{get:function(){return this.hasPreviews?this.suggestionsPreviewContainer.findClass(this.options.previewClass):[]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"suggestionsListbox",{get:function(){return r.$$(r.$$(this.element).findClass("coveo-magicbox-suggestions")[0])},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"numberOfResultsPerRow",{get:function(){var n=this.suggestionsPreviewContainer.findClass(this.options.previewClass),i,t;return 0===n.length?0:(i=n[0].offsetTop,t=e.findIndex(n,function(n){return n.offsetTop!==i}),-1!==t?t:n.length)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"previewContainerId",{get:function(){return"coveo-previews-for-"+this.lastDisplayedSuggestion.dom.id},enumerable:!0,configurable:!0}),n.prototype.displaySearchResultPreviewsForSuggestion=function(n){return c(this,void 0,void 0,function(){var t,i,e,o,r,u,f;return l(this,function(c){switch(c.label){case 0:return t=this.getExternalOptions(),i=this.lastDelay=h.Utils.resolveAfter(h.Utils.isNullOrUndefined(t.displayAfterDuration)?200:t.displayAfterDuration),[4,i];case 1:return c.sent(),i!==this.lastDelay?[2]:(e=n&&this.lastQueriedSuggestion===n)?[2]:(o=this.lastDisplayedSuggestion===n)?(this.previewsProcessor.overrideIfProcessing(),this.lastQueriedSuggestion=null,[2]):(this.lastQueriedSuggestion=n,n?[4,this.getSearchResultPreviewsQuery(n)]:(this.displaySuggestionPreviews(null,[]),[2]));case 2:return r=c.sent(),(u=r.status,f=r.results,u===s.ProcessingStatus.Overriden)?[2]:(this.lastQueriedSuggestion=null,this.displaySuggestionPreviews(n,f),[2])}})})},n.prototype.getElementInDirection=function(n){var t=this.previewElements,i=t.indexOf(this.focusedPreviewElement);return-1===i?null:0===i&&n===u.Direction.Left?null:t[(i+this.getIncrementInDirection(n))%t.length]},n.prototype.getIncrementInDirection=function(n){switch(n){case u.Direction.Left:return-1;case u.Direction.Right:return 1;case u.Direction.Up:return-this.numberOfResultsPerRow;case u.Direction.Down:return this.numberOfResultsPerRow}},n.prototype.setHasPreviews=function(n){this.hasPreviews!==!!n&&(n?this.initPreviewForSuggestions():this.revertPreviewForSuggestions())},n.prototype.initPreviewForSuggestions=function(){this.suggestionsPreviewContainer=r.$$("div",{className:"coveo-suggestion-container"},this.suggestionsListbox.el,this.buildPreviewContainer());this.element.appendChild(this.suggestionsPreviewContainer.el);this.suggestionsListbox.setAttribute("aria-controls",this.previewContainerId)},n.prototype.revertPreviewForSuggestions=function(){this.element.appendChild(this.suggestionsListbox.el);this.suggestionsPreviewContainer.remove();this.suggestionsPreviewContainer=null},n.prototype.buildPreviewContainer=function(){return r.$$("div",{className:"coveo-preview-container",id:this.previewContainerId},this.resultPreviewsContainer=r.$$("div",{className:"coveo-preview-results",role:"listbox","aria-orientation":"horizontal"})).el},n.prototype.getExternalOptions=function(){var n={};return r.$$(this.root).trigger(o.ResultPreviewsManagerEvents.updateResultPreviewsManagerOptions,n),n},n.prototype.getSearchResultPreviewsQuery=function(n){var t={suggestion:n,previewsQueries:[]};return r.$$(this.root).trigger(o.ResultPreviewsManagerEvents.populateSearchResultPreviews,t),this.previewsProcessor.processQueries(t.previewsQueries)},n.prototype.appendSearchResultPreview=function(n,t){this.resultPreviewsContainer.append(n.element);n.element.id="coveo-result-preview-"+t;var i=r.$$(n.element);i.setAttribute("aria-selected","false");i.setAttribute("role","option");i.on("click",function(){return n.onSelect()});i.on("keyboardSelect",function(){return n.onSelect()})},n.prototype.appendSearchResultPreviews=function(n){var t=this;this.resultPreviewsContainer.empty();n.forEach(function(n,i){return t.appendSearchResultPreview(n,i)})},n.prototype.displaySuggestionPreviews=function(n,t){this.lastDisplayedSuggestion=n;this.setHasPreviews(t&&t.length>0);this.element.classList.toggle("magic-box-hasPreviews",this.hasPreviews);this.hasPreviews&&this.appendSearchResultPreviews(t)},n}();t.ResultPreviewsManager=v},function(n,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=i(1),u=i(6),f=i(15),e=function(){function n(n){this.element=r.$$("div",{className:"magic-box-clear"});var t=r.$$("div",{className:"magic-box-icon"});this.element.append(t.el);this.element.insertAfter(r.$$(n.element).find("input"));(new f.AccessibleButton).withElement(this.element).withLabel(u.l("Clear")).withSelectAction(function(){return n.clear()}).build();this.toggleTabindexAndAriaHidden(!1)}return n.prototype.toggleTabindexAndAriaHidden=function(n){var t=n?"0":"-1";this.element.setAttribute("tabindex",t);this.element.setAttribute("aria-hidden",""+!n)},n}();t.MagicBoxClear=e},function(){},function(){},function(){},function(n,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=i(6),u=i(12),f=i(1),e=i(505),o=i(16),s=function(){function n(n){this.options=n;this.create()}return n.prototype.create=function(){var t=this,n=f.$$("div");this.button=new e.DynamicFacetHeaderButton({label:r.l("CollapseFacet",this.options.title),iconSVG:u.SVGIcons.icons.arrowUp,iconClassName:"coveo-dynamic-facet-collapse-toggle-svg",className:"coveo-dynamic-facet-header-collapse",shouldDisplay:!0,action:function(){return t.options.toggleCollapse()}});n.append(this.button.element);this.element=n.el},n.prototype.toggleButton=function(n){var t=f.$$(this.button.element),i=n?r.l("ExpandFacet",this.options.title):r.l("CollapseFacet",this.options.title),e=n?u.SVGIcons.icons.arrowDown:u.SVGIcons.icons.arrowUp;t.setAttribute("aria-label",i);t.setAttribute("title",i);t.setAttribute("aria-expanded",(!n).toString());t.toggleClass("coveo-dynamic-facet-header-expand",n);t.toggleClass("coveo-dynamic-facet-header-collapse",!n);t.setHtml(e);o.SVGDom.addClassToSVGInContainer(t.el,"coveo-dynamic-facet-collapse-toggle-svg")},n}();t.DynamicFacetHeaderCollapseToggle=s},function(n,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var e=i(56),u=i(1),r=i(25),f=i(4),o=function(){function n(n){this.combobox=n;this.inputOptions={usePlaceholder:!0,className:"coveo-combobox-input",triggerOnChangeAsYouType:!0,isRequired:!1,icon:"search"};this.create();this.element=this.textInput.getElement();this.inputElement=u.$$(this.element).find("input");this.addEventListeners();this.addAccessibilityAttributes()}return Object.defineProperty(n.prototype,"value",{get:function(){return this.inputElement.value},enumerable:!0,configurable:!0}),n.prototype.create=function(){var n=this;this.textInput=new e.TextInput(function(t){return n.combobox.onInputChange(t.getValue())},this.combobox.options.placeholderText,this.inputOptions)},n.prototype.addEventListeners=function(){var n=this;this.combobox.options.clearOnBlur||this.inputElement.addEventListener("focus",function(){return n.combobox.onInputChange(n.textInput.getValue())});this.combobox.element.addEventListener("focusout",function(t){return n.handleFocusOut(t)});this.combobox.element.addEventListener("keydown",function(t){return n.handleKeyboardDirection(t)});this.combobox.element.addEventListener("keyup",function(t){return n.handleKeyboardEnterEscape(t)})},n.prototype.addAccessibilityAttributes=function(){var n=this.combobox.id+"-listbox";this.inputElement.setAttribute("role","combobox");this.inputElement.setAttribute("aria-owns",n);this.inputElement.setAttribute("aria-haspopup","listbox");this.inputElement.setAttribute("aria-autocomplete","list");this.inputElement.setAttribute("id",this.combobox.id+"-input");this.inputElement.setAttribute("aria-label",this.combobox.options.label);this.updateAccessibilityAttributes({activeDescendant:"",expanded:!1})},n.prototype.updateAccessibilityAttributes=function(n){this.inputElement.setAttribute("aria-expanded",n.expanded?"true":"false");f.Utils.isEmptyString(n.activeDescendant)?this.inputElement.removeAttribute("aria-activedescendant"):this.inputElement.setAttribute("aria-activedescendant",n.activeDescendant)},n.prototype.clearInput=function(){this.textInput.reset()},n.prototype.handleFocusOut=function(n){var t=n.relatedTarget;if(!this.combobox.element.contains(t)){if(u.$$(this.combobox.element).find(".coveo-combobox-values:hover"))return void this.inputElement.focus();this.combobox.onInputBlur()}},n.prototype.handleKeyboardDirection=function(n){switch(n.which){case r.KEYBOARD.DOWN_ARROW:n.preventDefault();this.combobox.values.focusNextValue();break;case r.KEYBOARD.UP_ARROW:n.preventDefault();this.combobox.values.focusPreviousValue();break;case r.KEYBOARD.HOME:n.preventDefault();this.combobox.values.focusFirstValue();break;case r.KEYBOARD.END:n.preventDefault();this.combobox.values.focusLastValue()}},n.prototype.handleKeyboardEnterEscape=function(n){switch(n.which){case r.KEYBOARD.ENTER:this.combobox.values.selectActiveValue();break;case r.KEYBOARD.ESCAPE:f.Utils.isNonEmptyString(this.textInput.getValue())&&n.stopPropagation();this.combobox.clearAll()}},n}();t.ComboboxInput=o},function(n,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=i(1),u=i(0),f=i(6),e=i(73),o=function(){function n(n){var t=this;this.combobox=n;this.mouseIsOverValue=!1;this.isRenderingNewValues=!1;this.values=[];this.element=r.$$("ul",{id:this.combobox.id+"-listbox",role:"listbox",className:"coveo-combobox-values",ariaLabelledby:this.combobox.id+"-input"}).el;r.$$(this.element).hide();this.isScrollable=!!this.combobox.options.scrollable;this.isScrollable&&this.element.addEventListener("scroll",function(){return t.onScroll()})}return n.prototype.renderFromResponse=function(n){this.isRenderingNewValues=!0;this.clearValues();this.values=this.combobox.options.createValuesFromResponse(n);this.render();this.combobox.updateAriaLive();this.isRenderingNewValues=!1},n.prototype.render=function(){if(r.$$(this.element).show(),!this.hasValues())return this.renderNoValuesFound();this.renderValues();this.addEventListeners();this.updateAccessibilityAttributes()},n.prototype.renderValues=function(){var n=this,t=document.createDocumentFragment();this.values.forEach(function(i,u){var f=r.$$("li",{id:n.combobox.id+"-value-"+u,className:"coveo-combobox-value",role:"option",tabindex:0},i.element).el;n.highlightCurrentQueryInSearchResults(i.element);i.element=f;t.appendChild(i.element)});this.element.appendChild(t)},n.prototype.highlightCurrentQueryInSearchResults=function(n){var i,t,u,f;this.combobox.options.highlightValueClassName&&(i=this.combobox.element.querySelector("input").value,t=r.$$(n).hasClass(this.combobox.options.highlightValueClassName)?n:r.$$(n).find("."+this.combobox.options.highlightValueClassName),t&&(u=r.$$(t).text(),f=e.HighlightUtils.highlight(u,i,"coveo-highlight"),r.$$(t).empty(),f.forEach(function(n){return t.appendChild(n)})))},n.prototype.hasValues=function(){return!!this.numberOfValues},Object.defineProperty(n.prototype,"numberOfValues",{get:function(){return this.values.length},enumerable:!0,configurable:!0}),n.prototype.renderNoValuesFound=function(){var n=r.$$("li",{role:"option",className:"coveo-combobox-value-not-found"},f.l("NoValuesFound")).el;this.element.appendChild(n)},n.prototype.addEventListeners=function(){var n=this;this.values.forEach(function(t){r.$$(t.element).on("mouseenter",function(){return n.mouseIsOverValue=!0});r.$$(t.element).on("mouseleave",function(){return n.mouseIsOverValue=!1});r.$$(t.element).on("click",function(t){return n.onValueClick(t)});r.$$(t.element).on("focus",function(){return n.setKeyboardActiveValue(t)})})},n.prototype.onValueClick=function(n){var t=n.target,f=r.$$(t).hasClass("coveo-combobox-value")?t:r.$$(t).parent("coveo-combobox-value"),e,i;f&&(e=f.getAttribute("id"),i=u.find(this.values,function(n){return n.element.getAttribute("id")===e}),i&&this.combobox.options.onSelectValue(i),this.combobox.clearAll())},n.prototype.updateAccessibilityAttributes=function(){var n=this.keyboardActiveValue?this.keyboardActiveValue.element.getAttribute("id"):"";this.combobox.updateAccessibilityAttributes({activeDescendant:n,expanded:this.hasValues()})},n.prototype.clearValues=function(){this.mouseIsOverValue=!1;this.resetKeyboardActiveValue();r.$$(this.element).empty();r.$$(this.element).hide();this.values=[];this.updateAccessibilityAttributes()},n.prototype.setKeyboardActiveValue=function(n){this.resetKeyboardActiveValue();this.keyboardActiveValue=n;this.activateFocusOnValue(this.keyboardActiveValue);this.updateAccessibilityAttributes()},n.prototype.resetKeyboardActiveValue=function(){this.keyboardActiveValue&&(this.deactivateFocusOnValue(this.keyboardActiveValue),this.keyboardActiveValue=null)},n.prototype.activateFocusOnValue=function(n){var t=n.element;r.$$(t).addClass("coveo-focused");t.setAttribute("aria-selected","true")},n.prototype.deactivateFocusOnValue=function(n){var t=n.element;r.$$(t).removeClass("coveo-focused");t.setAttribute("aria-selected","false")},n.prototype.selectActiveValue=function(){this.keyboardActiveValue&&(this.combobox.options.onSelectValue(this.keyboardActiveValue),this.combobox.clearAll())},n.prototype.onScroll=function(){this.element.scrollTop+this.element.clientHeight>=this.element.scrollHeight&&this.combobox.options.scrollable.areMoreValuesAvailable()&&this.combobox.onScrollEndReached()},n.prototype.resetScroll=function(){this.isScrollable&&(this.element.style.maxHeight=this.combobox.options.scrollable.maxDropdownHeight+"px",this.element.scrollTop=0)},n.prototype.focusFirstValue=function(){this.hasValues()&&this.firstValue.element.focus()},n.prototype.focusLastValue=function(){this.hasValues()&&this.lastValue.element.focus()},n.prototype.focusNextValue=function(){this.hasValues()&&this.nextOrFirstValue.element.focus()},n.prototype.focusPreviousValue=function(){this.hasValues()&&this.previousOrLastValue.element.focus()},Object.defineProperty(n.prototype,"nextOrFirstValue",{get:function(){if(!this.keyboardActiveValue)return this.firstValue;var n=(this.values.indexOf(this.keyboardActiveValue)+1)%this.numberOfValues;return this.values[n]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"firstValue",{get:function(){return this.values[0]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"previousOrLastValue",{get:function(){if(!this.keyboardActiveValue)return this.lastValue;var n=this.values.indexOf(this.keyboardActiveValue)-1;return n>=0?this.values[n]:this.values[this.numberOfValues-1]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"lastValue",{get:function(){var n=this.numberOfValues-1;return this.values[n]},enumerable:!0,configurable:!0}),n.prototype.saveFocusedValue=function(){if(!this.keyboardActiveValue)return void(this.focusedValueId=null);this.focusedValueId=this.keyboardActiveValue.element.id},n.prototype.restoreFocusedValue=function(){this.focusedValueId&&(r.$$(this.element).find("#"+this.focusedValueId).focus(),this.focusedValueId=null)},n}();t.ComboboxValues=o},function(){},function(n,t,i){"use strict";var r=this&&this.__extends||function(){var n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])};return function(t,i){function r(){this.constructor=t}n(t,i);t.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var u=i(216),f=i(4),e=function(n){function t(t){var i=n.call(this,t,!1)||this;return i.facet=t,i}return r(t,n),t.prototype.createBasicGroupByRequest=function(t,i){void 0===i&&(i=!0);var r=n.prototype.createBasicGroupByRequest.call(this,null,i);return r.allowedValues=void 0,r=f.Utils.isNonEmptyArray(this.facet.options.ranges)?this.buildGroupByQueryForPredefinedRanges(r):this.buildGroupByQueryForAutomaticRanges(r)},t.prototype.createGroupByAllowedValues=function(){},t.prototype.buildGroupByQueryForAutomaticRanges=function(n){return n.generateAutomaticRanges=!0,n},t.prototype.buildGroupByQueryForPredefinedRanges=function(n){return n.rangeValues=this.facet.options.ranges,n.maximumNumberOfValues=this.facet.options.ranges.length,n},t}(u.FacetQueryController);t.FacetRangeQueryController=e},function(){},function(n,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var u=i(34),r=i(0),f=i(222),e=function(){function n(n){var t=this;this.omnibox=n;this.cache={};this.omnibox.bind.on(this.omnibox.element,u.OmniboxEvents.populateOmniboxSuggestions,function(n){n.suggestions.push(t.getSuggestion())})}return n.prototype.getSuggestion=function(){var r=this,n=this.getHash(),i,t;return null==n?null:(i=this.hashToString(n),null!=this.cache[i])?this.hashValueToSuggestion(n,this.cache[i]):("FieldName"==n.type&&(t=this.fieldNames(n.current)),"FieldValue"==n.type&&(t=this.fieldValues(n.field,n.current)),"SimpleFieldName"==n.type&&(t=this.simpleFieldNames(n.current)),this.cache[i]=t,t.catch(function(){delete r.cache[i]}),this.hashValueToSuggestion(n,t))},n.prototype.getHash=function(){var n=r.last(this.omnibox.resultAtCursor("FieldName")),t,o,f,e;if(null!=n){n=n.findParent("Field")||n;var s=n.toString(),i=n.before(),u=n.after();return{type:"FieldName",current:s,before:i,after:u}}if(t=r.last(this.omnibox.resultAtCursor("FieldValue")),t&&(o=t.findParent("FieldQuery")||this.omnibox.options.enableSimpleFieldAddon&&t.findParent("FieldSimpleQuery"),o)){f=o.find("FieldName").toString();this.omnibox.options.fieldAlias&&f in this.omnibox.options.fieldAlias&&(f=this.omnibox.options.fieldAlias[f]);var h=t.toString(),i=t.before(),u=t.after();return{type:"FieldValue",field:f,current:h,before:i,after:u}}if(this.omnibox.options.enableSimpleFieldAddon&&(e=r.last(this.omnibox.resultAtCursor("Word")),null!=e)){var c=e.toString(),i=e.before(),u=e.after();return{type:"SimpleFieldName",current:c,before:i,after:u}}},n.prototype.hashToString=function(n){return null==n?null:n.type+n.current+(n.field||"")},n.prototype.hashValueToSuggestion=function(t,i){return i.then(function(i){return r.map(i,function(r,u){return{text:t.before+(0==t.current.toLowerCase().indexOf(r.toLowerCase())?t.current+r.substr(t.current.length):r)+t.after,html:f.MagicBoxUtils.highlightText(r,t.current,!0),index:n.INDEX-u/i.length}})})},n.prototype.getFields=function(){var n=this;return null==this.fields&&(this.fields=new Promise(function(t,i){null!=n.omnibox.options.listOfFields?t(n.omnibox.options.listOfFields):n.omnibox.queryController.getEndpoint().listFields().then(function(n){var i=r.chain(n).filter(function(n){return n.includeInQuery&&n.groupByField}).map(function(n){return n.name.substr(1)}).value();t(i)}).catch(function(){i()})})),this.fields},n.prototype.fieldNames=function(n){var t=n.length>0&&"@"==n[0],i=t?n.substr(1):n,u=i.toLowerCase();return this.getFields().then(function(t){var i=r.chain(t).map(function(n){var t=n.length>0&&"@"==n[0];return{index:n.toLowerCase().indexOf(u),field:t?n:"@"+n}}).filter(function(t){return-1!=t.index&&t.field.length>n.length}).sortBy("index").map(function(n){return n.field}).value();return r.first(i,5)})},n.prototype.fieldValues=function(n,t){return this.omnibox.queryController.getEndpoint().listFieldValues({pattern:".*"+t+".*",patternType:"RegularExpression",sortCriteria:"occurrences",field:"@"+n,maximumNumberOfValues:5}).then(function(n){return r.chain(n).map(function(n){return{index:n.value.toLowerCase().indexOf(t),value:n.value}}).filter(function(n){return n.value.length>t.length}).sortBy("index").map(function(n){return n.value.replace(/ /g," ")}).value()})},n.prototype.simpleFieldNames=function(n){var t=n,i=t.toLowerCase();return this.getFields().then(function(t){var u=r.chain(t).map(function(n){return{index:n.toLowerCase().indexOf(i),field:n+":"}}).filter(function(t){return-1!=t.index&&t.field.length>n.length}).sortBy("index").map(function(n){return n.field}).value();return r.first(u,5)})},n.INDEX=64,n}();t.FieldAddon=e},function(n,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var f=i(34),e=i(1),r=i(4),u=i(0),o=function(){function n(n){var t=this;this.omnibox=n;this.omnibox.bind.on(this.omnibox.element,f.OmniboxEvents.populateOmniboxSuggestions,function(n){u.each(t.getSuggestion(),function(t){n.suggestions.push(t)})})}return n.prototype.getSuggestion=function(){if(0==this.omnibox.magicBox.getText().length)return null;var n=this.buildPopulateOmniboxEventArgs();return e.$$(this.omnibox.root).trigger(f.OmniboxEvents.populateOmnibox,n),this.rowsToSuggestions(n.rows)},n.prototype.getCurrentQueryExpression=function(){var r=this.omnibox.getCursor(),t=this.omnibox.getText(),u=t.length,n=r,i=r;for(" "==t[n]&&n--;n>0&&" "!=t[n];)n--;for(;i<u&&" "!=t[i];)i++;return t.substring(n,i)},n.prototype.getRegexToSearch=function(n){return null==n&&(n=this.omnibox.getText()),new RegExp(r.Utils.escapeRegexCharacter(n),"i")},n.prototype.getQueryExpressionBreakDown=function(){var t=this,n=[],i=this.omnibox.getText().split(" ");return u.each(i,function(i){n.push({word:i,regex:t.getRegexToSearch(i)})}),n},n.prototype.replace=function(n,t){this.omnibox.setText(this.omnibox.getText().replace(n,t))},n.prototype.clearCurrentExpression=function(){this.replace(this.getCurrentQueryExpression(),"")},n.prototype.insertAt=function(n,t){var i=this.omnibox.getText(),r=[i.slice(0,n),t,i.slice(n)].join("");this.omnibox.setText(r)},n.prototype.replaceCurrentExpression=function(n){this.replace(this.getCurrentQueryExpression(),n)},n.prototype.buildPopulateOmniboxEventArgs=function(){var n=this,t=this.getCurrentQueryExpression();return{rows:[],completeQueryExpression:{word:this.omnibox.getText(),regex:this.getRegexToSearch()},currentQueryExpression:{word:t,regex:this.getRegexToSearch(t)},allQueryExpressions:this.getQueryExpressionBreakDown(),cursorPosition:this.omnibox.getCursor(),clear:function(){n.omnibox.clear()},clearCurrentExpression:function(){n.clearCurrentExpression()},replace:function(t,i){n.replace(t,i)},replaceCurrentExpression:function(t){n.replaceCurrentExpression(t)},insertAt:function(t,i){n.insertAt(t,i)},closeOmnibox:function(){n.omnibox.magicBox.blur()}}},n.prototype.rowsToSuggestions=function(n){return u.map(n,function(n){return r.Utils.isNullOrUndefined(n.element)?r.Utils.isNullOrUndefined(n.deferred)?null:new Promise(function(t){n.deferred.then(function(n){t(null!=n.element?[{dom:n.element,index:n.zIndex}]:null)})}):new Promise(function(t){t([{dom:n.element,index:n.zIndex}])})})},n}();t.OldOmniboxAddon=o},function(n,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var u=i(34),r=i(0),f=i(222),e=function(){function n(n){var t=this;this.omnibox=n;this.cache={};this.omnibox.bind.on(this.omnibox.element,u.OmniboxEvents.populateOmniboxSuggestions,function(n){n.suggestions.push(t.getSuggestion())})}return n.prototype.getSuggestion=function(){var r=this,n=this.getHash(this.omnibox.magicBox),t,i;return null==n?null:(t=this.hashToString(n),null!=this.cache[t])?this.hashValueToSuggestion(n,this.cache[t]):(i="QueryExtensionName"==n.type?this.names(n.current):this.attributeNames(n.name,n.current,n.used),this.cache[t]=i,i.catch(function(){delete r.cache[t]}),this.hashValueToSuggestion(n,i))},n.prototype.getHash=function(n){var i=r.last(n.resultAtCursor("QueryExtension")),u,t,f,e;if(null!=i){if(u=i.findAll("QueryExtensionArgument"),t=r.last(n.resultAtCursor("QueryExtensionName")),null!=t)return{type:"QueryExtensionName",current:t.toString(),before:t.before(),after:t.after()};if(null!=(t=r.last(n.resultAtCursor("QueryExtensionArgumentName"))))return f=r.chain(u).map(function(n){var t=n.find("QueryExtensionArgumentName");return t&&t.toString()}).compact().value(),e=i.find("QueryExtensionName").toString(),{type:"QueryExtensionArgumentName",current:t.toString(),before:t.before(),after:t.after(),name:e,used:f}}return null},n.prototype.hashToString=function(n){return null==n?null:[n.type,n.current,n.name||"",n.used?n.used.join():""].join()},n.prototype.hashValueToSuggestion=function(t,i){return i.then(function(i){return r.map(i,function(r,u){return{html:f.MagicBoxUtils.highlightText(r,t.current,!0),text:t.before+r+t.after,index:n.INDEX-u/i.length}})})},n.prototype.getExtensions=function(){return null==this.extensions&&(this.extensions=this.omnibox.queryController.getEndpoint().extensions()),this.extensions},n.prototype.names=function(n){var t=n.toLowerCase();return this.getExtensions().then(function(n){var i=r.chain(n).map(function(n){return{index:n.name.toLowerCase().indexOf(t),extension:n.name}}).filter(function(n){return-1!=n.index&&n.extension.length>t.length}).sortBy("index").pluck("extension").value();return r.first(i,5)})},n.prototype.attributeNames=function(n,t,i){return this.getExtensions().then(function(u){var f=r.find(u,function(t){return t.name==n});return null==f?[]:r.filter(r.difference(f.argumentNames,i),function(n){return 0==n.indexOf(t)})})},n.prototype.hash=function(){},n.INDEX=62,n}();t.QueryExtensionAddon=e},function(n,t,i){"use strict";var o=this&&this.__awaiter||function(n,t,i,r){return new(i||(i=Promise))(function(u,f){function o(n){try{e(r.next(n))}catch(n){f(n)}}function s(n){try{e(r.throw(n))}catch(n){f(n)}}function e(n){n.done?u(n.value):new i(function(t){t(n.value)}).then(o,s)}e((r=r.apply(n,t||[])).next())})},s=this&&this.__generator||function(n,t){function f(n){return function(t){return s([n,t])}}function s(f){if(e)throw new TypeError("Generator is already executing.");for(;r;)try{if(e=1,u&&(i=u[2&f[0]?"return":f[0]?"throw":"next"])&&!(i=i.call(u,f[1])).done)return i;switch(u=0,i&&(f=[0,i.value]),f[0]){case 0:case 1:i=f;break;case 4:return r.label++,{value:f[1],done:!1};case 5:r.label++;u=f[1];f=[0];continue;case 7:f=r.ops.pop();r.trys.pop();continue;default:if(i=r.trys,!(i=i.length>0&&i[i.length-1])&&(6===f[0]||2===f[0])){r=0;continue}if(3===f[0]&&(!i||f[1]>i[0]&&f[1]<i[3])){r.label=f[1];break}if(6===f[0]&&r.label<i[1]){r.label=i[1];i=f;break}if(i&&r.label<i[2]){r.label=i[2];r.ops.push(f);break}i[2]&&r.ops.pop();r.trys.pop();continue}f=t.call(n,r)}catch(n){f=[6,n];u=0}finally{e=i=0}if(5&f[0])throw f[1];return{value:f[0]?f[1]:void 0,done:!0}}var e,u,i,o,r={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:f(0),"throw":f(1),"return":f(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o},e;Object.defineProperty(t,"__esModule",{value:!0});var r=i(1),h=i(28),f=i(34),c=i(22),u=i(0),l=i(13),a=i(4),v=i(88),y=i(50),p=function(){function n(n){var t=this;this.omnibox=n;r.$$(this.omnibox.element).on(f.OmniboxEvents.populateOmniboxSuggestions,function(n,i){i.suggestions.push(t.getSuggestion())})}return n.suggestiontHtml=function(n){return n.highlighted.replace(/\[(.*?)\]|\{(.*?)\}|\((.*?)\)/g,function(n,t,i,u){var f="",e;return i&&(f="coveo-omnibox-hightlight"),u&&(f="coveo-omnibox-hightlight2"),e=f?r.$$("span",{className:f}):r.$$("span"),e.text(t||i||u),e.el.outerHTML})},n.isPartialMatch=function(n){var t=c.StringUtils.match(n.highlighted,/\[(.*?)\]|\{(.*?)\}|\((.*?)\)/g),i=u.find(t,function(n){return null!=n[1]});return null==i||u.every(u.last(t,u.indexOf(t,i)-t.length),function(n){return null!=n[1]})},n.prototype.getSuggestion=function(){var n=this.omnibox.magicBox.getText();return n.length>=this.omnibox.options.querySuggestCharacterThreshold?this.getQuerySuggest(n):Promise.resolve([])},n.prototype.getQuerySuggest=function(t){return o(this,void 0,void 0,function(){var e,o,h,i;return s(this,function(s){switch(s.label){case 0:e={q:t,locale:this.locale,searchHub:this.searchHub,pipeline:this.pipeline,enableWordCompletion:this.enableWordCompletion,context:this.context,count:this.count,tab:this.tab,referrer:document.referrer,actionsHistory:this.actionsHistory,timezone:this.timezone,visitorId:this.visitorId,isGuestUser:this.isGuestUser};r.$$(this.omnibox.getBindings().searchInterface.element).trigger(f.OmniboxEvents.buildingQuerySuggest,{payload:e});s.label=1;case 1:return s.trys.push([1,3,,4]),[4,this.omnibox.queryController.getEndpoint().getQuerySuggest(e)];case 2:return o=s.sent(),[3,4];case 3:return h=s.sent(),[2,[]];case 4:return i=o.completions,r.$$(this.omnibox.getBindings().searchInterface.element).trigger(f.OmniboxEvents.querySuggestSuccess,{completions:i}),[2,u.map(i,function(t,r){return{html:n.suggestiontHtml(t),text:t.expression,index:n.INDEX-r/i.length,partial:n.isPartialMatch(t),executableConfidence:t.executableConfidence}})]}})})},Object.defineProperty(n.prototype,"tab",{get:function(){var n=this.omnibox.getBindings().queryStateModel.get(l.QUERY_STATE_ATTRIBUTES.T);if(a.Utils.isNonEmptyString(n))return n},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"locale",{get:function(){return String.locale},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"searchHub",{get:function(){return this.omnibox.getBindings().componentOptionsModel.get(h.ComponentOptionsModel.attributesEnum.searchHub)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"pipeline",{get:function(){return this.omnibox.getBindings().searchInterface.options.pipeline},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"enableWordCompletion",{get:function(){return this.omnibox.options.enableSearchAsYouType},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"context",{get:function(){return this.omnibox.getBindings().searchInterface.getQueryContext()},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"count",{get:function(){return this.omnibox.options.numberOfSuggestions},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"actionsHistory",{get:function(){var t=v.buildHistoryStore(),n=t.getHistory();return null==n?[]:n},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"timezone",{get:function(){return this.omnibox.getBindings().searchInterface.options.timezone},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"visitorId",{get:function(){return(new y.AnalyticsInformation).clientId},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"isGuestUser",{get:function(){return this.omnibox.getBindings().queryController.getEndpoint().options.isGuestUser},enumerable:!0,configurable:!0}),n.INDEX=60,n}();t.QuerySuggestAddon=p;e=function(){function n(){}return n.prototype.getSuggestion=function(){return Promise.resolve([])},n}();t.VoidQuerySuggestAddon=e},function(){},function(){},function(n,t,i){"use strict";var u=this&&this.__extends||function(){var n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])};return function(t,i){function r(){this.constructor=t}n(t,i);t.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var r=i(215),f=i(141),e=function(n){function t(){return null!==n&&n.apply(this,arguments)||this}return u(t,n),t.init=function(n,i,u){r.ResponsiveFacetColumn.init(t,n,i,u,f.DynamicFacet.ID)},t}(r.ResponsiveFacetColumn);t.ResponsiveDynamicFacets=e},function(n,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});i(511);var r=i(1),u=i(6),f=i(12),e=i(10),o=i(0),s=i(48),h=function(){function n(n,t){this.facet=n;this.options=t;this.create()}return n.prototype.create=function(){this.element=r.$$("ul",{className:"coveo-dynamic-facet-breadcrumb coveo-breadcrumb-item",ariaLabel:this.facet.options.title}).el;this.createAndAppendTitle();var n=this.facet.values.activeValues,i=n.slice(0,this.facet.options.numberOfValuesInBreadcrumb),t=n.slice(this.facet.options.numberOfValuesInBreadcrumb);this.createAndAppendBreadcrumbValues(i);t.length&&this.createAndAppendCollapsedBreadcrumbs(t)},n.prototype.createAndAppendTitle=function(){var n=r.$$(s.getHeadingTag(this.options&&this.options.headingLevel,"h3"),{className:"coveo-dynamic-facet-breadcrumb-title",ariaHidden:"true"},this.facet.options.title+":").el;this.element.appendChild(n)},n.prototype.createAndAppendBreadcrumbValues=function(n){var t=this;n.forEach(function(n){return t.createAndAppendBreadcrumbValue(n)})},n.prototype.createAndAppendBreadcrumbValue=function(n){var e=this,i=r.$$("li",{className:"coveo-dynamic-facet-breadcrumb-value-list-item"}).el,t=r.$$("button",{type:"button",className:"coveo-dynamic-facet-breadcrumb-value",ariaLabel:u.l("RemoveFilterOn",n.displayValue)},o.escape(n.displayValue)).el,s=r.$$("span",{className:"coveo-dynamic-facet-breadcrumb-value-clear"},f.SVGIcons.icons.mainClear).el;t.appendChild(s);r.$$(t).on("click",function(){return e.valueSelectAction(n)});i.appendChild(t);this.element.appendChild(i)},n.prototype.valueSelectAction=function(n){var t=this;this.facet.deselectValue(n.value);this.facet.enablePreventAutoSelectionFlag();this.facet.triggerNewQuery(function(){return t.logActionToAnalytics()})},n.prototype.logActionToAnalytics=function(){this.facet.logAnalyticsEvent(e.analyticsActionCauseList.breadcrumbFacet,this.facet.basicAnalyticsFacetMeta)},n.prototype.createAndAppendCollapsedBreadcrumbs=function(n){var i=this,f=u.l("NMore",""+n.length),e=n.map(function(n){return n.value}).join("\n"),t=r.$$("button",{className:"coveo-dynamic-facet-breadcrumb-collapse",type:"button",title:e},f).el;r.$$(t).on("click",function(){r.$$(t).remove();i.createAndAppendBreadcrumbValues(n)});this.element.appendChild(t)},n}();t.DynamicFacetBreadcrumbs=h},function(){},function(n,t,i){"use strict";var u,f;Object.defineProperty(t,"__esModule",{value:!0});var e=i(513),r=i(6),o=i(584),s=i(225),h=i(71),c=i(585);i(514);u=i(40);f=function(){function n(n){var t=this;this.facet=n;this.facetSearchController=new o.FacetSearchController(this.facet);this.combobox=new e.Combobox({label:r.l("SearchFacetResults",this.facet.options.title),ariaLive:this.facet.searchInterface.ariaLive,requestValues:function(n){return t.facetSearchController.search(n)},createValuesFromResponse:function(n){return t.createValuesFromResponse(n)},onSelectValue:this.onSelectValue,placeholderText:r.l("Search"),wrapperClassName:"coveo-dynamic-facet-search",clearOnBlur:!0,scrollable:{requestMoreValues:function(){return t.facetSearchController.fetchMoreResults()},areMoreValuesAvailable:function(){return t.facetSearchController.moreValuesAvailable},maxDropdownHeight:250},highlightValueClassName:"coveo-checkbox-span-label"});this.element=this.combobox.element}return n.prototype.getDisplayValue=function(n){return u.FacetUtils.getDisplayValueFromValueCaption(n,this.facet.options.field,this.facet.options.valueCaption)},n.prototype.createValuesFromResponse=function(n){var t=this;return n.values.map(function(n,i){var r=new s.DynamicFacetValue({value:n.rawValue,displayValue:t.getDisplayValue(n.displayValue),numberOfResults:n.count,state:h.FacetValueState.idle,position:i+1},t.facet,c.DynamicFacetSearchValueRenderer);return{value:r,element:r.renderedElement}})},n.prototype.onSelectValue=function(n){n.value.renderer.selectAction()},n}();t.DynamicFacetSearch=f},function(n,t,i){"use strict";var u=this&&this.__assign||Object.assign||function(n){for(var t,r,i=1,u=arguments.length;i<u;i++){t=arguments[i];for(r in t)Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},f=this&&this.__awaiter||function(n,t,i,r){return new(i||(i=Promise))(function(u,f){function o(n){try{e(r.next(n))}catch(n){f(n)}}function s(n){try{e(r.throw(n))}catch(n){f(n)}}function e(n){n.done?u(n.value):new i(function(t){t(n.value)}).then(o,s)}e((r=r.apply(n,t||[])).next())})},e=this&&this.__generator||function(n,t){function f(n){return function(t){return s([n,t])}}function s(f){if(e)throw new TypeError("Generator is already executing.");for(;r;)try{if(e=1,u&&(i=u[2&f[0]?"return":f[0]?"throw":"next"])&&!(i=i.call(u,f[1])).done)return i;switch(u=0,i&&(f=[0,i.value]),f[0]){case 0:case 1:i=f;break;case 4:return r.label++,{value:f[1],done:!1};case 5:r.label++;u=f[1];f=[0];continue;case 7:f=r.ops.pop();r.trys.pop();continue;default:if(i=r.trys,!(i=i.length>0&&i[i.length-1])&&(6===f[0]||2===f[0])){r=0;continue}if(3===f[0]&&(!i||f[1]>i[0]&&f[1]<i[3])){r.label=f[1];break}if(6===f[0]&&r.label<i[1]){r.label=i[1];i=f;break}if(i&&r.label<i[2]){r.label=i[2];r.ops.push(f);break}i[2]&&r.ops.pop();r.trys.pop();continue}f=t.call(n,r)}catch(n){f=[6,n];u=0}finally{e=i=0}if(5&f[0])throw f[1];return{value:f[0]?f[1]:void 0,done:!0}}var e,u,i,o,r={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:f(0),"throw":f(1),"return":f(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o};Object.defineProperty(t,"__esModule",{value:!0});var o=i(120),r=i(21),s=i(33),h=i(181),c=function(){function n(n){this.facet=n;this.terms="";this.pageCount=1;this.numberOfValuesMultiplier=3;this.moreValuesAvailable=!0}return n.prototype.getMonthsValueCaptions=function(){for(var t={},n=1;n<=12;n++)t[("0"+n).substr(-2)]=s.DateUtils.monthToString(n-1);return t},n.prototype.addTypesCaptionsIfNecessary=function(){var n=this.facet.options.field.toLowerCase(),t=r.QueryUtils.isStratusAgnosticField(n,"@filetype"),i=r.QueryUtils.isStratusAgnosticField(n,"@objecttype"),u=r.QueryUtils.isStratusAgnosticField(n,"@month");return t||i?o.FileTypes.getFileTypeCaptions():u?this.getMonthsValueCaptions():{}},Object.defineProperty(n.prototype,"captions",{get:function(){return u({},this.addTypesCaptionsIfNecessary(),this.facet.options.valueCaption)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"numberOfValues",{get:function(){return this.facet.options.numberOfValues*this.numberOfValuesMultiplier*this.pageCount},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"request",{get:function(){var n=this.facet.options.useLeadingWildcardInFacetSearch?"*":"";return{field:this.facet.fieldName,filterFacetCount:h.determineFilterFacetCount(this.facet.options),numberOfValues:this.numberOfValues,ignoreValues:this.facet.values.activeValues.map(function(n){return n.value}),captions:this.captions,searchContext:this.facet.queryController.getLastQuery(),query:""+n+this.terms+"*"}},enumerable:!0,configurable:!0}),n.prototype.triggerRequest=function(){return f(this,void 0,void 0,function(){var n;return e(this,function(t){switch(t.label){case 0:return[4,this.facet.queryController.getEndpoint().facetSearch(this.request)];case 1:return n=t.sent(),this.moreValuesAvailable=n.moreValuesAvailable,[2,n]}})})},n.prototype.search=function(n){return this.terms=n,this.pageCount=1,this.triggerRequest()},n.prototype.fetchMoreResults=function(){return this.pageCount++,this.triggerRequest()},n}();t.FacetSearchController=c},function(n,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=i(1),u=i(515),f=function(){function n(n,t){this.facetValue=n;this.facet=t}return n.prototype.render=function(){return this.dom=r.$$("div",{className:"coveo-dynamic-facet-value",dataValue:this.facetValue.value}),this.renderCheckbox(),this.dom.el},n.prototype.renderCheckbox=function(){this.valueCheckbox=new u.DynamicFacetValueCheckbox(this.facetValue);r.$$(this.valueCheckbox.element).find("button").setAttribute("tabindex","-1");this.dom.append(this.valueCheckbox.element)},n.prototype.selectAction=function(){var n=this;this.facet.enableFreezeFacetOrderFlag();this.facet.toggleSelectValue(this.facetValue.value);this.facetValue.select();this.facet.scrollToTop();this.facet.triggerNewQuery(function(){return n.facetValue.logSelectActionToAnalytics()})},n}();t.DynamicFacetSearchValueRenderer=f},function(n,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var f=i(40),r=i(225),e=i(71),u=i(518),o=function(){function n(n){this.facet=n}return n.prototype.getDisplayValue=function(n){return f.FacetUtils.getDisplayValueFromValueCaption(n,this.facet.options.field,this.facet.options.valueCaption)},n.prototype.getDefaultValues=function(){return[]},n.prototype.createFromResponse=function(n,t){return new r.DynamicFacetValue({value:n.value,displayValue:this.getDisplayValue(n.value),numberOfResults:n.numberOfResults,state:n.state,position:t+1},this.facet,u.DynamicFacetValueRenderer)},n.prototype.createFromValue=function(n){var t=this.facet.values.allFacetValues.length+1,i=e.FacetValueState.idle,f=this.getDisplayValue(n);return new r.DynamicFacetValue({value:n,displayValue:f,state:i,numberOfResults:0,position:t},this.facet,u.DynamicFacetValueRenderer)},n}();t.DynamicFacetValueCreator=o},function(){},function(n){!function(t,i){n.exports=i()}(0,function(){"use strict";function e(n){"@babel/helpers - typeof";return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(n)}function tt(n,t){return(tt=Object.setPrototypeOf||function(n,t){return n.__proto__=t,n})(n,t)}function ct(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(n){return!1}}function y(){return y=ct()?Reflect.construct:function(n,t,i){var r=[null],f,u;return r.push.apply(r,t),f=Function.bind.apply(n,r),u=new f,i&&tt(u,i.prototype),u},y.apply(null,arguments)}function r(n){return lt(n)||at(n)||vt(n)||yt()}function lt(n){if(Array.isArray(n))return p(n)}function at(n){if("undefined"!=typeof Symbol&&null!=n[Symbol.iterator]||null!=n["@@iterator"])return Array.from(n)}function vt(n,t){if(n){if("string"==typeof n)return p(n,t);var i=Object.prototype.toString.call(n).slice(8,-1);return"Object"===i&&n.constructor&&(i=n.constructor.name),"Map"===i||"Set"===i?Array.from(n):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?p(n,t):void 0}}function p(n,t){(null==t||t>n.length)&&(t=n.length);for(var i=0,r=new Array(t);i<t;i++)r[i]=n[i];return r}function yt(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function u(n){return function(t){for(var r=arguments.length,u=new Array(r>1?r-1:0),i=1;i<r;i++)u[i-1]=arguments[i];return l(n,t,u)}}function n(n,t,i){var u,r,f;for(i=i||a,rt&&rt(n,null),u=t.length;u--;)r=t[u],"string"==typeof r&&(f=i(r),f!==r&&(wt(t)||(t[u]=f),r=f)),n[r]=!0;return n}function s(n){var t,i=dt(null);for(t in n)l(pt,n,[t])&&(i[t]=n[t]);return i}function c(n,t){function r(n){return console.warn("fallback value for",n),null}for(;null!==n;){var i=kt(n,t);if(i){if(i.get)return u(i.get);if("function"==typeof i.value)return u(i.value)}n=bt(n)}return r}function it(){var f=arguments.length>0&&void 0!==arguments[0]?arguments[0]:vi(),u=function(n){return it(n)},gi,rt,fr;if(u.version="2.4.0",u.removed=[],!f||!f.document||9!==f.document.nodeType)return u.isSupported=!1,u;var er=f.document,lt=f.document,uu=f.DocumentFragment,hf=f.HTMLTemplateElement,or=f.Node,fu=f.Element,sr=f.NodeFilter,eu=f.NamedNodeMap,cf=void 0===eu?f.NamedNodeMap||f.MozNamedAttrMap:eu,lf=f.HTMLFormElement,af=f.DOMParser,ki=f.trustedTypes,di=fu.prototype,vf=c(di,"cloneNode"),yf=c(di,"nextSibling"),pf=c(di,"childNodes"),hr=c(di,"parentNode");"function"==typeof hf&&(gi=lt.createElement("template"),gi.content&&gi.content.ownerDocument&&(lt=gi.content.ownerDocument));var tt=yi(ki,er),ou=tt?tt.createHTML(""):"",nr=lt,cr=nr.implementation,wf=nr.createNodeIterator,bf=nr.createDocumentFragment,kf=nr.getElementsByTagName,df=er.importNode,su={};try{su=s(lt).documentMode?lt.documentMode:{}}catch(e){}rt={};u.isSupported="function"==typeof hr&&cr&&void 0!==cr.createHTMLDocument&&9!==su;var dt,y,lr=fi,ar=ei,gf=oi,ne=si,te=ci,hu=li,vr=hi,p=null,cu=n({},[].concat(r(et),r(k),r(d),r(g),r(ot))),w=null,lu=n({},[].concat(r(st),r(nt),r(ht),r(v))),l=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),pi=null,yr=null,au=!0,pr=!0,vu=!1,yt=!1,vt=!1,wr=!1,br=!1,pt=!1,tr=!1,ir=!1,yu=!0,pu=!1,kr=!0,wi=!1,wt={},bt=null,wu=n({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),bu=null,ku=n({},["audio","video","img","source","image","track"]),dr=null,du=n({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),gr="http://www.w3.org/1998/Math/MathML",nu="http://www.w3.org/2000/svg",at="http://www.w3.org/1999/xhtml",rr=at,tu=!1,ie=["application/xhtml+xml","text/html"],kt=null,re=lt.createElement("form"),gu=function(n){return n instanceof RegExp||n instanceof Function},iu=function(i){kt&&kt===i||(i&&"object"===e(i)||(i={}),i=s(i),dt=dt=-1===ie.indexOf(i.PARSER_MEDIA_TYPE)?"text/html":i.PARSER_MEDIA_TYPE,y="application/xhtml+xml"===dt?function(n){return n}:a,p="ALLOWED_TAGS"in i?n({},i.ALLOWED_TAGS,y):cu,w="ALLOWED_ATTR"in i?n({},i.ALLOWED_ATTR,y):lu,dr="ADD_URI_SAFE_ATTR"in i?n(s(du),i.ADD_URI_SAFE_ATTR,y):du,bu="ADD_DATA_URI_TAGS"in i?n(s(ku),i.ADD_DATA_URI_TAGS,y):ku,bt="FORBID_CONTENTS"in i?n({},i.FORBID_CONTENTS,y):wu,pi="FORBID_TAGS"in i?n({},i.FORBID_TAGS,y):{},yr="FORBID_ATTR"in i?n({},i.FORBID_ATTR,y):{},wt="USE_PROFILES"in i&&i.USE_PROFILES,au=!1!==i.ALLOW_ARIA_ATTR,pr=!1!==i.ALLOW_DATA_ATTR,vu=i.ALLOW_UNKNOWN_PROTOCOLS||!1,yt=i.SAFE_FOR_TEMPLATES||!1,vt=i.WHOLE_DOCUMENT||!1,pt=i.RETURN_DOM||!1,tr=i.RETURN_DOM_FRAGMENT||!1,ir=i.RETURN_TRUSTED_TYPE||!1,br=i.FORCE_BODY||!1,yu=!1!==i.SANITIZE_DOM,pu=i.SANITIZE_NAMED_PROPS||!1,kr=!1!==i.KEEP_CONTENT,wi=i.IN_PLACE||!1,vr=i.ALLOWED_URI_REGEXP||vr,rr=i.NAMESPACE||at,i.CUSTOM_ELEMENT_HANDLING&&gu(i.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(l.tagNameCheck=i.CUSTOM_ELEMENT_HANDLING.tagNameCheck),i.CUSTOM_ELEMENT_HANDLING&&gu(i.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(l.attributeNameCheck=i.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),i.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof i.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(l.allowCustomizedBuiltInElements=i.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),yt&&(pr=!1),tr&&(pt=!0),wt&&(p=n({},r(ot)),w=[],!0===wt.html&&(n(p,et),n(w,st)),!0===wt.svg&&(n(p,k),n(w,nt),n(w,v)),!0===wt.svgFilters&&(n(p,d),n(w,nt),n(w,v)),!0===wt.mathMl&&(n(p,g),n(w,ht),n(w,v))),i.ADD_TAGS&&(p===cu&&(p=s(p)),n(p,i.ADD_TAGS,y)),i.ADD_ATTR&&(w===lu&&(w=s(w)),n(w,i.ADD_ATTR,y)),i.ADD_URI_SAFE_ATTR&&n(dr,i.ADD_URI_SAFE_ATTR,y),i.FORBID_CONTENTS&&(bt===wu&&(bt=s(bt)),n(bt,i.FORBID_CONTENTS,y)),kr&&(p["#text"]=!0),vt&&n(p,["html","head","body"]),p.table&&(n(p,["tbody"]),delete pi.tbody),t&&t(i),kt=i)},nf=n({},["mi","mo","mn","ms","mtext"]),tf=n({},["foreignobject","desc","title","annotation-xml"]),ue=n({},["title","style","font","a","script"]),ur=n({},k);n(ur,d);n(ur,ri);fr=n({},g);n(fr,ui);var fe=function(n){var t=hr(n),i,r;return t&&t.tagName||(t={namespaceURI:at,tagName:"template"}),i=a(n.tagName),r=a(t.tagName),n.namespaceURI===nu?t.namespaceURI===at?"svg"===i:t.namespaceURI===gr?"svg"===i&&("annotation-xml"===r||nf[r]):Boolean(ur[i]):n.namespaceURI===gr?t.namespaceURI===at?"math"===i:t.namespaceURI===nu?"math"===i&&tf[r]:Boolean(fr[i]):n.namespaceURI===at&&!(t.namespaceURI===nu&&!tf[r])&&!(t.namespaceURI===gr&&!nf[r])&&!fr[i]&&(ue[i]||!ur[i])},ut=function(n){h(u.removed,{element:n});try{n.parentNode.removeChild(n)}catch(t){try{n.outerHTML=ou}catch(t){n.remove()}}},ru=function(n,t){try{h(u.removed,{attribute:t.getAttributeNode(n),from:t})}catch(n){h(u.removed,{attribute:null,from:t})}if(t.removeAttribute(n),"is"===n&&!w[n])if(pt||tr)try{ut(t)}catch(n){}else try{t.setAttribute(n,"")}catch(n){}},rf=function(n){var t,r,u,f,i;if(br?n="<remove><\/remove>"+n:(u=ni(n,/^[\r\n\t ]+/),r=u&&u[0]),"application/xhtml+xml"===dt&&(n='<html xmlns="http://www.w3.org/1999/xhtml"><head><\/head><body>'+n+"<\/body><\/html>"),f=tt?tt.createHTML(n):n,rr===at)try{t=(new af).parseFromString(f,dt)}catch(n){}if(!t||!t.documentElement){t=cr.createDocument(rr,"template",null);try{t.documentElement.innerHTML=tu?"":f}catch(n){}}return i=t.body||t.documentElement,n&&r&&i.insertBefore(lt.createTextNode(r),i.childNodes[0]||null),rr===at?kf.call(t,vt?"html":"body")[0]:vt?t.documentElement:i},uf=function(n){return wf.call(n.ownerDocument||n,n,sr.SHOW_ELEMENT|sr.SHOW_COMMENT|sr.SHOW_TEXT,null,!1)},ee=function(n){return n instanceof lf&&("string"!=typeof n.nodeName||"string"!=typeof n.textContent||"function"!=typeof n.removeChild||!(n.attributes instanceof cf)||"function"!=typeof n.removeAttribute||"function"!=typeof n.setAttribute||"string"!=typeof n.namespaceURI||"function"!=typeof n.insertBefore)},bi=function(n){return"object"===e(or)?n instanceof or:n&&"object"===e(n)&&"number"==typeof n.nodeType&&"string"==typeof n.nodeName},ct=function(n,t,i){rt[n]&&gt(rt[n],function(n){n.call(u,t,i,kt)})},ff=function(n){var r,t,s,f,c,e;if((ct("beforeSanitizeElements",n,null),ee(n))||i(/[\u0080-\uFFFF]/,n.nodeName)||(t=y(n.nodeName),ct("uponSanitizeElement",n,{tagName:t,allowedTags:p}),n.hasChildNodes()&&!bi(n.firstElementChild)&&(!bi(n.content)||!bi(n.content.firstElementChild))&&i(/<[/\w]/g,n.innerHTML)&&i(/<[/\w]/g,n.textContent))||"select"===t&&i(/<template/i,n.innerHTML))return ut(n),!0;if(!p[t]||pi[t]){if(!pi[t]&&of(t)&&(l.tagNameCheck instanceof RegExp&&i(l.tagNameCheck,t)||l.tagNameCheck instanceof Function&&l.tagNameCheck(t)))return!1;if(kr&&!bt[t]&&(s=hr(n)||n.parentNode,f=pf(n)||n.childNodes,f&&s))for(c=f.length,e=c-1;e>=0;--e)s.insertBefore(vf(f[e],!0),yf(n));return ut(n),!0}return n instanceof fu&&!fe(n)?(ut(n),!0):"noscript"!==t&&"noembed"!==t||!i(/<\/no(script|embed)/i,n.innerHTML)?(yt&&3===n.nodeType&&(r=n.textContent,r=o(r,lr," "),r=o(r,ar," "),n.textContent!==r&&(h(u.removed,{element:n.cloneNode()}),n.textContent=r)),ct("afterSanitizeElements",n,null),!1):(ut(n),!0)},ef=function(n,t,r){if(yu&&("id"===t||"name"===t)&&(r in lt||r in re))return!1;if((!pr||yr[t]||!i(gf,t))&&(!au||!i(ne,t)))if(!w[t]||yr[t]){if(!(of(n)&&(l.tagNameCheck instanceof RegExp&&i(l.tagNameCheck,n)||l.tagNameCheck instanceof Function&&l.tagNameCheck(n))&&(l.attributeNameCheck instanceof RegExp&&i(l.attributeNameCheck,t)||l.attributeNameCheck instanceof Function&&l.attributeNameCheck(t))||"is"===t&&l.allowCustomizedBuiltInElements&&(l.tagNameCheck instanceof RegExp&&i(l.tagNameCheck,r)||l.tagNameCheck instanceof Function&&l.tagNameCheck(r))))return!1}else if(!dr[t]&&!i(vr,o(r,hu,""))&&("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===n||0!==ti(r,"data:")||!bu[n])&&(!vu||i(te,o(r,hu,"")))&&r)return!1;return!0},of=function(n){return n.indexOf("-")>0},sf=function(n){var h,t,s,l,c,r,v;if(ct("beforeSanitizeAttributes",n,null),c=n.attributes,c){for(r={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:w},l=c.length;l--;){h=c[l];var p=h,f=p.name,a=p.namespaceURI;if(t="value"===f?h.value:ii(h.value),s=y(f),r.attrName=s,r.attrValue=t,r.keepAttr=!0,r.forceKeepAttr=void 0,ct("uponSanitizeAttribute",n,r),t=r.attrValue,!r.forceKeepAttr&&(ru(f,n),r.keepAttr))if(i(/\/>/i,t))ru(f,n);else if(yt&&(t=o(t,lr," "),t=o(t,ar," ")),v=y(n.nodeName),ef(v,s,t)){if((!pu||"id"!==s&&"name"!==s||(ru(f,n),t="user-content-"+t),tt&&"object"===e(ki)&&"function"==typeof ki.getAttributeType)&&!a)switch(ki.getAttributeType(v,s)){case"TrustedHTML":t=tt.createHTML(t);break;case"TrustedScriptURL":t=tt.createScriptURL(t)}try{a?n.setAttributeNS(a,f,t):n.setAttribute(f,t);ft(u.removed)}catch(e){}}}ct("afterSanitizeAttributes",n,null)}},oe=function e(n){var t,i=uf(n);for(ct("beforeSanitizeShadowDOM",n,null);t=i.nextNode();)ct("uponSanitizeShadowNode",t,null),ff(t)||(t.content instanceof uu&&e(t.content),sf(t));ct("afterSanitizeShadowDOM",n,null)};return u.sanitize=function(n){var t,h,s,l,c,k=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a,v,r;if(tu=!n,tu&&(n="<!-->"),"string"!=typeof n&&!bi(n)){if("function"!=typeof n.toString)throw b("toString is not a function");if("string"!=typeof(n=n.toString()))throw b("dirty is not a string, aborting");}if(!u.isSupported){if("object"===e(f.toStaticHTML)||"function"==typeof f.toStaticHTML){if("string"==typeof n)return f.toStaticHTML(n);if(bi(n))return f.toStaticHTML(n.outerHTML)}return n}if(wr||iu(k),u.removed=[],"string"==typeof n&&(wi=!1),wi){if(n.nodeName&&(a=y(n.nodeName),!p[a]||pi[a]))throw b("root node is forbidden and cannot be sanitized in-place");}else if(n instanceof or)t=rf("<!---->"),h=t.ownerDocument.importNode(n,!0),1===h.nodeType&&"BODY"===h.nodeName?t=h:"HTML"===h.nodeName?t=h:t.appendChild(h);else{if(!pt&&!yt&&!vt&&-1===n.indexOf("<"))return tt&&ir?tt.createHTML(n):n;if(!(t=rf(n)))return pt?null:ir?ou:""}for(t&&br&&ut(t.firstChild),v=uf(wi?n:t);s=v.nextNode();)3===s.nodeType&&s===l||ff(s)||(s.content instanceof uu&&oe(s.content),sf(s),l=s);if(l=null,wi)return n;if(pt){if(tr)for(c=bf.call(t.ownerDocument);t.firstChild;)c.appendChild(t.firstChild);else c=t;return w.shadowroot&&(c=df.call(er,c,!0)),c}return r=vt?t.outerHTML:t.innerHTML,vt&&p["!doctype"]&&t.ownerDocument&&t.ownerDocument.doctype&&t.ownerDocument.doctype.name&&i(ai,t.ownerDocument.doctype.name)&&(r="<!DOCTYPE "+t.ownerDocument.doctype.name+">\n"+r),yt&&(r=o(r,lr," "),r=o(r,ar," ")),tt&&ir?tt.createHTML(r):r},u.setConfig=function(n){iu(n);wr=!0},u.clearConfig=function(){kt=null;wr=!1},u.isValidAttribute=function(n,t,i){kt||iu({});var r=y(n),u=y(t);return ef(r,u,i)},u.addHook=function(n,t){"function"==typeof t&&(rt[n]=rt[n]||[],h(rt[n],t))},u.removeHook=function(n){if(rt[n])return ft(rt[n])},u.removeHooks=function(n){rt[n]&&(rt[n]=[])},u.removeAllHooks=function(){rt={}},u}var pt=Object.hasOwnProperty,rt=Object.setPrototypeOf,wt=Object.isFrozen,bt=Object.getPrototypeOf,kt=Object.getOwnPropertyDescriptor,t=Object.freeze,f=Object.seal,dt=Object.create,ut="undefined"!=typeof Reflect&&Reflect,l=ut.apply,w=ut.construct;l||(l=function(n,t,i){return n.apply(t,i)});t||(t=function(n){return n});f||(f=function(n){return n});w||(w=function(n,t){return y(n,r(t))});var gt=u(Array.prototype.forEach),ft=u(Array.prototype.pop),h=u(Array.prototype.push),a=u(String.prototype.toLowerCase),ni=u(String.prototype.match),o=u(String.prototype.replace),ti=u(String.prototype.indexOf),ii=u(String.prototype.trim),i=u(RegExp.prototype.test),b=function(n){return function(){for(var i=arguments.length,r=new Array(i),t=0;t<i;t++)r[t]=arguments[t];return w(n,r)}}(TypeError),et=t(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),k=t(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),d=t(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),ri=t(["animate","color-profile","cursor","discard","fedropshadow","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),g=t(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover"]),ui=t(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),ot=t(["#text"]),st=t(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]),nt=t(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),ht=t(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),v=t(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),fi=f(/\{\{[\w\W]*|[\w\W]*\}\}/gm),ei=f(/<%[\w\W]*|[\w\W]*%>/gm),oi=f(/^data-[\-\w.\u00B7-\uFFFF]/),si=f(/^aria-[\-\w]+$/),hi=f(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),ci=f(/^(?:\w+script|data):/i),li=f(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),ai=f(/^html$/i),vi=function(){return"undefined"==typeof window?null:window},yi=function(n,t){var i,r;if("object"!==e(n)||"function"!=typeof n.createPolicy)return null;i=null;t.currentScript&&t.currentScript.hasAttribute("data-tt-policy-suffix")&&(i=t.currentScript.getAttribute("data-tt-policy-suffix"));r="dompurify"+(i?"#"+i:"");try{return n.createPolicy(r,{createHTML:function(n){return n},createScriptURL:function(n){return n}})}catch(e){return console.warn("TrustedTypes policy "+r+" could not be created."),null}};return it()})},function(n,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=i(590),u=i(591),f=i(592),e=i(593),o=i(594),s=i(595),h=i(596),c=i(597),l=i(598),a=i(599),v=function(){function n(n,t){this.endpoint=n;this.root=t}return n.prototype.create=function(n,t){switch(n){case"keywords_all":return this.createAllKeywordsInput();case"keywords_exact":return this.createExactKeywordsInput();case"keywords_any":return this.createAnyKeywordsInput();case"keywords_none":return this.createNoneKeywordsInput();case"date_any":return this.createAnytimeDateInput();case"date_last":return this.createInTheLastDateInput();case"date_between":return this.createBetweenDateInput();case"document_field":return this.createSimpleFieldInput(t.name,t.field);case"document_advanced_field":return this.createAdvancedFieldInput(t.name,t.field);case"document_size":return this.createSizeInput();default:return null}},n.prototype.createAllKeywordsInput=function(){return new r.AllKeywordsInput(this.root)},n.prototype.createExactKeywordsInput=function(){return new u.ExactKeywordsInput(this.root)},n.prototype.createAnyKeywordsInput=function(){return new f.AnyKeywordsInput(this.root)},n.prototype.createNoneKeywordsInput=function(){return new e.NoneKeywordsInput(this.root)},n.prototype.createAnytimeDateInput=function(){return new o.AnytimeDateInput(this.root)},n.prototype.createInTheLastDateInput=function(){return new s.InTheLastDateInput(this.root)},n.prototype.createBetweenDateInput=function(){return new h.BetweenDateInput(this.root)},n.prototype.createSimpleFieldInput=function(n,t){return new c.SimpleFieldInput(n,t,this.endpoint,this.root)},n.prototype.createAdvancedFieldInput=function(n,t){return new l.AdvancedFieldInput(n,t,this.root)},n.prototype.createSizeInput=function(){return new a.SizeInput(this.root)},n}();t.AdvancedSearchInputFactory=v},function(n,t,i){"use strict";var r=this&&this.__extends||function(){var n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])};return function(t,i){function r(){this.constructor=t}n(t,i);t.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var u=i(185),f=i(6),e=function(n){function t(t){var i=n.call(this,f.l("AllTheseWords"),t)||this;return i.root=t,i}return r(t,n),t.prototype.getValue=function(){var t=n.prototype.getValue.call(this);return t?"<@-"+t+"-@>":""},t}(u.KeywordsInput);t.AllKeywordsInput=e},function(n,t,i){"use strict";var r=this&&this.__extends||function(){var n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])};return function(t,i){function r(){this.constructor=t}n(t,i);t.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var u=i(185),f=i(6),e=function(n){function t(t){var i=n.call(this,f.l("ExactPhrase"),t)||this;return i.root=t,i}return r(t,n),t.prototype.getValue=function(){var t=n.prototype.getValue.call(this);return t?'"<@-'+t+'-@>"':""},t}(u.KeywordsInput);t.ExactKeywordsInput=e},function(n,t,i){"use strict";var r=this&&this.__extends||function(){var n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])};return function(t,i){function r(){this.constructor=t}n(t,i);t.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var u=i(185),f=i(6),e=function(n){function t(t){var i=n.call(this,f.l("AnyOfTheseWords"),t)||this;return i.root=t,i}return r(t,n),t.prototype.getValue=function(){return n.prototype.getValue.call(this)?n.prototype.getValue.call(this).replace(/\s+/g," ").split(" ").map(function(n){return'"<@-'+n+'-@>"'}).join(" OR "):""},t}(u.KeywordsInput);t.AnyKeywordsInput=e},function(n,t,i){"use strict";var r=this&&this.__extends||function(){var n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])};return function(t,i){function r(){this.constructor=t}n(t,i);t.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var u=i(185),f=i(6),e=function(n){function t(t){var i=n.call(this,f.l("NoneOfTheseWords"),t)||this;return i.root=t,i}return r(t,n),t.prototype.getValue=function(){var t=n.prototype.getValue.call(this);return t?t.replace(/\s+/g," ").split(" ").map(function(n){return'NOT "<@-'+n+'-@>"'}).join(" "):""},t}(u.KeywordsInput);t.NoneKeywordsInput=e},function(n,t,i){"use strict";var f=this&&this.__extends||function(){var n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])};return function(t,i){function r(){this.constructor=t}n(t,i);t.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var e=i(230),o=i(6),r=i(1),u=i(87),s=function(n){function t(t){var i=n.call(this,o.l("Anytime"),t)||this;return i.root=t,i}return f(t,n),t.prototype.getValue=function(){return null},t.prototype.build=function(){var t=this,i;return n.prototype.build.call(this),i=this.getRadio(),i.checked=!0,r.$$(i).on("change",function(){t.root?r.$$(t.root).trigger(u.AdvancedSearchEvents.executeAdvancedSearch):r.$$(t.element).trigger(u.AdvancedSearchEvents.executeAdvancedSearch)}),this.element},t}(e.DateInput);t.AnytimeDateInput=s},function(n,t,i){"use strict";var f=this&&this.__extends||function(){var n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])};return function(t,i){function r(){this.constructor=t}n(t,i);t.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var e=i(230),u=i(1),r=i(6),o=i(63),s=i(126),h=i(33),c=function(n){function t(t){var i=n.call(this,r.l("InTheLast"),t)||this;return i.root=t,i}return f(t,n),t.prototype.reset=function(){this.dropdown.reset();this.spinner.reset()},t.prototype.build=function(){n.prototype.build.call(this);var t=u.$$("fieldset",{className:"coveo-advanced-search-date-input"});return t.el.disabled=!0,this.spinner=new s.NumericSpinner(this.onChange.bind(this),void 0,void 0,r.l("InTheLast")),t.append(this.spinner.getElement()),this.dropdown=new o.Dropdown(this.onChange.bind(this),["Days","Months"],void 0,r.l("InTheLast")),this.dropdown.setId("coveo-advanced-search-in-the-last-select"),t.append(this.dropdown.getElement()),this.element.appendChild(t.el),u.$$(this.getRadio()).on("change",this.onChange.bind(this)),this.element},t.prototype.getValue=function(){var i=new Date,n=this.spinner.getIntValue(),r=this.dropdown.getValue().toLowerCase(),t=new Date;return"months"==r?t.setMonth(i.getMonth()-n):t.setDate(i.getDate()-n),this.isSelected()&&n?"@date>="+h.DateUtils.dateForQuery(t):""},t}(e.DateInput);t.InTheLastDateInput=c},function(n,t,i){"use strict";var o=this&&this.__extends||function(){var n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])};return function(t,i){function r(){this.constructor=t}n(t,i);t.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var s=i(230),u=i(89),r=i(6),f=i(1),e=i(33),h=i(72),c=function(n){function t(t){var i=n.call(this,r.l("Between"),t)||this;return i.root=t,i.firstDatePicker=new u.DatePicker(i.onChange.bind(i)),i.secondDatePicker=new u.DatePicker(i.onChange.bind(i)),i}return o(t,n),t.prototype.reset=function(){this.firstDatePicker.reset();this.secondDatePicker.reset()},t.prototype.build=function(){n.prototype.build.call(this);var t=f.$$("fieldset",{className:"coveo-advanced-search-date-input"});return t.el.disabled=!0,t.append(this.firstDatePicker.getElement()),t.append(this.buildAnd()),t.append(this.secondDatePicker.getElement()),this.element.appendChild(t.el),this.element},t.prototype.getValue=function(){var i=this.firstDatePicker.getDateValue(),f=this.secondDatePicker.getDateValue(),u=this.firstDatePicker.getValue(),n=this.secondDatePicker.getValue(),t="";if(this.isSelected()){if(i&&f&&h.TimeSpan.fromDates(e.DateUtils.convertFromJsonDateIfNeeded(i),e.DateUtils.convertFromJsonDateIfNeeded(n)).getMilliseconds()<0)throw r.l("QueryExceptionInvalidDate");u&&(t+="(@date>="+u+")");n&&(t+="(@date<="+n+")")}return t},t.prototype.buildAnd=function(){var n=f.$$("div",{className:"coveo-advanced-search-and"});return n.text(r.l("And").toLowerCase()),n.el},t}(s.DateInput);t.BetweenDateInput=c},function(n,t,i){"use strict";var r=this&&this.__extends||function(){var n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])};return function(t,i){function r(){this.constructor=t}n(t,i);t.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var u=i(0),f=i(40),e=i(1),o=i(49),s=i(63),h=i(231),c=function(n){function t(t,i,r,u){var f=n.call(this,t,u)||this;return f.inputName=t,f.fieldName=i,f.endpoint=r,f.root=u,f}return r(t,n),t.prototype.reset=function(){this.dropDown.reset()},t.prototype.build=function(){var i=this,t=e.$$(n.prototype.build.call(this));return this.buildFieldSelect().then(function(){t.append(i.dropDown.getElement())}),this.element=t.el,this.element},t.prototype.getValue=function(){var n=this.dropDown?this.dropDown.getValue():"",t=new o.QueryBuilder;return n?(t.advancedExpression.addFieldExpression(this.fieldName,"==",[n]),t.build().aq):""},t.prototype.buildFieldSelect=function(){var n=this;return this.endpoint.listFieldValues({field:this.fieldName,maximumNumberOfValues:50}).then(function(t){var i=[""];u.each(t,function(n){i.push(n.value)});n.dropDown=new s.Dropdown(n.onChange.bind(n),i,function(t){return f.FacetUtils.tryToGetTranslatedCaption(n.fieldName,t)},n.inputName)})},t}(h.DocumentInput);t.SimpleFieldInput=c},function(n,t,i){"use strict";var r=this&&this.__extends||function(){var n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])};return function(t,i){function r(){this.constructor=t}n(t,i);t.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var u=i(63),f=i(56),e=i(1),o=i(231),s=i(49),h=function(n){function t(t,i,r){var u=n.call(this,t,r)||this;return u.inputName=t,u.fieldName=i,u.root=r,u}return r(t,n),t.prototype.reset=function(){this.mode.reset();this.input.reset()},t.prototype.build=function(){var t=e.$$(n.prototype.build.call(this));return this.mode=new u.Dropdown(this.onChange.bind(this),["Contains","DoesNotContain","Matches"],void 0,this.inputName),t.append(this.mode.getElement()),this.input=new f.TextInput(this.onChange.bind(this),this.inputName),t.append(this.input.getElement()),this.element=t.el,this.element},t.prototype.getValue=function(){var t=this.input.getValue(),n=new s.QueryBuilder;if(t)switch(this.mode.getValue()){case"Contains":return n.advancedExpression.addFieldExpression(this.fieldName,"=",[t]),n.build().aq;case"DoesNotContain":return n.advancedExpression.addFieldExpression(this.fieldName,"<>",[t]),n.build().aq;default:return n.advancedExpression.addFieldExpression(this.fieldName,"==",[t]),n.build().aq}return""},t}(o.DocumentInput);t.AdvancedFieldInput=h},function(n,t,i){"use strict";var e=this&&this.__extends||function(){var n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])};return function(t,i){function r(){this.constructor=t}n(t,i);t.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var r=i(6),u=i(1),o=i(49),f=i(63),s=i(126),h=i(231),c=function(n){function t(t){var i=n.call(this,"Size",t)||this;return i.root=t,i}return e(t,n),t.prototype.reset=function(){this.modeSelect.reset();this.sizeInput.reset()},t.prototype.build=function(){var e=u.$$(n.prototype.build.call(this)),i=u.$$("div",{className:"coveo-size-input-mode-section"});return this.modeSelect=new f.Dropdown(this.onChange.bind(this),t.modes,void 0,r.l("Size")),this.modeSelect.setId("coveo-size-input-mode"),i.append(this.modeSelect.getElement()),this.sizeInput=new s.NumericSpinner(this.onChange.bind(this),void 0,void 0,r.l("SizeValue")),i.append(this.sizeInput.getElement()),this.sizeSelect=new f.Dropdown(this.onChange.bind(this),t.sizes,void 0,r.l("UnitMeasurement")),this.sizeSelect.setId("coveo-size-input-select"),i.append(this.sizeSelect.getElement()),e.append(i.el),this.element=e.el,this.element},t.prototype.getValue=function(){var t=this.getSizeInBytes(),n=new o.QueryBuilder;if(t)switch(this.modeSelect.getValue()){case"AtLeast":return n.advancedExpression.addFieldExpression("@size",">=",[this.getSizeInBytes().toString()]),n.build().aq;default:return n.advancedExpression.addFieldExpression("@size","<=",[this.getSizeInBytes().toString()]),n.build().aq}return""},t.prototype.getSizeInBytes=function(){var n=this.sizeInput.getFloatValue();switch(this.sizeSelect.getValue()){case"KB":return 1024*n;case"MB":return n*Math.pow(1024,2);default:return n}},t.modes=["AtLeast","AtMost"],t.sizes=["KB","MB","Bytes"],t}(h.DocumentInput);t.SizeInput=c},function(){},function(){},function(){},function(){},function(){},function(n,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function n(){}return n.openCardOverlay="openCardOverlay",n.closeCardOverlay="closeCardOverlay",n}();t.CardOverlayEvents=i},function(){},function(){},function(n,t,i){"use strict";var f=this&&this.__awaiter||function(n,t,i,r){return new(i||(i=Promise))(function(u,f){function o(n){try{e(r.next(n))}catch(n){f(n)}}function s(n){try{e(r.throw(n))}catch(n){f(n)}}function e(n){n.done?u(n.value):new i(function(t){t(n.value)}).then(o,s)}e((r=r.apply(n,t||[])).next())})},e=this&&this.__generator||function(n,t){function f(n){return function(t){return s([n,t])}}function s(f){if(e)throw new TypeError("Generator is already executing.");for(;r;)try{if(e=1,u&&(i=u[2&f[0]?"return":f[0]?"throw":"next"])&&!(i=i.call(u,f[1])).done)return i;switch(u=0,i&&(f=[0,i.value]),f[0]){case 0:case 1:i=f;break;case 4:return r.label++,{value:f[1],done:!1};case 5:r.label++;u=f[1];f=[0];continue;case 7:f=r.ops.pop();r.trys.pop();continue;default:if(i=r.trys,!(i=i.length>0&&i[i.length-1])&&(6===f[0]||2===f[0])){r=0;continue}if(3===f[0]&&(!i||f[1]>i[0]&&f[1]<i[3])){r.label=f[1];break}if(6===f[0]&&r.label<i[1]){r.label=i[1];i=f;break}if(i&&r.label<i[2]){r.label=i[2];r.ops.push(f);break}i[2]&&r.ops.pop();r.trys.pop();continue}f=t.call(n,r)}catch(n){f=[6,n];u=0}finally{e=i=0}if(5&f[0])throw f[1];return{value:f[0]?f[1]:void 0,done:!0}}var e,u,i,o,r={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:f(0),"throw":f(1),"return":f(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o},r,u;Object.defineProperty(t,"__esModule",{value:!0});r=i(90);u=function(){function n(n){this.googleApiKey=n}return n.prototype.getPosition=function(){return f(this,void 0,void 0,function(){var t,n;return e(this,function(i){switch(i.label){case 0:return[4,(new r.EndpointCaller).call({errorsAsSuccess:!1,method:"POST",queryString:["key="+this.googleApiKey],requestData:{},responseType:"json",url:"https://www.googleapis.com/geolocation/v1/geolocate"})];case 1:return t=i.sent(),n=t.data.location,[2,{longitude:n.lng,latitude:n.lat}]}})})},n}();t.GoogleApiPositionProvider=u},function(n,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function n(){}return n.prototype.getPosition=function(){return new Promise(function(n,t){navigator.geolocation.getCurrentPosition(function(t){n({latitude:t.coords.latitude,longitude:t.coords.longitude})},function(n){t(n)})})},n}();t.NavigatorPositionProvider=i},function(n,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function n(n,t){this.latitude=n;this.longitude=t}return n.prototype.getPosition=function(){return Promise.resolve({longitude:this.longitude,latitude:this.latitude})},n}();t.StaticPositionProvider=i},function(){},function(){},function(){},function(){},function(n,t,i){"use strict";var e=this&&this.__assign||Object.assign||function(n){for(var t,r,i=1,u=arguments.length;i<u;i++){t=arguments[i];for(r in t)Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n};Object.defineProperty(t,"__esModule",{value:!0});var r=i(0),o=i(11),s=i(9),h=i(74),c=i(49),u=i(33),l=i(21),f=i(4),a=function(){function n(n){var t=this;this.facet=n;this.facet.bind.onRootElement(o.QueryEvents.querySuccess,function(n){return t.handleQuerySuccess(n)})}return n.prototype.prepareForNewQuery=function(){this.lastGroupByRequestIndex=void 0},n.prototype.putGroupByIntoQueryBuilder=function(n){this.facet.options.graph&&this.putGroupByForGraphIntoQueryBuilder(n);this.putGroupByForSliderIntoQueryBuilder(n)},n.prototype.createBasicGroupByRequest=function(){return{field:this.facet.options.field,completeFacetWithStandardValues:!0,allowedValues:void 0}},n.prototype.computeOurFilterExpression=function(n){void 0===n&&(n=[this.facet.startOfSlider,this.facet.endOfSlider]);var t=new h.ExpressionBuilder;return void 0!=n[0]&&void 0!=n[1]&&(this.facet.options.excludeOuterBounds?this.addFilterExpressionWithOuterBoundsExcluded(n[0],n[1],t):this.addFilterExpressionWithOuterBoundsIncluded(n[0],n[1],t)),t.build()},n.prototype.handleQuerySuccess=function(n){var t=this,i,u,f;if(!this.isAValidRangeResponse(n))return i=new s.Logger(this),i.error("Cannot instantiate FacetSlider for this field : "+this.facet.options.field+". It needs to be configured as a numerical field in the index"),i.error("Disabling the FacetSlider",this.facet),void this.facet.disable();this.facet.options&&this.facet.options.graph&&void 0==this.rangeValuesForGraphToUse&&(this.rangeValuesForGraphToUse=[],u=n.results.groupByResults[this.graphGroupByQueriesIndex],f=u?u.values:[],r.each(f,function(n){var i=n.value.split("..");t.rangeValuesForGraphToUse.push({start:t.facet.options.dateField?t.getISOFormat(i[0].replace("@"," ")):parseInt(i[0],10),end:t.facet.options.dateField?t.getISOFormat(i[1].replace("@"," ")):parseInt(i[1],10)})}))},n.prototype.isAValidRangeResponse=function(n){if(void 0!=this.lastGroupByRequestIndex&&n.results.groupByResults[this.lastGroupByRequestIndex]){var t=n.results.groupByResults[this.lastGroupByRequestIndex].values[0];if(t&&!l.QueryUtils.isRangeString(t.value))return!1}return!0},n.prototype.addFilterExpressionWithOuterBoundsIncluded=function(n,t,i){n==this.facet.options.start&&t==this.facet.options.end||(this.facet.options.dateField&&(n=this.getFilterDateFormat(n),t=this.getFilterDateFormat(t)),i.addFieldExpression(this.facet.options.field,"==",[n+".."+t]))},n.prototype.addFilterExpressionWithOuterBoundsExcluded=function(n,t,i){var r=this.facet.options.start,u=this.facet.options.end,f=n,e=t;this.facet.options.dateField?(f=this.getFilterDateFormat(n),e=this.getFilterDateFormat(t),r=this.getFilterDateFormat(r),u=this.getFilterDateFormat(u)):(f+="",e+="",r+="",u+="");f!=r&&e==u?i.addFieldExpression(this.facet.options.field,">=",[f]):f==r&&e!=u?i.addFieldExpression(this.facet.options.field,"<=",[e]):this.addFilterExpressionWithOuterBoundsIncluded(n,t,i)},n.prototype.putGroupByForGraphIntoQueryBuilder=function(n){var t,i;this.graphGroupByQueriesIndex=n.groupByRequests.length;t=this.createBasicGroupByRequest();this.facet.isSimpleSliderConfig?(t.rangeValues=this.createRangeValuesForGraphUsingStartAndEnd(),t.generateAutomaticRanges=!1):t.generateAutomaticRanges=!0;this.addExpressionToExcludeInvalidDates(t);i=this.computeOurFilterExpression(this.facet.getSliderBoundaryForQuery());this.processQueryOverride(i,t,n);t.sortCriteria="nosort";t.maximumNumberOfValues=this.facet.options.graph.steps;n.groupByRequests.push(t)},n.prototype.putGroupByForSliderIntoQueryBuilder=function(n){this.lastGroupByRequestIndex=n.groupByRequests.length;var t=this.putGroupByBasicSliderIntoQueryBuilder(n);this.putGroupByForFullRangeSliderIntoQueryBuilder(n,t)},n.prototype.processQueryOverride=function(n,t,i){var r,u;r=void 0!=n?i.computeCompleteExpressionPartsExcept(n):i.computeCompleteExpressionParts();u=this.facet.options.queryOverride||"@uri";t.queryOverride=this.appendOrSetGroupByOverrideParam(t.queryOverride,r.basic);t.advancedQueryOverride=this.appendOrSetGroupByOverrideParam(t.advancedQueryOverride,r.advanced);t.constantQueryOverride=this.appendOrSetGroupByOverrideParam(t.constantQueryOverride,r.constant);t.advancedQueryOverride=this.appendOrSetGroupByOverrideParam(t.advancedQueryOverride,u)},n.prototype.createRangeValuesForGraphUsingStartAndEnd=function(){var n=this.getFormattedStartAndEnd(),i=n.start,r=n.end,t={start:i,end:r,endInclusive:!0,label:"Slider"};return void 0==this.facet.options.graph.steps&&(this.facet.options.graph.steps=10),this.facet.options.dateField&&isNaN(this.facet.options.start)&&(this.facet.options.start=new Date(this.facet.options.start).getTime()),this.facet.options.dateField&&isNaN(this.facet.options.end)&&(this.facet.options.end=new Date(this.facet.options.end).getTime()),void 0!=this.rangeValuesForGraphToUse?this.usePrebuiltRange(t):this.buildRange(t)},n.prototype.usePrebuiltRange=function(n){return r.map(this.rangeValuesForGraphToUse,function(t){return{start:t.start,end:t.end,endInclusive:n.endInclusive,label:n.label}})},n.prototype.buildRange=function(n){var t=this,i=this.facet.options.start,u=(this.facet.options.end-this.facet.options.start)/this.facet.options.graph.steps;return r.map(r.range(0,this.facet.options.graph.steps,1),function(r){var f=i+r*u,e=i+(r+1)*u;return t.facet.options.dateField&&(f=t.getISOFormat(f),e=t.getISOFormat(e)),{endInclusive:n.endInclusive,label:n.label,start:f,end:e}})},n.prototype.getFormattedStartAndEnd=function(){var n=this.facet.options.start,t=this.facet.options.end;return this.facet.options.dateField&&(n=this.getISOFormat(n),t=this.getISOFormat(t)),{start:n,end:t}},n.prototype.getISOFormat=function(n){if(n){isNaN(n)||(n=Number(n));var t=new Date(n);return u.DateUtils.isValid(t)||(t=new Date(this.getBrowserCompatibleFormat(n)),u.DateUtils.isValid(t))?t.toISOString():void this.facet.logger.error("Cannot parse this date format.",n,new Date(n))}},n.prototype.getFilterDateFormat=function(n){if(n)return this.getISOFormat(n).replace("T","@").replace(".000Z","").replace(/-/g,"/")},n.prototype.getBrowserCompatibleFormat=function(n){return n.replace("@","T").replace(/\//g,"-")},n.prototype.putGroupByForFullRangeSliderIntoQueryBuilder=function(n,t){this.lastGroupByRequestForFullRangeIndex=n.groupByRequests.length;var i=r.clone(t);delete i.queryOverride;delete i.advancedQueryOverride;this.facet.options.queryOverride&&(i.advancedQueryOverride=this.facet.options.queryOverride);this.addExpressionToExcludeInvalidDates(i);void 0===i.queryOverride&&void 0===i.advancedQueryOverride&&void 0===i.constantQueryOverride&&(i.advancedQueryOverride="@uri");n.groupByRequests.push(i)},n.prototype.putGroupByBasicSliderIntoQueryBuilder=function(n){var i=1,r,t,u;return this.facet.hasAGraph()&&(i=this.facet.options.graph.steps),this.facet.isSimpleSliderConfig&&(r=[e({},this.getFormattedStartAndEnd(),{label:"slider",endInclusive:!1})]),t=this.createBasicGroupByRequest(),t.maximumNumberOfValues=i,t.sortCriteria="nosort",t.generateAutomaticRanges=!this.facet.isSimpleSliderConfig,t.rangeValues=r,u=this.computeOurFilterExpression(this.facet.getSliderBoundaryForQuery()),this.processQueryOverride(u,t,n),this.addExpressionToExcludeInvalidDates(t),n.groupByRequests.push(t),t},n.prototype.addExpressionToExcludeInvalidDates=function(n){if(this.facet.options.dateField){var t=new c.QueryBuilder;t.expression.addFieldExpression(this.facet.options.field,">",[this.getFilterDateFormat(new Date(0))]);n.constantQueryOverride?n.constantQueryOverride+=" "+t.expression.build():n.constantQueryOverride=t.expression.build()}},n.prototype.appendOrSetGroupByOverrideParam=function(n,t){return f.Utils.isNullOrUndefined(t)?n:f.Utils.isNullOrUndefined(n)?t||"":n+" "+(t||"")},n}();t.FacetSliderQueryController=a},function(n,t,i){"use strict";var l,a,f;Object.defineProperty(t,"__esModule",{value:!0});var s=i(617),h=i(523),c=i(23),u=i(0),e=i(142),v=i(9),o=i(24),r=i(1),y=i(4);t.MAX_NUMBER_OF_STEPS=100;l=function(){function n(n,t,i){var o=this,e;(this.element=n,this.options=t,this.root=i,this.steps=[],this.options.dateField&&(this.options.start=new Date(this.options.start).getTime(),this.options.end=new Date(this.options.end).getTime()),void 0==this.options.rounded&&(this.options.rounded=0),(this.options.steps||this.options.getSteps)&&this.buildSteps(),this.options.graph&&(this.sliderGraph=new b(this)),this.sliderLine=new a(this),u.each(this.sliderLine.build(),function(n){o.element.appendChild(n)}),this.options.rangeSlider)?(this.sliderRange=new p(this),u.each(this.sliderRange.build(),function(n){o.element.appendChild(n)})):(this.sliderButton=new f(this,1),e=this.sliderButton.build(),r.$$(e).addClass("coveo-no-range-button"),this.element.appendChild(e),this.sliderLine.setActiveWidth(this.sliderButton));this.sliderCaption=new w(this);this.element.appendChild(this.sliderCaption.build())}return n.prototype.onMoving=function(){this.options.rangeSlider?(this.sliderRange.setBoundary(),this.sliderLine.setActiveWidth(this.sliderRange.firstButton,this.sliderRange.secondButton)):(this.setButtonBoundary(),this.sliderLine.setActiveWidth(this.sliderButton));this.options.graph&&this.sliderGraph.draw();this.displayCaption()},n.prototype.initializeState=function(n){void 0===n&&(n=[this.options.start,this.options.end]);this.currentValues=n;this.options.rangeSlider?(this.sliderRange.initializeSliderRangeState(n),this.sliderLine.setActiveWidth(this.sliderRange.firstButton,this.sliderRange.secondButton)):(void 0==n?this.sliderButton.toEnd():this.sliderButton.setValue(n[1]),this.setButtonBoundary(),this.sliderLine.setActiveWidth(this.sliderButton));this.displayCaption()},n.prototype.getPosition=function(){return this.options.rangeSlider?this.sliderRange.getPosition():[0,this.sliderButton.getPosition()]},n.prototype.getPercentPosition=function(){return this.options.rangeSlider?this.sliderRange.getPercentPosition():[0,this.sliderButton.getPercent()]},n.prototype.getValues=function(){return void 0!=this.currentValues?this.currentValues:this.options.rangeSlider?this.sliderRange.getValue():[this.options.start,this.sliderButton.getValue()]},n.prototype.getCaptionFromValue=function(n){return this.sliderCaption.getCaptionFromValues(n)},n.prototype.getCaption=function(){return this.sliderCaption.getCaption()},n.prototype.setValues=function(n){void 0!=n&&(n[0]=Math.max(n[0],this.options.start),n[1]=Math.min(n[1],this.options.end));this.currentValues=n;this.options.rangeSlider?(this.sliderRange.setValue(n),this.sliderLine.setActiveWidth(this.sliderRange.firstButton,this.sliderRange.secondButton)):(this.sliderButton.setValue(n[1]),this.sliderLine.setActiveWidth(this.sliderButton));this.displayCaption()},n.prototype.drawGraph=function(n){this.sliderGraph&&this.sliderGraph.draw(n)},n.prototype.setButtonBoundary=function(){this.sliderButton.leftBoundary=0;this.sliderButton.rightBoundary=this.element.clientWidth},n.prototype.displayCaption=function(){void 0!=this.options.valueCaption?this.sliderCaption.setFromString(this.options.valueCaption(this.getValues())):void 0!=this.options.percentCaption?this.sliderCaption.setFromString(this.options.percentCaption(this.getPercentPosition())):void 0!=this.options.displayAsPercent&&void 0!=this.options.displayAsPercent.separator&&this.options.displayAsPercent.enable?this.sliderCaption.setAsPercent():this.sliderCaption.setAsValue()},n.prototype.buildSteps=function(){var i,n,r;if(this.options.getSteps)this.steps=this.options.getSteps(this.options.start,this.options.end);else if(this.options.steps>t.MAX_NUMBER_OF_STEPS&&(new v.Logger(this).warn("Maximum number of steps for slider is "+t.MAX_NUMBER_OF_STEPS+" for performance reason"),this.options.steps=t.MAX_NUMBER_OF_STEPS),i=(this.options.end-this.options.start)/Math.max(1,this.options.steps),i>0)for(n=this.options.start,r=0;n<=this.options.end&&r<=t.MAX_NUMBER_OF_STEPS;)this.steps.push(n),n+=i,r++;else this.steps.push(this.options.start),this.steps.push(this.options.end)},n}();t.Slider=l;a=function(){function n(n){this.slider=n}return n.prototype.build=function(){return this.backGround=r.$$("div",{className:"coveo-slider-line coveo-background"}).el,this.activePart=r.$$("div",{className:"coveo-slider-line coveo-active"}).el,[this.backGround,this.activePart]},n.prototype.setActiveWidth=function(n,t){var i;this.slider.options.rangeSlider?(i=100*(t.getPercent()-n.getPercent()),this.activePart.style.width=i+"%",this.activePart.style.left=100*n.getPercent()+"%",this.activePart.style.right=100*t.getPercent()+"%"):(i=100*n.getPercent(),this.activePart.style.width=i+"%")},n}();f=function(){function n(n,t){this.slider=n;this.which=t;this.eventMouseDown=o.DeviceUtils.isMobileDevice()?"touchstart":"mousedown";this.eventMouseMove=o.DeviceUtils.isMobileDevice()?"touchmove":"mousemove";this.eventMouseUp=o.DeviceUtils.isMobileDevice()?"touchend":"mouseup"}return n.prototype.build=function(){return this.element=r.$$("div",{className:"coveo-slider-button"}).el,this.bindEvents(),this.element.CoveoSliderButton=this,this.element},n.prototype.toBeginning=function(){this.element.style.left="0%"},n.prototype.toEnd=function(){this.element.style.left="100%"},n.prototype.setValue=function(n){var t=this.fromValueToPercent(n);this.element.style.left=Math.round(100*t)+"%"},n.prototype.getPosition=function(){var n=this.element.style.left;return-1!=n.indexOf("%")?parseFloat(n)/100*this.slider.element.clientWidth:parseFloat(n)},n.prototype.getPercent=function(n){return void 0===n&&(n=this.getPosition()),0==this.slider.element.clientWidth?0:+(n/this.slider.element.clientWidth).toFixed(2)},n.prototype.getValue=function(){var n=this.getPercent()*(this.slider.options.end-this.slider.options.start)+this.slider.options.start;return this.slider.options.dateField?Math.round(n):n},n.prototype.fromValueToPercent=function(n){return 1-(this.slider.options.end-n)/(this.slider.options.end-this.slider.options.start)},n.prototype.fromPositionToValue=function(n){var t=this.getPercent(n);return this.slider.options.start+t*(this.slider.options.end-this.slider.options.start)},n.prototype.fromValueToPosition=function(n){var t=this.fromValueToPercent(n);return this.slider.element.clientWidth*t},n.prototype.bindEvents=function(){var n=this,t;r.$$(this.element).on(this.eventMouseDown,function(t){n.handleStartSlide(t)});t=this.slider.options.document||document;t.addEventListener(this.eventMouseMove,function(t){"touchmove"==n.eventMouseMove&&n.isMouseDown&&t.preventDefault();n.handleMoving(t)});t.addEventListener(this.eventMouseUp,function(){n.handleEndSlide()})},n.prototype.getUserSelect=function(){return void 0!==document.body.style.msUserSelect?"msUserSelect":void 0!==document.body.style.webkitUserSelect?"webkitUserSelect":void 0!==document.body.style.MozUserSelect?"MozUserSelect":"userSelect"},n.prototype.handleStartSlide=function(n){var t=this.getMousePosition(n);this.isMouseDown=!0;this.startPositionX=t.x;this.lastElementLeft=parseInt(this.element.style.left,10)/100*this.slider.element.clientWidth;this.origUserSelect=document.body.style[this.getUserSelect()];this.origCursor=document.body.style.cursor;document.body.style[this.getUserSelect()]="none";document.body.style.cursor="pointer";r.$$(this.element).addClass("coveo-active");r.$$(this.element).trigger(e.SliderEvents.startSlide,{button:this,slider:this.slider});n.stopPropagation()},n.prototype.handleMoving=function(n){this.isMouseDown&&(this.slider.onMoving(),this.updatePosition(n),this.handleButtonNearEnd(),r.$$(this.element).trigger(e.SliderEvents.duringSlide,{button:this,slider:this.slider}))},n.prototype.handleEndSlide=function(){this.isMouseDown&&(document.body.style[this.getUserSelect()]=this.origUserSelect,document.body.style.cursor=this.origCursor,r.$$(this.element).removeClass("coveo-active"),r.$$(this.element).trigger(e.SliderEvents.endSlide,{button:this,slider:this.slider}));this.isMouseDown=!1},n.prototype.handleButtonNearEnd=function(){0==this.which&&(void 0==this.origZIndex&&(this.origZIndex=this.element.style.zIndex||"1"),this.element.style.zIndex=this.currentPos>90?this.origZIndex+1:this.origZIndex)},n.prototype.getMousePosition=function(n){var t=0,i=0;return n.touches&&n.touches[0]?(t=n.touches[0].pageX,i=n.touches[0].pageY):n.pageX&&n.pageY?(t=n.pageX,i=n.pageY):n.clientX&&n.clientY&&(t=n.clientX+document.body.scrollLeft+document.documentElement.scrollLeft,i=n.clientY+document.body.scrollTop+document.documentElement.scrollTop),{x:t,y:i}},n.prototype.updatePosition=function(n){var i,u=this.getMousePosition(n),r=u.x-this.startPositionX,t;(this.currentPos=this.lastElementLeft+r,this.slider.options.steps||this.slider.options.getSteps)&&(t=this.snapToStep(r),this.currentPos=t.position,i=t.value);this.currentPos=Math.max(this.leftBoundary,this.currentPos);this.currentPos=Math.min(this.rightBoundary,this.currentPos);this.currentPos=100*this.getPercent(this.currentPos);this.currentPos=Math.min(this.currentPos,100);this.currentPos=Math.max(this.currentPos,0);this.element.style.left=Math.round(this.currentPos)+"%";this.slider.currentValues[this.which]=this.slider.options.steps||this.slider.options.getSteps?i:this.getValue()},n.prototype.snapToStep=function(){var n=this,i=u.map(this.slider.steps,function(t,i){return Math.abs(n.currentPos-n.fromValueToPosition(n.slider.steps[i]))}),r=u.map(this.slider.steps,function(t,i){return Math.abs(n.rightBoundary-n.fromValueToPosition(n.slider.steps[i]))}),f=u.map(this.slider.steps,function(t,i){return Math.abs(n.leftBoundary-n.fromValueToPosition(n.slider.steps[i]))}),e=u.min(i),o=u.min(r),s=u.min(f),t=this.slider.steps[u.indexOf(i,e)],h=this.slider.steps[u.indexOf(r,o)],c=this.slider.steps[u.indexOf(f,s)];return t=Math.min(t,h),t=Math.max(t,c),{position:this.fromValueToPosition(t),value:t}},n}();t.SliderButton=f;var p=function(){function n(n){this.slider=n;this.firstButton=new f(n,0);this.secondButton=new f(n,1)}return n.prototype.build=function(){var t=this.firstButton.build(),n=this.secondButton.build();return r.$$(n).addClass("coveo-range-button"),[t,n]},n.prototype.initializeSliderRangeState=function(n){void 0==n?(this.firstButton.toBeginning(),this.secondButton.toEnd()):(this.firstButton.setValue(n[0]),this.secondButton.setValue(n[1]));this.setBoundary()},n.prototype.setValue=function(n){this.firstButton.setValue(n[0]);this.secondButton.setValue(n[1])},n.prototype.setBoundary=function(){this.firstButton.leftBoundary=0;this.firstButton.rightBoundary=this.secondButton.getPosition();this.secondButton.leftBoundary=this.firstButton.getPosition();this.secondButton.rightBoundary=this.slider.element.clientWidth},n.prototype.getPosition=function(){return[this.firstButton.getPosition(),this.secondButton.getPosition()]},n.prototype.getPercentPosition=function(){return[this.firstButton.getPercent(),this.secondButton.getPercent()]},n.prototype.getValue=function(){return[this.firstButton.getValue(),this.secondButton.getValue()]},n}(),w=function(){function n(n){this.slider=n;this.separator="-";this.unitSign="";this.slider.options.displayAsPercent&&this.slider.options.displayAsPercent.enable?this.separator=void 0!=this.slider.options.displayAsPercent.separator?this.slider.options.displayAsPercent.separator:this.separator:this.slider.options.displayAsValue&&this.slider.options.displayAsValue.enable&&(this.separator=void 0!=this.slider.options.displayAsValue.separator?this.slider.options.displayAsValue.separator:this.separator,this.unitSign=void 0!=this.slider.options.displayAsValue.unitSign?this.slider.options.displayAsValue.unitSign:this.unitSign)}return n.prototype.build=function(){return this.caption=r.$$("div",{className:"coveo-slider-caption"}).el,this.caption},n.prototype.getCaption=function(){return r.$$(this.caption).text()},n.prototype.getCaptionFromValues=function(n){return this.getValueCaption(n)},n.prototype.getCaptionFromValuesAsPercent=function(n){return this.getValueCaption(n)},n.prototype.setAsValue=function(){r.$$(this.caption).text(this.getValueCaption())},n.prototype.setAsPercent=function(){var n=this.slider.getPercentPosition();r.$$(this.caption).text([(100*n[0]).toFixed(this.slider.options.rounded),"%",this.separator,(100*n[1]).toFixed(this.slider.options.rounded),"%"].join(" "))},n.prototype.setFromString=function(n){r.$$(this.caption).text(n)},n.prototype.getValueCaption=function(n){var t,i,r,u;return void 0===n&&(n=this.slider.getValues()),t=n[0],i=n[1],this.slider.options.dateField?(r=new Date(t),u=new Date(i),r.setHours(0,0,0,0),u.setHours(0,0,0,0),t=c.format(r,this.slider.options.dateFormat||"MMM dd, yyyy"),i=c.format(u,this.slider.options.dateFormat||"MMM dd, yyyy"),this.unitSign=""):(t=t.toFixed(this.slider.options.rounded),i=i.toFixed(this.slider.options.rounded)),[t,this.unitSign,this.separator,i,this.unitSign].join(" ")},n}(),b=function(){function n(n){this.slider=n;this.svg=s.select(n.element).append("svg").append("g");this.x=h.scaleBand();this.y=h.scaleLinear();this.slider.options.graph.margin=y.Utils.extendDeep({top:20,right:0,left:0,bottom:20},this.slider.options.graph.margin||{});this.slider.options.graph.animationDuration=this.slider.options.graph.animationDuration||500;this.slider.options.graph.steps=this.slider.options.graph.steps||10;this.buildTooltip()}return n.prototype.draw=function(n){var r,u;if(void 0===n&&(n=this.oldData),n){n!=this.oldData&&(n=this.modifyPossibleSinglePointDataIntoValidRange(n));var f=this.slider.element.offsetWidth,e=this.slider.element.offsetHeight,i=f-this.slider.options.graph.margin.left-this.slider.options.graph.margin.right,t=e-this.slider.options.graph.margin.top-this.slider.options.graph.margin.bottom;!isNaN(i)&&i>=0&&!isNaN(t)&&t>=0&&(this.applyTransformOnSvg(i,t),this.setXAndYRange(i,t),this.setXAndYDomain(n),r=this.svg.selectAll(".coveo-bar").data(n),u=this.slider.getValues(),this.renderGraphBars(r,i,t,u),this.setGraphBarsTransition(r,t,u));this.oldData=n}},n.prototype.buildTooltip=function(){this.tooltip=r.$$("div",{className:"coveo-slider-tooltip"}).el;this.tooltipArrow=r.$$("div",{className:"coveo-slider-tooltip-arrow"}).el;this.tooltipCaption=r.$$("span",{className:"coveo-caption"}).el;this.tooltipCount=r.$$("span",{className:"coveo-count"}).el;r.$$(this.tooltip).append(this.tooltipArrow);r.$$(this.tooltip).append(this.tooltipCaption);r.$$(this.tooltip).append(this.tooltipCount);r.$$(this.tooltip).hide();r.$$(this.slider.element).append(this.tooltip)},n.prototype.modifyPossibleSinglePointDataIntoValidRange=function(n){var t=this;return u.map(n,function(n){if(n.start==n.end){var i=(t.slider.options.end-t.slider.options.start)/t.slider.options.graph.steps;n.start=Math.round(n.start-i/2);n.end=Math.round(n.end+i/2)}return n})},n.prototype.setXAndYRange=function(n,t){this.x.range([0,n]);this.x.padding(.2);this.y.range([t-this.slider.options.graph.margin.top,0])},n.prototype.setXAndYDomain=function(n){this.padGraphWithEmptyData(n);this.x.domain(u.map(n,function(n){return n.start}));this.y.domain([0,s.max(n,function(n){return n.y})])},n.prototype.calculateOneStepOfGraph=function(n){return Math.abs(n[0].end-n[0].start)||1},n.prototype.padGraphWithEmptyData=function(n){var t=this.calculateOneStepOfGraph(n);this.padBeginningOfGraphWithEmptyData(n,t);this.padEndOfGraphWithEmptyData(n,t)},n.prototype.padBeginningOfGraphWithEmptyData=function(n,i){if(n[0].start>this.slider.options.start&&n[0].start>i)for(var f=n[0].start-this.slider.options.start,e=Math.min(t.MAX_NUMBER_OF_STEPS,Math.round(f/i)),r=n[0].start,u=e;u>0;u--)n.unshift({start:r-i,end:r,y:0}),r-=i},n.prototype.padEndOfGraphWithEmptyData=function(n,i){var r=n.length-1;if(n[r].end<this.slider.options.end)for(var e=this.slider.options.end-n[r].end,o=Math.min(t.MAX_NUMBER_OF_STEPS,Math.round(e/i)),u=n[r].end,f=0;f<o;f++)n.push({start:u,end:u+i,y:0}),u+=i},n.prototype.applyTransformOnSvg=function(n,t){var i=r.$$(this.slider.element).find("svg");i.setAttribute("width",n+"px");i.setAttribute("height",t+"px");this.svg.attr("transform","translate("+this.slider.options.graph.margin.left+","+this.slider.options.graph.margin.top+")")},n.prototype.renderGraphBars=function(n,t,i,r){n.enter().append("rect").attr("class",this.getFunctionForClass(r)).attr("width",this.x.bandwidth()).attr("height",this.getFunctionForHeight(i)).attr("x",this.getFunctionForX()).attr("y",this.getFunctionForY()).on("click",this.getFunctionForClick()).on("mouseover",this.getFunctionForMouseOver(i)).on("mouseout",this.getFunctionForMouseOut())},n.prototype.setGraphBarsTransition=function(n,t,i){n.transition().attr("x",this.getFunctionForX()).attr("width",this.x.bandwidth()).attr("class",this.getFunctionForClass(i)).transition().duration(this.slider.options.graph.animationDuration).attr("y",this.getFunctionForY()).attr("height",this.getFunctionForHeight(t))},n.prototype.getBarClass=function(n,t,i){return t.start>=n[0]&&t.end<=n[1]?"coveo-active":n[0]==this.slider.options.start&&0==i?"coveo-active":n[1]==this.slider.options.end&&i==this.slider.options.graph.steps-1?"coveo-active":""},n.prototype.setTooltip=function(n,t){var i,u,f;r.$$(this.tooltipCaption).text(this.slider.getCaptionFromValue([n.start,n.end]));r.$$(this.tooltipCount).text(n.y.toString());r.$$(this.tooltip).show();var e=this.x(n.start)-50,s=this.x.bandwidth()/2,o=50+s-5;this.tooltip.style.left=e+"px";this.tooltip.style.top=this.y(n.y)-t+"px";this.tooltipArrow.style.left=o+"px";i=this.tooltip.getBoundingClientRect();u=new r.Win(window).width();i.right>u-20&&(f=u-i.right-20,this.tooltip.style.left=e+f+"px",this.tooltipArrow.style.left=o-f+"px")},n.prototype.getFunctionForX=function(){var n=this;return function(t){return n.x(t.start)}},n.prototype.getFunctionForY=function(){var n=this;return function(t){return n.y(t.y)}},n.prototype.getFunctionForHeight=function(n){var t=this;return function(i){return n-t.y(i.y)}},n.prototype.getFunctionForClass=function(n){var t=this;return function(i,r){return"coveo-bar "+t.getBarClass(n,i,r)}},n.prototype.getFunctionForClick=function(){var n=this;return function(t){r.$$(n.slider.element).trigger(e.SliderEvents.graphValueSelected,{start:t.start,end:t.end,value:t.y})}},n.prototype.getFunctionForMouseOver=function(n){var t=this;return function(i){return t.setTooltip(i,n)}},n.prototype.getFunctionForMouseOut=function(){var n=this;return function(){return r.$$(n.tooltip).hide()}},n}()},function(n,t,i){"use strict";function yvt(n){return"translate("+(n+.5)+",0)"}function pvt(n){return"translate(0,"+(n+.5)+")"}function wvt(n){return function(t){return+n(t)}}function bvt(n){var t=Math.max(0,n.bandwidth()-1)/2;return n.round()&&(t=Math.round(t)),function(i){return+n(i)+t}}function kvt(){return!this.__axis}function eh(n,t){function i(i){var rt=null==o?t.ticks?t.ticks.apply(t,e):t.domain():o,ut=null==s?t.tickFormat?t.tickFormat.apply(t,e):hfi:s,it=Math.max(f,0)+c,nt=t.range(),b=+nt[0]+.5,k=+nt[nt.length-1]+.5,d=(t.bandwidth?bvt:wvt)(t.copy()),y=i.selection?i.selection():i,v=y.selectAll(".domain").data([null]),a=y.selectAll(".tick").data(rt,t).order(),tt=a.exit(),g=a.enter().append("g").attr("class","tick"),p=a.select("line"),w=a.select("text");v=v.merge(v.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor"));a=a.merge(g);p=p.merge(g.append("line").attr("stroke","currentColor").attr(h+"2",u*f));w=w.merge(g.append("text").attr("fill","currentColor").attr(h,u*it).attr("dy",n===dc?"0em":n===ub?"0.71em":"0.32em"));i!==y&&(v=v.transition(i),a=a.transition(i),p=p.transition(i),w=w.transition(i),tt=tt.transition(i).attr("opacity",lft).attr("transform",function(n){return isFinite(n=d(n))?l(n):this.getAttribute("transform")}),g.attr("opacity",lft).attr("transform",function(n){var t=this.parentNode.__axis;return l(t&&isFinite(t=t(n))?t:d(n))}));tt.remove();v.attr("d",n===po||n==gc?r?"M"+u*r+","+b+"H0.5V"+k+"H"+u*r:"M0.5,"+b+"V"+k:r?"M"+b+","+u*r+"V0.5H"+k+"V"+u*r:"M"+b+",0.5H"+k);a.attr("opacity",1).attr("transform",function(n){return l(d(n))});p.attr(h+"2",u*f);w.attr(h,u*it).text(ut);y.filter(kvt).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",n===gc?"start":n===po?"end":"middle");y.each(function(){this.__axis=d})}var e=[],o=null,s=null,f=6,r=6,c=3,u=n===dc||n===po?-1:1,h=n===po||n===gc?"x":"y",l=n===dc||n===ub?yvt:pvt;return i.scale=function(n){return arguments.length?(t=n,i):t},i.ticks=function(){return e=rb.call(arguments),i},i.tickArguments=function(n){return arguments.length?(e=null==n?[]:rb.call(n),i):e.slice()},i.tickValues=function(n){return arguments.length?(o=null==n?null:rb.call(n),i):o&&o.slice()},i.tickFormat=function(n){return arguments.length?(s=n,i):s},i.tickSize=function(n){return arguments.length?(f=r=+n,i):f},i.tickSizeInner=function(n){return arguments.length?(f=+n,i):f},i.tickSizeOuter=function(n){return arguments.length?(r=+n,i):r},i.tickPadding=function(n){return arguments.length?(c=+n,i):c},i}function dvt(n){return eh(dc,n)}function gvt(n){return eh(gc,n)}function nyt(n){return eh(ub,n)}function tyt(n){return eh(po,n)}function gd(){for(var n,t=0,r=arguments.length,i={};t<r;++t){if(!(n=arguments[t]+"")||n in i||/[\s.]/.test(n))throw new Error("illegal type: "+n);i[n]=[]}return new oh(i)}function oh(n){this._=n}function iyt(n,t){return n.trim().split(/^|\s+/).map(function(n){var r="",i=n.indexOf(".");if(i>=0&&(r=n.slice(i+1),n=n.slice(0,i)),n&&!t.hasOwnProperty(n))throw new Error("unknown type: "+n);return{type:n,name:r}})}function ryt(n,t){for(var r,i=0,u=n.length;i<u;++i)if((r=n[i]).name===t)return r.value}function ng(n,t,i){for(var r=0,u=n.length;r<u;++r)if(n[r].name===t){n[r]=cfi;n=n.slice(0,r).concat(n.slice(r+1));break}return null!=i&&n.push({name:t,value:i}),n}function uyt(n){return function(){var t=this.ownerDocument,i=this.namespaceURI;return i===fb&&t.documentElement.namespaceURI===fb?t.createElement(n):t.createElementNS(i,n)}}function fyt(n){return function(){return this.ownerDocument.createElementNS(n.space,n.local)}}function eyt(){}function oyt(){return[]}function sh(n,t){this.ownerDocument=n.ownerDocument;this.namespaceURI=n.namespaceURI;this._next=null;this._parent=n;this.__data__=t}function syt(n,t,i,r,u,f){for(var o,e=0,s=t.length,h=f.length;e<h;++e)(o=t[e])?(o.__data__=f[e],r[e]=o):i[e]=new sh(n,f[e]);for(;e<s;++e)(o=t[e])&&(u[e]=o)}function hyt(n,t,i,r,u,f,e){for(var s,h,c={},l=t.length,v=f.length,a=new Array(l),o=0;o<l;++o)(s=t[o])&&(a[o]=h=vft+e.call(s,s.__data__,o,t),h in c?u[o]=s:c[h]=s);for(o=0;o<v;++o)h=vft+e.call(n,f[o],o,f),(s=c[h])?(r[o]=s,s.__data__=f[o],c[h]=null):i[o]=new sh(n,f[o]);for(o=0;o<l;++o)(s=t[o])&&c[a[o]]===s&&(u[o]=s)}function cyt(n,t){return n<t?-1:n>t?1:n>=t?0:NaN}function lyt(n){return function(){this.removeAttribute(n)}}function ayt(n){return function(){this.removeAttributeNS(n.space,n.local)}}function vyt(n,t){return function(){this.setAttribute(n,t)}}function yyt(n,t){return function(){this.setAttributeNS(n.space,n.local,t)}}function pyt(n,t){return function(){var i=t.apply(this,arguments);null==i?this.removeAttribute(n):this.setAttribute(n,i)}}function wyt(n,t){return function(){var i=t.apply(this,arguments);null==i?this.removeAttributeNS(n.space,n.local):this.setAttributeNS(n.space,n.local,i)}}function byt(n){return function(){this.style.removeProperty(n)}}function kyt(n,t,i){return function(){this.style.setProperty(n,t,i)}}function dyt(n,t,i){return function(){var r=t.apply(this,arguments);null==r?this.style.removeProperty(n):this.style.setProperty(n,r,i)}}function ou(n,t){return n.style.getPropertyValue(t)||hb(n).getComputedStyle(n,null).getPropertyValue(t)}function gyt(n){return function(){delete this[n]}}function npt(n,t){return function(){this[n]=t}}function tpt(n,t){return function(){var i=t.apply(this,arguments);null==i?delete this[n]:this[n]=i}}function tg(n){return n.trim().split(/^|\s+/)}function lv(n){return n.classList||new ig(n)}function ig(n){this._node=n;this._names=tg(n.getAttribute("class")||"")}function rg(n,t){for(var r=lv(n),i=-1,u=t.length;++i<u;)r.add(t[i])}function ug(n,t){for(var r=lv(n),i=-1,u=t.length;++i<u;)r.remove(t[i])}function ipt(n){return function(){rg(this,n)}}function rpt(n){return function(){ug(this,n)}}function upt(n,t){return function(){(t.apply(this,arguments)?rg:ug)(this,n)}}function fpt(){this.textContent=""}function ept(n){return function(){this.textContent=n}}function opt(n){return function(){var t=n.apply(this,arguments);this.textContent=null==t?"":t}}function spt(){this.innerHTML=""}function hpt(n){return function(){this.innerHTML=n}}function cpt(n){return function(){var t=n.apply(this,arguments);this.innerHTML=null==t?"":t}}function lpt(){this.nextSibling&&this.parentNode.appendChild(this)}function apt(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function vpt(){return null}function ypt(){var n=this.parentNode;n&&n.removeChild(this)}function ppt(){var n=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(n,this.nextSibling):n}function wpt(){var n=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(n,this.nextSibling):n}function bpt(n,t,i){return n=fg(n,t,i),function(t){var i=t.relatedTarget;i&&(i===this||8&i.compareDocumentPosition(this))||n.call(this,t)}}function fg(n,t,i){return function(u){var f=r;r=u;try{n.call(this,this.__data__,t,i)}finally{r=f}}}function kpt(n){return n.trim().split(/^|\s+/).map(function(n){var i="",t=n.indexOf(".");return t>=0&&(i=n.slice(t+1),n=n.slice(0,t)),{type:n,name:i}})}function dpt(n){return function(){var i=this.__on;if(i){for(var t,r=0,u=-1,f=i.length;r<f;++r)t=i[r],n.type&&t.type!==n.type||t.name!==n.name?i[++u]=t:this.removeEventListener(t.type,t.listener,t.capture);++u?i.length=u:delete this.__on}}}function gpt(n,t,i){var r=yft.hasOwnProperty(n.type)?bpt:fg;return function(u,f,e){var o,s=this.__on,c=r(t,f,e),h,l;if(s)for(h=0,l=s.length;h<l;++h)if((o=s[h]).type===n.type&&o.name===n.name)return this.removeEventListener(o.type,o.listener,o.capture),this.addEventListener(o.type,o.listener=c,o.capture=i),void(o.value=t);this.addEventListener(n.type,c,i);o={type:n.type,name:n.name,value:t,listener:c,capture:i};s?s.push(o):this.__on=[o]}}function be(n,t,i,u){var f=r;n.sourceEvent=r;r=n;try{return t.apply(i,u)}finally{r=f}}function eg(n,t,i){var u=hb(n),r=u.CustomEvent;"function"==typeof r?r=new r(t,i):(r=u.document.createEvent("Event"),i?(r.initEvent(t,i.bubbles,i.cancelable),r.detail=i.detail):r.initEvent(t,!1,!1));n.dispatchEvent(r)}function nwt(n,t){return function(){return eg(this,n,t)}}function twt(n,t){return function(){return eg(this,n,t.apply(this,arguments))}}function ct(n,t){this._groups=n;this._parents=t}function og(){return new ct([[document.documentElement]],cb)}function sg(){return new av}function av(){this._="@"+(++ioi).toString(36)}function vv(){r.stopImmediatePropagation()}function hh(n,t){var i=n.document.documentElement,r=gt(n).on("dragstart.drag",null);t&&(r.on("click.drag",hf,!0),setTimeout(function(){r.on("click.drag",null)},0));"onselectstart"in i?r.on("selectstart.drag",null):(i.style.MozUserSelect=i.__noselect,delete i.__noselect)}function yv(n,t,i,r,u,f,e,o,s,h){this.target=n;this.type=t;this.subject=i;this.identifier=r;this.active=u;this.x=f;this.y=e;this.dx=o;this.dy=s;this._=h}function iwt(){return!r.ctrlKey&&!r.button}function rwt(){return this.parentNode}function uwt(n){return null==n?{x:r.x,y:r.y}:n}function fwt(){return navigator.maxTouchPoints||"ontouchstart"in this}function tf(){return pu||(wft(ewt),pu=ts.now()+ol)}function ewt(){pu=0}function ke(){this._call=this._time=this._next=null}function ch(n,t,i){var r=new ke;return r.restart(n,t,i),r}function hg(){tf();++cf;for(var t,n=fl;n;)(t=pu-n._time)>=0&&n._call.call(null,t),n=n._next;--cf}function cg(){pu=(el=ts.now())+ol;cf=go=0;try{hg()}finally{cf=0;swt();pu=0}}function owt(){var n=ts.now(),t=n-el;t>pft&&(ol-=t,el=n)}function swt(){for(var t,i,n=fl,r=1/0;n;)n._call?(r>n._time&&(r=n._time),t=n,n=n._next):(i=n._next,n._next=null,n=t?t._next=i:fl=i);ko=t;pv(r)}function pv(n){cf||(go&&(go=clearTimeout(go)),n-pu>24?(n<1/0&&(go=setTimeout(cg,n-ts.now()-ol)),ns&&(ns=clearInterval(ns))):(ns||(el=ts.now(),ns=setInterval(owt,pft)),cf=1,wft(cg)))}function wv(n,t){var i=ei(n,t);if(i.state>bft)throw new Error("too late; already scheduled");return i}function fr(n,t){var i=ei(n,t);if(i.state>sl)throw new Error("too late; already running");return i}function ei(n,t){var i=n.__transition;if(!i||!(i=i[t]))throw new Error("transition not found");return i}function hwt(n,t,i){function s(n){i.state=vb;i.timer.restart(f,i.delay,i.time);i.delay<=n&&f(n-i.delay)}function f(s){var c,l,a,h;if(i.state!==vb)return e();for(c in r)if(h=r[c],h.name===i.name){if(h.state===sl)return ab(f);h.state===kft?(h.state=hl,h.timer.stop(),h.on.call("interrupt",n,n.__data__,h.index,h.group),delete r[c]):+c<t&&(h.state=hl,h.timer.stop(),h.on.call("cancel",n,n.__data__,h.index,h.group),delete r[c])}if(ab(function(){i.state===sl&&(i.state=kft,i.timer.restart(o,i.delay,i.time),o(s))}),i.state=yb,i.on.call("start",n,n.__data__,i.index,i.group),i.state===yb){for(i.state=sl,u=new Array(a=i.tween.length),c=0,l=-1;c<a;++c)(h=i.tween[c].value.call(n,n.__data__,i.index,i.group))&&(u[++l]=h);u.length=l+1}}function o(t){for(var f=t<i.duration?i.ease.call(null,t/i.duration):(i.timer.restart(e),i.state=pb,1),r=-1,o=u.length;++r<o;)u[r].call(n,f);i.state===pb&&(i.on.call("end",n,n.__data__,i.index,i.group),e())}function e(){i.state=hl;i.timer.stop();delete r[t];for(var u in r)return;delete n.__transition}var u,r=n.__transition;r[t]=i;i.timer=ch(s,0,i.time)}function cwt(n,t){var r,i;return function(){var f=fr(this,n),e=f.tween,u,o;if(e!==r)for(i=r=e,u=0,o=i.length;u<o;++u)if(i[u].name===t){i=i.slice();i.splice(u,1);break}f.tween=i}}function lwt(n,t,i){var u,r;if("function"!=typeof i)throw new Error;return function(){var e=fr(this,n),o=e.tween;if(o!==u){r=(u=o).slice();for(var s={name:t,value:i},f=0,h=r.length;f<h;++f)if(r[f].name===t){r[f]=s;break}f===h&&r.push(s)}e.tween=r}}function bv(n,t,i){var r=n._id;return n.each(function(){var n=fr(this,r);(n.value||(n.value={}))[t]=i.apply(this,arguments)}),function(n){return ei(n,r).value[t]}}function de(n,t){var r=Object.create(n.prototype),i;for(i in t)r[i]=t[i];return r}function yr(){}function lg(){return this.rgb().formatHex()}function awt(){return bg(this).formatHsl()}function ag(){return this.rgb().formatRgb()}function ge(n){var t,i;return n=(n+"").trim().toLowerCase(),(t=loi.exec(n))?(i=t[1].length,t=parseInt(t[1],16),6===i?vg(t):3===i?new ut(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===i?lh(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===i?lh(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=aoi.exec(n))?new ut(t[1],t[2],t[3],1):(t=voi.exec(n))?new ut(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=yoi.exec(n))?lh(t[1],t[2],t[3],t[4]):(t=poi.exec(n))?lh(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=woi.exec(n))?wg(t[1],t[2]/100,t[3]/100,1):(t=boi.exec(n))?wg(t[1],t[2]/100,t[3]/100,t[4]):dft.hasOwnProperty(n)?vg(dft[n]):"transparent"===n?new ut(NaN,NaN,NaN,0):null}function vg(n){return new ut(n>>16&255,n>>8&255,255&n,1)}function lh(n,t,i,r){return r<=0&&(n=t=i=NaN),new ut(n,t,i,r)}function kv(n){return n instanceof yr||(n=ge(n)),n?(n=n.rgb(),new ut(n.r,n.g,n.b,n.opacity)):new ut}function vwt(n,t,i,r){return 1===arguments.length?kv(n):new ut(n,t,i,null==r?1:r)}function ut(n,t,i,r){this.r=+n;this.g=+t;this.b=+i;this.opacity=+r}function yg(){return"#"+dv(this.r)+dv(this.g)+dv(this.b)}function pg(){var n=this.opacity;return n=isNaN(n)?1:Math.max(0,Math.min(1,n)),(1===n?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===n?")":", "+n+")")}function dv(n){return n=Math.max(0,Math.min(255,Math.round(n)||0)),(n<16?"0":"")+n.toString(16)}function wg(n,t,i,r){return r<=0?n=t=i=NaN:i<=0||i>=1?n=t=NaN:t<=0&&(n=NaN),new li(n,t,i,r)}function bg(n){if(n instanceof li)return new li(n.h,n.s,n.l,n.opacity);if(n instanceof yr||(n=ge(n)),!n)return new li;if(n instanceof li)return n;n=n.rgb();var u=n.r/255,i=n.g/255,f=n.b/255,e=Math.min(u,i,f),r=Math.max(u,i,f),o=NaN,t=r-e,s=(r+e)/2;return t?(o=u===r?(i-f)/t+6*(i<f):i===r?(f-u)/t+2:(u-i)/t+4,t/=s<.5?r+e:2-r-e,o*=60):t=s>0&&s<1?0:o,new li(o,t,s,n.opacity)}function ywt(n,t,i,r){return 1===arguments.length?bg(n):new li(n,t,i,null==r?1:r)}function li(n,t,i,r){this.h=+n;this.s=+t;this.l=+i;this.opacity=+r}function gv(n,t,i){return 255*(n<60?t+(i-t)*n/60:n<180?i:n<240?t+(i-t)*(240-n)/60:t)}function kg(n){if(n instanceof ai)return new ai(n.l,n.a,n.b,n.opacity);if(n instanceof er)return dg(n);n instanceof ut||(n=kv(n));var f,e,i=ry(n.r),t=ry(n.g),r=ry(n.b),u=ny((.2225045*i+.7168786*t+.0606169*r)/iet);return i===t&&t===r?f=e=u:(f=ny((.4360747*i+.3850649*t+.1430804*r)/tet),e=ny((.0139322*i+.0971045*t+.7141733*r)/ret)),new ai(116*u-16,500*(f-u),200*(u-e),n.opacity)}function pwt(n,t,i,r){return 1===arguments.length?kg(n):new ai(n,t,i,null==r?1:r)}function ai(n,t,i,r){this.l=+n;this.a=+t;this.b=+i;this.opacity=+r}function ny(n){return n>koi?Math.pow(n,1/3):n/fet+uet}function ty(n){return n>vf?n*n*n:fet*(n-uet)}function iy(n){return 255*(n<=.0031308?12.92*n:1.055*Math.pow(n,1/2.4)-.055)}function ry(n){return(n/=255)<=.04045?n/12.92:Math.pow((n+.055)/1.055,2.4)}function wwt(n){if(n instanceof er)return new er(n.h,n.c,n.l,n.opacity);if(n instanceof ai||(n=kg(n)),0===n.a&&0===n.b)return new er(NaN,0<n.l&&n.l<100?0:NaN,n.l,n.opacity);var t=Math.atan2(n.b,n.a)*net;return new er(t<0?t+360:t,Math.sqrt(n.a*n.a+n.b*n.b),n.l,n.opacity)}function bwt(n,t,i,r){return 1===arguments.length?wwt(n):new er(n,t,i,null==r?1:r)}function er(n,t,i,r){this.h=+n;this.c=+t;this.l=+i;this.opacity=+r}function dg(n){if(isNaN(n.h))return new ai(n.l,0,0,n.opacity);var t=n.h*gft;return new ai(n.l,Math.cos(t)*n.c,Math.sin(t)*n.c,n.opacity)}function kwt(n){if(n instanceof su)return new su(n.h,n.s,n.l,n.opacity);n instanceof ut||(n=kv(n));var s=n.r/255,f=n.g/255,e=n.b/255,t=(set*e+eet*s-oet*f)/(set+eet-oet),i=e-t,r=(rs*(f-t)-wb*i)/ll,o=Math.sqrt(r*r+i*i)/(rs*t*(1-t)),u=o?Math.atan2(r,i)*net-120:NaN;return new su(u<0?u+360:u,o,t,n.opacity)}function dwt(n,t,i,r){return 1===arguments.length?kwt(n):new su(n,t,i,null==r?1:r)}function su(n,t,i,r){this.h=+n;this.s=+t;this.l=+i;this.opacity=+r}function gwt(n){return function(){this.removeAttribute(n)}}function nbt(n){return function(){this.removeAttributeNS(n.space,n.local)}}function tbt(n,t,i){var r,u,f=i+"";return function(){var e=this.getAttribute(n);return e===f?null:e===r?u:u=t(r=e,i)}}function ibt(n,t,i){var r,u,f=i+"";return function(){var e=this.getAttributeNS(n.space,n.local);return e===f?null:e===r?u:u=t(r=e,i)}}function rbt(n,t,i){var r,u,f;return function(){var e,o,s=i(this);return null==s?void this.removeAttribute(n):(e=this.getAttribute(n),o=s+"",e===o?null:e===r&&o===u?f:(u=o,f=t(r=e,s)))}}function ubt(n,t,i){var r,u,f;return function(){var e,o,s=i(this);return null==s?void this.removeAttributeNS(n.space,n.local):(e=this.getAttributeNS(n.space,n.local),o=s+"",e===o?null:e===r&&o===u?f:(u=o,f=t(r=e,s)))}}function fbt(n,t){return function(i){this.setAttribute(n,t.call(this,i))}}function ebt(n,t){return function(i){this.setAttributeNS(n.space,n.local,t.call(this,i))}}function obt(n,t){function i(){var i=t.apply(this,arguments);return i!==u&&(r=(u=i)&&ebt(n,i)),r}var r,u;return i._value=t,i}function sbt(n,t){function i(){var i=t.apply(this,arguments);return i!==u&&(r=(u=i)&&fbt(n,i)),r}var r,u;return i._value=t,i}function hbt(n,t){return function(){wv(this,n).delay=+t.apply(this,arguments)}}function cbt(n,t){return t=+t,function(){wv(this,n).delay=t}}function lbt(n,t){return function(){fr(this,n).duration=+t.apply(this,arguments)}}function abt(n,t){return t=+t,function(){fr(this,n).duration=t}}function vbt(n,t){if("function"!=typeof t)throw new Error;return function(){fr(this,n).ease=t}}function ybt(n){return(n+"").trim().split(/^|\s+/).every(function(n){var t=n.indexOf(".");return t>=0&&(n=n.slice(0,t)),!n||"start"===n})}function pbt(n,t,i){var r,u,f=ybt(t)?wv:fr;return function(){var e=f(this,n),o=e.on;o!==r&&(u=(r=o).copy()).on(t,i);e.on=u}}function wbt(n){return function(){var t=this.parentNode,i;for(i in this.__transition)if(+i!==n)return;t&&t.removeChild(this)}}function bbt(n,t){var i,r,u;return function(){var f=ou(this,n),e=(this.style.removeProperty(n),ou(this,n));return f===e?null:f===i&&e===r?u:u=t(i=f,r=e)}}function gg(n){return function(){this.style.removeProperty(n)}}function kbt(n,t,i){var r,u,f=i+"";return function(){var e=ou(this,n);return e===f?null:e===r?u:u=t(r=e,i)}}function dbt(n,t,i){var r,u,f;return function(){var s=ou(this,n),e=i(this),o=e+"";return null==e&&(this.style.removeProperty(n),o=e=ou(this,n)),s===o?null:s===r&&o===u?f:(u=o,f=t(r=s,e))}}function gbt(n,t){var i,r,u,f,e="style."+t,o="end."+e;return function(){var s=fr(this,n),h=s.on,c=null==s.value[e]?f||(f=gg(t)):void 0;h===i&&u===c||(r=(i=h).copy()).on(o,u=c);s.on=r}}function nkt(n,t,i){return function(r){this.style.setProperty(n,t.call(this,r),i)}}function tkt(n,t,i){function r(){var r=t.apply(this,arguments);return r!==f&&(u=(f=r)&&nkt(n,r,i)),u}var u,f;return r._value=t,r}function ikt(n){return function(){this.textContent=n}}function rkt(n){return function(){var t=n(this);this.textContent=null==t?"":t}}function ukt(n){return function(t){this.textContent=n.call(this,t)}}function fkt(n){function t(){var t=n.apply(this,arguments);return t!==r&&(i=(r=t)&&ukt(t)),i}var i,r;return t._value=n,t}function vi(n,t,i,r){this._groups=n;this._parents=t;this._name=i;this._id=r}function nn(n){return sf().transition(n)}function tn(){return++bsi}function ekt(n){return+n}function okt(n){return n*n}function skt(n){return n*(2-n)}function rn(n){return((n*=2)<=1?n*n:--n*(2-n)+1)/2}function hkt(n){return n*n*n}function ckt(n){return--n*n*n+1}function uy(n){return((n*=2)<=1?n*n*n:(n-=2)*n*n+2)/2}function lkt(n){return 1==+n?1:1-Math.cos(n*vet)}function akt(n){return Math.sin(n*vet)}function un(n){return(1-Math.cos(aet*n))/2}function pr(n){return 1.0009775171065494*(Math.pow(2,-10*n)-.0009765625)}function vkt(n){return pr(1-+n)}function ykt(n){return 1-pr(n)}function fn(n){return((n*=2)<=1?pr(1-n):2-pr(n-1))/2}function pkt(n){return 1-Math.sqrt(1-n*n)}function wkt(n){return Math.sqrt(1- --n*n)}function en(n){return((n*=2)<=1?1-Math.sqrt(1-n*n):Math.sqrt(1-(n-=2)*n)+1)/2}function bkt(n){return 1-no(1-n)}function no(n){return(n=+n)<bb?al*n*n:n<nhi?al*(n-=gsi)*n+thi:n<rhi?al*(n-=ihi)*n+uhi:al*(n-=fhi)*n+ehi}function kkt(n){return((n*=2)<=1?1-no(1-n):no(n-1)+1)/2}function dkt(n,t){for(var i;!(i=n.__transition)||!(i=i[t]);)if(!(n=n.parentNode))return kb.time=tf(),kb;return i}function on(){r.stopImmediatePropagation()}function sn(n){return[+n[0],+n[1]]}function fy(n){return[sn(n[0]),sn(n[1])]}function gkt(n){return function(t){return bo(t,r.touches,n)}}function to(n){return{type:n}}function ndt(){return!r.ctrlKey&&!r.button}function tdt(){var n=this.ownerSVGElement||this;return n.hasAttribute("viewBox")?(n=n.viewBox.baseVal,[[n.x,n.y],[n.x+n.width,n.y+n.height]]):[[0,0],[n.width.baseVal.value,n.height.baseVal.value]]}function idt(){return navigator.maxTouchPoints||"ontouchstart"in this}function ey(n){for(;!n.__brush;)if(!(n=n.parentNode))return;return n.__brush}function rdt(n){return n[0][0]===n[1][0]||n[0][1]===n[1][1]}function udt(n){var t=n.__brush;return t?t.dim.output(t.selection):null}function fdt(){return oy(vl)}function edt(){return oy(yl)}function oy(n){function t(t){var r=t.property("__brush",b).selectAll(".overlay").data([to("overlay")]),i;r.enter().append("rect").attr("class","overlay").attr("pointer-events","all").attr("cursor",hr.overlay).merge(r).each(function(){var n=ey(this).extent;gt(this).attr("x",n[0][0]).attr("y",n[0][1]).attr("width",n[1][0]-n[0][0]).attr("height",n[1][1]-n[0][1])});t.selectAll(".selection").data([to("selection")]).enter().append("rect").attr("class","selection").attr("cursor",hr.selection).attr("fill","#777").attr("fill-opacity",.3).attr("stroke","#fff").attr("shape-rendering","crispEdges");i=t.selectAll(".handle").data(n.handles,function(n){return n.type});i.exit().remove();i.enter().append("rect").attr("class",function(n){return"handle handle--"+n.type}).attr("cursor",function(n){return hr[n.type]});t.each(f).attr("fill","none").attr("pointer-events","all").on("mousedown.brush",y).filter(a).on("touchstart.brush",y).on("touchmove.brush",p).on("touchend.brush touchcancel.brush",w).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function f(){var t=gt(this),n=ey(this).selection;n?(t.selectAll(".selection").style("display",null).attr("x",n[0][0]).attr("y",n[0][1]).attr("width",n[1][0]-n[0][0]).attr("height",n[1][1]-n[0][1]),t.selectAll(".handle").style("display",null).attr("x",function(t){return"e"===t.type[t.type.length-1]?n[1][0]-i/2:n[0][0]-i/2}).attr("y",function(t){return"s"===t.type[0]?n[1][1]-i/2:n[0][1]-i/2}).attr("width",function(t){return"n"===t.type||"s"===t.type?n[1][0]-n[0][0]+i:i}).attr("height",function(t){return"e"===t.type||"w"===t.type?n[1][1]-n[0][1]+i:i})):t.selectAll(".selection,.handle").style("display","none").attr("x",null).attr("y",null).attr("width",null).attr("height",null)}function u(n,t,i){var r=n.__brush.emitter;return!r||i&&r.clean?new v(n,t,i):r}function v(n,t,i){this.that=n;this.args=t;this.state=n.__brush;this.active=0;this.clean=i}function y(){function dt(){var n=ti(tt);!pt||at||vt||(Math.abs(n[0]-ct[0])>Math.abs(n[1]-ct[1])?vt=!0:at=!0);ct=n;wt=!0;gb();rt()}function rt(){var n;switch(s=ct[0]-ht[0],h=ct[1]-ht[1],nt){case nk:case wet:t&&(s=Math.max(ut-l,Math.min(et-v,s)),w=l+s,k=v+s);i&&(h=Math.max(ft-a,Math.min(ot-y,h)),b=a+h,d=y+h);break;case wf:t<0?(s=Math.max(ut-l,Math.min(et-l,s)),w=l+s,k=v):t>0&&(s=Math.max(ut-v,Math.min(et-v,s)),w=l,k=v+s);i<0?(h=Math.max(ft-a,Math.min(ot-a,h)),b=a+h,d=y):i>0&&(h=Math.max(ft-y,Math.min(ot-y,h)),b=a,d=y+h);break;case bf:t&&(w=Math.max(ut,Math.min(et,l-s*t)),k=Math.max(ut,Math.min(et,v+s*t)));i&&(b=Math.max(ft,Math.min(ot,a-h*i)),d=Math.max(ft,Math.min(ot,y+h*i)))}k<w&&(t*=-1,n=l,l=v,v=n,n=w,w=k,k=n,g in bet&&st.attr("cursor",hr[g=bet[g]]));d<b&&(i*=-1,n=a,a=y,y=n,n=b,b=d,d=n,g in ket&&st.attr("cursor",hr[g=ket[g]]));it.selection&&(p=it.selection);at&&(w=p[0][0],k=p[1][0]);vt&&(b=p[0][1],d=p[1][1]);p[0][0]===w&&p[0][1]===b&&p[1][0]===k&&p[1][1]===d||(it.selection=[[w,b],[k,d]],f.call(tt),lt.brush())}function ni(){if(on(),r.touches){if(r.touches.length)return;o&&clearTimeout(o);o=setTimeout(function(){o=null},500)}else hh(r.view,wt),kt.on("keydown.brush keyup.brush mousemove.brush mouseup.brush",null);bt.attr("pointer-events","all");st.attr("cursor",hr.overlay);it.selection&&(p=it.selection);rdt(p)&&(it.selection=null,f.call(tt));lt.end()}function ii(){switch(r.keyCode){case 16:pt=t&&i;break;case 18:nt===wf&&(t&&(v=k-s*t,l=w+s*t),i&&(y=d-h*i,a=b+h*i),nt=bf,rt());break;case 32:nt!==wf&&nt!==bf||(t<0?v=k-s:t>0&&(l=w-s),i<0?y=d-h:i>0&&(a=b-h),nt=nk,st.attr("cursor",hr.selection),rt());break;default:return}gb()}function ri(){switch(r.keyCode){case 16:pt&&(at=vt=pt=!1,rt());break;case 18:nt===bf&&(t<0?v=k:t>0&&(l=w),i<0?y=d:i>0&&(a=b),nt=wf,rt());break;case 32:nt===nk&&(r.altKey?(t&&(v=k-s*t,l=w+s*t),i&&(y=d-h*i,a=b+h*i),nt=bf):(t<0?v=k:t>0&&(l=w),i<0?y=d:i>0&&(a=b),nt=wf),st.attr("cursor",hr[g]),rt());break;default:return}gb()}var bt,st,kt;if((!o||r.touches)&&c.apply(this,arguments)){var l,w,a,b,v,k,y,d,wt,at,vt,tt=this,g=r.target.__data__.type,nt="selection"===(e&&r.metaKey?g="overlay":g)?wet:e&&r.altKey?bf:wf,t=n===yl?null:whi[g],i=n===vl?null:bhi[g],it=ey(tt),yt=it.extent,p=it.selection,ut=yt[0][0],ft=yt[0][1],et=yt[1][0],ot=yt[1][1],s=0,h=0,pt=t&&i&&e&&r.shiftKey,ti=r.touches?gkt(r.changedTouches[0].identifier):yu,ht=ti(tt),ct=ht,lt=u(tt,arguments,!0).beforestart();"overlay"===g?(p&&(wt=!0),it.selection=p=[[l=n===yl?ut:ht[0],a=n===vl?ft:ht[1]],[v=n===yl?et:l,y=n===vl?ot:a]]):(l=p[0][0],a=p[0][1],v=p[1][0],y=p[1][1]);w=l;b=a;k=v;d=y;bt=gt(tt).attr("pointer-events","none");st=bt.selectAll(".overlay").attr("cursor",hr[g]);r.touches?(lt.moved=dt,lt.ended=ni):(kt=gt(r.view).on("mousemove.brush",dt,!0).on("mouseup.brush",ni,!0),e&&kt.on("keydown.brush",ii,!0).on("keyup.brush",ri,!0),rl(r.view));on();wu(tt);f.call(tt);lt.start()}}function p(){u(this,arguments).moved()}function w(){u(this,arguments).ended()}function b(){var t=this.__brush||{selection:null};return t.extent=fy(h.apply(this,arguments)),t.dim=n,t}var o,h=tdt,c=ndt,a=idt,e=!0,s=of("start","brush","end"),i=6;return t.move=function(t,i){t.selection?t.on("start.brush",function(){u(this,arguments).beforestart().start()}).on("interrupt.brush end.brush",function(){u(this,arguments).end()}).tween("brush",function(){function o(n){r.selection=1===n&&null===e?null:c(n);f.call(t);h.brush()}var t=this,r=t.__brush,h=u(t,arguments),s=r.selection,e=n.input("function"==typeof i?i.apply(this,arguments):i,r.extent),c=Object(l.a)(s,e);return null!==s&&null!==e?o:o(1)}):t.each(function(){var t=this,r=arguments,e=t.__brush,o=n.input("function"==typeof i?i.apply(t,r):i,e.extent),s=u(t,r).beforestart();wu(t);e.selection=null===o?null:o;f.call(t);s.start().brush().end()})},t.clear=function(n){t.move(n,null)},v.prototype={beforestart:function(){return 1==++this.active&&(this.state.emitter=this,this.starting=!0),this},start:function(){return this.starting?(this.starting=!1,this.emit("start")):this.emit("brush"),this},brush:function(){return this.emit("brush"),this},end:function(){return 0==--this.active&&(delete this.state.emitter,this.emit("end")),this},emit:function(i){be(new yhi(t,i,n.output(this.state.selection)),s.apply,s,[i,this.that,this.args])}},t.extent=function(n){return arguments.length?(h="function"==typeof n?n:db(fy(n)),t):h},t.filter=function(n){return arguments.length?(c="function"==typeof n?n:db(!!n),t):c},t.touchable=function(n){return arguments.length?(a="function"==typeof n?n:db(!!n),t):a},t.handleSize=function(n){return arguments.length?(i=+n,t):i},t.keyModifiers=function(n){return arguments.length?(e=!!n,t):e},t.on=function(){var n=s.on.apply(s,arguments);return n===s?t:n},t}function odt(n){return function(t,i){return n(t.source.value+t.target.value,i.source.value+i.target.value)}}function sy(){this._x0=this._y0=this._x1=this._y1=null;this._=""}function hn(){return new sy}function sdt(n){return n.source}function hdt(n){return n.target}function cdt(n){return n.radius}function ldt(n){return n.startAngle}function adt(n){return n.endAngle}function io(n,t){var r=Object.create(n.prototype),i;for(i in t)r[i]=t[i];return r}function wr(){}function cn(){return this.rgb().formatHex()}function vdt(){return bn(this).formatHsl()}function ln(){return this.rgb().formatRgb()}function ah(n){var t,i;return n=(n+"").trim().toLowerCase(),(t=ici.exec(n))?(i=t[1].length,t=parseInt(t[1],16),6===i?an(t):3===i?new ft(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===i?vh(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===i?vh(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=rci.exec(n))?new ft(t[1],t[2],t[3],1):(t=uci.exec(n))?new ft(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=fci.exec(n))?vh(t[1],t[2],t[3],t[4]):(t=eci.exec(n))?vh(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=oci.exec(n))?wn(t[1],t[2]/100,t[3]/100,1):(t=sci.exec(n))?wn(t[1],t[2]/100,t[3]/100,t[4]):rot.hasOwnProperty(n)?an(rot[n]):"transparent"===n?new ft(NaN,NaN,NaN,0):null}function an(n){return new ft(n>>16&255,n>>8&255,255&n,1)}function vh(n,t,i,r){return r<=0&&(n=t=i=NaN),new ft(n,t,i,r)}function hy(n){return n instanceof wr||(n=ah(n)),n?(n=n.rgb(),new ft(n.r,n.g,n.b,n.opacity)):new ft}function vn(n,t,i,r){return 1===arguments.length?hy(n):new ft(n,t,i,null==r?1:r)}function ft(n,t,i,r){this.r=+n;this.g=+t;this.b=+i;this.opacity=+r}function yn(){return"#"+cy(this.r)+cy(this.g)+cy(this.b)}function pn(){var n=this.opacity;return n=isNaN(n)?1:Math.max(0,Math.min(1,n)),(1===n?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===n?")":", "+n+")")}function cy(n){return n=Math.max(0,Math.min(255,Math.round(n)||0)),(n<16?"0":"")+n.toString(16)}function wn(n,t,i,r){return r<=0?n=t=i=NaN:i<=0||i>=1?n=t=NaN:t<=0&&(n=NaN),new yi(n,t,i,r)}function bn(n){if(n instanceof yi)return new yi(n.h,n.s,n.l,n.opacity);if(n instanceof wr||(n=ah(n)),!n)return new yi;if(n instanceof yi)return n;n=n.rgb();var u=n.r/255,i=n.g/255,f=n.b/255,e=Math.min(u,i,f),r=Math.max(u,i,f),o=NaN,t=r-e,s=(r+e)/2;return t?(o=u===r?(i-f)/t+6*(i<f):i===r?(f-u)/t+2:(u-i)/t+4,t/=s<.5?r+e:2-r-e,o*=60):t=s>0&&s<1?0:o,new yi(o,t,s,n.opacity)}function kn(n,t,i,r){return 1===arguments.length?bn(n):new yi(n,t,i,null==r?1:r)}function yi(n,t,i,r){this.h=+n;this.s=+t;this.l=+i;this.opacity=+r}function ly(n,t,i){return 255*(n<60?t+(i-t)*n/60:n<180?i:n<240?t+(i-t)*(240-n)/60:t)}function dn(n){if(n instanceof oi)return new oi(n.l,n.a,n.b,n.opacity);if(n instanceof pi)return itt(n);n instanceof ft||(n=hy(n));var f,e,i=py(n.r),t=py(n.g),r=py(n.b),u=ay((.2225045*i+.7168786*t+.0606169*r)/oot);return i===t&&t===r?f=e=u:(f=ay((.4360747*i+.3850649*t+.1430804*r)/eot),e=ay((.0139322*i+.0971045*t+.7141733*r)/sot)),new oi(116*u-16,500*(f-u),200*(u-e),n.opacity)}function ydt(n,t){return new oi(n,0,0,null==t?1:t)}function gn(n,t,i,r){return 1===arguments.length?dn(n):new oi(n,t,i,null==r?1:r)}function oi(n,t,i,r){this.l=+n;this.a=+t;this.b=+i;this.opacity=+r}function ay(n){return n>hci?Math.pow(n,1/3):n/cot+hot}function vy(n){return n>gf?n*n*n:cot*(n-hot)}function yy(n){return 255*(n<=.0031308?12.92*n:1.055*Math.pow(n,1/2.4)-.055)}function py(n){return(n/=255)<=.04045?n/12.92:Math.pow((n+.055)/1.055,2.4)}function ntt(n){if(n instanceof pi)return new pi(n.h,n.c,n.l,n.opacity);if(n instanceof oi||(n=dn(n)),0===n.a&&0===n.b)return new pi(NaN,0<n.l&&n.l<100?0:NaN,n.l,n.opacity);var t=Math.atan2(n.b,n.a)*fot;return new pi(t<0?t+360:t,Math.sqrt(n.a*n.a+n.b*n.b),n.l,n.opacity)}function pdt(n,t,i,r){return 1===arguments.length?ntt(n):new pi(i,t,n,null==r?1:r)}function ttt(n,t,i,r){return 1===arguments.length?ntt(n):new pi(n,t,i,null==r?1:r)}function pi(n,t,i,r){this.h=+n;this.c=+t;this.l=+i;this.opacity=+r}function itt(n){if(isNaN(n.h))return new oi(n.l,0,0,n.opacity);var t=n.h*uot;return new oi(n.l,Math.cos(t)*n.c,Math.sin(t)*n.c,n.opacity)}function wdt(n){if(n instanceof hu)return new hu(n.h,n.s,n.l,n.opacity);n instanceof ft||(n=hy(n));var s=n.r/255,f=n.g/255,e=n.b/255,t=(vot*e+lot*s-aot*f)/(vot+lot-aot),i=e-t,r=(fs*(f-t)-uk*i)/wl,o=Math.sqrt(r*r+i*i)/(fs*t*(1-t)),u=o?Math.atan2(r,i)*fot-120:NaN;return new hu(u<0?u+360:u,o,t,n.opacity)}function rtt(n,t,i,r){return 1===arguments.length?wdt(n):new hu(n,t,i,null==r?1:r)}function hu(n,t,i,r){this.h=+n;this.s=+t;this.l=+i;this.opacity=+r}function bdt(n,t){for(var a=t[0],i=t[1],r=-1,u=0,s=n.length,h=s-1;u<s;h=u++){var f=n[u],c=f[0],e=f[1],o=n[h],v=o[0],l=o[1];if(kdt(f,o,t))return 0;e>i!=l>i&&a<(v-c)*(i-e)/(l-e)+c&&(r=-r)}return r}function kdt(n,t,i){var r;return ddt(n,t,i)&&gdt(n[r=+(n[0]===t[0])],i[r],t[r])}function ddt(n,t,i){return(t[0]-n[0])*(i[1]-n[1])==(i[0]-n[0])*(t[1]-n[1])}function gdt(n,t,i){return n<=t&&t<=i||i<=t&&t<=n}function wy(n,t,i){for(var r,o,u=n.width,s=n.height,e=1+(i<<1),f=0;f<s;++f)for(r=0,o=0;r<u+i;++r)r<u&&(o+=n.data[r+f*u]),r>=i&&(r>=e&&(o-=n.data[r-e+f*u]),t.data[r-i+f*u]=o/Math.min(r+1,u-1+e-r,e))}function by(n,t,i){for(var r,o,f=n.width,s=n.height,e=1+(i<<1),u=0;u<f;++u)for(r=0,o=0;r<s+i;++r)r<s&&(o+=n.data[u+r*f]),r>=i&&(r>=e&&(o-=n.data[u+(r-e)*f]),t.data[u+(r-i)*f]=o/Math.min(r+1,s-1+e-r,e))}function ngt(n){return n[0]}function tgt(n){return n[1]}function igt(){return 1}function utt(n){return new Function("d","return {"+n.map(function(n,t){return JSON.stringify(n)+": d["+t+'] || ""'}).join(",")+"}")}function rgt(n,t){var i=utt(n);return function(r,u){return t(i(r),u,n)}}function ftt(n){var t=Object.create(null),i=[];return n.forEach(function(n){for(var r in n)r in t||i.push(t[r]=r)}),i}function dt(n,t){var i=n+"",r=i.length;return r<t?new Array(t-r+1).join(0)+i:i}function ugt(n){return n<0?"-"+dt(-n,6):n>9999?"+"+dt(n,6):dt(n,4)}function fgt(n){var t=n.getUTCHours(),i=n.getUTCMinutes(),r=n.getUTCSeconds(),u=n.getUTCMilliseconds();return isNaN(n)?"Invalid Date":ugt(n.getUTCFullYear(),4)+"-"+dt(n.getUTCMonth()+1,2)+"-"+dt(n.getUTCDate(),2)+(u?"T"+dt(t,2)+":"+dt(i,2)+":"+dt(r,2)+"."+dt(u,3)+"Z":r?"T"+dt(t,2)+":"+dt(i,2)+":"+dt(r,2)+"Z":i||t?"T"+dt(t,2)+":"+dt(i,2)+"Z":"")}function egt(n){var i,u,r,t;for(i in n){if(t=n[i].trim(),t)if("true"===t)t=!0;else if("false"===t)t=!1;else if("NaN"===t)t=NaN;else if(isNaN(u=+t)){if(!(r=t.match(/^([-+]\d{2})?\d{4}(-\d{2}(-\d{2})?)?(T\d{2}:\d{2}(:\d{2}(\.\d{3})?)?(Z|[-+]\d{2}:\d{2})?)?$/)))continue;oli&&r[4]&&!r[7]&&(t=t.replace(/-/g,"/").replace(/T/," "));t=new Date(t)}else t=u;else t=null;n[i]=t}return n}function ogt(n){if(!n.ok)throw new Error(n.status+" "+n.statusText);return n.blob()}function sgt(n){if(!n.ok)throw new Error(n.status+" "+n.statusText);return n.arrayBuffer()}function hgt(n){if(!n.ok)throw new Error(n.status+" "+n.statusText);return n.text()}function ett(n){return function(t,i,r){return 2===arguments.length&&"function"==typeof i&&(r=i,i=void 0),kl(t,i).then(function(t){return n(t,r)})}}function cgt(n,t,i,r){3===arguments.length&&"function"==typeof i&&(r=i,i=void 0);var u=bl(n);return kl(t,i).then(function(n){return u.parse(n,r)})}function lgt(n){if(!n.ok)throw new Error(n.status+" "+n.statusText);if(204!==n.status&&205!==n.status)return n.json()}function ky(n){return function(t,i){return kl(t,i).then(function(t){return(new DOMParser).parseFromString(t,n)})}}function ott(n,t,i,r){if(isNaN(t)||isNaN(i))return n;var u,e,o,w,b,c,l,s,k,f=n._root,h={data:r},a=n._x0,v=n._y0,y=n._x1,p=n._y1;if(!f)return n._root=h,n;for(;f.length;)if((c=t>=(e=(a+y)/2))?a=e:y=e,(l=i>=(o=(v+p)/2))?v=o:p=o,u=f,!(f=f[s=l<<1|c]))return u[s]=h,n;if(w=+n._x.call(null,f.data),b=+n._y.call(null,f.data),t===w&&i===b)return h.next=f,u?u[s]=h:n._root=h,n;do u=u?u[s]=new Array(4):n._root=new Array(4),(c=t>=(e=(a+y)/2))?a=e:y=e,(l=i>=(o=(v+p)/2))?v=o:p=o;while((s=l<<1|c)==(k=(b>=o)<<1|w>=e));return u[k]=f,u[s]=h,n}function agt(n){for(var h,i,r,u=n.length,c=new Array(u),l=new Array(u),f=1/0,e=1/0,o=-1/0,s=-1/0,t=0;t<u;++t)isNaN(i=+this._x.call(null,h=n[t]))||isNaN(r=+this._y.call(null,h))||(c[t]=i,l[t]=r,i<f&&(f=i),i>o&&(o=i),r<e&&(e=r),r>s&&(s=r));if(f>o||e>s)return this;for(this.cover(f,e).cover(o,s),t=0;t<u;++t)ott(this,c[t],l[t],n[t]);return this}function vgt(n){for(var t=0,i=n.length;t<i;++t)this.remove(n[t]);return this}function ygt(n){return n[0]}function pgt(n){return n[1]}function yh(n,t,i){var r=new dy(null==t?ygt:t,null==i?pgt:i,NaN,NaN,NaN,NaN);return null==n?r:r.addAll(n)}function dy(n,t,i,r,u,f){this._x=n;this._y=t;this._x0=i;this._y0=r;this._x1=u;this._y1=f;this._root=void 0}function stt(n){for(var t={data:n.data},i=t;n=n.next;)i=i.next={data:n.data};return t}function wgt(n){return n.x+n.vx}function bgt(n){return n.y+n.vy}function kgt(n){return n.index}function htt(n,t){var i=n.get(t);if(!i)throw new Error("missing: "+t);return i}function dgt(n){return n.x}function ggt(n){return n.y}function ph(){this.reset()}function ctt(n,t,i){var r=n.s=t+i,u=r-t,f=r-u;n.t=t-f+(i-u)}function ltt(n){return n>1?0:n<-1?a:Math.acos(n)}function lt(n){return n>1?tt:n<-1?-tt:Math.asin(n)}function att(n){return(n=u(n/2))*n}function d(){}function wh(n,t){n&&est.hasOwnProperty(n.type)&&est[n.type](n,t)}function gy(n,t,i){var r,u=-1,f=n.length-i;for(t.lineStart();++u<f;)r=n[u],t.point(r[0],r[1],r[2]);t.lineEnd()}function vtt(n,t){var i=-1,r=n.length;for(t.polygonStart();++i<r;)gy(n[i],t,1);t.polygonEnd()}function nnt(){nr.point=int}function tnt(){ytt(dot,got)}function int(n,t){nr.point=ytt;dot=n;got=t;n*=s;t*=s;sk=n;hk=e(t=t/2+oa);ck=u(t)}function ytt(n,t){n*=s;t*=s;t=t/2+oa;var i=n-sk,r=i>=0?1:-1,f=r*i,o=e(t),h=u(t),c=ck*h,l=hk*o+c*e(f),a=c*r*u(f);ca.add(kt(a,l));sk=n;hk=o;ck=h}function bh(n){return[kt(n[1],n[0]),lt(n[2])]}function cu(n){var t=n[0],i=n[1],r=e(i);return[r*e(t),r*u(t),u(i)]}function kh(n,t){return n[0]*t[0]+n[1]*t[1]+n[2]*t[2]}function rf(n,t){return[n[1]*t[2]-n[2]*t[1],n[2]*t[0]-n[0]*t[2],n[0]*t[1]-n[1]*t[0]]}function np(n,t){n[0]+=t[0];n[1]+=t[1];n[2]+=t[2]}function dh(n,t){return[n[0]*t,n[1]*t,n[2]*t]}function gh(n){var t=it(n[0]*n[0]+n[1]*n[1]+n[2]*n[2]);n[0]/=t;n[1]/=t;n[2]/=t}function tp(n,t){tu.push(ar=[g=n,nt=n]);t<ni&&(ni=t);t>ii&&(ii=t)}function ptt(n,t){var h=cu([n*s,t*s]);if(te){var e=rf(te,h),l=[e[1],-e[0],0],i=rf(l,e);gh(i);i=bh(i);var f,c=n-gu,u=c>0?1:-1,r=i[0]*w*u,o=y(c)>180;o^(u*gu<r&&r<u*n)?(f=i[1]*w)>ii&&(ii=f):(r=(r+360)%360-180,o^(u*gu<r&&r<u*n)?(f=-i[1]*w)<ni&&(ni=f):(t<ni&&(ni=t),t>ii&&(ii=t)));o?n<gu?ti(g,n)>ti(g,nt)&&(nt=n):ti(n,nt)>ti(g,nt)&&(g=n):nt>=g?(n<g&&(g=n),n>nt&&(nt=n)):n>gu?ti(g,n)>ti(g,nt)&&(nt=n):ti(n,nt)>ti(g,nt)&&(g=n)}else tu.push(ar=[g=n,nt=n]);t<ni&&(ni=t);t>ii&&(ii=t);te=h;gu=n}function wtt(){vr.point=ptt}function btt(){ar[0]=g;ar[1]=nt;vr.point=tp;te=null}function ktt(n,t){if(te){var i=n-gu;ss.add(y(i)>180?i+(i>0?360:-360):i)}else nst=n,tst=t;nr.point(n,t);ptt(n,t)}function rnt(){nr.lineStart()}function unt(){ktt(nst,tst);nr.lineEnd();y(ss)>o&&(g=-(nt=180));ar[0]=g;ar[1]=nt;te=null}function ti(n,t){return(t-=n)<0?t+360:t}function fnt(n,t){return n[0]-t[0]}function dtt(n,t){return n[0]<=n[1]?n[0]<=t&&t<=n[1]:t<n[0]||n[1]<t}function ip(n,t){n*=s;t*=s;var i=e(t);ro(i*e(n),i*u(n),u(t))}function ro(n,t,i){++os;gl+=(n-gl)/os;na+=(t-na)/os;ta+=(i-ta)/os}function gtt(){hi.point=ent}function ent(n,t){n*=s;t*=s;var i=e(t);yt=i*e(n);pt=i*u(n);wt=u(t);hi.point=ont;ro(yt,pt,wt)}function ont(n,t){n*=s;t*=s;var h=e(t),r=h*e(n),f=h*u(n),o=u(t),i=kt(it((i=pt*o-wt*f)*i+(i=wt*r-yt*o)*i+(i=yt*f-pt*r)*i),yt*r+pt*f+wt*o);dl+=i;ia+=i*(yt+(yt=r));ra+=i*(pt+(pt=f));ua+=i*(wt+(wt=o));ro(yt,pt,wt)}function nit(){hi.point=ip}function snt(){hi.point=cnt}function hnt(){tit(ist,rst);hi.point=ip}function cnt(n,t){ist=n;rst=t;n*=s;t*=s;hi.point=tit;var i=e(t);yt=i*e(n);pt=i*u(n);wt=u(t);ro(yt,pt,wt)}function tit(n,t){n*=s;t*=s;var y=e(t),r=y*e(n),f=y*u(n),o=u(t),h=pt*o-wt*f,c=wt*r-yt*o,l=yt*f-pt*r,a=it(h*h+c*c+l*l),i=lt(a),v=a&&-i/a;lk+=v*h;ak+=v*c;vk+=v*l;dl+=i;ia+=i*(yt+(yt=r));ra+=i*(pt+(pt=f));ua+=i*(wt+(wt=o));ro(yt,pt,wt)}function rp(n,t){return[y(n)>a?n+Math.round(-n/bt)*bt:n,t]}function up(n,t,i){return(n%=bt)?t||i?wk(rit(n),uit(t,i)):rit(n):t||i?uit(t,i):rp}function iit(n){return function(t,i){return t+=n,[t>a?t-bt:t<-a?t+bt:t,i]}}function rit(n){var t=iit(n);return t.invert=iit(-n),t}function uit(n,t){function s(n,t){var s=e(t),h=e(n)*s,c=u(n)*s,l=u(t),a=l*i+h*r;return[kt(c*f-a*o,h*i-l*r),lt(a*f+c*o)]}var i=e(n),r=u(n),f=e(t),o=u(t);return s.invert=function(n,t){var s=e(t),h=e(n)*s,c=u(n)*s,l=u(t),a=l*f-c*o;return[kt(c*f+l*o,h*i+a*r),lt(a*i-h*r)]},s}function fit(n,t,i,r,f,o){var c,s;if(i){var h=e(t),l=u(t),a=r*i;for(null==f?(f=t+r*bt,o=t-a/2):(f=eit(h,f),o=eit(h,o),(r>0?f<o:f>o)&&(f+=r*bt)),s=f;r>0?s>o:s<o;s-=a)c=bh([h,-l*e(s),-l*u(s)]),n.point(c[0],c[1])}}function eit(n,t){t=cu(t);t[0]-=n;gh(t);var i=ltt(-t[1]);return((-t[2]<0?-i:i)+bt-o)%bt}function nc(n,t,i,r){this.x=n;this.z=t;this.o=i;this.e=r;this.v=!1;this.n=this.p=null}function oit(n){if(r=n.length){for(var r,t,u=0,i=n[0];++u<r;)i.n=t=n[u],t.p=i,i=t;i.n=t=n[0];t.p=i}}function fp(n){return y(n[0])<=a?n[0]:ui(n[0])*((y(n[0])+a)%bt-a)}function lnt(n){return n.length>1}function ant(n,t){return((n=n.x)[0]<0?n[1]-tt-o:tt-n[1])-((t=t.x)[0]<0?t[1]-tt-o:tt-t[1])}function vnt(n){var u,i=NaN,t=NaN,r=NaN;return{lineStart:function(){n.lineStart();u=1},point:function(f,e){var s=f>0?a:-a,h=y(f-i);y(h-a)<o?(n.point(i,t=(t+e)/2>0?tt:-tt),n.point(r,t),n.lineEnd(),n.lineStart(),n.point(s,t),n.point(f,t),u=0):r!==s&&h>=a&&(y(i-r)<o&&(i-=r*o),y(f-s)<o&&(f-=s*o),t=ynt(i,t,f,e),n.point(r,t),n.lineEnd(),n.lineStart(),n.point(s,t),u=0);n.point(i=f,t=e);r=s},lineEnd:function(){n.lineEnd();i=t=NaN},clean:function(){return 2-u}}}function ynt(n,t,i,r){var f,s,h=u(n-i);return y(h)>o?ie((u(t)*(s=e(r))*u(i)-u(r)*(f=e(t))*u(n))/(f*s*h)):(t+r)/2}function pnt(n,t,i,r){var u,f;null==n?(u=i*tt,r.point(-a,u),r.point(0,u),r.point(a,u),r.point(a,0),r.point(a,-u),r.point(0,-u),r.point(-a,-u),r.point(-a,0),r.point(-a,u)):y(n[0]-t[0])>o?(f=n[0]<t[0]?a:-a,u=i*f/2,r.point(-f,u),r.point(0,u),r.point(f,u)):r.point(t[0],t[1])}function tc(n,t,i,r){function f(u,f){return n<=u&&u<=i&&t<=f&&f<=r}function e(f,e,o,h){var c=0,l=0;if(null==f||(c=u(f,o))!==(l=u(e,o))||s(f,e)<0^o>0){do h.point(0===c||3===c?n:i,c>1?r:t);while((c=(c+o+4)%4)!==l)}else h.point(e[0],e[1])}function u(r,u){return y(r[0]-n)<o?u>0?0:3:y(r[0]-i)<o?u>0?2:1:y(r[1]-t)<o?u>0?1:0:u>0?3:2}function c(n,t){return s(n.x,t.x)}function s(n,t){var i=u(n,1),r=u(t,1);return i!==r?i-r:0===i?t[1]-n[1]:1===i?n[0]-t[0]:2===i?n[1]-t[1]:t[0]-n[0]}return function(u){function g(n,t){f(n,t)&&o.point(n,t)}function ut(){for(var o=0,s=0,a=l.length;s<a;++s)for(var u,t,h=l[s],c=1,v=h.length,f=h[0],e=f[0],i=f[1];c<v;++c)u=e,t=i,f=h[c],e=f[0],i=f[1],t<=r?i>r&&(e-u)*(r-t)>(i-t)*(n-u)&&++o:i<=r&&(e-u)*(r-t)<(i-t)*(n-u)&&--o;return o}function ft(){o=k;s=[];l=[];p=!0}function et(){var n=ut(),t=p&&n,i=(s=Object(h.n)(s)).length;(t||i)&&(u.polygonStart(),t&&(u.lineStart(),e(null,null,1,u),u.lineEnd()),i&&vst(s,c,n,e,u),u.polygonEnd());o=u;s=l=w=null}function ot(){d.point=nt;l&&l.push(w=[]);b=!0;a=!1;v=y=NaN}function st(){s&&(nt(tt,it),rt&&a&&k.rejoin(),s.push(k.result()));d.point=g;a&&o.lineEnd()}function nt(u,e){var s=f(u,e),h,c;(l&&w.push([u,e]),b)?(tt=u,it=e,rt=s,b=!1,s&&(o.lineStart(),o.point(u,e))):s&&a?o.point(u,e):(h=[v=Math.max(pa,Math.min(hs,v)),y=Math.max(pa,Math.min(hs,y))],c=[u=Math.max(pa,Math.min(hs,u)),e=Math.max(pa,Math.min(hs,e))],tvi(h,c,n,t,i,r)?(a||(o.lineStart(),o.point(h[0],h[1])),o.point(c[0],c[1]),s||o.lineEnd(),p=!1):s&&(o.lineStart(),o.point(u,e),p=!1));v=u;y=e;a=s}var s,l,w,tt,it,rt,v,y,a,b,p,o=u,k=ast(),d={point:g,lineStart:ot,lineEnd:st,polygonStart:ft,polygonEnd:et};return d}}function wnt(){ue.point=knt;ue.lineEnd=bnt}function bnt(){ue.point=ue.lineEnd=d}function knt(n,t){n*=s;t*=s;bk=n;aa=u(t);va=e(t);ue.point=dnt}function dnt(n,t){n*=s;t*=s;var r=u(t),i=e(t),f=y(n-bk),o=e(f),l=u(f),h=i*l,c=va*r-aa*i*o,a=aa*r+va*i*o;td.add(kt(it(h*h+c*c),a));bk=n;aa=r;va=i}function ic(n,t){return!(!n||!dst.hasOwnProperty(n.type))&&dst[n.type](n,t)}function sit(n,t){return 0===wa(n,t)}function hit(n,t){for(var f,u,i,r=0,e=n.length;r<e;r++){if(0===(u=wa(n[r],t))||r>0&&(i=wa(n[r],n[r-1]))>0&&f<=i&&u<=i&&(f+u-i)*(1-Math.pow((f-u)/i,2))<ea*i)return!0;f=u}return!1}function cit(n,t){return!!yst(n.map(gnt),lit(t))}function gnt(n){return n=n.map(lit),n.pop(),n}function lit(n){return[n[0]*s,n[1]*s]}function ait(n,t,i){var r=Object(h.s)(n,t-o,i).concat(t);return function(n){return r.map(function(t){return[n,t]})}}function vit(n,t,i){var r=Object(h.s)(n,t-o,i).concat(t);return function(n){return r.map(function(t){return[t,n]})}}function yit(){function n(){return{type:"MultiLineString",coordinates:d()}}function d(){return Object(h.s)(sa(i/a)*a,t,a).map(b).concat(Object(h.s)(sa(u/v)*v,r,v).map(k)).concat(Object(h.s)(sa(e/l)*l,f,l).filter(function(n){return y(n%a)>o}).map(g)).concat(Object(h.s)(sa(c/w)*w,s,w).filter(function(n){return y(n%v)>o}).map(nt))}var f,e,t,i,s,c,r,u,g,nt,b,k,l=10,w=l,a=90,v=360,p=2.5;return n.lines=function(){return d().map(function(n){return{type:"LineString",coordinates:n}})},n.outline=function(){return{type:"Polygon",coordinates:[b(i).concat(k(r).slice(1),b(t).reverse().slice(1),k(u).reverse().slice(1))]}},n.extent=function(t){return arguments.length?n.extentMajor(t).extentMinor(t):n.extentMinor()},n.extentMajor=function(f){return arguments.length?(i=+f[0][0],t=+f[1][0],u=+f[0][1],r=+f[1][1],i>t&&(f=i,i=t,t=f),u>r&&(f=u,u=r,r=f),n.precision(p)):[[i,u],[t,r]]},n.extentMinor=function(t){return arguments.length?(e=+t[0][0],f=+t[1][0],c=+t[0][1],s=+t[1][1],e>f&&(t=e,e=f,f=t),c>s&&(t=c,c=s,s=t),n.precision(p)):[[e,c],[f,s]]},n.step=function(t){return arguments.length?n.stepMajor(t).stepMinor(t):n.stepMinor()},n.stepMajor=function(t){return arguments.length?(a=+t[0],v=+t[1],n):[a,v]},n.stepMinor=function(t){return arguments.length?(l=+t[0],w=+t[1],n):[l,w]},n.precision=function(o){return arguments.length?(p=+o,g=ait(c,s,90),nt=vit(e,f,p),b=ait(u,r,90),k=vit(i,t,p),n):p},n.extentMajor([[-180,-90+o],[180,90-o]]).extentMinor([[-180,-80-o],[180,80+o]])}function nti(){return yit()()}function tti(){iu.point=iti}function iti(n,t){iu.point=pit;ost=kk=n;sst=dk=t}function pit(n,t){ud.add(dk*n-kk*t);kk=n;dk=t}function rti(){pit(ost,sst)}function uti(n,t){n<fe&&(fe=n);n>ls&&(ls=n);t<ba&&(ba=t);t>ka&&(ka=t)}function lu(n,t){fd+=n;ed+=t;++as}function wit(){ci.point=fti}function fti(n,t){ci.point=eti;lu(tr=n,ir=t)}function eti(n,t){var r=n-tr,u=t-ir,i=it(r*r+u*u);ga+=i*(tr+n)/2;nv+=i*(ir+t)/2;ee+=i;lu(tr=n,ir=t)}function bit(){ci.point=lu}function oti(){ci.point=hti}function sti(){kit(hst,cst)}function hti(n,t){ci.point=kit;lu(hst=tr=n,cst=ir=t)}function kit(n,t){var r=n-tr,u=t-ir,i=it(r*r+u*u);ga+=i*(tr+n)/2;nv+=i*(ir+t)/2;ee+=i;i=ir*n-tr*t;od+=i*(tr+n);sd+=i*(ir+t);vs+=3*i;lu(tr=n,ir=t)}function dit(n){this._context=n}function cti(n,t){tv.point=git;tht=ys=n;iht=ps=t}function git(n,t){ys-=n;ps-=t;cd.add(it(ys*ys+ps*ps));ys=n;ps=t}function nrt(){this._string=[]}function trt(n){return"m0,"+n+"a"+n+","+n+" 0 1,1 0,"+-2*n+"a"+n+","+n+" 0 1,1 0,"+2*n+"z"}function uo(n){return function(t){var i=new ep,r;for(r in n)i[r]=n[r];return i.stream=t,i}}function ep(){}function op(n,t,i){var r=n.clipExtent&&n.clipExtent();return n.scale(150).translate([0,0]),null!=r&&n.clipExtent(null),si(i,n.stream(da)),t(da.result()),null!=r&&n.clipExtent(r),n}function rc(n,t,i){return op(n,function(i){var u=t[1][0]-t[0][0],f=t[1][1]-t[0][1],r=Math.min(u/(i[1][0]-i[0][0]),f/(i[1][1]-i[0][1])),e=+t[0][0]+(u-r*(i[1][0]+i[0][0]))/2,o=+t[0][1]+(f-r*(i[1][1]+i[0][1]))/2;n.scale(150*r).translate([e,o])},i)}function sp(n,t,i){return rc(n,[[0,0],t],i)}function hp(n,t,i){return op(n,function(i){var u=+t,r=u/(i[1][0]-i[0][0]),f=(u-r*(i[1][0]+i[0][0]))/2,e=-r*i[0][1];n.scale(150*r).translate([f,e])},i)}function cp(n,t,i){return op(n,function(i){var u=+t,r=u/(i[1][1]-i[0][1]),f=-r*i[0][0],e=(u-r*(i[1][1]+i[0][1]))/2;n.scale(150*r).translate([f,e])},i)}function lti(n){return uo({point:function(t,i){t=n(t,i);this.stream.point(t[0],t[1])}})}function ati(n,t){function i(r,u,f,e,s,h,c,l,a,v,p,w,b,k){var tt=c-r,rt=l-u,et=tt*tt+rt*rt;if(et>4*t&&b--){var g=e+v,nt=s+p,d=h+w,ot=it(g*g+nt*nt+d*d),yt=lt(d/=ot),st=y(y(d)-1)<o||y(f-a)<o?(f+a)/2:kt(nt,g),ht=n(st,yt),ut=ht[0],ft=ht[1],ct=ut-r,at=ft-u,vt=rt*ct-tt*at;(vt*vt/et>t||y((tt*ct+rt*at)/et-.5)>.3||e*v+s*p+h*w<ovi)&&(i(r,u,f,e,s,h,ut,ft,st,g/=ot,nt/=ot,d,b,k),k.point(ut,ft),i(ut,ft,st,g,nt,d,c,l,a,v,p,w,b,k))}}return function(t){function v(i,r){i=n(i,r);t.point(i[0],i[1])}function h(){u=NaN;r.point=c;t.lineStart()}function c(r,h){var c=cu([r,h]),l=n(r,h);i(u,f,a,e,o,s,u=l[0],f=l[1],a=r,e=c[0],o=c[1],s=c[2],eht,t);t.point(u,f)}function l(){r.point=v;t.lineEnd()}function g(){h();r.point=nt;r.lineEnd=tt}function nt(n,t){c(y=n,t);p=u;w=f;b=e;k=o;d=s;r.point=c}function tt(){i(u,f,a,e,o,s,p,w,y,b,k,d,eht,t);r.lineEnd=l;l()}var y,p,w,b,k,d,a,u,f,e,o,s,r={point:v,lineStart:h,lineEnd:l,polygonStart:function(){t.polygonStart();r.lineStart=g},polygonEnd:function(){t.polygonEnd();r.lineStart=h}};return r}}function vti(n){return uo({point:function(t,i){var r=n(t,i);return this.stream.point(r[0],r[1])}})}function yti(n,t,i,r,u){function f(f,e){return f*=r,e*=u,[t+n*f,i-n*e]}return f.invert=function(f,e){return[(f-t)/n*r,(i-e)/n*u]},f}function irt(n,t,i,r,f,o){function c(n,u){return n*=r,u*=f,[l*n-a*u+t,i-a*n-l*u]}var s=e(o),h=u(o),l=s*n,a=h*n,v=s/n,y=h/n,p=(h*i-s*t)/n,w=(h*t+s*i)/n;return c.invert=function(n,t){return[r*(v*n-y*t+p),f*(w-y*n-v*t)]},c}function wi(n){return lp(function(){return n})()}function lp(n){function t(n){return tt(n[0]*s,n[1]*s)}function at(n){return(n=tt.invert(n[0],n[1]))&&[n[0]*w,n[1]*w]}function i(){var n=irt(v,0,0,y,p,u).apply(null,e(et,ot)),t=(u?irt:yti)(v,ut-n[0],ft-n[1],y,p,u);return g=up(st,ht,ct),l=wk(e,t),tt=wk(g,l),nt=oht(l,lt),r()}function r(){return a=rt=null,t}var e,g,o,h,c,nt,l,tt,a,rt,v=150,ut=480,ft=250,et=0,ot=0,st=0,ht=0,ct=0,u=0,y=1,p=1,b=null,k=nd,f=null,d=cs,lt=.5;return t.stream=function(n){return a&&rt===n?a:a=svi(vti(g)(k(nt(d(rt=n)))))},t.preclip=function(n){return arguments.length?(k=n,b=void 0,r()):k},t.postclip=function(n){return arguments.length?(d=n,f=o=h=c=null,r()):d},t.clipAngle=function(n){return arguments.length?(k=+n?wst(b=n*s):(b=null,nd),r()):b*w},t.clipExtent=function(n){return arguments.length?(d=null==n?(f=o=h=c=null,cs):tc(f=+n[0][0],o=+n[0][1],h=+n[1][0],c=+n[1][1]),r()):null==f?null:[[f,o],[h,c]]},t.scale=function(n){return arguments.length?(v=+n,i()):v},t.translate=function(n){return arguments.length?(ut=+n[0],ft=+n[1],i()):[ut,ft]},t.center=function(n){return arguments.length?(et=n[0]%360*s,ot=n[1]%360*s,i()):[et*w,ot*w]},t.rotate=function(n){return arguments.length?(st=n[0]%360*s,ht=n[1]%360*s,ct=n.length>2?n[2]%360*s:0,i()):[st*w,ht*w,ct*w]},t.angle=function(n){return arguments.length?(u=n%360*s,i()):u*w},t.reflectX=function(n){return arguments.length?(y=n?-1:1,i()):y<0},t.reflectY=function(n){return arguments.length?(p=n?-1:1,i()):p<0},t.precision=function(n){return arguments.length?(nt=oht(l,lt=n*n),r()):it(lt)},t.fitExtent=function(n,i){return rc(t,n,i)},t.fitSize=function(n,i){return sp(t,n,i)},t.fitWidth=function(n,i){return hp(t,n,i)},t.fitHeight=function(n,i){return cp(t,n,i)},function(){return e=n.apply(this,arguments),t.invert=e.invert&&at,i()}}function ap(n){var t=0,i=a/3,r=lp(n),u=r(t,i);return u.parallels=function(n){return arguments.length?r(t=n[0]*s,i=n[1]*s):[t*w,i*w]},u}function pti(n){function i(n,i){return[n*t,u(i)/t]}var t=e(n);return i.invert=function(n,i){return[n/t,lt(i*t)]},i}function rrt(n,t){function h(n,t){var f=it(r-2*i*u(t))/i;return[f*u(n*=i),s-f*e(n)]}var f=u(n),i=(f+u(t))/2,r,s;return y(i)<o?pti(n):(r=1+f*(2*i-f),s=it(r)/i,h.invert=function(n,t){var u=s-t,f=kt(n,y(u))*ui(u);return u*i<0&&(f-=a*ui(n)*ui(u)),[f/i,lt((r-(n*n+u*u)*i*i)/(2*i))]},h)}function wti(n){var t=n.length;return{point:function(i,r){for(var u=-1;++u<t;)n[u].point(i,r)},sphere:function(){for(var i=-1;++i<t;)n[i].sphere()},lineStart:function(){for(var i=-1;++i<t;)n[i].lineStart()},lineEnd:function(){for(var i=-1;++i<t;)n[i].lineEnd()},polygonStart:function(){for(var i=-1;++i<t;)n[i].polygonStart()},polygonEnd:function(){for(var i=-1;++i<t;)n[i].polygonEnd()}}}function urt(n){return function(t,i){var o=e(t),r=e(i),f=n(o*r);return[f*r*u(t),f*u(i)]}}function fo(n){return function(t,i){var r=it(t*t+i*i),f=n(r),o=u(f),s=e(f);return[kt(t*o,r*s),lt(r&&i*o/r)]}}function eo(n,t){return[n,ha(pk((tt+t)/2))]}function frt(n){function r(){var r=a*o(),s=t(lst(t.rotate()).invert([0,0]));return c(null==i?[[s[0]-r,s[1]-r],[s[0]+r,s[1]+r]]:n===eo?[[Math.max(s[0]-r,i),u],[Math.min(s[0]+r,f),e]]:[[i,Math.max(s[1]-r,u)],[f,Math.min(s[1]+r,e)]])}var u,f,e,t=wi(n),s=t.center,o=t.scale,h=t.translate,c=t.clipExtent,i=null;return t.scale=function(n){return arguments.length?(o(n),r()):o()},t.translate=function(n){return arguments.length?(h(n),r()):h()},t.center=function(n){return arguments.length?(s(n),r()):s()},t.clipExtent=function(n){return arguments.length?(null==n?i=u=f=e=null:(i=+n[0][0],u=+n[0][1],f=+n[1][0],e=+n[1][1]),r()):null==i?null:[[i,u],[f,e]]},r()}function uc(n){return pk((tt+n)/2)}function ert(n,t){function f(n,t){r>0?t<-tt+o&&(t=-tt+o):t>tt-o&&(t=tt-o);var f=r/yk(uc(t),i);return[f*u(i*n),r-f*e(i*n)]}var s=e(n),i=n===t?u(n):ha(s/e(t))/ha(uc(t)/uc(n)),r=s*yk(uc(n),i)/i;return i?(f.invert=function(n,t){var u=r-t,e=ui(i)*it(n*n+u*u),f=kt(n,y(u))*ui(u);return u*i<0&&(f-=a*ui(n)*ui(u)),[f/i,2*ie(yk(r/e,1/i))-tt]},f):eo}function oo(n,t){return[n,t]}function ort(n,t){function f(n,t){var f=r-t,o=i*n;return[f*u(o),r-f*e(o)]}var s=e(n),i=n===t?u(n):(s-e(t))/(t-n),r=s/i+n;return y(i)<o?oo:(f.invert=function(n,t){var u=r-t,f=kt(n,y(u))*ui(u);return u*i<0&&(f-=a*ui(n)*ui(u)),[f/i,r-ui(i)*it(n*n+u*u)]},f)}function vp(n,t){var r=lt(uv*u(t)),i=r*r,f=i*i*i;return[n*e(r)/(uv*(ws+3*bs*i+f*(7*ks+9*ds*i))),r*(ws+bs*i+f*(ks+ds*i))]}function yp(n,t){var i=e(t),r=e(n)*i;return[i*u(n)/r,u(t)/r]}function pp(n,t){var i=t*t,r=i*i;return[n*(.8707-.131979*i+r*(r*(.003971*i-.001529*r)-.013791)),t*(1.007226+i*(.015085+r*(.028874*i-.044475-.005916*r)))]}function wp(n,t){return[e(t)*u(n),u(t)]}function bp(n,t){var i=e(t),r=1+e(n)*i;return[i*u(n)/r,u(t)/r]}function kp(n,t){return[ha(pk((tt+t)/2)),-n]}function bti(n,t){return n.parent===t.parent?1:2}function kti(n){return n.reduce(dti,0)/n.length}function dti(n,t){return n+t.x}function gti(n){return 1+n.reduce(nii,0)}function nii(n,t){return Math.max(n,t.y)}function tii(n){for(var t;t=n.children;)n=t[0];return n}function iii(n){for(var t;t=n.children;)n=t[t.length-1];return n}function rii(n){var t=0,i=n.children,r=i&&i.length;if(r)for(;--r>=0;)t+=i[r].value;else t=1;n.value=t}function uii(n,t){if(n===t)return n;var i=n.ancestors(),r=t.ancestors(),u=null;for(n=i.pop(),t=r.pop();n===t;)u=n,n=i.pop(),t=r.pop();return u}function dp(n,t){var i,u,f,r,e,o=new uf(n),h=+n.value&&(o.value=n.value),s=[o];for(null==t&&(t=eii);i=s.pop();)if(h&&(i.value=+i.data.value),(f=t(i.data))&&(e=f.length))for(i.children=new Array(e),r=e-1;r>=0;--r)s.push(u=i.children[r]=new uf(f[r])),u.parent=i,u.depth=i.depth+1;return o.eachBefore(srt)}function fii(){return dp(this).eachBefore(oii)}function eii(n){return n.children}function oii(n){n.data=n.data.data}function srt(n){var t=0;do n.height=t;while((n=n.parent)&&n.height<++t)}function uf(n){this.data=n;this.depth=this.height=0;this.parent=null}function sii(n){for(var r,i,t=n.length;t;)i=Math.random()*t--|0,r=n[t],n[t]=n[i],n[i]=r;return n}function hii(n,t){var i,r;if(gp(t,n))return[t];for(i=0;i<n.length;++i)if(fc(t,n[i])&&gp(so(n[i],t),n))return[n[i],t];for(i=0;i<n.length-1;++i)for(r=i+1;r<n.length;++r)if(fc(so(n[i],n[r]),t)&&fc(so(n[i],t),n[r])&&fc(so(n[r],t),n[i])&&gp(crt(n[i],n[r],t),n))return[n[i],n[r],t];throw new Error;}function fc(n,t){var i=n.r-t.r,r=t.x-n.x,u=t.y-n.y;return i<0||i*i<r*r+u*u}function hrt(n,t){var i=n.r-t.r+1e-6,r=t.x-n.x,u=t.y-n.y;return i>0&&i*i>r*r+u*u}function gp(n,t){for(var i=0;i<t.length;++i)if(!hrt(n,t[i]))return!1;return!0}function cii(n){switch(n.length){case 1:return lii(n[0]);case 2:return so(n[0],n[1]);case 3:return crt(n[0],n[1],n[2])}}function lii(n){return{x:n.x,y:n.y,r:n.r}}function so(n,t){var f=n.x,e=n.y,o=n.r,s=t.x,h=t.y,c=t.r,i=s-f,r=h-e,l=c-o,u=Math.sqrt(i*i+r*r);return{x:(f+s+i/u*l)/2,y:(e+h+r/u*l)/2,r:(u+o+c)/2}}function crt(n,t,i){var u=n.x,f=n.y,r=n.r,a=t.x,v=t.y,y=t.r,p=i.x,w=i.y,b=i.r,k=u-a,d=u-p,g=f-v,nt=f-w,rt=y-r,ut=b-r,ft=u*u+f*f-r*r,et=ft-a*a-v*v+y*y,ot=ft-p*p-w*w+b*b,e=d*g-k*nt,o=(g*ot-nt*et)/(2*e)-u,s=(nt*rt-g*ut)/e,h=(d*et-k*ot)/(2*e)-f,c=(k*ut-d*rt)/e,tt=s*s+c*c-1,l=2*(r+o*s+h*c),st=o*o+h*h-r*r,it=-(tt?(l+Math.sqrt(l*l-4*tt*st))/(2*tt):st/l);return{x:u+o+s*it,y:f+h+c*it,r:it}}function lrt(n,t,i){var r,u,o,f,s=n.x-t.x,h=n.y-t.y,e=s*s+h*h;e?(u=t.r+i.r,u*=u,f=n.r+i.r,f*=f,u>f?(r=(e+f-u)/(2*e),o=Math.sqrt(Math.max(0,f/e-r*r)),i.x=n.x-r*s-o*h,i.y=n.y-r*h+o*s):(r=(e+u-f)/(2*e),o=Math.sqrt(Math.max(0,u/e-r*r)),i.x=t.x+r*s-o*h,i.y=t.y+r*h+o*s)):(i.x=t.x+i.r,i.y=t.y)}function art(n,t){var i=n.r+t.r-1e-6,r=t.x-n.x,u=t.y-n.y;return i>0&&i*i>r*r+u*u}function vrt(n){var t=n._,i=n.next._,r=t.r+i.r,u=(t.x*i.r+i.x*t.r)/r,f=(t.y*i.r+i.y*t.r)/r;return u*u+f*f}function ec(n){this._=n;this.next=null;this.previous=null}function yrt(n){if(!(o=n.length))return 0;var t,i,r,o,s,l,u,f,e,h,c;if(t=n[0],t.x=0,t.y=0,!(o>1))return t.r;if(i=n[1],t.x=-i.r,i.x=t.r,i.y=0,!(o>2))return t.r+i.r;lrt(i,t,r=n[2]);t=new ec(t);i=new ec(i);r=new ec(r);t.next=r.previous=i;i.next=t.previous=r;r.next=i.previous=t;n:for(u=3;u<o;++u){lrt(t._,i._,r=n[u]);r=new ec(r);f=i.next;e=t.previous;h=i._.r;c=t._.r;do if(h<=c){if(art(f._,r._)){i=f;t.next=i;i.previous=t;--u;continue n}h+=f._.r;f=f.next}else{if(art(e._,r._)){t=e;t.next=i;i.previous=t;--u;continue n}c+=e._.r;e=e.previous}while(f!==e.next);for(r.previous=t,r.next=i,t.next=i.previous=i=r,s=vrt(t);(r=r.next)!==i;)(l=vrt(r))<s&&(t=r,s=l);i=t.next}for(t=[i._],r=i;(r=r.next)!==i;)t.push(r._);for(r=dht(t),u=0;u<o;++u)t=n[u],t.x-=r.x,t.y-=r.y;return r.r}function aii(n){return null==n?null:oc(n)}function oc(n){if("function"!=typeof n)throw new Error;return n}function au(){return 0}function vii(n){return Math.sqrt(n.value)}function prt(n){return function(t){t.children||(t.r=Math.max(0,+n(t)||0))}}function nw(n,t){return function(i){if(u=i.children){var u,r,e,o=u.length,f=n(i)*t||0;if(f)for(r=0;r<o;++r)u[r].r+=f;if(e=yrt(u),f)for(r=0;r<o;++r)u[r].r-=f;i.r=e+f}}}function wrt(n){return function(t){var i=t.parent;t.r*=n;i&&(t.x=i.x+n*t.x,t.y=i.y+n*t.y)}}function yii(n){return n.id}function pii(n){return n.parentId}function wii(n,t){return n.parent===t.parent?1:2}function tw(n){var t=n.children;return t?t[0]:n.t}function iw(n){var t=n.children;return t?t[t.length-1]:n.t}function bii(n,t,i){var r=i/(t.i-n.i);t.c-=r;t.s+=i;n.c+=r;t.z+=i;t.m+=i}function kii(n){for(var t,i=0,f=0,r=n.children,u=r.length;--u>=0;)t=r[u],t.z+=i,t.m+=i,i+=t.s+(f+=t.c)}function dii(n,t,i){return n.a.parent===t.parent?n.a:i}function sc(n,t){this._=n;this.parent=null;this.children=null;this.A=null;this.a=this;this.z=0;this.m=0;this.c=0;this.s=0;this.t=null;this.i=t}function gii(n){for(var i,f,u,t,e,r=new sc(n,0),o=[r];i=o.pop();)if(u=i._.children)for(i.children=new Array(e=u.length),t=e-1;t>=0;--t)o.push(f=i.children[t]=new sc(u[t],t)),f.parent=i;return(r.parent=new sc(null,0)).children=[r],r}function brt(n,t,i,r,u,f){for(var p,s,l,a,e,v,y,nt,b,k,h,tt=[],w=t.children,d=0,o=0,g=w.length,c=t.value;d<g;){l=u-i;a=f-r;do e=w[o++].value;while(!e&&o<g);for(v=y=e,k=Math.max(a/l,l/a)/(c*n),h=e*e*k,b=Math.max(y/h,h/v);o<g;++o){if(e+=s=w[o].value,s<v&&(v=s),s>y&&(y=s),h=e*e*k,(nt=Math.max(y/h,h/v))>b){e-=s;break}b=nt}tt.push(p={value:e,dice:l<a,children:w.slice(d,o)});p.dice?gs(p,i,r,u,c?r+=a*e/c:f):fv(p,i,r,c?i+=l*e/c:u,f);c-=e;d=o}return tt}function nri(n,t){return n[0]-t[0]||n[1]-t[1]}function krt(n){for(var u=n.length,i=[0,1],t=2,r=2;r<u;++r){for(;t>1&&byi(n[i[t-2]],n[i[t-1]],n[r])<=0;)--t;i[t++]=r}return i.slice(0,t)}function ho(n,t){var r=Object.create(n.prototype),i;for(i in t)r[i]=t[i];return r}function br(){}function drt(){return this.rgb().formatHex()}function tri(){return fut(this).formatHsl()}function grt(){return this.rgb().formatRgb()}function rw(n){var t,i;return n=(n+"").trim().toLowerCase(),(t=nbi.exec(n))?(i=t[1].length,t=parseInt(t[1],16),6===i?nut(t):3===i?new et(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===i?hc(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===i?hc(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=tbi.exec(n))?new et(t[1],t[2],t[3],1):(t=ibi.exec(n))?new et(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=rbi.exec(n))?hc(t[1],t[2],t[3],t[4]):(t=ubi.exec(n))?hc(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=fbi.exec(n))?uut(t[1],t[2]/100,t[3]/100,1):(t=ebi.exec(n))?uut(t[1],t[2]/100,t[3]/100,t[4]):alt.hasOwnProperty(n)?nut(alt[n]):"transparent"===n?new et(NaN,NaN,NaN,0):null}function nut(n){return new et(n>>16&255,n>>8&255,255&n,1)}function hc(n,t,i,r){return r<=0&&(n=t=i=NaN),new et(n,t,i,r)}function uw(n){return n instanceof br||(n=rw(n)),n?(n=n.rgb(),new et(n.r,n.g,n.b,n.opacity)):new et}function tut(n,t,i,r){return 1===arguments.length?uw(n):new et(n,t,i,null==r?1:r)}function et(n,t,i,r){this.r=+n;this.g=+t;this.b=+i;this.opacity=+r}function iut(){return"#"+fw(this.r)+fw(this.g)+fw(this.b)}function rut(){var n=this.opacity;return n=isNaN(n)?1:Math.max(0,Math.min(1,n)),(1===n?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===n?")":", "+n+")")}function fw(n){return n=Math.max(0,Math.min(255,Math.round(n)||0)),(n<16?"0":"")+n.toString(16)}function uut(n,t,i,r){return r<=0?n=t=i=NaN:i<=0||i>=1?n=t=NaN:t<=0&&(n=NaN),new bi(n,t,i,r)}function fut(n){if(n instanceof bi)return new bi(n.h,n.s,n.l,n.opacity);if(n instanceof br||(n=rw(n)),!n)return new bi;if(n instanceof bi)return n;n=n.rgb();var u=n.r/255,i=n.g/255,f=n.b/255,e=Math.min(u,i,f),r=Math.max(u,i,f),o=NaN,t=r-e,s=(r+e)/2;return t?(o=u===r?(i-f)/t+6*(i<f):i===r?(f-u)/t+2:(u-i)/t+4,t/=s<.5?r+e:2-r-e,o*=60):t=s>0&&s<1?0:o,new bi(o,t,s,n.opacity)}function iri(n,t,i,r){return 1===arguments.length?fut(n):new bi(n,t,i,null==r?1:r)}function bi(n,t,i,r){this.h=+n;this.s=+t;this.l=+i;this.opacity=+r}function ew(n,t,i){return 255*(n<60?t+(i-t)*n/60:n<180?i:n<240?t+(i-t)*(240-n)/60:t)}function eut(n){if(n instanceof ki)return new ki(n.l,n.a,n.b,n.opacity);if(n instanceof or)return out(n);n instanceof et||(n=uw(n));var f,e,i=cw(n.r),t=cw(n.g),r=cw(n.b),u=ow((.2225045*i+.7168786*t+.0606169*r)/wlt);return i===t&&t===r?f=e=u:(f=ow((.4360747*i+.3850649*t+.1430804*r)/plt),e=ow((.0139322*i+.0971045*t+.7141733*r)/blt)),new ki(116*u-16,500*(f-u),200*(u-e),n.opacity)}function rri(n,t,i,r){return 1===arguments.length?eut(n):new ki(n,t,i,null==r?1:r)}function ki(n,t,i,r){this.l=+n;this.a=+t;this.b=+i;this.opacity=+r}function ow(n){return n>obi?Math.pow(n,1/3):n/dlt+klt}function sw(n){return n>le?n*n*n:dlt*(n-klt)}function hw(n){return 255*(n<=.0031308?12.92*n:1.055*Math.pow(n,1/2.4)-.055)}function cw(n){return(n/=255)<=.04045?n/12.92:Math.pow((n+.055)/1.055,2.4)}function uri(n){if(n instanceof or)return new or(n.h,n.c,n.l,n.opacity);if(n instanceof ki||(n=eut(n)),0===n.a&&0===n.b)return new or(NaN,0<n.l&&n.l<100?0:NaN,n.l,n.opacity);var t=Math.atan2(n.b,n.a)*ylt;return new or(t<0?t+360:t,Math.sqrt(n.a*n.a+n.b*n.b),n.l,n.opacity)}function fri(n,t,i,r){return 1===arguments.length?uri(n):new or(n,t,i,null==r?1:r)}function or(n,t,i,r){this.h=+n;this.c=+t;this.l=+i;this.opacity=+r}function out(n){if(isNaN(n.h))return new ki(n.l,0,0,n.opacity);var t=n.h*vlt;return new ki(n.l,Math.cos(t)*n.c,Math.sin(t)*n.c,n.opacity)}function eri(n){if(n instanceof vu)return new vu(n.h,n.s,n.l,n.opacity);n instanceof et||(n=uw(n));var s=n.r/255,f=n.g/255,e=n.b/255,t=(tat*e+glt*s-nat*f)/(tat+glt-nat),i=e-t,r=(th*(f-t)-ad*i)/ev,o=Math.sqrt(r*r+i*i)/(th*t*(1-t)),u=o?Math.atan2(r,i)*ylt-120:NaN;return new vu(u<0?u+360:u,o,t,n.opacity)}function kr(n,t,i,r){return 1===arguments.length?eri(n):new vu(n,t,i,null==r?1:r)}function vu(n,t,i,r){this.h=+n;this.s=+t;this.l=+i;this.opacity=+r}function cc(n){var t=n.length;return function(i){return n[Math.max(0,Math.min(t-1,Math.floor(i*t)))]}}function ori(n){return n>1?0:n<-1?ru:Math.acos(n)}function sut(n){return n>=1?hv:n<=-1?-hv:Math.asin(n)}function sri(n){return n.innerRadius}function hri(n){return n.outerRadius}function cri(n){return n.startAngle}function lri(n){return n.endAngle}function ari(n){return n&&n.padAngle}function vri(n,t,i,r,u,f,e,o){var h=i-n,c=r-t,l=e-u,a=o-f,s=a*h-l*c;if(!(s*s<st))return s=(l*(t-f)-a*(n-u))/s,[n+s*h,t+s*c]}function lc(n,t,i,r,u,f,e){var p=n-i,w=t-r,it=(e?f:-f)/ae(p*p+w*w),b=it*w,k=-it*p,d=n+b,g=t+k,nt=i+b,tt=r+k,rt=(d+nt)/2,ut=(g+tt)/2,s=nt-d,o=tt-g,c=s*s+o*o,l=u-f,h=d*tt-nt*g,a=(o<0?-1:1)*ae(gbi(0,l*l*c-h*h)),v=(h*o-s*a)/c,y=(-h*s-o*a)/c,ft=(h*o+s*a)/c,et=(-h*s+o*a)/c,ot=v-rt,st=y-ut,ht=ft-rt,ct=et-ut;return ot*ot+st*st>ht*ht+ct*ct&&(v=ft,y=et),{cx:v,cy:y,x01:-b,y01:-k,x11:v*(u/l-1),y11:y*(u/l-1)}}function hut(n){this._context=n}function lw(n){return n[0]}function aw(n){return n[1]}function cut(n){this._curve=n}function vw(n){function t(t){return new cut(n(t))}return t._curve=n,t}function co(n){var t=n.curve;return n.angle=n.x,delete n.x,n.radius=n.y,delete n.y,n.curve=function(n){return arguments.length?t(vw(n)):t()._curve},n}function yri(n){return n.source}function pri(n){return n.target}function yw(n){function t(){var o,t=pd.call(arguments),s=f.apply(this,t),h=e.apply(this,t);if(i||(i=o=bu()),n(i,+r.apply(this,(t[0]=s,t)),+u.apply(this,t),+r.apply(this,(t[0]=h,t)),+u.apply(this,t)),o)return i=null,o+""||null}var f=yri,e=pri,r=lw,u=aw,i=null;return t.source=function(n){return arguments.length?(f=n,t):f},t.target=function(n){return arguments.length?(e=n,t):e},t.x=function(n){return arguments.length?(r="function"==typeof n?n:v(+n),t):r},t.y=function(n){return arguments.length?(u="function"==typeof n?n:v(+n),t):u},t.context=function(n){return arguments.length?(i=null==n?null:n,t):i},t}function wri(n,t,i,r,u){n.moveTo(t,i);n.bezierCurveTo(t=(t+r)/2,i,t,u,r,u)}function bri(n,t,i,r,u){n.moveTo(t,i);n.bezierCurveTo(t,i=(i+u)/2,r,i,r,u)}function kri(n,t,i,r,u){var f=ih(t,i),e=ih(t,i=(i+u)/2),o=ih(r,i),s=ih(r,u);n.moveTo(f[0],f[1]);n.bezierCurveTo(e[0],e[1],o[0],o[1],s[0],s[1])}function dri(){return yw(wri)}function gri(){return yw(bri)}function nui(){var n=yw(kri);return n.angle=n.x,delete n.x,n.radius=n.y,delete n.y,n}function ac(n,t,i){n._context.bezierCurveTo((2*n._x0+n._x1)/3,(2*n._y0+n._y1)/3,(n._x0+2*n._x1)/3,(n._y0+2*n._y1)/3,(n._x0+4*n._x1+t)/6,(n._y0+4*n._y1+i)/6)}function vc(n){this._context=n}function lut(n){this._context=n}function aut(n){this._context=n}function vut(n,t){this._basis=new vc(n);this._beta=t}function yc(n,t,i){n._context.bezierCurveTo(n._x1+n._k*(n._x2-n._x0),n._y1+n._k*(n._y2-n._y0),n._x2+n._k*(n._x1-t),n._y2+n._k*(n._y1-i),n._x2,n._y2)}function pw(n,t){this._context=n;this._k=(1-t)/6}function ww(n,t){this._context=n;this._k=(1-t)/6}function bw(n,t){this._context=n;this._k=(1-t)/6}function kw(n,t,i){var r=n._x1,u=n._y1,f=n._x2,e=n._y2,o,s,h,c;n._l01_a>st&&(o=2*n._l01_2a+3*n._l01_a*n._l12_a+n._l12_2a,s=3*n._l01_a*(n._l01_a+n._l12_a),r=(r*o-n._x0*n._l12_2a+n._x2*n._l01_2a)/s,u=(u*o-n._y0*n._l12_2a+n._y2*n._l01_2a)/s);n._l23_a>st&&(h=2*n._l23_2a+3*n._l23_a*n._l12_a+n._l12_2a,c=3*n._l23_a*(n._l23_a+n._l12_a),f=(f*h+n._x1*n._l23_2a-t*n._l12_2a)/c,e=(e*h+n._y1*n._l23_2a-i*n._l12_2a)/c);n._context.bezierCurveTo(r,u,f,e,n._x2,n._y2)}function yut(n,t){this._context=n;this._alpha=t}function put(n,t){this._context=n;this._alpha=t}function wut(n,t){this._context=n;this._alpha=t}function but(n){this._context=n}function kut(n){return n<0?-1:1}function dut(n,t,i){var r=n._x1-n._x0,u=t-n._x1,f=(n._y1-n._y0)/(r||u<0&&-0),e=(i-n._y1)/(u||r<0&&-0),o=(f*u+e*r)/(r+u);return(kut(f)+kut(e))*Math.min(Math.abs(f),Math.abs(e),.5*Math.abs(o))||0}function gut(n,t){var i=n._x1-n._x0;return i?(3*(n._y1-n._y0)/i-t)/2:t}function dw(n,t,i){var f=n._x0,o=n._y0,u=n._x1,e=n._y1,r=(u-f)/3;n._context.bezierCurveTo(f+r,o+r*t,u-r,e-r*i,u,e)}function pc(n){this._context=n}function nft(n){this._context=new tft(n)}function tft(n){this._context=n}function tui(n){return new pc(n)}function iui(n){return new nft(n)}function ift(n){this._context=n}function rft(n){var t,e,i=n.length-1,r=new Array(i),u=new Array(i),f=new Array(i);for(r[0]=0,u[0]=2,f[0]=n[0]+2*n[1],t=1;t<i-1;++t)r[t]=1,u[t]=4,f[t]=4*n[t]+2*n[t+1];for(r[i-1]=2,u[i-1]=7,f[i-1]=8*n[i-1]+n[i],t=1;t<i;++t)e=r[t]/u[t-1],u[t]-=e,f[t]-=e*f[t-1];for(r[i-1]=f[i-1]/u[i-1],t=i-2;t>=0;--t)r[t]=(f[t]-r[t+1])/u[t];for(u[i-1]=(n[i]+r[i-1])/2,t=0;t<i-1;++t)u[t]=2*n[t+1]-r[t+1];return[r,u]}function wc(n,t){this._context=n;this._t=t}function rui(n){return new wc(n,0)}function uui(n){return new wc(n,1)}function fui(n,t){return n[t]}function eui(n){for(var i,t=-1,r=0,f=n.length,u=-1/0;++t<f;)(i=+n[t][1])>u&&(u=i,r=t);return r}function uft(n){for(var t,i=0,r=-1,u=n.length;++r<u;)(t=+n[r][1])&&(i+=t);return i}function oui(n){return n[0]}function sui(n){return n[1]}function gw(){this._=null}function bc(n){n.U=n.C=n.L=n.R=n.P=n.N=null}function lo(n,t){var i=t,r=t.R,u=i.U;u?u.L===i?u.L=r:u.R=r:n._=r;r.U=u;i.U=r;i.R=r.L;i.R&&(i.R.U=i);r.L=i}function ao(n,t){var i=t,r=t.L,u=i.U;u?u.L===i?u.L=r:u.R=r:n._=r;r.U=u;i.U=r;i.L=r.R;i.L&&(i.L.U=i);r.R=i}function fft(n){for(;n.L;)n=n.L;return n}function vo(n,t,i,r){var u=[null,null],f=ht.push(u)-1;return u.left=n,u.right=t,i&&kc(u,n,t,i),r&&kc(u,t,n,r),ri[n.index].halfedges.push(f),ri[t.index].halfedges.push(f),u}function yo(n,t,i){var r=[t,i];return r.left=n,r}function kc(n,t,i,r){n[0]||n[1]?n.left===i?n[1]=r:n[0]=r:(n[0]=r,n.left=t,n.right=i)}function hui(n,t,i,r,u){var f,a=n[0],v=n[1],c=a[0],l=a[1],y=v[0],p=v[1],e=0,o=1,s=y-c,h=p-l;if(f=t-c,s||!(f>0)){if(f/=s,s<0){if(f<e)return;f<o&&(o=f)}else if(s>0){if(f>o)return;f>e&&(e=f)}if(f=r-c,s||!(f<0)){if(f/=s,s<0){if(f>o)return;f>e&&(e=f)}else if(s>0){if(f<e)return;f<o&&(o=f)}if(f=i-l,h||!(f>0)){if(f/=h,h<0){if(f<e)return;f<o&&(o=f)}else if(h>0){if(f>o)return;f>e&&(e=f)}if(f=u-l,h||!(f<0)){if(f/=h,h<0){if(f>o)return;f>e&&(e=f)}else if(h>0){if(f<e)return;f<o&&(o=f)}return!(e>0||o<1)||(e>0&&(n[0]=[c+e*s,l+e*h]),o<1&&(n[1]=[c+o*s,l+o*h]),!0)}}}}}function cui(n,t,i,r,u){var s=n[1];if(s)return!0;var e,o,f=n[0],y=n.left,p=n.right,c=y[0],l=y[1],a=p[0],v=p[1],h=(c+a)/2,w=(l+v)/2;if(v===l){if(h<t||h>=r)return;if(c>a){if(f){if(f[1]>=u)return}else f=[h,i];s=[h,u]}else{if(f){if(f[1]<i)return}else f=[h,u];s=[h,i]}}else if(e=(c-a)/(v-l),o=w-e*h,e<-1||e>1)if(c>a){if(f){if(f[1]>=u)return}else f=[(i-o)/e,i];s=[(u-o)/e,u]}else{if(f){if(f[1]<i)return}else f=[(u-o)/e,u];s=[(i-o)/e,i]}else if(l<v){if(f){if(f[0]>=r)return}else f=[t,e*t+o];s=[r,e*r+o]}else{if(f){if(f[0]<t)return}else f=[r,e*r+o];s=[t,e*t+o]}return n[0]=f,n[1]=s,!0}function lui(n,t,i,r){for(var u,f=ht.length;f--;)cui(u=ht[f],n,t,i,r)&&hui(u,n,t,i,r)&&(Math.abs(u[0][0]-u[1][0])>p||Math.abs(u[0][1]-u[1][1])>p)||delete ht[f]}function aui(n){return ri[n.index]={site:n,halfedges:[]}}function vui(n,t){var u=n.site,i=t.left,r=t.right;return u===r&&(r=i,i=u),r?Math.atan2(r[1]-i[1],r[0]-i[0]):(u===i?(i=t[1],r=t[0]):(i=t[0],r=t[1]),Math.atan2(i[0]-r[0],r[1]-i[1]))}function eft(n,t){return t[+(t.left!==n.site)]}function yui(n,t){return t[+(t.left===n.site)]}function pui(){for(var e,r,n,t,f,i,u=0,o=ri.length;u<o;++u)if((e=ri[u])&&(t=(r=e.halfedges).length)){for(f=new Array(t),i=new Array(t),n=0;n<t;++n)f[n]=n,i[n]=vui(e,ht[r[n]]);for(f.sort(function(n,t){return i[t]-i[n]}),n=0;n<t;++n)i[n]=r[f[n]];for(n=0;n<t;++n)r[n]=i[n]}}function wui(n,t,i,r){for(var f,e,o,s,y,b,c,l,w,a,v,k=ri.length,h=!0,d,g,tt,nt,u=0;u<k;++u)if(f=ri[u]){for(e=f.site,s=f.halfedges,o=s.length;o--;)ht[s[o]]||s.splice(o,1);for(o=0,y=s.length;o<y;)w=yui(f,ht[s[o]]),a=w[0],v=w[1],b=eft(f,ht[s[++o%y]]),c=b[0],l=b[1],(Math.abs(a-c)>p||Math.abs(v-l)>p)&&(s.splice(o,0,ht.push(yo(e,w,Math.abs(a-n)<p&&r-v>p?[n,Math.abs(c-n)<p?l:r]:Math.abs(v-r)<p&&i-a>p?[Math.abs(l-r)<p?c:i,r]:Math.abs(a-i)<p&&v-t>p?[i,Math.abs(c-i)<p?l:t]:Math.abs(v-t)<p&&a-n>p?[Math.abs(l-t)<p?c:n,t]:null))-1),++y);y&&(h=!1)}if(h){for(nt=1/0,u=0,h=null;u<k;++u)(f=ri[u])&&(e=f.site,d=e[0]-n,g=e[1]-t,(tt=d*d+g*g)<nt&&(nt=tt,h=f));if(h){var it=[n,t],rt=[n,r],ut=[i,r],ft=[i,t];h.halfedges.push(ht.push(yo(e=h.site,it,rt))-1,ht.push(yo(e,rt,ut))-1,ht.push(yo(e,ut,ft))-1,ht.push(yo(e,ft,it))-1)}}for(u=0;u<k;++u)(f=ri[u])&&(f.halfedges.length||delete ri[u])}function bui(){bc(this);this.x=this.y=this.arc=this.site=this.cy=null}function ff(n){var w=n.P,b=n.N,r,t;if(w&&b){var s=w.site,h=n.site,c=b.site;if(s!==c){var l=h[0],a=h[1],u=s[0]-l,f=s[1]-a,e=c[0]-l,o=c[1]-a,v=2*(u*o-f*e);if(!(v>=-dki)){var k=u*u+f*f,d=e*e+o*o,y=(o*k-f*d)/v,p=(u*d-e*k)/v,i=cvt.pop()||new bui;for(i.arc=n,i.site=h,i.x=y+l,i.y=(i.cy=p+a)+Math.sqrt(y*y+p*p),n.circle=i,r=null,t=rh._;t;)if(i.y<t.y||i.y===t.y&&i.x<=t.x){if(!t.L){r=t.P;break}t=t.L}else{if(!t.R){r=t;break}t=t.R}rh.insert(r,i);r||(dd=i)}}}}function ef(n){var t=n.circle;t&&(t.P||(dd=t.N),rh.remove(t),cvt.push(t),bc(t),n.circle=null)}function kui(){bc(this);this.edge=this.site=this.circle=null}function oft(n){var t=lvt.pop()||new kui;return t.site=n,t}function nb(n){ef(n);pe.remove(n);lvt.push(n);bc(n)}function dui(n){var c=n.circle,f=c.x,e=c.cy,l=[f,e],o=n.P,s=n.N,r=[n],i,t,u,h;for(nb(n),i=o;i.circle&&Math.abs(f-i.circle.x)<p&&Math.abs(e-i.circle.cy)<p;)o=i.P,r.unshift(i),nb(i),i=o;for(r.unshift(i),ef(i),t=s;t.circle&&Math.abs(f-t.circle.x)<p&&Math.abs(e-t.circle.cy)<p;)s=t.N,r.push(t),nb(t),t=s;for(r.push(t),ef(t),h=r.length,u=1;u<h;++u)t=r[u],i=r[u-1],kc(t.edge,i.site,t.site,l);i=r[0];t=r[h-1];t.edge=vo(i.site,t.site,null,l);ff(i);ff(t)}function gui(n){for(var u,t,i,y,w,b=n[0],k=n[1],r=pe._;r;)if((y=sft(r,k)-b)>p)r=r.L;else{if(!((w=b-nfi(r,k))>p)){y>-p?(t=r.P,i=r):w>-p?(t=r,i=r.N):t=i=r;break}if(!r.R){t=r;break}r=r.R}if(aui(n),u=oft(n),pe.insert(t,u),t||i){if(t===i)return ef(t),i=oft(t.site),pe.insert(u,i),u.edge=i.edge=vo(t.site,u.site),ff(t),void ff(i);if(!i)return void(u.edge=vo(t.site,u.site));ef(t);ef(i);var f=t.site,l=f[0],a=f[1],e=n[0]-l,o=n[1]-a,s=i.site,h=s[0]-l,c=s[1]-a,d=2*(e*c-o*h),g=e*e+o*o,nt=h*h+c*c,v=[(c*g-o*nt)/d+l,(e*nt-h*g)/d+a];kc(i.edge,f,s,v);u.edge=vo(f,n,null,v);i.edge=vo(n,s,null,v);ff(t);ff(i)}}function sft(n,t){var i=n.site,u=i[0],l=i[1],f=l-t,e;if(!f)return u;if(e=n.P,!e)return-1/0;i=e.site;var o=i[0],a=i[1],r=a-t;if(!r)return o;var s=o-u,h=1/f-1/r,c=s/r;return h?(-c+Math.sqrt(c*c-2*h*(s*s/(-2*r)-a+r/2+l-f/2)))/h+u:(u+o)/2}function nfi(n,t){var r=n.N,i;return r?sft(r,t):(i=n.site,i[1]===t?i[0]:1/0)}function tfi(n,t,i){return(n[0]-i[0])*(t[1]-n[1])-(n[0]-t[0])*(i[1]-n[1])}function ifi(n,t){return t[1]-n[1]||t[0]-n[0]}function tb(n,t){var u,f,r,i=n.sort(ifi).pop();for(ht=[],ri=new Array(n.length),pe=new hvt,rh=new hvt;;)if(r=dd,i&&(!r||i[1]<r.y||i[1]===r.y&&i[0]<r.x))i[0]===u&&i[1]===f||(gui(i),u=i[0],f=i[1]),i=n.pop();else{if(!r)break;dui(r.arc)}if(pui(),t){var e=+t[0][0],o=+t[0][1],s=+t[1][0],h=+t[1][1];lui(e,o,s,h);wui(e,o,s,h)}this.edges=ht;this.cells=ri;pe=rh=ht=ri=null}function rfi(n,t,i){this.target=n;this.type=t;this.transform=i}function sr(n,t,i){this.k=n;this.x=t;this.y=i}function hft(n){for(;!n.__zoom;)if(!(n=n.parentNode))return fh;return n.__zoom}function ib(){r.stopImmediatePropagation()}function ufi(){return!r.ctrlKey&&!r.button}function ffi(){var n=this;return n instanceof SVGElement?(n=n.ownerSVGElement||n,n.hasAttribute("viewBox")?(n=n.viewBox.baseVal,[[n.x,n.y],[n.x+n.width,n.y+n.height]]):[[0,0],[n.width.baseVal.value,n.height.baseVal.value]]):[[0,0],[n.clientWidth,n.clientHeight]]}function cft(){return this.__zoom||fh}function efi(){return-r.deltaY*(1===r.deltaMode?.05:r.deltaMode?1:.002)}function ofi(){return navigator.maxTouchPoints||"ontouchstart"in this}function sfi(n,t,i){var r=n.invertX(t[0][0])-i[0][0],u=n.invertX(t[1][0])-i[1][0],f=n.invertY(t[0][1])-i[0][1],e=n.invertY(t[1][1])-i[1][1];return n.translate(u>r?(r+u)/2:Math.min(0,r)||Math.max(0,u),e>f?(f+e)/2:Math.min(0,f)||Math.max(0,e))}var uht,fht,hht,rv,cht,lht,aht,vht,yht,pht,wht,bht,kht,pat,wat,bat,kat,dat,gat,nvt,tvt,ivt,rvt,uvt,fvt,avt,uh,fh,we,vvt;Object.defineProperty(t,"__esModule",{value:!0});var h=i(32),rb=Array.prototype.slice,hfi=function(n){return n},dc=1,gc=2,ub=3,po=4,lft=1e-6,cfi={value:function(){}};oh.prototype=gd.prototype={constructor:oh,on:function(n,t){var i,r=this._,f=iyt(n+"",r),u=-1,e=f.length;if(!(arguments.length<2)){if(null!=t&&"function"!=typeof t)throw new Error("invalid callback: "+t);for(;++u<e;)if(i=(n=f[u]).type)r[i]=ng(r[i],n.name,t);else if(null==t)for(i in r)r[i]=ng(r[i],n.name,null);return this}for(;++u<e;)if((i=(n=f[u]).type)&&(i=ryt(r[i],n.name)))return i},copy:function(){var t={},i=this._,n;for(n in i)t[n]=i[n].slice();return new oh(t)},call:function(n,t){if((r=arguments.length-2)>0)for(var r,u,f=new Array(r),i=0;i<r;++i)f[i]=arguments[i+2];if(!this._.hasOwnProperty(n))throw new Error("unknown type: "+n);for(u=this._[n],i=0,r=u.length;i<r;++i)u[i].value.apply(t,f)},apply:function(n,t,i){if(!this._.hasOwnProperty(n))throw new Error("unknown type: "+n);for(var u=this._[n],r=0,f=u.length;r<f;++r)u[r].value.apply(t,i)}};var of=gd,fb="http://www.w3.org/1999/xhtml",eb={svg:"http://www.w3.org/2000/svg",xhtml:fb,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},wo=function(n){var t=n+="",i=t.indexOf(":");return i>=0&&"xmlns"!==(t=n.slice(0,i))&&(n=n.slice(i+1)),eb.hasOwnProperty(t)?{space:eb[t],local:n}:n},nl=function(n){var t=wo(n);return(t.local?fyt:uyt)(t)},tl=function(n){return null==n?eyt:function(){return this.querySelector(n)}},lfi=function(n){"function"!=typeof n&&(n=tl(n));for(var e=this._groups,o=e.length,s=new Array(o),r=0;r<o;++r)for(var t,u,f=e[r],h=f.length,c=s[r]=new Array(h),i=0;i<h;++i)(t=f[i])&&(u=n.call(t,t.__data__,i,f))&&("__data__"in t&&(u.__data__=t.__data__),c[i]=u);return new ct(s,this._parents)},ob=function(n){return null==n?oyt:function(){return this.querySelectorAll(n)}},afi=function(n){"function"!=typeof n&&(n=ob(n));for(var f=this._groups,s=f.length,e=[],o=[],r=0;r<s;++r)for(var t,u=f[r],h=u.length,i=0;i<h;++i)(t=u[i])&&(e.push(n.call(t,t.__data__,i,u)),o.push(t));return new ct(e,o)},sb=function(n){return function(){return this.matches(n)}},vfi=function(n){"function"!=typeof n&&(n=sb(n));for(var f=this._groups,e=f.length,o=new Array(e),t=0;t<e;++t)for(var i,u=f[t],s=u.length,h=o[t]=[],r=0;r<s;++r)(i=u[r])&&n.call(i,i.__data__,r,u)&&h.push(i);return new ct(o,this._parents)},aft=function(n){return new Array(n.length)},yfi=function(){return new ct(this._enter||this._groups.map(aft),this._parents)};sh.prototype={constructor:sh,appendChild:function(n){return this._parent.insertBefore(n,this._next)},insertBefore:function(n,t){return this._parent.insertBefore(n,t)},querySelector:function(n){return this._parent.querySelector(n)},querySelectorAll:function(n){return this._parent.querySelectorAll(n)}};var pfi=function(n){return function(){return n}},vft="$",wfi=function(n,t){var b,k,u,e;if(!n)return f=new Array(this.size()),i=-1,this.each(function(n){f[++i]=n}),f;var d=t?hyt:syt,c=this._parents,l=this._groups;"function"!=typeof n&&(n=pfi(n));for(var o=l.length,r=new Array(o),a=new Array(o),v=new Array(o),i=0;i<o;++i){var s=c[i],y=l[i],g=y.length,f=n.call(s,s&&s.__data__,i,c),h=f.length,p=a[i]=new Array(h),w=r[i]=new Array(h);for(d(s,y,p,w,v[i]=new Array(g),f,t),u=0,e=0;u<h;++u)if(b=p[u]){for(u>=e&&(e=u+1);!(k=w[e])&&++e<h;);b._next=k||null}}return r=new ct(r,c),r._enter=a,r._exit=v,r},bfi=function(){return new ct(this._exit||this._groups.map(aft),this._parents)},kfi=function(n,t,i){var r=this.enter(),u=this,f=this.exit();return r="function"==typeof n?n(r):r.append(n+""),null!=t&&(u=t(u)),null==i?f.remove():i(f),r&&u?r.merge(u).order():u},dfi=function(n){for(var r=this._groups,e=n._groups,u=r.length,c=e.length,l=Math.min(u,c),f=new Array(u),t=0;t<l;++t)for(var o,s=r[t],a=e[t],h=s.length,v=f[t]=new Array(h),i=0;i<h;++i)(o=s[i]||a[i])&&(v[i]=o);for(;t<u;++t)f[t]=r[t];return new ct(f,this._parents)},gfi=function(){for(var u=this._groups,f=-1,e=u.length;++f<e;)for(var t,i=u[f],r=i.length-1,n=i[r];--r>=0;)(t=i[r])&&(n&&4^t.compareDocumentPosition(n)&&n.parentNode.insertBefore(t,n),n=t);return this},nei=function(n){function c(t,i){return t&&i?n(t.__data__,i.__data__):!t-!i}n||(n=cyt);for(var r=this._groups,u=r.length,f=new Array(u),t=0;t<u;++t){for(var e,o=r[t],s=o.length,h=f[t]=new Array(s),i=0;i<s;++i)(e=o[i])&&(h[i]=e);h.sort(c)}return new ct(f,this._parents).order()},tei=function(){var n=arguments[0];return arguments[0]=this,n.apply(null,arguments),this},iei=function(){var n=new Array(this.size()),t=-1;return this.each(function(){n[++t]=this}),n},rei=function(){for(var i,r=this._groups,n=0,f=r.length;n<f;++n)for(var u=r[n],t=0,e=u.length;t<e;++t)if(i=u[t],i)return i;return null},uei=function(){var n=0;return this.each(function(){++n}),n},fei=function(){return!this.node()},eei=function(n){for(var f=this._groups,i=0,e=f.length;i<e;++i)for(var r,u=f[i],t=0,o=u.length;t<o;++t)(r=u[t])&&n.call(r,r.__data__,t,u);return this},oei=function(n,t){var i=wo(n),r;return arguments.length<2?(r=this.node(),i.local?r.getAttributeNS(i.space,i.local):r.getAttribute(i)):this.each((null==t?i.local?ayt:lyt:"function"==typeof t?i.local?wyt:pyt:i.local?yyt:vyt)(i,t))},hb=function(n){return n.ownerDocument&&n.ownerDocument.defaultView||n.document&&n||n.defaultView},sei=function(n,t,i){return arguments.length>1?this.each((null==t?byt:"function"==typeof t?dyt:kyt)(n,t,null==i?"":i)):ou(this.node(),n)},hei=function(n,t){return arguments.length>1?this.each((null==t?gyt:"function"==typeof t?tpt:npt)(n,t)):this.node()[n]};ig.prototype={add:function(n){this._names.indexOf(n)<0&&(this._names.push(n),this._node.setAttribute("class",this._names.join(" ")))},remove:function(n){var t=this._names.indexOf(n);t>=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(n){return this._names.indexOf(n)>=0}};var cei=function(n,t){var i=tg(n+"");if(arguments.length<2){for(var u=lv(this.node()),r=-1,f=i.length;++r<f;)if(!u.contains(i[r]))return!1;return!0}return this.each(("function"==typeof t?upt:t?ipt:rpt)(i,t))},lei=function(n){return arguments.length?this.each(null==n?fpt:("function"==typeof n?opt:ept)(n)):this.node().textContent},aei=function(n){return arguments.length?this.each(null==n?spt:("function"==typeof n?cpt:hpt)(n)):this.node().innerHTML},vei=function(){return this.each(lpt)},yei=function(){return this.each(apt)},pei=function(n){var t="function"==typeof n?n:nl(n);return this.select(function(){return this.appendChild(t.apply(this,arguments))})},wei=function(n,t){var i="function"==typeof n?n:nl(n),r=null==t?vpt:"function"==typeof t?t:tl(t);return this.select(function(){return this.insertBefore(i.apply(this,arguments),r.apply(this,arguments)||null)})},bei=function(){return this.each(ypt)},kei=function(n){return this.select(n?wpt:ppt)},dei=function(n){return arguments.length?this.property("__data__",n):this.node().__data__},yft={},r=null;"undefined"!=typeof document&&("onmouseenter"in document.documentElement||(yft={mouseenter:"mouseover",mouseleave:"mouseout"}));var gei=function(n,t,i){var r,s,o=kpt(n+""),h=o.length,u,f,e,c;if(!(arguments.length<2)){for(u=t?gpt:dpt,null==i&&(i=!1),r=0;r<h;++r)this.each(u(o[r],t,i));return this}if(u=this.node().__on,u)for(e=0,c=u.length;e<c;++e)for(r=0,f=u[e];r<h;++r)if((s=o[r]).type===f.type&&s.name===f.name)return f.value},noi=function(n,t){return this.each(("function"==typeof t?twt:nwt)(n,t))},cb=[null];ct.prototype=og.prototype={constructor:ct,select:lfi,selectAll:afi,filter:vfi,data:wfi,enter:yfi,exit:bfi,join:kfi,merge:dfi,order:gfi,sort:nei,call:tei,nodes:iei,node:rei,size:uei,empty:fei,each:eei,attr:oei,style:sei,property:hei,classed:cei,text:lei,html:aei,raise:vei,lower:yei,append:pei,insert:wei,remove:bei,clone:kei,datum:dei,on:gei,dispatch:noi};var sf=og,gt=function(n){return"string"==typeof n?new ct([[document.querySelector(n)]],[document.documentElement]):new ct([[n]],cb)},toi=function(n){return gt(nl(n).call(document.documentElement))},ioi=0;av.prototype=sg.prototype={constructor:av,get:function(n){for(var t=this._;!(t in n);)if(!(n=n.parentNode))return;return n[t]},set:function(n,t){return n[this._]=t},remove:function(n){return this._ in n&&delete n[this._]},toString:function(){return this._}};var lb=function(){for(var t,n=r;t=n.sourceEvent;)n=t;return n},il=function(n,t){var u=n.ownerSVGElement||n,i,r;return u.createSVGPoint?(i=u.createSVGPoint(),i.x=t.clientX,i.y=t.clientY,i=i.matrixTransform(n.getScreenCTM().inverse()),[i.x,i.y]):(r=n.getBoundingClientRect(),[t.clientX-r.left-n.clientLeft,t.clientY-r.top-n.clientTop])},yu=function(n){var t=lb();return t.changedTouches&&(t=t.changedTouches[0]),il(n,t)},roi=function(n){return"string"==typeof n?new ct([document.querySelectorAll(n)],[document.documentElement]):new ct([null==n?[]:n],cb)},bo=function(n,t,i){arguments.length<3&&(i=t,t=lb().changedTouches);for(var u,r=0,f=t?t.length:0;r<f;++r)if((u=t[r]).identifier===i)return il(n,u);return null},uoi=function(n,t){null==t&&(t=lb().touches);for(var i=0,r=t?t.length:0,u=new Array(r);i<r;++i)u[i]=il(n,t[i]);return u},hf=function(){r.preventDefault();r.stopImmediatePropagation()},rl=function(n){var t=n.document.documentElement,i=gt(n).on("dragstart.drag",hf,!0);"onselectstart"in t?i.on("selectstart.drag",hf,!0):(t.__noselect=t.style.MozUserSelect,t.style.MozUserSelect="none")},ul=function(n){return function(){return n}};yv.prototype.on=function(){var n=this._.on.apply(this._,arguments);return n===this._?this:n};var fl,ko,foi=function(){function n(n){n.on("mousedown.drag",p).filter(c).on("touchstart.drag",k).on("touchmove.drag",d).on("touchend.drag touchcancel.drag",g).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function p(){if(!i&&f.apply(this,arguments)){var n=a("mouse",e.apply(this,arguments),yu,this,arguments);n&&(gt(r.view).on("mousemove.drag",w,!0).on("mouseup.drag",b,!0),rl(r.view),vv(),u=!1,v=r.clientX,y=r.clientY,n("start"))}}function w(){if(hf(),!u){var n=r.clientX-v,i=r.clientY-y;u=n*n+i*i>l}t.mouse("drag")}function b(){gt(r.view).on("mousemove.drag mouseup.drag",null);hh(r.view,u);hf();t.mouse("end")}function k(){if(f.apply(this,arguments))for(var t,i=r.changedTouches,u=e.apply(this,arguments),o=i.length,n=0;n<o;++n)(t=a(i[n].identifier,u,bo,this,arguments))&&(vv(),t("start"))}function d(){for(var i,u=r.changedTouches,f=u.length,n=0;n<f;++n)(i=t[u[n].identifier])&&(hf(),i("drag"))}function g(){var n,u,f=r.changedTouches,e=f.length;for(i&&clearTimeout(i),i=setTimeout(function(){i=null},500),n=0;n<e;++n)(u=t[f[n].identifier])&&(vv(),u("end"))}function a(i,u,f,e,c){var a,y,p,l=f(u,i),v=o.copy();if(be(new yv(n,"beforestart",a,i,s,l[0],l[1],0,0,v),function(){return null!=(r.subject=a=h.apply(e,c))&&(y=a.x-l[0]||0,p=a.y-l[1]||0,!0)}))return function w(r){var o,h=l;switch(r){case"start":t[i]=w;o=s++;break;case"end":delete t[i];--s;case"drag":l=f(u,i);o=s}be(new yv(n,r,a,i,o,l[0]+y,l[1]+p,l[0]-h[0],l[1]-h[1],v),v.apply,v,[r,e,c])}}var v,y,u,i,f=iwt,e=rwt,h=uwt,c=fwt,t={},o=of("start","drag","end"),s=0,l=0;return n.filter=function(t){return arguments.length?(f="function"==typeof t?t:ul(!!t),n):f},n.container=function(t){return arguments.length?(e="function"==typeof t?t:ul(t),n):e},n.subject=function(t){return arguments.length?(h="function"==typeof t?t:ul(t),n):h},n.touchable=function(t){return arguments.length?(c="function"==typeof t?t:ul(!!t),n):c},n.on=function(){var t=o.on.apply(o,arguments);return t===o?n:t},n.clickDistance=function(t){return arguments.length?(l=(t=+t)*t,n):Math.sqrt(l)},n},l=i(64),cf=0,go=0,ns=0,pft=1e3,el=0,pu=0,ol=0,ts="object"==typeof performance&&performance.now?performance:Date,wft="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(n){setTimeout(n,17)};ke.prototype=ch.prototype={constructor:ke,restart:function(n,t,i){if("function"!=typeof n)throw new TypeError("callback is not a function");i=(null==i?tf():+i)+(null==t?0:+t);this._next||ko===this||(ko?ko._next=this:fl=this,ko=this);this._call=n;this._time=i;pv()},stop:function(){this._call&&(this._call=null,this._time=1/0,pv())}};var ab=function(n,t,i){var r=new ke;return t=null==t?0:+t,r.restart(function(i){r.stop();n(i+t)},t,i),r},eoi=function(n,t,i){var r=new ke,u=t;return null==t?(r.restart(n,t,i),r):(t=+t,i=null==i?tf():+i,r.restart(function f(e){e+=u;r.restart(f,u+=t,i);n(e)},t,i),r)},ooi=of("start","end","cancel","interrupt"),soi=[],bft=0,vb=1,yb=2,sl=3,kft=4,pb=5,hl=6,cl=function(n,t,i,r,u,f){var e=n.__transition;if(e){if(i in e)return}else n.__transition={};hwt(n,i,{name:t,index:r,group:u,on:ooi,tween:soi,time:f.time,delay:f.delay,duration:f.duration,ease:f.ease,timer:null,state:bft})},wu=function(n,t){var i,f,u,r=n.__transition,e=!0;if(r){t=null==t?null:t+"";for(u in r)(i=r[u]).name===t?(f=i.state>yb&&i.state<pb,i.state=hl,i.timer.stop(),i.on.call(f?"interrupt":"cancel",n,n.__data__,i.index,i.group),delete r[u]):e=!1;e&&delete n.__transition}},hoi=function(n){return this.each(function(){wu(this,n)})},coi=function(n,t){var r=this._id;if(n+="",arguments.length<2){for(var u,f=ei(this.node(),r).tween,i=0,e=f.length;i<e;++i)if((u=f[i]).name===n)return u.value;return null}return this.each((null==t?cwt:lwt)(r,n,t))},lf=function(n,t,i){n.prototype=t.prototype=i;i.constructor=n},af="\\s*([+-]?\\d+)\\s*",is="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",di="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",loi=/^#([0-9a-f]{3,8})$/,aoi=new RegExp("^rgb\\("+[af,af,af]+"\\)$"),voi=new RegExp("^rgb\\("+[di,di,di]+"\\)$"),yoi=new RegExp("^rgba\\("+[af,af,af,is]+"\\)$"),poi=new RegExp("^rgba\\("+[di,di,di,is]+"\\)$"),woi=new RegExp("^hsl\\("+[is,di,di]+"\\)$"),boi=new RegExp("^hsla\\("+[is,di,di,is]+"\\)$"),dft={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};lf(yr,ge,{copy:function(n){return Object.assign(new this.constructor,this,n)},displayable:function(){return this.rgb().displayable()},hex:lg,formatHex:lg,formatHsl:awt,formatRgb:ag,toString:ag});lf(ut,vwt,de(yr,{brighter:function(n){return n=null==n?1/.7:Math.pow(1/.7,n),new ut(this.r*n,this.g*n,this.b*n,this.opacity)},darker:function(n){return n=null==n?.7:Math.pow(.7,n),new ut(this.r*n,this.g*n,this.b*n,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:yg,formatHex:yg,formatRgb:pg,toString:pg}));lf(li,ywt,de(yr,{brighter:function(n){return n=null==n?1/.7:Math.pow(1/.7,n),new li(this.h,this.s,this.l*n,this.opacity)},darker:function(n){return n=null==n?.7:Math.pow(.7,n),new li(this.h,this.s,this.l*n,this.opacity)},rgb:function(){var n=this.h%360+360*(this.h<0),u=isNaN(n)||isNaN(this.s)?0:this.s,t=this.l,i=t+(t<.5?t:1-t)*u,r=2*t-i;return new ut(gv(n>=240?n-240:n+120,r,i),gv(n,r,i),gv(n<120?n+240:n-120,r,i),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var n=this.opacity;return n=isNaN(n)?1:Math.max(0,Math.min(1,n)),(1===n?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===n?")":", "+n+")")}}));var gft=Math.PI/180,net=180/Math.PI,tet=.96422,iet=1,ret=.82521,uet=4/29,vf=6/29,fet=3*vf*vf,koi=vf*vf*vf;lf(ai,pwt,de(yr,{brighter:function(n){return new ai(this.l+18*(null==n?1:n),this.a,this.b,this.opacity)},darker:function(n){return new ai(this.l-18*(null==n?1:n),this.a,this.b,this.opacity)},rgb:function(){var n=(this.l+16)/116,t=isNaN(this.a)?n:n+this.a/500,i=isNaN(this.b)?n:n-this.b/200;return t=tet*ty(t),n=iet*ty(n),i=ret*ty(i),new ut(iy(3.1338561*t-1.6168667*n-.4906146*i),iy(-.9787684*t+1.9161415*n+.033454*i),iy(.0719453*t-.2289914*n+1.4052427*i),this.opacity)}}));lf(er,bwt,de(yr,{brighter:function(n){return new er(this.h,this.c,this.l+18*(null==n?1:n),this.opacity)},darker:function(n){return new er(this.h,this.c,this.l-18*(null==n?1:n),this.opacity)},rgb:function(){return dg(this).rgb()}}));var wb=-.29227,ll=-.90649,rs=1.97294,eet=rs*ll,oet=1.78277*rs,set=1.78277*wb- -.14861*ll;lf(su,dwt,de(yr,{brighter:function(n){return n=null==n?1/.7:Math.pow(1/.7,n),new su(this.h,this.s,this.l*n,this.opacity)},darker:function(n){return n=null==n?.7:Math.pow(.7,n),new su(this.h,this.s,this.l*n,this.opacity)},rgb:function(){var r=isNaN(this.h)?0:(this.h+120)*gft,n=+this.l,t=isNaN(this.s)?0:this.s*n*(1-n),i=Math.cos(r),u=Math.sin(r);return new ut(255*(n+t*(-.14861*i+1.78277*u)),255*(n+t*(wb*i+ll*u)),255*(n+t*rs*i),this.opacity)}}));var het=function(n,t){var i;return("number"==typeof t?l.o:t instanceof ge?l.r:(i=ge(t))?(t=i,l.r):l.v)(n,t)},doi=function(n,t){var i=wo(n),r="transform"===i?l.x:het;return this.attrTween(n,"function"==typeof t?(i.local?ubt:rbt)(i,r,bv(this,"attr."+n,t)):null==t?(i.local?nbt:gwt)(i):(i.local?ibt:tbt)(i,r,t))},goi=function(n,t){var i="attr."+n,r;if(arguments.length<2)return(i=this.tween(i))&&i._value;if(null==t)return this.tween(i,null);if("function"!=typeof t)throw new Error;return r=wo(n),this.tween(i,(r.local?obt:sbt)(r,t))},nsi=function(n){var t=this._id;return arguments.length?this.each(("function"==typeof n?hbt:cbt)(t,n)):ei(this.node(),t).delay},tsi=function(n){var t=this._id;return arguments.length?this.each(("function"==typeof n?lbt:abt)(t,n)):ei(this.node(),t).duration},isi=function(n){var t=this._id;return arguments.length?this.each(vbt(t,n)):ei(this.node(),t).ease},rsi=function(n){"function"!=typeof n&&(n=sb(n));for(var f=this._groups,e=f.length,o=new Array(e),t=0;t<e;++t)for(var i,u=f[t],s=u.length,h=o[t]=[],r=0;r<s;++r)(i=u[r])&&n.call(i,i.__data__,r,u)&&h.push(i);return new vi(o,this._parents,this._name,this._id)},usi=function(n){if(n._id!==this._id)throw new Error;for(var r=this._groups,e=n._groups,u=r.length,c=e.length,l=Math.min(u,c),f=new Array(u),t=0;t<l;++t)for(var o,s=r[t],a=e[t],h=s.length,v=f[t]=new Array(h),i=0;i<h;++i)(o=s[i]||a[i])&&(v[i]=o);for(;t<u;++t)f[t]=r[t];return new vi(f,this._parents,this._name,this._id)},fsi=function(n,t){var i=this._id;return arguments.length<2?ei(this.node(),i).on.on(n):this.each(pbt(i,n,t))},esi=function(){return this.on("end.remove",wbt(this._id))},osi=function(n){var s=this._name,u=this._id;"function"!=typeof n&&(n=tl(n));for(var h=this._groups,c=h.length,l=new Array(c),r=0;r<c;++r)for(var i,f,e=h[r],a=e.length,o=l[r]=new Array(a),t=0;t<a;++t)(i=e[t])&&(f=n.call(i,i.__data__,t,e))&&("__data__"in i&&(f.__data__=i.__data__),o[t]=f,cl(o[t],s,u,t,o,ei(i,u)));return new vi(l,this._parents,s,u)},ssi=function(n){var s=this._name,f=this._id;"function"!=typeof n&&(n=ob(n));for(var h=this._groups,v=h.length,c=[],l=[],e=0;e<v;++e)for(var t,o=h[e],y=o.length,i=0;i<y;++i)if(t=o[i]){for(var a,r=n.call(t,t.__data__,i,o),p=ei(t,f),u=0,w=r.length;u<w;++u)(a=r[u])&&cl(a,s,f,u,r,p);c.push(r);l.push(t)}return new vi(c,l,s,f)},hsi=sf.prototype.constructor,csi=function(){return new hsi(this._groups,this._parents)},lsi=function(n,t,i){var r="transform"==(n+="")?l.w:het;return null==t?this.styleTween(n,bbt(n,r)).on("end.style."+n,gg(n)):"function"==typeof t?this.styleTween(n,dbt(n,r,bv(this,"style."+n,t))).each(gbt(this._id,n)):this.styleTween(n,kbt(n,r,t),i).on("end.style."+n,null)},asi=function(n,t,i){var r="style."+(n+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(null==t)return this.tween(r,null);if("function"!=typeof t)throw new Error;return this.tween(r,tkt(n,t,null==i?"":i))},vsi=function(n){return this.tween("text","function"==typeof n?rkt(bv(this,"text",n)):ikt(null==n?"":n+""))},ysi=function(n){var t="text";if(arguments.length<1)return(t=this.tween(t))&&t._value;if(null==n)return this.tween(t,null);if("function"!=typeof n)throw new Error;return this.tween(t,fkt(n))},psi=function(){for(var n,e=this._name,s=this._id,o=tn(),i=this._groups,h=i.length,r=0;r<h;++r)for(var u,f=i[r],c=f.length,t=0;t<c;++t)(u=f[t])&&(n=ei(u,s),cl(u,e,o,t,f,{time:n.time+n.delay+n.duration,delay:0,duration:n.duration,ease:n.ease}));return new vi(i,this._parents,e,o)},wsi=function(){var i,n,t=this,r=t._id,u=t.size();return new Promise(function(f,e){var o={value:e},s={value:function(){0==--u&&f()}};t.each(function(){var t=fr(this,r),u=t.on;u!==i&&(n=(i=u).copy(),n._.cancel.push(o),n._.interrupt.push(o),n._.end.push(s));t.on=n})})},bsi=0,yf=sf.prototype;vi.prototype=nn.prototype={constructor:vi,select:osi,selectAll:ssi,filter:rsi,merge:usi,selection:csi,transition:psi,call:yf.call,nodes:yf.nodes,node:yf.node,size:yf.size,empty:yf.empty,each:yf.each,on:fsi,attr:doi,attrTween:goi,style:lsi,styleTween:asi,text:vsi,textTween:ysi,remove:esi,tween:coi,delay:nsi,duration:tsi,ease:isi,end:wsi};var ksi=function n(t){function i(n){return Math.pow(n,t)}return t=+t,i.exponent=n,i}(3),dsi=function n(t){function i(n){return 1-Math.pow(1-n,t)}return t=+t,i.exponent=n,i}(3),cet=function n(t){function i(n){return((n*=2)<=1?Math.pow(n,t):2-Math.pow(2-n,t))/2}return t=+t,i.exponent=n,i}(3),aet=Math.PI,vet=aet/2,bb=4/11,gsi=6/11,nhi=8/11,thi=.75,ihi=9/11,rhi=10/11,uhi=.9375,fhi=21/22,ehi=63/64,al=1/bb/bb,ohi=function n(t){function i(n){return(n=+n)*n*(t*(n-1)+n)}return t=+t,i.overshoot=n,i}(1.70158),shi=function n(t){function i(n){return--n*n*((n+1)*t+n)+1}return t=+t,i.overshoot=n,i}(1.70158),yet=function n(t){function i(n){return((n*=2)<1?n*n*((t+1)*n-t):(n-=2)*n*((t+1)*n+t)+2)/2}return t=+t,i.overshoot=n,i}(1.70158),pf=2*Math.PI,hhi=function n(t,i){function r(n){return t*pr(- --n)*Math.sin((u-n)/i)}var u=Math.asin(1/(t=Math.max(1,t)))*(i/=pf);return r.amplitude=function(t){return n(t,i*pf)},r.period=function(i){return n(t,i)},r}(1,.3),pet=function n(t,i){function r(n){return 1-t*pr(n=+n)*Math.sin((n+u)/i)}var u=Math.asin(1/(t=Math.max(1,t)))*(i/=pf);return r.amplitude=function(t){return n(t,i*pf)},r.period=function(i){return n(t,i)},r}(1,.3),chi=function n(t,i){function r(n){return((n=2*n-1)<0?t*pr(-n)*Math.sin((u-n)/i):2-t*pr(n)*Math.sin((u+n)/i))/2}var u=Math.asin(1/(t=Math.max(1,t)))*(i/=pf);return r.amplitude=function(t){return n(t,i*pf)},r.period=function(i){return n(t,i)},r}(1,.3),kb={time:null,delay:0,duration:250,ease:uy},lhi=function(n){var t,o;n instanceof vi?(t=n._id,n=n._name):(t=tn(),(o=kb).time=tf(),n=null==n?null:n+"");for(var r=this._groups,s=r.length,u=0;u<s;++u)for(var f,e=r[u],h=e.length,i=0;i<h;++i)(f=e[i])&&cl(f,n,t,i,e,o||dkt(f,t));return new vi(r,this._parents,n,t)};sf.prototype.interrupt=hoi;sf.prototype.transition=lhi;var ahi=[null],vhi=function(n,t){var u,i,r=n.__transition;if(r){t=null==t?null:t+"";for(i in r)if((u=r[i]).state>vb&&u.name===t)return new vi([[n]],ahi,t,+i)}return null},db=function(n){return function(){return n}},yhi=function(n,t,i){this.target=n;this.type=t;this.selection=i},gb=function(){r.preventDefault();r.stopImmediatePropagation()},wet={name:"drag"},nk={name:"space"},wf={name:"handle"},bf={name:"center"},vl={name:"x",handles:["w","e"].map(to),input:function(n,t){return null==n?null:[[+n[0],t[0][1]],[+n[1],t[1][1]]]},output:function(n){return n&&[n[0][0],n[1][0]]}},yl={name:"y",handles:["n","s"].map(to),input:function(n,t){return null==n?null:[[t[0][0],+n[0]],[t[1][0],+n[1]]]},output:function(n){return n&&[n[0][1],n[1][1]]}},phi={name:"xy",handles:["n","w","e","s","nw","ne","sw","se"].map(to),input:function(n){return null==n?null:fy(n)},output:function(n){return n}},hr={overlay:"crosshair",selection:"move",n:"ns-resize",e:"ew-resize",s:"ns-resize",w:"ew-resize",nw:"nwse-resize",ne:"nesw-resize",se:"nwse-resize",sw:"nesw-resize"},bet={e:"w",w:"e",nw:"ne",ne:"nw",se:"sw",sw:"se"},ket={n:"s",s:"n",nw:"sw",ne:"se",se:"ne",sw:"nw"},whi={overlay:1,selection:1,n:null,e:1,s:null,w:-1,nw:-1,ne:1,se:1,sw:-1},bhi={overlay:1,selection:1,n:-1,e:null,s:1,w:null,nw:-1,ne:-1,se:1,sw:1},khi=function(){return oy(phi)},det=Math.cos,get=Math.sin,not=Math.PI,pl=not/2,tot=2*not,iot=Math.max,dhi=function(){function n(n){for(var o,d,g,s,f=n.length,y=[],nt=Object(h.s)(f),w=[],p=[],it=p.groups=new Array(f),b=new Array(f*f),a,v,l=0,e=-1;++e<f;){for(o=0,s=-1;++s<f;)o+=n[e][s];y.push(o);w.push(Object(h.s)(f));l+=o}for(r&&nt.sort(function(n,t){return r(y[n],y[t])}),u&&w.forEach(function(t,i){t.sort(function(t,r){return u(n[i][t],n[i][r])})}),l=iot(0,tot-i*f)/l,g=l?i:tot/f,o=0,e=-1;++e<f;){for(d=o,s=-1;++s<f;){var c=nt[e],k=w[c][s],tt=n[c][k],rt=o,ut=o+=tt*l;b[k*f+c]={index:c,subindex:k,startAngle:rt,endAngle:ut,value:tt}}it[c]={index:c,startAngle:d,endAngle:o,value:y[c]};o+=g}for(e=-1;++e<f;)for(s=e-1;++s<f;)a=b[s*f+e],v=b[e*f+s],(a.value||v.value)&&p.push(a.value<v.value?{source:v,target:a}:{source:a,target:v});return t?p.sort(t):p}var i=0,r=null,u=null,t=null;return n.padAngle=function(t){return arguments.length?(i=iot(0,t),n):i},n.sortGroups=function(t){return arguments.length?(r=t,n):r},n.sortSubgroups=function(t){return arguments.length?(u=t,n):u},n.sortChords=function(i){return arguments.length?(null==i?t=null:(t=odt(i))._=i,n):t&&t._},n},ghi=Array.prototype.slice,tk=function(n){return function(){return n}},ik=Math.PI,rk=2*ik,nci=rk-1e-6;sy.prototype=hn.prototype={constructor:sy,moveTo:function(n,t){this._+="M"+(this._x0=this._x1=+n)+","+(this._y0=this._y1=+t)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(n,t){this._+="L"+(this._x1=+n)+","+(this._y1=+t)},quadraticCurveTo:function(n,t,i,r){this._+="Q"+ +n+","+ +t+","+(this._x1=+i)+","+(this._y1=+r)},bezierCurveTo:function(n,t,i,r,u,f){this._+="C"+ +n+","+ +t+","+ +i+","+ +r+","+(this._x1=+u)+","+(this._y1=+f)},arcTo:function(n,t,i,r,u){n=+n;t=+t;i=+i;r=+r;u=+u;var v=this._x1,y=this._y1,o=i-n,s=r-t,f=v-n,e=y-t,h=f*f+e*e;if(u<0)throw new Error("negative radius: "+u);if(null===this._x1)this._+="M"+(this._x1=n)+","+(this._y1=t);else if(h>1e-6)if(Math.abs(e*o-s*f)>1e-6&&u){var c=i-v,l=r-y,p=o*o+s*s,g=c*c+l*l,w=Math.sqrt(p),b=Math.sqrt(h),k=u*Math.tan((ik-Math.acos((p+h-g)/(2*w*b)))/2),a=k/b,d=k/w;Math.abs(a-1)>1e-6&&(this._+="L"+(n+a*f)+","+(t+a*e));this._+="A"+u+","+u+",0,0,"+ +(e*c>f*l)+","+(this._x1=n+d*o)+","+(this._y1=t+d*s)}else this._+="L"+(this._x1=n)+","+(this._y1=t)},arc:function(n,t,i,r,u,f){n=+n;t=+t;i=+i;f=!!f;var c=i*Math.cos(r),l=i*Math.sin(r),o=n+c,s=t+l,h=1^f,e=f?r-u:u-r;if(i<0)throw new Error("negative radius: "+i);null===this._x1?this._+="M"+o+","+s:(Math.abs(this._x1-o)>1e-6||Math.abs(this._y1-s)>1e-6)&&(this._+="L"+o+","+s);i&&(e<0&&(e=e%rk+rk),e>nci?this._+="A"+i+","+i+",0,1,"+h+","+(n-c)+","+(t-l)+"A"+i+","+i+",0,1,"+h+","+(this._x1=o)+","+(this._y1=s):e>1e-6&&(this._+="A"+i+","+i+",0,"+ +(e>=ik)+","+h+","+(this._x1=n+i*Math.cos(u))+","+(this._y1=t+i*Math.sin(u))))},rect:function(n,t,i,r){this._+="M"+(this._x0=this._x1=+n)+","+(this._y0=this._y1=+t)+"h"+ +i+"v"+ +r+"h"+-i+"Z"},toString:function(){return this._}};var bu=hn,tci=function(){function n(){var h,n=ghi.call(arguments),w=f.apply(this,n),b=e.apply(this,n),c=+i.apply(this,(n[0]=w,n)),o=r.apply(this,n)-pl,a=u.apply(this,n)-pl,v=c*det(o),y=c*get(o),l=+i.apply(this,(n[0]=b,n)),s=r.apply(this,n)-pl,p=u.apply(this,n)-pl;if(t||(t=h=bu()),t.moveTo(v,y),t.arc(0,0,c,o,a),o===s&&a===p||(t.quadraticCurveTo(0,0,l*det(s),l*get(s)),t.arc(0,0,l,s,p)),t.quadraticCurveTo(0,0,v,y),t.closePath(),h)return t=null,h+""||null}var f=sdt,e=hdt,i=cdt,r=ldt,u=adt,t=null;return n.radius=function(t){return arguments.length?(i="function"==typeof t?t:tk(+t),n):i},n.startAngle=function(t){return arguments.length?(r="function"==typeof t?t:tk(+t),n):r},n.endAngle=function(t){return arguments.length?(u="function"==typeof t?t:tk(+t),n):u},n.source=function(t){return arguments.length?(f=t,n):f},n.target=function(t){return arguments.length?(e=t,n):e},n.context=function(i){return arguments.length?(t=null==i?null:i,n):t},n},dr=i(186),kf=function(n,t,i){n.prototype=t.prototype=i;i.constructor=n},df="\\s*([+-]?\\d+)\\s*",us="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",gi="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",ici=/^#([0-9a-f]{3,8})$/,rci=new RegExp("^rgb\\("+[df,df,df]+"\\)$"),uci=new RegExp("^rgb\\("+[gi,gi,gi]+"\\)$"),fci=new RegExp("^rgba\\("+[df,df,df,us]+"\\)$"),eci=new RegExp("^rgba\\("+[gi,gi,gi,us]+"\\)$"),oci=new RegExp("^hsl\\("+[us,gi,gi]+"\\)$"),sci=new RegExp("^hsla\\("+[us,gi,gi,us]+"\\)$"),rot={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};kf(wr,ah,{copy:function(n){return Object.assign(new this.constructor,this,n)},displayable:function(){return this.rgb().displayable()},hex:cn,formatHex:cn,formatHsl:vdt,formatRgb:ln,toString:ln});kf(ft,vn,io(wr,{brighter:function(n){return n=null==n?1/.7:Math.pow(1/.7,n),new ft(this.r*n,this.g*n,this.b*n,this.opacity)},darker:function(n){return n=null==n?.7:Math.pow(.7,n),new ft(this.r*n,this.g*n,this.b*n,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:yn,formatHex:yn,formatRgb:pn,toString:pn}));kf(yi,kn,io(wr,{brighter:function(n){return n=null==n?1/.7:Math.pow(1/.7,n),new yi(this.h,this.s,this.l*n,this.opacity)},darker:function(n){return n=null==n?.7:Math.pow(.7,n),new yi(this.h,this.s,this.l*n,this.opacity)},rgb:function(){var n=this.h%360+360*(this.h<0),u=isNaN(n)||isNaN(this.s)?0:this.s,t=this.l,i=t+(t<.5?t:1-t)*u,r=2*t-i;return new ft(ly(n>=240?n-240:n+120,r,i),ly(n,r,i),ly(n<120?n+240:n-120,r,i),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var n=this.opacity;return n=isNaN(n)?1:Math.max(0,Math.min(1,n)),(1===n?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===n?")":", "+n+")")}}));var uot=Math.PI/180,fot=180/Math.PI,eot=.96422,oot=1,sot=.82521,hot=4/29,gf=6/29,cot=3*gf*gf,hci=gf*gf*gf;kf(oi,gn,io(wr,{brighter:function(n){return new oi(this.l+18*(null==n?1:n),this.a,this.b,this.opacity)},darker:function(n){return new oi(this.l-18*(null==n?1:n),this.a,this.b,this.opacity)},rgb:function(){var n=(this.l+16)/116,t=isNaN(this.a)?n:n+this.a/500,i=isNaN(this.b)?n:n-this.b/200;return t=eot*vy(t),n=oot*vy(n),i=sot*vy(i),new ft(yy(3.1338561*t-1.6168667*n-.4906146*i),yy(-.9787684*t+1.9161415*n+.033454*i),yy(.0719453*t-.2289914*n+1.4052427*i),this.opacity)}}));kf(pi,ttt,io(wr,{brighter:function(n){return new pi(this.h,this.c,this.l+18*(null==n?1:n),this.opacity)},darker:function(n){return new pi(this.h,this.c,this.l-18*(null==n?1:n),this.opacity)},rgb:function(){return itt(this).rgb()}}));var uk=-.29227,wl=-.90649,fs=1.97294,lot=fs*wl,aot=1.78277*fs,vot=1.78277*uk- -.14861*wl;kf(hu,rtt,io(wr,{brighter:function(n){return n=null==n?1/.7:Math.pow(1/.7,n),new hu(this.h,this.s,this.l*n,this.opacity)},darker:function(n){return n=null==n?.7:Math.pow(.7,n),new hu(this.h,this.s,this.l*n,this.opacity)},rgb:function(){var r=isNaN(this.h)?0:(this.h+120)*uot,n=+this.l,t=isNaN(this.s)?0:this.s*n*(1-n),i=Math.cos(r),u=Math.sin(r);return new ft(255*(n+t*(-.14861*i+1.78277*u)),255*(n+t*(uk*i+wl*u)),255*(n+t*fs*i),this.opacity)}}));var cci=Array.prototype,yot=cci.slice,lci=function(n,t){return n-t},aci=function(n){for(var t=0,i=n.length,r=n[i-1][1]*n[0][0]-n[i-1][0]*n[0][1];++t<i;)r+=n[t-1][1]*n[t][0]-n[t-1][0]*n[t][1];return r},ne=function(n){return function(){return n}},vci=function(n,t){for(var i,r=-1,u=t.length;++r<u;)if(i=bdt(n,t[r]))return i;return 0},yci=function(){},cr=[[],[[[1,1.5],[.5,1]]],[[[1.5,1],[1,1.5]]],[[[1.5,1],[.5,1]]],[[[1,.5],[1.5,1]]],[[[1,1.5],[.5,1]],[[1,.5],[1.5,1]]],[[[1,.5],[1,1.5]]],[[[1,.5],[.5,1]]],[[[.5,1],[1,.5]]],[[[1,1.5],[1,.5]]],[[[.5,1],[1,.5]],[[1.5,1],[1,1.5]]],[[[1.5,1],[1,.5]]],[[[.5,1],[1.5,1]]],[[[1,1.5],[1.5,1]]],[[[.5,1],[1,1.5]]],[]],pot=function(){function t(n){var t=u(n);if(Array.isArray(t))t=t.slice().sort(lci);else{var i=Object(h.i)(n),r=i[0],f=i[1];t=Object(h.A)(r,f,t);t=Object(h.s)(Math.floor(r/t)*t,Math.floor(f/t)*t,t)}return t.map(function(t){return e(n,t)})}function e(n,t){var i=[],r=[];return s(n,t,function(u){f(u,n,t);aci(u)>0?i.push([u]):r.push(u)}),r.forEach(function(n){for(var r,t=0,u=i.length;t<u;++t)if(-1!==vci((r=i[t])[0],n))return void r.push(n)}),{type:"MultiPolygon",value:t,coordinates:i}}function s(t,r,u){function c(n){var t,i,c=[n[0][0]+f,n[0][1]+h],r=[n[1][0]+f,n[1][1]+h],e=o(c),s=o(r);(t=a[e])?(i=l[s])?(delete a[t.end],delete l[i.start],t===i?(t.ring.push(r),u(t.ring)):l[t.start]=a[i.end]={start:t.start,end:i.end,ring:t.ring.concat(i.ring)}):(delete a[t.end],t.ring.push(r),a[t.end=s]=t):(t=l[s])?(i=a[e])?(delete l[t.start],delete a[i.end],t===i?(t.ring.push(r),u(t.ring)):l[i.start]=a[t.end]={start:i.start,end:t.end,ring:i.ring.concat(t.ring)}):(delete l[t.start],t.ring.unshift(c),l[t.start=e]=t):l[e]=a[s]={start:e,end:s,ring:[c,r]}}var f,h,v,e,s,y,l=[],a=[];for(f=h=-1,e=t[0]>=r,cr[e<<1].forEach(c);++f<n-1;)v=e,e=t[f+1]>=r,cr[v|e<<1].forEach(c);for(cr[e<<0].forEach(c);++h<i-1;){for(f=-1,e=t[h*n+n]>=r,s=t[h*n]>=r,cr[e<<1|s<<2].forEach(c);++f<n-1;)v=e,e=t[h*n+n+f+1]>=r,y=s,s=t[h*n+f+1]>=r,cr[v|e<<1|s<<2|y<<3].forEach(c);cr[e|s<<3].forEach(c)}for(f=-1,s=t[h*n]>=r,cr[s<<2].forEach(c);++f<n-1;)y=s,s=t[h*n+f+1]>=r,cr[s<<2|y<<3].forEach(c);cr[s<<3].forEach(c)}function o(t){return 2*t[0]+t[1]*(n+1)*4}function r(t,r,u){t.forEach(function(t){var f,e=t[0],o=t[1],s=0|e,h=0|o,c=r[h*n+s];e>0&&e<n&&s===e&&(f=r[h*n+s-1],t[0]=e+(u-f)/(c-f)-.5);o>0&&o<i&&h===o&&(f=r[(h-1)*n+s],t[1]=o+(u-f)/(c-f)-.5)})}var n=1,i=1,u=h.y,f=r;return t.contour=e,t.size=function(r){if(!arguments.length)return[n,i];var u=Math.ceil(r[0]),f=Math.ceil(r[1]);if(!(u>0&&f>0))throw new Error("invalid size");return n=u,i=f,t},t.thresholds=function(n){return arguments.length?(u="function"==typeof n?n:ne(Array.isArray(n)?yot.call(n):n),t):u},t.smooth=function(n){return arguments.length?(f=n?r:yci,t):f===r},t},pci=function(){function r(r){var e=new Float32Array(n*i),s=new Float32Array(n*i),o,p;return r.forEach(function(r,u,o){var s=+c(r,u,o)+f>>t,h=+l(r,u,o)+f>>t,v=+a(r,u,o);s>=0&&s<n&&h>=0&&h<i&&(e[s+h*n]+=v)}),wy({width:n,height:i,data:e},{width:n,height:i,data:s},u>>t),by({width:n,height:i,data:s},{width:n,height:i,data:e},u>>t),wy({width:n,height:i,data:e},{width:n,height:i,data:s},u>>t),by({width:n,height:i,data:s},{width:n,height:i,data:e},u>>t),wy({width:n,height:i,data:e},{width:n,height:i,data:s},u>>t),by({width:n,height:i,data:s},{width:n,height:i,data:e},u>>t),o=v(e),Array.isArray(o)||(p=Object(h.k)(e),o=Object(h.A)(0,p,o),o=Object(h.s)(0,Math.floor(p/o)*o,o),o.shift()),pot().thresholds(o).size([n,i])(e).map(y)}function y(n){return n.value*=Math.pow(2,-2*t),n.coordinates.forEach(p),n}function p(n){n.forEach(w)}function w(n){n.forEach(b)}function b(n){n[0]=n[0]*Math.pow(2,t)-f;n[1]=n[1]*Math.pow(2,t)-f}function s(){return f=3*u,n=e+2*f>>t,i=o+2*f>>t,r}var c=ngt,l=tgt,a=igt,e=960,o=500,u=20,t=2,f=3*u,n=e+2*f>>t,i=o+2*f>>t,v=ne(20);return r.x=function(n){return arguments.length?(c="function"==typeof n?n:ne(+n),r):c},r.y=function(n){return arguments.length?(l="function"==typeof n?n:ne(+n),r):l},r.weight=function(n){return arguments.length?(a="function"==typeof n?n:ne(+n),r):a},r.size=function(n){if(!arguments.length)return[e,o];var t=Math.ceil(n[0]),i=Math.ceil(n[1]);if(!(t>=0||t>=0))throw new Error("invalid size");return e=t,o=i,s()},r.cellSize=function(n){if(!arguments.length)return 1<<t;if(!((n=+n)>=1))throw new Error("invalid cell size");return t=Math.floor(Math.log(n)/Math.LN2),s()},r.thresholds=function(n){return arguments.length?(v="function"==typeof n?n:ne(Array.isArray(n)?yot.call(n):n),r):v},r.bandwidth=function(n){if(!arguments.length)return Math.sqrt(u*(u+1));if(!((n=+n)>=0))throw new Error("invalid bandwidth");return u=Math.round((Math.sqrt(4*n*n+1)-1)/2),s()},r},wot={},fk={},ek=34,es=10,ok=13,bl=function(n){function f(n,t){var r,u,f=i(n,function(n,i){if(r)return r(n,i-1);u=n;r=t?rgt(n,t):utt(n)});return f.columns=u||[],f}function i(n,t){function s(){if(o)return fk;if(u)return u=!1,wot;var f,t,e=i;if(n.charCodeAt(e)===ek){for(;i++<r&&n.charCodeAt(i)!==ek||n.charCodeAt(++i)===ek;);return(f=i)>=r?o=!0:(t=n.charCodeAt(i++))===es?u=!0:t===ok&&(u=!0,n.charCodeAt(i)===es&&++i),n.slice(e+1,f-1).replace(/""/g,'"')}for(;i<r;){if((t=n.charCodeAt(f=i++))===es)u=!0;else if(t===ok)u=!0,n.charCodeAt(i)===es&&++i;else if(t!==c)continue;return n.slice(e,f)}return o=!0,n.slice(e,r)}var f,h=[],r=n.length,i=0,l=0,o=r<=0,u=!1,e;for(n.charCodeAt(r-1)===es&&--r,n.charCodeAt(r-1)===ok&&--r;(f=s())!==fk;){for(e=[];f!==wot&&f!==fk;)e.push(f),f=s();t&&null==(e=t(e,l++))||h.push(e)}return h}function r(i,r){return i.map(function(i){return r.map(function(n){return t(i[n])}).join(n)})}function e(i,u){return null==u&&(u=ftt(i)),[u.map(t).join(n)].concat(r(i,u)).join("\n")}function o(n,t){return null==t&&(t=ftt(n)),r(n,t).join("\n")}function s(n){return n.map(u).join("\n")}function u(i){return i.map(t).join(n)}function t(n){return null==n?"":n instanceof Date?fgt(n):h.test(n+="")?'"'+n.replace(/"/g,'""')+'"':n}var h=new RegExp('["'+n+"\n\r]"),c=n.charCodeAt(0);return{parse:f,parseRows:i,format:e,formatBody:o,formatRows:s,formatRow:u,formatValue:t}},ku=bl(","),bot=ku.parse,wci=ku.parseRows,bci=ku.format,kci=ku.formatBody,dci=ku.formatRows,gci=ku.formatRow,nli=ku.formatValue,du=bl("\t"),kot=du.parse,tli=du.parseRows,ili=du.format,rli=du.formatBody,uli=du.formatRows,fli=du.formatRow,eli=du.formatValue,oli=new Date("2019-01-01T00:00").getHours()||new Date("2019-07-01T00:00").getHours(),sli=function(n,t){return fetch(n,t).then(ogt)},hli=function(n,t){return fetch(n,t).then(sgt)},kl=function(n,t){return fetch(n,t).then(hgt)},cli=ett(bot),lli=ett(kot),ali=function(n,t){return new Promise(function(i,r){var u=new Image,f;for(f in t)u[f]=t[f];u.onerror=r;u.onload=function(){i(u)};u.src=n})},vli=function(n,t){return fetch(n,t).then(lgt)},yli=ky("application/xml"),pli=ky("text/html"),wli=ky("image/svg+xml"),bli=function(n,t){function i(){for(var u,f=r.length,e=0,o=0,i=0;i<f;++i)u=r[i],e+=u.x,o+=u.y;for(e=e/f-n,o=o/f-t,i=0;i<f;++i)u=r[i],u.x-=e,u.y-=o}var r;return null==n&&(n=0),null==t&&(t=0),i.initialize=function(n){r=n},i.x=function(t){return arguments.length?(n=+t,i):n},i.y=function(n){return arguments.length?(t=+n,i):t},i},rt=function(n){return function(){return n}},gr=function(){return 1e-6*(Math.random()-.5)},kli=function(n){var t=+this._x.call(null,n),i=+this._y.call(null,n);return ott(this.cover(t,i),t,i,n)},dli=function(n,t){var s,h,r,o;if(isNaN(n=+n)||isNaN(t=+t))return this;var i=this._x0,u=this._y0,f=this._x1,e=this._y1;if(isNaN(i))f=(i=Math.floor(n))+1,e=(u=Math.floor(t))+1;else{for(r=f-i,o=this._root;i>n||n>=f||u>t||t>=e;)switch(h=(t<u)<<1|n<i,s=new Array(4),s[h]=o,o=s,r*=2,h){case 0:f=i+r;e=u+r;break;case 1:i=f-r;e=u+r;break;case 2:f=i+r;u=e-r;break;case 3:i=f-r;u=e-r}this._root&&this._root.length&&(this._root=o)}return this._x0=i,this._y0=u,this._x1=f,this._y1=e,this},gli=function(){var n=[];return this.visit(function(t){if(!t.length)do n.push(t.data);while(t=t.next)}),n},nai=function(n){return arguments.length?this.cover(+n[0][0],+n[0][1]).cover(+n[1][0],+n[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]},at=function(n,t,i,r,u){this.node=n;this.x0=t;this.y0=i;this.x1=r;this.y1=u},tai=function(n,t,i){var k,h,c,l,a,f,b,v=this._x0,y=this._y0,p=this._x1,w=this._y1,r=[],u=this._root,e,o,s;for(u&&r.push(new at(u,v,y,p,w)),null==i?i=1/0:(v=n-i,y=t-i,p=n+i,w=t+i,i*=i);f=r.pop();)if(!(!(u=f.node)||(h=f.x0)>p||(c=f.y0)>w||(l=f.x1)<v||(a=f.y1)<y))if(u.length)e=(h+l)/2,o=(c+a)/2,r.push(new at(u[3],e,o,l,a),new at(u[2],h,o,e,a),new at(u[1],e,c,l,o),new at(u[0],h,c,e,o)),(b=(t>=o)<<1|n>=e)&&(f=r[r.length-1],r[r.length-1]=r[r.length-1-b],r[r.length-1-b]=f);else{var d=n-+this._x.call(null,u.data),g=t-+this._y.call(null,u.data),nt=d*d+g*g;nt<i&&(s=Math.sqrt(i=nt),v=n-s,y=t-s,p=n+s,w=t+s,k=u.data)}return k},iai=function(n){if(isNaN(h=+this._x.call(null,n))||isNaN(c=+this._y.call(null,n)))return this;var i,e,f,u,h,c,o,s,l,a,r,v,t=this._root,y=this._x0,p=this._y0,w=this._x1,b=this._y1;if(!t)return this;if(t.length)for(;;){if((l=h>=(o=(y+w)/2))?y=o:w=o,(a=c>=(s=(p+b)/2))?p=s:b=s,i=t,!(t=t[r=a<<1|l]))return this;if(!t.length)break;(i[r+1&3]||i[r+2&3]||i[r+3&3])&&(e=i,v=r)}for(;t.data!==n;)if(f=t,!(t=t.next))return this;return(u=t.next)&&delete t.next,f?(u?f.next=u:delete f.next,this):i?(u?i[r]=u:delete i[r],(t=i[0]||i[1]||i[2]||i[3])&&t===(i[3]||i[2]||i[1]||i[0])&&!t.length&&(e?e[v]=t:this._root=t),this):(this._root=u,this)},rai=function(){return this._root},uai=function(){var n=0;return this.visit(function(t){if(!t.length)do++n;while(t=t.next)}),n},fai=function(n){var r,t,o,s,h,c,u=[],i=this._root,f,e;for(i&&u.push(new at(i,this._x0,this._y0,this._x1,this._y1));r=u.pop();)!n(i=r.node,o=r.x0,s=r.y0,h=r.x1,c=r.y1)&&i.length&&(f=(o+h)/2,e=(s+c)/2,(t=i[3])&&u.push(new at(t,f,e,h,c)),(t=i[2])&&u.push(new at(t,o,e,f,c)),(t=i[1])&&u.push(new at(t,f,s,h,e)),(t=i[0])&&u.push(new at(t,o,s,f,e)));return this},eai=function(n){var t,r=[],l=[],u;for(this._root&&r.push(new at(this._root,this._x0,this._y0,this._x1,this._y1));t=r.pop();){if(u=t.node,u.length){var i,o=t.x0,s=t.y0,h=t.x1,c=t.y1,f=(o+h)/2,e=(s+c)/2;(i=u[0])&&r.push(new at(i,o,s,f,e));(i=u[1])&&r.push(new at(i,f,s,h,e));(i=u[2])&&r.push(new at(i,o,e,f,c));(i=u[3])&&r.push(new at(i,f,e,h,c))}l.push(t)}for(;t=l.pop();)n(t.node,t.x0,t.y0,t.x1,t.y1);return this},oai=function(n){return arguments.length?(this._x=n,this):this._x},sai=function(n){return arguments.length?(this._y=n,this):this._y},vt=yh.prototype=dy.prototype;vt.copy=function(){var u,r,i=new dy(this._x,this._y,this._x0,this._y0,this._x1,this._y1),n=this._root,t;if(!n)return i;if(!n.length)return i._root=stt(n),i;for(u=[{source:n,target:i._root=new Array(4)}];n=u.pop();)for(t=0;t<4;++t)(r=n.source[t])&&(r.length?u.push({source:r,target:n.target[t]=new Array(4)}):n.target[t]=stt(r));return i};vt.add=kli;vt.addAll=agt;vt.cover=dli;vt.data=gli;vt.extent=nai;vt.find=tai;vt.remove=iai;vt.removeAll=vgt;vt.root=rai;vt.size=uai;vt.visit=fai;vt.visitAfter=eai;vt.x=oai;vt.y=sai;var hai=function(n){function t(){function v(t,i,r,f,o){var v=t.data,w=t.r,c=h+w;if(!v)return i>e+c||f<e-c||r>s+c||o<s-c;if(v.index>n.index){var y=e-v.x-v.vx,p=s-v.y-v.vy,a=y*y+p*p;a<c*c&&(0===y&&(y=gr(),a+=y*y),0===p&&(p=gr(),a+=p*p),a=(c-(a=Math.sqrt(a)))/a*u,n.vx+=(y*=a)*(c=(w*=w)/(l+w)),n.vy+=(p*=a)*c,v.vx-=y*(c=1-c),v.vy-=p*c)}}for(var t,c,n,e,s,h,l,y=i.length,a=0;a<f;++a)for(c=yh(i,wgt,bgt).visitAfter(o),t=0;t<y;++t)n=i[t],h=r[n.index],l=h*h,e=n.x+n.vx,s=n.y+n.vy,c.visit(v)}function o(n){if(n.data)return n.r=r[n.data.index];for(var t=n.r=0;t<4;++t)n[t]&&n[t].r>n.r&&(n.r=n[t].r)}function e(){if(i){var t,u,f=i.length;for(r=new Array(f),t=0;t<f;++t)u=i[t],r[u.index]=+n(u,t,i)}}var i,r,u=1,f=1;return"function"!=typeof n&&(n=rt(null==n?1:+n)),t.initialize=function(n){i=n;e()},t.iterations=function(n){return arguments.length?(f=+n,t):f},t.strength=function(n){return arguments.length?(u=+n,t):u},t.radius=function(i){return arguments.length?(n="function"==typeof i?i:rt(+i),e(),t):n},t},cai=function(n){function y(n){return 1/Math.min(i[n.source.index],i[n.target.index])}function t(t){for(var y,i,r,s,h,l,a,o,v=0,p=n.length;v<c;++v)for(o=0;o<p;++o)y=n[o],i=y.source,r=y.target,s=r.x+r.vx-i.x-i.vx||gr(),h=r.y+r.vy-i.y-i.vy||gr(),l=Math.sqrt(s*s+h*h),l=(l-f[o])/l*t*u[o],s*=l,h*=l,r.vx-=s*(a=e[o]),r.vy-=h*a,i.vx+=s*(a=1-a),i.vy+=h*a}function l(){if(r){var s,t,l=r.length,h=n.length,c=Object(dr.c)(r,o);for(s=0,i=new Array(l);s<h;++s)t=n[s],t.index=s,"object"!=typeof t.source&&(t.source=htt(c,t.source)),"object"!=typeof t.target&&(t.target=htt(c,t.target)),i[t.source.index]=(i[t.source.index]||0)+1,i[t.target.index]=(i[t.target.index]||0)+1;for(s=0,e=new Array(h);s<h;++s)t=n[s],e[s]=i[t.source.index]/(i[t.source.index]+i[t.target.index]);u=new Array(h);a();f=new Array(h);v()}}function a(){if(r)for(var t=0,i=n.length;t<i;++t)u[t]=+s(n[t],t,n)}function v(){if(r)for(var t=0,i=n.length;t<i;++t)f[t]=+h(n[t],t,n)}var u,f,r,i,e,o=kgt,s=y,h=rt(30),c=1;return null==n&&(n=[]),t.initialize=function(n){r=n;l()},t.links=function(i){return arguments.length?(n=i,l(),t):n},t.id=function(n){return arguments.length?(o=n,t):o},t.iterations=function(n){return arguments.length?(c=+n,t):c},t.strength=function(n){return arguments.length?(s="function"==typeof n?n:rt(+n),a(),t):s},t.distance=function(n){return arguments.length?(h="function"==typeof n?n:rt(+n),v(),t):h},t},lai=10,aai=Math.PI*(3-Math.sqrt(5)),vai=function(n){function c(){l();e.call("tick",t);i<u&&(h.stop(),e.call("end",t))}function l(u){var h,e,l=n.length,c;for(void 0===u&&(u=1),c=0;c<u;++c)for(i+=(s-i)*o,r.each(function(n){n(i)}),h=0;h<l;++h)e=n[h],null==e.fx?e.x+=e.vx*=f:(e.x=e.fx,e.vx=0),null==e.fy?e.y+=e.vy*=f:(e.y=e.fy,e.vy=0);return t}function a(){for(var t,r,u,i=0,f=n.length;i<f;++i)(t=n[i],t.index=i,null!=t.fx&&(t.x=t.fx),null!=t.fy&&(t.y=t.fy),isNaN(t.x)||isNaN(t.y))&&(r=lai*Math.sqrt(i),u=i*aai,t.x=r*Math.cos(u),t.y=r*Math.sin(u)),(isNaN(t.vx)||isNaN(t.vy))&&(t.vx=t.vy=0)}function v(t){return t.initialize&&t.initialize(n),t}var t,i=1,u=.001,o=1-Math.pow(u,1/300),s=0,f=.6,r=Object(dr.c)(),h=ch(c),e=of("tick","end");return null==n&&(n=[]),a(),t={tick:l,restart:function(){return h.restart(c),t},stop:function(){return h.stop(),t},nodes:function(i){return arguments.length?(n=i,a(),r.each(v),t):n},alpha:function(n){return arguments.length?(i=+n,t):i},alphaMin:function(n){return arguments.length?(u=+n,t):u},alphaDecay:function(n){return arguments.length?(o=+n,t):+o},alphaTarget:function(n){return arguments.length?(s=+n,t):s},velocityDecay:function(n){return arguments.length?(f=1-n,t):1-f},force:function(n,i){return arguments.length>1?(null==i?r.remove(n):r.set(n,v(i)),t):r.get(n)},find:function(t,i,r){var e,o,s,u,h,f=0,c=n.length;for(null==r?r=1/0:r*=r,f=0;f<c;++f)u=n[f],e=t-u.x,o=i-u.y,(s=e*e+o*o)<r&&(h=u,r=s);return h},on:function(n,i){return arguments.length>1?(e.on(n,i),t):e.on(n)}}},yai=function(){function n(n){var r,f=i.length,e=yh(i,dgt,ggt).visitAfter(c);for(u=n,r=0;r<f;++r)t=i[r],e.visit(l)}function h(){if(i){var n,t,r=i.length;for(f=new Array(r),n=0;n<r;++n)t=i[n],f[t.index]=+o(t,n,i)}}function c(n){var t,i,u,e,r,o=0,s=0;if(n.length){for(u=e=r=0;r<4;++r)(t=n[r])&&(i=Math.abs(t.value))&&(o+=t.value,s+=i,u+=i*t.x,e+=i*t.y);n.x=u/s;n.y=e/s}else{t=n;t.x=t.data.x;t.y=t.data.y;do o+=f[t.data.index];while(t=t.next)}n.value=o}function l(n,i,o,h){if(!n.value)return!0;var l=n.x-t.x,a=n.y-t.y,v=h-i,c=l*l+a*a;if(v*v/s<c)return c<e&&(0===l&&(l=gr(),c+=l*l),0===a&&(a=gr(),c+=a*a),c<r&&(c=Math.sqrt(r*c)),t.vx+=l*n.value*u/c,t.vy+=a*n.value*u/c),!0;if(!(n.length||c>=e)){(n.data!==t||n.next)&&(0===l&&(l=gr(),c+=l*l),0===a&&(a=gr(),c+=a*a),c<r&&(c=Math.sqrt(r*c)));do n.data!==t&&(v=f[n.data.index]*u/c,t.vx+=l*v,t.vy+=a*v);while(n=n.next)}}var i,t,u,f,o=rt(-30),r=1,e=1/0,s=.81;return n.initialize=function(n){i=n;h()},n.strength=function(t){return arguments.length?(o="function"==typeof t?t:rt(+t),h(),n):o},n.distanceMin=function(t){return arguments.length?(r=t*t,n):Math.sqrt(r)},n.distanceMax=function(t){return arguments.length?(e=t*t,n):Math.sqrt(e)},n.theta=function(t){return arguments.length?(s=t*t,n):Math.sqrt(s)},n},pai=function(n,t,i){function r(n){for(var r=0,c=u.length;r<c;++r){var e=u[r],s=e.x-t||1e-6,h=e.y-i||1e-6,l=Math.sqrt(s*s+h*h),a=(f[r]-l)*o[r]*n/l;e.vx+=s*a;e.vy+=h*a}}function e(){if(u){var t,i=u.length;for(o=new Array(i),f=new Array(i),t=0;t<i;++t)f[t]=+n(u[t],t,u),o[t]=isNaN(f[t])?0:+s(u[t],t,u)}}var u,o,f,s=rt(.1);return"function"!=typeof n&&(n=rt(+n)),null==t&&(t=0),null==i&&(i=0),r.initialize=function(n){u=n;e()},r.strength=function(n){return arguments.length?(s="function"==typeof n?n:rt(+n),e(),r):s},r.radius=function(t){return arguments.length?(n="function"==typeof t?t:rt(+t),e(),r):n},r.x=function(n){return arguments.length?(t=+n,r):t},r.y=function(n){return arguments.length?(i=+n,r):i},r},wai=function(n){function i(n){for(var r,i=0,e=t.length;i<e;++i)r=t[i],r.vx+=(f[i]-r.x)*u[i]*n}function r(){if(t){var i,r=t.length;for(u=new Array(r),f=new Array(r),i=0;i<r;++i)u[i]=isNaN(f[i]=+n(t[i],i,t))?0:+e(t[i],i,t)}}var t,u,f,e=rt(.1);return"function"!=typeof n&&(n=rt(null==n?0:+n)),i.initialize=function(n){t=n;r()},i.strength=function(n){return arguments.length?(e="function"==typeof n?n:rt(+n),r(),i):e},i.x=function(t){return arguments.length?(n="function"==typeof t?t:rt(+t),r(),i):n},i},bai=function(n){function i(n){for(var r,i=0,e=t.length;i<e;++i)r=t[i],r.vy+=(f[i]-r.y)*u[i]*n}function r(){if(t){var i,r=t.length;for(u=new Array(r),f=new Array(r),i=0;i<r;++i)u[i]=isNaN(f[i]=+n(t[i],i,t))?0:+e(t[i],i,t)}}var t,u,f,e=rt(.1);return"function"!=typeof n&&(n=rt(null==n?0:+n)),i.initialize=function(n){t=n;r()},i.strength=function(n){return arguments.length?(e="function"==typeof n?n:rt(+n),r(),i):e},i.y=function(t){return arguments.length?(n="function"==typeof t?t:rt(+t),r(),i):n},i},lr=i(232),nu=function(){return new ph};ph.prototype={constructor:ph,reset:function(){this.s=this.t=0},add:function(n){ctt(fa,n,this.t);ctt(this,fa.s,this.s);this.s?this.t+=fa.t:this.s=fa.t},valueOf:function(){return this.s}};var dot,got,sk,hk,ck,g,ni,nt,ii,gu,nst,tst,te,tu,ar,os,dl,gl,na,ta,ia,ra,ua,lk,ak,vk,ist,rst,yt,pt,wt,fa=new ph,o=1e-6,ea=1e-12,a=Math.PI,tt=a/2,oa=a/4,bt=2*a,w=180/a,s=a/180,y=Math.abs,ie=Math.atan,kt=Math.atan2,e=Math.cos,sa=Math.ceil,ust=Math.exp,ha=(Math.floor,Math.log),yk=Math.pow,u=Math.sin,ui=Math.sign||function(n){return n>0?1:n<0?-1:0},it=Math.sqrt,pk=Math.tan,fst={Feature:function(n,t){wh(n.geometry,t)},FeatureCollection:function(n,t){for(var i=n.features,r=-1,u=i.length;++r<u;)wh(i[r].geometry,t)}},est={Sphere:function(n,t){t.sphere()},Point:function(n,t){n=n.coordinates;t.point(n[0],n[1],n[2])},MultiPoint:function(n,t){for(var i=n.coordinates,r=-1,u=i.length;++r<u;)n=i[r],t.point(n[0],n[1],n[2])},LineString:function(n,t){gy(n.coordinates,t,0)},MultiLineString:function(n,t){for(var i=n.coordinates,r=-1,u=i.length;++r<u;)gy(i[r],t,0)},Polygon:function(n,t){vtt(n.coordinates,t)},MultiPolygon:function(n,t){for(var i=n.coordinates,r=-1,u=i.length;++r<u;)vtt(i[r],t)},GeometryCollection:function(n,t){for(var i=n.geometries,r=-1,u=i.length;++r<u;)wh(i[r],t)}},si=function(n,t){n&&fst.hasOwnProperty(n.type)?fst[n.type](n,t):wh(n,t)},ca=nu(),la=nu(),nr={point:d,lineStart:d,lineEnd:d,polygonStart:function(){ca.reset();nr.lineStart=nnt;nr.lineEnd=tnt},polygonEnd:function(){var n=+ca;la.add(n<0?bt+n:n);this.lineStart=this.lineEnd=this.point=d},sphere:function(){la.add(bt)}},kai=function(n){return la.reset(),si(n,nr),2*la},ss=nu(),vr={point:tp,lineStart:wtt,lineEnd:btt,polygonStart:function(){vr.point=ktt;vr.lineStart=rnt;vr.lineEnd=unt;ss.reset();nr.polygonStart()},polygonEnd:function(){nr.polygonEnd();vr.point=tp;vr.lineStart=wtt;vr.lineEnd=btt;ca<0?(g=-(nt=180),ni=-(ii=90)):ss>o?ii=90:ss<-o&&(ni=-90);ar[0]=g;ar[1]=nt},sphere:function(){g=-(nt=180);ni=-(ii=90)}},dai=function(n){var r,u,t,i,f,e,o;if(ii=nt=-(g=ni=1/0),tu=[],si(n,vr),u=tu.length){for(tu.sort(fnt),r=1,t=tu[0],f=[t];r<u;++r)i=tu[r],dtt(t,i[0])||dtt(t,i[1])?(ti(t[0],i[1])>ti(t[0],t[1])&&(t[1]=i[1]),ti(i[0],t[1])>ti(t[0],t[1])&&(t[0]=i[0])):f.push(t=i);for(e=-1/0,u=f.length-1,r=0,t=f[u];r<=u;t=i,++r)i=f[r],(o=ti(t[1],i[0]))>e&&(e=o,g=i[0],nt=t[1])}return tu=ar=null,g===1/0||ni===1/0?[[NaN,NaN],[NaN,NaN]]:[[g,ni],[nt,ii]]},hi={sphere:d,point:ip,lineStart:gtt,lineEnd:nit,polygonStart:function(){hi.lineStart=snt;hi.lineEnd=hnt},polygonEnd:function(){hi.lineStart=gtt;hi.lineEnd=nit}},gai=function(n){os=dl=gl=na=ta=ia=ra=ua=lk=ak=vk=0;si(n,hi);var t=lk,i=ak,r=vk,u=t*t+i*i+r*r;return u<ea&&(t=ia,i=ra,r=ua,dl<o&&(t=gl,i=na,r=ta),(u=t*t+i*i+r*r)<ea)?[NaN,NaN]:[kt(i,t)*w,lt(r/it(u))*w]},re=function(n){return function(){return n}},wk=function(n,t){function i(i,r){return i=n(i,r),t(i[0],i[1])}return n.invert&&t.invert&&(i.invert=function(i,r){return(i=t.invert(i,r))&&n.invert(i[0],i[1])}),i};rp.invert=rp;var bk,aa,va,ost,sst,kk,dk,hst,cst,tr,ir,lst=function(n){function t(t){return t=n(t[0]*s,t[1]*s),t[0]*=w,t[1]*=w,t}return n=up(n[0]*s,n[1]*s,n.length>2?n[2]*s:0),t.invert=function(t){return t=n.invert(t[0]*s,t[1]*s),t[0]*=w,t[1]*=w,t},t},nvi=function(){function e(n,r){t.push(n=i(n,r));n[0]*=w;n[1]*=w}function n(){var n=r.apply(this,arguments),e=u.apply(this,arguments)*s,h=f.apply(this,arguments)*s;return t=[],i=up(-n[0]*s,-n[1]*s,0).invert,fit(o,e,h,1),n={type:"Polygon",coordinates:[t]},t=i=null,n}var t,i,r=re([0,0]),u=re(90),f=re(6),o={point:e};return n.center=function(t){return arguments.length?(r="function"==typeof t?t:re([+t[0],+t[1]]),n):r},n.radius=function(t){return arguments.length?(u="function"==typeof t?t:re(+t),n):u},n.precision=function(t){return arguments.length?(f="function"==typeof t?t:re(+t),n):f},n},ast=function(){var t,n=[];return{point:function(n,i,r){t.push([n,i,r])},lineStart:function(){n.push(t=[])},lineEnd:d,rejoin:function(){n.length>1&&n.push(n.pop().concat(n.shift()))},result:function(){var i=n;return n=[],t=null,i}}},ya=function(n,t){return y(n[0]-t[0])<o&&y(n[1]-t[1])<o},vst=function(n,t,i,r,u){var e,a,c=[],h=[],s,v,y,f,l;if(n.forEach(function(n){if(!((f=n.length-1)<=0)){var f,t,i=n[0],r=n[f];if(ya(i,r)){if(!i[2]&&!r[2]){for(u.lineStart(),e=0;e<f;++e)u.point((i=n[e])[0],i[1]);return void u.lineEnd()}r[0]+=2*o}c.push(t=new nc(i,n,null,!0));h.push(t.o=new nc(i,null,t,!1));c.push(t=new nc(r,n,null,!1));h.push(t.o=new nc(r,null,t,!0))}}),c.length){for(h.sort(t),oit(c),oit(h),e=0,a=h.length;e<a;++e)h[e].e=i=!i;for(y=c[0];;){for(f=y,l=!0;f.v;)if((f=f.n)===y)return;s=f.z;u.lineStart();do{if(f.v=f.o.v=!0,f.e){if(l)for(e=0,a=s.length;e<a;++e)u.point((v=s[e])[0],v[1]);else r(f.x,f.n.x,1,u);f=f.n}else{if(l)for(s=f.p.z,e=s.length-1;e>=0;--e)u.point((v=s[e])[0],v[1]);else r(f.x,f.p.x,-1,u);f=f.p}f=f.o;s=f.z;l=!l}while(!f.v);u.lineEnd()}}},gk=nu(),yst=function(n,t){var s=fp(t),r=t[1],ut=u(r),pt=[u(s),-e(s),0],y=0,ft=0,h,et,f,it,rt;for(gk.reset(),1===ut?r=tt+o:-1===ut&&(r=-tt-o),h=0,et=n.length;h<et;++h)if(w=(p=n[h]).length)for(var p,w,c=p[w-1],b=fp(c),ot=c[1]/2+oa,st=u(ot),ht=e(ot),k=0;k<w;++k,b=d,st=at,ht=vt,c=l){var l=p[k],d=fp(l),ct=l[1]/2+oa,at=u(ct),vt=e(ct),i=d-b,g=i>=0?1:-1,nt=g*i,v=nt>a,yt=st*at;(gk.add(kt(yt*g*u(nt),ht*vt+yt*e(nt))),y+=v?i+g*bt:i,v^b>=s^d>=s)&&(f=rf(cu(c),cu(l)),gh(f),it=rf(pt,f),gh(it),rt=(v^i>=0?-1:1)*lt(it[2]),(r>rt||r===rt&&(f[0]||f[1]))&&(ft+=v^i>=0?1:-1))}return(y<-o||y<o&&gk<-o)^1&ft},pst=function(n,t,i,r){return function(u){function a(t,i){n(t,i)&&u.point(t,i)}function k(n,t){v.point(n,t)}function y(){f.point=k;v.lineStart()}function p(){f.point=a;v.lineEnd()}function w(n,t){s.push([n,t]);l.point(n,t)}function d(){l.lineStart();s=[]}function g(){w(s[0][0],s[0][1]);l.lineEnd();var t,r,i,f,h=l.clean(),n=b.result(),a=n.length;if(s.pop(),c.push(s),s=null,a)if(1&h){if(i=n[0],(r=i.length-1)>0){for(e||(u.polygonStart(),e=!0),u.lineStart(),t=0;t<r;++t)u.point((f=i[t])[0],f[1]);u.lineEnd()}}else a>1&&2&h&&n.push(n.pop().concat(n.shift())),o.push(n.filter(lnt))}var c,o,s,v=t(u),b=ast(),l=t(b),e=!1,f={point:a,lineStart:y,lineEnd:p,polygonStart:function(){f.point=w;f.lineStart=d;f.lineEnd=g;o=[];c=[]},polygonEnd:function(){f.point=a;f.lineStart=y;f.lineEnd=p;o=Object(h.n)(o);var n=yst(c,r);o.length?(e||(u.polygonStart(),e=!0),vst(o,ant,n,i,u)):n&&(e||(u.polygonStart(),e=!0),u.lineStart(),i(null,null,1,u),u.lineEnd());e&&(u.polygonEnd(),e=!1);o=c=null},sphere:function(){u.polygonStart();u.lineStart();i(null,null,1,u);u.lineEnd();u.polygonEnd()}};return f}},nd=pst(function(){return!0},vnt,pnt,[-a,-tt]),wst=function(n){function h(t,i,r,u){fit(u,n,l,r,t,i)}function u(n,i){return e(n)*e(i)>t}function c(n){var t,h,e,s,o;return{lineStart:function(){s=e=!1;o=1},point:function(c,l){var y,p=[c,l],w=u(c,l),k=i?w?0:f(c,l):w?f(c+(c<0?a:-a),l):0,b;(!t&&(s=e=w)&&n.lineStart(),w!==e&&(!(y=r(t,p))||ya(t,y)||ya(p,y))&&(p[2]=1),w!==e)?(o=0,w?(n.lineStart(),y=r(p,t),n.point(y[0],y[1])):(y=r(t,p),n.point(y[0],y[1],2),n.lineEnd()),t=y):v&&t&&i^w&&(k&h||!(b=r(p,t,!0))||(o=0,i?(n.lineStart(),n.point(b[0][0],b[0][1]),n.point(b[1][0],b[1][1]),n.lineEnd()):(n.point(b[1][0],b[1][1]),n.lineEnd(),n.lineStart(),n.point(b[0][0],b[0][1],3))));!w||t&&ya(t,p)||n.point(p[0],p[1]);t=p;e=w;h=k},lineEnd:function(){e&&n.lineEnd();t=null},clean:function(){return o|(s&&e)<<1}}}function r(n,i,r){var ot=cu(n),st=cu(i),ut=[1,0,0],c=rf(ot,st),ft=kh(c,c),b=c[0],k=ft-b*b,g,u,rt;if(!k)return!r&&n;var ht=t*ft/k,ct=-t*b/k,lt=rf(ut,c),f=dh(ut,ht);np(f,dh(c,ct));var l=lt,p=kh(f,l),d=kh(l,l),et=p*p-d*(kh(f,f)-1);if(!(et<0)){if(g=it(et),u=dh(l,(-p-g)/d),np(u,f),u=bh(u),!r)return u;var w,e=n[0],v=i[0],s=n[1],h=i[1];v<e&&(w=e,e=v,v=w);var nt=v-e,tt=y(nt-a)<o,at=tt||nt<o;if(!tt&&h<s&&(w=s,s=h,h=w),at?tt?s+h>0^u[1]<(y(u[0]-e)<o?s:h):s<=u[1]&&u[1]<=h:nt>a^(e<=u[0]&&u[0]<=v))return rt=dh(l,(-p+g)/d),np(rt,f),[u,bh(rt)]}}function f(t,r){var f=i?n:a-n,u=0;return t<-f?u|=1:t>f&&(u|=2),r<-f?u|=4:r>f&&(u|=8),u}var t=e(n),l=6*s,i=t>0,v=y(t)>o;return pst(u,c,h,i?[0,-n]:[-a,n-a])},tvi=function(n,t,i,r,u,f){var e,l=n[0],a=n[1],v=t[0],y=t[1],o=0,s=1,h=v-l,c=y-a;if(e=i-l,h||!(e>0)){if(e/=h,h<0){if(e<o)return;e<s&&(s=e)}else if(h>0){if(e>s)return;e>o&&(o=e)}if(e=u-l,h||!(e<0)){if(e/=h,h<0){if(e>s)return;e>o&&(o=e)}else if(h>0){if(e<o)return;e<s&&(s=e)}if(e=r-a,c||!(e>0)){if(e/=c,c<0){if(e<o)return;e<s&&(s=e)}else if(c>0){if(e>s)return;e>o&&(o=e)}if(e=f-a,c||!(e<0)){if(e/=c,c<0){if(e>s)return;e>o&&(o=e)}else if(c>0){if(e<o)return;e<s&&(s=e)}return o>0&&(n[0]=l+o*h,n[1]=a+o*c),s<1&&(t[0]=l+s*h,t[1]=a+s*c),!0}}}}},hs=1e9,pa=-hs,ivi=function(){var n,t,e,i=0,r=0,u=960,f=500;return e={stream:function(e){return n&&t===e?n:n=tc(i,r,u,f)(t=e)},extent:function(o){return arguments.length?(i=+o[0][0],r=+o[0][1],u=+o[1][0],f=+o[1][1],n=t=null,e):[[i,r],[u,f]]}}},td=nu(),ue={sphere:d,point:d,lineStart:wnt,lineEnd:d,polygonStart:d,polygonEnd:d},bst=function(n){return td.reset(),si(n,ue),+td},id=[null,null],rvi={type:"LineString",coordinates:id},wa=function(n,t){return id[0]=n,id[1]=t,bst(rvi)},kst={Feature:function(n,t){return ic(n.geometry,t)},FeatureCollection:function(n,t){for(var i=n.features,r=-1,u=i.length;++r<u;)if(ic(i[r].geometry,t))return!0;return!1}},dst={Sphere:function(){return!0},Point:function(n,t){return sit(n.coordinates,t)},MultiPoint:function(n,t){for(var i=n.coordinates,r=-1,u=i.length;++r<u;)if(sit(i[r],t))return!0;return!1},LineString:function(n,t){return hit(n.coordinates,t)},MultiLineString:function(n,t){for(var i=n.coordinates,r=-1,u=i.length;++r<u;)if(hit(i[r],t))return!0;return!1},Polygon:function(n,t){return cit(n.coordinates,t)},MultiPolygon:function(n,t){for(var i=n.coordinates,r=-1,u=i.length;++r<u;)if(cit(i[r],t))return!0;return!1},GeometryCollection:function(n,t){for(var i=n.geometries,r=-1,u=i.length;++r<u;)if(ic(i[r],t))return!0;return!1}},uvi=function(n,t){return(n&&kst.hasOwnProperty(n.type)?kst[n.type]:ic)(n,t)},fvi=function(n,t){var r=n[0]*s,f=n[1]*s,o=t[0]*s,h=t[1]*s,c=e(f),y=u(f),l=e(h),p=u(h),b=c*e(r),k=c*u(r),d=l*e(o),g=l*u(o),i=2*lt(it(att(h-f)+c*l*att(o-r))),a=u(i),v=i?function(n){var t=u(n*=i)/a,r=u(i-n)/a,f=r*b+t*d,e=r*k+t*g,o=r*y+t*p;return[kt(e,f)*w,kt(o,it(f*f+e*e))*w]}:function(){return[r*w,f*w]};return v.distance=i,v},cs=function(n){return n},rd=nu(),ud=nu(),iu={point:d,lineStart:d,lineEnd:d,polygonStart:function(){iu.lineStart=tti;iu.lineEnd=rti},polygonEnd:function(){iu.lineStart=iu.lineEnd=iu.point=d;rd.add(y(ud));ud.reset()},result:function(){var n=rd/2;return rd.reset(),n}},gst=iu,fe=1/0,ba=fe,ls=-fe,ka=ls,evi={point:uti,lineStart:d,lineEnd:d,polygonStart:d,polygonEnd:d,result:function(){var n=[[fe,ba],[ls,ka]];return ls=ka=-(ba=fe=1/0),n}},da=evi,fd=0,ed=0,as=0,ga=0,nv=0,ee=0,od=0,sd=0,vs=0,ci={point:lu,lineStart:wit,lineEnd:bit,polygonStart:function(){ci.lineStart=oti;ci.lineEnd=sti},polygonEnd:function(){ci.point=lu;ci.lineStart=wit;ci.lineEnd=bit},result:function(){var n=vs?[od/vs,sd/vs]:ee?[ga/ee,nv/ee]:as?[fd/as,ed/as]:[NaN,NaN];return fd=ed=as=ga=nv=ee=od=sd=vs=0,n}},nht=ci;dit.prototype={_radius:4.5,pointRadius:function(n){return this._radius=n,this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){0===this._line&&this._context.closePath();this._point=NaN},point:function(n,t){switch(this._point){case 0:this._context.moveTo(n,t);this._point=1;break;case 1:this._context.lineTo(n,t);break;default:this._context.moveTo(n+this._radius,t);this._context.arc(n,t,this._radius,0,bt)}},result:d};var hd,tht,iht,ys,ps,cd=nu(),tv={point:d,lineStart:function(){tv.point=cti},lineEnd:function(){hd&&git(tht,iht);tv.point=d},polygonStart:function(){hd=!0},polygonEnd:function(){hd=null},result:function(){var n=+cd;return cd.reset(),n}},rht=tv;nrt.prototype={_radius:4.5,_circle:trt(4.5),pointRadius:function(n){return(n=+n)!==this._radius&&(this._radius=n,this._circle=null),this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){0===this._line&&this._string.push("Z");this._point=NaN},point:function(n,t){switch(this._point){case 0:this._string.push("M",n,",",t);this._point=1;break;case 1:this._string.push("L",n,",",t);break;default:null==this._circle&&(this._circle=trt(this._radius));this._string.push("M",n,",",t,this._circle)}},result:function(){if(this._string.length){var n=this._string.join("");return this._string=[],n}return null}};uht=function(n,t){function i(n){return n&&("function"==typeof f&&u.pointRadius(+f.apply(this,arguments)),si(n,r(u))),u.result()}var r,u,f=4.5;return i.area=function(n){return si(n,r(gst)),gst.result()},i.measure=function(n){return si(n,r(rht)),rht.result()},i.bounds=function(n){return si(n,r(da)),da.result()},i.centroid=function(n){return si(n,r(nht)),nht.result()},i.projection=function(t){return arguments.length?(r=null==t?(n=null,cs):(n=t).stream,i):n},i.context=function(n){return arguments.length?(u=null==n?(t=null,new nrt):new dit(t=n),"function"!=typeof f&&u.pointRadius(f),i):t},i.pointRadius=function(n){return arguments.length?(f="function"==typeof n?n:(u.pointRadius(+n),+n),i):f},i.projection(n).context(t)};fht=function(n){return{stream:uo(n)}};ep.prototype={constructor:ep,point:function(n,t){this.stream.point(n,t)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}};var eht=16,ovi=e(30*s),oht=function(n,t){return+t?ati(n,t):lti(n)},svi=uo({point:function(n,t){this.stream.point(n*s,t*s)}}),iv=function(){return ap(rrt).scale(155.424).center([0,33.6442])},sht=function(){return iv().parallels([29.5,45.5]).scale(1070).translate([480,250]).rotate([96,0]).center([-.6,38.7])},hvi=function(){function n(n){var t=n[0],r=n[1];return i=null,c.point(t,r),i||(l.point(t,r),i)||(a.point(t,r),i)}function h(){return f=e=null,n}var f,e,c,l,a,i,t=sht(),r=iv().rotate([154,0]).center([-2,58.5]).parallels([55,65]),u=iv().rotate([157,0]).center([-3,19.9]).parallels([8,18]),s={point:function(n,t){i=[n,t]}};return n.invert=function(n){var e=t.scale(),o=t.translate(),i=(n[0]-o[0])/e,f=(n[1]-o[1])/e;return(f>=.12&&f<.234&&i>=-.425&&i<-.214?r:f>=.166&&f<.234&&i>=-.214&&i<-.115?u:t).invert(n)},n.stream=function(n){return f&&e===n?f:f=wti([t.stream(e=n),r.stream(n),u.stream(n)])},n.precision=function(n){return arguments.length?(t.precision(n),r.precision(n),u.precision(n),h()):t.precision()},n.scale=function(i){return arguments.length?(t.scale(i),r.scale(.35*i),u.scale(i),n.translate(t.translate())):t.scale()},n.translate=function(n){if(!arguments.length)return t.translate();var i=t.scale(),f=+n[0],e=+n[1];return c=t.translate(n).clipExtent([[f-.455*i,e-.238*i],[f+.455*i,e+.238*i]]).stream(s),l=r.translate([f-.307*i,e+.201*i]).clipExtent([[f-.425*i+o,e+.12*i+o],[f-.214*i-o,e+.234*i-o]]).stream(s),a=u.translate([f-.205*i,e+.212*i]).clipExtent([[f-.214*i+o,e+.166*i+o],[f-.115*i-o,e+.234*i-o]]).stream(s),h()},n.fitExtent=function(t,i){return rc(n,t,i)},n.fitSize=function(t,i){return sp(n,t,i)},n.fitWidth=function(t,i){return hp(n,t,i)},n.fitHeight=function(t,i){return cp(n,t,i)},n.scale(1070)},ld=urt(function(n){return it(2/(1+n))});ld.invert=fo(function(n){return 2*lt(n/2)});hht=function(){return wi(ld).scale(124.75).clipAngle(179.999)};rv=urt(function(n){return(n=ltt(n))&&n/u(n)});rv.invert=fo(function(n){return n});cht=function(){return wi(rv).scale(79.4188).clipAngle(179.999)};eo.invert=function(n,t){return[n,2*ie(ust(t))-tt]};lht=function(){return frt(eo).scale(961/bt)};aht=function(){return ap(ert).scale(109.5).parallels([30,30])};oo.invert=oo;var cvi=function(){return wi(oo).scale(152.63)},lvi=function(){return ap(ort).scale(131.154).center([0,13.9389])},ws=1.340264,bs=-.081106,ks=.000893,ds=.003796,uv=it(3)/2;vp.invert=function(n,t){for(var o,s,h,r=t,i=r*r,f=i*i*i,c=0;c<12&&(s=r*(ws+bs*i+f*(ks+ds*i))-t,h=ws+3*bs*i+f*(7*ks+9*ds*i),r-=o=s/h,i=r*r,f=i*i*i,!(y(o)<ea));++c);return[uv*n*(ws+3*bs*i+f*(7*ks+9*ds*i))/e(r),lt(u(r)/uv)]};vht=function(){return wi(vp).scale(177.158)};yp.invert=fo(ie);yht=function(){return wi(yp).scale(144.049).clipAngle(60)};pht=function(){function t(){return nt=v*d,tt=v*g,a=k=null,n}function n(n){var t=n[0]*nt,u=n[1]*tt,e;return i&&(e=u*r-t*f,t=t*r+u*f,u=e),[t+y,u+p]}var r,f,h,c,l,a,k,v=1,y=0,p=0,d=1,g=1,i=0,o=null,nt=1,tt=1,it=uo({point:function(t,i){var r=n([t,i]);this.stream.point(r[0],r[1])}}),b=cs;return n.invert=function(n){var t=n[0]-y,u=n[1]-p,e;return i&&(e=u*r+t*f,t=t*r-u*f,u=e),[t/nt,u/tt]},n.stream=function(n){return a&&k===n?a:a=it(b(k=n))},n.postclip=function(n){return arguments.length?(b=n,o=h=c=l=null,t()):b},n.clipExtent=function(n){return arguments.length?(b=null==n?(o=h=c=l=null,cs):tc(o=+n[0][0],h=+n[0][1],c=+n[1][0],l=+n[1][1]),t()):null==o?null:[[o,h],[c,l]]},n.scale=function(n){return arguments.length?(v=+n,t()):v},n.translate=function(n){return arguments.length?(y=+n[0],p=+n[1],t()):[y,p]},n.angle=function(n){return arguments.length?(i=n%360*s,f=u(i),r=e(i),t()):i*w},n.reflectX=function(n){return arguments.length?(d=n?-1:1,t()):d<0},n.reflectY=function(n){return arguments.length?(g=n?-1:1,t()):g<0},n.fitExtent=function(t,i){return rc(n,t,i)},n.fitSize=function(t,i){return sp(n,t,i)},n.fitWidth=function(t,i){return hp(n,t,i)},n.fitHeight=function(t,i){return cp(n,t,i)},n};pp.invert=function(n,t){var f,r=t,e=25,i,u;do i=r*r,u=i*i,r-=f=(r*(1.007226+i*(.015085+u*(.028874*i-.044475-.005916*u)))-t)/(1.007226+i*(.045255+u*(.259866*i-.311325-.005916*11*u)));while(y(f)>o&&--e>0);return[n/(.8707+(i=r*r)*(i*(i*i*i*(.003971-.001529*i)-.013791)-.131979)),r]};wht=function(){return wi(pp).scale(175.295)};wp.invert=fo(lt);bht=function(){return wi(wp).scale(249.5).clipAngle(90+o)};bp.invert=fo(function(n){return 2*ie(n)});kht=function(){return wi(bp).scale(250).clipAngle(142)};kp.invert=function(n,t){return[-t,2*ie(ust(n))-tt]};var avi=function(){var n=frt(kp),i=n.center,t=n.rotate;return n.center=function(n){return arguments.length?i([-n[1],n[0]]):(n=i(),[n[1],-n[0]])},n.rotate=function(n){return arguments.length?t([n[0],n[1],n.length>2?n[2]+90:90]):(n=t(),[n[0],n[1],n[2]-90])},t([0,0,90]).scale(159.155)},vvi=function(){function n(n){var f,h=0;n.eachAfter(function(n){var t=n.children;t?(n.x=kti(t),n.y=gti(t)):(n.x=f?h+=r(n,f):0,n.y=0,f=n)});var e=tii(n),o=iii(n),s=e.x-r(e,o)/2,c=o.x+r(o,e)/2;return n.eachAfter(u?function(r){r.x=(r.x-n.x)*t;r.y=(n.y-r.y)*i}:function(r){r.x=(r.x-s)/(c-s)*t;r.y=(1-(n.y?r.y/n.y:1))*i})}var r=bti,t=1,i=1,u=!1;return n.separation=function(t){return arguments.length?(r=t,n):r},n.size=function(r){return arguments.length?(u=!1,t=+r[0],i=+r[1],n):u?null:[t,i]},n.nodeSize=function(r){return arguments.length?(u=!0,t=+r[0],i=+r[1],n):u?[t,i]:null},n},yvi=function(){return this.eachAfter(rii)},pvi=function(n){var f,u,t,e,i=this,r=[i];do for(f=r.reverse(),r=[];i=f.pop();)if(n(i),u=i.children)for(t=0,e=u.length;t<e;++t)r.push(u[t]);while(r.length);return this},wvi=function(n){for(var r,t,i=this,u=[i];i=u.pop();)if(n(i),r=i.children)for(t=r.length-1;t>=0;--t)u.push(r[t]);return this},bvi=function(n){for(var r,i,u,t=this,f=[t],e=[];t=f.pop();)if(e.push(t),r=t.children)for(i=0,u=r.length;i<u;++i)f.push(r[i]);for(;t=e.pop();)n(t);return this},kvi=function(n){return this.eachAfter(function(t){for(var r=+n(t.data)||0,i=t.children,u=i&&i.length;--u>=0;)r+=i[u].value;t.value=r})},dvi=function(n){return this.eachBefore(function(t){t.children&&t.children.sort(n)})},gvi=function(n){for(var u,t=this,r=uii(t,n),i=[t];t!==r;)t=t.parent,i.push(t);for(u=i.length;n!==r;)i.splice(u,0,n),n=n.parent;return i},nyi=function(){for(var n=this,t=[n];n=n.parent;)t.push(n);return t},tyi=function(){var n=[];return this.each(function(t){n.push(t)}),n},iyi=function(){var n=[];return this.eachBefore(function(t){t.children||n.push(t)}),n},ryi=function(){var n=this,t=[];return n.each(function(i){i!==n&&t.push({source:i.parent,target:i})}),t};uf.prototype=dp.prototype={constructor:uf,count:yvi,each:pvi,eachAfter:bvi,eachBefore:wvi,sum:kvi,sort:dvi,path:gvi,ancestors:nyi,descendants:tyi,leaves:iyi,links:ryi,copy:fii};var uyi=Array.prototype.slice,dht=function(n){for(var r,t,i=0,f=(n=sii(uyi.call(n))).length,u=[];i<f;)r=n[i],t&&hrt(t,r)?++i:(t=cii(u=hii(u,r)),i=0);return t},fyi=function(n){return yrt(n),n},oe=function(n){return function(){return n}},eyi=function(){function n(n){return n.x=t/2,n.y=i/2,r?n.eachBefore(prt(r)).eachAfter(nw(u,.5)).eachBefore(wrt(1)):n.eachBefore(prt(vii)).eachAfter(nw(au,1)).eachAfter(nw(u,n.r/Math.min(t,i))).eachBefore(wrt(Math.min(t,i)/(2*n.r))),n}var r=null,t=1,i=1,u=au;return n.radius=function(t){return arguments.length?(r=aii(t),n):r},n.size=function(r){return arguments.length?(t=+r[0],i=+r[1],n):[t,i]},n.padding=function(t){return arguments.length?(u="function"==typeof t?t:oe(+t),n):u},n},ght=function(n){n.x0=Math.round(n.x0);n.y0=Math.round(n.y0);n.x1=Math.round(n.x1);n.y1=Math.round(n.y1)},gs=function(n,t,i,r,u){for(var f,e=n.children,o=-1,s=e.length,h=n.value&&(r-t)/n.value;++o<s;)f=e[o],f.y0=i,f.y1=u,f.x0=t,f.x1=t+=f.value*h},oyi=function(){function n(n){var e=n.height+1;return n.x0=n.y0=t,n.x1=r,n.y1=i/e,n.eachBefore(f(i,e)),u&&n.eachBefore(ght),n}function f(n,i){return function(r){r.children&&gs(r,r.x0,n*(r.depth+1)/i,r.x1,n*(r.depth+2)/i);var u=r.x0,f=r.y0,e=r.x1-t,o=r.y1-t;e<u&&(u=e=(u+e)/2);o<f&&(f=o=(f+o)/2);r.x0=u;r.y0=f;r.x1=e;r.y1=o}}var r=1,i=1,t=0,u=!1;return n.round=function(t){return arguments.length?(u=!!t,n):u},n.size=function(t){return arguments.length?(r=+t[0],i=+t[1],n):[r,i]},n.padding=function(i){return arguments.length?(t=+i,n):t},n},nct="$",syi={depth:-1},tct={},hyi=function(){function n(n){for(var h,e,o,u,f,c,s=n.length,a=new Array(s),l={},r=0;r<s;++r)h=n[r],u=a[r]=new uf(h),null!=(f=t(h,r,n))&&(f+="")&&(c=nct+(u.id=f),l[c]=c in l?tct:u);for(r=0;r<s;++r)if(u=a[r],null!=(f=i(n[r],r,n))&&(f+="")){if(!(o=l[nct+f]))throw new Error("missing: "+f);if(o===tct)throw new Error("ambiguous: "+f);o.children?o.children.push(u):o.children=[u];u.parent=o}else{if(e)throw new Error("multiple roots");e=u}if(!e)throw new Error("no root");if(e.parent=syi,e.eachBefore(function(n){n.depth=n.parent.depth+1;--s}).eachBefore(srt),e.parent=null,s>0)throw new Error("cycle");return e}var t=yii,i=pii;return n.id=function(i){return arguments.length?(t=oc(i),n):t},n.parentId=function(t){return arguments.length?(i=oc(t),n):i},n};sc.prototype=Object.create(uf.prototype);var cyi=function(){function n(n){var c=gii(n);if(c.eachAfter(f),c.parent.m=-c.z,c.eachBefore(e),u)n.eachBefore(s);else{var o=n,h=n,l=n;n.eachBefore(function(n){n.x<o.x&&(o=n);n.x>h.x&&(h=n);n.depth>l.depth&&(l=n)});var a=o===h?1:t(o,h)/2,v=a-o.x,y=i/(h.x+a+v),p=r/(l.depth||1);n.eachBefore(function(n){n.x=(n.x+v)*y;n.y=n.depth*p})}return n}function f(n){var r=n.children,f=n.parent.children,i=n.i?f[n.i-1]:null,u;r?(kii(n),u=(r[0].z+r[r.length-1].z)/2,i?(n.z=i.z+t(n._,i._),n.m=n.z-u):n.z=u):i&&(n.z=i.z+t(n._,i._));n.parent.A=o(n,i,n.parent.A||f[0])}function e(n){n._.x=n.z+n.parent.m;n.m+=n.parent.m}function o(n,i,r){if(i){for(var s,u=n,e=n,f=i,o=u.parent.children[0],h=u.m,c=e.m,l=f.m,a=o.m;f=iw(f),u=tw(u),f&&u;)o=tw(o),e=iw(e),e.a=n,s=f.z+l-u.z-h+t(f._,u._),s>0&&(bii(dii(f,n,r),n,s),h+=s,c+=s),l+=f.m,h+=u.m,a+=o.m,c+=e.m;f&&!iw(e)&&(e.t=f,e.m+=l-c);u&&!tw(o)&&(o.t=u,o.m+=h-a,r=n)}return r}function s(n){n.x*=i;n.y=n.depth*r}var t=wii,i=1,r=1,u=null;return n.separation=function(i){return arguments.length?(t=i,n):t},n.size=function(t){return arguments.length?(u=!1,i=+t[0],r=+t[1],n):u?null:[i,r]},n.nodeSize=function(t){return arguments.length?(u=!0,i=+t[0],r=+t[1],n):u?[i,r]:null},n},fv=function(n,t,i,r,u){for(var f,e=n.children,o=-1,s=e.length,h=n.value&&(u-i)/n.value;++o<s;)f=e[o],f.x0=t,f.x1=r,f.y0=i,f.y1=i+=f.value*h},ict=(1+Math.sqrt(5))/2,rct=function n(t){function i(n,i,r,u,f){brt(t,n,i,r,u,f)}return i.ratio=function(t){return n((t=+t)>1?t:1)},i}(ict),lyi=function(){function n(n){return n.x0=n.y0=0,n.x1=r,n.y1=u,n.eachBefore(l),f=[0],i&&n.eachBefore(ght),n}function l(n){var i=f[n.depth],r=n.x0+i,u=n.y0+i,l=n.x1-i,a=n.y1-i;l<r&&(r=l=(r+l)/2);a<u&&(u=a=(u+a)/2);n.x0=r;n.y0=u;n.x1=l;n.y1=a;n.children&&(i=f[n.depth+1]=e(n)/2,r+=c(n)-i,u+=o(n)-i,l-=s(n)-i,a-=h(n)-i,l<r&&(r=l=(r+l)/2),a<u&&(u=a=(u+a)/2),t(n,r,u,l,a))}var t=rct,i=!1,r=1,u=1,f=[0],e=au,o=au,s=au,h=au,c=au;return n.round=function(t){return arguments.length?(i=!!t,n):i},n.size=function(t){return arguments.length?(r=+t[0],u=+t[1],n):[r,u]},n.tile=function(i){return arguments.length?(t=oc(i),n):t},n.padding=function(t){return arguments.length?n.paddingInner(t).paddingOuter(t):n.paddingInner()},n.paddingInner=function(t){return arguments.length?(e="function"==typeof t?t:oe(+t),n):e},n.paddingOuter=function(t){return arguments.length?n.paddingTop(t).paddingRight(t).paddingBottom(t).paddingLeft(t):n.paddingTop()},n.paddingTop=function(t){return arguments.length?(o="function"==typeof t?t:oe(+t),n):o},n.paddingRight=function(t){return arguments.length?(s="function"==typeof t?t:oe(+t),n):s},n.paddingBottom=function(t){return arguments.length?(h="function"==typeof t?t:oe(+t),n):h},n.paddingLeft=function(t){return arguments.length?(c="function"==typeof t?t:oe(+t),n):c},n},ayi=function(n,t,i,r,u){function e(n,t,i,r,u,o,h){var a,y,l,v,b,k;if(n>=t-1)return a=s[n],a.x0=r,a.y0=u,a.x1=o,a.y1=h,void 0;for(var d=f[n],p=i/2+d,c=n+1,w=t-1;c<w;)y=c+w>>>1,f[y]<p?c=y+1:w=y;p-f[c-1]<f[c]-p&&n+1<c&&--c;l=f[c]-d;v=i-l;o-r>h-u?(b=(r*v+o*l)/i,e(n,c,l,r,u,b,h),e(c,t,v,b,u,o,h)):(k=(u*v+h*l)/i,e(n,c,l,r,u,o,k),e(c,t,v,r,k,o,h))}var o,c,s=n.children,h=s.length,f=new Array(h+1);for(f[0]=c=o=0;o<h;++o)f[o+1]=c+=s[o].value;e(0,h,n.value,t,i,r,u)},vyi=function(n,t,i,r,u){(1&n.depth?fv:gs)(n,t,i,r,u)},yyi=function n(t){function i(n,i,r,u,f){if((o=n._squarify)&&o.ratio===t)for(var o,e,h,s,l,a=-1,v=o.length,c=n.value;++a<v;){for(e=o[a],h=e.children,s=e.value=0,l=h.length;s<l;++s)e.value+=h[s].value;e.dice?gs(e,i,r,u,r+=(f-r)*e.value/c):fv(e,i,r,i+=(u-i)*e.value/c,f);c-=e.value}else n._squarify=o=brt(t,n,i,r,u,f),o.ratio=t}return i.ratio=function(t){return n((t=+t)>1?t:1)},i}(ict),pyi=function(n){for(var i,r=-1,u=n.length,t=n[u-1],f=0;++r<u;)i=t,t=n[r],f+=i[1]*t[0]-i[0]*t[1];return f/2},wyi=function(n){for(var i,u,f=-1,e=n.length,o=0,s=0,t=n[e-1],r=0;++f<e;)i=t,t=n[f],r+=u=i[0]*t[1]-t[0]*i[1],o+=(i[0]+t[0])*u,s+=(i[1]+t[1])*u;return r*=3,[o/r,s/r]},byi=function(n,t,i){return(t[0]-n[0])*(i[1]-n[1])-(t[1]-n[1])*(i[0]-n[0])},kyi=function(n){var t,r,i,e;if((r=n.length)<3)return null;for(i=new Array(r),e=new Array(r),t=0;t<r;++t)i[t]=[+n[t][0],+n[t][1],t];for(i.sort(nri),t=0;t<r;++t)e[t]=[i[t][0],-i[t][1]];var u=krt(i),f=krt(e),s=f[0]===u[0],h=f[f.length-1]===u[u.length-1],o=[];for(t=u.length-1;t>=0;--t)o.push(n[i[u[t]][2]]);for(t=+s;t<f.length-h;++t)o.push(n[i[f[t]][2]]);return o},dyi=function(n,t){for(var u,i,h=n.length,r=n[h-1],l=t[0],f=t[1],c=r[0],e=r[1],o=!1,s=0;s<h;++s)r=n[s],u=r[0],i=r[1],i>f!=e>f&&l<(c-u)*(f-i)/(e-i)+u&&(o=!o),c=u,e=i;return o},gyi=function(n){for(var i,r,e=-1,o=n.length,t=n[o-1],u=t[0],f=t[1],s=0;++e<o;)i=u,r=f,t=n[e],u=t[0],f=t[1],i-=u,r-=f,s+=Math.sqrt(i*i+r*r);return s},se=function(){return Math.random()},npi=function n(t){function i(n,i){return n=null==n?0:+n,i=null==i?1:+i,1===arguments.length?(i=n,n=0):i-=n,function(){return t()*i+n}}return i.source=n,i}(se),uct=function n(t){function i(n,i){var r,u;return n=null==n?0:+n,i=null==i?1:+i,function(){var f;if(null!=r)f=r,r=null;else do r=2*t()-1,f=2*t()-1,u=r*r+f*f;while(!u||u>1);return n+i*f*Math.sqrt(-2*Math.log(u)/u)}}return i.source=n,i}(se),tpi=function n(t){function i(){var n=uct.source(t).apply(this,arguments);return function(){return Math.exp(n())}}return i.source=n,i}(se),fct=function n(t){function i(n){return function(){for(var i=0,r=0;r<n;++r)i+=t();return i}}return i.source=n,i}(se),ipi=function n(t){function i(n){var i=fct.source(t)(n);return function(){return i()/n}}return i.source=n,i}(se),rpi=function n(t){function i(n){return function(){return-Math.log(1-t())/n}}return i.source=n,i}(se),b=i(523),c=function(n){for(var i=n.length/6|0,r=new Array(i),t=0;t<i;)r[t]="#"+n.slice(6*t,6*++t);return r},upi=c("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf"),fpi=c("7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666"),epi=c("1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666"),opi=c("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928"),spi=c("fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2"),hpi=c("b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc"),cpi=c("e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999"),lpi=c("66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3"),api=c("8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f"),vpi=c("4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab"),k=function(n){return Object(l.s)(n[n.length-1])},ect=new Array(3).concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e","8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map(c),ypi=k(ect),oct=new Array(3).concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837","40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map(c),ppi=k(oct),sct=new Array(3).concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419","8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map(c),wpi=k(sct),hct=new Array(3).concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map(c),bpi=k(hct),cct=new Array(3).concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map(c),kpi=k(cct),lct=new Array(3).concat("ef8a62ffffff999999","ca0020f4a582bababa404040","ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map(c),dpi=k(lct),act=new Array(3).concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4","d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map(c),gpi=k(act),vct=new Array(3).concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d7191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850","d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map(c),nwi=k(vct),yct=new Array(3).concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd","9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map(c),twi=k(yct),pct=new Array(3).concat("e5f5f999d8c92ca25f","edf8fbb2e2e266c2a4238b45","edf8fbb2e2e266c2a42ca25f006d2c","edf8fbccece699d8c966c2a42ca25f006d2c","edf8fbccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map(c),iwi=k(pct),wct=new Array(3).concat("e0ecf49ebcda8856a7","edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map(c),rwi=k(wct),bct=new Array(3).concat("e0f3dba8ddb543a2ca","f0f9e8bae4bc7bccc42b8cbe","f0f9e8bae4bc7bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map(c),uwi=k(bct),kct=new Array(3).concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map(c),fwi=k(kct),dct=new Array(3).concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map(c),ewi=k(dct),gct=new Array(3).concat("ece7f2a6bddb2b8cbe","f1eef6bdc9e174a9cf0570b0","f1eef6bdc9e174a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map(c),owi=k(gct),nlt=new Array(3).concat("e7e1efc994c7dd1c77","f1eef6d7b5d8df65b0ce1256","f1eef6d7b5d8df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map(c),swi=k(nlt),tlt=new Array(3).concat("fde0ddfa9fb5c51b8a","feebe2fbb4b9f768a1ae017e","feebe2fbb4b9f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map(c),hwi=k(tlt),ilt=new Array(3).concat("edf8b17fcdbb2c7fb8","ffffcca1dab441b6c4225ea8","ffffcca1dab441b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map(c),cwi=k(ilt),rlt=new Array(3).concat("f7fcb9addd8e31a354","ffffccc2e69978c679238443","ffffccc2e69978c67931a354006837","ffffccd9f0a3addd8e78c67931a354006837","ffffccd9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map(c),lwi=k(rlt),ult=new Array(3).concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map(c),awi=k(ult),flt=new Array(3).concat("ffeda0feb24cf03b20","ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map(c),vwi=k(flt),elt=new Array(3).concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ecae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map(c),ywi=k(elt),olt=new Array(3).concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map(c),pwi=k(olt),slt=new Array(3).concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525","f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map(c),wwi=k(slt),hlt=new Array(3).concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map(c),bwi=k(hlt),clt=new Array(3).concat("fee0d2fc9272de2d26","fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map(c),kwi=k(clt),llt=new Array(3).concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map(c),dwi=k(llt),gwi=function(n){return n=Math.max(0,Math.min(1,n)),"rgb("+Math.max(0,Math.min(255,Math.round(-4.54-n*(35.34-n*(2381.73-n*(6402.7-n*(7024.72-2710.57*n)))))))+", "+Math.max(0,Math.min(255,Math.round(32.49+n*(170.73+n*(52.82-n*(131.46-n*(176.58-67.37*n)))))))+", "+Math.max(0,Math.min(255,Math.round(81.24+n*(442.36-n*(2482.43-n*(6167.24-n*(6614.94-2475.67*n)))))))+")"},he=function(n,t,i){n.prototype=t.prototype=i;i.constructor=n},ce="\\s*([+-]?\\d+)\\s*",nh="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",rr="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",nbi=/^#([0-9a-f]{3,8})$/,tbi=new RegExp("^rgb\\("+[ce,ce,ce]+"\\)$"),ibi=new RegExp("^rgb\\("+[rr,rr,rr]+"\\)$"),rbi=new RegExp("^rgba\\("+[ce,ce,ce,nh]+"\\)$"),ubi=new RegExp("^rgba\\("+[rr,rr,rr,nh]+"\\)$"),fbi=new RegExp("^hsl\\("+[nh,rr,rr]+"\\)$"),ebi=new RegExp("^hsla\\("+[nh,rr,rr,nh]+"\\)$"),alt={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};he(br,rw,{copy:function(n){return Object.assign(new this.constructor,this,n)},displayable:function(){return this.rgb().displayable()},hex:drt,formatHex:drt,formatHsl:tri,formatRgb:grt,toString:grt});he(et,tut,ho(br,{brighter:function(n){return n=null==n?1/.7:Math.pow(1/.7,n),new et(this.r*n,this.g*n,this.b*n,this.opacity)},darker:function(n){return n=null==n?.7:Math.pow(.7,n),new et(this.r*n,this.g*n,this.b*n,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:iut,formatHex:iut,formatRgb:rut,toString:rut}));he(bi,iri,ho(br,{brighter:function(n){return n=null==n?1/.7:Math.pow(1/.7,n),new bi(this.h,this.s,this.l*n,this.opacity)},darker:function(n){return n=null==n?.7:Math.pow(.7,n),new bi(this.h,this.s,this.l*n,this.opacity)},rgb:function(){var n=this.h%360+360*(this.h<0),u=isNaN(n)||isNaN(this.s)?0:this.s,t=this.l,i=t+(t<.5?t:1-t)*u,r=2*t-i;return new et(ew(n>=240?n-240:n+120,r,i),ew(n,r,i),ew(n<120?n+240:n-120,r,i),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var n=this.opacity;return n=isNaN(n)?1:Math.max(0,Math.min(1,n)),(1===n?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===n?")":", "+n+")")}}));var vlt=Math.PI/180,ylt=180/Math.PI,plt=.96422,wlt=1,blt=.82521,klt=4/29,le=6/29,dlt=3*le*le,obi=le*le*le;he(ki,rri,ho(br,{brighter:function(n){return new ki(this.l+18*(null==n?1:n),this.a,this.b,this.opacity)},darker:function(n){return new ki(this.l-18*(null==n?1:n),this.a,this.b,this.opacity)},rgb:function(){var n=(this.l+16)/116,t=isNaN(this.a)?n:n+this.a/500,i=isNaN(this.b)?n:n-this.b/200;return t=plt*sw(t),n=wlt*sw(n),i=blt*sw(i),new et(hw(3.1338561*t-1.6168667*n-.4906146*i),hw(-.9787684*t+1.9161415*n+.033454*i),hw(.0719453*t-.2289914*n+1.4052427*i),this.opacity)}}));he(or,fri,ho(br,{brighter:function(n){return new or(this.h,this.c,this.l+18*(null==n?1:n),this.opacity)},darker:function(n){return new or(this.h,this.c,this.l-18*(null==n?1:n),this.opacity)},rgb:function(){return out(this).rgb()}}));var ad=-.29227,ev=-.90649,th=1.97294,glt=th*ev,nat=1.78277*th,tat=1.78277*ad- -.14861*ev;he(vu,kr,ho(br,{brighter:function(n){return n=null==n?1/.7:Math.pow(1/.7,n),new vu(this.h,this.s,this.l*n,this.opacity)},darker:function(n){return n=null==n?.7:Math.pow(.7,n),new vu(this.h,this.s,this.l*n,this.opacity)},rgb:function(){var r=isNaN(this.h)?0:(this.h+120)*vlt,n=+this.l,t=isNaN(this.s)?0:this.s*n*(1-n),i=Math.cos(r),u=Math.sin(r);return new et(255*(n+t*(-.14861*i+1.78277*u)),255*(n+t*(ad*i+ev*u)),255*(n+t*th*i),this.opacity)}}));var sbi=Object(l.f)(kr(300,.5,0),kr(-240,.5,1)),hbi=Object(l.f)(kr(-100,.75,.35),kr(80,1.5,.8)),cbi=Object(l.f)(kr(260,.75,.35),kr(80,1.5,.8)),ov=kr(),lbi=function(n){(n<0||n>1)&&(n-=Math.floor(n));var t=Math.abs(n-.5);return ov.h=360*n-100,ov.s=1.5-1.5*t,ov.l=.8-.9*t,ov+""},sv=tut(),abi=Math.PI/3,vbi=2*Math.PI/3,ybi=function(n){var t;return n=(.5-n)*Math.PI,sv.r=255*(t=Math.sin(n))*t,sv.g=255*(t=Math.sin(n+abi))*t,sv.b=255*(t=Math.sin(n+vbi))*t,sv+""},pbi=function(n){return n=Math.max(0,Math.min(1,n)),"rgb("+Math.max(0,Math.min(255,Math.round(34.61+n*(1172.33-n*(10793.56-n*(33300.12-n*(38394.49-14825.05*n)))))))+", "+Math.max(0,Math.min(255,Math.round(23.31+n*(557.33+n*(1225.33-n*(3574.96-n*(1073.77+707.56*n)))))))+", "+Math.max(0,Math.min(255,Math.round(27.2+n*(3211.1-n*(15327.97-n*(27814-n*(22569.18-6838.66*n)))))))+")"},wbi=cc(c("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725")),bbi=cc(c("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf")),kbi=cc(c("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4")),dbi=cc(c("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921")),v=function(n){return function(){return n}},iat=Math.abs,ot=Math.atan2,nf=Math.cos,gbi=Math.max,vd=Math.min,ur=Math.sin,ae=Math.sqrt,st=1e-12,ru=Math.PI,hv=ru/2,uu=2*ru,nki=function(){function t(){var vt,ri,c=+i.apply(this,arguments),l=+r.apply(this,arguments),v=f.apply(this,arguments)-hv,y=e.apply(this,arguments)-hv,et=iat(y-v),a=y>v,ut,ft;if(n||(n=vt=bu()),l<c&&(ri=l,l=c,c=ri),l>st)if(et>uu-st)n.moveTo(l*nf(v),l*ur(v)),n.arc(0,0,l,v,y,!a),c>st&&(n.moveTo(c*nf(y),c*ur(y)),n.arc(0,0,c,y,v,a));else{var t,h,nt=v,tt=y,it=v,rt=y,yt=et,pt=et,wt=s.apply(this,arguments)/2,bt=wt>st&&(u?+u.apply(this,arguments):ae(c*c+l*l)),k=vd(iat(l-c)/2,+o.apply(this,arguments)),w=k,b=k;bt>st&&(ut=sut(bt/c*ur(wt)),ft=sut(bt/l*ur(wt)),(yt-=2*ut)>st?(ut*=a?1:-1,it+=ut,rt-=ut):(yt=0,it=rt=(v+y)/2),(pt-=2*ft)>st?(ft*=a?1:-1,nt+=ft,tt-=ft):(pt=0,nt=tt=(v+y)/2));var d=l*nf(nt),g=l*ur(nt),ht=c*nf(rt),ct=c*ur(rt);if(k>st){var p,lt=l*nf(tt),at=l*ur(tt),kt=c*nf(it),dt=c*ur(it);if(et<ru&&(p=vri(d,g,kt,dt,lt,at,ht,ct))){var gt=d-p[0],ni=g-p[1],ti=lt-p[0],ii=at-p[1],ui=1/ur(ori((gt*ti+ni*ii)/(ae(gt*gt+ni*ni)*ae(ti*ti+ii*ii)))/2),fi=ae(p[0]*p[0]+p[1]*p[1]);w=vd(k,(c-fi)/(ui-1));b=vd(k,(l-fi)/(ui+1))}}pt>st?b>st?(t=lc(kt,dt,d,g,l,b,a),h=lc(lt,at,ht,ct,l,b,a),n.moveTo(t.cx+t.x01,t.cy+t.y01),b<k?n.arc(t.cx,t.cy,b,ot(t.y01,t.x01),ot(h.y01,h.x01),!a):(n.arc(t.cx,t.cy,b,ot(t.y01,t.x01),ot(t.y11,t.x11),!a),n.arc(0,0,l,ot(t.cy+t.y11,t.cx+t.x11),ot(h.cy+h.y11,h.cx+h.x11),!a),n.arc(h.cx,h.cy,b,ot(h.y11,h.x11),ot(h.y01,h.x01),!a))):(n.moveTo(d,g),n.arc(0,0,l,nt,tt,!a)):n.moveTo(d,g);c>st&&yt>st?w>st?(t=lc(ht,ct,lt,at,c,-w,a),h=lc(d,g,kt,dt,c,-w,a),n.lineTo(t.cx+t.x01,t.cy+t.y01),w<k?n.arc(t.cx,t.cy,w,ot(t.y01,t.x01),ot(h.y01,h.x01),!a):(n.arc(t.cx,t.cy,w,ot(t.y01,t.x01),ot(t.y11,t.x11),!a),n.arc(0,0,c,ot(t.cy+t.y11,t.cx+t.x11),ot(h.cy+h.y11,h.cx+h.x11),a),n.arc(h.cx,h.cy,w,ot(h.y11,h.x11),ot(h.y01,h.x01),!a))):n.arc(0,0,c,rt,it,a):n.lineTo(ht,ct)}else n.moveTo(0,0);if(n.closePath(),vt)return n=null,vt+""||null}var i=sri,r=hri,o=v(0),u=null,f=cri,e=lri,s=ari,n=null;return t.centroid=function(){var n=(+i.apply(this,arguments)+ +r.apply(this,arguments))/2,t=(+f.apply(this,arguments)+ +e.apply(this,arguments))/2-ru/2;return[nf(t)*n,ur(t)*n]},t.innerRadius=function(n){return arguments.length?(i="function"==typeof n?n:v(+n),t):i},t.outerRadius=function(n){return arguments.length?(r="function"==typeof n?n:v(+n),t):r},t.cornerRadius=function(n){return arguments.length?(o="function"==typeof n?n:v(+n),t):o},t.padRadius=function(n){return arguments.length?(u=null==n?null:"function"==typeof n?n:v(+n),t):u},t.startAngle=function(n){return arguments.length?(f="function"==typeof n?n:v(+n),t):f},t.endAngle=function(n){return arguments.length?(e="function"==typeof n?n:v(+n),t):e},t.padAngle=function(n){return arguments.length?(s="function"==typeof n?n:v(+n),t):s},t.context=function(i){return arguments.length?(n=null==i?null:i,t):n},t};hut.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath();this._line=1-this._line},point:function(n,t){switch(n=+n,t=+t,this._point){case 0:this._point=1;this._line?this._context.lineTo(n,t):this._context.moveTo(n,t);break;case 1:this._point=2;default:this._context.lineTo(n,t)}}};var cv=function(n){return new hut(n)},yd=function(){function n(n){var o,h,c,l=n.length,s=!1;for(null==i&&(t=r(c=bu())),o=0;o<=l;++o)!(o<l&&e(h=n[o],o,n))===s&&((s=!s)?t.lineStart():t.lineEnd()),s&&t.point(+u(h,o,n),+f(h,o,n));if(c)return t=null,c+""||null}var u=lw,f=aw,e=v(!0),i=null,r=cv,t=null;return n.x=function(t){return arguments.length?(u="function"==typeof t?t:v(+t),n):u},n.y=function(t){return arguments.length?(f="function"==typeof t?t:v(+t),n):f},n.defined=function(t){return arguments.length?(e="function"==typeof t?t:v(!!t),n):e},n.curve=function(u){return arguments.length?(r=u,null!=i&&(t=r(i)),n):r},n.context=function(u){return arguments.length?(null==u?i=t=null:t=r(i=u),n):i},n},rat=function(){function n(n){var h,b,c,l,y,a=n.length,v=!1,p=new Array(a),w=new Array(a);for(null==u&&(t=o(y=bu())),h=0;h<=a;++h){if(!(h<a&&s(l=n[h],h,n))===v)if(v=!v)b=h,t.areaStart(),t.lineStart();else{for(t.lineEnd(),t.lineStart(),c=h-1;c>=b;--c)t.point(p[c],w[c]);t.lineEnd();t.areaEnd()}v&&(p[h]=+i(l,h,n),w[h]=+r(l,h,n),t.point(f?+f(l,h,n):p[h],e?+e(l,h,n):w[h]))}if(y)return t=null,y+""||null}function h(){return yd().defined(s).curve(o).context(u)}var i=lw,f=null,r=v(0),e=aw,s=v(!0),u=null,o=cv,t=null;return n.x=function(t){return arguments.length?(i="function"==typeof t?t:v(+t),f=null,n):i},n.x0=function(t){return arguments.length?(i="function"==typeof t?t:v(+t),n):i},n.x1=function(t){return arguments.length?(f=null==t?null:"function"==typeof t?t:v(+t),n):f},n.y=function(t){return arguments.length?(r="function"==typeof t?t:v(+t),e=null,n):r},n.y0=function(t){return arguments.length?(r="function"==typeof t?t:v(+t),n):r},n.y1=function(t){return arguments.length?(e=null==t?null:"function"==typeof t?t:v(+t),n):e},n.lineX0=n.lineY0=function(){return h().x(i).y(r)},n.lineY1=function(){return h().x(i).y(e)},n.lineX1=function(){return h().x(f).y(r)},n.defined=function(t){return arguments.length?(s="function"==typeof t?t:v(!!t),n):s},n.curve=function(i){return arguments.length?(o=i,null!=u&&(t=o(u)),n):o},n.context=function(i){return arguments.length?(null==i?u=t=null:t=o(u=i),n):u},n},tki=function(n,t){return t<n?-1:t>n?1:t>=n?0:NaN},iki=function(n){return n},rki=function(){function n(n){for(var l,b,y,s,h=n.length,p=0,a=new Array(h),c=new Array(h),v=+u.apply(this,arguments),w=Math.min(uu,Math.max(-uu,f.apply(this,arguments)-v)),k=Math.min(Math.abs(w)/h,e.apply(this,arguments)),d=k*(w<0?-1:1),o=0;o<h;++o)(s=c[a[o]=o]=+r(n[o],o,n))>0&&(p+=s);for(null!=t?a.sort(function(n,i){return t(c[n],c[i])}):null!=i&&a.sort(function(t,r){return i(n[t],n[r])}),o=0,b=p?(w-h*d)/p:0;o<h;++o,v=y)l=a[o],s=c[l],y=v+(s>0?s*b:0)+d,c[l]={data:n[l],index:o,value:s,startAngle:v,endAngle:y,padAngle:k};return c}var r=iki,t=tki,i=null,u=v(0),f=v(uu),e=v(0);return n.value=function(t){return arguments.length?(r="function"==typeof t?t:v(+t),n):r},n.sortValues=function(r){return arguments.length?(t=r,i=null,n):t},n.sort=function(r){return arguments.length?(i=r,t=null,n):i},n.startAngle=function(t){return arguments.length?(u="function"==typeof t?t:v(+t),n):u},n.endAngle=function(t){return arguments.length?(f="function"==typeof t?t:v(+t),n):f},n.padAngle=function(t){return arguments.length?(e="function"==typeof t?t:v(+t),n):e},n},uat=vw(cv);cut.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(n,t){this._curve.point(t*Math.sin(n),t*-Math.cos(n))}};var fat=function(){return co(yd().curve(uat))},eat=function(){var n=rat().curve(uat),t=n.curve,i=n.lineX0,r=n.lineX1,u=n.lineY0,f=n.lineY1;return n.angle=n.x,delete n.x,n.startAngle=n.x0,delete n.x0,n.endAngle=n.x1,delete n.x1,n.radius=n.y,delete n.y,n.innerRadius=n.y0,delete n.y0,n.outerRadius=n.y1,delete n.y1,n.lineStartAngle=function(){return co(i())},delete n.lineX0,n.lineEndAngle=function(){return co(r())},delete n.lineX1,n.lineInnerRadius=function(){return co(u())},delete n.lineY0,n.lineOuterRadius=function(){return co(f())},delete n.lineY1,n.curve=function(n){return arguments.length?t(vw(n)):t()._curve},n},ih=function(n,t){return[(t=+t)*Math.cos(n-=Math.PI/2),t*Math.sin(n)]},pd=Array.prototype.slice,wd={draw:function(n,t){var i=Math.sqrt(t/ru);n.moveTo(i,0);n.arc(0,0,i,0,uu)}},oat={draw:function(n,t){var i=Math.sqrt(t/5)/2;n.moveTo(-3*i,-i);n.lineTo(-i,-i);n.lineTo(-i,-3*i);n.lineTo(i,-3*i);n.lineTo(i,-i);n.lineTo(3*i,-i);n.lineTo(3*i,i);n.lineTo(i,i);n.lineTo(i,3*i);n.lineTo(-i,3*i);n.lineTo(-i,i);n.lineTo(-3*i,i);n.closePath()}},sat=Math.sqrt(1/3),uki=2*sat,hat={draw:function(n,t){var i=Math.sqrt(t/uki),r=i*sat;n.moveTo(0,-i);n.lineTo(r,0);n.lineTo(0,i);n.lineTo(-r,0);n.closePath()}},cat=Math.sin(ru/10)/Math.sin(7*ru/10),fki=Math.sin(uu/10)*cat,eki=-Math.cos(uu/10)*cat,lat={draw:function(n,t){var i=Math.sqrt(.89081309152928523*t),u=fki*i,f=eki*i,r;for(n.moveTo(0,-i),n.lineTo(u,f),r=1;r<5;++r){var s=uu*r/5,e=Math.cos(s),o=Math.sin(s);n.lineTo(o*i,-e*i);n.lineTo(e*u-o*f,o*u+e*f)}n.closePath()}},aat={draw:function(n,t){var i=Math.sqrt(t),r=-i/2;n.rect(r,r,i,i)}},bd=Math.sqrt(3),vat={draw:function(n,t){var i=-Math.sqrt(t/(3*bd));n.moveTo(0,2*i);n.lineTo(-bd*i,-i);n.lineTo(bd*i,-i);n.closePath()}},fi=Math.sqrt(3)/2,kd=1/Math.sqrt(12),oki=3*(kd/2+1),yat={draw:function(n,t){var s=Math.sqrt(t/oki),i=s/2,f=s*kd,r=i,u=s*kd+s,e=-r,o=u;n.moveTo(i,f);n.lineTo(r,u);n.lineTo(e,o);n.lineTo(-.5*i-fi*f,fi*i+-.5*f);n.lineTo(-.5*r-fi*u,fi*r+-.5*u);n.lineTo(-.5*e-fi*o,fi*e+-.5*o);n.lineTo(-.5*i+fi*f,-.5*f-fi*i);n.lineTo(-.5*r+fi*u,-.5*u-fi*r);n.lineTo(-.5*e+fi*o,-.5*o-fi*e);n.closePath()}},ski=[wd,oat,hat,aat,lat,vat,yat],hki=function(){function n(){var n;if(t||(t=n=bu()),i.apply(this,arguments).draw(t,+r.apply(this,arguments)),n)return t=null,n+""||null}var i=v(wd),r=v(64),t=null;return n.type=function(t){return arguments.length?(i="function"==typeof t?t:v(t),n):i},n.size=function(t){return arguments.length?(r="function"==typeof t?t:v(+t),n):r},n.context=function(i){return arguments.length?(t=null==i?null:i,n):t},n},fu=function(){};vc.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN;this._point=0},lineEnd:function(){switch(this._point){case 3:ac(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath();this._line=1-this._line},point:function(n,t){switch(n=+n,t=+t,this._point){case 0:this._point=1;this._line?this._context.lineTo(n,t):this._context.moveTo(n,t);break;case 1:this._point=2;break;case 2:this._point=3;this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:ac(this,n,t)}this._x0=this._x1;this._x1=n;this._y0=this._y1;this._y1=t}};pat=function(n){return new vc(n)};lut.prototype={areaStart:fu,areaEnd:fu,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN;this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2);this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3);this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3);this._context.closePath();break;case 3:this.point(this._x2,this._y2);this.point(this._x3,this._y3);this.point(this._x4,this._y4)}},point:function(n,t){switch(n=+n,t=+t,this._point){case 0:this._point=1;this._x2=n;this._y2=t;break;case 1:this._point=2;this._x3=n;this._y3=t;break;case 2:this._point=3;this._x4=n;this._y4=t;this._context.moveTo((this._x0+4*this._x1+n)/6,(this._y0+4*this._y1+t)/6);break;default:ac(this,n,t)}this._x0=this._x1;this._x1=n;this._y0=this._y1;this._y1=t}};wat=function(n){return new lut(n)};aut.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN;this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath();this._line=1-this._line},point:function(n,t){switch(n=+n,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var i=(this._x0+4*this._x1+n)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(i,r):this._context.moveTo(i,r);break;case 3:this._point=4;default:ac(this,n,t)}this._x0=this._x1;this._x1=n;this._y0=this._y1;this._y1=t}};bat=function(n){return new aut(n)};vut.prototype={lineStart:function(){this._x=[];this._y=[];this._basis.lineStart()},lineEnd:function(){var t=this._x,r=this._y,n=t.length-1;if(n>0)for(var u,f=t[0],e=r[0],o=t[n]-f,s=r[n]-e,i=-1;++i<=n;)u=i/n,this._basis.point(this._beta*t[i]+(1-this._beta)*(f+u*o),this._beta*r[i]+(1-this._beta)*(e+u*s));this._x=this._y=null;this._basis.lineEnd()},point:function(n,t){this._x.push(+n);this._y.push(+t)}};kat=function n(t){function i(n){return 1===t?new vc(n):new vut(n,t)}return i.beta=function(t){return n(+t)},i}(.85);pw.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN;this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:yc(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath();this._line=1-this._line},point:function(n,t){switch(n=+n,t=+t,this._point){case 0:this._point=1;this._line?this._context.lineTo(n,t):this._context.moveTo(n,t);break;case 1:this._point=2;this._x1=n;this._y1=t;break;case 2:this._point=3;default:yc(this,n,t)}this._x0=this._x1;this._x1=this._x2;this._x2=n;this._y0=this._y1;this._y1=this._y2;this._y2=t}};dat=function n(t){function i(n){return new pw(n,t)}return i.tension=function(t){return n(+t)},i}(0);ww.prototype={areaStart:fu,areaEnd:fu,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN;this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3);this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3);this._context.closePath();break;case 3:this.point(this._x3,this._y3);this.point(this._x4,this._y4);this.point(this._x5,this._y5)}},point:function(n,t){switch(n=+n,t=+t,this._point){case 0:this._point=1;this._x3=n;this._y3=t;break;case 1:this._point=2;this._context.moveTo(this._x4=n,this._y4=t);break;case 2:this._point=3;this._x5=n;this._y5=t;break;default:yc(this,n,t)}this._x0=this._x1;this._x1=this._x2;this._x2=n;this._y0=this._y1;this._y1=this._y2;this._y2=t}};gat=function n(t){function i(n){return new ww(n,t)}return i.tension=function(t){return n(+t)},i}(0);bw.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN;this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath();this._line=1-this._line},point:function(n,t){switch(n=+n,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:yc(this,n,t)}this._x0=this._x1;this._x1=this._x2;this._x2=n;this._y0=this._y1;this._y1=this._y2;this._y2=t}};nvt=function n(t){function i(n){return new bw(n,t)}return i.tension=function(t){return n(+t)},i}(0);yut.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN;this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath();this._line=1-this._line},point:function(n,t){if(n=+n,t=+t,this._point){var i=this._x2-n,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(i*i+r*r,this._alpha))}switch(this._point){case 0:this._point=1;this._line?this._context.lineTo(n,t):this._context.moveTo(n,t);break;case 1:this._point=2;break;case 2:this._point=3;default:kw(this,n,t)}this._l01_a=this._l12_a;this._l12_a=this._l23_a;this._l01_2a=this._l12_2a;this._l12_2a=this._l23_2a;this._x0=this._x1;this._x1=this._x2;this._x2=n;this._y0=this._y1;this._y1=this._y2;this._y2=t}};tvt=function n(t){function i(n){return t?new yut(n,t):new pw(n,0)}return i.alpha=function(t){return n(+t)},i}(.5);put.prototype={areaStart:fu,areaEnd:fu,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN;this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3);this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3);this._context.closePath();break;case 3:this.point(this._x3,this._y3);this.point(this._x4,this._y4);this.point(this._x5,this._y5)}},point:function(n,t){if(n=+n,t=+t,this._point){var i=this._x2-n,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(i*i+r*r,this._alpha))}switch(this._point){case 0:this._point=1;this._x3=n;this._y3=t;break;case 1:this._point=2;this._context.moveTo(this._x4=n,this._y4=t);break;case 2:this._point=3;this._x5=n;this._y5=t;break;default:kw(this,n,t)}this._l01_a=this._l12_a;this._l12_a=this._l23_a;this._l01_2a=this._l12_2a;this._l12_2a=this._l23_2a;this._x0=this._x1;this._x1=this._x2;this._x2=n;this._y0=this._y1;this._y1=this._y2;this._y2=t}};ivt=function n(t){function i(n){return t?new put(n,t):new ww(n,0)}return i.alpha=function(t){return n(+t)},i}(.5);wut.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN;this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath();this._line=1-this._line},point:function(n,t){if(n=+n,t=+t,this._point){var i=this._x2-n,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(i*i+r*r,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:kw(this,n,t)}this._l01_a=this._l12_a;this._l12_a=this._l23_a;this._l01_2a=this._l12_2a;this._l12_2a=this._l23_2a;this._x0=this._x1;this._x1=this._x2;this._x2=n;this._y0=this._y1;this._y1=this._y2;this._y2=t}};rvt=function n(t){function i(n){return t?new wut(n,t):new bw(n,0)}return i.alpha=function(t){return n(+t)},i}(.5);but.prototype={areaStart:fu,areaEnd:fu,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(n,t){n=+n;t=+t;this._point?this._context.lineTo(n,t):(this._point=1,this._context.moveTo(n,t))}};uvt=function(n){return new but(n)};pc.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN;this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:dw(this,this._t0,gut(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath();this._line=1-this._line},point:function(n,t){var i=NaN;if(n=+n,t=+t,n!==this._x1||t!==this._y1){switch(this._point){case 0:this._point=1;this._line?this._context.lineTo(n,t):this._context.moveTo(n,t);break;case 1:this._point=2;break;case 2:this._point=3;dw(this,gut(this,i=dut(this,n,t)),i);break;default:dw(this,this._t0,i=dut(this,n,t))}this._x0=this._x1;this._x1=n;this._y0=this._y1;this._y1=t;this._t0=i}}};(nft.prototype=Object.create(pc.prototype)).point=function(n,t){pc.prototype.point.call(this,t,n)};tft.prototype={moveTo:function(n,t){this._context.moveTo(t,n)},closePath:function(){this._context.closePath()},lineTo:function(n,t){this._context.lineTo(t,n)},bezierCurveTo:function(n,t,i,r,u,f){this._context.bezierCurveTo(t,n,r,i,f,u)}};ift.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[];this._y=[]},lineEnd:function(){var n=this._x,t=this._y,r=n.length;if(r)if(this._line?this._context.lineTo(n[0],t[0]):this._context.moveTo(n[0],t[0]),2===r)this._context.lineTo(n[1],t[1]);else for(var f=rft(n),e=rft(t),i=0,u=1;u<r;++i,++u)this._context.bezierCurveTo(f[0][i],e[0][i],f[1][i],e[1][i],n[u],t[u]);(this._line||0!==this._line&&1===r)&&this._context.closePath();this._line=1-this._line;this._x=this._y=null},point:function(n,t){this._x.push(+n);this._y.push(+t)}};fvt=function(n){return new ift(n)};wc.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN;this._point=0},lineEnd:function(){0<this._t&&this._t<1&&2===this._point&&this._context.lineTo(this._x,this._y);(this._line||0!==this._line&&1===this._point)&&this._context.closePath();this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(n,t){switch(n=+n,t=+t,this._point){case 0:this._point=1;this._line?this._context.lineTo(n,t):this._context.moveTo(n,t);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(n,t);else{var i=this._x*(1-this._t)+n*this._t;this._context.lineTo(i,this._y);this._context.lineTo(i,t)}}this._x=n;this._y=t}};var cki=function(n){return new wc(n,.5)},ve=function(n,t){if((e=n.length)>1)for(var i,u,e,f=1,r=n[t[0]],o=r.length;f<e;++f)for(u=r,r=n[t[f]],i=0;i<o;++i)r[i][1]+=r[i][0]=isNaN(u[i][1])?u[i][0]:u[i][1]},ye=function(n){for(var t=n.length,i=new Array(t);--t>=0;)i[t]=t;return i},lki=function(){function n(n){for(var s,c=t.apply(this,arguments),l=n.length,h=c.length,o=new Array(h),f=0;f<h;++f){for(var a,v=c[f],y=o[f]=new Array(l),e=0;e<l;++e)y[e]=a=[0,+u(n[e],v,e,n)],a.data=n[e];y.key=v}for(f=0,s=i(o);f<h;++f)o[s[f]].index=f;return r(o,s),o}var t=v([]),i=ye,r=ve,u=fui;return n.keys=function(i){return arguments.length?(t="function"==typeof i?i:v(pd.call(i)),n):t},n.value=function(t){return arguments.length?(u="function"==typeof t?t:v(+t),n):u},n.order=function(t){return arguments.length?(i=null==t?ye:"function"==typeof t?t:v(pd.call(t)),n):i},n.offset=function(t){return arguments.length?(r=null==t?ve:t,n):r},n},aki=function(n,t){if((f=n.length)>0){for(var i,f,r,u=0,e=n[0].length;u<e;++u){for(r=i=0;i<f;++i)r+=n[i][u][1]||0;if(r)for(i=0;i<f;++i)n[i][u][1]/=r}ve(n,t)}},vki=function(n,t){if((s=n.length)>0)for(var u,i,r,f,e,s,o=0,h=n[t[0]].length;o<h;++o)for(f=e=0,u=0;u<s;++u)(r=(i=n[t[u]][o])[1]-i[0])>0?(i[0]=f,i[1]=f+=r):r<0?(i[1]=e,i[0]=e+=r):(i[0]=0,i[1]=r)},yki=function(n,t){var r,f;if((e=n.length)>0){for(var e,i=0,u=n[t[0]],o=u.length;i<o;++i){for(r=0,f=0;r<e;++r)f+=n[r][i][1]||0;u[i][1]+=u[i][0]=-f/2}ve(n,t)}},pki=function(n,t){var r,c,l,u,i,h;if((l=n.length)>0&&(c=(r=n[t[0]]).length)>0){for(u=0,i=1;i<c;++i){for(var f=0,e=0,a=0;f<l;++f){for(var v=n[t[f]],o=v[i][1]||0,p=v[i-1][1]||0,y=(o-p)/2,s=0;s<f;++s)h=n[t[s]],y+=(h[i][1]||0)-(h[i-1][1]||0);e+=o;a+=y*o}r[i-1][1]+=r[i-1][0]=u;e&&(u-=a/e)}r[i-1][1]+=r[i-1][0]=u;ve(n,t)}},evt=function(n){var t=n.map(eui);return ye(n).sort(function(n,i){return t[n]-t[i]})},ovt=function(n){var t=n.map(uft);return ye(n).sort(function(n,i){return t[n]-t[i]})},wki=function(n){return ovt(n).reverse()},bki=function(n){for(var t,s=n.length,r=n.map(uft),h=evt(n),u=0,f=0,e=[],o=[],i=0;i<s;++i)t=h[i],u<f?(u+=r[t],e.push(t)):(f+=r[t],o.push(t));return o.reverse().concat(e)},kki=function(n){return ye(n).reverse()},f=i(187),eu=i(233),svt=function(n){return function(){return n}};gw.prototype={constructor:gw,insert:function(n,t){var i,r,u;if(n){if(t.P=n,t.N=n.N,n.N&&(n.N.P=t),n.N=t,n.R){for(n=n.R;n.L;)n=n.L;n.L=t}else n.R=t;i=n}else this._?(n=fft(this._),t.P=null,t.N=n,n.P=n.L=t,i=n):(t.P=t.N=null,this._=t,i=null);for(t.L=t.R=null,t.U=i,t.C=!0,n=t;i&&i.C;)r=i.U,i===r.L?(u=r.R,u&&u.C?(i.C=u.C=!1,r.C=!0,n=r):(n===i.R&&(lo(this,i),n=i,i=n.U),i.C=!1,r.C=!0,ao(this,r))):(u=r.L,u&&u.C?(i.C=u.C=!1,r.C=!0,n=r):(n===i.L&&(ao(this,i),n=i,i=n.U),i.C=!1,r.C=!0,lo(this,r))),i=n.U;this._.C=!1},remove:function(n){n.N&&(n.N.P=n.P);n.P&&(n.P.N=n.N);n.N=n.P=null;var t,r,e,i=n.U,f=n.L,u=n.R;if(r=f?u?fft(u):f:u,i?i.L===n?i.L=r:i.R=r:this._=r,f&&u?(e=r.C,r.C=n.C,r.L=f,f.U=r,r!==u?(i=r.U,r.U=n.U,n=r.R,i.L=n,r.R=u,u.U=r):(r.U=i,i=r,n=r.R)):(e=n.C,n=r),n&&(n.U=i),!e){if(n&&n.C)return void(n.C=!1);do{if(n===this._)break;if(n===i.L){if(t=i.R,t.C&&(t.C=!1,i.C=!0,lo(this,i),t=i.R),t.L&&t.L.C||t.R&&t.R.C){t.R&&t.R.C||(t.L.C=!1,t.C=!0,ao(this,t),t=i.R);t.C=i.C;i.C=t.R.C=!1;lo(this,i);n=this._;break}}else if(t=i.L,t.C&&(t.C=!1,i.C=!0,ao(this,i),t=i.L),t.L&&t.L.C||t.R&&t.R.C){t.L&&t.L.C||(t.R.C=!1,t.C=!0,lo(this,t),t=i.L);t.C=i.C;i.C=t.L.C=!1;ao(this,i);n=this._;break}t.C=!0;n=i;i=i.U}while(!n.C);n&&(n.C=!1)}}};var dd,pe,ri,rh,ht,hvt=gw,cvt=[],lvt=[],p=1e-6,dki=1e-12;tb.prototype={constructor:tb,polygons:function(){var n=this.edges;return this.cells.map(function(t){var i=t.halfedges.map(function(i){return eft(t,n[i])});return i.data=t.site.data,i})},triangles:function(){var n=[],t=this.edges;return this.cells.forEach(function(i,r){if(h=(s=i.halfedges).length)for(var s,h,e,o=i.site,c=-1,u=t[s[h-1]],f=u.left===o?u.right:u.left;++c<h;)e=f,u=t[s[c]],f=u.left===o?u.right:u.left,e&&f&&r<e.index&&r<f.index&&tfi(o,e,f)<0&&n.push([o.data,e.data,f.data])}),n},links:function(){return this.edges.filter(function(n){return n.right}).map(function(n){return{source:n.left.data,target:n.right.data}})},find:function(n,t,i){for(var o,r,u=this,f=u._found||0,c=u.cells.length;!(r=u.cells[f]);)if(++f>=c)return null;var s=n-r.site[0],h=t-r.site[1],e=s*s+h*h;do r=u.cells[o=f],f=null,r.halfedges.forEach(function(i){var s=u.edges[i],o=s.left;if(o!==r.site&&o||(o=s.right)){var h=n-o[0],c=t-o[1],l=h*h+c*c;l<e&&(e=l,f=o.index)}});while(null!==f);return u._found=o,null==i||e<=i*i?r.site:null}};avt=function(){function n(n){return new tb(n.map(function(t,u){var f=[Math.round(i(t,u,n)/p)*p,Math.round(r(t,u,n)/p)*p];return f.index=u,f.data=t,f}),t)}var i=oui,r=sui,t=null;return n.polygons=function(t){return n(t).polygons()},n.links=function(t){return n(t).links()},n.triangles=function(t){return n(t).triangles()},n.x=function(t){return arguments.length?(i="function"==typeof t?t:svt(+t),n):i},n.y=function(t){return arguments.length?(r="function"==typeof t?t:svt(+t),n):r},n.extent=function(i){return arguments.length?(t=null==i?null:[[+i[0][0],+i[0][1]],[+i[1][0],+i[1][1]]],n):t&&[[t[0][0],t[0][1]],[t[1][0],t[1][1]]]},n.size=function(i){return arguments.length?(t=null==i?null:[[0,0],[+i[0],+i[1]]],n):t&&[t[1][0]-t[0][0],t[1][1]-t[0][1]]},n};uh=function(n){return function(){return n}};sr.prototype={constructor:sr,scale:function(n){return 1===n?this:new sr(this.k*n,this.x,this.y)},translate:function(n,t){return 0===n&0===t?this:new sr(this.k,this.x+this.k*n,this.y+this.k*t)},apply:function(n){return[n[0]*this.k+this.x,n[1]*this.k+this.y]},applyX:function(n){return n*this.k+this.x},applyY:function(n){return n*this.k+this.y},invert:function(n){return[(n[0]-this.x)/this.k,(n[1]-this.y)/this.k]},invertX:function(n){return(n-this.x)/this.k},invertY:function(n){return(n-this.y)/this.k},rescaleX:function(n){return n.copy().domain(n.range().map(this.invertX,this).map(n.invert,n))},rescaleY:function(n){return n.copy().domain(n.range().map(this.invertY,this).map(n.invert,n))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};fh=new sr(1,0,0);hft.prototype=sr.prototype;we=function(){r.preventDefault();r.stopImmediatePropagation()};vvt=function(){function n(n){n.property("__zoom",cft).on("wheel.zoom",it).on("mousedown.zoom",rt).on("dblclick.zoom",ut).filter(b).on("touchstart.zoom",ft).on("touchmove.zoom",et).on("touchend.zoom touchcancel.zoom",ot).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function v(n,t){return t=Math.max(o[0],Math.min(o[1],t)),t===n.k?n:new sr(t,n.x,n.y)}function h(n,t,i){var r=t[0]-i[0]*n.k,u=t[1]-i[1]*n.k;return r===n.x&&u===n.y?n:new sr(n.k,r,u)}function p(n){return[(+n[0][0]+ +n[1][0])/2,(+n[0][1]+ +n[1][1])/2]}function g(n,t,r){n.on("start.zoom",function(){i(this,arguments).start()}).on("interrupt.zoom end.zoom",function(){i(this,arguments).end()}).tween("zoom",function(){var n=this,f=arguments,l=i(n,f),u=e.apply(n,f),o=null==r?p(u):"function"==typeof r?r.apply(n,f):r,s=Math.max(u[1][0]-u[0][0],u[1][1]-u[0][1]),c=n.__zoom,h="function"==typeof t?t.apply(n,f):t,a=k(c.invert(o).concat(s/c.k),h.invert(o).concat(s/h.k));return function(n){if(1===n)n=h;else{var t=a(n),i=s/t[2];n=new sr(i,o[0]-t[0]*i,o[1]-t[1]*i)}l.zoom(null,n)}})}function i(n,t,i){return!i&&n.__zooming||new nt(n,t)}function nt(n,t){this.that=n;this.args=t;this.active=0;this.extent=e.apply(n,t);this.taps=0}function it(){function c(){n.wheel=null;n.end()}if(s.apply(this,arguments)){var n=i(this,arguments),r=this.__zoom,e=Math.max(o[0],Math.min(o[1],r.k*Math.pow(2,w.apply(this,arguments)))),u=yu(this);if(n.wheel)n.mouse[0][0]===u[0]&&n.mouse[0][1]===u[1]||(n.mouse[1]=r.invert(n.mouse[0]=u)),clearTimeout(n.wheel);else{if(r.k===e)return;n.mouse=[u,r.invert(u)];wu(this);n.start()}we();n.wheel=setTimeout(c,st);n.zoom("mouse",f(h(v(r,e),n.mouse[0],n.mouse[1]),n.extent,t))}}function rt(){function e(){if(we(),!n.moved){var i=r.clientX-a,u=r.clientY-v;n.moved=i*i+u*u>d}n.zoom("mouse",f(h(n.that.__zoom,n.mouse[0]=yu(n.that),n.mouse[1]),n.extent,t))}function o(){l.on("mousemove.zoom mouseup.zoom",null);hh(r.view,n.moved);we();n.end()}if(!c&&s.apply(this,arguments)){var n=i(this,arguments,!0),l=gt(r.view).on("mousemove.zoom",e,!0).on("mouseup.zoom",o,!0),u=yu(this),a=r.clientX,v=r.clientY;rl(r.view);ib();n.mouse=[u,this.__zoom.invert(u)];wu(this);n.start()}}function ut(){if(s.apply(this,arguments)){var i=this.__zoom,u=yu(this),c=i.invert(u),l=i.k*(r.shiftKey?.5:2),o=f(h(v(i,l),u,c),e.apply(this,arguments),t);we();y>0?gt(this).transition().duration(y).call(g,o,u):gt(this).call(n.transform,o)}}function ft(){if(s.apply(this,arguments)){var h,f,e,t,o=r.touches,c=o.length,n=i(this,arguments,r.changedTouches.length===c);for(ib(),f=0;f<c;++f)e=o[f],t=bo(this,o,e.identifier),t=[t,this.__zoom.invert(t),e.identifier],n.touch0?n.touch1||n.touch0[2]===t[2]||(n.touch1=t,n.taps=0):(n.touch0=t,h=!0,n.taps=1+!!u);u&&(u=clearTimeout(u));h&&(n.taps<2&&(u=setTimeout(function(){u=null},tt)),wu(this),n.start())}}function et(){if(this.__zooming){var l,e,o,b,n=i(this,arguments),k=r.changedTouches,d=k.length;for(we(),u&&(u=clearTimeout(u)),n.taps=0,l=0;l<d;++l)e=k[l],o=bo(this,k,e.identifier),n.touch0&&n.touch0[2]===e.identifier?n.touch0[0]=o:n.touch1&&n.touch1[2]===e.identifier&&(n.touch1[0]=o);if(e=n.that.__zoom,n.touch1){var a=n.touch0[0],y=n.touch0[1],p=n.touch1[0],w=n.touch1[1],s=(s=p[0]-a[0])*s+(s=p[1]-a[1])*s,c=(c=w[0]-y[0])*c+(c=w[1]-y[1])*c;e=v(e,Math.sqrt(s/c));o=[(a[0]+p[0])/2,(a[1]+p[1])/2];b=[(y[0]+w[0])/2,(y[1]+w[1])/2]}else{if(!n.touch0)return;o=n.touch0[0];b=n.touch0[1]}n.zoom("touch",f(h(e,o,b),n.extent,t))}}function ot(){var f;if(this.__zooming){var t,u,n=i(this,arguments),e=r.changedTouches,o=e.length;for(ib(),c&&clearTimeout(c),c=setTimeout(function(){c=null},tt),t=0;t<o;++t)u=e[t],n.touch0&&n.touch0[2]===u.identifier?delete n.touch0:n.touch1&&n.touch1[2]===u.identifier&&delete n.touch1;(n.touch1&&!n.touch0&&(n.touch0=n.touch1,delete n.touch1),n.touch0)?n.touch0[1]=this.__zoom.invert(n.touch0[0]):(n.end(),2===n.taps)&&(f=gt(this).on("dblclick.zoom"),f&&f.apply(this,arguments))}}var u,c,s=ufi,e=ffi,f=sfi,w=efi,b=ofi,o=[0,1/0],t=[[-1/0,-1/0],[1/0,1/0]],y=250,k=l.y,a=of("start","zoom","end"),tt=500,st=150,d=0;return n.transform=function(n,t,r){var u=n.selection?n.selection():n;u.property("__zoom",cft);n!==u?g(n,t,r):u.interrupt().each(function(){i(this,arguments).start().zoom(null,"function"==typeof t?t.apply(this,arguments):t).end()})},n.scaleBy=function(t,i,r){n.scaleTo(t,function(){return this.__zoom.k*("function"==typeof i?i.apply(this,arguments):i)},r)},n.scaleTo=function(i,r,u){n.transform(i,function(){var n=e.apply(this,arguments),i=this.__zoom,o=null==u?p(n):"function"==typeof u?u.apply(this,arguments):u,s=i.invert(o),c="function"==typeof r?r.apply(this,arguments):r;return f(h(v(i,c),o,s),n,t)},u)},n.translateBy=function(i,r,u){n.transform(i,function(){return f(this.__zoom.translate("function"==typeof r?r.apply(this,arguments):r,"function"==typeof u?u.apply(this,arguments):u),e.apply(this,arguments),t)})},n.translateTo=function(i,r,u,o){n.transform(i,function(){var n=e.apply(this,arguments),s=this.__zoom,i=null==o?p(n):"function"==typeof o?o.apply(this,arguments):o;return f(fh.translate(i[0],i[1]).scale(s.k).translate("function"==typeof r?-r.apply(this,arguments):-r,"function"==typeof u?-u.apply(this,arguments):-u),n,t)},o)},nt.prototype={start:function(){return 1==++this.active&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(n,t){return this.mouse&&"mouse"!==n&&(this.mouse[1]=t.invert(this.mouse[0])),this.touch0&&"touch"!==n&&(this.touch0[1]=t.invert(this.touch0[0])),this.touch1&&"touch"!==n&&(this.touch1[1]=t.invert(this.touch1[0])),this.that.__zoom=t,this.emit("zoom"),this},end:function(){return 0==--this.active&&(delete this.that.__zooming,this.emit("end")),this},emit:function(t){be(new rfi(n,t,this.that.__zoom),a.apply,a,[t,this.that,this.args])}},n.wheelDelta=function(t){return arguments.length?(w="function"==typeof t?t:uh(+t),n):w},n.filter=function(t){return arguments.length?(s="function"==typeof t?t:uh(!!t),n):s},n.touchable=function(t){return arguments.length?(b="function"==typeof t?t:uh(!!t),n):b},n.extent=function(t){return arguments.length?(e="function"==typeof t?t:uh([[+t[0][0],+t[0][1]],[+t[1][0],+t[1][1]]]),n):e},n.scaleExtent=function(t){return arguments.length?(o[0]=+t[0],o[1]=+t[1],n):[o[0],o[1]]},n.translateExtent=function(i){return arguments.length?(t[0][0]=+i[0][0],t[1][0]=+i[1][0],t[0][1]=+i[0][1],t[1][1]=+i[1][1],n):[[t[0][0],t[0][1]],[t[1][0],t[1][1]]]},n.constrain=function(t){return arguments.length?(f=t,n):f},n.duration=function(t){return arguments.length?(y=+t,n):y},n.interpolate=function(t){return arguments.length?(k=t,n):k},n.on=function(){var t=a.on.apply(a,arguments);return t===a?n:t},n.clickDistance=function(t){return arguments.length?(d=(t=+t)*t,n):Math.sqrt(d)},n};i.d(t,"version",function(){return"5.16.0"});i.d(t,"bisect",function(){return h.b});i.d(t,"bisectRight",function(){return h.d});i.d(t,"bisectLeft",function(){return h.c});i.d(t,"ascending",function(){return h.a});i.d(t,"bisector",function(){return h.e});i.d(t,"cross",function(){return h.f});i.d(t,"descending",function(){return h.g});i.d(t,"deviation",function(){return h.h});i.d(t,"extent",function(){return h.i});i.d(t,"histogram",function(){return h.j});i.d(t,"thresholdFreedmanDiaconis",function(){return h.w});i.d(t,"thresholdScott",function(){return h.x});i.d(t,"thresholdSturges",function(){return h.y});i.d(t,"max",function(){return h.k});i.d(t,"mean",function(){return h.l});i.d(t,"median",function(){return h.m});i.d(t,"merge",function(){return h.n});i.d(t,"min",function(){return h.o});i.d(t,"pairs",function(){return h.p});i.d(t,"permute",function(){return h.q});i.d(t,"quantile",function(){return h.r});i.d(t,"range",function(){return h.s});i.d(t,"scan",function(){return h.t});i.d(t,"shuffle",function(){return h.u});i.d(t,"sum",function(){return h.v});i.d(t,"ticks",function(){return h.B});i.d(t,"tickIncrement",function(){return h.z});i.d(t,"tickStep",function(){return h.A});i.d(t,"transpose",function(){return h.C});i.d(t,"variance",function(){return h.D});i.d(t,"zip",function(){return h.E});i.d(t,"axisTop",function(){return dvt});i.d(t,"axisRight",function(){return gvt});i.d(t,"axisBottom",function(){return nyt});i.d(t,"axisLeft",function(){return tyt});i.d(t,"brush",function(){return khi});i.d(t,"brushX",function(){return fdt});i.d(t,"brushY",function(){return edt});i.d(t,"brushSelection",function(){return udt});i.d(t,"chord",function(){return dhi});i.d(t,"ribbon",function(){return tci});i.d(t,"nest",function(){return dr.d});i.d(t,"set",function(){return dr.e});i.d(t,"map",function(){return dr.c});i.d(t,"keys",function(){return dr.b});i.d(t,"values",function(){return dr.f});i.d(t,"entries",function(){return dr.a});i.d(t,"color",function(){return ah});i.d(t,"rgb",function(){return vn});i.d(t,"hsl",function(){return kn});i.d(t,"lab",function(){return gn});i.d(t,"hcl",function(){return ttt});i.d(t,"lch",function(){return pdt});i.d(t,"gray",function(){return ydt});i.d(t,"cubehelix",function(){return rtt});i.d(t,"contours",function(){return pot});i.d(t,"contourDensity",function(){return pci});i.d(t,"dispatch",function(){return of});i.d(t,"drag",function(){return foi});i.d(t,"dragDisable",function(){return rl});i.d(t,"dragEnable",function(){return hh});i.d(t,"dsvFormat",function(){return bl});i.d(t,"csvParse",function(){return bot});i.d(t,"csvParseRows",function(){return wci});i.d(t,"csvFormat",function(){return bci});i.d(t,"csvFormatBody",function(){return kci});i.d(t,"csvFormatRows",function(){return dci});i.d(t,"csvFormatRow",function(){return gci});i.d(t,"csvFormatValue",function(){return nli});i.d(t,"tsvParse",function(){return kot});i.d(t,"tsvParseRows",function(){return tli});i.d(t,"tsvFormat",function(){return ili});i.d(t,"tsvFormatBody",function(){return rli});i.d(t,"tsvFormatRows",function(){return uli});i.d(t,"tsvFormatRow",function(){return fli});i.d(t,"tsvFormatValue",function(){return eli});i.d(t,"autoType",function(){return egt});i.d(t,"easeLinear",function(){return ekt});i.d(t,"easeQuad",function(){return rn});i.d(t,"easeQuadIn",function(){return okt});i.d(t,"easeQuadOut",function(){return skt});i.d(t,"easeQuadInOut",function(){return rn});i.d(t,"easeCubic",function(){return uy});i.d(t,"easeCubicIn",function(){return hkt});i.d(t,"easeCubicOut",function(){return ckt});i.d(t,"easeCubicInOut",function(){return uy});i.d(t,"easePoly",function(){return cet});i.d(t,"easePolyIn",function(){return ksi});i.d(t,"easePolyOut",function(){return dsi});i.d(t,"easePolyInOut",function(){return cet});i.d(t,"easeSin",function(){return un});i.d(t,"easeSinIn",function(){return lkt});i.d(t,"easeSinOut",function(){return akt});i.d(t,"easeSinInOut",function(){return un});i.d(t,"easeExp",function(){return fn});i.d(t,"easeExpIn",function(){return vkt});i.d(t,"easeExpOut",function(){return ykt});i.d(t,"easeExpInOut",function(){return fn});i.d(t,"easeCircle",function(){return en});i.d(t,"easeCircleIn",function(){return pkt});i.d(t,"easeCircleOut",function(){return wkt});i.d(t,"easeCircleInOut",function(){return en});i.d(t,"easeBounce",function(){return no});i.d(t,"easeBounceIn",function(){return bkt});i.d(t,"easeBounceOut",function(){return no});i.d(t,"easeBounceInOut",function(){return kkt});i.d(t,"easeBack",function(){return yet});i.d(t,"easeBackIn",function(){return ohi});i.d(t,"easeBackOut",function(){return shi});i.d(t,"easeBackInOut",function(){return yet});i.d(t,"easeElastic",function(){return pet});i.d(t,"easeElasticIn",function(){return hhi});i.d(t,"easeElasticOut",function(){return pet});i.d(t,"easeElasticInOut",function(){return chi});i.d(t,"blob",function(){return sli});i.d(t,"buffer",function(){return hli});i.d(t,"dsv",function(){return cgt});i.d(t,"csv",function(){return cli});i.d(t,"tsv",function(){return lli});i.d(t,"image",function(){return ali});i.d(t,"json",function(){return vli});i.d(t,"text",function(){return kl});i.d(t,"xml",function(){return yli});i.d(t,"html",function(){return pli});i.d(t,"svg",function(){return wli});i.d(t,"forceCenter",function(){return bli});i.d(t,"forceCollide",function(){return hai});i.d(t,"forceLink",function(){return cai});i.d(t,"forceManyBody",function(){return yai});i.d(t,"forceRadial",function(){return pai});i.d(t,"forceSimulation",function(){return vai});i.d(t,"forceX",function(){return wai});i.d(t,"forceY",function(){return bai});i.d(t,"formatDefaultLocale",function(){return lr.c});i.d(t,"format",function(){return lr.b});i.d(t,"formatPrefix",function(){return lr.e});i.d(t,"formatLocale",function(){return lr.d});i.d(t,"formatSpecifier",function(){return lr.f});i.d(t,"FormatSpecifier",function(){return lr.a});i.d(t,"precisionFixed",function(){return lr.g});i.d(t,"precisionPrefix",function(){return lr.h});i.d(t,"precisionRound",function(){return lr.i});i.d(t,"geoArea",function(){return kai});i.d(t,"geoBounds",function(){return dai});i.d(t,"geoCentroid",function(){return gai});i.d(t,"geoCircle",function(){return nvi});i.d(t,"geoClipAntimeridian",function(){return nd});i.d(t,"geoClipCircle",function(){return wst});i.d(t,"geoClipExtent",function(){return ivi});i.d(t,"geoClipRectangle",function(){return tc});i.d(t,"geoContains",function(){return uvi});i.d(t,"geoDistance",function(){return wa});i.d(t,"geoGraticule",function(){return yit});i.d(t,"geoGraticule10",function(){return nti});i.d(t,"geoInterpolate",function(){return fvi});i.d(t,"geoLength",function(){return bst});i.d(t,"geoPath",function(){return uht});i.d(t,"geoAlbers",function(){return sht});i.d(t,"geoAlbersUsa",function(){return hvi});i.d(t,"geoAzimuthalEqualArea",function(){return hht});i.d(t,"geoAzimuthalEqualAreaRaw",function(){return ld});i.d(t,"geoAzimuthalEquidistant",function(){return cht});i.d(t,"geoAzimuthalEquidistantRaw",function(){return rv});i.d(t,"geoConicConformal",function(){return aht});i.d(t,"geoConicConformalRaw",function(){return ert});i.d(t,"geoConicEqualArea",function(){return iv});i.d(t,"geoConicEqualAreaRaw",function(){return rrt});i.d(t,"geoConicEquidistant",function(){return lvi});i.d(t,"geoConicEquidistantRaw",function(){return ort});i.d(t,"geoEqualEarth",function(){return vht});i.d(t,"geoEqualEarthRaw",function(){return vp});i.d(t,"geoEquirectangular",function(){return cvi});i.d(t,"geoEquirectangularRaw",function(){return oo});i.d(t,"geoGnomonic",function(){return yht});i.d(t,"geoGnomonicRaw",function(){return yp});i.d(t,"geoIdentity",function(){return pht});i.d(t,"geoProjection",function(){return wi});i.d(t,"geoProjectionMutator",function(){return lp});i.d(t,"geoMercator",function(){return lht});i.d(t,"geoMercatorRaw",function(){return eo});i.d(t,"geoNaturalEarth1",function(){return wht});i.d(t,"geoNaturalEarth1Raw",function(){return pp});i.d(t,"geoOrthographic",function(){return bht});i.d(t,"geoOrthographicRaw",function(){return wp});i.d(t,"geoStereographic",function(){return kht});i.d(t,"geoStereographicRaw",function(){return bp});i.d(t,"geoTransverseMercator",function(){return avi});i.d(t,"geoTransverseMercatorRaw",function(){return kp});i.d(t,"geoRotation",function(){return lst});i.d(t,"geoStream",function(){return si});i.d(t,"geoTransform",function(){return fht});i.d(t,"cluster",function(){return vvi});i.d(t,"hierarchy",function(){return dp});i.d(t,"pack",function(){return eyi});i.d(t,"packSiblings",function(){return fyi});i.d(t,"packEnclose",function(){return dht});i.d(t,"partition",function(){return oyi});i.d(t,"stratify",function(){return hyi});i.d(t,"tree",function(){return cyi});i.d(t,"treemap",function(){return lyi});i.d(t,"treemapBinary",function(){return ayi});i.d(t,"treemapDice",function(){return gs});i.d(t,"treemapSlice",function(){return fv});i.d(t,"treemapSliceDice",function(){return vyi});i.d(t,"treemapSquarify",function(){return rct});i.d(t,"treemapResquarify",function(){return yyi});i.d(t,"interpolate",function(){return l.a});i.d(t,"interpolateArray",function(){return l.b});i.d(t,"interpolateBasis",function(){return l.c});i.d(t,"interpolateBasisClosed",function(){return l.d});i.d(t,"interpolateDate",function(){return l.g});i.d(t,"interpolateDiscrete",function(){return l.h});i.d(t,"interpolateHue",function(){return l.m});i.d(t,"interpolateNumber",function(){return l.o});i.d(t,"interpolateNumberArray",function(){return l.p});i.d(t,"interpolateObject",function(){return l.q});i.d(t,"interpolateRound",function(){return l.u});i.d(t,"interpolateString",function(){return l.v});i.d(t,"interpolateTransformCss",function(){return l.w});i.d(t,"interpolateTransformSvg",function(){return l.x});i.d(t,"interpolateZoom",function(){return l.y});i.d(t,"interpolateRgb",function(){return l.r});i.d(t,"interpolateRgbBasis",function(){return l.s});i.d(t,"interpolateRgbBasisClosed",function(){return l.t});i.d(t,"interpolateHsl",function(){return l.k});i.d(t,"interpolateHslLong",function(){return l.l});i.d(t,"interpolateLab",function(){return l.n});i.d(t,"interpolateHcl",function(){return l.i});i.d(t,"interpolateHclLong",function(){return l.j});i.d(t,"interpolateCubehelix",function(){return l.e});i.d(t,"interpolateCubehelixLong",function(){return l.f});i.d(t,"piecewise",function(){return l.z});i.d(t,"quantize",function(){return l.A});i.d(t,"path",function(){return bu});i.d(t,"polygonArea",function(){return pyi});i.d(t,"polygonCentroid",function(){return wyi});i.d(t,"polygonHull",function(){return kyi});i.d(t,"polygonContains",function(){return dyi});i.d(t,"polygonLength",function(){return gyi});i.d(t,"quadtree",function(){return yh});i.d(t,"randomUniform",function(){return npi});i.d(t,"randomNormal",function(){return uct});i.d(t,"randomLogNormal",function(){return tpi});i.d(t,"randomBates",function(){return ipi});i.d(t,"randomIrwinHall",function(){return fct});i.d(t,"randomExponential",function(){return rpi});i.d(t,"scaleBand",function(){return b.scaleBand});i.d(t,"scalePoint",function(){return b.scalePoint});i.d(t,"scaleIdentity",function(){return b.scaleIdentity});i.d(t,"scaleLinear",function(){return b.scaleLinear});i.d(t,"scaleLog",function(){return b.scaleLog});i.d(t,"scaleSymlog",function(){return b.scaleSymlog});i.d(t,"scaleOrdinal",function(){return b.scaleOrdinal});i.d(t,"scaleImplicit",function(){return b.scaleImplicit});i.d(t,"scalePow",function(){return b.scalePow});i.d(t,"scaleSqrt",function(){return b.scaleSqrt});i.d(t,"scaleQuantile",function(){return b.scaleQuantile});i.d(t,"scaleQuantize",function(){return b.scaleQuantize});i.d(t,"scaleThreshold",function(){return b.scaleThreshold});i.d(t,"scaleTime",function(){return b.scaleTime});i.d(t,"scaleUtc",function(){return b.scaleUtc});i.d(t,"scaleSequential",function(){return b.scaleSequential});i.d(t,"scaleSequentialLog",function(){return b.scaleSequentialLog});i.d(t,"scaleSequentialPow",function(){return b.scaleSequentialPow});i.d(t,"scaleSequentialSqrt",function(){return b.scaleSequentialSqrt});i.d(t,"scaleSequentialSymlog",function(){return b.scaleSequentialSymlog});i.d(t,"scaleSequentialQuantile",function(){return b.scaleSequentialQuantile});i.d(t,"scaleDiverging",function(){return b.scaleDiverging});i.d(t,"scaleDivergingLog",function(){return b.scaleDivergingLog});i.d(t,"scaleDivergingPow",function(){return b.scaleDivergingPow});i.d(t,"scaleDivergingSqrt",function(){return b.scaleDivergingSqrt});i.d(t,"scaleDivergingSymlog",function(){return b.scaleDivergingSymlog});i.d(t,"tickFormat",function(){return b.tickFormat});i.d(t,"schemeCategory10",function(){return upi});i.d(t,"schemeAccent",function(){return fpi});i.d(t,"schemeDark2",function(){return epi});i.d(t,"schemePaired",function(){return opi});i.d(t,"schemePastel1",function(){return spi});i.d(t,"schemePastel2",function(){return hpi});i.d(t,"schemeSet1",function(){return cpi});i.d(t,"schemeSet2",function(){return lpi});i.d(t,"schemeSet3",function(){return api});i.d(t,"schemeTableau10",function(){return vpi});i.d(t,"interpolateBrBG",function(){return ypi});i.d(t,"schemeBrBG",function(){return ect});i.d(t,"interpolatePRGn",function(){return ppi});i.d(t,"schemePRGn",function(){return oct});i.d(t,"interpolatePiYG",function(){return wpi});i.d(t,"schemePiYG",function(){return sct});i.d(t,"interpolatePuOr",function(){return bpi});i.d(t,"schemePuOr",function(){return hct});i.d(t,"interpolateRdBu",function(){return kpi});i.d(t,"schemeRdBu",function(){return cct});i.d(t,"interpolateRdGy",function(){return dpi});i.d(t,"schemeRdGy",function(){return lct});i.d(t,"interpolateRdYlBu",function(){return gpi});i.d(t,"schemeRdYlBu",function(){return act});i.d(t,"interpolateRdYlGn",function(){return nwi});i.d(t,"schemeRdYlGn",function(){return vct});i.d(t,"interpolateSpectral",function(){return twi});i.d(t,"schemeSpectral",function(){return yct});i.d(t,"interpolateBuGn",function(){return iwi});i.d(t,"schemeBuGn",function(){return pct});i.d(t,"interpolateBuPu",function(){return rwi});i.d(t,"schemeBuPu",function(){return wct});i.d(t,"interpolateGnBu",function(){return uwi});i.d(t,"schemeGnBu",function(){return bct});i.d(t,"interpolateOrRd",function(){return fwi});i.d(t,"schemeOrRd",function(){return kct});i.d(t,"interpolatePuBuGn",function(){return ewi});i.d(t,"schemePuBuGn",function(){return dct});i.d(t,"interpolatePuBu",function(){return owi});i.d(t,"schemePuBu",function(){return gct});i.d(t,"interpolatePuRd",function(){return swi});i.d(t,"schemePuRd",function(){return nlt});i.d(t,"interpolateRdPu",function(){return hwi});i.d(t,"schemeRdPu",function(){return tlt});i.d(t,"interpolateYlGnBu",function(){return cwi});i.d(t,"schemeYlGnBu",function(){return ilt});i.d(t,"interpolateYlGn",function(){return lwi});i.d(t,"schemeYlGn",function(){return rlt});i.d(t,"interpolateYlOrBr",function(){return awi});i.d(t,"schemeYlOrBr",function(){return ult});i.d(t,"interpolateYlOrRd",function(){return vwi});i.d(t,"schemeYlOrRd",function(){return flt});i.d(t,"interpolateBlues",function(){return ywi});i.d(t,"schemeBlues",function(){return elt});i.d(t,"interpolateGreens",function(){return pwi});i.d(t,"schemeGreens",function(){return olt});i.d(t,"interpolateGreys",function(){return wwi});i.d(t,"schemeGreys",function(){return slt});i.d(t,"interpolatePurples",function(){return bwi});i.d(t,"schemePurples",function(){return hlt});i.d(t,"interpolateReds",function(){return kwi});i.d(t,"schemeReds",function(){return clt});i.d(t,"interpolateOranges",function(){return dwi});i.d(t,"schemeOranges",function(){return llt});i.d(t,"interpolateCividis",function(){return gwi});i.d(t,"interpolateCubehelixDefault",function(){return sbi});i.d(t,"interpolateRainbow",function(){return lbi});i.d(t,"interpolateWarm",function(){return hbi});i.d(t,"interpolateCool",function(){return cbi});i.d(t,"interpolateSinebow",function(){return ybi});i.d(t,"interpolateTurbo",function(){return pbi});i.d(t,"interpolateViridis",function(){return wbi});i.d(t,"interpolateMagma",function(){return bbi});i.d(t,"interpolateInferno",function(){return kbi});i.d(t,"interpolatePlasma",function(){return dbi});i.d(t,"create",function(){return toi});i.d(t,"creator",function(){return nl});i.d(t,"local",function(){return sg});i.d(t,"matcher",function(){return sb});i.d(t,"mouse",function(){return yu});i.d(t,"namespace",function(){return wo});i.d(t,"namespaces",function(){return eb});i.d(t,"clientPoint",function(){return il});i.d(t,"select",function(){return gt});i.d(t,"selectAll",function(){return roi});i.d(t,"selection",function(){return sf});i.d(t,"selector",function(){return tl});i.d(t,"selectorAll",function(){return ob});i.d(t,"style",function(){return ou});i.d(t,"touch",function(){return bo});i.d(t,"touches",function(){return uoi});i.d(t,"window",function(){return hb});i.d(t,"event",function(){return r});i.d(t,"customEvent",function(){return be});i.d(t,"arc",function(){return nki});i.d(t,"area",function(){return rat});i.d(t,"line",function(){return yd});i.d(t,"pie",function(){return rki});i.d(t,"areaRadial",function(){return eat});i.d(t,"radialArea",function(){return eat});i.d(t,"lineRadial",function(){return fat});i.d(t,"radialLine",function(){return fat});i.d(t,"pointRadial",function(){return ih});i.d(t,"linkHorizontal",function(){return dri});i.d(t,"linkVertical",function(){return gri});i.d(t,"linkRadial",function(){return nui});i.d(t,"symbol",function(){return hki});i.d(t,"symbols",function(){return ski});i.d(t,"symbolCircle",function(){return wd});i.d(t,"symbolCross",function(){return oat});i.d(t,"symbolDiamond",function(){return hat});i.d(t,"symbolSquare",function(){return aat});i.d(t,"symbolStar",function(){return lat});i.d(t,"symbolTriangle",function(){return vat});i.d(t,"symbolWye",function(){return yat});i.d(t,"curveBasisClosed",function(){return wat});i.d(t,"curveBasisOpen",function(){return bat});i.d(t,"curveBasis",function(){return pat});i.d(t,"curveBundle",function(){return kat});i.d(t,"curveCardinalClosed",function(){return gat});i.d(t,"curveCardinalOpen",function(){return nvt});i.d(t,"curveCardinal",function(){return dat});i.d(t,"curveCatmullRomClosed",function(){return ivt});i.d(t,"curveCatmullRomOpen",function(){return rvt});i.d(t,"curveCatmullRom",function(){return tvt});i.d(t,"curveLinearClosed",function(){return uvt});i.d(t,"curveLinear",function(){return cv});i.d(t,"curveMonotoneX",function(){return tui});i.d(t,"curveMonotoneY",function(){return iui});i.d(t,"curveNatural",function(){return fvt});i.d(t,"curveStep",function(){return cki});i.d(t,"curveStepAfter",function(){return uui});i.d(t,"curveStepBefore",function(){return rui});i.d(t,"stack",function(){return lki});i.d(t,"stackOffsetExpand",function(){return aki});i.d(t,"stackOffsetDiverging",function(){return vki});i.d(t,"stackOffsetNone",function(){return ve});i.d(t,"stackOffsetSilhouette",function(){return yki});i.d(t,"stackOffsetWiggle",function(){return pki});i.d(t,"stackOrderAppearance",function(){return evt});i.d(t,"stackOrderAscending",function(){return ovt});i.d(t,"stackOrderDescending",function(){return wki});i.d(t,"stackOrderInsideOut",function(){return bki});i.d(t,"stackOrderNone",function(){return ye});i.d(t,"stackOrderReverse",function(){return kki});i.d(t,"timeInterval",function(){return f.g});i.d(t,"timeMillisecond",function(){return f.h});i.d(t,"timeMilliseconds",function(){return f.i});i.d(t,"utcMillisecond",function(){return f.L});i.d(t,"utcMilliseconds",function(){return f.M});i.d(t,"timeSecond",function(){return f.r});i.d(t,"timeSeconds",function(){return f.s});i.d(t,"utcSecond",function(){return f.V});i.d(t,"utcSeconds",function(){return f.W});i.d(t,"timeMinute",function(){return f.j});i.d(t,"timeMinutes",function(){return f.k});i.d(t,"timeHour",function(){return f.e});i.d(t,"timeHours",function(){return f.f});i.d(t,"timeDay",function(){return f.a});i.d(t,"timeDays",function(){return f.b});i.d(t,"timeWeek",function(){return f.B});i.d(t,"timeWeeks",function(){return f.C});i.d(t,"timeSunday",function(){return f.t});i.d(t,"timeSundays",function(){return f.u});i.d(t,"timeMonday",function(){return f.l});i.d(t,"timeMondays",function(){return f.m});i.d(t,"timeTuesday",function(){return f.x});i.d(t,"timeTuesdays",function(){return f.y});i.d(t,"timeWednesday",function(){return f.z});i.d(t,"timeWednesdays",function(){return f.A});i.d(t,"timeThursday",function(){return f.v});i.d(t,"timeThursdays",function(){return f.w});i.d(t,"timeFriday",function(){return f.c});i.d(t,"timeFridays",function(){return f.d});i.d(t,"timeSaturday",function(){return f.p});i.d(t,"timeSaturdays",function(){return f.q});i.d(t,"timeMonth",function(){return f.n});i.d(t,"timeMonths",function(){return f.o});i.d(t,"timeYear",function(){return f.D});i.d(t,"timeYears",function(){return f.E});i.d(t,"utcMinute",function(){return f.N});i.d(t,"utcMinutes",function(){return f.O});i.d(t,"utcHour",function(){return f.J});i.d(t,"utcHours",function(){return f.K});i.d(t,"utcDay",function(){return f.F});i.d(t,"utcDays",function(){return f.G});i.d(t,"utcWeek",function(){return f._5});i.d(t,"utcWeeks",function(){return f._6});i.d(t,"utcSunday",function(){return f.X});i.d(t,"utcSundays",function(){return f.Y});i.d(t,"utcMonday",function(){return f.P});i.d(t,"utcMondays",function(){return f.Q});i.d(t,"utcTuesday",function(){return f._1});i.d(t,"utcTuesdays",function(){return f._2});i.d(t,"utcWednesday",function(){return f._3});i.d(t,"utcWednesdays",function(){return f._4});i.d(t,"utcThursday",function(){return f.Z});i.d(t,"utcThursdays",function(){return f._0});i.d(t,"utcFriday",function(){return f.H});i.d(t,"utcFridays",function(){return f.I});i.d(t,"utcSaturday",function(){return f.T});i.d(t,"utcSaturdays",function(){return f.U});i.d(t,"utcMonth",function(){return f.R});i.d(t,"utcMonths",function(){return f.S});i.d(t,"utcYear",function(){return f._7});i.d(t,"utcYears",function(){return f._8});i.d(t,"timeFormatDefaultLocale",function(){return eu.d});i.d(t,"timeFormat",function(){return eu.c});i.d(t,"timeParse",function(){return eu.f});i.d(t,"utcFormat",function(){return eu.g});i.d(t,"utcParse",function(){return eu.h});i.d(t,"timeFormatLocale",function(){return eu.e});i.d(t,"isoFormat",function(){return eu.a});i.d(t,"isoParse",function(){return eu.b});i.d(t,"now",function(){return tf});i.d(t,"timer",function(){return ch});i.d(t,"timerFlush",function(){return hg});i.d(t,"timeout",function(){return ab});i.d(t,"interval",function(){return eoi});i.d(t,"transition",function(){return nn});i.d(t,"active",function(){return vhi});i.d(t,"interrupt",function(){return wu});i.d(t,"voronoi",function(){return avt});i.d(t,"zoom",function(){return vvt});i.d(t,"zoomTransform",function(){return hft});i.d(t,"zoomIdentity",function(){return fh})},function(n,t,i){"use strict";var f=this&&this.__extends||function(){var n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])};return function(t,i){function r(){this.constructor=t}n(t,i);t.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var r=i(215),u=i(198),e=i(0),o=function(n){function t(t,i,r,u){var f=n.call(this,t,i,r,u)||this;return f.coveoRoot=t,f.ID=i,f.facetSliders=[],f.registerOnOpenHandler(),f}return f(t,n),t.init=function(n,i,f){r.ResponsiveFacetColumn.init(t,n,i,f,u.FacetSlider.ID)},t.prototype.registerComponent=function(t){return n.prototype.registerComponent.call(this,t),t instanceof u.FacetSlider&&(this.facetSliders.push(t),!0)},t.prototype.registerOnOpenHandler=function(){this.dropdown.registerOnOpenHandler(this.drawFacetSliderGraphs,this)},t.prototype.drawFacetSliderGraphs=function(){e.each(this.facetSliders,function(n){return n.drawDelayedGraphData()})},t}(r.ResponsiveFacetColumn);t.ResponsiveFacetSlider=o},function(n,t){"use strict";var i=this&&this.__awaiter||function(n,t,i,r){return new(i||(i=Promise))(function(u,f){function o(n){try{e(r.next(n))}catch(n){f(n)}}function s(n){try{e(r.throw(n))}catch(n){f(n)}}function e(n){n.done?u(n.value):new i(function(t){t(n.value)}).then(o,s)}e((r=r.apply(n,t||[])).next())})},r=this&&this.__generator||function(n,t){function f(n){return function(t){return s([n,t])}}function s(f){if(e)throw new TypeError("Generator is already executing.");for(;r;)try{if(e=1,u&&(i=u[2&f[0]?"return":f[0]?"throw":"next"])&&!(i=i.call(u,f[1])).done)return i;switch(u=0,i&&(f=[0,i.value]),f[0]){case 0:case 1:i=f;break;case 4:return r.label++,{value:f[1],done:!1};case 5:r.label++;u=f[1];f=[0];continue;case 7:f=r.ops.pop();r.trys.pop();continue;default:if(i=r.trys,!(i=i.length>0&&i[i.length-1])&&(6===f[0]||2===f[0])){r=0;continue}if(3===f[0]&&(!i||f[1]>i[0]&&f[1]<i[3])){r.label=f[1];break}if(6===f[0]&&r.label<i[1]){r.label=i[1];i=f;break}if(i&&r.label<i[2]){r.label=i[2];r.ops.push(f);break}i[2]&&r.ops.pop();r.trys.pop();continue}f=t.call(n,r)}catch(n){f=[6,n];u=0}finally{e=i=0}if(5&f[0])throw f[1];return{value:f[0]?f[1]:void 0,done:!0}}var e,u,i,o,r={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:f(0),"throw":f(1),"return":f(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o},u;Object.defineProperty(t,"__esModule",{value:!0});u=function(){function n(n,t){this.queryController=n;this.options=t}return n.prototype.getSuggestions=function(n){return i(this,void 0,void 0,function(){var t;return r(this,function(i){switch(i.label){case 0:return[4,this.getFieldValuesToQuery(n)];case 1:return t=i.sent(),[2,this.getAllSuggestionsRows(t.responses,t.reference)]}})})},n.prototype.getAllSuggestionsRows=function(n,t){var i=this;return n.reduce(function(n,r){var u=r.values.map(function(n){return{numberOfResults:n.numberOfResults,keyword:r.keyword,value:n.value,score:i.computeScoreForSuggestionRow(n,t),field:i.options.field}});return n.concat(u)},[])},n.prototype.getFieldValuesToQuery=function(n){return i(this,void 0,void 0,function(){var u,t,f,e,i,o,s,h=this;return r(this,function(r){switch(r.label){case 0:return u=this.buildReferenceFieldValueRequest(),t=this.getQueryToExecuteParts(),this.options.expression&&t.push(this.options.expression),f=n.map(function(n){var i=t.concat([n.text]).join(" ");return h.buildListFieldValueRequest(i)}),e=f.concat([u]),[4,this.queryController.getEndpoint().listFieldValuesBatch({batch:e})];case 1:return i=r.sent(),o=this.computeReferenceFromBatch(i.pop()),s=i.map(function(t,i){return{keyword:n[i],values:t}}),[2,{responses:s,reference:o}]}})})},n.prototype.computeScoreForSuggestionRow=function(n,t){var i=t.fieldsTotal[n.value]||t.smallestTotal;return{distanceFromTotalForField:(i-n.numberOfResults)/i*100}},n.prototype.computeReferenceFromBatch=function(n){var t={};return n.forEach(function(n){return t[n.value]=n.numberOfResults}),{fieldsTotal:t,smallestTotal:n[n.length-1].numberOfResults}},n.prototype.buildListFieldValueRequest=function(n){return{field:this.options.field,ignoreAccents:!0,maximumNumberOfValues:3,queryOverride:n}},n.prototype.buildReferenceFieldValueRequest=function(){return{field:this.options.field}},n.prototype.getQueryToExecuteParts=function(){var n=this.queryController.getLastQuery();return[n&&n.aq?this.removeFieldExpressionFromExpression(this.options.field.toString(),n.aq):"",n.cq].filter(function(n){return!!n})},n.prototype.removeFieldExpressionFromExpression=function(n,t){return t.replace(new RegExp(n+"==([^)]*)","gi"),"").replace(new RegExp(n+"==[^ ]*","gi"),"")},n}();t.FacetValueSuggestionsProvider=u},function(){},function(){},function(n,t,i){"use strict";var u=this&&this.__extends||function(){var n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])};return function(t,i){function r(){this.constructor=t}n(t,i);t.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var f=i(489),r=i(0),e=function(n){function t(t,i){var r=n.call(this,t,i)||this;return r.facet=t,r.facetValueElementKlass=i,r}return u(t,n),t.prototype.sortFacetValues=function(n){var t=this,i,u;return(void 0===n&&(n=this.hierarchyFacetValues),!this.facet.shouldReshuffleFacetValuesClientSide)?(i=r.map(n,function(n,t){return{hierarchy:n,idx:t}}),0!=this.facet.options.levelStart&&this.facet.options.sortCriteria&&-1!=this.facet.options.sortCriteria.toLowerCase().indexOf("alpha")&&(u=-1!=this.facet.options.sortCriteria.toLowerCase().indexOf("descending"),i=i.sort(function(n,i){var e=null!=r.find(t.facet.topLevelHierarchy,function(t){return t.facetValue.value.toLowerCase()==n.hierarchy.value.toLowerCase()}),o=null!=r.find(t.facet.topLevelHierarchy,function(t){return t.facetValue.value.toLowerCase()==n.hierarchy.value.toLowerCase()});if(e&&o){var s=t.facet.getValueCaption(n.hierarchy),h=t.facet.getValueCaption(i.hierarchy),f=s.localeCompare(h);return u?-1*f:f}return n.idx-i.idx})),i=i.sort(function(n,i){if(n.hierarchy.selected===i.hierarchy.selected){var r=t.facet.getValueFromHierarchy(n.hierarchy),u=t.facet.getValueFromHierarchy(i.hierarchy);return r.hasChildSelected===u.hasChildSelected?n.idx-i.idx:r.hasChildSelected?-1:1}return n.hierarchy.selected?-1:1}),r.pluck(i,"hierarchy")):n},t.prototype.getValuesToBuildWith=function(){return this.facet.shouldReshuffleFacetValuesClientSide?this.hierarchyFacetValues:this.sortFacetValues()},t}(f.FacetValuesList);t.HierarchicalFacetValuesList=e},function(n,t,i){"use strict";var u=this&&this.__extends||function(){var n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])};return function(t,i){function r(){this.constructor=t}n(t,i);t.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var f=i(216),e=i(40),r=i(0),o=function(n){function t(t){var i=n.call(this,t)||this;return i.facet=t,i}return u(t,n),t.prototype.search=function(n,t){var i=this,u;return void 0===t&&(t=n.nbResults),u=e.FacetUtils.getRegexToUseForFacetSearch(this.facet.facetSearch.getValueInInputForFacetSearch(),this.facet.options.facetSearchIgnoreAccents),new Promise(function(t){var f=r.chain(i.facet.getAllValueHierarchy()).toArray().filter(function(t){return null!=i.facet.getValueCaption(t.facetValue).match(u)&&!r.contains(r.map(n.alwaysExclude,function(n){return n.toLowerCase()}),t.facetValue.value.toLowerCase())}).first(i.facet.options.numberOfValuesInFacetSearch).value();t(r.map(f,function(n){return n.facetValue}))})},t.prototype.getAllowedValuesFromSelected=function(){return[]},t}(f.FacetQueryController);t.HierarchicalFacetQueryController=o},function(n,t,i){"use strict";var r=this&&this.__extends||function(){var n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])};return function(t,i){function r(){this.constructor=t}n(t,i);t.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var u=i(488),f=i(625),e=function(n){function t(t){var i=n.call(this,t,f.HierarchicalFacetSearchValueElement)||this;return i.facet=t,i}return r(t,n),t}(u.FacetSearchValuesList);t.HierarchicalFacetSearchValuesList=e},function(n,t,i){"use strict";var f=this&&this.__extends||function(){var n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])};return function(t,i){function r(){this.constructor=t}n(t,i);t.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),r,u;Object.defineProperty(t,"__esModule",{value:!0});r=i(131);u=function(n){function t(t,i,r){var u=n.call(this,t,i,r)||this;return u.facet=t,u.facetValue=i,u.keepDisplayedValueNextTime=r,u}return f(t,n),t.prototype._handleSelectValue=function(t){this.facet.open(this.facetValue);n.prototype.handleSelectValue.call(this,t)},t.prototype._handleExcludeClick=function(t){this.facet.open(this.facetValue);n.prototype.handleExcludeClick.call(this,t)},t}(r.FacetValueElement);t.HierarchicalFacetSearchValueElement=u},function(n,t,i){"use strict";var u=this&&this.__extends||function(){var n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])};return function(t,i){function r(){this.constructor=t}n(t,i);t.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var f=i(487),e=i(172),o=i(118),s=i(4),h=i(26),r=i(0),c=function(n){function t(t,i,r){var u=n.call(this,t,i,r)||this;return u.facet=t,u.facetSearchValuesListKlass=i,u}return u(t,n),t.prototype.buildParamsForExcludingCurrentlyDisplayedValues=function(){var t=n.prototype.buildParamsForExcludingCurrentlyDisplayedValues.call(this);return t.alwaysExclude=this.facet.getDisplayedValues(),this.facet.facetSearch.currentlyDisplayedResults&&(t.alwaysExclude=t.alwaysExclude.concat(this.facet.facetSearch.currentlyDisplayedResults)),t},t.prototype.selectAllValuesMatchingSearch=function(){var t=this,n;this.facet.showWaitingAnimation();n=new e.FacetSearchParameters(this.facet);n.nbResults=this.facet.numberOfValues;n.alwaysInclude=this.facet.getDisplayedValues();n.setValueToSearch(this.getValueInInputForFacetSearch());this.facet.facetQueryController.search(n).then(function(n){t.dismissSearchResults();h.ModalBox.close(!0);var i=t.getFacetValues(n);t.facet.processFacetSearchAllResultsSelected(i)});this.dismissSearchResults()},t.prototype.getFacetValues=function(n){var t=this,i=[];return r.each(n,function(n){var r=t.facet.getValueFromHierarchy(n.value);i.push(t.createFacetValuesFromHierarchy(r))}),r.flatten(i)},t.prototype.createFacetValuesFromHierarchy=function(n){var u=this,i=[],f=n.facetValue.value,t=this.facet.values.get(f),e;return s.Utils.exists(t)||(t=o.FacetValue.create(f)),t.selected=!0,t.excluded=!1,i.push(t),e=n.childs,r.each(e,function(n){var t=u.facet.getValueFromHierarchy(n.facetValue.value);i.push(u.createFacetValuesFromHierarchy(t))}),i},t}(f.FacetSearch);t.HierarchicalFacetSearch=c},function(n,t,i){"use strict";var f=this&&this.__extends||function(){var n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])};return function(t,i){function r(){this.constructor=t}n(t,i);t.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var e=i(486),o=i(628),r=i(1),u=i(0),s=function(n){function t(t,i,r,u){var f=n.call(this,t,i,o.HierarchicalBreadcrumbValueElement,u)||this;return f.facet=t,f.facetValues=i,f.valueHierarchy=r,f}return f(t,n),t.prototype.buildAsString=function(){return(this.build(),this.elem)?this.facet.options.title+": "+u.map(r.$$(this.elem).findAll(".coveo-facet-breadcrumb-value"),function(n){return u.each(r.$$(n).findAll(".coveo-hierarchical-breadcrumb-separator"),function(n){r.$$(n).text("▸")}),r.$$(n).text()}).join(", "):""},t}(e.BreadcrumbValueList);t.HierarchicalBreadcrumbValuesList=s},function(n,t,i){"use strict";var u=this&&this.__extends||function(){var n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])};return function(t,i){function r(){this.constructor=t}n(t,i);t.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var f=i(485),r=i(0),e=function(n){function t(t,i){var r=n.call(this,t,i)||this;return r.facet=t,r.facetValue=i,r}return u(t,n),t.prototype.build=function(){var i=n.prototype.build.call(this),u,t;return i.addClass("coveo-hierarchical-facet-value"),u=i.find(".coveo-facet-breadcrumb-caption"),t=this.facetValue.value.split(this.facet.options.delimitingCharacter),t=r.map(t,function(n){return r.escape(n)}),u.innerHTML=t.join("<span class='coveo-hierarchical-breadcrumb-separator'><\/span>"),i},t}(f.BreadcrumbValueElement);t.HierarchicalBreadcrumbValueElement=e},function(n,t,i){"use strict";var r=this&&this.__extends||function(){var n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])};return function(t,i){function r(){this.constructor=t}n(t,i);t.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var u=i(491),f=i(630),e=function(n){function t(t,i,r){var u=n.call(this,t,i,r,f.OmniboxHierarchicalValueElement)||this;return u.facet=t,u.facetValues=i,u.omniboxObject=r,u}return r(t,n),t}(u.OmniboxValuesList);t.OmniboxHierarchicalValuesList=e},function(n,t,i){"use strict";var f=this&&this.__extends||function(){var n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])};return function(t,i){function r(){this.constructor=t}n(t,i);t.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),r,u;Object.defineProperty(t,"__esModule",{value:!0});r=i(490);u=function(n){function t(t,i,r){var u=n.call(this,t,i,r)||this;return u.facet=t,u.facetValue=i,u.eventArg=r,u}return f(t,n),t.prototype._handleSelectValue=function(t){this.facet.open(this.facetValue);n.prototype.handleSelectValue.call(this,t)},t.prototype._handleExcludeClick=function(t){this.facet.open(this.facetValue);n.prototype.handleExcludeClick.call(this,t)},t}(r.OmniboxValueElement);t.OmniboxHierarchicalValueElement=u},function(n,t,i){"use strict";var f=this&&this.__extends||function(){var n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])};return function(t,i){function r(){this.constructor=t}n(t,i);t.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),r,u;Object.defineProperty(t,"__esModule",{value:!0});r=i(131);u=function(n){function t(t,i,r){var u=n.call(this,t,i,r)||this;return u.facet=t,u.facetValue=i,u.keepDisplayedValueNextTime=r,u}return f(t,n),t}(r.FacetValueElement);t.HierarchicalFacetValueElement=u},function(){},function(){},function(n,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=i(1),u=i(0),f=function(){function n(n,t){void 0===n&&(n=0);this.previewActive=!1;this.element=t;this.value=n}return n.prototype.getValue=function(){return this.value},n.prototype.getHTML=function(){return this.element},n.prototype.setValue=function(n){this.value=n},n.prototype.setHTML=function(n){this.element=n},n.prototype.addPreview=function(n,t){var i,f;this.previewActive=!0;i=r.$$("div",{className:"matrix-results-preview-container"});i.el.style.minWidth=n;i.el.style.maxWidth=t;i.on("click",function(n){n.stopPropagation()});this.element.appendChild(i.el);f=r.$$(this.element).findAll(".matrix-results-preview-container");u.each(f,function(n){r.$$(n).hide()})},n.prototype.removePreview=function(){this.previewActive=!1;var n=r.$$(this.element).find(".matrix-results-preview-container");n&&r.$$(n).detach()},n.prototype.updatePreview=function(n){if(this.previewActive){var t=r.$$(this.element).find(".matrix-results-preview-container");t.innerHTML+=n;r.$$(t).show()}},n}();t.Cell=f},function(n,t,i){"use strict";var r=this&&this.__extends||function(){var n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])};return function(t,i){function r(){this.constructor=t}n(t,i);t.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var u=i(27),f=i(1),e=i(23),o=function(n){function t(t,i){var r=n.call(this)||this;return r.computedField=t,r.format=i,r}return r(t,n),t.prototype.instantiateToString=function(n){return"<div class='coveo-result-frame'><div class='coveo-result-row'><div class='coveo-result-cell' style='width: 40px; padding-right:5px;vertical-align: middle'><a class='CoveoIcon' data-small='true'><\/a><\/div><div class='coveo-result-cell' style='font-size:13px;vertical-align: middle'><a class='CoveoResultLink'><\/a><\/div><div class='coveo-result-cell' style='width:80px; text-align:right; font-size:13px; padding-right: 5px;vertical-align: middle'>"+e.format(parseInt(n.raw[this.computedField.slice(1)]),this.format)+"<\/div><\/div><\/div>"},t.prototype.instantiateToElement=function(n){var t=this;return new Promise(function(){return f.$$("div",void 0,t.instantiateToString(n)).el})},t}(u.Template);t.DefaultMatrixResultPreviewTemplate=o},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(n,t,i){"use strict";var f=this&&this.__extends||function(){var n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])};return function(t,i){function r(){this.constructor=t}n(t,i);t.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),r,u;Object.defineProperty(t,"__esModule",{value:!0});r=i(27);u=function(n){function t(){return n.call(this)||this}return f(t,n),t.prototype.instantiateToString=function(){return'<div class="coveo-quick-view-full-height"><div class="CoveoQuickviewDocument"><\/div><\/div>'},t}(r.Template);t.DefaultQuickviewTemplate=u},function(n,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var f=i(0),u=i(20),r=i(1),e=function(){function n(){this.el=this.buildIFrame().el}return Object.defineProperty(n.prototype,"iframeHTMLElement",{get:function(){return this.iframeElement},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"document",{get:function(){return this.iframeElement.contentWindow.document},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"body",{get:function(){return this.document.body},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"window",{get:function(){return this.iframeElement.contentWindow},enumerable:!0,configurable:!0}),n.prototype.isNewQuickviewDocument=function(){var n=r.$$(this.document.head).find("meta[name='generator']");return n&&"pdf2htmlEX"==n.getAttribute("content")},n.prototype.render=function(n,t){var i=this;return this.quickviewIsClosedByEndUser()?Promise.reject(null):new Promise(function(r){i.iframeElement.onload=function(){r(i.iframeElement)};i.addClientSideTweaksToIFrameStyling(n);i.writeToIFrame(n);i.iframeElement.title=t})},n.prototype.renderError=function(n){var t=this;return this.quickviewIsClosedByEndUser()?Promise.reject(null):new Promise(function(i){var e="",f;switch(n.status){case 400:e=u.l("NoQuickview");break;default:e=u.l("OoopsError")}f=document.implementation.createHTMLDocument();f.body.style.fontFamily="Arimo, 'Helvetica Neue', Helvetica, Arial, sans-serif";r.$$(f.body).text(e);t.writeToIFrame(f);i(t.iframeElement)})},n.prototype.quickviewIsClosedByEndUser=function(){return null==this.iframeElement.contentDocument},n.prototype.buildIFrame=function(){var t=r.$$("iframe",{sandbox:"allow-popups allow-same-origin allow-top-navigation",src:"about:blank"}),n;return this.iframeElement=t.el,n=r.$$("div",{className:"coveo-iframeWrapper"}),n.append(t.el),n},n.prototype.writeToIFrame=function(n){this.allowDocumentLinkToEscapeSandbox(n);this.document.open();this.document.write(n.getElementsByTagName("html")[0].outerHTML);this.document.close()},n.prototype.allowDocumentLinkToEscapeSandbox=function(n){f.each(r.$$(n.body).findAll("a"),function(n){n.setAttribute("target","_top")})},n.prototype.addClientSideTweaksToIFrameStyling=function(n){var t=r.$$("style",{type:"text/css"}).el,i="\n      html pre {\n        white-space: pre-wrap;\n        word-wrap: break-word;\n      }\n      body, html {\n        font-family: Arimo, 'Helvetica Neue', Helvetica, Arial, sans-serif; -webkit-text-size-adjust: none;\n      }\n      "+(u.DeviceUtils.isIos()?"\n      body, html {\n        height: 1px !important;\n        min-height: 100%;\n        width: 1px !important;\n        min-width: 100%;\n        overflow: scroll;\n        margin: auto\n      }\n      ":"")+"\n      ";u.DeviceUtils.isIos()&&(r.$$(this.iframeElement).setAttribute("scrolling","no"),this.iframeElement.parentElement.style.margin="0 0 5px 5px");t.appendChild(document.createTextNode(i));n.head.appendChild(t)},n}();t.QuickviewDocumentIframe=e},function(n,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=i(1),u=function(){function n(){this.el=this.buildHeader().el}return n.prototype.addWord=function(n){this.el.appendChild(n.el)},n.prototype.buildHeader=function(){return r.$$("div",{className:"coveo-quickview-header"})},n}();t.QuickviewDocumentHeader=u},function(n,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=i(1),u=i(0),f=i(647),e=i(234),o=function(){function n(n,t){this.iframe=n;this.result=t;this.words={};this.scanDocument()}return n.prototype.scanDocument=function(){var n=this;u.each(r.$$(this.iframe.body).findAll('[id^="'+e.HIGHLIGHT_PREFIX+'"]'),function(t){var i=new f.QuickviewDocumentWord(n.result),r;(i.doCompleteInitialScanForKeywordInDocument(t),i.text)&&(r=n.words[i.indexIdentifier],r?(r.addElement(t),r.occurrence==i.occurrence&&(r.text+=i.text)):n.words[i.indexIdentifier]=i)})},n}();t.QuickviewDocumentWords=o},function(n,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=i(0),f=i(20),e=i(9),u=i(1),o=i(234),s=i(648),h=function(){function n(n){this.result=n;this.count=0;this.elements=[];this.currentNavigationPosition=-1;this.logger=new e.Logger(this)}return n.prototype.addElement=function(n){this.count++;this.elements.push(n)},n.prototype.navigateForward=function(){return this.currentNavigationPosition++,this.currentNavigationPosition>=this.elements.length&&(this.currentNavigationPosition=0),this.highlightNavigation(),this.putElementIntoView(),this.elements[this.currentNavigationPosition]},n.prototype.navigateBackward=function(){return this.currentNavigationPosition--,this.currentNavigationPosition<0&&(this.currentNavigationPosition=this.elements.length-1),this.highlightNavigation(),this.putElementIntoView(),this.elements[this.currentNavigationPosition]},n.prototype.navigateTo=function(n){return this.currentNavigationPosition=n,(this.currentNavigationPosition<0||this.currentNavigationPosition>=this.elements.length)&&(this.currentNavigationPosition=0,this.logger.warn("Invalid position in quickview navigation: "+n)),this.highlightNavigation(),this.elements[this.currentNavigationPosition]},n.prototype.doCompleteInitialScanForKeywordInDocument=function(n){var t=this.parseKeywordIdentifier(n);t&&(this.indexIdentifier=t.keywordIdentifier,this.occurrence=t.keywordOccurrencesInDocument,this.indexTermPart=t.keywordTermPart,this.text=this.getText(n),this.color=new s.QuickviewDocumentWordColor(n.style.backgroundColor),this.addElement(n))},n.prototype.isTaggedWord=function(n){return"coveotaggedword"==n.nodeName.toLowerCase()},n.prototype.highlightNavigation=function(){var t=this,n=this.elements[this.currentNavigationPosition],i=r.without(this.elements,n);n.style.color=this.color.htmlColor;n.style.backgroundColor=this.color.invert();i.forEach(function(n){n.style.color="";n.style.backgroundColor=t.color.htmlColor})},n.prototype.putElementIntoView=function(){this.elements[this.currentNavigationPosition].scrollIntoView()},n.prototype.getText=function(n){var t=this.getHighlightedInnerText(n);return this.resolveOriginalTerm(t)},n.prototype.resolveOriginalTerm=function(n){var t=this;return this.result&&this.result.termsToHighlight?r.find(r.keys(this.result.termsToHighlight),function(i){var u=f.StringUtils.equalsCaseInsensitive(i,n),e=void 0!=r.find(t.result.termsToHighlight[i],function(t){return f.StringUtils.equalsCaseInsensitive(t,n)});return u||e})||n:n},n.prototype.getHighlightedInnerText=function(n){if(!this.isTaggedWord(n))return u.$$(n).text()||"";var t=u.$$(n).children();return t.length>=1?u.$$(r.first(t)).text()||"":""},n.prototype.parseKeywordIdentifier=function(n){var t=n.id.substr(o.HIGHLIGHT_PREFIX.length+1).match(/^([0-9]+)\.([0-9]+)\.([0-9]+)$/);return!t||t.length<=3?null:{keywordIdentifier:t[1],keywordOccurrencesInDocument:parseInt(t[2],10),keywordTermPart:parseInt(t[3],10)}},n}();t.QuickviewDocumentWord=h},function(n,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=i(143),u=function(){function n(n){this.htmlColor=n;var t=n.match(/\d+/g);t&&(this.r=parseInt(t[0],10),this.g=parseInt(t[1],10),this.b=parseInt(t[2],10))}return n.prototype.invert=function(){return"rgb("+(255-this.r)+", "+(255-this.g)+", "+(255-this.b)+")"},n.prototype.saturate=function(){var n=r.ColorUtils.rgbToHsv(this.r,this.g,this.b),t;return n[1]*=2,n[1]>1&&(n[1]=1),t=r.ColorUtils.hsvToRgb(n[0],n[1],n[2]),"rgb("+t[0]+", "+t[1]+", "+t[2]+")"},n}();t.QuickviewDocumentWordColor=u},function(n,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=i(1),u=function(){function n(n,t,i){this.word=n;this.previewBar=t;this.iframe=i;this.el=this.render()}return n.prototype.render=function(){var n=r.$$("span",{className:"coveo-term-for-quickview"});return n.append(this.buildName().el),n.append(this.renderArrow("up").el),n.append(this.renderArrow("down").el),n.el.style.backgroundColor=this.word.color.htmlColor,n.el.style.borderColor=this.word.color.saturate(),n.el},n.prototype.buildName=function(){var t=this,n=r.$$("span",{className:"coveo-term-for-quickview-name"},this.word.text+" ("+this.word.count+")");return n.on("click",function(){return t.navigate(!1)}),n},n.prototype.navigate=function(n){var t,i;(n?(t=this.word.navigateBackward(),this.previewBar.navigateBackward(this.word)):(t=this.word.navigateForward(),this.previewBar.navigateForward(this.word)),this.iframe.isNewQuickviewDocument())&&(i=r.$$(t).closest(".pc"),r.$$(i).addClass("opened"));t.scrollIntoView()},n.prototype.renderArrow=function(n){var i=this,t=r.$$("span",{className:"coveo-term-for-quickview-"+n+"-arrow"}),u=r.$$("span",{className:"coveo-term-for-quickview-"+n+"-arrow-icon"});return t.append(u.el),t.on("click",function(){return i.navigate("up"==n)}),t},n}();t.QuickviewDocumentWordButton=u},function(n,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=i(1),u=i(0),f=i(9),e=function(){function n(n,t){this.iframe=n;this.words=t;this.wordIndicators=new Map;this.logger=new f.Logger(this);this.renderPreviewBar()}return n.prototype.navigateForward=function(n){var t=this.wordIndicators.get(n);return t?(t.position++,t.position>=t.indicators.length&&(t.position=0),this.highlightNavigation(n),t.indicators[t.position]):(this.logger.warn("Invalid navigation for given word.",n),null)},n.prototype.navigateBackward=function(n){var t=this.wordIndicators.get(n);return t?(t.position--,t.position<0&&(t.position=t.indicators.length-1),this.highlightNavigation(n),t.indicators[t.position]):(this.logger.warn("Invalid navigation for the given word.",n),null)},n.prototype.navigateTo=function(n,t){var i=this.wordIndicators.get(t);return i?(i.position=n,(i.position<0||i.position>=i.indicators.length)&&(this.logger.warn("Invalid navigation for the given position: "+n),i.position=0),this.highlightNavigation(t),i.indicators[i.position]):(this.logger.warn("Invalid navigation for the given word",t),null)},n.prototype.highlightNavigation=function(n){var r=this,t=this.wordIndicators.get(n),i=t.indicators[t.position],f=u.without(t.indicators,i);i.style.backgroundColor=n.color.invert();i.style.border="1px solid "+n.color.invert();f.forEach(function(t){return r.defaultStyleColor(t,n)})},n.prototype.renderPreviewBar=function(){var t=this,n=r.$$("div");n.el.style.width="15px";n.el.style.position="fixed";n.el.style.top="0";n.el.style.right="0px";n.el.style.height="100%";this.iframe.body.appendChild(n.el);u.each(this.words.words,function(i){u.each(i.elements,function(r){var u=t.renderWordPositionIndicator(r,i).el;t.wordIndicators.has(i)?t.wordIndicators.get(i).indicators.push(u):t.wordIndicators.set(i,{indicators:[u],position:-1});n.append(u)});t.handleOverlappingIndicators(i)})},n.prototype.renderWordPositionIndicator=function(n,t){var u=new r.Doc(this.iframe.document).height(),f=n.getBoundingClientRect().top,i=r.$$("div");return i.el.style.position="absolute",i.el.style.top=f/u*100+"%",i.el.style.width="100%",i.el.style.height="1px",this.defaultStyleColor(i.el,t),i},n.prototype.defaultStyleColor=function(n,t){n.style.border="1px solid "+t.color.saturate();n.style.backgroundColor=t.color.htmlColor},n.prototype.handleOverlappingIndicators=function(n){for(var t=this.wordIndicators.get(n).indicators,i=0;i<t.length;i++)!function(n){var i=u.chain(t).without(t[n]).find(function(i){return i.style.top==t[n].style.top}).value();i&&(r.$$(t[n]).remove(),t[n]=i)}(i)},n}();t.QuickviewDocumentPreviewBar=e},function(n,t,i){"use strict";var c,l;Object.defineProperty(t,"__esModule",{value:!0});var h=i(61),f=i(130),e=i(19),a=i(4),r=i(1),v=i(9),o=i(199),y=i(652),p=i(135),w=i(123),b=i(6),u=i(7),k=i(30),s=i(11),d=i(0);i(653);c=i(66);l=function(){function n(n,t,i,r){this.coveoRoot=n;this.ID=t;this.responsiveDropdown=r;this.recommendationRoot=this.getRecommendationRoot();this.dropdownHeaderLabel=i.dropdownHeaderLabel;this.breakpoint=this.defineResponsiveBreakpoint(i);this.searchInterface=u.Component.get(this.coveoRoot.el,e.SearchInterface,!1);this.dropdown=this.buildDropdown(r);this.registerOnOpenHandler();this.registerQueryEvents();this.handleResizeEvent()}return n.init=function(t,i,u){var e=new v.Logger("ResponsiveRecommendation"),f=this.findParentRootOfRecommendationComponent(t);return f?r.$$(f).find(".coveo-results-column")?void h.ResponsiveComponentsManager.register(n,r.$$(f),o.Recommendation.ID,i,d.extend({},u,{initializationEventRoot:r.$$(t)})):void e.info("Cannot find element with class coveo-results-column. Disabling responsive mode for this component."):void e.info("Recommendation component has no parent interface. Disabling responsive mode for this component.")},n.findParentRootOfRecommendationComponent=function(n){var t=r.$$(n).parents(u.Component.computeCssClassName(e.SearchInterface));return t[0]?r.$$(t[0]):null},n.prototype.handleResizeEvent=function(){this.needSmallMode()&&!f.ResponsiveComponentsUtils.isSmallRecommendationActivated(this.coveoRoot)?this.changeToSmallMode():!this.needSmallMode()&&f.ResponsiveComponentsUtils.isSmallRecommendationActivated(this.coveoRoot)&&this.changeToLargeMode();this.dropdown.isOpened&&this.dropdown.dropdownContent.positionDropdown()},n.prototype.needDropdownWrapper=function(){return this.needSmallMode()},n.prototype.needSmallMode=function(){var n=this.coveoRoot.width()<=this.breakpoint;if(!this.searchInterface)return n;switch(this.searchInterface.responsiveComponents.getResponsiveMode()){case"small":return!0;case"auto":return n;default:return!1}},n.prototype.changeToSmallMode=function(){var t=this,n;this.dropdown.close();n=this.coveoRoot.find("."+h.ResponsiveComponentsManager.DROPDOWN_HEADER_WRAPPER_CSS_CLASS);n?(r.$$(n).append(this.dropdown.dropdownHeader.element.el),this.disableFacetPreservePosition(),f.ResponsiveComponentsUtils.activateSmallRecommendation(this.coveoRoot),f.ResponsiveComponentsUtils.activateSmallRecommendation(this.recommendationRoot)):c.Defer.defer(function(){return t.handleResizeEvent()})},n.prototype.changeToLargeMode=function(){this.enableFacetPreservePosition();this.dropdown.cleanUp();f.ResponsiveComponentsUtils.deactivateSmallRecommendation(this.coveoRoot);f.ResponsiveComponentsUtils.deactivateSmallRecommendation(this.recommendationRoot)},n.prototype.buildDropdown=function(n){var i=this.buildDropdownContent(),r=this.buildDropdownHeader(),t=n||new w.ResponsiveDropdown(i,r,this.coveoRoot);return t.disablePopupBackground(),t},n.prototype.buildDropdownHeader=function(){var n=r.$$("a"),t=r.$$("p");return t.text(b.l(this.dropdownHeaderLabel)),n.el.appendChild(t.el),new p.ResponsiveDropdownHeader("recommendation",n)},n.prototype.buildDropdownContent=function(){var n,t=this.coveoRoot.find(".coveo-recommendation-column");return n=t?r.$$(t):r.$$(this.coveoRoot.find("."+u.Component.computeCssClassName(o.Recommendation))),new y.RecommendationDropdownContent("recommendation",n,this.coveoRoot)},n.prototype.defineResponsiveBreakpoint=function(t){return a.Utils.isNullOrUndefined(t.responsiveBreakpoint)?n.RESPONSIVE_BREAKPOINT:t.responsiveBreakpoint},n.prototype.getFacetSliders=function(){var n=[];return this.coveoRoot.findAll(u.Component.computeSelectorForType("FacetSlider")).forEach(function(t){var i=u.Component.get(t);i&&n.push(i)}),n},n.prototype.getFacets=function(){var n=[];return this.coveoRoot.findAll(u.Component.computeSelectorForType("Facet")).forEach(function(t){var i=u.Component.get(t);i&&n.push(i)}),n},n.prototype.enableFacetPreservePosition=function(){this.getFacets().forEach(function(n){return n.options.preservePosition=!0})},n.prototype.disableFacetPreservePosition=function(){this.getFacets().forEach(function(n){return n.options.preservePosition=!1})},n.prototype.drawFacetSliderGraphs=function(){this.getFacetSliders().forEach(function(n){return n.drawDelayedGraphData()})},n.prototype.registerOnOpenHandler=function(){this.dropdown.registerOnOpenHandler(this.drawFacetSliderGraphs,this)},n.prototype.getRecommendationRoot=function(){return r.$$(this.coveoRoot.find("."+u.Component.computeCssClassName(o.Recommendation)))},n.prototype.registerQueryEvents=function(){var n=this,t=k.get(this.recommendationRoot.el,e.SearchInterface);t&&t.options.hideIfNoResults&&(this.coveoRoot.on(s.QueryEvents.querySuccess,function(t,i){return n.handleRecommnendationQuerySucess(i)}),this.coveoRoot.on(s.QueryEvents.noResults,function(){return n.handleRecommendationNoResults()}));this.coveoRoot.on(s.QueryEvents.queryError,function(){return n.handleRecommendationQueryError()})},n.prototype.handleRecommnendationQuerySucess=function(n){0===n.results.totalCount?(this.dropdown.close(),this.dropdown.dropdownHeader.hide()):this.dropdown.dropdownHeader.show()},n.prototype.handleRecommendationNoResults=function(){this.dropdown.close();this.dropdown.dropdownHeader.hide()},n.prototype.handleRecommendationQueryError=function(){this.dropdown.close();this.dropdown.dropdownHeader.hide()},n.DROPDOWN_CONTAINER_CSS_CLASS_NAME="coveo-recommendation-dropdown-container",n.RESPONSIVE_BREAKPOINT=1e3,n}();t.ResponsiveRecommendation=l},function(n,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=i(93),u=i(1),f=function(){function n(n,t,i){this.element=t;this.coveoRoot=i;this.cssClassName="coveo-"+n+"-dropdown-content";this.element.addClass(this.cssClassName);this.element.addClass(r.ResponsiveDropdownContent.DEFAULT_CSS_CLASS_NAME)}return n.prototype.positionDropdown=function(){this.element.el.style.display="";var t=this.coveoRoot.find(".coveo-results-column");u.$$(t).prepend(this.element.el);this.element.addClass(r.ResponsiveDropdownContent.DEFAULT_CSS_CLASS_NAME);this.element.addClass(this.cssClassName);window.getComputedStyle(this.element.el).maxHeight;this.element.addClass(n.OPENED_DROPDOWN_CSS_CLASS_NAME)},n.prototype.hideDropdown=function(){this.element.addClass(r.ResponsiveDropdownContent.DEFAULT_CSS_CLASS_NAME);this.element.addClass(this.cssClassName);this.element.removeClass(n.OPENED_DROPDOWN_CSS_CLASS_NAME)},n.prototype.cleanUp=function(){this.element.removeClass(this.cssClassName);this.element.removeClass(r.ResponsiveDropdownContent.DEFAULT_CSS_CLASS_NAME)},n.OPENED_DROPDOWN_CSS_CLASS_NAME="coveo-open-dropdown-content",n}();t.RecommendationDropdownContent=f},function(){},function(n,t,i){"use strict";var u=this&&this.__extends||function(){var n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])};return function(t,i){function r(){this.constructor=t}n(t,i);t.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var f=i(7),e=i(8),o=i(4),s=i(11),h=i(2),c=i(1),l=i(0),r=function(n){function t(i,r,u){var f=n.call(this,i,t.ID,u)||this;if(f.element=i,f.options=r,f.options=e.ComponentOptions.initComponentOptions(i,t,r),"script"===f.element.tagName.toLowerCase()){try{f.content=o.Utils.decodeHTMLEntities(c.$$(f.element).text())}catch(n){return f}l.isUndefined(f.content)||""==f.content||f.bind.onRootElement(s.QueryEvents.buildingQuery,f.handleBuildingQuery)}return f}return u(t,n),t.prototype.handleBuildingQuery=function(n){n.queryBuilder.advancedExpression.add(this.content)},t.ID="RecommendationQuery",t.options={},t}(f.Component);t.RecommendationQuery=r;h.Initialization.registerAutoCreateComponent(r)},function(){},function(){},function(n,t,i){"use strict";var f=this&&this.__extends||function(){var n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])};return function(t,i){function r(){this.constructor=t}n(t,i);t.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),r,u;Object.defineProperty(t,"__esModule",{value:!0});r=i(27);u=function(n){function t(){return n.call(this)||this}return f(t,n),t.prototype.instantiateToString=function(){return'<div><span class="CoveoIcon"><\/span> <a class="CoveoResultLink"><\/a> <span class="CoveoQuickview"><\/span><\/div>'},t}(r.Template);t.DefaultResultAttachmentTemplate=u},function(){},function(n,t,i){"use strict";var f=this&&this.__extends||function(){var n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])};return function(t,i){function r(){this.constructor=t}n(t,i);t.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),r,u;Object.defineProperty(t,"__esModule",{value:!0});r=i(27);u=function(n){function t(){return n.call(this)||this}return f(t,n),t.prototype.instantiateToString=function(){return'<div class="coveo-child-result"><span class="CoveoIcon" data-small="true"><\/span> <a class="CoveoResultLink"><\/a> <span class="CoveoQuickview"><\/span><\/div>'},t.prototype.getType=function(){return"DefaultFoldingTemplate"},t}(r.Template);t.DefaultFoldingTemplate=u},function(){},function(){},function(n,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var u=i(0),o=i(9),f=i(1),e=i(7),r=i(200),s=i(19),h=i(61),c=function(){function n(n,t){var i=this;this.coveoRoot=n;this.ID=t;this.searchInterface=e.Component.get(this.coveoRoot.el,s.SearchInterface,!1);n.on("state:change:t",function(){i.handleResizeEvent()})}return n.init=function(t,i,u){if(!f.$$(t).find("."+e.Component.computeCssClassName(r.ResultLayoutSelector)))return void new o.Logger("ResponsiveResultLayout").trace("No ResultLayout component found : Cannot instantiate ResponsiveResultLayout");h.ResponsiveComponentsManager.register(n,f.$$(t),r.ResultLayoutSelector.ID,i,u)},n.prototype.registerComponent=function(n){return n instanceof r.ResultLayoutSelector&&(this.resultLayout=n,!0)},n.prototype.handleResizeEvent=function(){this.needSmallMode()?this.enableAndDisableLayouts(this.resultLayout.options.mobileLayouts):this.needMediumMode()?this.enableAndDisableLayouts(this.resultLayout.options.tabletLayouts):this.enableAndDisableLayouts(this.resultLayout.options.desktopLayouts)},n.prototype.enableAndDisableLayouts=function(n){var t=u.difference(r.ResultLayoutSelector.validLayouts,n),i=u.intersection(r.ResultLayoutSelector.validLayouts,n);this.resultLayout.disableLayouts(t);this.resultLayout.enableLayouts(i)},n.prototype.needSmallMode=function(){switch(this.searchInterface.responsiveComponents.getResponsiveMode()){case"small":return!0;case"auto":return this.coveoRoot.width()<=this.searchInterface.responsiveComponents.getSmallScreenWidth();default:return!1}},n.prototype.needMediumMode=function(){switch(this.searchInterface.responsiveComponents.getResponsiveMode()){case"medium":return!0;case"auto":return this.coveoRoot.width()<=this.searchInterface.responsiveComponents.getMediumScreenWidth();default:return!1}},n}();t.ResponsiveResultLayout=c},function(){},function(){},function(){},function(){},function(){},function(){},function(n,t,i){"use strict";var s=this&&this.__extends||function(){var n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])};return function(t,i){function r(){this.constructor=t}n(t,i);t.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var h=i(7),c=i(8),e=i(86),l=i(11),a=i(228),o=i(197),f=i(6),u=i(1),r=i(0),v=i(12),y=i(16),p=function(n){function t(i,r,u){var f=n.call(this,i,t.ID,u)||this;return f.element=i,f.options=r,f.bindings=u,f.bind.onRootElement(e.SearchAlertsEvents.searchAlertsCreated,function(n){return f.handleSubscriptionCreated(n)}),f.bind.oneRootElement(e.SearchAlertsEvents.searchAlertsFail,function(n){return f.handleSearchAlertsFail(n)}),f.bind.oneRootElement(e.SearchAlertsEvents.searchAlertsDeleted,function(){return f.close()}),f.bind.oneRootElement(l.QueryEvents.newQuery,function(){return f.close()}),f}return s(t,n),t.prototype.getCssClass=function(){return"coveo-subscriptions-messages"},t.prototype.getFollowQueryMessage=function(n,t){var h=this,i,o,s;return void 0===t&&(t=!1),i={text:[]},u.$$(this.root).trigger(e.SearchAlertsEvents.searchAlertsPopulateMessage,i),s=(t?"<ul>":"")+function(){return r.map(i.text,function(n){return n=h.formatMessageArgumentsText(n),(t?"<li>":"(")+n+(t?"<\/li>":")")}).join(" ")}()+(t?"<\/ul>":""),n&&0!=i.text.length&&(o=r.escape(n)+" "+s),n&&0==i.text.length&&(o=""+r.escape(n)),n||0==i.text.length||(o=""+s),n||0!=i.text.length||(o=t?f.l("EmptyQuery"):r.unescape(f.l("EmptyQuery"))),o},t.prototype.showMessage=function(n,t,i){var r=this,f;this.message=u.$$("div",{className:"coveo-subscriptions-messages"});this.message.el.innerHTML="\n      <div class='coveo-subscriptions-messages-message'>\n        <div class='coveo-subscriptions-messages-content'><span>"+t+"<\/span><\/div>\n        <div class='coveo-subscriptions-messages-info-close'>"+v.SVGIcons.icons.checkboxHookExclusionMore+"<\/div>\n      <\/div>";this.message.toggleClass("coveo-subscriptions-messages-error",i);f=this.message.find(".coveo-subscriptions-messages-info-close");y.SVGDom.addClassToSVGInContainer(f,"coveo-subscript-messages-info-close-svg");u.$$(f).on("click",function(){return r.close()});o.PopupUtils.positionPopup(this.message.el,n.el,this.root,{horizontal:o.PopupHorizontalAlignment.INNERLEFT,vertical:o.PopupVerticalAlignment.BOTTOM,verticalOffset:12,horizontalClip:!0},this.root);this.startCloseDelay();this.message.on("mouseleave",function(){r.startCloseDelay()});this.message.on("mouseenter",function(){r.stopCloseDelay()})},t.prototype.formatMessageArgumentsText=function(n){return r.isString(n)?r.escape(n):n.lineThrough?'<span style="text-decoration:line-through">'+r.escape(n.value)+"<\/span>":r.escape(n.value)},t.prototype.handleSubscriptionCreated=function(n){if(this.close(),null!=n.dom)if(n.subscription.type==a.SUBSCRIPTION_TYPE.followQuery){var t=n.subscription.typeConfig;this.showMessage(u.$$(n.dom),f.l("SubscriptionsMessageFollowQuery",this.getFollowQueryMessage(t.query.q,!0)),!1)}else this.showMessage(u.$$(n.dom),f.l("SubscriptionsMessageFollow"),!1)},t.prototype.handleSearchAlertsFail=function(n){this.close();null!=n.dom&&this.showMessage(u.$$(n.dom),f.l("SearchAlerts_Fail"),!0)},t.prototype.startCloseDelay=function(){var n=this;clearTimeout(this.closeTimeout);this.closeTimeout=window.setTimeout(function(){n.close()},this.options.closeDelay)},t.prototype.stopCloseDelay=function(){clearTimeout(this.closeTimeout)},t.prototype.close=function(){null!=this.message&&(clearTimeout(this.closeTimeout),this.message.remove(),this.message=null)},t.ID="SubscriptionsMessages",t.options={closeDelay:c.ComponentOptions.buildNumberOption({defaultValue:2e3,min:0})},t}(h.Component);t.SearchAlertsMessage=p},function(){},function(n,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=i(1),u=function(){function n(){}return n.resize=function(n,t){var i=this,r=this.getSearchbox(n),u=this.getElementsToResize(n),f=this.getInput(n),e="height: "+t+"px; line-height: "+t+"px;",o="height: "+t+"px",s="height: "+(t-2)+"px;";this.applyStyle(r,e);this.applyStyle(f,s);u.forEach(function(n){i.applyStyle(n,o)})},n.applyStyle=function(n,t){n.style.cssText+=t},n.getSearchbox=function(n){return r.$$(n).find(".CoveoOmnibox")||r.$$(n).find(".CoveoQuerybox")},n.getElementsToResize=function(n){return[r.$$(n).find(".CoveoSearchButton"),r.$$(r.$$(n).find(".magic-box-input")).find("input"),r.$$(n).find(".magic-box-icon"),r.$$(n).find(".magic-box-clear"),r.$$(n).find(".magic-box-underlay")]},n.getInput=function(n){return r.$$(n).find(".magic-box-input")},n}();t.SearchBoxResize=u},function(){},function(){},function(){},function(n,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});i(676);var f=i(0),l=i(17),a=i(9),v=i(6),r=i(1),s=i(137),y=i(16),p=i(12),w=i(4),e=i(7),h=i(19),o=i(201),b=i(54),k=i(61),u=i(130),d=i(15),g=i(97),c=i(25),nt=function(){function n(n,t){this.coveoRoot=n;this.ID=t;this.ignoreNextDocumentClick=!1;this.dropdownHeaderLabel=this.getDropdownHeaderLabel();this.searchInterface=e.Component.get(this.coveoRoot.el,h.SearchInterface,!1);this.dropdownContent=this.buildDropdownContent();this.dropdownHeader=this.buildDropdownHeader();this.bindDropdownContentEvents();this.bindDropdownHeaderEvents();this.tabSection=r.$$(this.coveoRoot.find(".coveo-tab-section"));this.manageTabSwapping();this.bindNukeEvents();this.initialTabOrder=this.tabsInTabSection.slice()}return n.init=function(t,i,u){if(this.logger=new a.Logger("ResponsiveTabs"),!r.$$(t).find(".coveo-tab-section"))return void this.logger.info("No element with class coveo-tab-section. Responsive tabs cannot be enabled.");k.ResponsiveComponentsManager.register(n,r.$$(t),o.Tab.ID,i,u)},n.prototype.handleResizeEvent=function(){this.needSmallMode()&&!u.ResponsiveComponentsUtils.isSmallTabsActivated(this.coveoRoot)?this.changeToSmallMode():!this.needSmallMode()&&u.ResponsiveComponentsUtils.isSmallTabsActivated(this.coveoRoot)&&this.changeToLargeMode();this.shouldAddTabsToDropdown()?this.addTabsToDropdown():this.shouldRemoveTabsFromDropdown()&&this.removeTabsFromDropdown();this.isDropdownOpen()&&this.positionPopup()},n.prototype.needSmallMode=function(){if(!this.searchInterface)return this.shouldAutoModeResolveToSmall();switch(this.searchInterface.responsiveComponents.getResponsiveMode()){case"small":case"medium":return!0;case"auto":default:return this.shouldAutoModeResolveToSmall()}},n.prototype.shouldAutoModeResolveToSmall=function(){var n=this.searchInterface?this.searchInterface.responsiveComponents.getMediumScreenWidth():(new b.ResponsiveComponents).getMediumScreenWidth();return this.coveoRoot.width()<=n||(u.ResponsiveComponentsUtils.isSmallTabsActivated(this.coveoRoot)?this.isLargeFormatOverflowing():this.isOverflowing(this.tabSection.el))},n.prototype.changeToSmallMode=function(){u.ResponsiveComponentsUtils.activateSmallTabs(this.coveoRoot)},n.prototype.changeToLargeMode=function(){this.emptyDropdown();this.cleanUpDropdown();u.ResponsiveComponentsUtils.deactivateSmallTabs(this.coveoRoot)},n.prototype.shouldAddTabsToDropdown=function(){return(this.isOverflowing(this.tabSection.el)||0===this.tabSection.el.clientWidth)&&u.ResponsiveComponentsUtils.isSmallTabsActivated(this.coveoRoot)},n.prototype.addTabsToDropdown=function(){var i,r,t;for(this.tabSection.find("."+n.TAB_IN_DROPDOWN_HEADER_CSS_CLASS)||(r=this.tabSection.find(".coveo-facet-dropdown-header"),r?this.dropdownHeader.insertBefore(r):this.tabSection.el.appendChild(this.dropdownHeader.el)),t=this.initialTabOrder.length-1;t>=0&&(i=this.initialTabOrder[t],this.tabIsSelected(i)&&t>0&&(i=this.initialTabOrder[--t]),this.addToDropdownIfNeeded(i),this.isOverflowing(this.tabSection.el));t--);},n.prototype.shouldRemoveTabsFromDropdown=function(){return!this.isOverflowing(this.tabSection.el)&&0!==this.tabSection.el.clientWidth&&u.ResponsiveComponentsUtils.isSmallTabsActivated(this.coveoRoot)&&!this.isDropdownEmpty()},n.prototype.removeTabsFromDropdown=function(){for(var n,u,t=this,i=this.tabsInTabDropdown;!this.isOverflowing(this.tabSection.el)&&!this.isDropdownEmpty();)n=i.shift(),this.removeFromDropdownIfNeeded(n),this.fromDropdownToTabSection(r.$$(n));this.isOverflowing(this.tabSection.el)&&(u=f.filter(this.tabsInTabSection,function(n){return!t.tabIsSelected(n)}),this.addToDropdownIfNeeded(u.pop()));this.isDropdownEmpty()&&this.cleanUpDropdown()},n.prototype.emptyDropdown=function(){var i=this,n,t;if(!this.isDropdownEmpty()){for(n=this.tabsInTabDropdown;!this.isDropdownEmpty();)t=n.shift(),this.removeFromDropdownIfNeeded(t);this.initialTabOrder.forEach(function(n){return i.tabSection.append(n)})}},n.prototype.isLargeFormatOverflowing=function(){var t=r.$$(this.tabSection.el.cloneNode(!0)),i=t.find("."+n.TAB_IN_DROPDOWN_HEADER_CSS_CLASS),e;return i&&t.el.removeChild(i),t.el.style.position="absolute",t.el.style.visibility="hidden",this.isDropdownEmpty()||f.each(this.dropdownContent.findAll(".CoveoTab"),function(n){t.el.appendChild(n.cloneNode(!0))}),t.insertBefore(this.tabSection.el),u.ResponsiveComponentsUtils.deactivateSmallTabs(this.coveoRoot),e=this.isOverflowing(this.tabSection.el)||this.isOverflowing(t.el),u.ResponsiveComponentsUtils.activateSmallTabs(this.coveoRoot),t.detach(),e},n.prototype.isOverflowing=function(n){return n.clientWidth<n.scrollWidth},n.prototype.buildDropdownHeader=function(){var u=r.$$("a",{className:"coveo-dropdown-header "+n.TAB_IN_DROPDOWN_HEADER_CSS_CLASS}),t=r.$$("p"),i;return t.text(this.dropdownHeaderLabel),i=r.$$("span",{className:"coveo-more-tabs"},p.SVGIcons.icons.arrowDown),y.SVGDom.addClassToSVGInContainer(i.el,"coveo-more-tabs-svg"),t.el.appendChild(i.el),u.el.appendChild(t.el),u},n.prototype.bindDropdownHeaderEvents=function(){var n=this,t=function(t){n.isDropdownOpen()?n.closeDropdown():n.openDropdown();"click"===t.type&&(n.ignoreNextDocumentClick=!0)};(new d.AccessibleButton).withElement(this.dropdownHeader).withSelectAction(t).withLabel(this.getDropdownHeaderLabel()).build()},n.prototype.buildDropdownContent=function(){var n=r.$$("div",{className:"coveo-tab-list-container "+h.SearchInterface.SMALL_INTERFACE_CLASS_NAME}),t=r.$$("ol",{className:"coveo-tab-list"});return n.el.appendChild(t.el),n},n.prototype.bindDropdownContentEvents=function(){var n=this;this.dropdownClickListener=function(){n.isDropdownOpen()&&(n.ignoreNextDocumentClick=!0)};this.documentClickListener=function(){n.ignoreNextDocumentClick||n.closeDropdown();n.ignoreNextDocumentClick=!1};r.$$(this.dropdownHeader).on("click",this.dropdownClickListener);r.$$(this.dropdownContent).on("click",this.dropdownClickListener)},n.prototype.isDropdownOpen=function(){return this.dropdownHeader.hasClass(n.ACTIVE_DROPDOWN_CSS_CLASS)},n.prototype.closeDropdown=function(){r.$$(document.documentElement).off("click",this.documentClickListener);this.dropdownContent.detach();this.dropdownHeader.removeClass(n.ACTIVE_DROPDOWN_CSS_CLASS)},n.prototype.openDropdown=function(){r.$$(document.documentElement).on("click",this.documentClickListener);this.positionPopup();this.dropdownHeader.addClass(n.ACTIVE_DROPDOWN_CSS_CLASS)},n.prototype.addToDropdownIfNeeded=function(t){if(this.canAddTabToDropdown(t)){r.$$(t).addClass(n.TAB_IN_DROPDOWN_CSS_CLASS);var i=r.$$(this.dropdownContent.find("ol")),u=r.$$("li",null,t);i.prepend(u.el)}},n.prototype.removeFromDropdownIfNeeded=function(t){this.canRemoveTabFromDropdown(t)&&(r.$$(t).removeClass(n.TAB_IN_DROPDOWN_CSS_CLASS),r.$$(t.parentElement).detach())},n.prototype.canAddTabToDropdown=function(n){return n&&!this.tabIsInDropdown(n)&&this.dropdownHeader},n.prototype.canRemoveTabFromDropdown=function(n){return n&&this.tabIsInDropdown(n)&&this.dropdownContent},n.prototype.cleanUpDropdown=function(){this.dropdownHeader.removeClass(n.ACTIVE_DROPDOWN_CSS_CLASS);this.dropdownHeader.detach();this.dropdownContent.detach()},n.prototype.isDropdownEmpty=function(){return this.dropdownContent?0==this.dropdownContent.findAll(".CoveoTab").length:!1},n.prototype.manageTabSwapping=function(){var t=this;f.each(this.coveoRoot.findAll("."+e.Component.computeCssClassNameForType(this.ID)),function(i){var u=r.$$(i),f=function(i){var e=t.tabsInTabSection.pop();"opacity"==i.propertyName&&("0"==u.el.style.opacity?(r.$$(e).addClass(n.TAB_IN_DROPDOWN_CSS_CLASS),u.replaceWith(e),u.removeClass(n.TAB_IN_DROPDOWN_CSS_CLASS),t.fromDropdownToTabSection(u),window.getComputedStyle(u.el).opacity,window.getComputedStyle(e).opacity,u.el.style.opacity=e.style.opacity="1"):"1"==u.el.style.opacity&&(t.closeDropdown(),s.EventsUtils.removePrefixedEvent(u.el,"TransitionEnd",f),t.handleResizeEvent()))},e=function(){if(t.tabIsInDropdown(u)){var n=t.tabsInTabSection.pop();n&&(s.EventsUtils.addPrefixedEvent(u.el,"TransitionEnd",f),u.el.style.opacity=n.style.opacity="0")}};u.on("click",function(){return e()});u.on("keyup",c.KeyboardUtils.keypressAction(c.KEYBOARD.ENTER,e));u.on("blur",function(n){n.relatedTarget&&!t.tabIsInDropdown(n.relatedTarget)&&t.closeDropdown()})})},n.prototype.bindNukeEvents=function(){var n=this;r.$$(this.coveoRoot).on(l.InitializationEvents.nuke,function(){r.$$(document.documentElement).off("click",n.documentClickListener)})},n.prototype.positionPopup=function(){this.dropdownContent.insertAfter(this.dropdownHeader.el);new g.default(this.dropdownHeader.el,this.dropdownContent.el,{modifiers:{preventOverflow:{boundariesElement:this.coveoRoot.el}}})},n.prototype.fromDropdownToTabSection=function(n){var t=f.last(this.tabsInTabSection);if(!t)return void this.tabSection.prepend(n.el);this.initialTabOrder.indexOf(n.el)>this.initialTabOrder.indexOf(t)?n.insertAfter(t):n.insertBefore(t)},n.prototype.getDropdownHeaderLabel=function(){var t;return f.each(r.$$(this.coveoRoot.find(".coveo-tab-section")).findAll("."+e.Component.computeCssClassName(o.Tab)),function(n){var i=e.Component.get(n,o.Tab);!t&&i&&i.options.dropdownHeaderLabel&&(t=i.options.dropdownHeaderLabel)}),t||(t=v.l(n.DROPDOWN_HEADER_LABEL_DEFAULT_VALUE)),t},n.prototype.tabIsSelected=function(n){return r.$$(n).hasClass("coveo-selected")},n.prototype.tabIsInDropdown=function(t){return r.$$(t).hasClass(n.TAB_IN_DROPDOWN_CSS_CLASS)},Object.defineProperty(n.prototype,"tabsInTabSection",{get:function(){var n=this,t=[];return f.each(this.tabSection.children(),function(i){if(w.Utils.isHtmlElement(i)){var u=r.$$(i),f=u.hasClass(e.Component.computeCssClassNameForType(n.ID));!n.tabIsInDropdown(u)&&f&&t.push(u.el)}}),t},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"tabsInTabDropdown",{get:function(){return this.dropdownContent?this.dropdownContent.findAll("."+n.TAB_IN_DROPDOWN_CSS_CLASS):[]},enumerable:!0,configurable:!0}),n.DROPDOWN_HEADER_LABEL_DEFAULT_VALUE="More",n.TAB_IN_DROPDOWN_CSS_CLASS="coveo-tab-dropdown",n.TAB_IN_DROPDOWN_HEADER_CSS_CLASS=n.TAB_IN_DROPDOWN_CSS_CLASS+"-header",n.ACTIVE_DROPDOWN_CSS_CLASS="coveo-dropdown-header-active",n}();t.ResponsiveTabs=nt},function(){},function(){},function(){},function(n,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});i(524);var r=i(0),u=function(){function n(n,t){this.simpleFilter=n;this.options=t;this.groupByRequestValues=[]}return n.prototype.getValuesFromGroupBy=function(){return this.groupByRequestValues},n.prototype.groupBy=function(n){var i=this,t;this.groupByRequestValues=[];t=n.results.groupByResults;t.length>0&&void 0!=this.position&&r.each(t[this.position].values,function(n){i.groupByRequestValues.indexOf(n.lookupValue)<0&&i.groupByRequestValues.push(n.lookupValue)})},n.prototype.handleDoneBuildingQuery=function(n){var t=n.queryBuilder;this.putGroupByIntoQueryBuilder(t)},n.prototype.putGroupByIntoQueryBuilder=function(n){var t=this.createBasicGroupByRequest();n.groupByRequests.push(t);this.position=n.groupByRequests.length-1},n.prototype.createBasicGroupByRequest=function(){return{field:this.options.field,maximumNumberOfValues:this.options.maximumNumberOfValues,injectionDepth:1e3,sortCriteria:this.simpleFilter.options.sortCriteria}},n}();t.SimpleFilterValues=u},function(){},function(n,t,i){"use strict";var r=this&&this.__assign||Object.assign||function(n){for(var t,r,i=1,u=arguments.length;i<u;i++){t=arguments[i];for(r in t)Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n};Object.defineProperty(t,"__esModule",{value:!0});var u=i(5),f=i(11),e=i(71),o=i(0),s=i(181),h=function(){function n(n){this.facet=n;this.freezeFacetOrder=!1;this.preventAutoSelection=!1;this.requestBuilder=new s.DynamicFacetRequestBuilder({facetId:this.facet.options.id,field:this.facet.fieldName,type:this.facet.facetType,sortCriteria:this.facet.options.sortCriteria,injectionDepth:this.facet.options.injectionDepth,delimitingCharacter:this.facet.options.delimitingCharacter,filterFacetCount:this.facet.options.filterFacetCount,basePath:this.facet.options.basePath,filterByBasePath:!1});this.resetNumberOfValuesToRequest();this.resetFlagsDuringQuery()}return n.prototype.resetFlagsDuringQuery=function(){var n=this;this.facet.bind.onRootElement(f.QueryEvents.duringQuery,function(){n.freezeFacetOrder=!1;n.preventAutoSelection=!1})},n.prototype.increaseNumberOfValuesToRequest=function(n){this.numberOfValuesToRequest+=n},n.prototype.resetNumberOfValuesToRequest=function(){this.numberOfValuesToRequest=this.facet.options.numberOfValues},n.prototype.enableFreezeFacetOrderFlag=function(){this.freezeFacetOrder=!0},n.prototype.enablePreventAutoSelectionFlag=function(){this.preventAutoSelection=!0},n.prototype.putFacetIntoQueryBuilder=function(n){u.Assert.exists(n);n.facetRequests.push(this.buildFacetRequest());this.freezeFacetOrder&&(n.facetOptions.freezeFacetOrder=this.freezeFacetOrder)},n.prototype.buildFacetRequest=function(){return r({},this.requestBuilder.buildBaseRequestForQuery(),{currentValues:this.currentValues,preventAutoSelect:this.preventAutoSelection,numberOfValues:this.facet.values.hasSelectedValue?1:this.numberOfValuesToRequest,isFieldExpanded:this.numberOfValuesToRequest>this.facet.options.numberOfValues})},n.prototype.getQueryResults=function(){var n=this.facet.queryController.getLastQuery(),t;return n.numberOfResults=0,t=o.findIndex(n.facets,{facetId:this.facet.options.id}),-1!==t?n.facets[t]=this.buildFacetRequest():n.facets?n.facets.push(this.buildFacetRequest()):n.facets=[this.buildFacetRequest()],this.facet.queryController.getEndpoint().search(n)},Object.defineProperty(n.prototype,"currentValues",{get:function(){var n=this;return this.facet.values.hasSelectedValue?this.facet.values.allFacetValues.map(function(t){return n.buildRequestValue(t)}):[]},enumerable:!0,configurable:!0}),n.prototype.buildRequestValue=function(n){return{value:n.value,state:n.state,children:this.childrenForFacetValue(n),retrieveChildren:this.shouldRetrieveChildren(n),retrieveCount:n.retrieveCount}},n.prototype.childrenForFacetValue=function(n){var t=this;return this.shouldRetrieveChildren(n)?[]:n.children.map(function(n){return t.buildRequestValue(n)})},n.prototype.shouldRetrieveChildren=function(n){return n.state===e.FacetValueState.selected},n}();t.DynamicHierarchicalFacetQueryController=h},function(n,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});i(511);var r=i(1),u=i(12),f=i(6),e=i(10),o=i(48),s=i(0),h=function(){function n(n,t){this.facet=n;this.options=t;this.create()}return n.prototype.create=function(){var i=this,n,t;this.element=r.$$("div",{className:"coveo-dynamic-facet-breadcrumb coveo-breadcrumb-item"}).el;n=this.facet.values.selectedPath;t=n.map(function(n){return s.escape(i.facet.getCaption(n))}).join(" / ");this.createAndAppendTitle();this.createAndAppendCaption(t)},n.prototype.createAndAppendTitle=function(){var n=r.$$(o.getHeadingTag(this.options&&this.options.headingLevel,"h3"),{className:"coveo-dynamic-facet-breadcrumb-title"},this.facet.options.title+":").el;this.element.appendChild(n)},n.prototype.createAndAppendCaption=function(n){var i=this,t=r.$$("button",{type:"button",className:"coveo-dynamic-facet-breadcrumb-value",ariaLabel:f.l("RemoveFilterOn",n)},n).el,e=r.$$("span",{className:"coveo-dynamic-facet-breadcrumb-value-clear"},u.SVGIcons.icons.mainClear).el;t.appendChild(e);r.$$(t).on("click",function(){return i.valueSelectAction()});this.element.appendChild(t)},n.prototype.valueSelectAction=function(){var n=this;this.facet.reset();this.facet.triggerNewQuery(function(){return n.facet.logAnalyticsEvent(e.analyticsActionCauseList.breadcrumbFacet)})},n}();t.DynamicHierarchicalFacetBreadcrumb=h},function(n,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});i(684);var s=i(685),h=i(40),r=i(1),l=i(0),f=i(71),e=i(4),u=i(6),c=i(224),a=i(12),o=i(42),v=i(182),y=function(){function n(n){this.facet=n;this.facetValues=[];this._selectedPath=[];this.list=r.$$("ul",{className:"coveo-dynamic-hierarchical-facet-values","aria-labelledby":v.getDynamicFacetHeaderId(this.facet.options.id),role:"group"}).el}return n.prototype.formatDisplayValue=function(n){var t=h.FacetUtils.tryToGetTranslatedCaption(this.facet.options.field,n);return this.facet.options.valueCaption[n]||t},n.prototype.createFromResponse=function(n){var t=this;this.clearPath();this.facetValues=n.values.map(function(n){return t.createFacetValueFromResponse(n)})},n.prototype.reorderValues=function(n){var i=n.map(function(n){return o.HashUtils.encodeArray(n)}),t;this.hasSelectedValue?(t=this.findValueWithPath(this.selectedPath),t.children=e.Utils.reorderValuesByKeys(t.children,i,function(n){return o.HashUtils.encodeArray(n.path)})):this.facetValues=e.Utils.reorderValuesByKeys(this.facetValues,i,function(n){return o.HashUtils.encodeArray(n.path)})},n.prototype.createFacetValueFromResponse=function(n,t){var r=this;void 0===t&&(t=[]);var i=t.concat([n.value]),u=h.FacetUtils.getDisplayValueFromValueCaption(n.value,this.facet.options.field,this.facet.options.valueCaption),e=n.children?n.children.map(function(n){return r.createFacetValueFromResponse(n,i)}):[];return n.state===f.FacetValueState.selected&&(this._selectedPath=i),new s.DynamicHierarchicalFacetValue({value:n.value,numberOfResults:n.numberOfResults,state:n.state,moreValuesAvailable:n.moreValuesAvailable,path:i,isLeafValue:n.isLeafValue,displayValue:u,children:e},this.facet)},Object.defineProperty(n.prototype,"allFacetValues",{get:function(){return this.facetValues},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"hasSelectedValue",{get:function(){return!!this._selectedPath.length},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"selectedPath",{get:function(){return this._selectedPath.slice()},enumerable:!0,configurable:!0}),n.prototype.resetValues=function(){this.facetValues=[];this.clearPath()},n.prototype.clearPath=function(){this._selectedPath=[]},n.prototype.findValueWithPath=function(n){var t,r=this.facetValues,u=n.slice(),i;do if(i=function(){var n=u.shift();if(!(t=l.find(r,function(t){return t.value===n})))return{value:null};r=t.children}(),"object"==typeof i)return i.value;while(u.length);return t},n.prototype.createFacetValueWithPath=function(n,t){void 0===t&&(t=[]);var i=n[n.length-1];return new s.DynamicHierarchicalFacetValue({value:i,path:n,displayValue:this.formatDisplayValue(i),numberOfResults:0,state:f.FacetValueState.idle,isLeafValue:!t.length,moreValuesAvailable:!1,children:t},this.facet)},n.prototype.getOrCreateFacetValueWithPath=function(n){var i=this.findValueWithPath(n),t;return i?i:(t=this.createFacetValueWithPath(n),(1===n.length?this.facetValues:this.getOrCreateFacetValueWithPath(n.slice(0,-1)).children).push(t),t)},n.prototype.filterHierarchyAtPathLevel=function(n,t,i){var u=this,r;return void 0===i&&(i=1),r=n.filter(function(n){var r=t.slice(0,i);return e.Utils.arrayEqual(r,n.path)}),r.forEach(function(n){n.state=f.FacetValueState.idle;n.children=u.filterHierarchyAtPathLevel(n.children,t,i+1)}),r},n.prototype.filterHierarchyWithPath=function(n){this.facetValues=this.filterHierarchyAtPathLevel(this.facetValues,n)},n.prototype.selectPath=function(n){this.filterHierarchyWithPath(n);this.getOrCreateFacetValueWithPath(n).select();this._selectedPath=n.slice()},n.prototype.prependAllCategories=function(){var u=this,n=r.$$("button",{className:"coveo-dynamic-hierarchical-facet-all",type:"button",title:this.facet.options.clearLabel},this.facet.options.clearLabel),i,t;n.toggleClass("coveo-show-when-collapsed",1===this.facet.values.selectedPath.length);i=r.$$("div",{className:"coveo-dynamic-hierarchical-facet-value-arrow-left"},a.SVGIcons.icons.arrowDown);n.prepend(i.el);t=r.$$("li",{role:"none"},n);t.on("click",function(){return u.facet.header.options.clear()});r.$$(this.list).prepend(t.el)},n.prototype.buildShowLess=function(){var n=this;return new c.DynamicFacetValueShowMoreLessButton({className:"coveo-dynamic-hierarchical-facet-show-less",ariaLabel:u.l("ShowLessFacetResults",this.facet.options.title),label:u.l("ShowLess"),action:function(){n.facet.enableFreezeFacetOrderFlag();n.facet.showLessValues()}}).element},n.prototype.buildShowMore=function(){var n=this;return new c.DynamicFacetValueShowMoreLessButton({className:"coveo-dynamic-hierarchical-facet-show-more",ariaLabel:u.l("ShowMoreFacetResults",this.facet.options.title),label:u.l("ShowMore"),action:function(){n.facet.enableFreezeFacetOrderFlag();n.facet.showMoreValues()}}).element},Object.defineProperty(n.prototype,"shouldEnableShowLess",{get:function(){return this.facetValues.length>this.facet.options.numberOfValues},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"shouldEnableShowMore",{get:function(){return this.facet.moreValuesAvailable&&!this.hasSelectedValue},enumerable:!0,configurable:!0}),n.prototype.appendShowMoreLess=function(n){this.facet.options.enableMoreLess&&(this.shouldEnableShowLess&&n.appendChild(this.buildShowLess()),this.shouldEnableShowMore&&n.appendChild(this.buildShowMore()))},n.prototype.render=function(){var n=document.createDocumentFragment();return r.$$(this.list).empty(),this.facetValues.forEach(function(t){t.render(n)}),r.$$(this.list).toggleClass("coveo-with-space",!!this._selectedPath.length),this._selectedPath.length&&this.prependAllCategories(),this.appendShowMoreLess(n),this.list.appendChild(n),this.list},n}();t.DynamicHierarchicalFacetValues=y},function(){},function(n,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var e=i(23),u=i(71),o=i(686),r=i(6),f=i(224),s=i(10),h=function(){function n(n,t){this.facetValue=n;this.facet=t;this.element=null;this.renderer=new o.DynamicHierarchicalFacetValueRenderer(this,this.facet);this.retrieveCount=Math.max(this.facet.options.numberOfValues,this.facetValue.children.length)}return Object.defineProperty(n.prototype,"value",{get:function(){return this.facetValue.value},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"path",{get:function(){return this.facetValue.path},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"state",{get:function(){return this.facetValue.state},set:function(n){this.facetValue.state=n},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"moreValuesAvailable",{get:function(){return this.facetValue.moreValuesAvailable},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"numberOfResults",{get:function(){return this.facetValue.numberOfResults},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"displayValue",{get:function(){return this.facetValue.displayValue},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"children",{get:function(){return this.facetValue.children},set:function(n){this.facetValue.children=n},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"isLeafValue",{get:function(){return this.facetValue.isLeafValue},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"isIdle",{get:function(){return this.state===u.FacetValueState.idle},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"isSelected",{get:function(){return this.state===u.FacetValueState.selected},enumerable:!0,configurable:!0}),n.prototype.select=function(){this.state=u.FacetValueState.selected},Object.defineProperty(n.prototype,"selectAriaLabel",{get:function(){var n=r.l("ResultCount",this.formattedCount,this.numberOfResults);return this.displayValue+" "+n},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"formattedCount",{get:function(){return e.format(this.numberOfResults,"n0")},enumerable:!0,configurable:!0}),n.prototype.buildShowLess=function(){var n=this;return new f.DynamicFacetValueShowMoreLessButton({className:"coveo-dynamic-hierarchical-facet-show-less coveo-with-space",ariaLabel:r.l("ShowLessHierarchicalResults",this.displayValue),label:r.l("ShowLess"),action:function(){n.facet.enableFreezeFacetOrderFlag();n.retrieveCount=n.facet.options.numberOfValues;n.facet.triggerNewIsolatedQuery()}}).element},n.prototype.buildShowMore=function(){var n=this;return new f.DynamicFacetValueShowMoreLessButton({className:"coveo-dynamic-hierarchical-facet-show-more coveo-with-space",ariaLabel:r.l("ShowMoreHierarchicalResults",this.displayValue),label:r.l("ShowMore"),action:function(){n.facet.enableFreezeFacetOrderFlag();n.retrieveCount+=n.facet.options.numberOfValues;n.facet.triggerNewIsolatedQuery()}}).element},Object.defineProperty(n.prototype,"shouldEnableShowLess",{get:function(){return this.children.length>this.facet.options.numberOfValues},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"shouldEnableShowMore",{get:function(){return this.moreValuesAvailable},enumerable:!0,configurable:!0}),n.prototype.appendShowMoreLess=function(n){this.facet.options.enableMoreLess&&(this.shouldEnableShowLess&&n.appendChild(this.buildShowLess()),this.shouldEnableShowMore&&n.appendChild(this.buildShowMore()))},n.prototype.render=function(n){return this.element=this.renderer.render(),n.appendChild(this.element),this.children.forEach(function(t){return t.render(n)}),this.appendShowMoreLess(n),this.element},n.prototype.logSelectActionToAnalytics=function(){this.facet.logAnalyticsEvent(s.analyticsActionCauseList.dynamicFacetSelect)},n}();t.DynamicHierarchicalFacetValue=h},function(n,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=i(1),u=i(12),f=i(4),e=function(){function n(n,t){this.facetValue=n;this.facet=t}return n.prototype.render=function(){var n=this;return this.button=r.$$("button",{className:"coveo-dynamic-hierarchical-facet-value",type:"button",ariaLabel:this.facetValue.selectAriaLabel}),this.button.on("click",function(){return n.selectAction()}),this.renderLabel(),this.renderCount(),this.toggleButtonStates(),r.$$("li",{role:"none",dataValue:this.facetValue.value},this.button).el},n.prototype.renderLabel=function(){var n=r.$$("span",{className:"coveo-dynamic-hierarchical-facet-value-label",title:this.facetValue.displayValue});n.text(this.facetValue.displayValue);this.button.append(n.el)},n.prototype.renderCount=function(){var n=r.$$("span",{className:"coveo-dynamic-hierarchical-facet-value-count"},"("+this.facetValue.formattedCount+")");this.button.append(n.el)},n.prototype.toggleButtonStates=function(){this.button.toggleClass("coveo-selected",this.facetValue.isSelected);this.button.toggleClass("coveo-with-space",this.shouldHaveMargin);this.button.toggleClass("coveo-show-when-collapsed",this.shouldShowWhenCollapsed);this.facetValue.isSelected&&this.button.setAttribute("disabled","true");this.shouldHaveBackArrow&&this.prependBackArrow();this.shouldHaveForwardArrow&&this.appendForwardArrow()},n.prototype.prependBackArrow=function(){var n=r.$$("div",{className:"coveo-dynamic-hierarchical-facet-value-arrow-left"},u.SVGIcons.icons.arrowDown);this.button.prepend(n.el)},n.prototype.appendForwardArrow=function(){var n=r.$$("div",{className:"coveo-dynamic-hierarchical-facet-value-arrow-right"},u.SVGIcons.icons.arrowDown);this.button.append(n.el)},Object.defineProperty(n.prototype,"shouldHaveMargin",{get:function(){return!this.facetValue.isSelected&&this.facetValue.path.length>1&&!this.facetValue.children.length},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"shouldHaveBackArrow",{get:function(){return this.facet.values.hasSelectedValue&&!this.facetValue.isSelected&&!!this.facetValue.children.length},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"shouldHaveForwardArrow",{get:function(){return!this.facetValue.isLeafValue&&!this.facetValue.isSelected&&!this.facetValue.children.length},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"shouldShowWhenCollapsed",{get:function(){var n=f.Utils.arrayEqual(this.facetValue.path,this.facet.values.selectedPath.slice(0,-1));return this.facetValue.isSelected||n},enumerable:!0,configurable:!0}),n.prototype.selectAction=function(){var n=this;this.facet.selectPath(this.facetValue.path);this.facet.enableFreezeFacetOrderFlag();this.facet.enablePreventAutoSelectionFlag();this.facet.scrollToTop();this.facet.triggerNewQuery(function(){return n.facetValue.logSelectActionToAnalytics()})},n}();t.DynamicHierarchicalFacetValueRenderer=e},function(n,t,i){"use strict";var u;Object.defineProperty(t,"__esModule",{value:!0});var f=i(688),e=i(513),r=i(6),o=i(690);i(514);i(692);u=function(){function n(n){this.facet=n;this.hierarchicalFacetSearchController=new f.HierarchicalFacetSearchController(n);this.element=this.build()}return n.prototype.build=function(){var n=this;return this.combobox=new e.Combobox({label:r.l("SearchFacetResults",this.facet.options.title),ariaLive:this.facet.searchInterface.ariaLive,requestValues:function(t){return n.hierarchicalFacetSearchController.search(t)},createValuesFromResponse:function(t){return n.createValuesFromResponse(t)},onSelectValue:this.onSelectValue,placeholderText:r.l("Search"),wrapperClassName:"coveo-dynamic-facet-search",clearOnBlur:!0,scrollable:{requestMoreValues:function(){return n.hierarchicalFacetSearchController.fetchMoreResults()},areMoreValuesAvailable:function(){return n.hierarchicalFacetSearchController.moreValuesAvailable},maxDropdownHeight:250},highlightValueClassName:"coveo-dynamic-hierarchical-facet-search-value-label"}),this.combobox.element},n.prototype.getDisplayValue=function(n){return this.facet.options.valueCaption[n]||n},n.prototype.createValuesFromResponse=function(n){var t=this;return n.values.map(function(n){var i=new o.DynamicHierarchicalFacetSearchValue({fullPath:n.path.concat([n.rawValue]),displayValue:t.getDisplayValue(n.displayValue),numberOfResults:n.count},t.facet);return{value:i,element:i.renderedElement}})},n.prototype.onSelectValue=function(n){n.value.renderer.selectAction()},n}();t.DynamicHierarchicalFacetSearch=u},function(n,t,i){"use strict";var r=this&&this.__awaiter||function(n,t,i,r){return new(i||(i=Promise))(function(u,f){function o(n){try{e(r.next(n))}catch(n){f(n)}}function s(n){try{e(r.throw(n))}catch(n){f(n)}}function e(n){n.done?u(n.value):new i(function(t){t(n.value)}).then(o,s)}e((r=r.apply(n,t||[])).next())})},u=this&&this.__generator||function(n,t){function f(n){return function(t){return s([n,t])}}function s(f){if(e)throw new TypeError("Generator is already executing.");for(;r;)try{if(e=1,u&&(i=u[2&f[0]?"return":f[0]?"throw":"next"])&&!(i=i.call(u,f[1])).done)return i;switch(u=0,i&&(f=[0,i.value]),f[0]){case 0:case 1:i=f;break;case 4:return r.label++,{value:f[1],done:!1};case 5:r.label++;u=f[1];f=[0];continue;case 7:f=r.ops.pop();r.trys.pop();continue;default:if(i=r.trys,!(i=i.length>0&&i[i.length-1])&&(6===f[0]||2===f[0])){r=0;continue}if(3===f[0]&&(!i||f[1]>i[0]&&f[1]<i[3])){r.label=f[1];break}if(6===f[0]&&r.label<i[1]){r.label=i[1];i=f;break}if(i&&r.label<i[2]){r.label=i[2];r.ops.push(f);break}i[2]&&r.ops.pop();r.trys.pop();continue}f=t.call(n,r)}catch(n){f=[6,n];u=0}finally{e=i=0}if(5&f[0])throw f[1];return{value:f[0]?f[1]:void 0,done:!0}}var e,u,i,o,r={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:f(0),"throw":f(1),"return":f(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o};Object.defineProperty(t,"__esModule",{value:!0});var f=i(689),e=i(0),o=i(181),s=function(){function n(n){this.facet=n;this.terms="";this.pageCount=1;this.numberOfValuesMultiplier=2;this.moreValuesAvailable=!0}return Object.defineProperty(n.prototype,"ignoredPaths",{get:function(){return[e.flatten(this.facet.values.selectedPath,!0)]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"numberOfValues",{get:function(){return this.facet.options.numberOfValues*this.numberOfValuesMultiplier*this.pageCount},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"request",{get:function(){return{field:this.facet.fieldName,filterFacetCount:o.determineFilterFacetCount(this.facet.options),type:f.FacetSearchType.hierarchical,numberOfValues:this.numberOfValues,ignorePaths:this.ignoredPaths,basePath:this.facet.options.basePath,captions:this.facet.options.valueCaption,searchContext:this.facet.queryController.getLastQuery(),delimitingCharacter:this.facet.options.delimitingCharacter,query:this.terms.length?"*"+this.terms+"*":"*"}},enumerable:!0,configurable:!0}),n.prototype.triggerRequest=function(){return r(this,void 0,void 0,function(){var n;return u(this,function(t){switch(t.label){case 0:return[4,this.facet.queryController.getEndpoint().facetSearch(this.request)];case 1:return n=t.sent(),this.moreValuesAvailable=n.moreValuesAvailable,[2,n]}})})},n.prototype.search=function(n){return this.terms=n,this.pageCount=1,this.triggerRequest()},n.prototype.fetchMoreResults=function(){return this.pageCount++,this.triggerRequest()},n}();t.HierarchicalFacetSearchController=s},function(n,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});!function(n){n.specific="specific";n.hierarchical="hierarchical"}(t.FacetSearchType||(t.FacetSearchType={}))},function(n,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=i(691),u=i(10),f=function(){function n(n,t){this.facetValue=n;this.facet=t;this.renderer=new r.DynamicHierarchicalFacetSearchValueRenderer(this,t)}return Object.defineProperty(n.prototype,"fullPath",{get:function(){return this.facetValue.fullPath},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"displayValue",{get:function(){return this.facetValue.displayValue},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"numberOfResults",{get:function(){return this.facetValue.numberOfResults},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"renderedElement",{get:function(){return this.element?this.element:this.render()},enumerable:!0,configurable:!0}),n.prototype.logSelectActionToAnalytics=function(){this.facet.logAnalyticsEvent(u.analyticsActionCauseList.dynamicFacetSelect)},n.prototype.render=function(){return this.element=this.renderer.render(),this.element},n}();t.DynamicHierarchicalFacetSearchValue=f},function(n,t,i){"use strict";var c;Object.defineProperty(t,"__esModule",{value:!0});var r=i(1),f=i(6),u="coveo-dynamic-hierarchical-facet-search-value",e=u+"-header",o=u+"-label",s=u+"-results-count",h=u+"-path";t.DynamicHierarchicalFacetSearchValueRendererClassNames={VALUE_CLASSNAME:u,HEADER_CLASSNAME:e,LABEL_CLASSNAME:o,COUNT_CLASSNAME:s,PATH_CLASSNAME:h,PATH_ELLIPSIS_CLASSNAME:"coveo-dynamic-hierarchical-facet-search-value-path-ellipsis",PATH_PREFIX_CLASSNAME:"coveo-dynamic-hierarchical-facet-search-value-path-prefix",PATH_PART_CLASSNAME:"coveo-dynamic-hierarchical-facet-search-value-path-part",PATH_SEPARATOR_CLASSNAME:"coveo-dynamic-hierarchical-facet-search-value-path-separator"};c=function(){function n(n,t){this.facetValue=n;this.facet=t}return Object.defineProperty(n.prototype,"pathToRender",{get:function(){var n=this.facetValue.fullPath.slice(0,-1);return n.length?n.length>3?{start:n.slice(0,1),end:n.slice(-2)}:{start:n}:{start:[f.l("AllCategories")]}},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"label",{get:function(){var n=this.pathToRender,t=n.start,i=n.end,r=f.l("ResultCount",this.facetValue.numberOfResults,this.facetValue.numberOfResults);return f.l("HierarchicalFacetValueIndentedUnder",this.facetValue.displayValue+" "+r,t.concat(i||[]).join(", "))},enumerable:!0,configurable:!0}),n.prototype.render=function(){return r.$$("div",{className:u,ariaLabel:this.label},this.renderHeader(),this.renderPath()).el},n.prototype.selectAction=function(){var n=this;this.facet.selectPath(this.facetValue.fullPath);this.facet.enableFreezeFacetOrderFlag();this.facet.enablePreventAutoSelectionFlag();this.facet.scrollToTop();this.facet.triggerNewQuery(function(){return n.facetValue.logSelectActionToAnalytics()})},n.prototype.renderHeader=function(){return r.$$("header",{className:e,ariaHidden:!0},this.renderLabel(),this.renderResultsCount())},n.prototype.renderLabel=function(){return r.$$("span",{className:o},this.facetValue.displayValue)},n.prototype.renderResultsCount=function(){var n=r.$$("span",{className:s});return n.text("("+this.facetValue.numberOfResults+")"),n},n.prototype.renderPath=function(){var t=this,n=r.$$("ul",{className:h,ariaHidden:!0},this.renderPathPrefix()),i=this.pathToRender,f=i.start,u=i.end;return f.forEach(function(i,r){r>0&&n.append(t.renderPathSeparator().el);n.append(t.renderPathPart(i).el)}),u&&(n.append(this.renderPathSeparator().el),n.append(this.renderEllipsis().el),u.forEach(function(i){n.append(t.renderPathSeparator().el);n.append(t.renderPathPart(i).el)})),n},n.prototype.renderPathPrefix=function(){var n=r.$$("li",{className:"coveo-dynamic-hierarchical-facet-search-value-path-prefix"});return n.text(f.l("HierarchicalFacetValuePathPrefix")+" "),n},n.prototype.renderEllipsis=function(){return r.$$("li",{className:"coveo-dynamic-hierarchical-facet-search-value-path-ellipsis"},"...")},n.prototype.renderPathPart=function(n){var t=r.$$("li",{className:"coveo-dynamic-hierarchical-facet-search-value-path-part"});return t.text(n),t},n.prototype.renderPathSeparator=function(){return r.$$("span",{className:"coveo-dynamic-hierarchical-facet-search-value-path-separator",role:"separator"},"/")},n}();t.DynamicHierarchicalFacetSearchValueRenderer=c},function(){},function(n,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=i(225),f=i(71),e=i(694),u=i(518),o=function(){function n(n){this.facet=n;this.parser=new e.DynamicFacetRangeValueParser(this.facet)}return n.prototype.getDefaultValues=function(){var n=this;return this.facet.options.ranges.map(function(t,i){return n.createFromRange(t,i)}).filter(function(n){return!!n})},n.prototype.createFromRange=function(n,t){var i=this.parser.validate(n),e;return i?(e=i.label?i.label:this.parser.formatDisplayValue(i),new r.DynamicFacetValue({displayValue:e,value:this.parser.formatValue(i),start:i.start,end:i.end,endInclusive:!!i.endInclusive,numberOfResults:0,state:f.FacetValueState.idle,position:t+1},this.facet,u.DynamicFacetValueRenderer)):(this.facet.logger.error("Unvalid range for "+this.facet.options.valueFormat+" format",n),null)},n.prototype.createFromResponse=function(n,t){var i=this.parser.formatValue(n),f=this.facet.values.get(i).displayValue;return new r.DynamicFacetValue({state:n.state,numberOfResults:n.numberOfResults,start:n.start,end:n.end,endInclusive:n.endInclusive,value:i,displayValue:f,position:t+1},this.facet,u.DynamicFacetValueRenderer)},n.prototype.createFromValue=function(n){var t=this.parser.parse(n);return t?this.createFromRange(t,this.facet.values.allFacetValues.length):(this.facet.logger.error("Facet range value invalid",n),null)},n}();t.DynamicFacetRangeValueCreator=o},function(n,t,i){"use strict";var s=this&&this.__assign||Object.assign||function(n){for(var t,r,i=1,u=arguments.length;i<u;i++){t=arguments[i];for(r in t)Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n};Object.defineProperty(t,"__esModule",{value:!0});var h=i(23),u=i(695),o=i(696),f=i(526),e=i(33),r=i(525),c=i(9),l=i(20),a=i(0),v=function(){function n(n){this.facet=n}return Object.defineProperty(n.prototype,"valueFormat",{get:function(){return this.facet.options.valueFormat},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"valueSeparator",{get:function(){return this.facet.options.valueSeparator},enumerable:!0,configurable:!0}),n.prototype.parseDateFromRangeType=function(n){var t=e.DateUtils.convertToStandardDate(n);return e.DateUtils.isValid(t)?t:(new c.Logger(this).warn("Date value is not valid",n),null)},n.prototype.formatDisplayValueFromLimit=function(n){switch(this.valueFormat){case r.DynamicFacetRangeValueFormat.number:var t=a.isUndefined(this.facet.options.numberOfDecimals)?o.NumberUtils.countDecimals(""+n):this.facet.options.numberOfDecimals;return h.format(n,"n"+t);case r.DynamicFacetRangeValueFormat.currency:return l.CurrencyUtils.currencyToString(parseFloat(""+n),{symbol:this.facet.options.currencySymbol,decimals:o.NumberUtils.countDecimals(""+n)?2:0});case r.DynamicFacetRangeValueFormat.date:return e.DateUtils.dateToString(this.parseDateFromRangeType(n),{alwaysIncludeTime:!1,includeTimeIfThisWeek:!1,includeTimeIfToday:!1,omitYearIfCurrentOne:!1,useTodayYesterdayAndTomorrow:!1,useWeekdayIfThisWeek:!1});default:return""+n}},n.prototype.formatDisplayValue=function(n){var t=this.formatDisplayValueFromLimit(n.start),i=this.formatDisplayValueFromLimit(n.end);return t+" "+this.valueSeparator+" "+i},n.prototype.validateRangeLimit=function(n){switch(this.valueFormat){case r.DynamicFacetRangeValueFormat.number:case r.DynamicFacetRangeValueFormat.currency:return this.validateNumberValue(n);case r.DynamicFacetRangeValueFormat.date:return this.validateDateValue(n);default:return""+n}},n.prototype.validateNumberValue=function(n){var t=parseFloat(""+n);return isNaN(t)?null:t},n.prototype.validateDateValue=function(n){var t=e.DateUtils.dateTimeForQuery(this.parseDateFromRangeType(n));return"Invalid date"===t?null:t},n.prototype.validate=function(n){var t=this.validateRangeLimit(n.start),i=this.validateRangeLimit(n.end);return f.isNull(t)||f.isNull(i)?null:s({},n,{start:t,end:i})},n.prototype.formatValue=function(n){var t=n.endInclusive?u.RangeEndScope.Inclusive:u.RangeEndScope.Exclusive;return n.start+".."+n.end+t},n.prototype.parse=function(n){var e=new RegExp("^(.+)\\.\\.(.+)("+u.RangeEndScope.Inclusive+"|"+u.RangeEndScope.Exclusive+")$"),t=e.exec(n),i,r;return t?(i=this.validateRangeLimit(t[1]),r=this.validateRangeLimit(t[2]),f.isNull(i)||f.isNull(r)?null:{start:i,end:r,endInclusive:t[3]===u.RangeEndScope.Inclusive}):null},n}();t.DynamicFacetRangeValueParser=v},function(n,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});!function(n){n.Inclusive="inc";n.Exclusive="exc"}(t.RangeEndScope||(t.RangeEndScope={}))},function(n,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=i(526),u=function(){function n(){}return n.countDecimals=function(n){var t=/^\d+\.?([\d]*)$/.exec(""+n);return r.isNull(t)?0:t[1].length},n}();t.NumberUtils=u},function(n){n.exports=function(n){return n&&"object"==typeof n&&"function"==typeof n.copy&&"function"==typeof n.fill&&"function"==typeof n.readUInt8}},function(n){n.exports="function"==typeof Object.create?function(n,t){n.super_=t;n.prototype=Object.create(t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}})}:function(n,t){n.super_=t;var i=function(){};i.prototype=t.prototype;n.prototype=new i;n.prototype.constructor=n}},function(n,t,i){"use strict";var f=this&&this.__extends||function(){var n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])};return function(t,i){function r(){this.constructor=t}n(t,i);t.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),e=this&&this.__assign||Object.assign||function(n){for(var t,r,i=1,u=arguments.length;i<u;i++){t=arguments[i];for(r in t)Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},r,u;Object.defineProperty(t,"__esModule",{value:!0});r=i(517);u=function(n){function t(){return null!==n&&n.apply(this,arguments)||this}return f(t,n),t.prototype.buildFacetRequest=function(){return e({},this.requestBuilder.buildBaseRequestForQuery(),{currentValues:this.currentValues,numberOfValues:this.numberOfValues,freezeCurrentValues:!1,sortCriteria:this.facet.options.sortOrder,generateAutomaticRanges:!this.manualRangesAreDefined})},Object.defineProperty(t.prototype,"numberOfValues",{get:function(){return this.manualRangesAreDefined?this.facet.options.ranges.length:this.facet.options.numberOfValues},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"manualRangesAreDefined",{get:function(){return!!this.facet.options.ranges.length},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"currentValues",{get:function(){return this.manualRangesAreDefined||this.facet.hasActiveValues?this.facet.values.allFacetValues.map(function(n){return{start:n.start,end:n.end,endInclusive:n.endInclusive,state:n.state}}):[]},enumerable:!0,configurable:!0}),t}(r.DynamicFacetQueryController);t.DynamicFacetRangeQueryController=u},function(n,t){"use strict";function r(n){return!!i[n]}Object.defineProperty(t,"__esModule",{value:!0});var i;!function(n){n.ascending="ascending";n.descending="descending"}(i=t.FacetRangeSortOrder||(t.FacetRangeSortOrder={}));t.isFacetRangeSortOrder=r},function(){},function(){},function(){},function(){},function(n,t,i){"use strict";var a=this&&this.__assign||Object.assign||function(n){for(var t,r,i=1,u=arguments.length;i<u;i++){t=arguments[i];for(r in t)Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},l;Object.defineProperty(t,"__esModule",{value:!0});var u,r=i(1),f=i(6),c=i(12),v=i(0),o="coveo-user-feedback-banner",s=o+"-label",e=o+"-button-active",h="coveo-user-feedback-banner-thanks-icon";!function(n){n[n.Unknown=0]="Unknown";n[n.Yes=1]="Yes";n[n.No=2]="No"}(u||(u={}));t.UserFeedbackBannerClassNames={ROOT_CLASSNAME:o,CONTAINER_CLASSNAME:"coveo-user-feedback-banner-container",LABEL_CLASSNAME:s,BUTTONS_CONTAINER_CLASSNAME:"coveo-user-feedback-banner-buttons",YES_BUTTON_CLASSNAME:"coveo-user-feedback-banner-yes-button",NO_BUTTON_CLASSNAME:"coveo-user-feedback-banner-no-button",BUTTON_ACTIVE_CLASSNAME:e,THANK_YOU_BANNER_CLASSNAME:"coveo-user-feedback-banner-thanks",THANK_YOU_BANNER_ACTIVE_CLASSNAME:"coveo-user-feedback-banner-thanks-active",ICON_CLASSNAME:h,EXPLAIN_WHY_CLASSNAME:"coveo-user-feedback-banner-explain-why",EXPLAIN_WHY_ACTIVE_CLASSNAME:"coveo-user-feedback-banner-explain-why-active"};l=function(){function n(n,t){this.sendUsefulnessAnalytics=n;this.onExplainWhyPressed=t;this.isUseful=u.Unknown;this.labelId=v.uniqueId(s)}return n.prototype.build=function(){return r.$$("div",{className:o,ariaLive:"polite"},this.buildContainer(),this.buildThankYouBanner()).el},n.prototype.reset=function(){this.isUseful=u.Unknown;r.$$(this.yesButton).removeClass(e);r.$$(this.yesButton).setAttribute("aria-pressed","false");r.$$(this.noButton).removeClass(e);r.$$(this.noButton).setAttribute("aria-pressed","false");r.$$(this.thankYouBanner).removeClass("coveo-user-feedback-banner-thanks-active");r.$$(this.explainWhy).removeClass("coveo-user-feedback-banner-explain-why-active")},n.prototype.buildContainer=function(){return r.$$("div",{className:"coveo-user-feedback-banner-container",ariaLabelledby:this.labelId},this.buildLabel(),this.buildButtons()).el},n.prototype.buildLabel=function(){return r.$$("span",{className:s,id:this.labelId},f.l("UsefulnessFeedbackRequest")).el},n.prototype.buildThankYouBanner=function(){var t=this,n;return this.thankYouBanner=r.$$("div",{className:"coveo-user-feedback-banner-thanks"}).el,n=r.$$("span",{},f.l("UsefulnessFeedbackThankYou")).el,this.thankYouBanner.appendChild(n),this.explainWhy=this.buildButton({text:f.l("UsefulnessFeedbackExplainWhy"),className:"coveo-user-feedback-banner-explain-why",action:function(){return t.requestExplaination()}}),this.thankYouBanner.appendChild(this.explainWhy),this.thankYouBanner},n.prototype.buildButtons=function(){var t=this,n=r.$$("div",{className:"coveo-user-feedback-banner-buttons"}).el;return this.yesButton=this.buildButton({text:f.l("Yes"),className:"coveo-user-feedback-banner-yes-button",action:function(){return t.showThankYouBanner(!0)},icon:{className:h,content:c.SVGIcons.icons.checkYes},attributes:{ariaPressed:!1,ariaDescribedby:this.labelId}}),this.yesButton.setAttribute("aria-pressed","false"),n.appendChild(this.yesButton),this.noButton=this.buildButton({text:f.l("No"),className:"coveo-user-feedback-banner-no-button",action:function(){return t.showThankYouBanner(!1)},icon:{className:h,content:c.SVGIcons.icons.clearSmall},attributes:{ariaPressed:!1,ariaDescribedby:this.labelId}}),n.appendChild(this.noButton),n},n.prototype.buildButton=function(n){var t=r.$$("button",a({},n.attributes||{},{className:n.className,type:"button"})).el,i,u;return n.icon?(i=r.$$("span",{className:n.icon.className},n.icon.content).el,t.appendChild(i),u=r.$$("span",{},n.text).el,t.appendChild(u)):t.innerText=n.text,t.addEventListener("click",function(){return n.action()}),t},n.prototype.showThankYouBanner=function(n){this.isUseful!==u.Unknown&&n===(this.isUseful===u.Yes)||(this.isUseful=n?u.Yes:u.No,r.$$(this.yesButton).toggleClass(e,n),r.$$(this.yesButton).setAttribute("aria-pressed",""+n),r.$$(this.noButton).toggleClass(e,!n),r.$$(this.noButton).setAttribute("aria-pressed",""+!n),r.$$(this.thankYouBanner).addClass("coveo-user-feedback-banner-thanks-active"),r.$$(this.explainWhy).toggleClass("coveo-user-feedback-banner-explain-why-active",!n),this.sendUsefulnessAnalytics(n))},n.prototype.requestExplaination=function(){this.onExplainWhyPressed()},n}();t.UserFeedbackBanner=l},function(n,t,i){"use strict";var o;Object.defineProperty(t,"__esModule",{value:!0});var r=i(1),f=i(12),u=i(6),e="coveo-height-limiter-button";t.HeightLimiterClassNames={CONTAINER_ACTIVE_CLASSNAME:"coveo-height-limiter-container-active",CONTAINER_EXPANDED_CLASSNAME:"coveo-height-limiter-container-expanded",BUTTON_CLASSNAME:e,BUTTON_LABEL_CLASSNAME:"coveo-height-limiter-button-label",BUTTON_ICON_CLASSNAME:"coveo-height-limiter-button-icon",BUTTON_ACTIVE_CLASSNAME:"coveo-height-limiter-button-active"};o=function(){function n(n,t,i,r){this.containerElement=n;this.contentElement=t;this.heightLimit=i;this.onToggle=r;this.isExpanded=!1;this.buildButton();this.updateActiveAppearance()}return Object.defineProperty(n.prototype,"toggleButton",{get:function(){return this.button},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"height",{set:function(n){this.containerElement.style.height=n+"px"},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"contentHeight",{get:function(){return this.contentElement.clientHeight},enumerable:!0,configurable:!0}),n.prototype.onContentHeightChanged=function(){this.updateActiveAppearance()},n.prototype.buildButton=function(){var n=this;return this.button=r.$$("button",{className:e,type:"button",ariaLabel:u.l("ShowMore"),ariaPressed:"false",ariaHidden:"true"},this.buttonLabel=r.$$("span",{className:"coveo-height-limiter-button-label"}).el,this.buttonIcon=r.$$("span",{className:"coveo-height-limiter-button-icon"}).el).el,this.button.addEventListener("click",function(){return n.toggle()}),this.updateButton(),this.button},n.prototype.updateActiveAppearance=function(){var n=this.contentHeight>this.heightLimit;r.$$(this.containerElement).toggleClass("coveo-height-limiter-container-active",n);r.$$(this.button).toggleClass("coveo-height-limiter-button-active",n);n?this.updateExpandedAppearance():(this.isExpanded=!1,this.updateExpandedAppearance(),this.containerElement.style.height="")},n.prototype.updateButton=function(){this.buttonLabel.innerText=this.isExpanded?u.l("ShowLess"):u.l("ShowMore");this.button.setAttribute("aria-pressed",""+this.isExpanded);this.buttonIcon.innerHTML=this.isExpanded?f.SVGIcons.icons.arrowUp:f.SVGIcons.icons.arrowDown},n.prototype.updateExpandedAppearance=function(){this.updateButton();r.$$(this.containerElement).toggleClass("coveo-height-limiter-container-expanded",this.isExpanded);this.height=this.isExpanded?this.contentHeight:this.heightLimit},n.prototype.toggle=function(){this.isExpanded=!this.isExpanded;this.updateExpandedAppearance();this.onToggle&&this.onToggle(this.isExpanded)},n}();t.HeightLimiter=o},function(n,t,i){"use strict";var b;Object.defineProperty(t,"__esModule",{value:!0});var k=i(179),f=i(6),r=i(1),d=i(98);i(708);var u="coveo-user-explanation-modal",s=u+"-content",h=u+"-explanation-section",o=u+"-explanations",c=o+"-label",e=u+"-details",l=e+"-textarea",a=e+"-label",v=u+"-buttons-section",y=u+"-send-button",p=u+"-cancel-button",w=e;t.ExplanationModalClassNames={ROOT_CLASSNAME:u,CONTENT_CLASSNAME:s,EXPLANATION_SECTION_CLASSNAME:h,REASONS_CLASSNAME:o,REASONS_LABEL_CLASSNAME:c,DETAILS_SECTION_CLASSNAME:e,DETAILS_TEXTAREA_CLASSNAME:l,DETAILS_LABEL_CLASSNAME:a,BUTTONS_SECTION_CLASSNAME:v,SEND_BUTTON_CLASSNAME:y,CANCEL_BUTTON_CLASSNAME:p};b=function(){function n(n){var t=this;this.options=n;this.shouldCallCloseEvent=!1;this.modal=new k.AccessibleModal(u,this.options.ownerElement,this.options.modalBoxModule,{focusOnOpen:function(){return t.sendButton()}})}return n.prototype.sendButton=function(){return this.modal.element.querySelector("."+o+" input")},Object.defineProperty(n.prototype,"details",{get:function(){return this.selectedReason&&this.selectedReason.hasDetails?this.detailsTextArea.value:null},enumerable:!0,configurable:!0}),n.prototype.open=function(n){var t=this;this.modal.open({origin:n,title:r.$$("span",{},f.l("UsefulnessFeedbackExplainWhyImperative")).el,content:this.buildContent(),validation:function(){return t.shouldCallCloseEvent&&(t.options.onClosed(),t.shouldCallCloseEvent=!1),!0}});this.shouldCallCloseEvent=!0},n.prototype.buildContent=function(){return r.$$("div",{className:s},this.buildExplanationSection(),this.buildButtonsSection()).el},n.prototype.buildExplanationSection=function(){var n=this.buildDetailsSection();return r.$$("div",{className:h},this.buildReasons(),n).el},n.prototype.buildButtonsSection=function(){return r.$$("div",{className:v},this.buildSendButton(),this.buildCancelButton())},n.prototype.buildReasons=function(){var t=this,n=r.$$("fieldset",{className:o},this.buildReasonsLabel()).el;return this.reasons=this.options.reasons.map(function(n){return t.buildReasonRadioButton(n)}),this.reasons[0].select(),this.reasons.forEach(function(t){return n.appendChild(t.getElement())}),n},n.prototype.buildReasonsLabel=function(){return r.$$("legend",{className:c},f.l("UsefulnessFeedbackReason")).el},n.prototype.buildDetailsSection=function(){return this.detailsSection=r.$$("div",{className:"coveo-hidden "+e},r.$$("label",{className:a,"for":w},f.l("Details")).el,this.detailsTextArea=r.$$("textarea",{className:l,id:w,disabled:!0}).el)},n.prototype.buildSendButton=function(){var n=this,t=r.$$("button",{className:y,type:"button"},f.l("Send"));return t.on("click",function(){n.selectedReason.onSelect();n.shouldCallCloseEvent=!1;n.modal.close()}),t.el},n.prototype.buildCancelButton=function(){var t=this,n=r.$$("button",{className:p,type:"button"},f.l("Cancel"));return n.on("click",function(){return t.modal.close()}),n.el},n.prototype.buildReasonRadioButton=function(n){var t=this;return new d.RadioButton(function(i){i.isSelected()&&(t.detailsSection.toggleClass("coveo-hidden",!n.hasDetails),t.detailsTextArea.disabled=!n.hasDetails,t.selectedReason=n)},n.label,"reason","coveo-reason-"+n.id)},n}();t.ExplanationModal=b},function(){},function(){},function(n,t,i){"use strict";var s=this&&this.__assign||Object.assign||function(n){for(var t,r,i=1,u=arguments.length;i<u;i++){t=arguments[i];for(r in t)Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},g;Object.defineProperty(t,"__esModule",{value:!0});var h=i(0),nt=i(15),v=i(12),tt=i(522),r=i(1),y=i(6),e=i(10),it=i(70),p=i(4),w=i(229),f="coveo-smart-snippet-suggestions-question",o=f+"-title",c=o+"-label",l=o+"-checkbox",u=f+"-snippet",b=u+"-container",k=u+"-hidden",a=u+"-content",d=a+"-raw",rt=f+"-source";t.SmartSnippetCollapsibleSuggestionClassNames={QUESTION_CLASSNAME:f,QUESTION_TITLE_CLASSNAME:o,QUESTION_TITLE_LABEL_CLASSNAME:c,QUESTION_TITLE_CHECKBOX_CLASSNAME:l,QUESTION_SNIPPET_CLASSNAME:u,QUESTION_SNIPPET_CONTAINER_CLASSNAME:b,QUESTION_SNIPPET_HIDDEN_CLASSNAME:k,SHADOW_CLASSNAME:a,RAW_CONTENT_CLASSNAME:d,SOURCE_CLASSNAME:rt,SOURCE_TITLE_CLASSNAME:"coveo-smart-snippet-suggestions-question-source-title",SOURCE_URL_CLASSNAME:"coveo-smart-snippet-suggestions-question-source-url"};g=function(){function n(n){this.options=n;this.labelId=h.uniqueId(c);this.snippetId=h.uniqueId(u);this.checkboxId=h.uniqueId(l);this.expanded=!1}return Object.defineProperty(n.prototype,"loading",{get:function(){return this.contentLoaded},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"analyticsSuggestionMeta",{get:function(){var n=this.options.questionAnswer,t=n.documentId,i=n.question,r=n.answerSnippet;return{searchQueryUid:this.options.searchUid,documentId:t,question:i,answerSnippet:r}},enumerable:!0,configurable:!0}),n.prototype.build=function(){var n=this.buildCollapsibleContainer(this.options.questionAnswer,this.buildStyle(this.options.innerCSS)),t=this.buildTitle(this.options.questionAnswer.question);return this.updateExpanded(),r.$$("li",{className:f,ariaLabelledby:this.labelId},t,n).el},n.prototype.buildStyle=function(n){var t=document.createElement("style");return t.innerHTML=n,t},n.prototype.buildTitle=function(n){var u=this,f=this.buildCheckbox(n),i=r.$$("span",{className:c,id:this.labelId}),t;return i.text(n),t=r.$$("span",{className:o},i,f),t.on("click",function(){return u.toggle()}),t},n.prototype.buildCheckbox=function(n){var t=this;return this.checkbox=r.$$("div",{role:"button",tabindex:0,ariaControls:this.snippetId,className:l,id:this.checkboxId}),(new nt.AccessibleButton).withElement(this.checkbox).withLabel(y.l("ExpandQuestionAnswer",n)).withEnterKeyboardAction(function(){return t.toggle()}).build(),this.checkbox},n.prototype.buildCollapsibleContainer=function(n,t){var f=this,i=r.$$("div",{className:a});return this.snippetAndSourceContainer=r.$$("div",{className:b},i),this.collapsibleContainer=r.$$("div",{className:u,id:this.snippetId},this.snippetAndSourceContainer),this.contentLoaded=tt.attachShadow(i.el,{mode:"open",title:y.l("AnswerSpecificSnippet",n.question),useIFrame:this.options.useIFrame}).then(function(i){i.appendChild(f.buildAnswerSnippetContent(n,t).el)}),this.options.source&&(this.snippetAndSourceContainer.append(this.buildSourceUrl().el),this.snippetAndSourceContainer.append(this.buildSourceTitle().el)),this.collapsibleContainer},n.prototype.buildAnswerSnippetContent=function(n,t){var f=this,u=r.$$("div",{className:d},w.getSanitizedAnswerSnippet(n)),i;return w.transformSnippetLinks(u.el,this.options.alwaysOpenInNewWindow,function(n){return f.sendOpenSnippetLinkAnalytics(n)}),i=r.$$("div",{},u),i.append(t),i},n.prototype.buildSourceTitle=function(){var n=this.buildLink("coveo-smart-snippet-suggestions-question-source-title");return n.text(p.Utils.getFieldValue(this.options.source,this.options.titleField)),n},n.prototype.buildSourceUrl=function(){var n=this.buildLink("coveo-smart-snippet-suggestions-question-source-url");return n.text(n.el.href),n},n.prototype.buildLink=function(n){var i=this,t=r.$$("a",{className:"CoveoResultLink "+n});return new it.ResultLink(t.el,{hrefTemplate:this.options.hrefTemplate,logAnalytics:function(n){return i.sendOpenSourceAnalytics(t.el,n)},alwaysOpenInNewWindow:this.options.alwaysOpenInNewWindow},s({},this.options.bindings,{resultElement:this.collapsibleContainer.el}),this.options.source),t},n.prototype.toggle=function(){this.expanded=!this.expanded;this.updateExpanded();this.expanded?this.sendExpandAnalytics():this.sendCollapseAnalytics()},n.prototype.updateIFrameExpanded=function(){var n=this.snippetAndSourceContainer.find("iframe");n&&(this.expanded?n.removeAttribute("tabindex"):n.setAttribute("tabindex","-1"))},n.prototype.updateExpanded=function(){this.checkbox.setAttribute("aria-expanded",this.expanded.toString());this.checkbox.setHtml(this.expanded?v.SVGIcons.icons.arrowUp:v.SVGIcons.icons.arrowDown);this.collapsibleContainer.setAttribute("aria-hidden",(!this.expanded).toString());this.collapsibleContainer.toggleClass(k,!this.expanded);this.collapsibleContainer.el.style.height=this.expanded?this.snippetAndSourceContainer.el.clientHeight+"px":"0px";this.updateIFrameExpanded()},n.prototype.sendExpandAnalytics=function(){return this.options.bindings.usageAnalytics.logCustomEvent(e.analyticsActionCauseList.expandSmartSnippetSuggestion,this.analyticsSuggestionMeta,this.checkbox.el)},n.prototype.sendCollapseAnalytics=function(){return this.options.bindings.usageAnalytics.logCustomEvent(e.analyticsActionCauseList.collapseSmartSnippetSuggestion,this.analyticsSuggestionMeta,this.checkbox.el)},n.prototype.sendOpenSourceAnalytics=function(n,t){return this.options.bindings.usageAnalytics.logClickEvent(e.analyticsActionCauseList.openSmartSnippetSuggestionSource,s({},this.analyticsSuggestionMeta,{documentTitle:this.options.source.title,author:p.Utils.getFieldValue(this.options.source,"author"),documentURL:t}),this.options.source,n)},n.prototype.sendOpenSnippetLinkAnalytics=function(n){return this.options.bindings.usageAnalytics.logClickEvent(e.analyticsActionCauseList.openSmartSnippetSuggestionInlineLink,s({},this.analyticsSuggestionMeta,{linkText:n.innerText,linkURL:n.href}),this.options.source,n)},n}();t.SmartSnippetCollapsibleSuggestion=g},function(n){n.exports=function(){var n=[];return n.toString=function(){for(var n,t=[],i=0;i<this.length;i++)n=this[i],n[2]?t.push("@media "+n[2]+"{"+n[1]+"}"):t.push(n[1]);return t.join("")},n.i=function(t,i){var f,r,e,u;for("string"==typeof t&&(t=[[null,t,""]]),f={},r=0;r<this.length;r++)e=this[r][0],"number"==typeof e&&(f[e]=!0);for(r=0;r<t.length;r++)u=t[r],"number"==typeof u[0]&&f[u[0]]||(i&&!u[2]?u[2]=i:i&&(u[2]="("+u[2]+") and ("+i+")"),n.push(u))},n}},function(n,t,i){function f(n,t){for(var r,f,o,i,e=0;e<n.length;e++)if(r=n[e],f=u[r.id],f){for(f.refs++,i=0;i<f.parts.length;i++)f.parts[i](r.parts[i]);for(;i<r.parts.length;i++)f.parts.push(l(r.parts[i],t))}else{for(o=[],i=0;i<r.parts.length;i++)o.push(l(r.parts[i],t));u[r.id]={id:r.id,refs:1,parts:o}}}function e(n,t){for(var e=[],u={},f=0;f<n.length;f++){var i=n[f],r=t.base?i[0]+t.base:i[0],s=i[1],h=i[2],c=i[3],o={css:s,media:h,sourceMap:c};u[r]?u[r].parts.push(o):e.push(u[r]={id:r,parts:[o]})}return e}function o(n,t){var i=v(n.insertInto),u,f;if(!i)throw new Error("Couldn't find a style target. This probably means that the value for the 'insertInto' parameter is invalid.");if(u=r[r.length-1],"top"===n.insertAt)u?u.nextSibling?i.insertBefore(t,u.nextSibling):i.appendChild(t):i.insertBefore(t,i.firstChild),r.push(t);else if("bottom"===n.insertAt)i.appendChild(t);else{if("object"!=typeof n.insertAt||!n.insertAt.before)throw new Error("[Style Loader]\n\n Invalid value for parameter 'insertAt' ('options.insertAt') found.\n Must be 'top', 'bottom', or Object.\n (https://github.com/webpack-contrib/style-loader#insertat)\n");f=v(n.insertInto+" "+n.insertAt.before);i.insertBefore(t,f)}}function s(n){if(null===n.parentNode)return!1;n.parentNode.removeChild(n);var t=r.indexOf(n);t>=0&&r.splice(t,1)}function h(n){var t=document.createElement("style");return n.attrs.type="text/css",c(t,n.attrs),o(n,t),t}function w(n){var t=document.createElement("link");return n.attrs.type="text/css",n.attrs.rel="stylesheet",c(t,n.attrs),o(n,t),t}function c(n,t){Object.keys(t).forEach(function(i){n.setAttribute(i,t[i])})}function l(n,t){var i,r,u,e,f;if(t.transform&&n.css){if(!(e=t.transform(n.css)))return function(){};n.css=e}return t.singleton?(f=g++,i=y||(y=h(t)),r=a.bind(null,i,f,!1),u=a.bind(null,i,f,!0)):n.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(i=w(t),r=k.bind(null,i,t),u=function(){s(i);i.href&&URL.revokeObjectURL(i.href)}):(i=h(t),r=b.bind(null,i),u=function(){s(i)}),r(n),function(t){if(t){if(t.css===n.css&&t.media===n.media&&t.sourceMap===n.sourceMap)return;r(n=t)}else u()}}function a(n,t,i,r){var e=i?"":r.css,f,u;n.styleSheet?n.styleSheet.cssText=p(t,e):(f=document.createTextNode(e),u=n.childNodes,u[t]&&n.removeChild(u[t]),u.length?n.insertBefore(f,u[t]):n.appendChild(f))}function b(n,t){var i=t.css,r=t.media;if(r&&n.setAttribute("media",r),n.styleSheet)n.styleSheet.cssText=i;else{for(;n.firstChild;)n.removeChild(n.firstChild);n.appendChild(document.createTextNode(i))}}function k(n,t,i){var r=i.css,u=i.sourceMap,o=void 0===t.convertToAbsoluteUrls&&u,e,f;(t.convertToAbsoluteUrls||o)&&(r=nt(r));u&&(r+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(u))))+" */");e=new Blob([r],{type:"text/css"});f=n.href;n.href=URL.createObjectURL(e);f&&URL.revokeObjectURL(f)}var u={},d=function(n){var t;return function(){return void 0===t&&(t=n.apply(this,arguments)),t}}(function(){return window&&document&&document.all&&!window.atob}),v=function(n){var t={};return function(i){if(void 0===t[i]){var r=n.call(this,i);if(r instanceof window.HTMLIFrameElement)try{r=r.contentDocument.head}catch(n){r=null}t[i]=r}return t[i]}}(function(n){return document.querySelector(n)}),y=null,g=0,r=[],nt=i(306),p;n.exports=function(n,t){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");t=t||{};t.attrs="object"==typeof t.attrs?t.attrs:{};t.singleton||"boolean"==typeof t.singleton||(t.singleton=d());t.insertInto||(t.insertInto="head");t.insertAt||(t.insertAt="bottom");var i=e(n,t);return f(i,t),function(n){for(var c,o,h,s=[],r=0;r<i.length;r++)c=i[r],o=u[c.id],o.refs--,s.push(o);for(n&&f(e(n,t),t),r=0;r<s.length;r++)if(o=s[r],0===o.refs){for(h=0;h<o.parts.length;h++)o.parts[h]();delete u[o.id]}}};p=function(){var n=[];return function(t,i){return n[t]=i,n.filter(Boolean).join("\n")}}()},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(n,t,i){n.exports=i(809)},function(n,t,i){"use strict";var yu,r,pu,wu,bu,ku,du,gu,nf,tf,rf,uf,u,f,e,o,s,h,c,l,a,v,y,p,w,b,k,d,g,nt,tt,it,rt,ut,ft,et,ot,st,ht,ct,lt,at,vt,yt,pt,wt,bt,kt,dt,gt,ni,ti,ii,ri,ui,fi,ei,oi,si,hi,ci,li,ai,vi,yi,pi,wi,bi,ki,di,gi,nr,tr,ir,rr,ur,fr,er,or,sr,hr,cr,ff,lr,ar,vr,yr,pr,wr,br,kr,dr,gr,nu,tu,iu,ru,uu,fu,eu,ou,su,hu,cu,lu,au,vu,ef;Object.defineProperty(t,"__esModule",{value:!0}),function(n){for(var i in n)t.hasOwnProperty(i)||(t[i]=n[i])}(i(20));i(128).PublicPathUtils.detectPublicPath();yu=i(473);t.CoreHelpers=yu.CoreHelpers;r=i(19);t.SearchInterface=r.SearchInterface;t.StandaloneSearchInterface=r.StandaloneSearchInterface;pu=i(212);t.$=pu.jQueryInstance;wu=i(210);t._=wu.underscoreInstance;bu=i(211);t.AnalyticsUtils=bu.AnalyticsUtils;ku=i(42);t.HashUtils=ku.HashUtils;du=i(24);t.DeviceUtils=du.DeviceUtils;gu=i(143);t.ColorUtils=gu.ColorUtils;nf=i(91);t.Cookie=nf.ScopedCookie;tf=i(134);t.CurrencyUtils=tf.CurrencyUtils;rf=i(33);t.DateUtils=rf.DateUtils;uf=i(10);t.analyticsActionCauseList=uf.analyticsActionCauseList;u=i(2);u.Initialization.componentsFactory=u.EagerInitialization.componentsFactory;f=i(236);t.AdvancedSearch=f.AdvancedSearch;f.AdvancedSearch.doExport();e=i(237);t.Aggregate=e.Aggregate;e.Aggregate.doExport();i(129).Analytics.doExport();o=i(238);t.AnalyticsSuggestions=o.AnalyticsSuggestions;o.AnalyticsSuggestions.doExport();s=i(7);t.ComponentEvents=s.ComponentEvents;s.ComponentEvents.doExport();h=i(239);t.AuthenticationProvider=h.AuthenticationProvider;h.AuthenticationProvider.doExport();c=i(240);t.Backdrop=c.Backdrop;c.Backdrop.doExport();l=i(241);t.Badge=l.Badge;l.Badge.doExport();a=i(242);t.Breadcrumb=a.Breadcrumb;a.Breadcrumb.doExport();v=i(243);t.CardActionBar=v.CardActionBar;v.CardActionBar.doExport();y=i(244);t.CardOverlay=y.CardOverlay;y.CardOverlay.doExport();p=i(245);t.ChatterLikedBy=p.ChatterLikedBy;p.ChatterLikedBy.doExport();i(458).registerFields();w=i(246);t.ChatterPostAttachment=w.ChatterPostAttachment;w.ChatterPostAttachment.doExport();i(459).registerFields();b=i(247);t.ChatterPostedBy=b.ChatterPostedBy;b.ChatterPostedBy.doExport();i(460).registerFields();k=i(248);t.ChatterTopic=k.ChatterTopic;k.ChatterTopic.doExport();i(461).registerFields();d=i(249);t.DidYouMean=d.DidYouMean;d.DidYouMean.doExport();g=i(250);t.DistanceResources=g.DistanceResources;g.DistanceResources.doExport();nt=i(251);t.ErrorReport=nt.ErrorReport;nt.ErrorReport.doExport();tt=i(252);t.Excerpt=tt.Excerpt;tt.Excerpt.doExport();it=i(253);t.ExportToExcel=it.ExportToExcel;it.ExportToExcel.doExport();rt=i(69);t.Facet=rt.Facet;rt.Facet.doExport();ut=i(189);t.FacetRange=ut.FacetRange;ut.FacetRange.doExport();ft=i(198);t.FacetSlider=ft.FacetSlider;ft.FacetSlider.doExport();et=i(254);t.FieldSuggestions=et.FieldSuggestions;et.FieldSuggestions.doExport();ot=i(255);t.FacetValueSuggestions=ot.FacetValueSuggestions;ot.FacetValueSuggestions.doExport();st=i(256);t.FieldTable=st.FieldTable;st.FieldTable.doExport();ht=i(124);t.FieldValue=ht.FieldValue;ht.FieldValue.doExport();ct=i(190);t.Folding=ct.Folding;ct.Folding.doExport();lt=i(257);t.FoldingForThread=lt.FoldingForThread;lt.FoldingForThread.doExport();at=i(279);t.FollowItem=at.FollowItem;at.FollowItem.doExport();i(466).registerFields();vt=i(258);t.HiddenQuery=vt.HiddenQuery;vt.HiddenQuery.doExport();yt=i(259);t.HierarchicalFacet=yt.HierarchicalFacet;yt.HierarchicalFacet.doExport();pt=i(191);t.Icon=pt.Icon;pt.Icon.doExport();i(462).registerFields();wt=i(260);t.Logo=wt.Logo;wt.Logo.doExport();bt=i(261);t.Matrix=bt.Matrix;bt.Matrix.doExport();kt=i(192);t.Omnibox=kt.Omnibox;kt.Omnibox.doExport();dt=i(262);t.OmniboxResultList=dt.OmniboxResultList;dt.OmniboxResultList.doExport();gt=i(263);t.Pager=gt.Pager;gt.Pager.doExport();ni=i(264);t.PipelineContext=ni.PipelineContext;ni.PipelineContext.doExport();ti=i(265);t.PreferencesPanel=ti.PreferencesPanel;ti.PreferencesPanel.doExport();ii=i(266);t.PrintableUri=ii.PrintableUri;ii.PrintableUri.doExport();i(463).registerFields();ri=i(138);t.Querybox=ri.Querybox;ri.Querybox.doExport();ui=i(267);t.QueryDuration=ui.QueryDuration;ui.QueryDuration.doExport();fi=i(268);t.QuerySummary=fi.QuerySummary;fi.QuerySummary.doExport();ei=i(269);t.Quickview=ei.Quickview;ei.Quickview.doExport();i(464).registerFields();oi=i(199);t.Recommendation=oi.Recommendation;oi.Recommendation.doExport();si=i(271);t.ResultAttachments=si.ResultAttachments;si.ResultAttachments.doExport();hi=i(270);t.ResultActionsMenu=hi.ResultActionsMenu;hi.ResultActionsMenu.doExport();ci=i(272);t.ResultFolding=ci.ResultFolding;ci.ResultFolding.doExport();li=i(200);t.ResultLayoutSelector=li.ResultLayoutSelector;li.ResultLayoutSelector.doExport();ai=i(70);t.ResultLink=ai.ResultLink;ai.ResultLink.doExport();i(465).registerFields();vi=i(92);t.ResultList=vi.ResultList;vi.ResultList.doExport();yi=i(273);t.ResultRating=yi.ResultRating;yi.ResultRating.doExport();pi=i(275);t.ResultsFiltersPreferences=pi.ResultsFiltersPreferences;pi.ResultsFiltersPreferences.doExport();wi=i(276);t.ResultsPerPage=wi.ResultsPerPage;wi.ResultsPerPage.doExport();bi=i(277);t.ResultsPreferences=bi.ResultsPreferences;bi.ResultsPreferences.doExport();ki=i(278);t.ResultTagging=ki.ResultTagging;ki.ResultTagging.doExport();di=i(280);t.SearchAlerts=di.SearchAlerts;di.SearchAlerts.doExport();gi=i(281);t.Searchbox=gi.Searchbox;gi.Searchbox.doExport();nr=i(194);t.SearchButton=nr.SearchButton;nr.SearchButton.doExport();tr=i(282);t.Settings=tr.Settings;tr.Settings.doExport();ir=i(283);t.ShareQuery=ir.ShareQuery;ir.ShareQuery.doExport();rr=i(195);t.Sort=rr.Sort;rr.Sort.doExport();ur=i(274);t.StarRating=ur.StarRating;ur.StarRating.doExport();fr=i(201);t.Tab=fr.Tab;fr.Tab.doExport();er=i(284);t.TemplateLoader=er.TemplateLoader;er.TemplateLoader.doExport();or=i(285);t.Text=or.Text;or.Text.doExport();sr=i(286);t.Thumbnail=sr.Thumbnail;sr.Thumbnail.doExport();i(467).registerFields();hr=i(287);t.Triggers=hr.Triggers;hr.Triggers.doExport();cr=i(188);t.YouTubeThumbnail=cr.YouTubeThumbnail;cr.YouTubeThumbnail.doExport();i(213).registerFields();ff=i(27);t.Template=ff.Template;lr=i(65);t.Checkbox=lr.Checkbox;lr.Checkbox.doExport();ar=i(89);t.DatePicker=ar.DatePicker;ar.DatePicker.doExport();vr=i(63);t.Dropdown=vr.Dropdown;vr.Dropdown.doExport();yr=i(140);t.FormGroup=yr.FormGroup;yr.FormGroup.doExport();pr=i(193);t.MultiSelect=pr.MultiSelect;pr.MultiSelect.doExport();wr=i(126);t.NumericSpinner=wr.NumericSpinner;wr.NumericSpinner.doExport();br=i(98);t.RadioButton=br.RadioButton;br.RadioButton.doExport();kr=i(56);t.TextInput=kr.TextInput;kr.TextInput.doExport();dr=i(288);t.SimpleFilter=dr.SimpleFilter;dr.SimpleFilter.doExport();gr=i(289);t.TimespanFacet=gr.TimespanFacet;gr.TimespanFacet.doExport();nu=i(141);t.DynamicFacet=nu.DynamicFacet;nu.DynamicFacet.doExport();tu=i(292);t.DynamicFacetRange=tu.DynamicFacetRange;tu.DynamicFacetRange.doExport();iu=i(293);t.DynamicFacetManager=iu.DynamicFacetManager;iu.DynamicFacetManager.doExport();ru=i(290);t.PromotedResultsBadge=ru.PromotedResultsBadge;ru.PromotedResultsBadge.doExport();uu=i(94);t.CategoryFacet=uu.CategoryFacet;uu.CategoryFacet.doExport();fu=i(291);t.DynamicHierarchicalFacet=fu.DynamicHierarchicalFacet;fu.DynamicHierarchicalFacet.doExport();eu=i(294);t.MissingTerms=eu.MissingTerms;eu.MissingTerms.doExport();ou=i(295);t.QuerySuggestPreview=ou.QuerySuggestPreview;ou.QuerySuggestPreview.doExport();i(468).swapVar(this);su=i(196);t.ImageFieldValue=su.ImageFieldValue;su.ImageFieldValue.doExport();hu=i(296);t.CommerceQuery=hu.CommerceQuery;hu.CommerceQuery.doExport();cu=i(297);t.SortDropdown=cu.SortDropdown;cu.SortDropdown.doExport();lu=i(298);t.SmartSnippet=lu.SmartSnippet;lu.SmartSnippet.doExport();au=i(299);t.SmartSnippetSuggestions=au.SmartSnippetSuggestions;au.SmartSnippetSuggestions.doExport();vu=i(85);t.FacetsMobileMode=vu.FacetsMobileMode;vu.FacetsMobileMode.doExport();ef=i(129);t.Analytics=ef.Analytics}])}),function(n){var t;t=typeof require!="undefined"&&typeof exports!="undefined"&&typeof module!="undefined"?require("globalize"):n.Globalize;t.addCultureInfo("en-US","default",{name:"en-US",englishName:"English (United States)"})}(this),function(){var i=function(n,t){var r={},i;for(i in n)r[i]=n[i];for(i in t)r[i]=t[i];return r},n={"box user":"User","filetype_box user":"User",html:"HTML File",filetype_html:"HTML File",wiki:"Wiki",filetype_wiki:"Wiki",webscraperwebpage:"Web Page",filetype_webscraperwebpage:"Web Page",image:"Image",filetype_image:"Image",folder:"Folder",filetype_folder:"Folder",txt:"Text",filetype_txt:"Text",zip:"Zip File",filetype_zip:"Zip File",olefile:"OLE file",filetype_olefile:"OLE file",gmailmessage:"Gmail Message",filetype_gmailmessage:"Gmail Message",pdf:"PDF File",filetype_pdf:"PDF File",swf:"Flash File",filetype_swf:"Flash File",xml:"XML File",filetype_xml:"XML File",vsd:"Visio",filetype_vsd:"Visio",svg:"SVG",filetype_svg:"SVG",svm:"Open Office",filetype_svm:"Open Office",rssitem:"RSS feed",filetype_rssitem:"RSS feed",doc:"Document",filetype_doc:"Document",docx:"Microsoft Word Document",filetype_docx:"Microsoft Word Document",xls:"Spreadsheet Document",filetype_xls:"Spreadsheet Document",ppt:"Presentation Document",filetype_ppt:"Presentation Document",video:"Video",filetype_video:"Video",youtube:"YouTube video",filetype_youtube:"YouTube video",saleforceitem:"Salesforce",filetype_saleforceitem:"Salesforce",dynamicscrmitem:"Dynamics CRM",filetype_dynamicscrmitem:"Dynamics CRM",salesforceitem:"Salesforce",filetype_salesforceitem:"Salesforce",odt:"Open Text Document",filetype_odt:"Open Text Document",box:"User",filetype_box:"User",jiraissue:"Jira Issue",filetype_jiraissue:"Jira Issue",cfpage:"Confluence Page",filetype_cfpage:"Confluence Page",cfcomment:"Confluence Comment",filetype_cfcomment:"Confluence Comment",cfspace:"Confluence Space",filetype_cfspace:"Confluence Space",cfblogentry:"Confluence Blog Entry",filetype_cfblogentry:"Confluence Blog Entry",confluencespace:"Confluence Space",filetype_confluencespace:"Confluence Space",exchangemessage:"Message",filetype_exchangemessage:"Message",exchangeappointment:"Appointment",filetype_exchangeappointment:"Appointment",exchangenote:"Note",filetype_exchangenote:"Note",exchangetask:"Task",filetype_exchangetask:"Task",exchangeperson:"Exchange User",filetype_exchangeperson:"Exchange User",activedirperson:"Active Directory User",filetype_activedirperson:"Active Directory User",exchangeactivity:"Activity",filetype_exchangeactivity:"Activity",exchangecalendarmessage:"Calendar Message",filetype_exchangecalendarmessage:"Calendar Message",exchangedocument:"Exchange Document",filetype_exchangedocument:"Exchange Document",exchangedsn:"DSN",filetype_exchangedsn:"DSN",exchangefreebusy:"Free/Busy",filetype_exchangefreebusy:"Free/Busy",exchangegroup:"Group",filetype_exchangegroup:"Group",exchangerssfeed:"RSS Feed",filetype_exchangerssfeed:"RSS Feed",exchangejunkmessage:"Junk Email",filetype_exchangejunkmessage:"Junk Email",exchangeofficecom:"Communications",filetype_exchangeofficecom:"Communications",lithiummessage:"Lithium Message",filetype_lithiummessage:"Lithium Message",lithiumthread:"Lithium Thread",filetype_lithiumthread:"Lithium Thread",lithiumboard:"Lithium Board",filetype_lithiumboard:"Lithium Board",lithiumcategory:"Lithium Category",filetype_lithiumcategory:"Lithium Category",lithiumcommunity:"Lithium Community",filetype_lithiumcommunity:"Lithium Community",people:"User",objecttype_people:"User",message:"Message",objecttype_message:"Message",feed:"RSS Feed",objecttype_feed:"RSS Feed",thread:"Thread",objecttype_thread:"Thread",file:"File",objecttype_file:"File",board:"Board",objecttype_board:"Board",category:"Category",objecttype_category:"Category",account:"Account",objecttype_account:"Account",annotation:"Note",objecttype_annotation:"Note",campaign:"Campaign",objecttype_campaign:"Campaign","case":"Case",objecttype_case:"Case",contact:"Contact",objecttype_contact:"Contact",contract:"Contract",objecttype_contract:"Contract",event:"Event",objecttype_event:"Event",email:"Email",objecttype_email:"Email",goal:"Goal",objecttype_goal:"Goal",incident:"Incident",objecttype_incident:"Incident",invoice:"Invoice",objecttype_invoice:"Invoice",lead:"Lead",objecttype_lead:"Lead",list:"List",objecttype_list:"Marketing List",solution:"Solution",objecttype_solution:"Solution",report:"Report",objecttype_report:"Report",task:"Task",objecttype_task:"Task",user:"User",objecttype_user:"User",attachment:"Attachment",objecttype_attachment:"Attachment",casecomment:"Case Comment",objecttype_casecomment:"Case Comment",opportunity:"Opportunity",objecttype_opportunity:"Opportunity",opportunityproduct:"Opportunity Product",objecttype_opportunityproduct:"Opportunity Product",feeditem:"Chatter",objecttype_feeditem:"Chatter",feedcomment:"Comment",objecttype_feedcomment:"Comment",note:"Note",objecttype_note:"Note",product:"Product",objecttype_product:"Product",partner:"Partner",objecttype_partner:"Partner",queueitem:"Queue Item",objecttype_queueitem:"Queue Item",quote:"Quote",objecttype_quote:"Quote",salesliterature:"Sales Literature",objecttype_salesliterature:"Sales Literature",salesorder:"Sales Order",objecttype_salesorder:"Sales Order",service:"Service",objecttype_service:"Service",socialprofile:"Social Profile",objecttype_socialprofile:"Social Profile",kbdocumentation:"Knowledge Document",objecttype_kbdocumentation:"Knowledge Document",kbtechnicalarticle:"Technical Documentation",objecttype_kbtechnicalarticle:"Technical Documentation",kbsolution:"Solution",objecttype_kbsolution:"Solution",kbknowledgearticle:"Knowledge Article",objecttype_kbknowledgearticle:"Knowledge Article",kbattachment:"Attachment",objecttype_kbattachment:"Attachment",kbarticle:"Article",objecttype_kbarticle:"Article",kbarticlecomment:"Article Comment",objecttype_kbarticlecomment:"Article Comment",knowledgearticle:"Knowledge Article",objecttype_knowledgearticle:"Knowledge Article",topic:"Topic",objecttype_topic:"Topic",dashboard:"Dashboard",objecttype_dashboard:"Dashboard",contentversion:"Document",objecttype_contentversion:"Document",collaborationgroup:"Collaboration group",objecttype_collaborationgroup:"Collaboration group",phonecall:"Phone call",objecttype_phonecall:"Phone call",appointment:"Appointment",objecttype_appointment:"Appointment",sn_hr_core_case:"HR Case",filetype_sn_hr_core_case:"HR Case",sc_cat_item:"Catalog Item",filetype_sc_cat_item:"Catalog Item",sn_customerservice_case:"Case",filetype_sn_customerservice_case:"Case",kb_social_qa_answer:"Answer",filetype_kb_social_qa_answer:"Answer",kb_social_qa_question:"Question",filetype_kb_social_qa_question:"Question",kb_social_qa_comment:"Comment",filetype_kb_social_qa_comment:"Comment",filetype_incident:"Incident",kb_knowledge:"Knowledge Article",filetype_kb_knowledge:"Knowledge Article",spportal:"Portal",filetype_spportal:"Portal",spsite:"SharePoint Site",filetype_spsite:"SharePoint Site",spuserprofile:"SharePoint User",filetype_spuserprofile:"SharePoint User",sparea:"Area",filetype_sparea:"Area",spannouncement:"Announcement",filetype_spannouncement:"Announcement",spannouncementlist:"Announcements",filetype_spannouncementlist:"Announcements",spcontact:"Contact",filetype_spcontact:"Contact",spcontactlist:"Contacts",filetype_spcontactlist:"Contacts",spcustomlist:"Custom Lists",filetype_spcustomlist:"Custom Lists",spdiscussionboard:"Discussion Board",filetype_spdiscussionboard:"Discussion Board",spdiscussionboardlist:"Discussion Boards",filetype_spdiscussionboardlist:"Discussion Boards",spdocumentlibrarylist:"Document Library",filetype_spdocumentlibrarylist:"Document Library",spevent:"Event",filetype_spevent:"Event",speventlist:"Events",filetype_speventlist:"Events",spformlibrarylist:"Form Library",filetype_spformlibrarylist:"Form Library",spissue:"Issue",filetype_spissue:"Issue",spissuelist:"Issues",filetype_spissuelist:"Issues",splink:"Link",filetype_splink:"Link",splinklist:"Links",filetype_splinklist:"Links",sppicturelibrarylist:"Picture Library",filetype_sppicturelibrarylist:"Picture Library",spsurvey:"Survey",filetype_spsurvey:"Survey",spsurveylist:"Surveys",filetype_spsurveylist:"Surveys",sptask:"Task",filetype_sptask:"Task",sptasklist:"Tasks",filetype_sptasklist:"Tasks",spagenda:"Agenda",filetype_spagenda:"Agenda",spagendalist:"Agendas",filetype_spagendalist:"Agendas",spattendee:"Attendee",filetype_spattendee:"Attendee",spattendeelist:"Attendees",filetype_spattendeelist:"Attendees",spcustomgridlist:"Custom Grids",filetype_spcustomgridlist:"Custom Grids",spdecision:"Decision",filetype_spdecision:"Decision",spdecisionlist:"Decisions",filetype_spdecisionlist:"Decisions",spobjective:"Objective",filetype_spobjective:"Objective",spobjectivelist:"Objectives",filetype_spobjectivelist:"Objectives",sptextbox:"Textbox",filetype_sptextbox:"Textbox",sptextboxlist:"Textbox list",filetype_sptextboxlist:"Textbox list",spthingstobring:"Thing To Bring",filetype_spthingstobring:"Thing To Bring",spthingstobringlist:"Things To Bring",filetype_spthingstobringlist:"Things To Bring",sparealisting:"Area Listing",filetype_sparealisting:"Area Listing",spmeetingserie:"Meeting series",filetype_spmeetingserie:"Meeting series",spmeetingserielist:"Meeting Series List",filetype_spmeetingserielist:"Meeting Series List",spsitedirectory:"Site Directory Item",filetype_spsitedirectory:"Site Directory Item",spsitedirectorylist:"Site Directory",filetype_spsitedirectorylist:"Site Directory",spdatasource:"Data Source",filetype_spdatasource:"Data Source",spdatasourcelist:"Data Source List",filetype_spdatasourcelist:"Data Source List",splisttemplatecataloglist:"List Template Gallery",filetype_splisttemplatecataloglist:"List Template Gallery",spwebpartcataloglist:"WebPart Gallery",filetype_spwebpartcataloglist:"WebPart Gallery",spwebtemplatecataloglist:"Site Template Gallery",filetype_spwebtemplatecataloglist:"Site Template Gallery",spworkspacepagelist:"Workspace Pages",filetype_spworkspacepagelist:"Workspace Pages",spunknownlist:"Custom List",filetype_spunknownlist:"Custom List",spadministratortask:"Administrator Task",filetype_spadministratortask:"Administrator Task",spadministratortasklist:"Administrator Tasks",filetype_spadministratortasklist:"Administrator Tasks",spareadocumentlibrarylist:"Area Document Library",filetype_spareadocumentlibrarylist:"Area Document Library",spblogcategory:"Blog Category",filetype_spblogcategory:"Blog Category",spblogcategorylist:"Blog Categories",filetype_spblogcategorylist:"Blog Categories",spblogcomment:"Blog Comment",filetype_spblogcomment:"Blog Comment",spblogcommentlist:"Blog Comments",filetype_spblogcommentlist:"Blog Comments",spblogpost:"Blog Post",filetype_spblogpost:"Blog Post",spblogpostlist:"Blog Posts",filetype_spblogpostlist:"Blog Posts",spdataconnectionlibrarylist:"Data Connection Library",filetype_spdataconnectionlibrarylist:"Data Connection Library",spdistributiongroup:"Distribution Group",filetype_spdistributiongroup:"Distribution Group",spdistributiongrouplist:"Distribution Groups",filetype_spdistributiongrouplist:"Distribution Groups",spipfslist:"InfoPath Forms Servers",filetype_spipfslist:"InfoPath Forms Servers",spkeyperformanceindicator:"Key Performance Indicator",filetype_spkeyperformanceindicator:"Key Performance Indicator",spkeyperformanceindicatorlist:"Key Performance Indicators",filetype_spkeyperformanceindicatorlist:"Key Performance Indicators",splanguagesandtranslator:"Languages and Translator",filetype_splanguagesandtranslator:"Languages and Translator",splanguagesandtranslatorlist:"Languages and Translators",filetype_splanguagesandtranslatorlist:"Languages and Translators",spmasterpagescataloglist:"Master Page Gallery",filetype_spmasterpagescataloglist:"Master Page Gallery",spnocodeworkflowlibrarylist:"No-code Workflow Libraries",filetype_spnocodeworkflowlibrarylist:"No-code Workflow Libraries",spprojecttask:"Project Task",filetype_spprojecttask:"Project Task",spprojecttasklist:"Project Tasks",filetype_spprojecttasklist:"Project Tasks",sppublishingpageslibrarylist:"Page Library",filetype_sppublishingpageslibrarylist:"Page Library",spreportdocumentlibrarylist:"Report Document Library",filetype_spreportdocumentlibrarylist:"Report Document Library",spreportlibrarylist:"Report Library",filetype_spreportlibrarylist:"Report Library",spslidelibrarylist:"Slide Library",filetype_spslidelibrarylist:"Slide Library",sptab:"Tabs",filetype_sptab:"Tabs",sptablist:"Tabs List",filetype_sptablist:"Tabs List",sptranslationmanagementlibrarylist:"Translation Management Library",filetype_sptranslationmanagementlibrarylist:"Translation Management Library",spuserinformation:"User Information",filetype_spuserinformation:"User Information",spuserinformationlist:"User Information List",filetype_spuserinformationlist:"User Information List",spwikipagelibrarylist:"Wiki Page Library",filetype_spwikipagelibrarylist:"Wiki Page Library",spworkflowhistory:"Workflow History",filetype_spworkflowhistory:"Workflow History",spworkflowhistorylist:"Workflow History List",filetype_spworkflowhistorylist:"Workflow History List",spworkflowprocess:"Custom Workflow Process",filetype_spworkflowprocess:"Custom Workflow Process",spworkflowprocesslist:"Custom Workflow Processes",filetype_spworkflowprocesslist:"Custom Workflow Processes",sppublishingimageslibrarylist:"Publishing Image Library",filetype_sppublishingimageslibrarylist:"Publishing Image Library",spcirculation:"Circulation",filetype_spcirculation:"Circulation",spcirculationlist:"Circulations",filetype_spcirculationlist:"Circulations",spdashboardslibrarylist:"Dashboards Library",filetype_spdashboardslibrarylist:"Dashboards Library",spdataconnectionforperformancepointlibrarylist:"PerformancePoint Data Connection Library",filetype_spdataconnectionforperformancepointlibrarylist:"PerformancePoint Data Connection Library",sphealthreport:"Health Report",filetype_sphealthreport:"Health Report",sphealthreportlist:"Health Reports",filetype_sphealthreportlist:"Health Reports",sphealthrule:"Health Rule",filetype_sphealthrule:"Health Rule",sphealthrulelist:"Health Rules",filetype_sphealthrulelist:"Health Rules",spimedictionary:"IME Dictionary",filetype_spimedictionary:"IME Dictionary",spimedictionarylist:"IME Dictionaries",filetype_spimedictionarylist:"IME Dictionaries",spperformancepointcontent:"PerformancePoint Content",filetype_spperformancepointcontent:"PerformancePoint Content",spperformancepointcontentlist:"PerformancePoint Contents",filetype_spperformancepointcontentlist:"PerformancePoint Contents",spphonecallmemo:"Phone Call Memo",filetype_spphonecallmemo:"Phone Call Memo",spphonecallmemolist:"Phone Call Memos",filetype_spphonecallmemolist:"Phone Call Memos",sprecordlibrarylist:"Record Library",filetype_sprecordlibrarylist:"Record Library",spresource:"Resource",filetype_spresource:"Resource",spresourcelist:"Resources",filetype_spresourcelist:"Resources",spprocessdiagramslibrarylist:"Process Diagram Library",filetype_spprocessdiagramslibrarylist:"Process Diagram Library",spsitethemeslibrarylist:"Site Theme Library",filetype_spsitethemeslibrarylist:"Site Theme Library",spsolutionslibrarylist:"Solution Library",filetype_spsolutionslibrarylist:"Solution Library",spwfpublibrarylist:"WFPUB Library",filetype_spwfpublibrarylist:"WFPUB Library",spwhereabout:"Whereabout",filetype_spwhereabout:"Whereabout",spwhereaboutlist:"Whereabouts",filetype_spwhereaboutlist:"Whereabouts",spdocumentlink:"Link to a Document",filetype_spdocumentlink:"Link to a Document",spdocumentset:"Document Set",filetype_spdocumentset:"Document Set",spmicrofeedpost:"Microfeed Post",filetype_spmicrofeedpost:"Microfeed Post",spmicrofeedlist:"Microfeed",filetype_spmicrofeedlist:"Microfeed",splistfolder:"List Folder",filetype_splistfolder:"List Folder",slackmessage:"Slack Message",filetype_slackmessage:"Slack Message",slackchannel:"Slack Channel",filetype_slackchannel:"Slack Channel",slackfile:"Slack File",filetype_slackfile:"Slack File",slackuser:"Slack User",filetype_slackuser:"Slack User",youtubevideo:"YouTube video",filetype_youtubevideo:"YouTube video",youtubeplaylistitem:"YouTube playlist item",filetype_youtubeplaylistitem:"YouTube playlist item",youtubeplaylist:"YouTube playlist",filetype_youtubeplaylist:"YouTube playlist",Unknown:"Unknown",And:"AND",Authenticating:"Authenticating {0}...",Clear:"Clear {0}",CompleteQuery:"Complete query",Exclude:"Exclude {0}",EnterTag:"Add Tag",Next:"Next",Last:"Last",Link:"Link",Or:"OR",Previous:"Previous",QueryDidntMatchAnyDocuments:"Your query did not match any documents.",QueryException:"Your query has an error: {0}.",Me:"Me",Remove:"Remove",Search:"Search",SearchFor:"Search for {0}",SubmitSearch:"Submit search",ShareQuery:"Share Query",Preferences:"Preferences",LinkOpeningSettings:"Link opening settings",Reauthenticate:"Reauthenticate {0}",ResultsFilteringExpression:"Result filtering expressions",FiltersInYourPreferences:"Filters in your preferences",Create:"Create",SearchIn:"Search in {0}",Seconds:"in {0} second<pl>s<\/pl>",ShowingResultsOf:"Result<pl>s<\/pl> {0}<pl>-{1}<\/pl> of {2}",ShowingResultsOfWithQuery:"Result<pl>s<\/pl> {0}<pl>-{1}<\/pl> of {2} for {3}",SwitchTo:"Switch to {0}",Unexclude:"Remove exclusion filter on {0}",ClearAllFilters:"Clear All Filters",SkipLogin:"Skip login",LoginInProgress:"Login in progress, please wait ...",Login:"Log In",GetStarted:"Get Started",More:"More",NMore:"{0} more...",Less:"Fewer",Settings:"Settings",Score:"Score",ScoreDescription:"The score is computed from the number of occurrences as well as from the position in the result set.",Occurrences:"Occurrences",OccurrencesDescription:"Sort by number of occurrences, with values having the highest number appearing first.",Label:"Label",Of:"of",LabelDescription:"Sort alphabetically on the field values.",Value:"Value",ValueDescription:"Sort on the values of the first computed field",AlphaAscending:"Value Ascending",AlphaDescending:"Value Descending",ChiSquare:"Chi Square",Nosort:"No Sort",NosortDescription:"Do not sort the values. The values will be returned in a random order.",RelativeFrequency:"Relative Frequency",RelativeFrequencyDescription:"Sort based on the relative frequency of values. Less common values will appear higher.",DateDistribution:"Date distribution",Custom:"Custom",CustomDescription:"Sort based on a custom order",ComputedField:"Computed Field",Ascending:"Ascending",Descending:"Descending",noResultFor:"No results for {0}",noResult:"No results",autoCorrectedQueryTo:"Query was automatically corrected to {0}",didYouMean:"Did you mean: {0}",SuggestedResults:"Suggested Results",SuggestedQueries:"Suggested Queries",MostRelevantItems:"Most relevant items:",AllItems:"All items:",ShowLess:"Show less",ShowMore:"Show more",HideFacet:"Hide Facet",ShowFacet:"Show Facet",AndOthers:"and {0} other<pl>s<\/pl>",Others:"{0} other<pl>s<\/pl>",MostRelevantPosts:"Most Relevant Posts:",CompleteThread:"Complete Thread:",ShowCompleteThread:"Show Complete Thread",ShowOnlyTopMatchingPosts:"Show Only Top Matching Posts",MostRelevantReplies:"Most Relevant Replies:",AllConversation:"All Conversation:",ShowAllConversation:"Show All Conversation",ShowAllReplies:"Show All Replies",ShowOnlyMostRelevantReplies:"Show Only Most Relevant Replies",Close:"Close",Open:"Open",OpenInOutlookWhenPossible:"Open in Outlook (when possible)",AlwaysOpenInNewWindow:"Always open results in new window",Quickview:"Quick View",NoQuickview:"The Quick View for this document is unavailable",ErrorReport:"Error Report",OopsError:"Something went wrong.",ProblemPersists:"If the problem persists contact the administrator.",GoBack:"Go Back",Reset:"Reset",Retry:"Retry",MoreInfo:"More Information",Username:"Username",Password:"Password",PostedBy:"Posted by",CannotConnect:"Cannot connect to the server address.",BadUserPass:"Password does not match with username.",PleaseEnterYourCredentials:"Please enter your credentials for {0}.",PleaseEnterYourSearchPage:"Please enter your search page URL",Collapse:"Collapse",Collapsable:"Collapsible",Expand:"Expand",CollapseFacet:"Collapse {0} facet",ExpandFacet:"Expand {0} facet",ShowLessFacetResults:"Show fewer results for {0} facet",ShowMoreFacetResults:"Show more results for {0} facet",ShowLessCategoryResults:"Show fewer results for the {0} category",ShowMoreCategoryResults:"Show more results for the {0} category",ShowLessHierarchicalResults:"Show fewer results for the {0} facet",ShowMoreHierarchicalResults:"Show more results for the {0} facet",SearchFacetResults:"Search for values in {0} facet",Today:"Today",Yesterday:"Yesterday",Tomorrow:"Tomorrow",Duration:"Duration: {0}",IndexDuration:"Index Duration: {0}",ProxyDuration:"Proxy Duration: {0}",ClientDuration:"Client Duration: {0}",Unavailable:"Unavailable",Reply:"Reply",ReplyAll:"Reply All",Forward:"Forward",From:"From",Caption:"Caption",Expression:"Expression",Tab:"Tab",Tabs:"Tabs",EnterExpressionName:"Enter expression name",EnterExpressionToFilterWith:"Enter expression to filter results with",SelectTab:"Select Tab",SelectAll:"Select All",PageUrl:"Search page URL",ErrorSavingToDevice:"Error while saving the information to your device",ErrorReadingFromDevice:"Error while reading the information from your device",AppIntro:"Speak with a product specialist who can answer your questions about Coveo and help you decide which Coveo solution is right for you. Or, try a live demo !",TryDemo:"Try the demo",ContactUs:"Contact us",NewToCoveo:"New to Coveo?",LetUsHelpGetStarted:"Let us help you get started",LikesThis:"{0} like<sn>s<\/sn> this.",CannotConnectSearchPage:"Cannot connect to your search page",AreYouSureDeleteFilter:"Are you sure you want to delete the filter {0} with the expression {1}",OnlineHelp:"Online Help",Done:"Done",SaveFacetState:"Save this facet state",ClearFacetState:"Clear facet state",DisplayingTheOnlyMessage:"Displaying the only message in this conversation",NoNetworkConnection:"No network connection",UnknownConnection:"Unknown connection",EthernetConnection:"Ethernet connection",WiFi:"WiFi connection",CELL:"Cellular connection",CELL_2G:"Cellular 2G connection",CELL_3G:"Cellular 3G connection",CELL_4G:"Cellular 4G connection",Relevance:"Relevance",Date:"Date",Amount:"Amount",QueryExceptionNoException:"No exception",QueryExceptionInvalidSyntax:"Invalid syntax",QueryExceptionInvalidCustomField:"Invalid custom field",QueryExceptionInvalidDate:"Invalid date",QueryExceptionInvalidExactPhrase:"Invalid exact phrase",QueryExceptionInvalidDateOp:"Invalid date operator",QueryExceptionInvalidNear:"Invalid NEAR operator",QueryExceptionInvalidWeightedNear:"Invalid weighted NEAR",QueryExceptionInvalidTerm:"Invalid term",QueryExceptionTooManyTerms:"Too many terms",QueryExceptionWildcardTooGeneral:"Wildcard too general",QueryExceptionInvalidSortField:"Invalid sort field",QueryExceptionInvalidSmallStringOp:"Invalid small string operator",QueryExceptionRequestedResultsMax:"Requested results maximum",QueryExceptionAggregatedMirrorDead:"Aggregated mirror is offline",QueryExceptionAggregatedMirrorQueryTimeOut:"Aggregated mirror query timeout",QueryExceptionAggregatedMirrorInvalidBuildNumber:"Aggregated mirror invalid build number",QueryExceptionAggregatedMirrorCannotConnect:"Aggregated mirror cannot connect",QueryExceptionNotEnoughLeadingCharsWildcard:"Not enough leading character wildcard",QueryExceptionSecurityInverterNotFound:"Security inverter not found",QueryExceptionSecurityInverterAccessDenied:"Security inverter access denied",QueryExceptionAggregatedMirrorCannotImpersonate:"Aggregated mirror cannot impersonate",QueryExceptionUnexpected:"Unexpected",QueryExceptionAccessDenied:"Access denied",QueryExceptionSuperUserTokenInvalid:"Super user token invalid",QueryExceptionSuperUserTokenExpired:"Super user token is expired",QueryExceptionLicenseQueriesExpired:"Queries license expired",QueryExceptionLicenseSuperUserTokenNotSupported:"License super user token not supported",QueryExceptionInvalidSession:"Invalid session",QueryExceptionInvalidDocument:"Invalid document",QueryExceptionSearchDisabled:"Search disabled",FileType:"File type",ShowAttachment:"Show attachment",OnFeed:"on {0}'s feed.",Author:"Author",NoTitle:"No title",CurrentSelections:"Current selections",AllContent:"All content",CancelLastAction:"Cancel last action",SearchTips:"Search tips",CheckSpelling:"Check the spelling of your keywords.",TryUsingFewerKeywords:"Try using fewer, different or more general keywords.",SelectFewerFilters:"Select fewer filters to broaden your search.",Document:"Document",Time:"Time",StartDate:"Start Date",StartTime:"Start Time",DurationTitle:"Duration",UserQuery:"User query",ShowUserActions:"Show User Actions",NoData:"No data available",EventType:"Event type",GoToFullSearch:"Full search",GoToEdition:"Customize Panel",RemoveContext:"Remove context",BoxAttachToCase:"Attach to case",AttachToCase:"Attach to case",Attach:"Attach",Attached:"Attached",Detach:"Detach",Details:"Details",AdditionalFilters:"Additional filters",SelectNonContextualSearch:"Remove the context from the current record to broaden your search",CopyPasteToSupport:"Copy paste this message to the Coveo Support team for more information.",FollowQueryDescription:"Alert me for changes to the search results of this query.",SearchAlerts_Panel:"Manage Alerts",SearchAlerts_PanelDescription:"View and manage your search alerts.",SearchAlerts_PanelNoSearchAlerts:"You have no subscriptions.",SearchAlerts_Fail:"The Search Alerts service is currently unavailable.",SearchAlerts_Type:"Type",SearchAlerts_Content:"Content",SearchAlerts_Actions:"Action",EmptyQuery:"<empty>",SearchAlerts_Type_followQuery:"Query",SearchAlerts_Type_followDocument:"Item",SearchAlerts_unFollowing:"Stop Following",SearchAlerts_follow:"Follow",SearchAlerts_followed:"Followed",SearchAlerts_followQuery:"Follow Query",Subscription_StopFollowingQuery:"Stop Following Query",SearchAlerts_Frequency:"When",SubscriptionsManageSubscriptions:"Manage Alerts",SubscriptionsMessageFollowQuery:"You will receive alerts when the query <b>{0}<\/b> returns new or updated items.",SubscriptionsMessageFollow:"You will receive alerts for changes to the item <b>{0}<\/b>.",Expiration:"Expiration",Monthly:"Monthly",Daily:"Daily",Monday:"Monday",Tuesday:"Tuesday",Wednesday:"Wednesday",Thursday:"Thursday",Friday:"Friday",Saturday:"Saturday",Sunday:"Sunday",NextDay:"Next {0}",LastDay:"Last {0}",StartTypingCaseForSuggestions:"Describe your problem to see possible solutions",ExportToExcel:"Export to Excel",ExportToExcelDescription:"Export search results to Excel",CaseCreationNoResults:"No recommended solutions were found",SortBy:"Sort by",BoxCreateArticle:"Create Article",Facets:"Facets",AdvancedSearch:"Advanced Search",Keywords:"Keywords",AllTheseWords:"All these words",ExactPhrase:"This exact phrase",AnyOfTheseWords:"Any of these words",NoneOfTheseWords:"None of these words",Anytime:"Anytime",InTheLast:"In the last",Days:"days",Months:"months",Month:"Month",Year:"Year",Between:"Between",Language:"Language",Size:"Size",AtLeast:"at least",AtMost:"at most",Contains:"contains",DoesNotContain:"does not contain",Matches:"matches",Bytes:"bytes",card:"Card",table:"Table",ResultLinks:"Result links",EnableQuerySyntax:"Enable query syntax",On:"On",Off:"Off",Automatic:"Automatic",ResultsPerPage:"Results per page",PreviousMonth:"Previous month",NextMonth:"Next month",Title:"Title",FiltersInAdvancedSearch:"Filters in Advanced Search",NoEndpoints:"{0} has no registered endpoints.",InvalidToken:"The token used is invalid.",AddSources:"You will need to add sources in your index, or wait for the created sources to finish indexing.",TryAgain:"Please try again.",CoveoOnlineHelp:"Coveo Online Help",CannotAccess:"{0} cannot be accessed.",CoveoOrganization:"Coveo Organization",SearchAPIDuration:"Search API Duration: {0}",LastUpdated:"Last updated",AllDates:"All dates",WithinLastDay:"Within last day",WithinLastWeek:"Within last week",WithinLastMonth:"Within last month",WithinLastYear:"Within last year",RelevanceInspector:"Relevance Inspector",KeywordInCategory:'{0} <span class="coveo-omnibox-suggestion-category">in {1}<\/span>',Result:"Result",ResultCount:"{0} result<pl>s<\/pl>",ShowingResults:"{0} result<pl>s<\/pl>",ShowingResultsWithQuery:"{0} result<pl>s<\/pl> for {1}",NumberOfVideos:"Number of videos",AllCategories:"All Categories",Recommended:"Recommended",Featured:"Featured",CoveoHomePage:"Coveo Home page",SizeValue:"Size value",UnitMeasurement:"Unit of measurement",Toggle:"Toggle",FilterOn:"Filter on {0}",RemoveFilterOn:"Remove inclusion filter on {0}",Enter:"Enter",InsertAQuery:"Insert a query",PressEnterToSend:"Press enter to send",SortResultsBy:"Sort results by {0}",SortResultsByAscending:"Sort by {0} in ascending order",SortResultsByDescending:"Sort by {0} in descending order",DisplayResultsAs:"Display results as {0}",FacetTitle:"{0} facet",IncludeValueWithResultCount:"Inclusion filter on {0}; {1}",ExcludeValueWithResultCount:"Exclusion filter on {0}; {1}",PageNumber:"Page {0}",DisplayResultsPerPage:"Display {0} results per page",GroupByAndFacetRequestsCannotCoexist:"The query is invalid because it contains both Group By and Facet requests. Ensure that the search interface does not initialize DynamicFacet components alongside Facet components (or alongside any component extending the Facet component, such as FacetRange or FacetSlider).",MustContain:"Must contain:",Missing:"Missing:",Filters:"Filters",FiltersDropdown:"Filters dropdown",OpenFiltersDropdown:"Open the filters dropdown",CloseFiltersDropdown:"Close the filters dropdown",NoValuesFound:"No values found.",To:"to",DeselectFilterValues:"Deselect all active filters on {0} field",Rated:"Rated {0} out of {1} star<pl>s<\/pl>",RatedBy:"by {0} user<pl>s<\/pl>",NoRatings:"No ratings",Pagination:"Pagination",ThumbnailOf:'Thumbnail of "{0}"',CollapsedUriParts:"Collapsed URI parts",HierarchicalFacetValueIndentedUnder:"{0} under {1}",HierarchicalFacetValuePathPrefix:"in",UsefulnessFeedbackRequest:"Was this useful?",UsefulnessFeedbackThankYou:"Thanks for your feedback!",UsefulnessFeedbackExplainWhy:"Explain why",UsefulnessFeedbackExplainWhyImperative:"Explain why",UsefulnessFeedbackDoesNotAnswer:"This didn't answer my question at all",UsefulnessFeedbackPartiallyAnswers:"This only partially answered my question",UsefulnessFeedbackWasNotAQuestion:"My request wasn't meant to be perceived as a question",Yes:"Yes",No:"No",Other:"Other",Send:"Send",Edit:"Edit",Delete:"Delete",Save:"Save",UsefulnessFeedbackReason:"Reason",AnswerSnippet:"Answer to your question",AnswerSpecificSnippet:'Answer to "{0}"',SuggestedQuestions:"People also ask",ExpandQuestionAnswer:'View answer for "{0}"',MoreValuesAvailable:"additional values are available",Breadcrumb:"Active filters",OrganizationIsPaused:"Your Coveo organization is paused due to inactivity and search is currently unavailable.",OrganizationWillResume:"Your organization is resuming and will be available shortly.",UpdatingResults:"Updating results",QuerySuggestionsAvailable:"{0} search suggestion<pl>s are<\/pl> available.",QuerySuggestionsUnavailable:"There are no search suggestions."},t=String.locales||(String.locales={});t.en=i(t.en,n);String.toLocaleString.call(this,{en:n});String.locale="en";String.defaultLocale="en";Globalize.culture("en")}();window.Coveo||(window.Coveo={});Coveo.setLanguageAfterPageLoaded=function(){var i=function(n,t){var r={},i;for(i in n)r[i]=n[i];for(i in t)r[i]=t[i];return r},n={"box user":"User","filetype_box user":"User",html:"HTML File",filetype_html:"HTML File",wiki:"Wiki",filetype_wiki:"Wiki",webscraperwebpage:"Web Page",filetype_webscraperwebpage:"Web Page",image:"Image",filetype_image:"Image",folder:"Folder",filetype_folder:"Folder",txt:"Text",filetype_txt:"Text",zip:"Zip File",filetype_zip:"Zip File",olefile:"OLE file",filetype_olefile:"OLE file",gmailmessage:"Gmail Message",filetype_gmailmessage:"Gmail Message",pdf:"PDF File",filetype_pdf:"PDF File",swf:"Flash File",filetype_swf:"Flash File",xml:"XML File",filetype_xml:"XML File",vsd:"Visio",filetype_vsd:"Visio",svg:"SVG",filetype_svg:"SVG",svm:"Open Office",filetype_svm:"Open Office",rssitem:"RSS feed",filetype_rssitem:"RSS feed",doc:"Document",filetype_doc:"Document",docx:"Microsoft Word Document",filetype_docx:"Microsoft Word Document",xls:"Spreadsheet Document",filetype_xls:"Spreadsheet Document",ppt:"Presentation Document",filetype_ppt:"Presentation Document",video:"Video",filetype_video:"Video",youtube:"YouTube video",filetype_youtube:"YouTube video",saleforceitem:"Salesforce",filetype_saleforceitem:"Salesforce",dynamicscrmitem:"Dynamics CRM",filetype_dynamicscrmitem:"Dynamics CRM",salesforceitem:"Salesforce",filetype_salesforceitem:"Salesforce",odt:"Open Text Document",filetype_odt:"Open Text Document",box:"User",filetype_box:"User",jiraissue:"Jira Issue",filetype_jiraissue:"Jira Issue",cfpage:"Confluence Page",filetype_cfpage:"Confluence Page",cfcomment:"Confluence Comment",filetype_cfcomment:"Confluence Comment",cfspace:"Confluence Space",filetype_cfspace:"Confluence Space",cfblogentry:"Confluence Blog Entry",filetype_cfblogentry:"Confluence Blog Entry",confluencespace:"Confluence Space",filetype_confluencespace:"Confluence Space",exchangemessage:"Message",filetype_exchangemessage:"Message",exchangeappointment:"Appointment",filetype_exchangeappointment:"Appointment",exchangenote:"Note",filetype_exchangenote:"Note",exchangetask:"Task",filetype_exchangetask:"Task",exchangeperson:"Exchange User",filetype_exchangeperson:"Exchange User",activedirperson:"Active Directory User",filetype_activedirperson:"Active Directory User",exchangeactivity:"Activity",filetype_exchangeactivity:"Activity",exchangecalendarmessage:"Calendar Message",filetype_exchangecalendarmessage:"Calendar Message",exchangedocument:"Exchange Document",filetype_exchangedocument:"Exchange Document",exchangedsn:"DSN",filetype_exchangedsn:"DSN",exchangefreebusy:"Free/Busy",filetype_exchangefreebusy:"Free/Busy",exchangegroup:"Group",filetype_exchangegroup:"Group",exchangerssfeed:"RSS Feed",filetype_exchangerssfeed:"RSS Feed",exchangejunkmessage:"Junk Email",filetype_exchangejunkmessage:"Junk Email",exchangeofficecom:"Communications",filetype_exchangeofficecom:"Communications",lithiummessage:"Lithium Message",filetype_lithiummessage:"Lithium Message",lithiumthread:"Lithium Thread",filetype_lithiumthread:"Lithium Thread",lithiumboard:"Lithium Board",filetype_lithiumboard:"Lithium Board",lithiumcategory:"Lithium Category",filetype_lithiumcategory:"Lithium Category",lithiumcommunity:"Lithium Community",filetype_lithiumcommunity:"Lithium Community",people:"User",objecttype_people:"User",message:"Message",objecttype_message:"Message",feed:"RSS Feed",objecttype_feed:"RSS Feed",thread:"Thread",objecttype_thread:"Thread",file:"File",objecttype_file:"File",board:"Board",objecttype_board:"Board",category:"Category",objecttype_category:"Category",account:"Account",objecttype_account:"Account",annotation:"Note",objecttype_annotation:"Note",campaign:"Campaign",objecttype_campaign:"Campaign","case":"Case",objecttype_case:"Case",contact:"Contact",objecttype_contact:"Contact",contract:"Contract",objecttype_contract:"Contract",event:"Event",objecttype_event:"Event",email:"Email",objecttype_email:"Email",goal:"Goal",objecttype_goal:"Goal",incident:"Incident",objecttype_incident:"Incident",invoice:"Invoice",objecttype_invoice:"Invoice",lead:"Lead",objecttype_lead:"Lead",list:"List",objecttype_list:"Marketing List",solution:"Solution",objecttype_solution:"Solution",report:"Report",objecttype_report:"Report",task:"Task",objecttype_task:"Task",user:"User",objecttype_user:"User",attachment:"Attachment",objecttype_attachment:"Attachment",casecomment:"Case Comment",objecttype_casecomment:"Case Comment",opportunity:"Opportunity",objecttype_opportunity:"Opportunity",opportunityproduct:"Opportunity Product",objecttype_opportunityproduct:"Opportunity Product",feeditem:"Chatter",objecttype_feeditem:"Chatter",feedcomment:"Comment",objecttype_feedcomment:"Comment",note:"Note",objecttype_note:"Note",product:"Product",objecttype_product:"Product",partner:"Partner",objecttype_partner:"Partner",queueitem:"Queue Item",objecttype_queueitem:"Queue Item",quote:"Quote",objecttype_quote:"Quote",salesliterature:"Sales Literature",objecttype_salesliterature:"Sales Literature",salesorder:"Sales Order",objecttype_salesorder:"Sales Order",service:"Service",objecttype_service:"Service",socialprofile:"Social Profile",objecttype_socialprofile:"Social Profile",kbdocumentation:"Knowledge Document",objecttype_kbdocumentation:"Knowledge Document",kbtechnicalarticle:"Technical Documentation",objecttype_kbtechnicalarticle:"Technical Documentation",kbsolution:"Solution",objecttype_kbsolution:"Solution",kbknowledgearticle:"Knowledge Article",objecttype_kbknowledgearticle:"Knowledge Article",kbattachment:"Attachment",objecttype_kbattachment:"Attachment",kbarticle:"Article",objecttype_kbarticle:"Article",kbarticlecomment:"Article Comment",objecttype_kbarticlecomment:"Article Comment",knowledgearticle:"Knowledge Article",objecttype_knowledgearticle:"Knowledge Article",topic:"Topic",objecttype_topic:"Topic",dashboard:"Dashboard",objecttype_dashboard:"Dashboard",contentversion:"Document",objecttype_contentversion:"Document",collaborationgroup:"Collaboration group",objecttype_collaborationgroup:"Collaboration group",phonecall:"Phone call",objecttype_phonecall:"Phone call",appointment:"Appointment",objecttype_appointment:"Appointment",sn_hr_core_case:"HR Case",filetype_sn_hr_core_case:"HR Case",sc_cat_item:"Catalog Item",filetype_sc_cat_item:"Catalog Item",sn_customerservice_case:"Case",filetype_sn_customerservice_case:"Case",kb_social_qa_answer:"Answer",filetype_kb_social_qa_answer:"Answer",kb_social_qa_question:"Question",filetype_kb_social_qa_question:"Question",kb_social_qa_comment:"Comment",filetype_kb_social_qa_comment:"Comment",filetype_incident:"Incident",kb_knowledge:"Knowledge Article",filetype_kb_knowledge:"Knowledge Article",spportal:"Portal",filetype_spportal:"Portal",spsite:"SharePoint Site",filetype_spsite:"SharePoint Site",spuserprofile:"SharePoint User",filetype_spuserprofile:"SharePoint User",sparea:"Area",filetype_sparea:"Area",spannouncement:"Announcement",filetype_spannouncement:"Announcement",spannouncementlist:"Announcements",filetype_spannouncementlist:"Announcements",spcontact:"Contact",filetype_spcontact:"Contact",spcontactlist:"Contacts",filetype_spcontactlist:"Contacts",spcustomlist:"Custom Lists",filetype_spcustomlist:"Custom Lists",spdiscussionboard:"Discussion Board",filetype_spdiscussionboard:"Discussion Board",spdiscussionboardlist:"Discussion Boards",filetype_spdiscussionboardlist:"Discussion Boards",spdocumentlibrarylist:"Document Library",filetype_spdocumentlibrarylist:"Document Library",spevent:"Event",filetype_spevent:"Event",speventlist:"Events",filetype_speventlist:"Events",spformlibrarylist:"Form Library",filetype_spformlibrarylist:"Form Library",spissue:"Issue",filetype_spissue:"Issue",spissuelist:"Issues",filetype_spissuelist:"Issues",splink:"Link",filetype_splink:"Link",splinklist:"Links",filetype_splinklist:"Links",sppicturelibrarylist:"Picture Library",filetype_sppicturelibrarylist:"Picture Library",spsurvey:"Survey",filetype_spsurvey:"Survey",spsurveylist:"Surveys",filetype_spsurveylist:"Surveys",sptask:"Task",filetype_sptask:"Task",sptasklist:"Tasks",filetype_sptasklist:"Tasks",spagenda:"Agenda",filetype_spagenda:"Agenda",spagendalist:"Agendas",filetype_spagendalist:"Agendas",spattendee:"Attendee",filetype_spattendee:"Attendee",spattendeelist:"Attendees",filetype_spattendeelist:"Attendees",spcustomgridlist:"Custom Grids",filetype_spcustomgridlist:"Custom Grids",spdecision:"Decision",filetype_spdecision:"Decision",spdecisionlist:"Decisions",filetype_spdecisionlist:"Decisions",spobjective:"Objective",filetype_spobjective:"Objective",spobjectivelist:"Objectives",filetype_spobjectivelist:"Objectives",sptextbox:"Textbox",filetype_sptextbox:"Textbox",sptextboxlist:"Textbox list",filetype_sptextboxlist:"Textbox list",spthingstobring:"Thing To Bring",filetype_spthingstobring:"Thing To Bring",spthingstobringlist:"Things To Bring",filetype_spthingstobringlist:"Things To Bring",sparealisting:"Area Listing",filetype_sparealisting:"Area Listing",spmeetingserie:"Meeting series",filetype_spmeetingserie:"Meeting series",spmeetingserielist:"Meeting Series List",filetype_spmeetingserielist:"Meeting Series List",spsitedirectory:"Site Directory Item",filetype_spsitedirectory:"Site Directory Item",spsitedirectorylist:"Site Directory",filetype_spsitedirectorylist:"Site Directory",spdatasource:"Data Source",filetype_spdatasource:"Data Source",spdatasourcelist:"Data Source List",filetype_spdatasourcelist:"Data Source List",splisttemplatecataloglist:"List Template Gallery",filetype_splisttemplatecataloglist:"List Template Gallery",spwebpartcataloglist:"WebPart Gallery",filetype_spwebpartcataloglist:"WebPart Gallery",spwebtemplatecataloglist:"Site Template Gallery",filetype_spwebtemplatecataloglist:"Site Template Gallery",spworkspacepagelist:"Workspace Pages",filetype_spworkspacepagelist:"Workspace Pages",spunknownlist:"Custom List",filetype_spunknownlist:"Custom List",spadministratortask:"Administrator Task",filetype_spadministratortask:"Administrator Task",spadministratortasklist:"Administrator Tasks",filetype_spadministratortasklist:"Administrator Tasks",spareadocumentlibrarylist:"Area Document Library",filetype_spareadocumentlibrarylist:"Area Document Library",spblogcategory:"Blog Category",filetype_spblogcategory:"Blog Category",spblogcategorylist:"Blog Categories",filetype_spblogcategorylist:"Blog Categories",spblogcomment:"Blog Comment",filetype_spblogcomment:"Blog Comment",spblogcommentlist:"Blog Comments",filetype_spblogcommentlist:"Blog Comments",spblogpost:"Blog Post",filetype_spblogpost:"Blog Post",spblogpostlist:"Blog Posts",filetype_spblogpostlist:"Blog Posts",spdataconnectionlibrarylist:"Data Connection Library",filetype_spdataconnectionlibrarylist:"Data Connection Library",spdistributiongroup:"Distribution Group",filetype_spdistributiongroup:"Distribution Group",spdistributiongrouplist:"Distribution Groups",filetype_spdistributiongrouplist:"Distribution Groups",spipfslist:"InfoPath Forms Servers",filetype_spipfslist:"InfoPath Forms Servers",spkeyperformanceindicator:"Key Performance Indicator",filetype_spkeyperformanceindicator:"Key Performance Indicator",spkeyperformanceindicatorlist:"Key Performance Indicators",filetype_spkeyperformanceindicatorlist:"Key Performance Indicators",splanguagesandtranslator:"Languages and Translator",filetype_splanguagesandtranslator:"Languages and Translator",splanguagesandtranslatorlist:"Languages and Translators",filetype_splanguagesandtranslatorlist:"Languages and Translators",spmasterpagescataloglist:"Master Page Gallery",filetype_spmasterpagescataloglist:"Master Page Gallery",spnocodeworkflowlibrarylist:"No-code Workflow Libraries",filetype_spnocodeworkflowlibrarylist:"No-code Workflow Libraries",spprojecttask:"Project Task",filetype_spprojecttask:"Project Task",spprojecttasklist:"Project Tasks",filetype_spprojecttasklist:"Project Tasks",sppublishingpageslibrarylist:"Page Library",filetype_sppublishingpageslibrarylist:"Page Library",spreportdocumentlibrarylist:"Report Document Library",filetype_spreportdocumentlibrarylist:"Report Document Library",spreportlibrarylist:"Report Library",filetype_spreportlibrarylist:"Report Library",spslidelibrarylist:"Slide Library",filetype_spslidelibrarylist:"Slide Library",sptab:"Tabs",filetype_sptab:"Tabs",sptablist:"Tabs List",filetype_sptablist:"Tabs List",sptranslationmanagementlibrarylist:"Translation Management Library",filetype_sptranslationmanagementlibrarylist:"Translation Management Library",spuserinformation:"User Information",filetype_spuserinformation:"User Information",spuserinformationlist:"User Information List",filetype_spuserinformationlist:"User Information List",spwikipagelibrarylist:"Wiki Page Library",filetype_spwikipagelibrarylist:"Wiki Page Library",spworkflowhistory:"Workflow History",filetype_spworkflowhistory:"Workflow History",spworkflowhistorylist:"Workflow History List",filetype_spworkflowhistorylist:"Workflow History List",spworkflowprocess:"Custom Workflow Process",filetype_spworkflowprocess:"Custom Workflow Process",spworkflowprocesslist:"Custom Workflow Processes",filetype_spworkflowprocesslist:"Custom Workflow Processes",sppublishingimageslibrarylist:"Publishing Image Library",filetype_sppublishingimageslibrarylist:"Publishing Image Library",spcirculation:"Circulation",filetype_spcirculation:"Circulation",spcirculationlist:"Circulations",filetype_spcirculationlist:"Circulations",spdashboardslibrarylist:"Dashboards Library",filetype_spdashboardslibrarylist:"Dashboards Library",spdataconnectionforperformancepointlibrarylist:"PerformancePoint Data Connection Library",filetype_spdataconnectionforperformancepointlibrarylist:"PerformancePoint Data Connection Library",sphealthreport:"Health Report",filetype_sphealthreport:"Health Report",sphealthreportlist:"Health Reports",filetype_sphealthreportlist:"Health Reports",sphealthrule:"Health Rule",filetype_sphealthrule:"Health Rule",sphealthrulelist:"Health Rules",filetype_sphealthrulelist:"Health Rules",spimedictionary:"IME Dictionary",filetype_spimedictionary:"IME Dictionary",spimedictionarylist:"IME Dictionaries",filetype_spimedictionarylist:"IME Dictionaries",spperformancepointcontent:"PerformancePoint Content",filetype_spperformancepointcontent:"PerformancePoint Content",spperformancepointcontentlist:"PerformancePoint Contents",filetype_spperformancepointcontentlist:"PerformancePoint Contents",spphonecallmemo:"Phone Call Memo",filetype_spphonecallmemo:"Phone Call Memo",spphonecallmemolist:"Phone Call Memos",filetype_spphonecallmemolist:"Phone Call Memos",sprecordlibrarylist:"Record Library",filetype_sprecordlibrarylist:"Record Library",spresource:"Resource",filetype_spresource:"Resource",spresourcelist:"Resources",filetype_spresourcelist:"Resources",spprocessdiagramslibrarylist:"Process Diagram Library",filetype_spprocessdiagramslibrarylist:"Process Diagram Library",spsitethemeslibrarylist:"Site Theme Library",filetype_spsitethemeslibrarylist:"Site Theme Library",spsolutionslibrarylist:"Solution Library",filetype_spsolutionslibrarylist:"Solution Library",spwfpublibrarylist:"WFPUB Library",filetype_spwfpublibrarylist:"WFPUB Library",spwhereabout:"Whereabout",filetype_spwhereabout:"Whereabout",spwhereaboutlist:"Whereabouts",filetype_spwhereaboutlist:"Whereabouts",spdocumentlink:"Link to a Document",filetype_spdocumentlink:"Link to a Document",spdocumentset:"Document Set",filetype_spdocumentset:"Document Set",spmicrofeedpost:"Microfeed Post",filetype_spmicrofeedpost:"Microfeed Post",spmicrofeedlist:"Microfeed",filetype_spmicrofeedlist:"Microfeed",splistfolder:"List Folder",filetype_splistfolder:"List Folder",slackmessage:"Slack Message",filetype_slackmessage:"Slack Message",slackchannel:"Slack Channel",filetype_slackchannel:"Slack Channel",slackfile:"Slack File",filetype_slackfile:"Slack File",slackuser:"Slack User",filetype_slackuser:"Slack User",youtubevideo:"YouTube video",filetype_youtubevideo:"YouTube video",youtubeplaylistitem:"YouTube playlist item",filetype_youtubeplaylistitem:"YouTube playlist item",youtubeplaylist:"YouTube playlist",filetype_youtubeplaylist:"YouTube playlist",Unknown:"Unknown",And:"AND",Authenticating:"Authenticating {0}...",Clear:"Clear {0}",CompleteQuery:"Complete query",Exclude:"Exclude {0}",EnterTag:"Add Tag",Next:"Next",Last:"Last",Link:"Link",Or:"OR",Previous:"Previous",QueryDidntMatchAnyDocuments:"Your query did not match any documents.",QueryException:"Your query has an error: {0}.",Me:"Me",Remove:"Remove",Search:"Search",SearchFor:"Search for {0}",SubmitSearch:"Submit search",ShareQuery:"Share Query",Preferences:"Preferences",LinkOpeningSettings:"Link opening settings",Reauthenticate:"Reauthenticate {0}",ResultsFilteringExpression:"Result filtering expressions",FiltersInYourPreferences:"Filters in your preferences",Create:"Create",SearchIn:"Search in {0}",Seconds:"in {0} second<pl>s<\/pl>",ShowingResultsOf:"Result<pl>s<\/pl> {0}<pl>-{1}<\/pl> of {2}",ShowingResultsOfWithQuery:"Result<pl>s<\/pl> {0}<pl>-{1}<\/pl> of {2} for {3}",SwitchTo:"Switch to {0}",Unexclude:"Remove exclusion filter on {0}",ClearAllFilters:"Clear All Filters",SkipLogin:"Skip login",LoginInProgress:"Login in progress, please wait ...",Login:"Log In",GetStarted:"Get Started",More:"More",NMore:"{0} more...",Less:"Fewer",Settings:"Settings",Score:"Score",ScoreDescription:"The score is computed from the number of occurrences as well as from the position in the result set.",Occurrences:"Occurrences",OccurrencesDescription:"Sort by number of occurrences, with values having the highest number appearing first.",Label:"Label",Of:"of",LabelDescription:"Sort alphabetically on the field values.",Value:"Value",ValueDescription:"Sort on the values of the first computed field",AlphaAscending:"Value Ascending",AlphaDescending:"Value Descending",ChiSquare:"Chi Square",Nosort:"No Sort",NosortDescription:"Do not sort the values. The values will be returned in a random order.",RelativeFrequency:"Relative Frequency",RelativeFrequencyDescription:"Sort based on the relative frequency of values. Less common values will appear higher.",DateDistribution:"Date distribution",Custom:"Custom",CustomDescription:"Sort based on a custom order",ComputedField:"Computed Field",Ascending:"Ascending",Descending:"Descending",noResultFor:"No results for {0}",noResult:"No results",autoCorrectedQueryTo:"Query was automatically corrected to {0}",didYouMean:"Did you mean: {0}",SuggestedResults:"Suggested Results",SuggestedQueries:"Suggested Queries",MostRelevantItems:"Most relevant items:",AllItems:"All items:",ShowLess:"Show less",ShowMore:"Show more",HideFacet:"Hide Facet",ShowFacet:"Show Facet",AndOthers:"and {0} other<pl>s<\/pl>",Others:"{0} other<pl>s<\/pl>",MostRelevantPosts:"Most Relevant Posts:",CompleteThread:"Complete Thread:",ShowCompleteThread:"Show Complete Thread",ShowOnlyTopMatchingPosts:"Show Only Top Matching Posts",MostRelevantReplies:"Most Relevant Replies:",AllConversation:"All Conversation:",ShowAllConversation:"Show All Conversation",ShowAllReplies:"Show All Replies",ShowOnlyMostRelevantReplies:"Show Only Most Relevant Replies",Close:"Close",Open:"Open",OpenInOutlookWhenPossible:"Open in Outlook (when possible)",AlwaysOpenInNewWindow:"Always open results in new window",Quickview:"Quick View",NoQuickview:"The Quick View for this document is unavailable",ErrorReport:"Error Report",OopsError:"Something went wrong.",ProblemPersists:"If the problem persists contact the administrator.",GoBack:"Go Back",Reset:"Reset",Retry:"Retry",MoreInfo:"More Information",Username:"Username",Password:"Password",PostedBy:"Posted by",CannotConnect:"Cannot connect to the server address.",BadUserPass:"Password does not match with username.",PleaseEnterYourCredentials:"Please enter your credentials for {0}.",PleaseEnterYourSearchPage:"Please enter your search page URL",Collapse:"Collapse",Collapsable:"Collapsible",Expand:"Expand",CollapseFacet:"Collapse {0} facet",ExpandFacet:"Expand {0} facet",ShowLessFacetResults:"Show fewer results for {0} facet",ShowMoreFacetResults:"Show more results for {0} facet",ShowLessCategoryResults:"Show fewer results for the {0} category",ShowMoreCategoryResults:"Show more results for the {0} category",ShowLessHierarchicalResults:"Show fewer results for the {0} facet",ShowMoreHierarchicalResults:"Show more results for the {0} facet",SearchFacetResults:"Search for values in {0} facet",Today:"Today",Yesterday:"Yesterday",Tomorrow:"Tomorrow",Duration:"Duration: {0}",IndexDuration:"Index Duration: {0}",ProxyDuration:"Proxy Duration: {0}",ClientDuration:"Client Duration: {0}",Unavailable:"Unavailable",Reply:"Reply",ReplyAll:"Reply All",Forward:"Forward",From:"From",Caption:"Caption",Expression:"Expression",Tab:"Tab",Tabs:"Tabs",EnterExpressionName:"Enter expression name",EnterExpressionToFilterWith:"Enter expression to filter results with",SelectTab:"Select Tab",SelectAll:"Select All",PageUrl:"Search page URL",ErrorSavingToDevice:"Error while saving the information to your device",ErrorReadingFromDevice:"Error while reading the information from your device",AppIntro:"Speak with a product specialist who can answer your questions about Coveo and help you decide which Coveo solution is right for you. Or, try a live demo !",TryDemo:"Try the demo",ContactUs:"Contact us",NewToCoveo:"New to Coveo?",LetUsHelpGetStarted:"Let us help you get started",LikesThis:"{0} like<sn>s<\/sn> this.",CannotConnectSearchPage:"Cannot connect to your search page",AreYouSureDeleteFilter:"Are you sure you want to delete the filter {0} with the expression {1}",OnlineHelp:"Online Help",Done:"Done",SaveFacetState:"Save this facet state",ClearFacetState:"Clear facet state",DisplayingTheOnlyMessage:"Displaying the only message in this conversation",NoNetworkConnection:"No network connection",UnknownConnection:"Unknown connection",EthernetConnection:"Ethernet connection",WiFi:"WiFi connection",CELL:"Cellular connection",CELL_2G:"Cellular 2G connection",CELL_3G:"Cellular 3G connection",CELL_4G:"Cellular 4G connection",Relevance:"Relevance",Date:"Date",Amount:"Amount",QueryExceptionNoException:"No exception",QueryExceptionInvalidSyntax:"Invalid syntax",QueryExceptionInvalidCustomField:"Invalid custom field",QueryExceptionInvalidDate:"Invalid date",QueryExceptionInvalidExactPhrase:"Invalid exact phrase",QueryExceptionInvalidDateOp:"Invalid date operator",QueryExceptionInvalidNear:"Invalid NEAR operator",QueryExceptionInvalidWeightedNear:"Invalid weighted NEAR",QueryExceptionInvalidTerm:"Invalid term",QueryExceptionTooManyTerms:"Too many terms",QueryExceptionWildcardTooGeneral:"Wildcard too general",QueryExceptionInvalidSortField:"Invalid sort field",QueryExceptionInvalidSmallStringOp:"Invalid small string operator",QueryExceptionRequestedResultsMax:"Requested results maximum",QueryExceptionAggregatedMirrorDead:"Aggregated mirror is offline",QueryExceptionAggregatedMirrorQueryTimeOut:"Aggregated mirror query timeout",QueryExceptionAggregatedMirrorInvalidBuildNumber:"Aggregated mirror invalid build number",QueryExceptionAggregatedMirrorCannotConnect:"Aggregated mirror cannot connect",QueryExceptionNotEnoughLeadingCharsWildcard:"Not enough leading character wildcard",QueryExceptionSecurityInverterNotFound:"Security inverter not found",QueryExceptionSecurityInverterAccessDenied:"Security inverter access denied",QueryExceptionAggregatedMirrorCannotImpersonate:"Aggregated mirror cannot impersonate",QueryExceptionUnexpected:"Unexpected",QueryExceptionAccessDenied:"Access denied",QueryExceptionSuperUserTokenInvalid:"Super user token invalid",QueryExceptionSuperUserTokenExpired:"Super user token is expired",QueryExceptionLicenseQueriesExpired:"Queries license expired",QueryExceptionLicenseSuperUserTokenNotSupported:"License super user token not supported",QueryExceptionInvalidSession:"Invalid session",QueryExceptionInvalidDocument:"Invalid document",QueryExceptionSearchDisabled:"Search disabled",FileType:"File type",ShowAttachment:"Show attachment",OnFeed:"on {0}'s feed.",Author:"Author",NoTitle:"No title",CurrentSelections:"Current selections",AllContent:"All content",CancelLastAction:"Cancel last action",SearchTips:"Search tips",CheckSpelling:"Check the spelling of your keywords.",TryUsingFewerKeywords:"Try using fewer, different or more general keywords.",SelectFewerFilters:"Select fewer filters to broaden your search.",Document:"Document",Time:"Time",StartDate:"Start Date",StartTime:"Start Time",DurationTitle:"Duration",UserQuery:"User query",ShowUserActions:"Show User Actions",NoData:"No data available",EventType:"Event type",GoToFullSearch:"Full search",GoToEdition:"Customize Panel",RemoveContext:"Remove context",BoxAttachToCase:"Attach to case",AttachToCase:"Attach to case",Attach:"Attach",Attached:"Attached",Detach:"Detach",Details:"Details",AdditionalFilters:"Additional filters",SelectNonContextualSearch:"Remove the context from the current record to broaden your search",CopyPasteToSupport:"Copy paste this message to the Coveo Support team for more information.",FollowQueryDescription:"Alert me for changes to the search results of this query.",SearchAlerts_Panel:"Manage Alerts",SearchAlerts_PanelDescription:"View and manage your search alerts.",SearchAlerts_PanelNoSearchAlerts:"You have no subscriptions.",SearchAlerts_Fail:"The Search Alerts service is currently unavailable.",SearchAlerts_Type:"Type",SearchAlerts_Content:"Content",SearchAlerts_Actions:"Action",EmptyQuery:"<empty>",SearchAlerts_Type_followQuery:"Query",SearchAlerts_Type_followDocument:"Item",SearchAlerts_unFollowing:"Stop Following",SearchAlerts_follow:"Follow",SearchAlerts_followed:"Followed",SearchAlerts_followQuery:"Follow Query",Subscription_StopFollowingQuery:"Stop Following Query",SearchAlerts_Frequency:"When",SubscriptionsManageSubscriptions:"Manage Alerts",SubscriptionsMessageFollowQuery:"You will receive alerts when the query <b>{0}<\/b> returns new or updated items.",SubscriptionsMessageFollow:"You will receive alerts for changes to the item <b>{0}<\/b>.",Expiration:"Expiration",Monthly:"Monthly",Daily:"Daily",Monday:"Monday",Tuesday:"Tuesday",Wednesday:"Wednesday",Thursday:"Thursday",Friday:"Friday",Saturday:"Saturday",Sunday:"Sunday",NextDay:"Next {0}",LastDay:"Last {0}",StartTypingCaseForSuggestions:"Describe your problem to see possible solutions",ExportToExcel:"Export to Excel",ExportToExcelDescription:"Export search results to Excel",CaseCreationNoResults:"No recommended solutions were found",SortBy:"Sort by",BoxCreateArticle:"Create Article",Facets:"Facets",AdvancedSearch:"Advanced Search",Keywords:"Keywords",AllTheseWords:"All these words",ExactPhrase:"This exact phrase",AnyOfTheseWords:"Any of these words",NoneOfTheseWords:"None of these words",Anytime:"Anytime",InTheLast:"In the last",Days:"days",Months:"months",Month:"Month",Year:"Year",Between:"Between",Language:"Language",Size:"Size",AtLeast:"at least",AtMost:"at most",Contains:"contains",DoesNotContain:"does not contain",Matches:"matches",Bytes:"bytes",card:"Card",table:"Table",ResultLinks:"Result links",EnableQuerySyntax:"Enable query syntax",On:"On",Off:"Off",Automatic:"Automatic",ResultsPerPage:"Results per page",PreviousMonth:"Previous month",NextMonth:"Next month",Title:"Title",FiltersInAdvancedSearch:"Filters in Advanced Search",NoEndpoints:"{0} has no registered endpoints.",InvalidToken:"The token used is invalid.",AddSources:"You will need to add sources in your index, or wait for the created sources to finish indexing.",TryAgain:"Please try again.",CoveoOnlineHelp:"Coveo Online Help",CannotAccess:"{0} cannot be accessed.",CoveoOrganization:"Coveo Organization",SearchAPIDuration:"Search API Duration: {0}",LastUpdated:"Last updated",AllDates:"All dates",WithinLastDay:"Within last day",WithinLastWeek:"Within last week",WithinLastMonth:"Within last month",WithinLastYear:"Within last year",RelevanceInspector:"Relevance Inspector",KeywordInCategory:'{0} <span class="coveo-omnibox-suggestion-category">in {1}<\/span>',Result:"Result",ResultCount:"{0} result<pl>s<\/pl>",ShowingResults:"{0} result<pl>s<\/pl>",ShowingResultsWithQuery:"{0} result<pl>s<\/pl> for {1}",NumberOfVideos:"Number of videos",AllCategories:"All Categories",Recommended:"Recommended",Featured:"Featured",CoveoHomePage:"Coveo Home page",SizeValue:"Size value",UnitMeasurement:"Unit of measurement",Toggle:"Toggle",FilterOn:"Filter on {0}",RemoveFilterOn:"Remove inclusion filter on {0}",Enter:"Enter",InsertAQuery:"Insert a query",PressEnterToSend:"Press enter to send",SortResultsBy:"Sort results by {0}",SortResultsByAscending:"Sort by {0} in ascending order",SortResultsByDescending:"Sort by {0} in descending order",DisplayResultsAs:"Display results as {0}",FacetTitle:"{0} facet",IncludeValueWithResultCount:"Inclusion filter on {0}; {1}",ExcludeValueWithResultCount:"Exclusion filter on {0}; {1}",PageNumber:"Page {0}",DisplayResultsPerPage:"Display {0} results per page",GroupByAndFacetRequestsCannotCoexist:"The query is invalid because it contains both Group By and Facet requests. Ensure that the search interface does not initialize DynamicFacet components alongside Facet components (or alongside any component extending the Facet component, such as FacetRange or FacetSlider).",MustContain:"Must contain:",Missing:"Missing:",Filters:"Filters",FiltersDropdown:"Filters dropdown",OpenFiltersDropdown:"Open the filters dropdown",CloseFiltersDropdown:"Close the filters dropdown",NoValuesFound:"No values found.",To:"to",DeselectFilterValues:"Deselect all active filters on {0} field",Rated:"Rated {0} out of {1} star<pl>s<\/pl>",RatedBy:"by {0} user<pl>s<\/pl>",NoRatings:"No ratings",Pagination:"Pagination",ThumbnailOf:'Thumbnail of "{0}"',CollapsedUriParts:"Collapsed URI parts",HierarchicalFacetValueIndentedUnder:"{0} under {1}",HierarchicalFacetValuePathPrefix:"in",UsefulnessFeedbackRequest:"Was this useful?",UsefulnessFeedbackThankYou:"Thanks for your feedback!",UsefulnessFeedbackExplainWhy:"Explain why",UsefulnessFeedbackExplainWhyImperative:"Explain why",UsefulnessFeedbackDoesNotAnswer:"This didn't answer my question at all",UsefulnessFeedbackPartiallyAnswers:"This only partially answered my question",UsefulnessFeedbackWasNotAQuestion:"My request wasn't meant to be perceived as a question",Yes:"Yes",No:"No",Other:"Other",Send:"Send",Edit:"Edit",Delete:"Delete",Save:"Save",UsefulnessFeedbackReason:"Reason",AnswerSnippet:"Answer to your question",AnswerSpecificSnippet:'Answer to "{0}"',SuggestedQuestions:"People also ask",ExpandQuestionAnswer:'View answer for "{0}"',MoreValuesAvailable:"additional values are available",Breadcrumb:"Active filters",OrganizationIsPaused:"Your Coveo organization is paused due to inactivity and search is currently unavailable.",OrganizationWillResume:"Your organization is resuming and will be available shortly.",UpdatingResults:"Updating results",QuerySuggestionsAvailable:"{0} search suggestion<pl>s are<\/pl> available.",QuerySuggestionsUnavailable:"There are no search suggestions."},t=String.locales||(String.locales={});t.en=i(t.en,n);String.toLocaleString.call(this,{en:n});String.locale="en";String.defaultLocale="en";Globalize.culture("en")};!function(n,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("coveo-search-ui")):"function"==typeof define&&define.amd?define(["coveo-search-ui"],t):"object"==typeof exports?exports.CoveoForSitecore=t(require("coveo-search-ui")):n.CoveoForSitecore=t(n.Coveo)}(window,function(n){return function(n){function t(r){if(i[r])return i[r].exports;var u=i[r]={i:r,l:!1,exports:{}};return n[r].call(u.exports,u,u.exports,t),u.l=!0,u.exports}var i={};return t.m=n,t.c=i,t.d=function(n,i,r){t.o(n,i)||Object.defineProperty(n,i,{enumerable:!0,get:r})},t.r=function(n){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});Object.defineProperty(n,"__esModule",{value:!0})},t.t=function(n,i){var r,u;if((1&i&&(n=t(n)),8&i)||4&i&&"object"==typeof n&&n&&n.__esModule)return n;if(r=Object.create(null),t.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:n}),2&i&&"string"!=typeof n)for(u in n)t.d(r,u,function(t){return n[t]}.bind(null,u));return r},t.n=function(n){var i=n&&n.__esModule?function(){return n.default}:function(){return n};return t.d(i,"a",i),i},t.o=function(n,t){return Object.prototype.hasOwnProperty.call(n,t)},t.p="",t(t.s=81)}([function(t){t.exports=n},function(n,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.SitecoreContextEvents=void 0;t.SitecoreContextEvents=function(){function n(){}return n.onSitecoreContextInitialization="onSitecoreContextInitialization",n}()},function(n,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.Context=void 0;var r=i(31),u=i(6),f=i(0),e=function(){function n(){}return n.configureContext=function(n){if(null==n)throw Error("You must execute `configureContext` with an HTML element.");var t=f.ComponentOptions.initComponentOptions(n,u.CoveoForSitecoreContext);this.initializeWithContextOptions(n,t)},n.initializeWithContextOptions=function(n,t){var i=new r.ContextInitializer,u=i.createFieldsHandler({externalFields:t.scExternalFields,sourceSpecificFields:t.scSourceSpecificFields,preferSourceSpecificFields:t.scPreferSourceSpecificFields,prefix:t.scFieldPrefix,suffix:t.scFieldSuffix}),f=i.createLabelsHandler({labels:t.scLabels}),e=t.scIndexSourceName;i.initializePrebinding({fieldsHandler:u,context:t});i.initializeUnderscoreFieldsHelpers(u);i.initializeUnderscoreLabelsHelpers(f);i.initializeUnderscoreContextHelpers(e);i.initializeContextElement(n);this.fields=u;this.labels=f;this.element=n},n}();t.Context=e},function(n,t){"use strict";function i(n){n.removeAttribute("id");for(var i=n.querySelectorAll("*[id]"),r=i.length,t=0;t<r;t++)i.item(t).removeAttribute("id");return n}Object.defineProperty(t,"__esModule",{value:!0});t.removeAllIDAttributes=t.cloneElementSafelyForAccessibility=t.nodeListToArray=void 0;t.nodeListToArray=function(n){for(var i=[],t=0,r=n.length;t<r;t++)i.push(n.item(t));return i};t.cloneElementSafelyForAccessibility=function(n){return i(n.cloneNode(!0))};t.removeAllIDAttributes=i},function(n,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.Prebinding=void 0;var r=i(35),u=i(36);t.Prebinding=function(){function n(){}return n.registerPrebindHelper=function(n,t){this.processor.registerPrebindHelper(n,t)},n.getHelper=function(n){return this.processor.getHelper(n)},n.applyPrebindingOnElement=function(n){this.processor.canApplyPrebind(n)&&this.processor.hasNotAppliedPrebind(n)&&this.processor.applyToElement(n)},n.applyPreprocessingToElements=function(n){return u.adjustDOMElements(n),n.querySelectorAll("*")},n.applyPrebindingOnChildren=function(n){var t=this,i=this.applyPreprocessingToElements(n);this.nodeListToArray(i).map(function(n){return n}).filter(function(n){return t.processor.canApplyPrebind(n)}).filter(function(n){return t.processor.hasNotAppliedPrebind(n)}).forEach(function(n){return t.processor.applyToElement(n)})},n.nodeListToArray=function(n){for(var i=[],t=0,r=n.length;t<r;t++)i.push(n[t]);return i},n.processor=new r.PrebindResolver,n}()},function(n,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.SitecoreExpressionEvents=void 0;t.SitecoreExpressionEvents=function(){function n(){}return n.onBuildingSitecoreExternalContent="onBuildingSitecoreExternalContent",n.onBuildingLocalSitecoreInstanceExpression="onBuildingLocalSitecoreInstanceExpression",n}()},function(n,t,i){"use strict";var u,f=this&&this.__extends||(u=function(n,t){return(u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");u(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)});Object.defineProperty(t,"__esModule",{value:!0});t.CoveoForSitecoreContext=void 0;var r=i(0),e=i(1),o=t.CoveoForSitecoreContext=function(n){function t(i,u,f){var e=n.call(this,i,t.ID,f)||this;return e.element=i,e.options=u,e.bindings=f,e.options=r.ComponentOptions.initComponentOptions(i,t,u),e.bind.onRootElement(r.InitializationEvents.afterComponentsInitialization,e.afterComponentsInitialization),e.bind.onRootElement(r.QueryEvents.doneBuildingQuery,e.doneBuildingQuery),e.bind.onRootElement(r.OmniboxEvents.buildingQuerySuggest,e.buildingQuerySuggest),e}return f(t,n),t.prototype.doneBuildingQuery=function(n){this.hasDefaultPipelineNameSet()&&this.queryBuilderUsesDefaultPipeline(n.queryBuilder)&&(n.queryBuilder.pipeline=this.options.scDefaultPipelineName)},t.prototype.buildingQuerySuggest=function(n){this.hasDefaultPipelineNameSet()&&this.querySuggestUsesDefaultPipeline(n.payload)&&(n.payload.pipeline=this.options.scDefaultPipelineName)},t.prototype.hasDefaultPipelineNameSet=function(){return""!==this.options.scDefaultPipelineName},t.prototype.queryBuilderUsesDefaultPipeline=function(n){return void 0===n.pipeline},t.prototype.querySuggestUsesDefaultPipeline=function(n){return void 0===n.pipeline},t.prototype.afterComponentsInitialization=function(){var n={sitecoreItemId:this.options.scItemId,sitecoreItemUri:this.options.scItemUri,sitecorePageName:this.options.scPageName,shouldHaveAnalyticsComponent:this.options.scShouldHaveAnalyticsComponent,analyticsEnabled:this.options.scAnalyticsEnabled,indexSourceName:this.options.scIndexSourceName,currentLanguage:this.options.scCurrentLanguage,languageFieldName:this.options.scLanguageFieldName,latestVersionFieldName:this.options.scLatestVersionFieldName,isInExperienceEditor:this.options.scIsInExperienceEditor,sitecorePageFullPath:this.options.scPageNameFullPath,siteName:this.options.scSiteName,restEndpointUri:this.options.scRestEndpointUri,analyticsEndpointUri:this.options.scAnalyticsEndpointUri};this.bind.trigger(this.element,e.SitecoreContextEvents.onSitecoreContextInitialization,n)},t.ID="ForSitecoreContext",t.options={scItemId:r.ComponentOptions.buildStringOption(),scItemUri:r.ComponentOptions.buildStringOption(),scLanguageFieldName:r.ComponentOptions.buildStringOption(),scLatestVersionFieldName:r.ComponentOptions.buildStringOption(),scCurrentLanguage:r.ComponentOptions.buildStringOption(),scRestEndpointUri:r.ComponentOptions.buildStringOption(),scAnalyticsEndpointUri:r.ComponentOptions.buildStringOption(),scLabels:r.ComponentOptions.buildJsonOption(),scPageName:r.ComponentOptions.buildStringOption(),scDefaultPipelineName:r.ComponentOptions.buildStringOption(),scShouldHaveAnalyticsComponent:r.ComponentOptions.buildBooleanOption(),scAnalyticsEnabled:r.ComponentOptions.buildBooleanOption(),scIsUserAnonymous:r.ComponentOptions.buildBooleanOption(),scFieldPrefix:r.ComponentOptions.buildStringOption(),scFieldSuffix:r.ComponentOptions.buildStringOption(),scExternalFields:r.ComponentOptions.buildJsonOption(),scSourceSpecificFields:r.ComponentOptions.buildJsonOption(),scPreferSourceSpecificFields:r.ComponentOptions.buildBooleanOption(),scIndexSourceName:r.ComponentOptions.buildStringOption(),scIsInExperienceEditor:r.ComponentOptions.buildBooleanOption(),scMaximumAge:r.ComponentOptions.buildNumberOption(),scPageNameFullPath:r.ComponentOptions.buildStringOption(),scSiteName:r.ComponentOptions.buildStringOption()},t}(r.Component);r.Initialization.registerAutoCreateComponent(o)},function(n,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.LegacyFieldTypeResolver=void 0;var i=function(){function n(n){this.externalFields=this.parseExternalFields(n)}return n.prototype.parseExternalFields=function(n){var t=this;return n.map(function(n){return"string"==typeof n?{fieldName:n.toLowerCase(),shouldEscape:!1}:t.isExternalFieldConfig(n)?{fieldName:n.fieldName.toLowerCase(),shouldEscape:n.shouldEscape}:void console.error("Invalid external field '".concat(n,"'."))})},n.prototype.shouldEscapeFirstCharacter=function(){return!1},n.prototype.shouldEscapeSpecialCharacters=function(n){var t=this.externalFields.filter(function(t){return t.fieldName.toLowerCase()===n.toLowerCase()});return!(t.length>0)||t[0].shouldEscape},n.prototype.shouldDecorate=function(n){return!this.externalFields.some(function(t){return t.fieldName.toLowerCase()===n.toLowerCase()})},n.prototype.isExternalField=function(n){return this.externalFields.some(function(t){return t.fieldName.toLowerCase()===n.toLowerCase()})},n.prototype.isExternalFieldConfig=function(n){return void 0!==n&&void 0!==n.fieldName&&void 0!==n.shouldEscape},n}();t.LegacyFieldTypeResolver=i},function(n,t){"use strict";var f,i,r,u;Object.defineProperty(t,"__esModule",{value:!0});t.UseItemIdSelectorAsIs=t.ResolveIfSelector=t.ResolveIfItemIdInPage=t.ItemIdSelectorPrebind=void 0;f=function(){function n(){this.name="itemIdSelector";this.resolvers=[new r,new i,new u]}return n.prototype.getPrebind=function(){var n=this;return function(t,i){return n.getFirstValidResolver(t,i).getValue(t,i)}},n.prototype.getFirstValidResolver=function(n,t){var i,r;do{if(0===this.resolvers.length){r="Could not resolve the element using the current resolver. Ensure that a valid value is set.";throw console.error(r,{itemId:n,element:t}),r;}i=this.resolvers.shift()}while(!i.canResolve(n,t));return i},n}();t.ItemIdSelectorPrebind=f;i=function(){function n(){}return n.prototype.canResolve=function(n){return this.isItemDefined(n)&&this.isIdSelectorValid("#".concat(n))},n.prototype.getValue=function(n){return"#".concat(n)},n.prototype.isItemDefined=function(n){return!!n},n.prototype.isIdSelectorValid=function(n){return null!==document.querySelector(n)},n}();t.ResolveIfItemIdInPage=i;r=function(){function n(){}return n.prototype.canResolve=function(n){return!!n&&this.isStartingWithSelectorCharacter(n)},n.prototype.getValue=function(n){return n},n.prototype.isStartingWithSelectorCharacter=function(n){var t=n[0];return-1!==[".","#"].indexOf(t)},n}();t.ResolveIfSelector=r;u=function(){function n(){}return n.prototype.canResolve=function(){return!0},n.prototype.getValue=function(n){return n},n}();t.UseItemIdSelectorAsIs=u},function(n,t,i){"use strict";function r(n){return t.searchInterfaceInitializer.initSearchInterface(n)}function u(n){t.externalComponentInitializer.initializeExternalComponentSection(n)}Object.defineProperty(t,"__esModule",{value:!0});t.initHostedSearchPageInitializer=t.initExternalComponentsSectionForExperienceEditor=t.initExternalComponentsSection=t.initContextOnElement=t.initSearchboxIfStandalone=t.initializeSearchInterfaceForExperienceEditor=t.initSearchInterface=t.hostedSearchPageInitializer=t.externalComponentInitializer=t.searchboxInitializer=t.searchInterfaceInitializer=void 0;var f=i(49),e=i(50),o=i(51),s=i(13),h=i(52);t.searchInterfaceInitializer=new o.SearchInterfaceInitializer;t.searchboxInitializer=new e.SearchboxInitializer;t.externalComponentInitializer=new f.ExternalComponentInitializer;t.hostedSearchPageInitializer=new h.HostedSearchPageInitializer;t.initSearchInterface=r;t.initializeSearchInterfaceForExperienceEditor=function(n){return t.searchInterfaceInitializer.initializeExperienceEditorHooksForSearchInterface(n),r(n)};t.initSearchboxIfStandalone=function(n,i,r){return t.searchboxInitializer.initSearchboxIfStandalone(n,i,r)};t.initContextOnElement=function(n){s.ElementWithContextInitializer.initializeContextWithinElement(n)};t.initExternalComponentsSection=u;t.initExternalComponentsSectionForExperienceEditor=function(n){t.externalComponentInitializer.initializeExperienceEditorHooksForExternalComponentsSection(n);u(n)};t.initHostedSearchPageInitializer=function(n){t.hostedSearchPageInitializer.initializeSearchPage(n)}},function(n,t,i){"use strict";var o;Object.defineProperty(t,"__esModule",{value:!0});t.getInitializerInstance=t.SearchInterfaceComponentInitializer=void 0;var r=i(4),u=i(3),f=i(0),e=function(){function n(){}return n.prototype.loadComponentsForSearchInterface=function(n,t){var i=this;return r.Prebinding.applyPrebindingOnElement(t),r.Prebinding.applyPrebindingOnChildren(t),f.Initialization.automaticallyCreateComponentsInside(t,{bindings:n.getBindings(),options:{}}).initResult.then(function(){i.removeAllPlaceholdersWithinElement(t);n.queryController.executeQuery({ignoreWarningSearchEvent:!0})})},n.prototype.tryUnloadComponentsForSearchInterface=function(n,t){var i=this;u.nodeListToArray(t.getElementsByClassName("CoveoFacet")).forEach(function(t){var r=f.get(t,"CoveoFacet");r&&n.detachComponent("Facet",r);i.removeAllChildren(t)});u.nodeListToArray(t.getElementsByClassName("CoveoTab")).forEach(function(t){var r=f.get(t,"CoveoTab");r&&n.detachComponent("Tab",r);i.removeAllChildren(t)})},n.prototype.removeAllPlaceholdersWithinElement=function(n){var t=this;u.nodeListToArray(n.getElementsByClassName("coveo-during-initialization")).forEach(function(n){return t.removePlaceholders(n)})},n.prototype.removePlaceholders=function(n){n.classList.remove("coveo-during-initialization");n.classList.contains("CoveoFacet")&&this.removeFacetsPlaceholders(n)},n.prototype.removeFacetsPlaceholders=function(n){n.classList.remove("coveo-with-placeholder");this.removeAllChildren(n)},n.prototype.removeAllChildren=function(n){for(;n.firstChild;)n.removeChild(n.firstChild)},n.prototype.loadComponentsWithSearchInterfaceInitialization=function(n,t){r.Prebinding.applyPrebindingOnElement(t);r.Prebinding.applyPrebindingOnChildren(t);Coveo.options(n,{externalComponents:[t]})},n}();t.SearchInterfaceComponentInitializer=e;o=new e;t.getInitializerInstance=function(){return o}},function(n,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.getExperienceEditorInstance=t.SitecoreExperienceEditor=void 0;var r=i(3),u=new(t.SitecoreExperienceEditor=function(){function n(){this.isAfterFrameLoadedOverriden=!1;this.isAfterPersonalizationChangedOverriden=!1;this.isBeforeUnloadingChromeOverriden=!1;this.onAfterFrameLoadedCallbacks=[];this.onAfterPersonalizationChanged=[];this.onBeforeUnloadingChrome=[]}return n.prototype.registerOnLoadRenderingFromUrl=function(n){this.tryOverrideSitecoreLoadRenderingFromUrl();this.onAfterFrameLoadedCallbacks.push(n)},n.prototype.registerBeforeUnloadingChrome=function(n){this.tryOverrideOnUnloadingChrome();this.onBeforeUnloadingChrome.push(n)},n.prototype.registerOnAfterPersonalizationChanged=function(n){this.tryOverrideSitecoreChromeTypesRenderingChangeCondition();this.onAfterPersonalizationChanged.push(n)},n.prototype.isInBackgroundRendering=function(){return-1!==window.location.search.indexOf(n.isInBackgroundRenderingParameterName)},n.prototype.getComponentFromLoadRenderingFromUrlCallbackData=function(n){return document.getElementById(n.opening[0].id).nextElementSibling},n.prototype.tryOverrideSitecoreLoadRenderingFromUrl=function(){this.isAfterFrameLoadedOverriden||"undefined"==typeof Sitecore||this.overrideSitecoreLoadRenderingFromUrl()},n.prototype.overrideSitecoreLoadRenderingFromUrl=function(){var n=this,t=Sitecore.PageModes.ChromeTypes.Placeholder.prototype.insertRendering;Sitecore.PageModes.ChromeTypes.Placeholder.prototype.insertRendering=function(i){var r;t.call(this,i);r=i;n.onAfterFrameLoadedCallbacks.forEach(function(n){return n(r)})};this.isAfterFrameLoadedOverriden=!0},n.prototype.tryOverrideOnUnloadingChrome=function(){this.isBeforeUnloadingChromeOverriden||"undefined"==typeof Sitecore||(this.overrideSitecoreChromeChangeCondition(),this.isBeforeUnloadingChromeOverriden=!0)},n.prototype.overrideSitecoreChromeChangeCondition=function(){var n=this,t=Sitecore.PageModes.ChromeTypes.Rendering.prototype.changeCondition,i=function(t){n.onBeforeUnloadingChrome.forEach(function(n){return n(t)})};Sitecore.PageModes.ChromeTypes.Rendering.prototype.changeCondition=function(){i(this.chrome.element[0]);t.apply(this,arguments)}},n.prototype.tryOverrideSitecoreChromeTypesRenderingChangeCondition=function(){this.isAfterPersonalizationChangedOverriden||"undefined"==typeof Sitecore||this.overrideSitecoreChromeTypesRenderingChangeCondition()},n.prototype.overrideSitecoreChromeTypesRenderingChangeCondition=function(){var n,t=this,i=Sitecore.PageModes.ChromeTypes.Rendering.prototype._startActivation,r=Sitecore.PageModes.ChromeTypes.Rendering.prototype._endActivation,u=function(n){t.onAfterPersonalizationChanged.forEach(function(t){return t(n)})},f=function(n){return t.isDifferentFirstLoadMarker(n)?n[2]:n[1]};Sitecore.PageModes.ChromeTypes.Rendering.prototype._startActivation=function(t){n=f(t);i.apply(this,arguments)};Sitecore.PageModes.ChromeTypes.Rendering.prototype._endActivation=function(){r.apply(this,arguments);n&&u(n)};this.isAfterPersonalizationChangedOverriden=!0},n.prototype.isDifferentFirstLoadMarker=function(n){return n[1].nodeType===Node.TEXT_NODE},n.prototype.registerShowDebugInformationCallback=function(){window.scCoveoShowDebugInformation||(window.scCoveoShowDebugInformation=function(n){var t=r.nodeListToArray(document.getElementsByClassName("coveo-debug-information"));n?t.forEach(function(n){return n.classList.remove("coveo-debug-hidden")}):t.forEach(function(n){return n.classList.add("coveo-debug-hidden")});Sitecore.PageModes.ChromeManager.resetChromes()})},n.isInBackgroundRenderingParameterName="sc_phk",n}());t.getExperienceEditorInstance=function(){return u}},function(n,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.SearchInterfacesProvider=void 0;var r=i(0),u=i(3),f=function(){function n(){}return n.prototype.getSearchInterfacesInPage=function(n){var t=this.getSearchInterfacesSelectorFromComponentIds(n),i=document.querySelectorAll(t);return u.nodeListToArray(i)},n.prototype.getSearchInterfacesSelectorFromComponentIds=function(n){return n.map(function(n){return r.Component.computeSelectorForType(n)}).join(", ")},n}();t.SearchInterfacesProvider=f},function(n,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.ElementWithContextInitializer=void 0;var r=i(4),u=i(2),f=i(3),e=function(){function n(){}return n.initializeContextWithinElement=function(n){u.Context.element&&n.appendChild(f.cloneElementSafelyForAccessibility(u.Context.element));r.Prebinding.applyPrebindingOnElement(n);r.Prebinding.applyPrebindingOnChildren(n)},n}();t.ElementWithContextInitializer=e},function(n,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.isTabCurrentlySelected=void 0;var r=i(0);t.isTabCurrentlySelected=function(n,t){return!(n&&n!==t.queryStateModel.get(r.QueryStateModel.attributesEnum.t))}},function(n,t,i){"use strict";var u,f=this&&this.__extends||(u=function(n,t){return(u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");u(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)});Object.defineProperty(t,"__esModule",{value:!0});t.CoveoForSitecoreAnalytics=void 0;var r=i(0),e=i(1),o=t.CoveoForSitecoreAnalytics=function(n){function t(i,u,f){var o=n.call(this,i,t.ID,f)||this;return o.element=i,o.options=u,o.bindings=f,o.options=r.ComponentOptions.initComponentOptions(i,t,u),o.bind.onRootElement(r.InitializationEvents.afterInitialization,function(){return o.onAfterInitialization()}),o.bind.onRootElement(e.SitecoreContextEvents.onSitecoreContextInitialization,function(n){return o.onSitecoreContextInitialization(n)}),o}return f(t,n),t.prototype.onAfterInitialization=function(){this.bindings.usageAnalytics&&this.options.scOriginContext&&this.bindings.usageAnalytics.setOriginContext(this.options.scOriginContext)},t.prototype.onSitecoreContextInitialization=function(n){this.completeAnalyticsCustomDataWithSitecoreContext(n);this.setUsageAnalyticsEnpointServiceUrl(n)},t.prototype.completeAnalyticsCustomDataWithSitecoreContext=function(n){var t=this;this.bind.onRootElement(r.AnalyticsEvents.changeAnalyticsCustomData,function(i){var s,r=t.options,u,f,e,o;if(r){if(r.scOverrideCurrentLanguage&&n.currentLanguage&&(i.language=n.currentLanguage),r.scOverrideOriginWithPageName&&n.sitecorePageName&&(i.originLevel1=n.sitecorePageName),u={pageFullPath:n.sitecorePageFullPath,sitename:n.siteName,siteName:n.siteName},f=window.CoveoForSitecoreUserContext,f&&f.handler&&(e=f.handler.getContext(),e))for(o in e)_.extend(u,((s={})["context_"+o]=e[o],s));r.scAnalyticsCustomMetadata&&_.extend(u,r.scAnalyticsCustomMetadata);_.extend(i.metaObject,u)}})},t.prototype.setUsageAnalyticsEnpointServiceUrl=function(n){this.bindings.usageAnalytics&&this.bindings.usageAnalytics.endpoint&&this.bindings.usageAnalytics.endpoint.options&&(this.bindings.usageAnalytics.endpoint.options.serviceUrl=this.options.endpoint||n.analyticsEndpointUri)},t.ID="ForSitecoreAnalytics",t.options={scAnalyticsCustomMetadata:r.ComponentOptions.buildJsonOption(),scOriginContext:r.ComponentOptions.buildStringOption({defaultValue:"WebsiteSearch"}),scOverrideOriginWithPageName:r.ComponentOptions.buildBooleanOption({defaultValue:!1}),scOverrideCurrentLanguage:r.ComponentOptions.buildBooleanOption({defaultValue:!0}),endpoint:r.ComponentOptions.buildStringOption()},t}(r.Component);r.Initialization.registerAutoCreateComponent(o)},function(n,t,i){"use strict";var u,e=this&&this.__extends||(u=function(n,t){return(u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");u(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),r,f;Object.defineProperty(t,"__esModule",{value:!0});t.CoveoForSitecoreConfigureSearchHub=void 0;r=i(0);f=t.CoveoForSitecoreConfigureSearchHub=function(n){function t(i,u,f){var e=n.call(this,i,t.ID,f)||this;return e.element=i,e.options=u,e.bindings=f,e.options=r.ComponentOptions.initComponentOptions(i,t,u),e.options.scSearchHub&&e.bind.oneRootElement(r.InitializationEvents.afterComponentsInitialization,e.onAfterComponentsInitialization),e}return e(t,n),t.prototype.onAfterComponentsInitialization=function(){this.componentOptionsModel.get("searchHub")||this.componentOptionsModel.set("searchHub",this.options.scSearchHub)},t.ID="ForSitecoreConfigureSearchHub",t.options={scSearchHub:r.ComponentOptions.buildStringOption()},t}(r.Component);r.Initialization.registerAutoCreateComponent(f)},function(n,t,i){"use strict";var u,f=this&&this.__extends||(u=function(n,t){return(u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");u(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)});Object.defineProperty(t,"__esModule",{value:!0});t.SendAnalyticsToSitecore=void 0;var e=i(53),o=i(1),r=i(0),s=t.SendAnalyticsToSitecore=function(n){function t(i,u,f){var s=n.call(this,i,t.ID,f)||this;return s.element=i,s.options=u,s.bindings=f,s.options=r.ComponentOptions.initComponentOptions(i,t,u),s.endpointCaller=new e.EndpointCallerWrapper,s.bind.onRootElement(o.SitecoreContextEvents.onSitecoreContextInitialization,s.onSitecoreContextInitialization),s}return f(t,n),t.prototype.onSitecoreContextInitialization=function(n){var t=this;n.analyticsEnabled&&(this.bind.onRootElement(r.AnalyticsEvents.searchEvent,function(i){t.postAnalytics("searches","searchEvents",i.searchEvents,n)}),this.bind.onRootElement(r.AnalyticsEvents.documentViewEvent,function(i){t.postAnalytics("documentViews","documentViewEvents",i.documentViewEvent,n)}),this.bind.onRootElement(r.AnalyticsEvents.customEvent,function(i){t.postAnalytics("custom","customEvents",i.customEvent,n)}))},t.prototype.postAnalytics=function(n,t,i,r){var u=[],f;void 0!==i&&(u=u.concat(i));u.filter(function(n){return void 0!==n}).forEach(function(n){n.sitecoreItemId=r.sitecoreItemId});f={};f[t]=JSON.stringify(u);this.endpointCaller.sendPost("".concat(this.options.scAnalyticsEndpointUri,"/").concat(n),f)},t.ID="SendAnalyticsToSitecore",t.options={scAnalyticsEndpointUri:r.ComponentOptions.buildStringOption({required:!0,postProcessing:function(n){return void 0!==n&&"/"===n[n.length-1]?n.slice(0,n.length-1):n}})},t}(r.Component);r.Initialization.registerAutoCreateComponent(s)},function(n,t,i){"use strict";var u,f=this&&this.__extends||(u=function(n,t){return(u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");u(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)});Object.defineProperty(t,"__esModule",{value:!0});t.ValidateAnalyticsIncluded=void 0;var r=i(0),e=i(1),o=t.ValidateAnalyticsIncluded=function(n){function t(i,u,f){var o=n.call(this,i,t.ID,f)||this;return o.element=i,o.options=u,o.bindings=f,o.options=r.ComponentOptions.initComponentOptions(i,t,u),o.bind.onRootElement(e.SitecoreContextEvents.onSitecoreContextInitialization,o.onSitecoreContextInitialization),o}return f(t,n),t.prototype.onSitecoreContextInitialization=function(n){var t,i;n.shouldHaveAnalyticsComponent&&this.searchInterfaceHasNoBoundAnalyticsComponent()&&n.isInExperienceEditor&&(t=(i=this.options.componentName||"Search Interface","The Coveo Analytics are not enabled for this ".concat(i,". Insert a Coveo For Sitecore Analytics component to record Coveo Usage Analytics data.")),this.checkIfErrorInErrorMessage(t)||(console.warn(t),this.element.appendChild(this.createErrorMessageElement(t))))},t.prototype.checkIfErrorInErrorMessage=function(n){for(var t=0;t<this.element.children.length;t++)if(-1!==this.element.children[t].textContent.indexOf(n,0))return!0;return!1},t.prototype.searchInterfaceHasNoBoundAnalyticsComponent=function(){return 0===this.searchInterface.getComponents("Analytics").length&&0===this.searchInterface.getComponents("ForSitecoreAnalytics").length},t.prototype.createErrorMessageElement=function(n){var t=document.createElement("span");return t.classList.add("errorMessage"),t.textContent=n,t},t.ID="ValidateAnalyticsIncluded",t.options={componentName:r.ComponentOptions.buildStringOption({defaultValue:"",attrName:"data-component-name"})},t}(r.Component);r.Initialization.registerAutoCreateComponent(o)},function(n,t,i){"use strict";var u,e=this&&this.__extends||(u=function(n,t){return(u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");u(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),r,f;Object.defineProperty(t,"__esModule",{value:!0});t.CoveoForSitecoreBindWithUserContext=void 0;r=i(0);f=t.CoveoForSitecoreBindWithUserContext=function(n){function t(i,u,f){var e=n.call(this,i,t.ID,f)||this;return e.element=i,e.options=u,e.bindings=f,e.options=r.ComponentOptions.initComponentOptions(i,t,u),e.bind.onRootElement(r.QueryEvents.doneBuildingQuery,e.doneBuildingQuery),e.bind.onRootElement(r.OmniboxEvents.buildingQuerySuggest,e.buildingQuerySuggest),e}return e(t,n),t.prototype.doneBuildingQuery=function(n){var t=window.CoveoForSitecoreUserContext;t&&t.handler&&n.queryBuilder.addContext(t.handler.getContext())},t.prototype.buildingQuerySuggest=function(n){var t=window.CoveoForSitecoreUserContext;t&&t.handler&&(n.payload.context=t.handler.getContext())},t.ID="ForSitecoreBindWithUserContext",t.options={},t}(r.Component);r.Initialization.registerAutoCreateComponent(f)},function(n,t,i){"use strict";var u,e=this&&this.__extends||(u=function(n,t){return(u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");u(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)});Object.defineProperty(t,"__esModule",{value:!0});t.CoveoForSitecoreExpressions=void 0;var r=i(0),o=i(1),f=i(5),s=t.CoveoForSitecoreExpressions=function(n){function t(i,u,f){var e=n.call(this,i,t.ID,f)||this;return e.element=i,e.options=u,e.bindings=f,e.options=r.ComponentOptions.initComponentOptions(i,t,u),e.bind.onRootElement(o.SitecoreContextEvents.onSitecoreContextInitialization,e.afterComponentsInitialization),e}return e(t,n),t.prototype.afterComponentsInitialization=function(n){var t=this;this.root.dataset.coveoForSitecoreEventRegistered||(this.root.dataset.coveoForSitecoreEventRegistered="true",this.bind.onRootElement(r.QueryEvents.buildingQuery,function(i){t.onBuildingQuery(i,n)}))},t.prototype.onBuildingQuery=function(n){var i=this.triggerBuildingSitecoreExternalContent(),t=this.triggerBuildingLocalSitecoreInstanceEvent(i.sources);t.expression.isEmpty()||n.queryBuilder.constantExpression.add(t.expression.build(" OR "))},t.prototype.triggerBuildingSitecoreExternalContent=function(){var n={sources:[]};return this.bind.trigger(this.element,f.SitecoreExpressionEvents.onBuildingSitecoreExternalContent,n),{sources:this.filterUnique(n.sources)}},t.prototype.triggerBuildingLocalSitecoreInstanceEvent=function(n){var t={expression:new r.ExpressionBuilder,externalSources:n,buildingQueryAlreadyProcessed:!1};return this.bind.trigger(this.element,f.SitecoreExpressionEvents.onBuildingLocalSitecoreInstanceExpression,t),t},t.prototype.filterUnique=function(n){return n.filter(function(n,t,i){return i.indexOf(n)===t})},t.ID="ForSitecoreExpressions",t.options={},t}(r.Component);r.Initialization.registerAutoCreateComponent(s)},function(n,t,i){"use strict";var u,f=this&&this.__extends||(u=function(n,t){return(u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");u(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)});Object.defineProperty(t,"__esModule",{value:!0});t.CoveoForSitecoreSyntax=void 0;var r=i(0),e=i(2),o=t.CoveoForSitecoreSyntax=function(n){function t(i,u,f){var o=n.call(this,i,t.ID,f)||this;return o.element=i,o.options=u,o.bindings=f,o.fieldHandler=e.Context.fields,o.options=r.ComponentOptions.initComponentOptions(i,t,u),o.root.dataset[t.IS_COVEO_FOR_SITECORE_SYNTAX_EVENT_REGISTERED]||(o.root.dataset[t.IS_COVEO_FOR_SITECORE_SYNTAX_EVENT_REGISTERED]="true",o.bind.onRootElement(r.QueryEvents.doneBuildingQuery,o.onDoneBuildingQuery)),o}return f(t,n),t.prototype.setFieldHandler=function(n){this.fieldHandler=n},t.prototype.onDoneBuildingQuery=function(n){this.replaceSitecoreFieldExpressionsByCoveoFieldExpressions(n.queryBuilder.expression)},t.prototype.replaceSitecoreFieldExpressionsByCoveoFieldExpressions=function(n){var t=this;n.getParts().forEach(function(i){var r=i;i=t.replaceSitecoreFieldNamesByCoveoFieldNames(i);n.remove(r);n.add(i)})},t.prototype.replaceSitecoreFieldNamesByCoveoFieldNames=function(n){var i=this,t=this.extractSitecoreFieldNames(n);return t&&t.forEach(function(t){var r=i.convertUnaryFieldExpressionToCoveoUnaryFieldExpression(t);n=n.replace(t,r)}),n},t.prototype.extractSitecoreFieldNames=function(n){return n.match(t.SITECORE_FIELD_NAME_REGEX)},t.prototype.convertUnaryFieldExpressionToCoveoUnaryFieldExpression=function(n){return this.fieldHandler.isCoveoFieldName(n)?n:this.fieldHandler.toCoveo(n)},t.ID="ForSitecoreSyntax",t.options={},t.IS_COVEO_FOR_SITECORE_SYNTAX_EVENT_REGISTERED="coveoForSitecoreSyntaxEventRegistered",t.SITECORE_FIELD_NAME_REGEX=/@[\w\_]*(?=\=|\=\=|\<\>|\s|$)/gi,t}(r.Component);r.Initialization.registerAutoCreateComponent(o)},function(n,t,i){"use strict";var u,f=this&&this.__extends||(u=function(n,t){return(u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");u(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)});Object.defineProperty(t,"__esModule",{value:!0});t.CoveoForSitecoreRankingExpression=void 0;var r=i(0),e=i(14),o=i(63),s=t.CoveoForSitecoreRankingExpression=function(n){function t(i,u,f){var e=n.call(this,i,t.ID,f)||this;return e.element=i,e.options=u,e.bindings=f,e.options=r.ComponentOptions.initComponentOptions(i,t,u),e.bind.onRootElement(r.QueryEvents.buildingQuery,e.onBuildingQuery),e}return f(t,n),t.prototype.onBuildingQuery=function(n){if(this.shouldAddRankingExpression()&&(this.options.scRankingExpression&&n.queryBuilder.advancedExpression.add(this.options.scRankingExpression.trim()),this.options.scRankingScopeNode)){var t=this.getNodeResolver().parseQueryRankingNode(this.options.scRankingScopeNode);t.rankingFunctions.forEach(function(t){return n.queryBuilder.rankingFunctions.push(t)});this.copyQueryBuilderAttributes(t,n.queryBuilder)}},t.prototype.copyQueryBuilderAttributes=function(n,t){n.rankingFunctions.forEach(function(n){return t.rankingFunctions.push(n)});t.advancedExpression.fromExpressionBuilder(n.advancedExpression)},t.prototype.getNodeResolver=function(){return this.nodeResolver||(this.nodeResolver=(new o.QueryRankingNodeExpressionResolverFactory).createQueryFilterNodeExpression(this.logger))},t.prototype.shouldAddRankingExpression=function(){return e.isTabCurrentlySelected(this.options.scScopeToTab,this.searchInterface)},t.ID="ForSitecoreRankingExpression",t.options={scScopeToTab:r.ComponentOptions.buildStringOption(),scRankingExpression:r.ComponentOptions.buildStringOption(),scRankingScopeNode:r.ComponentOptions.buildCustomOption(function(n){return JSON.parse(n)})},t}(r.Component);r.Initialization.registerAutoCreateComponent(s)},function(n,t,i){"use strict";var u,f=this&&this.__extends||(u=function(n,t){return(u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");u(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)});Object.defineProperty(t,"__esModule",{value:!0});t.CoveoForSitecoreExternalContent=void 0;var r=i(0),e=i(14),o=i(5),s=t.CoveoForSitecoreExternalContent=function(n){function t(i,u,f){var e=n.call(this,i,t.ID,f)||this;return e.element=i,e.options=u,e.bindings=f,e.options=r.ComponentOptions.initComponentOptions(i,t,u),e.bind.onRootElement(o.SitecoreExpressionEvents.onBuildingSitecoreExternalContent,e.onBuildingSitecoreExternalContent),e}return f(t,n),t.prototype.onBuildingSitecoreExternalContent=function(n){var t;this.shouldAddExternalContent()&&(t=n.sources).push.apply(t,this.options.scSources)},t.prototype.shouldAddExternalContent=function(){return e.isTabCurrentlySelected(this.options.scScopeToTab,this.searchInterface)},t.ID="ForSitecoreExternalContent",t.options={scSources:r.ComponentOptions.buildListOption(),scScopeToTab:r.ComponentOptions.buildStringOption()},t}(r.Component);r.Initialization.registerAutoCreateComponent(s)},function(n,t,i){"use strict";var u,o=this&&this.__extends||(u=function(n,t){return(u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");u(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),e;Object.defineProperty(t,"__esModule",{value:!0});t.CoveoForSitecoreFilterExpression=t.QueryFilterNodeOptions=void 0;var r=i(0),s=i(14),h=i(64),f=function(){function n(){}return n.parseQueryFilterNode=function(n){return JSON.parse(this.unescapeAttributeValue(n))},n.unescapeAttributeValue=function(n){return n.replace(/&lt;/g,"<").replace(/&g‌​t;/g,">").replace(/&quot;/g,'"').replace(/&amp;/g,"&")},n}();t.QueryFilterNodeOptions=f;e=t.CoveoForSitecoreFilterExpression=function(n){function t(i,u,f,e){void 0===e&&(e=new h.QueryFilterNodeExpressionResolverFactory);var o=n.call(this,i,t.ID,f)||this;return o.element=i,o.options=u,o.bindings=f,o.queryFilterNodeFactory=e,o.options=r.ComponentOptions.initComponentOptions(i,t,u),o.bind.onRootElement(r.QueryEvents.buildingQuery,o.onBuildingQuery),o}return o(t,n),t.prototype.onBuildingQuery=function(n){if(this.shouldAddFilterExpression()&&(this.options.scAdvancedFilter&&n.queryBuilder.advancedExpression.add(this.options.scAdvancedFilter.trim()),this.options.scFilterScopeNode))try{var t=this.getQueryFilterNodeExpressionResolver().parseQueryFilterNode(this.options.scFilterScopeNode);n.queryBuilder.advancedExpression.fromExpressionBuilder(t.advancedExpression)}catch(n){this.logger.error("Could not parse the query filter node.",n)}},t.prototype.getQueryFilterNodeExpressionResolver=function(){return this.queryFilterNodeResolver||(this.queryFilterNodeResolver=this.queryFilterNodeFactory.createQueryFilterNodeExpression(this.logger))},t.prototype.shouldAddFilterExpression=function(){return s.isTabCurrentlySelected(this.options.scScopeToTab,this.searchInterface)},t.ID="ForSitecoreFilterExpression",t.options={scScopeToTab:r.ComponentOptions.buildStringOption(),scAdvancedFilter:r.ComponentOptions.buildStringOption(),scFilterScopeNode:r.ComponentOptions.buildCustomOption(function(n){return f.parseQueryFilterNode(n)})},t}(r.Component);r.Initialization.registerAutoCreateComponent(e)},function(n,t,i){"use strict";var u,f=this&&this.__extends||(u=function(n,t){return(u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");u(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)});Object.defineProperty(t,"__esModule",{value:!0});t.CoveoForSitecoreLocalExpression=void 0;var r=i(0),e=i(1),o=i(5),s=t.CoveoForSitecoreLocalExpression=function(n){function t(i,u,f){var o=n.call(this,i,t.ID,f)||this;return o.element=i,o.options=u,o.bindings=f,o.options=r.ComponentOptions.initComponentOptions(i,t,u),o.bind.onRootElement(e.SitecoreContextEvents.onSitecoreContextInitialization,o.onContextInitialization),o}return f(t,n),t.prototype.onContextInitialization=function(n){var t=this;this.bind.onRootElement(o.SitecoreExpressionEvents.onBuildingLocalSitecoreInstanceExpression,function(i){return t.onBuildingFilterExpression(i,n)})},t.prototype.onBuildingFilterExpression=function(n,t){var i,u;n.buildingQueryAlreadyProcessed||(n.buildingQueryAlreadyProcessed=!0,i=new r.ExpressionBuilder,(this.options.scFilterOnCurrentLanguage&&i.addFieldExpression("@".concat(t.languageFieldName),"==",[t.currentLanguage]),this.options.scFilterOnLatestVersion&&i.addFieldExpression("@".concat(t.latestVersionFieldName),"==",["1"]),this.options.scFilterOnSitecoreContextDatabase&&i.addFieldExpression("@source","==",[t.indexSourceName]),i.isEmpty()||n.expression.add(i.build()),n.externalSources&&n.externalSources.length>0)&&(u=new r.ExpressionBuilder,u.addFieldExpression("@source","==",n.externalSources),u.isEmpty()||n.expression.add(u.build(" OR "))))},t.ID="ForSitecoreLocalExpression",t.options={scFilterOnSitecoreContextDatabase:r.ComponentOptions.buildBooleanOption(),scFilterOnCurrentLanguage:r.ComponentOptions.buildBooleanOption(),scFilterOnLatestVersion:r.ComponentOptions.buildBooleanOption()},t}(r.Component);r.Initialization.registerAutoCreateComponent(s)},function(n,t,i){"use strict";var u,f=this&&this.__extends||(u=function(n,t){return(u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");u(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)});Object.defineProperty(t,"__esModule",{value:!0});t.GoogleApiPositionProvider=void 0;var r=i(0),e=i(53),o=t.GoogleApiPositionProvider=function(n){function t(i,u,f){var o=n.call(this,i,t.ID,f)||this;return o.element=i,o.options=u,o.bindings=f,o.options=r.ComponentOptions.initComponentOptions(i,t,u),o.endpointCaller=new e.EndpointCallerWrapper,o.bind.onRootElement(r.DistanceEvents.onResolvingPosition,o.onResolvingPosition),o.validateProperties(),o}return f(t,n),t.prototype.onResolvingPosition=function(n){var t=this;this.canProvideDistance()&&n.providers.push({getPosition:function(){return t.getPosition()}})},t.prototype.canProvideDistance=function(){return!!this.options.googleApiKey},t.prototype.getPosition=function(){return this.endpointCaller.sendPost("".concat("https://www.googleapis.com/geolocation/v1/geolocate","?key=").concat(this.options.googleApiKey),{}).then(function(n){var t=n.data.location;return{latitude:t.lat,longitude:t.lng}})},t.prototype.validateProperties=function(){this.options.googleApiKey||this.logger.error('You must set the "googleApiKey" property for this component to work properly. It will be disabled.')},t.ID="GoogleApiPositionProvider",t.options={googleApiKey:r.ComponentOptions.buildStringOption({required:!0})},t}(r.Component);r.Initialization.registerAutoCreateComponent(o)},function(n,t,i){"use strict";var u,e=this&&this.__extends||(u=function(n,t){return(u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");u(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),r,f;Object.defineProperty(t,"__esModule",{value:!0});t.NavigatorPositionProvider=void 0;r=i(0);f=t.NavigatorPositionProvider=function(n){function t(i,u,f){var e=n.call(this,i,t.ID,f)||this;return e.element=i,e.options=u,e.bindings=f,e.options=r.ComponentOptions.initComponentOptions(i,t,u),e.bind.onRootElement(r.DistanceEvents.onResolvingPosition,e.onResolvingPosition),e}return e(t,n),t.prototype.onResolvingPosition=function(n){var t=this;n.providers.push({getPosition:function(){return t.getPosition()}})},t.prototype.getPosition=function(){return new Promise(function(n,t){navigator.geolocation.getCurrentPosition(function(t){n({latitude:t.coords.latitude,longitude:t.coords.longitude})},function(n){t(n)})})},t.ID="NavigatorPositionProvider",t.options={},t}(r.Component);r.Initialization.registerAutoCreateComponent(f)},function(n,t,i){"use strict";var u,e=this&&this.__extends||(u=function(n,t){return(u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");u(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),r,f;Object.defineProperty(t,"__esModule",{value:!0});t.StaticPositionProvider=void 0;r=i(0);f=t.StaticPositionProvider=function(n){function t(i,u,f){var e=n.call(this,i,t.ID,f)||this;return e.element=i,e.options=u,e.bindings=f,e.options=r.ComponentOptions.initComponentOptions(i,t,u),e.bind.onRootElement(r.DistanceEvents.onResolvingPosition,e.onResolvingPosition),e}return e(t,n),t.prototype.onResolvingPosition=function(n){var t=this;this.canGetPosition()&&n.providers.push({getPosition:function(){return t.getPosition()}})},t.prototype.canGetPosition=function(){return!!this.options.latitude&&!!this.options.longitude},t.prototype.getPosition=function(){return Promise.resolve({longitude:this.options.longitude,latitude:this.options.latitude})},t.ID="StaticPositionProvider",t.options={latitude:r.ComponentOptions.buildNumberOption({required:!0,float:!0}),longitude:r.ComponentOptions.buildNumberOption({required:!0,float:!0})},t}(r.Component);r.Initialization.registerAutoCreateComponent(f)},function(n,t,i){"use strict";var r,u;Object.defineProperty(t,"__esModule",{value:!0});t.SitecoreExpressionEvents=t.SitecoreContextEvents=void 0;r=i(1);Object.defineProperty(t,"SitecoreContextEvents",{enumerable:!0,get:function(){return r.SitecoreContextEvents}});u=i(5);Object.defineProperty(t,"SitecoreExpressionEvents",{enumerable:!0,get:function(){return u.SitecoreExpressionEvents}})},function(n,t,i){"use strict";var r,u,f;Object.defineProperty(t,"__esModule",{value:!0});t.SearchEndpoint=t.Prebinding=t.Context=void 0;r=i(2);Object.defineProperty(t,"Context",{enumerable:!0,get:function(){return r.Context}});u=i(4);Object.defineProperty(t,"Prebinding",{enumerable:!0,get:function(){return u.Prebinding}});f=i(48);Object.defineProperty(t,"SearchEndpoint",{enumerable:!0,get:function(){return f.SearchEndpoint}})},function(n,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.ContextInitializer=void 0;var f=i(32),e=i(33),o=i(34),u=i(4),s=i(37),r=i(0),h=i(7),c=function(){function n(){}return n.prototype.createFieldsHandler=function(n){var t=n.externalFields||[],i=n.sourceSpecificFields||[],r=n.preferSourceSpecificFields?new h.LegacyFieldTypeResolver(t):new e.SourceSpecificFieldResolver(i,t);return new f.CoveoFieldsHandler(r,n.prefix,n.suffix)},n.prototype.createLabelsHandler=function(n){var t=n.labels||{};return new o.CoveoLabelsHandler(t)},n.prototype.initializePrebinding=function(n){s.PrebindHelpers.getAllPrebindHelpers().forEach(function(t){u.Prebinding.registerPrebindHelper(t.name,t.getPrebind(n))})},n.prototype.initializeUnderscoreFieldsHelpers=function(n){r.TemplateHelpers.registerTemplateHelper("coveoFieldValue",function(t){return this.raw[n.toCoveo(t)]});r.TemplateHelpers.registerTemplateHelper("coveoFieldName",function(t){return n.toCoveo(t)})},n.prototype.initializeUnderscoreLabelsHelpers=function(n){r.TemplateHelpers.registerTemplateHelper("translateLabel",function(t){return n.translate(t)})},n.prototype.initializeUnderscoreContextHelpers=function(n){r.TemplateHelpers.registerTemplateHelper("currentSourceName",function(){return n})},n.prototype.initializeContextElement=function(n){u.Prebinding.applyPrebindingOnElement(n)},n}();t.ContextInitializer=c},function(n,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.CoveoFieldsHandler=void 0;var r=i(7);t.CoveoFieldsHandler=function(){function n(n,t,i){this.prefix=t;this.suffix=i;this.resolver=void 0!==n.shouldDecorate?n:new r.LegacyFieldTypeResolver(n)}return n.prototype.toCoveo=function(t){var u,i,r;return this.isValidFieldName(t)?(u=t.toLowerCase(),i=this.stripCoveoFieldDelimiter(u),n.escapedCharacterRegex.test(i)&&(console.warn("Field name ".concat(t," contains the z\\d{2,3}x pattern. Ensure you avoid using this pattern in field names.")),console.trace()),r=this.translateFieldName(i),this.startsWithAt(t)?this.addCoveoFieldDelimiter(r):r):(console.error("Could not translate the '".concat(t,"' field to a Coveo field. Returning as is.")),t)},n.prototype.addCoveoFieldDelimiter=function(t){var i=t;return this.startsWithAt(t)||(i="".concat(n.coveoFieldDelimiter).concat(t).toLowerCase()),i},n.prototype.isCoveoFieldName=function(n){var t=this.stripCoveoFieldDelimiter(n);return this.resolver.isExternalField(t)||this.isDecorated(t)},n.prototype.isDecorated=function(n){var t=this.prefix+"[\\w]+"+this.suffix;return new RegExp(t).test(n)},n.prototype.isValidFieldName=function(t){return t&&t!==n.coveoFieldDelimiter},n.prototype.startsWithAt=function(t){return t[0]===n.coveoFieldDelimiter},n.prototype.stripCoveoFieldDelimiter=function(n){var t=n;return this.startsWithAt(n)&&(t=t.substr(1)),t},n.prototype.translateFieldName=function(n){var t=n;return this.resolver.shouldEscapeSpecialCharacters(n)&&!this.isFieldAlreadyTranslated(n)&&(t=this.replaceSpecialCharacters(t)),this.resolver.shouldDecorate(n)&&(t=this.prefix+t+this.suffix),this.resolver.shouldEscapeFirstCharacter(t)&&(t=this.replaceFirstCharacter(t)),t},n.prototype.isFieldAlreadyTranslated=function(t){return n.fieldNameRegex.test(t)&&n.escapedCharacterRegex.test(t)},n.prototype.replaceFirstCharacter=function(n){var t=n.split(""),i=t.shift();return t.unshift(this.escapeSpecialCharacter(i)),t.join("")},n.prototype.replaceSpecialCharacters=function(n){return n.split("").map(this.replaceSpecialCharacter.bind(this)).join("")},n.prototype.replaceSpecialCharacter=function(t){return t.match(n.nonSpecialCharacters)?t:this.escapeSpecialCharacter(t)},n.prototype.escapeSpecialCharacter=function(n){return"z".concat(n.charCodeAt(0),"x")},n.nonSpecialCharactersString="[a-wyA-WY0-9]",n.nonSpecialCharacters=new RegExp(n.nonSpecialCharactersString),n.coveoFieldDelimiter="@",n.fieldNameRegex=new RegExp("^[^\\W_]*$"),n.escapedCharacterRegex=new RegExp("z\\d{2,3}x"),n}()},function(n,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.SourceSpecificFieldResolver=void 0;t.SourceSpecificFieldResolver=function(){function n(n,t){this.sourceSpecificFields=n;this.externalFields=t}return n.prototype.shouldEscapeFirstCharacter=function(t){return!t[0].match(n.validFirstCharacters)},n.prototype.shouldEscapeSpecialCharacters=function(n){return!this.externalFields.some(function(t){return t.fieldName.toLowerCase()===n.toLowerCase()})},n.prototype.shouldDecorate=function(n){return this.sourceSpecificFields.some(function(t){return t.fieldName.toLowerCase()===n.toLowerCase()})},n.prototype.isExternalField=function(n){return this.externalFields.some(function(t){return t.fieldName.toLowerCase()===n.toLowerCase()})},n.validFirstCharacters=new RegExp("[a-zA-Z_]"),n}()},function(n,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.CoveoLabelsHandler=void 0;var i=function(){function n(n){this.labels=n}return n.prototype.translate=function(n){return this.labels[n]||n},n}();t.CoveoLabelsHandler=i},function(n,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.PrebindResolver=void 0;t.PrebindResolver=function(){function n(){this.prebindAppliedValue="appliedPrebind";this.helpers={}}return n.prototype.registerPrebindHelper=function(n,t){if("string"!=typeof n||""===n)throw"You must define a name for the prebind helper.";if(null==t)throw"You must define a handler for the prebind helper.";this.hasHelper(n)?console.warn("A prebind handler already exists for '".concat(n,"'. It will be ignored")):this.helpers[n]=t},n.prototype.hasHelper=function(n){return this.helpers.hasOwnProperty(n)},n.prototype.getHelper=function(n){if(!this.hasHelper(n))throw"'".concat(n,"' has no registered helper.");return this.helpers[n]},n.prototype.canApplyPrebind=function(n){return!!n.dataset},n.prototype.hasNotAppliedPrebind=function(n){return"true"!==n.dataset[this.prebindAppliedValue]},n.prototype.applyToElement=function(n){var i=this,t;try{t=this.getPrebindingAttributesForElement(n);t.length>0&&(n.dataset[this.prebindAppliedValue]="true");t.forEach(function(t){return i.applyPrebindToElement(t,n)})}catch(i){console.warn("(CoveoForSitecore) prebinding failed on element.",n,i)}},n.prototype.getPrebindingAttributesForElement=function(n){var t=this;return this.getAllPrebindingAttributesNames(n).map(function(i){var u=n.dataset[i],r=t.lowerCaseFirstCharacter(t.removePrebindPrefix(i));return{attribute:r,attributeValue:n.dataset[r]||"",method:t.getHelper(u)}})},n.prototype.getAllPrebindingAttributesNames=function(n){var t=this;return Object.keys(n.dataset).filter(function(n){return t.stringStartsWithPrebindingString(n)}).filter(function(i){var r=n.dataset[i];return t.filterAndWarnNonExistingHelperName(r,n)})},n.prototype.stringStartsWithPrebindingString=function(t){return 0===t.lastIndexOf(n.prebindString)},n.prototype.filterAndWarnNonExistingHelperName=function(n,t){var i=this.hasHelper(n);return i||console.warn("(CoveoForSitecore) an unregistered prebinding '".concat(n,"' was set on the element. Register this method using Prebinding.registerPrebindHelper(\"").concat(n,'", handler).'),t),i},n.prototype.removePrebindPrefix=function(t){return t.substring(n.prebindString.length)},n.prototype.lowerCaseFirstCharacter=function(n){return n.charAt(0).toLowerCase()+n.slice(1)},n.prototype.applyPrebindToElement=function(n,t){t.dataset[n.attribute]=n.method(n.attributeValue,t)},n.prebindString="prebind",n}()},function(n,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.adjustDOMElements=void 0;var r=i(2),f=function(n){var t=n.cloneNode(!1),i=JSON.parse(t.dataset.sortCriteria);return i.direction="Descending"===i.direction?"Ascending":"Descending",t.dataset.sortCriteria=JSON.stringify(i),t},u=function(n){var t=JSON.parse(n.dataset.sortCriteria);n.dataset.caption="Descending"===t.direction?"".concat(n.dataset.caption," ").concat(r.Context.labels.translate("Descending")):"".concat(n.dataset.caption," ").concat(r.Context.labels.translate("Ascending"))};t.adjustDOMElements=function(n){!function(n){var t,r,i,e;if(n.querySelector(".CoveoSortDropdown"))for(t=0,r=n.querySelectorAll('.CoveoSort[data-sc-enable-both-sort-directions="true"]');t<r.length;t++)i=r[t],e=f(i),i.insertAdjacentElement("afterend",e),u(i),u(e)}(n)}},function(n,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.PrebindHelpers=void 0;var r=i(38),u=i(39),f=i(40),e=i(41),o=i(42),s=i(43),h=i(44),c=i(8),l=i(45),a=i(47),v=function(){function n(){}return n.getAllPrebindHelpers=function(){return[new r.AnalyticsEnabledPrebind,new u.CoveoForSitecoreAnalyticsEndpointPrebind,new f.CurrentMaximumAge,new e.CurrentPageNamePrebind,new o.FieldTranslatorPrebind,new s.IsAnonymousPrebind,new h.MainSearchInterfaceSelectorPrebind,new c.ItemIdSelectorPrebind,new l.SortCriteriaPrebind,new a.UnfoldDictionaryToAttributesPrebind]},n}();t.PrebindHelpers=v},function(n,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.AnalyticsEnabledPrebind=void 0;var i=function(){function n(){this.name="analyticsEnabled"}return n.prototype.getPrebind=function(n){return function(){return n.context.scAnalyticsEnabled?"true":"false"}},n}();t.AnalyticsEnabledPrebind=i},function(n,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.CoveoForSitecoreAnalyticsEndpointPrebind=void 0;var i=function(){function n(){this.name="coveoForSitecoreAnalyticsEndpoint"}return n.prototype.getPrebind=function(n){return function(t){return t||"".concat(n.context.scAnalyticsEndpointUri)}},n}();t.CoveoForSitecoreAnalyticsEndpointPrebind=i},function(n,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.CurrentMaximumAge=void 0;var i=function(){function n(){this.name="currentMaximumAge"}return n.prototype.getPrebind=function(n){return function(t){return t||n.context.scMaximumAge.toString()}},n}();t.CurrentMaximumAge=i},function(n,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.CurrentPageNamePrebind=void 0;var i=function(){function n(){this.name="currentPageName"}return n.prototype.getPrebind=function(n){return function(t){return t||n.context.scPageName}},n}();t.CurrentPageNamePrebind=i},function(n,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.FieldTranslatorPrebind=void 0;var i=function(){function n(){this.name="fieldTranslator"}return n.prototype.getPrebind=function(n){return function(t){return n.fieldsHandler.toCoveo(t)}},n}();t.FieldTranslatorPrebind=i},function(n,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.IsAnonymousPrebind=void 0;var i=function(){function n(){this.name="isAnonymous"}return n.prototype.getPrebind=function(n){return function(){return n.context.scIsUserAnonymous?"true":"false"}},n}();t.IsAnonymousPrebind=i},function(n,t,i){"use strict";var u;Object.defineProperty(t,"__esModule",{value:!0});t.MainSearchInterfaceSelectorPrebind=void 0;var r=i(8),f=i(0),e=function(){function n(){this.name="mainSearchInterfaceSelector";this.resolvers=[new r.ResolveIfSelector,new r.ResolveIfItemIdInPage,new u,new r.UseItemIdSelectorAsIs]}return n.prototype.getPrebind=function(){var n=this;return function(t,i){return n.getFirstValidResolver(t,i).getValue(t,i)}},n.prototype.getFirstValidResolver=function(n,t){var i,r;do{if(0===this.resolvers.length){r="Could not resolve the search interface element using the current resolver. Ensure that a valid value is set.";throw console.error(r,{mainSearchInterfaceId:n,element:t}),r;}i=this.resolvers.shift()}while(!i.canResolve(n,t));return i},n}();t.MainSearchInterfaceSelectorPrebind=e;u=function(){function n(){}return n.prototype.canResolve=function(n,t){return null!==this.getValue(n,t)},n.prototype.getValue=function(n,t){return void 0===this.foundId&&(this.foundId=this.tryFindParentSearchInterfaceFromElement(t)),this.foundId},n.prototype.tryFindParentSearchInterfaceFromElement=function(n){var t=this.findParentWithClass(n,"Coveo".concat(f.SearchInterface.ID));return t?"#".concat(t.id):null},n.prototype.findParentWithClass=function(n,t){for(var i=n.parentElement;(i=i.parentElement)&&!i.classList.contains(t););return i},n}()},function(n,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.SortCriteriaPrebind=void 0;var r=i(46),u=function(){function n(){this.name="sortCriteriaResolver"}return n.prototype.getPrebind=function(n){var t=new r.SortCriteriaResolver(n.fieldsHandler);return function(n,i){var r=JSON.parse(n),s;if(0===Object.keys(r).length)return null;var u=(r.type||"relevancy").toLowerCase(),f=(r.direction||"ascending").toLowerCase(),e="true"===(i.dataset.scEnableBothSortDirections||"false").toLowerCase(),h=document.querySelector(".coveo-sort-section .CoveoSortDropdown"),o=document.body.contains(h);return"relevancy"===u?t.resolveRelevancyCriteria():"date"===u?t.resolveDateCriteria(f,e,o):(s=r.field,t.resolveFieldCriteria(s,f,e,o))}},n}();t.SortCriteriaPrebind=u},function(n,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.SortCriteriaResolver=void 0;var i=function(){function n(n){this.fieldsHandler=n}return n.prototype.resolveFieldCriteria=function(n,t,i,r){var u="@"!==n.charAt(0)?"@".concat(n):n;return this.getFieldCriteria(this.fieldsHandler.toCoveo(u),t,i,r)},n.prototype.resolveDateCriteria=function(n,t,i){return this.getFieldCriteria("date",n,t,i)},n.prototype.resolveRelevancyCriteria=function(){return"relevancy"},n.prototype.getFieldCriteria=function(n,t,i,r){return i&&!r?"".concat(this.getFieldWithDirection(n,t),", ").concat(this.getFieldWithDirection(n,this.getInvertedDirection(t))):this.getFieldWithDirection(n,t)},n.prototype.getFieldWithDirection=function(n,t){return"".concat(n," ").concat(t)},n.prototype.getInvertedDirection=function(n){return"descending"===n?"ascending":"descending"},n}();t.SortCriteriaResolver=i},function(n,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.UnfoldDictionaryToAttributesPrebind=void 0;var i=function(){function n(){this.name="unfoldDictionaryToAttributesPrebind"}return n.prototype.getPrebind=function(n){return function(t,i){var r=JSON.parse(t);return Object.keys(r).forEach(function(t){var u=n.fieldsHandler.toCoveo(t),f="field"+u.charAt(0).toUpperCase()+u.slice(1);i.dataset[f]=r[t]}),t}},n}();t.UnfoldDictionaryToAttributesPrebind=i},function(n,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.SearchEndpoint=void 0;var r=i(0),u=function(){function n(){}return n.configureSitecoreEndpoint=function(t){if(void 0===t)throw Error("You must define endpoint options when calling 'configureSitecoreEndpoint'.");n.getAccessToken().then(function(i){n.initializeEndPoint(t,i);n.dispatchInitializationEvent()})},n.initializeEndPoint=function(t,i){var u=n.createNewEndpoint(t,i);r.SearchEndpoint.endpoints.default=u},n.dispatchInitializationEvent=function(){var n=document.createEvent("CustomEvent");n.initEvent("CoveoSearchEndpointInitialized",!1,!0);"loading"!==document.readyState?document.dispatchEvent(n):document.addEventListener("DOMContentLoaded",function(){document.dispatchEvent(n)})},n.getAccessToken=function(){return n.fetchAccessToken().then(function(n){if(n.ok)return n.json()}).then(function(n){return n.token}).catch(function(){return""})},n.fetchAccessToken=function(){return fetch("/coveo/rest/token?t=".concat(Date.now()))},n.createNewEndpoint=function(t,i){return new r.SearchEndpoint({restUri:t.restEndpointUri?"".concat(t.restEndpointUri,"/search"):"/coveo/rest/search",queryStringArguments:{sitecoreItemUri:t.itemUri,siteName:t.siteName},accessToken:i,renewAccessToken:n.getAccessToken})},n}();t.SearchEndpoint=u},function(n,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.ExternalComponentInitializer=void 0;var u=i(10),f=i(11),e=i(12),r=i(0),o=function(){function n(n,t){void 0===n&&(n=f.getExperienceEditorInstance());void 0===t&&(t=u.getInitializerInstance());this.experienceEditor=n;this.searchInterfaceComponentInitializer=t;this.searchInterfacesProvider=new e.SearchInterfacesProvider}return n.prototype.initializeExternalComponentSection=function(n){var i=this.findSearchInterfaceForSection(n),t;i?this.searchInterfaceComponentInitializer.loadComponentsWithSearchInterfaceInitialization(i,n):(t=this.getAllSearchInterfaceIdsInPage(),t.length>0&&console.error("Could not find the search interface element with the following ID: ".concat(this.getSearchInterfaceId(n),". The following IDs were found: ").concat(t.join(","),"."),n))},n.prototype.initializeExperienceEditorHooksForExternalComponentsSection=function(n){var t=this,i=this.findSearchInterfaceForSection(n);i&&this.experienceEditor.registerOnLoadRenderingFromUrl(function(u){var f=t.experienceEditor.getComponentFromLoadRenderingFromUrlCallbackData(u);n.contains(f)&&t.searchInterfaceComponentInitializer.loadComponentsForSearchInterface(r.get(i,r.SearchInterface),f)})},n.prototype.findSearchInterfaceForSection=function(n){var i=this.getSearchInterfaceId(n),t=document.getElementById(i);if(t)return t},n.prototype.getSearchInterfaceId=function(n){return n.dataset.searchInterfaceId},n.prototype.getAllSearchInterfaceIdsInPage=function(){return this.searchInterfacesProvider.getSearchInterfacesInPage(["SearchInterface"]).map(function(n){return n.id}).filter(function(n){return!!n})},n}();t.ExternalComponentInitializer=o},function(n,t,i){"use strict";var u=this&&this.__awaiter||function(n,t,i,r){return new(i||(i=Promise))(function(u,f){function o(n){try{e(r.next(n))}catch(n){f(n)}}function s(n){try{e(r.throw(n))}catch(n){f(n)}}function e(n){var t;n.done?u(n.value):(t=n.value,t instanceof i?t:new i(function(n){n(t)})).then(o,s)}e((r=r.apply(n,t||[])).next())})},f=this&&this.__generator||function(n,t){function o(o){return function(s){return function(o){if(e)throw new TypeError("Generator is already executing.");for(;f&&(f=0,o[0]&&(r=0)),r;)try{if(e=1,u&&(i=2&o[0]?u.return:o[0]?u.throw||((i=u.return)&&i.call(u),0):u.next)&&!(i=i.call(u,o[1])).done)return i;switch(u=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return r.label++,{value:o[1],done:!1};case 5:r.label++;u=o[1];o=[0];continue;case 7:o=r.ops.pop();r.trys.pop();continue;default:if(!(i=r.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){r=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){r.label=o[1];break}if(6===o[0]&&r.label<i[1]){r.label=i[1];i=o;break}if(i&&r.label<i[2]){r.label=i[2];r.ops.push(o);break}i[2]&&r.ops.pop();r.trys.pop();continue}o=t.call(n,r)}catch(n){o=[6,n];u=0}finally{e=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}var e,u,i,f,r={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return f={next:o(0),"throw":o(1),"return":o(2)},"function"==typeof Symbol&&(f[Symbol.iterator]=function(){return this}),f};Object.defineProperty(t,"__esModule",{value:!0});t.SearchboxInitializer=void 0;var e=i(12),o=i(13),r=i(0),s=function(){function n(){this.searchInterfacesProvider=new e.SearchInterfacesProvider}return n.prototype.initSearchboxIfStandalone=function(n,t,i){return u(this,void 0,void 0,function(){var u;return f(this,function(f){switch(f.label){case 0:return u=this.searchInterfacesProvider.getSearchInterfacesInPage(["Recommendation","SearchInterface"]),[4,this.waitForSearchInterfacesInitialization(u)];case 1:return f.sent(),this.searchboxElementIsNotInitialized(n)&&(t?(o.ElementWithContextInitializer.initializeContextWithinElement(n.parentElement),r.initSearchbox(n.parentElement,t,i)):console.warn('The search box is not included in any search interface and the "searchPageUri" parameters is not specified. Consider using a Global Searchbox instead.',n)),[2]}})})},n.prototype.searchboxElementIsNotInitialized=function(n){return void 0===r.get(n,Coveo.Searchbox)},n.prototype.waitForSearchInterfacesInitialization=function(n){return u(this,void 0,void 0,function(){return f(this,function(t){switch(t.label){case 0:return[4,Promise.all(this.getAllSearchInterfacesAfterComponentInitialization(n))];case 1:return t.sent(),[2]}})})},n.prototype.getAllSearchInterfacesAfterComponentInitialization=function(n){var t=this;return n.map(function(n){return r.$$(n)}).map(function(n){return t.waitForSearchInterfaceInitialization(n)})},n.prototype.waitForSearchInterfaceInitialization=function(n){return new Promise(function(t){if(n.hasClass("coveo-after-initialization"))return t();n.on(r.InitializationEvents.afterComponentsInitialization,function(){return t()})})},n}();t.SearchboxInitializer=s},function(n,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.SearchInterfaceInitializer=void 0;var r=i(9),u=i(10),f=i(11),e=i(0),o=function(){function n(n,t){void 0===n&&(n=f.getExperienceEditorInstance());void 0===t&&(t=u.getInitializerInstance());this.experienceEditor=n;this.searchInterfaceComponentInitializer=t}return n.prototype.initSearchInterface=function(n){if(!this.experienceEditor.isInBackgroundRendering()){this.experienceEditor.registerShowDebugInformationCallback();r.initContextOnElement(n);var t=e.init(n);return t.then(function(){var t=document.createEvent("CustomEvent");t.initEvent("SearchInterfaceInitialized",!1,!0);n.dispatchEvent(t)}),t}},n.prototype.initializeExperienceEditorHooksForSearchInterface=function(n){var t=this;this.experienceEditor.registerOnLoadRenderingFromUrl(function(i){var r=t.experienceEditor.getComponentFromLoadRenderingFromUrlCallbackData(i),u;n.contains(r)&&(u=Coveo.get(n,Coveo.SearchInterface),t.searchInterfaceComponentInitializer.loadComponentsForSearchInterface(u,r))});this.experienceEditor.registerOnAfterPersonalizationChanged(function(i){if(n.contains(i)){var r=Coveo.get(n,Coveo.SearchInterface);t.searchInterfaceComponentInitializer.loadComponentsForSearchInterface(r,i)}});this.experienceEditor.registerBeforeUnloadingChrome(function(i){if(n.contains(i)){var r=Coveo.get(n,Coveo.SearchInterface);t.searchInterfaceComponentInitializer.tryUnloadComponentsForSearchInterface(r,i)}})},n}();t.SearchInterfaceInitializer=o},function(n,t){"use strict";var i=this&&this.__awaiter||function(n,t,i,r){return new(i||(i=Promise))(function(u,f){function o(n){try{e(r.next(n))}catch(n){f(n)}}function s(n){try{e(r.throw(n))}catch(n){f(n)}}function e(n){var t;n.done?u(n.value):(t=n.value,t instanceof i?t:new i(function(n){n(t)})).then(o,s)}e((r=r.apply(n,t||[])).next())})},r=this&&this.__generator||function(n,t){function o(o){return function(s){return function(o){if(e)throw new TypeError("Generator is already executing.");for(;f&&(f=0,o[0]&&(r=0)),r;)try{if(e=1,u&&(i=2&o[0]?u.return:o[0]?u.throw||((i=u.return)&&i.call(u),0):u.next)&&!(i=i.call(u,o[1])).done)return i;switch(u=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return r.label++,{value:o[1],done:!1};case 5:r.label++;u=o[1];o=[0];continue;case 7:o=r.ops.pop();r.trys.pop();continue;default:if(!(i=r.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){r=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){r.label=o[1];break}if(6===o[0]&&r.label<i[1]){r.label=i[1];i=o;break}if(i&&r.label<i[2]){r.label=i[2];r.ops.push(o);break}i[2]&&r.ops.pop();r.trys.pop();continue}o=t.call(n,r)}catch(n){o=[6,n];u=0}finally{e=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}var e,u,i,f,r={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return f={next:o(0),"throw":o(1),"return":o(2)},"function"==typeof Symbol&&(f[Symbol.iterator]=function(){return this}),f},u;Object.defineProperty(t,"__esModule",{value:!0});t.HostedSearchPageInitializer=void 0;u=function(){function n(){this.UNABLE_TO_RETRIEVE_ACCESS_TOKEN="Unable to retrieve access token."}return n.prototype.initializeSearchPage=function(n){var t=this;this.searchPageElement=n;this.searchEndpointUri=n.dataset.searchEndpointUri;this.analyticsEndpointUri=n.dataset.analyticsEndpointUri;this.organizationId=n.dataset.organizationId;this.searchHub=n.dataset.searchHub;this.isInExperienceEditor="true"===n.dataset.isInExperienceEditor;this.getAccessToken=this.getAccessToken.bind(this);this.getAccessToken().then(function(i){t.initializeCoveo(n,i)}).catch(function(n){t.isInExperienceEditor&&t.displayErrorMessageInExperienceEditor(n.message)})},n.prototype.getAccessToken=function(){return i(this,void 0,void 0,function(){var n=this;return r(this,function(){return[2,this.fetchAccessToken().then(function(t){if(t.ok)return t.json();throw Error(n.UNABLE_TO_RETRIEVE_ACCESS_TOKEN);}).then(function(n){return n.token}).catch(function(t){return n.isInExperienceEditor&&n.displayErrorMessageInExperienceEditor(t.message),""})]})})},n.prototype.initializeCoveo=function(n,t){var i=n.querySelector(".CoveoSearchInterface");i&&"undefined"!=typeof Coveo&&(Coveo.SearchEndpoint.endpoints.default=new Coveo.SearchEndpoint({restUri:"".concat(this.searchEndpointUri,"/rest/search/"),accessToken:t,queryStringArguments:{organizationId:this.organizationId},renewAccessToken:this.getAccessToken}),Coveo.Analytics.options.searchHub.defaultValue=this.searchHub,Coveo.Analytics.options.organization.defaultValue=this.organizationId,Coveo.Analytics.options.endpoint.defaultValue="".concat(this.analyticsEndpointUri,"/rest/ua/"),Coveo.init(i))},n.prototype.fetchAccessToken=function(){return i(this,void 0,void 0,function(){return r(this,function(n){switch(n.label){case 0:return[4,fetch("/coveo/rest/token?t=".concat(Date.now()))];case 1:return[2,n.sent()]}})})},n.prototype.displayErrorMessageInExperienceEditor=function(n){var t="\n            <span class='errorMessage'>".concat(n,"<\/span>\n        ");this.searchPageElement.insertAdjacentHTML("afterbegin",t)},n}();t.HostedSearchPageInitializer=u},function(n,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.EndpointCallerWrapper=void 0;var r=i(0),u=function(){function n(n){this.endpointCaller=n||new r.EndpointCaller}return n.prototype.sendPost=function(n,t){var i={errorsAsSuccess:!1,method:"POST",queryString:[],requestData:t,url:n,responseType:"text",requestDataType:"application/json"};return this.endpointCaller.call(i)},n}();t.EndpointCallerWrapper=u},function(n,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.QueryNodeTreeParserFactory=void 0;var r=i(55),u=i(56),f=i(57),e=i(59),o=i(60),s=i(61),h=i(62),c=i(2),l=function(){function n(){}return n.prototype.createParser=function(n){var t=new h.QueryNodeTreeParser(n);return t.registerParser(new r.AndNodeParser(t)),t.registerParser(new u.FalseNodeParser),t.registerParser(new f.FieldNodeParser(c.Context.fields)),t.registerParser(new e.NotNodeParser(t)),t.registerParser(new o.OrNodeParser(t)),t.registerParser(new s.TrueNodeParser),t},n}();t.QueryNodeTreeParserFactory=l},function(n,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.AndNodeParser=void 0;var i=function(){function n(n){this.nodeParser=n;this.type="and"}return n.prototype.parse=function(n){return"(".concat(this.nodeParser.parse(n.left)," ").concat(this.nodeParser.parse(n.right),")")},n}();t.AndNodeParser=i},function(n,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.FalseNodeParser=void 0;var i=function(){function n(){this.type="false"}return n.prototype.parse=function(){return"(NOT @uri)"},n}();t.FalseNodeParser=i},function(n,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.FieldNodeParser=void 0;var r=i(0),u=i(58),f=function(){function n(n){this.fieldHandler=n;this.indexDateFormat="yyyy/mm/dd@HH:MM:ss";this.type="field"}return n.prototype.parse=function(n){return"string"===n.fieldValueType.name?this.parseString(this.fieldHandler.toCoveo("@".concat(n.fieldName)),n.operator.name,n.fieldValues):r.QueryUtils.buildFieldExpression(this.fieldHandler.toCoveo("@".concat(n.fieldName)),n.operator.name,this.parseFieldValuesFromType(n.fieldValueType.name,n.fieldValues))},n.prototype.parseFieldValuesFromType=function(n,t){var i=this;switch(n){case"boolean":return t.map(function(n){return i.parseBoolean(n)});case"date":return t.map(function(n){return i.parseDate(n)});case"number":return t.map(function(n){return i.parseNumber(n)});default:return t}},n.prototype.parseBoolean=function(n){return n?"1":"0"},n.prototype.parseDate=function(n){var t=new Date(parseInt(n.replace("/Date(","")));return u(t,this.indexDateFormat)},n.prototype.parseNumber=function(n){return n.toString()},n.prototype.parseString=function(n,t,i){return i.some(function(n){return""!==n})?r.QueryUtils.buildFieldExpression("".concat(n),t,i.filter(function(n){return""!==n})):this.parseEmptyField(n,t)},n.prototype.parseEmptyField=function(n,t){switch(t){case"=":case"==":return n;case"!=":case"<>":return"(NOT ".concat(n,")");default:throw'Operator "'.concat(t,'" for field "').concat(n,'" requires a non-empty value.');}},n}();t.FieldNodeParser=f},function(n,t,i){var r;!function(){"use strict";function f(n,t){for(n=String(n),t=t||2;n.length<t;)n="0"+n;return n}function h(n){var t=new Date(n.getFullYear(),n.getMonth(),n.getDate()),i,r,u;return t.setDate(t.getDate()-(t.getDay()+6)%7+3),i=new Date(t.getFullYear(),0,4),i.setDate(i.getDate()-(i.getDay()+6)%7+3),r=t.getTimezoneOffset()-i.getTimezoneOffset(),t.setHours(t.getHours()-r),u=(t-i)/6048e5,1+Math.floor(u)}function c(n){var t=n.getDay();return 0===t&&(t=7),t}function l(n){return null===n?"null":void 0===n?"undefined":"object"!=typeof n?typeof n:Array.isArray(n)?"array":{}.toString.call(n).slice(8,-1).toLowerCase()}var e,o,s,u=(e=/d{1,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|[LloSZWN]|'[^']*'|'[^']*'/g,o=/\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g,s=/[^-+\dA-Z]/g,function(n,t,i,r){var p;if(1!==arguments.length||"string"!==l(n)||/\d/.test(n)||(t=n,n=void 0),(n=n||new Date)instanceof Date||(n=new Date(n)),isNaN(n))throw TypeError("Invalid date");p=(t=String(u.masks[t]||t||u.masks.default)).slice(0,4);"UTC:"!==p&&"GMT:"!==p||(t=t.slice(4),i=!0,"GMT:"===p&&(r=!0));var a=i?"getUTC":"get",y=n[a+"Date"](),k=n[a+"Day"](),w=n[a+"Month"](),d=n[a+"FullYear"](),v=n[a+"Hours"](),g=n[a+"Minutes"](),nt=n[a+"Seconds"](),tt=n[a+"Milliseconds"](),b=i?0:n.getTimezoneOffset(),rt=h(n),ut=c(n),it={d:y,dd:f(y),ddd:u.i18n.dayNames[k],dddd:u.i18n.dayNames[k+7],m:w+1,mm:f(w+1),mmm:u.i18n.monthNames[w],mmmm:u.i18n.monthNames[w+12],yy:String(d).slice(2),yyyy:d,h:v%12||12,hh:f(v%12||12),H:v,HH:f(v),M:g,MM:f(g),s:nt,ss:f(nt),l:f(tt,3),L:f(Math.round(tt/10)),t:v<12?"a":"p",tt:v<12?"am":"pm",T:v<12?"A":"P",TT:v<12?"AM":"PM",Z:r?"GMT":i?"UTC":(String(n).match(o)||[""]).pop().replace(s,""),o:(b>0?"-":"+")+f(100*Math.floor(Math.abs(b)/60)+Math.abs(b)%60,4),S:["th","st","nd","rd"][y%10>3?0:(y%100-y%10!=10)*y%10],W:rt,N:ut};return t.replace(e,function(n){return n in it?it[n]:n.slice(1,n.length-1)})});u.masks={"default":"ddd mmm dd yyyy HH:MM:ss",shortDate:"m/d/yy",mediumDate:"mmm d, yyyy",longDate:"mmmm d, yyyy",fullDate:"dddd, mmmm d, yyyy",shortTime:"h:MM TT",mediumTime:"h:MM:ss TT",longTime:"h:MM:ss TT Z",isoDate:"yyyy-mm-dd",isoTime:"HH:MM:ss",isoDateTime:"yyyy-mm-dd'T'HH:MM:sso",isoUtcDateTime:"UTC:yyyy-mm-dd'T'HH:MM:ss'Z'",expiresHeaderFormat:"ddd, dd mmm yyyy HH:MM:ss Z"};u.i18n={dayNames:["Sun","Mon","Tue","Wed","Thu","Fri","Sat","Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],monthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec","January","February","March","April","May","June","July","August","September","October","November","December"]};void 0===(r=function(){return u}.call(t,i,t,n))||(n.exports=r)}()},function(n,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.NotNodeParser=void 0;var i=function(){function n(n){this.nodeParser=n;this.type="not"}return n.prototype.parse=function(n){return"NOT ".concat(this.nodeParser.parse(n.operand))},n}();t.NotNodeParser=i},function(n,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.OrNodeParser=void 0;var i=function(){function n(n){this.nodeParser=n;this.type="or"}return n.prototype.parse=function(n){return"(".concat(this.nodeParser.parse(n.left)," OR ").concat(this.nodeParser.parse(n.right),")")},n}();t.OrNodeParser=i},function(n,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.TrueNodeParser=void 0;var i=function(){function n(){this.type="true"}return n.prototype.parse=function(){return"@uri"},n}();t.TrueNodeParser=i},function(n,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.QueryNodeTreeParser=void 0;var i=function(){function n(n){this.logger=n;this.parsers={}}return n.prototype.registerParser=function(n){this.parsers[n.type]=function(t){return n.parse(t)}},n.prototype.parse=function(n){try{return this.parsers[n.type](n)}catch(t){return this.logger.error("Error when parsing a query node:",n,t),""}},n}();t.QueryNodeTreeParser=i},function(n,t,i){"use strict";var u;Object.defineProperty(t,"__esModule",{value:!0});t.QueryRankingNodeExpressionResolverFactory=t.QueryRankingNodeExpressionResolver=void 0;var f=i(54),e=i(2),o=i(0),s=/@\[(.*?\]*)\]/g,r=function(){function n(n,t){this.parser=n;this.fieldsHandler=t}return n.prototype.parseQueryRankingNode=function(n){var i=this,t=new o.QueryBuilder;return n.rankingExpressions.map(function(n){var r=i.parser.parse(n.expression);""!==r&&t.advancedExpression.add("$qre(expression:'".concat(r,"', modifier:").concat(n.modifier,")"))}),n.rankingFunctions.forEach(function(n){n.expression=i.translateRankingExpressionFieldNames(n.expression);t.rankingFunctions.push(n)}),n.textualRankingExpressions.filter(function(n){return""!==n.expression}).forEach(function(n){t.advancedExpression.add(n.expression)}),t},n.prototype.translateRankingExpressionFieldNames=function(n){var t=this;return n.replace(s,function(n,i){return t.fieldsHandler.toCoveo(i)}),n},n}();t.QueryRankingNodeExpressionResolver=r;u=function(){function n(){}return n.prototype.createQueryFilterNodeExpression=function(n){var t=(new f.QueryNodeTreeParserFactory).createParser(n);return new r(t,e.Context.fields)},n}();t.QueryRankingNodeExpressionResolverFactory=u},function(n,t,i){"use strict";var f;Object.defineProperty(t,"__esModule",{value:!0});t.QueryFilterNodeExpressionResolverFactory=t.QueryFilterNodeExpressionResolver=void 0;var e=i(54),r=i(0),u=function(){function n(n){this.parser=n}return n.prototype.parseQueryFilterNode=function(n){r.Assert.isNotNull(n);var t=new r.QueryBuilder;return t.advancedExpression.add(this.parser.parse(n.advanced)),t},n}();t.QueryFilterNodeExpressionResolver=u;f=function(){function n(){}return n.prototype.createQueryFilterNodeExpression=function(n){var t=(new e.QueryNodeTreeParserFactory).createParser(n);return new u(t)},n}();t.QueryFilterNodeExpressionResolverFactory=f},,,,,,,,,,,,,,,,,function(n,t,i){"use strict";var d=this&&this.__createBinding||(Object.create?function(n,t,i,r){void 0===r&&(r=i);var u=Object.getOwnPropertyDescriptor(t,i);(!u||("get"in u?!t.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return t[i]}});Object.defineProperty(n,r,u)}:function(n,t,i,r){void 0===r&&(r=i);n[r]=t[i]}),r=this&&this.__exportStar||function(n,t){for(var i in n)"default"===i||Object.prototype.hasOwnProperty.call(t,i)||d(t,n,i)},u,f,e,o,s,h,c,l,a,v,y,p,w,b,k;Object.defineProperty(t,"__esModule",{value:!0});t.StaticPositionProvider=t.NavigatorPositionProvider=t.GoogleApiPositionProvider=t.CoveoForSitecoreLocalExpression=t.CoveoForSitecoreFilterExpression=t.CoveoForSitecoreExternalContent=t.CoveoForSitecoreRankingExpression=t.CoveoForSitecoreSyntax=t.CoveoForSitecoreExpressions=t.CoveoForSitecoreContext=t.CoveoForSitecoreBindWithUserContext=t.ValidateAnalyticsIncluded=t.SendAnalyticsToSitecore=t.CoveoForSitecoreConfigureSearchHub=t.CoveoForSitecoreAnalytics=void 0;u=i(15);Object.defineProperty(t,"CoveoForSitecoreAnalytics",{enumerable:!0,get:function(){return u.CoveoForSitecoreAnalytics}});f=i(16);Object.defineProperty(t,"CoveoForSitecoreConfigureSearchHub",{enumerable:!0,get:function(){return f.CoveoForSitecoreConfigureSearchHub}});e=i(17);Object.defineProperty(t,"SendAnalyticsToSitecore",{enumerable:!0,get:function(){return e.SendAnalyticsToSitecore}});o=i(18);Object.defineProperty(t,"ValidateAnalyticsIncluded",{enumerable:!0,get:function(){return o.ValidateAnalyticsIncluded}});s=i(19);Object.defineProperty(t,"CoveoForSitecoreBindWithUserContext",{enumerable:!0,get:function(){return s.CoveoForSitecoreBindWithUserContext}});h=i(6);Object.defineProperty(t,"CoveoForSitecoreContext",{enumerable:!0,get:function(){return h.CoveoForSitecoreContext}});c=i(20);Object.defineProperty(t,"CoveoForSitecoreExpressions",{enumerable:!0,get:function(){return c.CoveoForSitecoreExpressions}});l=i(21);Object.defineProperty(t,"CoveoForSitecoreSyntax",{enumerable:!0,get:function(){return l.CoveoForSitecoreSyntax}});a=i(22);Object.defineProperty(t,"CoveoForSitecoreRankingExpression",{enumerable:!0,get:function(){return a.CoveoForSitecoreRankingExpression}});v=i(23);Object.defineProperty(t,"CoveoForSitecoreExternalContent",{enumerable:!0,get:function(){return v.CoveoForSitecoreExternalContent}});y=i(24);Object.defineProperty(t,"CoveoForSitecoreFilterExpression",{enumerable:!0,get:function(){return y.CoveoForSitecoreFilterExpression}});p=i(25);Object.defineProperty(t,"CoveoForSitecoreLocalExpression",{enumerable:!0,get:function(){return p.CoveoForSitecoreLocalExpression}});w=i(26);Object.defineProperty(t,"GoogleApiPositionProvider",{enumerable:!0,get:function(){return w.GoogleApiPositionProvider}});b=i(27);Object.defineProperty(t,"NavigatorPositionProvider",{enumerable:!0,get:function(){return b.NavigatorPositionProvider}});k=i(28);Object.defineProperty(t,"StaticPositionProvider",{enumerable:!0,get:function(){return k.StaticPositionProvider}});r(i(29),t);r(i(30),t);r(i(9),t)}])});!function(n){"function"==typeof define&&define.amd&&define.amd.jQuery?define(["jquery"],n):n("undefined"!=typeof module&&module.exports?require("jquery"):jQuery)}(function(n){"use strict";function ut(t){return!t||void 0!==t.allowPageScroll||void 0===t.swipe&&void 0===t.swipeStatus||(t.allowPageScroll=o),void 0!==t.click&&void 0===t.tap&&(t.tap=t.click),t||(t={}),t=n.extend({},n.fn.swipe.defaults,t),this.each(function(){var r=n(this),i=r.data(c);i||(i=new ft(this,t),r.data(c,i))})}function ft(ut,ft){function ki(t){var r,f,u,e;if(!(pu()||n(t.target).closest(ft.excludedElements,ot).length>0)&&(r=t.originalEvent?t.originalEvent:t,!r.pointerType||"mouse"!=r.pointerType||0!=ft.fallbackToMouseEvents))return u=r.touches,e=u?u[0]:r,st=rt,u?ct=u.length:ft.preventDefaultEvents!==!1&&t.preventDefault(),at=0,vt=null,yt=null,kt=null,lt=0,gt=0,ni=0,wt=1,bt=0,pi=ku(),dr(),ci(0,e),!u||ct===ft.fingers||ft.fingers===a||oi()?(sr=dt(),2==ct&&(ci(1,u[1]),gt=ni=fr(ht[0].start,ht[1].start)),(ft.swipeStatus||ft.pinchStatus)&&(f=pt(r,st))):f=!1,f===!1?(st=i,pt(r,st),f):(ft.hold&&(ei=setTimeout(n.proxy(function(){ot.trigger("hold",[r.target]);ft.hold&&(f=ft.hold.call(ot,r,r.target))},this),ft.longTapThreshold)),hi(!0),null)}function di(n){var f=n.originalEvent?n.originalEvent:n,e,h;if(st!==t&&st!==i&&!si()){var o,r=f.touches,c=r?r[0]:f,u=gr(c);(wi=dt(),r&&(ct=r.length),ft.hold&&clearTimeout(ei),st=s,2==ct&&(0==gt?(ci(1,r[1]),gt=ni=fr(ht[0].start,ht[1].start)):(gr(r[1]),ni=fr(ht[0].end,ht[1].end),kt=gu(ht[0].end,ht[1].end)),wt=du(gt,ni),bt=Math.abs(gt-ni)),ct===ft.fingers||ft.fingers===a||!r||oi())?(vt=iu(u.start,u.end),yt=iu(u.last,u.end),uu(n,yt),at=nf(u.start,u.end),lt=tu(),bu(vt,at),o=pt(f,st),!ft.triggerOnTouchEnd||ft.triggerOnTouchLeave)&&(e=!0,ft.triggerOnTouchLeave&&(h=rf(this),e=uf(u.end,h)),!ft.triggerOnTouchEnd&&e?st=tr(s):ft.triggerOnTouchLeave&&!e&&(st=tr(t)),st!=i&&st!=t||pt(f,st)):(st=i,pt(f,st));o===!1&&(st=i,pt(f,st))}}function gi(n){var r=n.originalEvent?n.originalEvent:n,u=r.touches;if(u){if(u.length&&!si())return yu(r),!0;if(u.length&&si())return!0}return si()&&(ct=hr),wi=dt(),lt=tu(),rr()||!ir()?(st=i,pt(r,st)):ft.triggerOnTouchEnd||ft.triggerOnTouchEnd===!1&&st===s?(ft.preventDefaultEvents!==!1&&n.cancelable!==!1&&n.preventDefault(),st=t,pt(r,st)):!ft.triggerOnTouchEnd&&br()?(st=t,ri(r,st,w)):st===s&&(st=i,pt(r,st)),hi(!1),null}function ii(){ct=0;wi=0;sr=0;gt=0;ni=0;wt=1;dr();hi(!1)}function nr(n){var i=n.originalEvent?n.originalEvent:n;ft.triggerOnTouchLeave&&(st=tr(t),pt(i,st))}function cr(){ot.off(vi,ki);ot.off(yi,ii);ot.off(er,di);ot.off(or,gi);ui&&ot.off(ui,nr);hi(!1)}function tr(n){var r=n,f=lr(),u=ir(),e=rr();return!f||e?r=i:!u||n!=s||ft.triggerOnTouchEnd&&!ft.triggerOnTouchLeave?!u&&n==t&&ft.triggerOnTouchLeave&&(r=i):r=t,r}function pt(n,r){var u,f=n.touches;return(eu()||yr())&&(u=ri(n,r,g)),(fu()||oi())&&u!==!1&&(u=ri(n,r,nt)),au()&&u!==!1?u=ri(n,r,tt):vu()&&u!==!1?u=ri(n,r,it):lu()&&u!==!1&&(u=ri(n,r,w)),r===i&&ii(n),r===t&&(f?f.length||ii(n):ii(n)),u}function ri(o,s,h){var c;if(h==g){if(ot.trigger("swipeStatus",[s,vt||null,at||0,lt||0,ct,ht,yt]),ft.swipeStatus&&(c=ft.swipeStatus.call(ot,o,s,vt||null,at||0,lt||0,ct,ht,yt),c===!1))return!1;if(s==t&&vr()){if(clearTimeout(fi),clearTimeout(ei),ot.trigger("swipe",[vt,at,lt,ct,ht,yt]),ft.swipe&&(c=ft.swipe.call(ot,o,vt,at,lt,ct,ht,yt),c===!1))return!1;switch(vt){case r:ot.trigger("swipeLeft",[vt,at,lt,ct,ht,yt]);ft.swipeLeft&&(c=ft.swipeLeft.call(ot,o,vt,at,lt,ct,ht,yt));break;case u:ot.trigger("swipeRight",[vt,at,lt,ct,ht,yt]);ft.swipeRight&&(c=ft.swipeRight.call(ot,o,vt,at,lt,ct,ht,yt));break;case f:ot.trigger("swipeUp",[vt,at,lt,ct,ht,yt]);ft.swipeUp&&(c=ft.swipeUp.call(ot,o,vt,at,lt,ct,ht,yt));break;case e:ot.trigger("swipeDown",[vt,at,lt,ct,ht,yt]);ft.swipeDown&&(c=ft.swipeDown.call(ot,o,vt,at,lt,ct,ht,yt))}}}if(h==nt){if(ot.trigger("pinchStatus",[s,kt||null,bt||0,lt||0,ct,wt,ht]),ft.pinchStatus&&(c=ft.pinchStatus.call(ot,o,s,kt||null,bt||0,lt||0,ct,wt,ht),c===!1))return!1;if(s==t&&ar())switch(kt){case y:ot.trigger("pinchIn",[kt||null,bt||0,lt||0,ct,wt,ht]);ft.pinchIn&&(c=ft.pinchIn.call(ot,o,kt||null,bt||0,lt||0,ct,wt,ht));break;case p:ot.trigger("pinchOut",[kt||null,bt||0,lt||0,ct,wt,ht]);ft.pinchOut&&(c=ft.pinchOut.call(ot,o,kt||null,bt||0,lt||0,ct,wt,ht))}}return h==w?s!==i&&s!==t||(clearTimeout(fi),clearTimeout(ei),ur()&&!su()?(ti=dt(),fi=setTimeout(n.proxy(function(){ti=null;ot.trigger("tap",[o.target]);ft.tap&&(c=ft.tap.call(ot,o,o.target))},this),ft.doubleTapThreshold)):(ti=null,ot.trigger("tap",[o.target]),ft.tap&&(c=ft.tap.call(ot,o,o.target)))):h==tt?s!==i&&s!==t||(clearTimeout(fi),clearTimeout(ei),ti=null,ot.trigger("doubletap",[o.target]),ft.doubleTap&&(c=ft.doubleTap.call(ot,o,o.target))):h==it&&(s!==i&&s!==t||(clearTimeout(fi),ti=null,ot.trigger("longtap",[o.target]),ft.longTap&&(c=ft.longTap.call(ot,o,o.target)))),c}function ir(){var n=!0;return null!==ft.threshold&&(n=at>=ft.threshold),n}function rr(){var n=!1;return null!==ft.cancelThreshold&&null!==vt&&(n=nu(vt)-at>=ft.cancelThreshold),n}function ru(){return null!==ft.pinchThreshold?bt>=ft.pinchThreshold:!0}function lr(){return ft.maxTimeThreshold?!(lt>=ft.maxTimeThreshold):!0}function uu(n,t){if(ft.preventDefaultEvents!==!1)if(ft.allowPageScroll===o)n.preventDefault();else{var i=ft.allowPageScroll===d;switch(t){case r:(ft.swipeLeft&&i||!i&&ft.allowPageScroll!=b)&&n.preventDefault();break;case u:(ft.swipeRight&&i||!i&&ft.allowPageScroll!=b)&&n.preventDefault();break;case f:(ft.swipeUp&&i||!i&&ft.allowPageScroll!=k)&&n.preventDefault();break;case e:(ft.swipeDown&&i||!i&&ft.allowPageScroll!=k)&&n.preventDefault()}}}function ar(){var n=pr(),t=wr(),i=ru();return n&&t&&i}function oi(){return!!(ft.pinchStatus||ft.pinchIn||ft.pinchOut)}function fu(){return!(!ar()||!oi())}function vr(){var n=lr(),t=ir(),i=pr(),r=wr(),u=rr();return!u&&r&&i&&t&&n}function yr(){return!!(ft.swipe||ft.swipeStatus||ft.swipeLeft||ft.swipeRight||ft.swipeUp||ft.swipeDown)}function eu(){return!(!vr()||!yr())}function pr(){return ct===ft.fingers||ft.fingers===a||!l}function wr(){return 0!==ht[0].end.x}function br(){return!!ft.tap}function ur(){return!!ft.doubleTap}function ou(){return!!ft.longTap}function kr(){if(null==ti)return!1;var n=dt();return ur()&&n-ti<=ft.doubleTapThreshold}function su(){return kr()}function hu(){return(1===ct||!l)&&(isNaN(at)||at<ft.threshold)}function cu(){return lt>ft.longTapThreshold&&et>at}function lu(){return!(!hu()||!br())}function au(){return!(!kr()||!ur())}function vu(){return!(!cu()||!ou())}function yu(n){bi=dt();hr=n.touches.length+1}function dr(){bi=0;hr=0}function si(){var n=!1,t;return bi&&(t=dt()-bi,t<=ft.fingerReleaseThreshold&&(n=!0)),n}function pu(){return!(ot.data(c+"_intouch")!==!0)}function hi(n){ot&&(n===!0?(ot.on(er,di),ot.on(or,gi),ui&&ot.on(ui,nr)):(ot.off(er,di,!1),ot.off(or,gi,!1),ui&&ot.off(ui,nr,!1)),ot.data(c+"_intouch",n===!0))}function ci(n,t){var i={start:{x:0,y:0},last:{x:0,y:0},end:{x:0,y:0}};return i.start.x=i.last.x=i.end.x=t.pageX||t.clientX,i.start.y=i.last.y=i.end.y=t.pageY||t.clientY,ht[n]=i,i}function gr(n){var i=void 0!==n.identifier?n.identifier:0,t=wu(i);return null===t&&(t=ci(i,n)),t.last.x=t.end.x,t.last.y=t.end.y,t.end.x=n.pageX||n.clientX,t.end.y=n.pageY||n.clientY,t}function wu(n){return ht[n]||null}function bu(n,t){n!=o&&(t=Math.max(t,nu(n)),pi[n].distance=t)}function nu(n){if(pi[n])return pi[n].distance}function ku(){var n={};return n[r]=li(r),n[u]=li(u),n[f]=li(f),n[e]=li(e),n}function li(n){return{direction:n,distance:0}}function tu(){return wi-sr}function fr(n,t){var i=Math.abs(n.x-t.x),r=Math.abs(n.y-t.y);return Math.round(Math.sqrt(i*i+r*r))}function du(n,t){var i=t/n*1;return i.toFixed(2)}function gu(){return 1>wt?p:y}function nf(n,t){return Math.round(Math.sqrt(Math.pow(t.x-n.x,2)+Math.pow(t.y-n.y,2)))}function tf(n,t){var r=n.x-t.x,u=t.y-n.y,f=Math.atan2(u,r),i=Math.round(180*f/Math.PI);return 0>i&&(i=360-Math.abs(i)),i}function iu(n,t){if(ff(n,t))return o;var i=tf(n,t);return 45>=i&&i>=0?r:360>=i&&i>=315?r:i>=135&&225>=i?u:i>45&&135>i?e:f}function dt(){var n=new Date;return n.getTime()}function rf(t){t=n(t);var i=t.offset();return{left:i.left,right:i.left+t.outerWidth(),top:i.top,bottom:i.top+t.outerHeight()}}function uf(n,t){return n.x>t.left&&n.x<t.right&&n.y>t.top&&n.y<t.bottom}function ff(n,t){return n.x==t.x&&n.y==t.y}var ft=n.extend({},ft),ai=l||h||!ft.fallbackToMouseEvents,vi=ai?h?v?"MSPointerDown":"pointerdown":"touchstart":"mousedown",er=ai?h?v?"MSPointerMove":"pointermove":"touchmove":"mousemove",or=ai?h?v?"MSPointerUp":"pointerup":"touchend":"mouseup",ui=ai?h?"mouseleave":null:"mouseleave",yi=h?v?"MSPointerCancel":"pointercancel":"touchcancel",at=0,vt=null,yt=null,lt=0,gt=0,ni=0,wt=1,bt=0,kt=0,pi=null,ot=n(ut),st="start",ct=0,ht={},sr=0,wi=0,bi=0,hr=0,ti=0,fi=null,ei=null;try{ot.on(vi,ki);ot.on(yi,ii)}catch(ef){n.error("events not supported "+vi+","+yi+" on jQuery.swipe")}this.enable=function(){return this.disable(),ot.on(vi,ki),ot.on(yi,ii),ot};this.disable=function(){return cr(),ot};this.destroy=function(){cr();ot.data(c,null);ot=null};this.option=function(t,i){if("object"==typeof t)ft=n.extend(ft,t);else if(void 0!==ft[t]){if(void 0===i)return ft[t];ft[t]=i}else{if(!t)return ft;n.error("Option "+t+" does not exist on jQuery.swipe.options")}return null}}var r="left",u="right",f="up",e="down",y="in",p="out",o="none",d="auto",g="swipe",nt="pinch",w="tap",tt="doubletap",it="longtap",b="horizontal",k="vertical",a="all",et=10,rt="start",s="move",t="end",i="cancel",l="ontouchstart"in window,v=window.navigator.msPointerEnabled&&!window.PointerEvent&&!l,h=(window.PointerEvent||window.navigator.msPointerEnabled)&&!l,c="TouchSwipe";n.fn.swipe=function(t){var r=n(this),i=r.data(c);if(i&&"string"==typeof t){if(i[t])return i[t].apply(i,Array.prototype.slice.call(arguments,1));n.error("Method "+t+" does not exist on jQuery.swipe")}else if(i&&"object"==typeof t)i.option.apply(i,arguments);else if(!(i||"object"!=typeof t&&t))return ut.apply(this,arguments);return r};n.fn.swipe.version="1.6.18";n.fn.swipe.defaults={fingers:1,threshold:75,cancelThreshold:null,pinchThreshold:20,maxTimeThreshold:null,fingerReleaseThreshold:250,longTapThreshold:500,doubleTapThreshold:200,swipe:null,swipeLeft:null,swipeRight:null,swipeUp:null,swipeDown:null,swipeStatus:null,pinchIn:null,pinchOut:null,pinchStatus:null,click:null,tap:null,doubleTap:null,longTap:null,hold:null,triggerOnTouchEnd:!0,triggerOnTouchLeave:!1,allowPageScroll:"auto",fallbackToMouseEvents:!0,excludedElements:".noSwipe",preventDefaultEvents:!0};n.fn.swipe.phases={PHASE_START:rt,PHASE_MOVE:s,PHASE_END:t,PHASE_CANCEL:i};n.fn.swipe.directions={LEFT:r,RIGHT:u,UP:f,DOWN:e,IN:y,OUT:p};n.fn.swipe.pageScroll={NONE:o,HORIZONTAL:b,VERTICAL:k,AUTO:d};n.fn.swipe.fingers={ONE:1,TWO:2,THREE:3,FOUR:4,FIVE:5,ALL:a}})